~ubuntu-branches/ubuntu/feisty/apache2/feisty

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Barth
  • Date: 2006-12-09 21:05:45 UTC
  • mfrom: (0.6.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061209210545-h70s0xaqc2v8vqr2
Tags: 2.2.3-3.2
* Non-maintainer upload.
* 043_ajp_connection_reuse: Patch from upstream Bugzilla, fixing a critical
  issue with regard to connection reuse in mod_proxy_ajp.
  Closes: #396265

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.59.
 
4
#
 
5
# Copyright (C) 2003 Free Software Foundation, Inc.
 
6
# This configure script is free software; the Free Software Foundation
 
7
# gives unlimited permission to copy, distribute and modify it.
 
8
## --------------------- ##
 
9
## M4sh Initialization.  ##
 
10
## --------------------- ##
 
11
 
 
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
 
22
DUALCASE=1; export DUALCASE # for MKS sh
 
23
 
 
24
# Support unset when possible.
 
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
26
  as_unset=unset
 
27
else
 
28
  as_unset=false
 
29
fi
 
30
 
 
31
 
 
32
# Work around bugs in pre-3.0 UWIN ksh.
 
33
$as_unset ENV MAIL MAILPATH
 
34
PS1='$ '
 
35
PS2='> '
 
36
PS4='+ '
 
37
 
 
38
# NLS nuisances.
 
39
for as_var in \
 
40
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
41
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
42
  LC_TELEPHONE LC_TIME
 
43
do
 
44
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
45
    eval $as_var=C; export $as_var
 
46
  else
 
47
    $as_unset $as_var
 
48
  fi
 
49
done
 
50
 
 
51
# Required to use basename.
 
52
if expr a : '\(a\)' >/dev/null 2>&1; then
 
53
  as_expr=expr
 
54
else
 
55
  as_expr=false
 
56
fi
 
57
 
 
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
59
  as_basename=basename
 
60
else
 
61
  as_basename=false
 
62
fi
 
63
 
 
64
 
 
65
# Name of the executable.
 
66
as_me=`$as_basename "$0" ||
 
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
68
         X"$0" : 'X\(//\)$' \| \
 
69
         X"$0" : 'X\(/\)$' \| \
 
70
         .     : '\(.\)' 2>/dev/null ||
 
71
echo X/"$0" |
 
72
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
73
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
74
          /^X\/\(\/\).*/{ s//\1/; q; }
 
75
          s/.*/./; q'`
 
76
 
 
77
 
 
78
# PATH needs CR, and LINENO needs CR and PATH.
 
79
# Avoid depending upon Character Ranges.
 
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
83
as_cr_digits='0123456789'
 
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
85
 
 
86
# The user is always right.
 
87
if test "${PATH_SEPARATOR+set}" != set; then
 
88
  echo "#! /bin/sh" >conf$$.sh
 
89
  echo  "exit 0"   >>conf$$.sh
 
90
  chmod +x conf$$.sh
 
91
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
92
    PATH_SEPARATOR=';'
 
93
  else
 
94
    PATH_SEPARATOR=:
 
95
  fi
 
96
  rm -f conf$$.sh
 
97
fi
 
98
 
 
99
 
 
100
  as_lineno_1=$LINENO
 
101
  as_lineno_2=$LINENO
 
102
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
103
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
104
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
105
  # Find who we are.  Look in the path if we contain no path at all
 
106
  # relative or not.
 
107
  case $0 in
 
108
    *[\\/]* ) as_myself=$0 ;;
 
109
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
110
for as_dir in $PATH
 
111
do
 
112
  IFS=$as_save_IFS
 
113
  test -z "$as_dir" && as_dir=.
 
114
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
115
done
 
116
 
 
117
       ;;
 
118
  esac
 
119
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
120
  # in which case we are not to be found in the path.
 
121
  if test "x$as_myself" = x; then
 
122
    as_myself=$0
 
123
  fi
 
124
  if test ! -f "$as_myself"; then
 
125
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
126
   { (exit 1); exit 1; }; }
 
127
  fi
 
128
  case $CONFIG_SHELL in
 
129
  '')
 
130
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
132
do
 
133
  IFS=$as_save_IFS
 
134
  test -z "$as_dir" && as_dir=.
 
135
  for as_base in sh bash ksh sh5; do
 
136
         case $as_dir in
 
137
         /*)
 
138
           if ("$as_dir/$as_base" -c '
 
139
  as_lineno_1=$LINENO
 
140
  as_lineno_2=$LINENO
 
141
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
142
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
143
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
144
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
145
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
146
             CONFIG_SHELL=$as_dir/$as_base
 
147
             export CONFIG_SHELL
 
148
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
149
           fi;;
 
150
         esac
 
151
       done
 
152
done
 
153
;;
 
154
  esac
 
155
 
 
156
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
157
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
158
  # line-number line before each line; the second 'sed' does the real
 
159
  # work.  The second script uses 'N' to pair each line-number line
 
160
  # with the numbered line, and appends trailing '-' during
 
161
  # substitution so that $LINENO is not a special case at line end.
 
162
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
163
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
164
  sed '=' <$as_myself |
 
165
    sed '
 
166
      N
 
167
      s,$,-,
 
168
      : loop
 
169
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
170
      t loop
 
171
      s,-$,,
 
172
      s,^['$as_cr_digits']*\n,,
 
173
    ' >$as_me.lineno &&
 
174
  chmod +x $as_me.lineno ||
 
175
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
176
   { (exit 1); exit 1; }; }
 
177
 
 
178
  # Don't try to exec as it changes $[0], causing all sort of problems
 
179
  # (the dirname of $[0] is not the place where we might find the
 
180
  # original and so on.  Autoconf is especially sensible to this).
 
181
  . ./$as_me.lineno
 
182
  # Exit status is that of the last command.
 
183
  exit
 
184
}
 
185
 
 
186
 
 
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
188
  *c*,-n*) ECHO_N= ECHO_C='
 
189
' ECHO_T='      ' ;;
 
190
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
191
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
192
esac
 
193
 
 
194
if expr a : '\(a\)' >/dev/null 2>&1; then
 
195
  as_expr=expr
 
196
else
 
197
  as_expr=false
 
198
fi
 
199
 
 
200
rm -f conf$$ conf$$.exe conf$$.file
 
201
echo >conf$$.file
 
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
203
  # We could just check for DJGPP; but this test a) works b) is more generic
 
204
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
205
  if test -f conf$$.exe; then
 
206
    # Don't use ln at all; we don't have any links
 
207
    as_ln_s='cp -p'
 
208
  else
 
209
    as_ln_s='ln -s'
 
210
  fi
 
211
elif ln conf$$.file conf$$ 2>/dev/null; then
 
212
  as_ln_s=ln
 
213
else
 
214
  as_ln_s='cp -p'
 
215
fi
 
216
rm -f conf$$ conf$$.exe conf$$.file
 
217
 
 
218
if mkdir -p . 2>/dev/null; then
 
219
  as_mkdir_p=:
 
220
else
 
221
  test -d ./-p && rmdir ./-p
 
222
  as_mkdir_p=false
 
223
fi
 
224
 
 
225
as_executable_p="test -f"
 
226
 
 
227
# Sed expression to map a string onto a valid CPP name.
 
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
229
 
 
230
# Sed expression to map a string onto a valid variable name.
 
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
232
 
 
233
 
 
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
 
 
243
 
 
244
# Name of the host.
 
245
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
246
# so uname gets run too.
 
247
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
248
 
 
249
exec 6>&1
 
250
 
 
251
#
 
252
# Initializations.
 
253
#
 
254
ac_default_prefix=/usr/local
 
255
ac_config_libobj_dir=.
 
256
cross_compiling=no
 
257
subdirs=
 
258
MFLAGS=
 
259
MAKEFLAGS=
 
260
SHELL=${CONFIG_SHELL-/bin/sh}
 
261
 
 
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
# Identity of this package.
 
268
PACKAGE_NAME=
 
269
PACKAGE_TARNAME=
 
270
PACKAGE_VERSION=
 
271
PACKAGE_STRING=
 
272
PACKAGE_BUGREPORT=
 
273
 
 
274
ac_unique_file="ABOUT_APACHE"
 
275
ac_default_prefix=/usr/local/apache2
 
276
# Factoring default headers for most tests.
 
277
ac_includes_default="\
 
278
#include <stdio.h>
 
279
#if HAVE_SYS_TYPES_H
 
280
# include <sys/types.h>
 
281
#endif
 
282
#if HAVE_SYS_STAT_H
 
283
# include <sys/stat.h>
 
284
#endif
 
285
#if STDC_HEADERS
 
286
# include <stdlib.h>
 
287
# include <stddef.h>
 
288
#else
 
289
# if HAVE_STDLIB_H
 
290
#  include <stdlib.h>
 
291
# endif
 
292
#endif
 
293
#if HAVE_STRING_H
 
294
# if !STDC_HEADERS && HAVE_MEMORY_H
 
295
#  include <memory.h>
 
296
# endif
 
297
# include <string.h>
 
298
#endif
 
299
#if HAVE_STRINGS_H
 
300
# include <strings.h>
 
301
#endif
 
302
#if HAVE_INTTYPES_H
 
303
# include <inttypes.h>
 
304
#else
 
305
# if HAVE_STDINT_H
 
306
#  include <stdint.h>
 
307
# endif
 
308
#endif
 
309
#if HAVE_UNISTD_H
 
310
# include <unistd.h>
 
311
#endif"
 
312
 
 
313
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 exp_exec_prefix rel_exec_prefix exp_bindir rel_bindir exp_sbindir rel_sbindir exp_libdir rel_libdir exp_libexecdir rel_libexecdir exp_mandir rel_mandir exp_sysconfdir rel_sysconfdir exp_datadir rel_datadir exp_installbuilddir rel_installbuilddir exp_errordir rel_errordir exp_iconsdir rel_iconsdir exp_htdocsdir rel_htdocsdir exp_manualdir rel_manualdir exp_cgidir rel_cgidir exp_includedir rel_includedir exp_localstatedir rel_localstatedir exp_runtimedir rel_runtimedir exp_logfiledir rel_logfiledir exp_proxycachedir rel_proxycachedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP PCRE_CONFIG SHLTCFLAGS LTCFLAGS RM PKGCONFIG RSYNC AWK LN_S RANLIB ac_ct_RANLIB LYNX_PATH MKINSTALLDIRS INSTALL EGREP MKDEP PICFLAGS PILDFLAGS MOD_AUTHN_FILE_LDADD MOD_AUTHN_DBM_LDADD MOD_AUTHN_ANON_LDADD MOD_AUTHN_DBD_LDADD MOD_AUTHN_DEFAULT_LDADD MOD_AUTHN_ALIAS_LDADD MOD_AUTHZ_HOST_LDADD MOD_AUTHZ_GROUPFILE_LDADD MOD_AUTHZ_USER_LDADD MOD_AUTHZ_DBM_LDADD MOD_AUTHZ_OWNER_LDADD MOD_AUTHNZ_LDAP_LDADD MOD_AUTHZ_DEFAULT_LDADD MOD_AUTH_BASIC_LDADD MOD_AUTH_DIGEST_LDADD MOD_ISAPI_LDADD MOD_FILE_CACHE_LDADD MOD_CACHE_LDADD MOD_DISK_CACHE_LDADD MOD_MEM_CACHE_LDADD MOD_DBD_LDADD MOD_BUCKETEER_LDADD MOD_DUMPIO_LDADD MOD_ECHO_LDADD MOD_EXAMPLE_LDADD MOD_CASE_FILTER_LDADD MOD_CASE_FILTER_IN_LDADD MOD_EXT_FILTER_LDADD MOD_INCLUDE_LDADD MOD_FILTER_LDADD MOD_CHARSET_LITE_LDADD MOD_DEFLATE_LDADD MOD_LDAP_LDADD MOD_LOG_CONFIG_LDADD MOD_LOG_FORENSIC_LDADD MOD_LOGIO_LDADD MOD_ENV_LDADD MOD_MIME_MAGIC_LDADD MOD_CERN_META_LDADD MOD_EXPIRES_LDADD MOD_HEADERS_LDADD MOD_IDENT_LDADD MOD_USERTRACK_LDADD MOD_UNIQUE_ID_LDADD MOD_SETENVIF_LDADD MOD_VERSION_LDADD MOD_PROXY_LDADD MOD_PROXY_CONNECT_LDADD MOD_PROXY_FTP_LDADD MOD_PROXY_HTTP_LDADD MOD_PROXY_AJP_LDADD MOD_PROXY_BALANCER_LDADD SSL_LIBS MOD_SSL_LDADD MOD_OPTIONAL_HOOK_EXPORT_LDADD MOD_OPTIONAL_HOOK_IMPORT_LDADD MOD_OPTIONAL_FN_IMPORT_LDADD MOD_OPTIONAL_FN_EXPORT_LDADD MPM_NAME MPM_SUBDIR_NAME htpasswd_LTFLAGS htdigest_LTFLAGS rotatelogs_LTFLAGS logresolve_LTFLAGS htdbm_LTFLAGS ab_LTFLAGS checkgid_LTFLAGS APACHECTL_ULIMIT MOD_HTTP_LDADD MOD_MIME_LDADD MOD_DAV_LDADD MOD_STATUS_LDADD MOD_AUTOINDEX_LDADD MOD_ASIS_LDADD MOD_INFO_LDADD MOD_SUEXEC_LDADD MOD_CGID_LDADD MOD_CGI_LDADD MOD_DAV_FS_LDADD MOD_DAV_LOCK_LDADD MOD_VHOST_ALIAS_LDADD MOD_NEGOTIATION_LDADD MOD_DIR_LDADD MOD_IMAGEMAP_LDADD MOD_ACTIONS_LDADD MOD_SPELING_LDADD MOD_USERDIR_LDADD MOD_ALIAS_LDADD MOD_REWRITE_LDADD INSTALL_DSO MOD_SO_LDADD progname MPM_LIB OS OS_DIR BUILTIN_LIBS SHLIBPATH_VAR OS_SPECIFIC_VARS PRE_SHARED_CMDS POST_SHARED_CMDS shared_build AP_LIBS AP_BUILD_SRCLIB_DIRS AP_CLEAN_SRCLIB_DIRS EXTRA_CPPFLAGS EXTRA_CFLAGS EXTRA_CXXFLAGS EXTRA_LDFLAGS EXTRA_LIBS EXTRA_INCLUDES abs_srcdir cgidir logfiledir htdocsdir manualdir errordir iconsdir installbuilddir runtimedir proxycachedir other_targets CXX CXXFLAGS LTFLAGS LT_LDFLAGS SH_LDFLAGS HTTPD_LDFLAGS UTIL_LDFLAGS INCLUDES NOTEST_CPPFLAGS NOTEST_CFLAGS NOTEST_CXXFLAGS NOTEST_LDFLAGS NOTEST_LIBS LIBTOOL MODULE_DIRS MODULE_CLEANDIRS PORT nonssl_listen_stmt_1 nonssl_listen_stmt_2 CORE_IMPLIB_FILE CORE_IMPLIB SH_LIBS SH_LIBTOOL MK_IMPLIB INSTALL_PROG_FLAGS DSO_MODULES APR_BINDIR APR_INCLUDEDIR APR_VERSION APR_CONFIG APU_BINDIR APU_INCLUDEDIR APU_VERSION APU_CONFIG perlbin ap_make_include ap_make_delimiter HTTPD_VERSION LIBOBJS LTLIBOBJS'
 
314
ac_subst_files=''
 
315
 
 
316
# Initialize some variables set by options.
 
317
ac_init_help=
 
318
ac_init_version=false
 
319
# The variables have the same names as the options, with
 
320
# dashes changed to underlines.
 
321
cache_file=/dev/null
 
322
exec_prefix=NONE
 
323
no_create=
 
324
no_recursion=
 
325
prefix=NONE
 
326
program_prefix=NONE
 
327
program_suffix=NONE
 
328
program_transform_name=s,x,x,
 
329
silent=
 
330
site=
 
331
srcdir=
 
332
verbose=
 
333
x_includes=NONE
 
334
x_libraries=NONE
 
335
 
 
336
# Installation directory options.
 
337
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
338
# and all the variables that are supposed to be based on exec_prefix
 
339
# by default will actually change.
 
340
# Use braces instead of parens because sh, perl, etc. also accept them.
 
341
bindir='${exec_prefix}/bin'
 
342
sbindir='${exec_prefix}/sbin'
 
343
libexecdir='${exec_prefix}/libexec'
 
344
datadir='${prefix}/share'
 
345
sysconfdir='${prefix}/etc'
 
346
sharedstatedir='${prefix}/com'
 
347
localstatedir='${prefix}/var'
 
348
libdir='${exec_prefix}/lib'
 
349
includedir='${prefix}/include'
 
350
oldincludedir='/usr/include'
 
351
infodir='${prefix}/info'
 
352
mandir='${prefix}/man'
 
353
 
 
354
ac_prev=
 
355
for ac_option
 
356
do
 
357
  # If the previous option needs an argument, assign it.
 
358
  if test -n "$ac_prev"; then
 
359
    eval "$ac_prev=\$ac_option"
 
360
    ac_prev=
 
361
    continue
 
362
  fi
 
363
 
 
364
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
365
 
 
366
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
367
 
 
368
  case $ac_option in
 
369
 
 
370
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
371
    ac_prev=bindir ;;
 
372
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
373
    bindir=$ac_optarg ;;
 
374
 
 
375
  -build | --build | --buil | --bui | --bu)
 
376
    ac_prev=build_alias ;;
 
377
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
378
    build_alias=$ac_optarg ;;
 
379
 
 
380
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
381
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
382
    ac_prev=cache_file ;;
 
383
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
384
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
385
    cache_file=$ac_optarg ;;
 
386
 
 
387
  --config-cache | -C)
 
388
    cache_file=config.cache ;;
 
389
 
 
390
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
391
    ac_prev=datadir ;;
 
392
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
393
  | --da=*)
 
394
    datadir=$ac_optarg ;;
 
395
 
 
396
  -disable-* | --disable-*)
 
397
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
398
    # Reject names that are not valid shell variable names.
 
399
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
400
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
401
   { (exit 1); exit 1; }; }
 
402
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
403
    eval "enable_$ac_feature=no" ;;
 
404
 
 
405
  -enable-* | --enable-*)
 
406
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
407
    # Reject names that are not valid shell variable names.
 
408
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
409
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
410
   { (exit 1); exit 1; }; }
 
411
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
412
    case $ac_option in
 
413
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
414
      *) ac_optarg=yes ;;
 
415
    esac
 
416
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
417
 
 
418
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
419
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
420
  | --exec | --exe | --ex)
 
421
    ac_prev=exec_prefix ;;
 
422
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
423
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
424
  | --exec=* | --exe=* | --ex=*)
 
425
    exec_prefix=$ac_optarg ;;
 
426
 
 
427
  -gas | --gas | --ga | --g)
 
428
    # Obsolete; use --with-gas.
 
429
    with_gas=yes ;;
 
430
 
 
431
  -help | --help | --hel | --he | -h)
 
432
    ac_init_help=long ;;
 
433
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
434
    ac_init_help=recursive ;;
 
435
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
436
    ac_init_help=short ;;
 
437
 
 
438
  -host | --host | --hos | --ho)
 
439
    ac_prev=host_alias ;;
 
440
  -host=* | --host=* | --hos=* | --ho=*)
 
441
    host_alias=$ac_optarg ;;
 
442
 
 
443
  -includedir | --includedir | --includedi | --included | --include \
 
444
  | --includ | --inclu | --incl | --inc)
 
445
    ac_prev=includedir ;;
 
446
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
447
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
448
    includedir=$ac_optarg ;;
 
449
 
 
450
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
451
    ac_prev=infodir ;;
 
452
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
453
    infodir=$ac_optarg ;;
 
454
 
 
455
  -libdir | --libdir | --libdi | --libd)
 
456
    ac_prev=libdir ;;
 
457
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
458
    libdir=$ac_optarg ;;
 
459
 
 
460
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
461
  | --libexe | --libex | --libe)
 
462
    ac_prev=libexecdir ;;
 
463
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
464
  | --libexe=* | --libex=* | --libe=*)
 
465
    libexecdir=$ac_optarg ;;
 
466
 
 
467
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
468
  | --localstate | --localstat | --localsta | --localst \
 
469
  | --locals | --local | --loca | --loc | --lo)
 
470
    ac_prev=localstatedir ;;
 
471
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
472
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
473
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
474
    localstatedir=$ac_optarg ;;
 
475
 
 
476
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
477
    ac_prev=mandir ;;
 
478
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
479
    mandir=$ac_optarg ;;
 
480
 
 
481
  -nfp | --nfp | --nf)
 
482
    # Obsolete; use --without-fp.
 
483
    with_fp=no ;;
 
484
 
 
485
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
486
  | --no-cr | --no-c | -n)
 
487
    no_create=yes ;;
 
488
 
 
489
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
490
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
491
    no_recursion=yes ;;
 
492
 
 
493
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
494
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
495
  | --oldin | --oldi | --old | --ol | --o)
 
496
    ac_prev=oldincludedir ;;
 
497
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
498
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
499
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
500
    oldincludedir=$ac_optarg ;;
 
501
 
 
502
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
503
    ac_prev=prefix ;;
 
504
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
505
    prefix=$ac_optarg ;;
 
506
 
 
507
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
508
  | --program-pre | --program-pr | --program-p)
 
509
    ac_prev=program_prefix ;;
 
510
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
511
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
512
    program_prefix=$ac_optarg ;;
 
513
 
 
514
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
515
  | --program-suf | --program-su | --program-s)
 
516
    ac_prev=program_suffix ;;
 
517
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
518
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
519
    program_suffix=$ac_optarg ;;
 
520
 
 
521
  -program-transform-name | --program-transform-name \
 
522
  | --program-transform-nam | --program-transform-na \
 
523
  | --program-transform-n | --program-transform- \
 
524
  | --program-transform | --program-transfor \
 
525
  | --program-transfo | --program-transf \
 
526
  | --program-trans | --program-tran \
 
527
  | --progr-tra | --program-tr | --program-t)
 
528
    ac_prev=program_transform_name ;;
 
529
  -program-transform-name=* | --program-transform-name=* \
 
530
  | --program-transform-nam=* | --program-transform-na=* \
 
531
  | --program-transform-n=* | --program-transform-=* \
 
532
  | --program-transform=* | --program-transfor=* \
 
533
  | --program-transfo=* | --program-transf=* \
 
534
  | --program-trans=* | --program-tran=* \
 
535
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
536
    program_transform_name=$ac_optarg ;;
 
537
 
 
538
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
539
  | -silent | --silent | --silen | --sile | --sil)
 
540
    silent=yes ;;
 
541
 
 
542
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
543
    ac_prev=sbindir ;;
 
544
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
545
  | --sbi=* | --sb=*)
 
546
    sbindir=$ac_optarg ;;
 
547
 
 
548
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
549
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
550
  | --sharedst | --shareds | --shared | --share | --shar \
 
551
  | --sha | --sh)
 
552
    ac_prev=sharedstatedir ;;
 
553
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
554
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
555
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
556
  | --sha=* | --sh=*)
 
557
    sharedstatedir=$ac_optarg ;;
 
558
 
 
559
  -site | --site | --sit)
 
560
    ac_prev=site ;;
 
561
  -site=* | --site=* | --sit=*)
 
562
    site=$ac_optarg ;;
 
563
 
 
564
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
565
    ac_prev=srcdir ;;
 
566
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
567
    srcdir=$ac_optarg ;;
 
568
 
 
569
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
570
  | --syscon | --sysco | --sysc | --sys | --sy)
 
571
    ac_prev=sysconfdir ;;
 
572
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
573
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
574
    sysconfdir=$ac_optarg ;;
 
575
 
 
576
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
577
    ac_prev=target_alias ;;
 
578
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
579
    target_alias=$ac_optarg ;;
 
580
 
 
581
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
582
    verbose=yes ;;
 
583
 
 
584
  -version | --version | --versio | --versi | --vers | -V)
 
585
    ac_init_version=: ;;
 
586
 
 
587
  -with-* | --with-*)
 
588
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
589
    # Reject names that are not valid shell variable names.
 
590
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
591
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
592
   { (exit 1); exit 1; }; }
 
593
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
594
    case $ac_option in
 
595
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
596
      *) ac_optarg=yes ;;
 
597
    esac
 
598
    eval "with_$ac_package='$ac_optarg'" ;;
 
599
 
 
600
  -without-* | --without-*)
 
601
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
602
    # Reject names that are not valid shell variable names.
 
603
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
604
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
605
   { (exit 1); exit 1; }; }
 
606
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
607
    eval "with_$ac_package=no" ;;
 
608
 
 
609
  --x)
 
610
    # Obsolete; use --with-x.
 
611
    with_x=yes ;;
 
612
 
 
613
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
614
  | --x-incl | --x-inc | --x-in | --x-i)
 
615
    ac_prev=x_includes ;;
 
616
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
617
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
618
    x_includes=$ac_optarg ;;
 
619
 
 
620
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
621
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
622
    ac_prev=x_libraries ;;
 
623
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
624
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
625
    x_libraries=$ac_optarg ;;
 
626
 
 
627
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
628
Try \`$0 --help' for more information." >&2
 
629
   { (exit 1); exit 1; }; }
 
630
    ;;
 
631
 
 
632
  *=*)
 
633
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
634
    # Reject names that are not valid shell variable names.
 
635
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
636
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
637
   { (exit 1); exit 1; }; }
 
638
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
639
    eval "$ac_envvar='$ac_optarg'"
 
640
    export $ac_envvar ;;
 
641
 
 
642
  *)
 
643
    # FIXME: should be removed in autoconf 3.0.
 
644
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
645
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
646
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
647
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
648
    ;;
 
649
 
 
650
  esac
 
651
done
 
652
 
 
653
if test -n "$ac_prev"; then
 
654
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
655
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
656
   { (exit 1); exit 1; }; }
 
657
fi
 
658
 
 
659
# Be sure to have absolute paths.
 
660
for ac_var in exec_prefix prefix
 
661
do
 
662
  eval ac_val=$`echo $ac_var`
 
663
  case $ac_val in
 
664
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
665
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
666
   { (exit 1); exit 1; }; };;
 
667
  esac
 
668
done
 
669
 
 
670
# Be sure to have absolute paths.
 
671
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
672
              localstatedir libdir includedir oldincludedir infodir mandir
 
673
do
 
674
  eval ac_val=$`echo $ac_var`
 
675
  case $ac_val in
 
676
    [\\/$]* | ?:[\\/]* ) ;;
 
677
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
678
   { (exit 1); exit 1; }; };;
 
679
  esac
 
680
done
 
681
 
 
682
# There might be people who depend on the old broken behavior: `$host'
 
683
# used to hold the argument of --host etc.
 
684
# FIXME: To remove some day.
 
685
build=$build_alias
 
686
host=$host_alias
 
687
target=$target_alias
 
688
 
 
689
# FIXME: To remove some day.
 
690
if test "x$host_alias" != x; then
 
691
  if test "x$build_alias" = x; then
 
692
    cross_compiling=maybe
 
693
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
694
    If a cross compiler is detected then cross compile mode will be used." >&2
 
695
  elif test "x$build_alias" != "x$host_alias"; then
 
696
    cross_compiling=yes
 
697
  fi
 
698
fi
 
699
 
 
700
ac_tool_prefix=
 
701
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
702
 
 
703
test "$silent" = yes && exec 6>/dev/null
 
704
 
 
705
 
 
706
# Find the source files, if location was not specified.
 
707
if test -z "$srcdir"; then
 
708
  ac_srcdir_defaulted=yes
 
709
  # Try the directory containing this script, then its parent.
 
710
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
711
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
712
         X"$0" : 'X\(//\)[^/]' \| \
 
713
         X"$0" : 'X\(//\)$' \| \
 
714
         X"$0" : 'X\(/\)' \| \
 
715
         .     : '\(.\)' 2>/dev/null ||
 
716
echo X"$0" |
 
717
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
718
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
719
          /^X\(\/\/\)$/{ s//\1/; q; }
 
720
          /^X\(\/\).*/{ s//\1/; q; }
 
721
          s/.*/./; q'`
 
722
  srcdir=$ac_confdir
 
723
  if test ! -r $srcdir/$ac_unique_file; then
 
724
    srcdir=..
 
725
  fi
 
726
else
 
727
  ac_srcdir_defaulted=no
 
728
fi
 
729
if test ! -r $srcdir/$ac_unique_file; then
 
730
  if test "$ac_srcdir_defaulted" = yes; then
 
731
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
732
   { (exit 1); exit 1; }; }
 
733
  else
 
734
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
735
   { (exit 1); exit 1; }; }
 
736
  fi
 
737
fi
 
738
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
739
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
740
   { (exit 1); exit 1; }; }
 
741
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
742
ac_env_build_alias_set=${build_alias+set}
 
743
ac_env_build_alias_value=$build_alias
 
744
ac_cv_env_build_alias_set=${build_alias+set}
 
745
ac_cv_env_build_alias_value=$build_alias
 
746
ac_env_host_alias_set=${host_alias+set}
 
747
ac_env_host_alias_value=$host_alias
 
748
ac_cv_env_host_alias_set=${host_alias+set}
 
749
ac_cv_env_host_alias_value=$host_alias
 
750
ac_env_target_alias_set=${target_alias+set}
 
751
ac_env_target_alias_value=$target_alias
 
752
ac_cv_env_target_alias_set=${target_alias+set}
 
753
ac_cv_env_target_alias_value=$target_alias
 
754
ac_env_CC_set=${CC+set}
 
755
ac_env_CC_value=$CC
 
756
ac_cv_env_CC_set=${CC+set}
 
757
ac_cv_env_CC_value=$CC
 
758
ac_env_CFLAGS_set=${CFLAGS+set}
 
759
ac_env_CFLAGS_value=$CFLAGS
 
760
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
761
ac_cv_env_CFLAGS_value=$CFLAGS
 
762
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
763
ac_env_LDFLAGS_value=$LDFLAGS
 
764
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
765
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
766
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
767
ac_env_CPPFLAGS_value=$CPPFLAGS
 
768
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
769
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
770
ac_env_CPP_set=${CPP+set}
 
771
ac_env_CPP_value=$CPP
 
772
ac_cv_env_CPP_set=${CPP+set}
 
773
ac_cv_env_CPP_value=$CPP
 
774
 
 
775
#
 
776
# Report the --help message.
 
777
#
 
778
if test "$ac_init_help" = "long"; then
 
779
  # Omit some internal or obsolete options to make the list less imposing.
 
780
  # This message is too long to be a string in the A/UX 3.1 sh.
 
781
  cat <<_ACEOF
 
782
\`configure' configures this package to adapt to many kinds of systems.
 
783
 
 
784
Usage: $0 [OPTION]... [VAR=VALUE]...
 
785
 
 
786
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
787
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
788
 
 
789
Defaults for the options are specified in brackets.
 
790
 
 
791
Configuration:
 
792
  -h, --help              display this help and exit
 
793
      --help=short        display options specific to this package
 
794
      --help=recursive    display the short help of all the included packages
 
795
  -V, --version           display version information and exit
 
796
  -q, --quiet, --silent   do not print \`checking...' messages
 
797
      --cache-file=FILE   cache test results in FILE [disabled]
 
798
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
799
  -n, --no-create         do not create output files
 
800
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
801
 
 
802
_ACEOF
 
803
 
 
804
  cat <<_ACEOF
 
805
Installation directories:
 
806
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
807
                          [$ac_default_prefix]
 
808
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
809
                          [PREFIX]
 
810
 
 
811
By default, \`make install' will install all the files in
 
812
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
813
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
814
for instance \`--prefix=\$HOME'.
 
815
 
 
816
For better control, use the options below.
 
817
 
 
818
Fine tuning of the installation directories:
 
819
  --bindir=DIR           user executables [EPREFIX/bin]
 
820
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
821
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
822
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
823
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
824
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
825
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
826
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
827
  --includedir=DIR       C header files [PREFIX/include]
 
828
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
829
  --infodir=DIR          info documentation [PREFIX/info]
 
830
  --mandir=DIR           man documentation [PREFIX/man]
 
831
_ACEOF
 
832
 
 
833
  cat <<\_ACEOF
 
834
 
 
835
System types:
 
836
  --build=BUILD     configure for building on BUILD [guessed]
 
837
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
838
  --target=TARGET   configure for building compilers for TARGET [HOST]
 
839
_ACEOF
 
840
fi
 
841
 
 
842
if test -n "$ac_init_help"; then
 
843
 
 
844
  cat <<\_ACEOF
 
845
 
 
846
Optional Features:
 
847
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
848
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
849
  --enable-layout=LAYOUT
 
850
  --enable-v4-mapped      Allow IPv6 sockets to handle IPv4 connections
 
851
  --enable-exception-hook Enable fatal exception hook
 
852
  --enable-maintainer-mode
 
853
                          Turn on debugging and compile time warnings
 
854
  --enable-pie            Build httpd as a Position Independent Executable
 
855
  --enable-modules=MODULE-LIST
 
856
                          Space-separated list of modules to enable | "all" |
 
857
                          "most"
 
858
  --enable-mods-shared=MODULE-LIST
 
859
                          Space-separated list of shared modules to enable |
 
860
                          "all" | "most"
 
861
  --disable-authn-file    file-based authentication control
 
862
  --enable-authn-dbm      DBM-based authentication control
 
863
  --enable-authn-anon     anonymous user authentication control
 
864
  --enable-authn-dbd      SQL-based authentication control
 
865
  --disable-authn-default authentication backstopper
 
866
  --enable-authn-alias    auth provider alias
 
867
  --disable-authz-host    host-based authorization control
 
868
  --disable-authz-groupfile
 
869
                          'require group' authorization control
 
870
  --disable-authz-user    'require user' authorization control
 
871
  --enable-authz-dbm      DBM-based authorization control
 
872
  --enable-authz-owner    'require file-owner' authorization control
 
873
  --enable-authnz-ldap    LDAP based authentication
 
874
  --disable-authz-default authorization control backstopper
 
875
  --disable-auth-basic    basic authentication
 
876
  --enable-auth-digest    RFC2617 Digest authentication
 
877
  --enable-isapi          isapi extension support
 
878
  --enable-file-cache     File cache
 
879
  --enable-cache          dynamic file caching
 
880
  --enable-disk-cache     disk caching module
 
881
  --enable-mem-cache      memory caching module
 
882
  --enable-dbd            Apache DBD Framework
 
883
  --enable-bucketeer      buckets manipulation filter
 
884
  --enable-dumpio         I/O dump filter
 
885
  --enable-echo           ECHO server
 
886
  --enable-example        example and demo module
 
887
  --enable-case-filter    example uppercase conversion filter
 
888
  --enable-case-filter-in example uppercase conversion input filter
 
889
  --enable-ext-filter     external filter module
 
890
  --disable-include       Server Side Includes
 
891
  --disable-filter        Smart Filtering
 
892
  --disable-charset-lite  character set translation
 
893
  --enable-charset-lite   character set translation
 
894
  --enable-deflate        Deflate transfer encoding support
 
895
  --enable-ldap           LDAP caching and connection pooling services
 
896
  --disable-log-config    logging configuration
 
897
  --enable-log-forensic   forensic logging
 
898
  --enable-logio          input and output logging
 
899
  --disable-env           clearing/setting of ENV vars
 
900
  --enable-mime-magic     automagically determining MIME type
 
901
  --enable-cern-meta      CERN-type meta files
 
902
  --enable-expires        Expires header control
 
903
  --enable-headers        HTTP header control
 
904
  --enable-ident          RFC 1413 identity check
 
905
  --enable-usertrack      user-session tracking
 
906
  --enable-unique-id      per-request unique ids
 
907
  --disable-setenvif      basing ENV vars on headers
 
908
  --enable-version        determining httpd version in config files
 
909
  --enable-proxy          Apache proxy module
 
910
  --enable-proxy-connect  Apache proxy CONNECT module
 
911
  --enable-proxy-ftp      Apache proxy FTP module
 
912
  --enable-proxy-http     Apache proxy HTTP module
 
913
  --enable-proxy-ajp      Apache proxy AJP module
 
914
  --enable-proxy-balancer Apache proxy BALANCER module
 
915
  --enable-ssl            SSL/TLS support (mod_ssl)
 
916
  --enable-distcache      Select distcache support in mod_ssl
 
917
  --enable-optional-hook-export
 
918
                          example optional hook exporter
 
919
  --enable-optional-hook-import
 
920
                          example optional hook importer
 
921
  --enable-optional-fn-import
 
922
                          example optional function importer
 
923
  --enable-optional-fn-export
 
924
                          example optional function exporter
 
925
  --enable-static-support Build a statically linked version of the support
 
926
                          binaries
 
927
  --enable-static-htpasswd
 
928
                          Build a statically linked version of htpasswd
 
929
  --enable-static-htdigest
 
930
                          Build a statically linked version of htdigest
 
931
  --enable-static-rotatelogs
 
932
                          Build a statically linked version of rotatelogs
 
933
  --enable-static-logresolve
 
934
                          Build a statically linked version of logresolve
 
935
  --enable-static-htdbm   Build a statically linked version of htdbm
 
936
  --enable-static-ab      Build a statically linked version of ab
 
937
  --enable-static-checkgid
 
938
                          Build a statically linked version of checkgid
 
939
  --enable-http           HTTP protocol handling
 
940
  --disable-mime          mapping of file-extension to MIME
 
941
  --enable-dav            WebDAV protocol handling
 
942
  --disable-status        process/thread monitoring
 
943
  --disable-autoindex     directory listing
 
944
  --disable-asis          as-is filetypes
 
945
  --enable-info           server information
 
946
  --enable-suexec         set uid and gid for spawned processes
 
947
  --disable-cgid          CGI scripts
 
948
  --enable-cgi            CGI scripts
 
949
  --disable-cgi           CGI scripts
 
950
  --enable-cgid           CGI scripts
 
951
  --enable-dav-fs         DAV provider for the filesystem
 
952
  --enable-dav-lock       DAV provider for generic locking
 
953
  --enable-vhost-alias    mass virtual hosting module
 
954
  --disable-negotiation   content negotiation
 
955
  --disable-dir           directory request handling
 
956
  --enable-imagemap       server-side imagemaps
 
957
  --disable-actions       Action triggering on requests
 
958
  --enable-speling        correct common URL misspellings
 
959
  --disable-userdir       mapping of requests to user-specific directories
 
960
  --disable-alias         mapping of requests to different filesystem parts
 
961
  --enable-rewrite        rule based URL manipulation
 
962
  --enable-so             DSO capability
 
963
 
 
964
Optional Packages:
 
965
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
966
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
967
  --with-included-apr     Use bundled copies of APR/APR-Util
 
968
  --with-apr=PATH         prefix for installed APR, path to APR build tree,
 
969
                          or the full path to apr-config
 
970
  --with-apr-util=PATH    prefix for installed APU, path to APU build tree,
 
971
                          or the full path to apu-config
 
972
  --with-pcre=PATH        Use external PCRE library
 
973
  --with-port=PORT        Port on which to listen (default is 80)
 
974
  --with-z=DIR            use a specific zlib library
 
975
  --with-sslc=DIR         RSA SSL-C SSL/TLS toolkit
 
976
  --with-ssl=DIR          OpenSSL SSL/TLS toolkit
 
977
  --with-mpm=MPM          Choose the process model for Apache to use.
 
978
                          MPM={beos|event|worker|prefork|mpmt_os2}
 
979
  --with-module=module-type:module-file
 
980
                          Enable module-file in the modules/<module-type>
 
981
                          directory.
 
982
  --with-program-name     alternate executable name
 
983
  --with-suexec-bin       Path to suexec binary
 
984
  --with-suexec-caller    User allowed to call SuExec
 
985
  --with-suexec-userdir   User subdirectory
 
986
  --with-suexec-docroot   SuExec root directory
 
987
  --with-suexec-uidmin    Minimal allowed UID
 
988
  --with-suexec-gidmin    Minimal allowed GID
 
989
  --with-suexec-logfile   Set the logfile
 
990
  --with-suexec-safepath  Set the safepath
 
991
  --with-suexec-umask     umask for suexec'd process
 
992
 
 
993
Some influential environment variables:
 
994
  CC          C compiler command
 
995
  CFLAGS      C compiler flags
 
996
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
997
              nonstandard directory <lib dir>
 
998
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
999
              headers in a nonstandard directory <include dir>
 
1000
  CPP         C preprocessor
 
1001
 
 
1002
Use these variables to override the choices made by `configure' or to help
 
1003
it to find libraries and programs with nonstandard names/locations.
 
1004
 
 
1005
_ACEOF
 
1006
fi
 
1007
 
 
1008
if test "$ac_init_help" = "recursive"; then
 
1009
  # If there are subdirs, report their specific --help.
 
1010
  ac_popdir=`pwd`
 
1011
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1012
    test -d $ac_dir || continue
 
1013
    ac_builddir=.
 
1014
 
 
1015
if test "$ac_dir" != .; then
 
1016
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1017
  # A "../" for each directory in $ac_dir_suffix.
 
1018
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1019
else
 
1020
  ac_dir_suffix= ac_top_builddir=
 
1021
fi
 
1022
 
 
1023
case $srcdir in
 
1024
  .)  # No --srcdir option.  We are building in place.
 
1025
    ac_srcdir=.
 
1026
    if test -z "$ac_top_builddir"; then
 
1027
       ac_top_srcdir=.
 
1028
    else
 
1029
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1030
    fi ;;
 
1031
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1032
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1033
    ac_top_srcdir=$srcdir ;;
 
1034
  *) # Relative path.
 
1035
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1036
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1037
esac
 
1038
 
 
1039
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1040
# the directories may not exist.
 
1041
case `pwd` in
 
1042
.) ac_abs_builddir="$ac_dir";;
 
1043
*)
 
1044
  case "$ac_dir" in
 
1045
  .) ac_abs_builddir=`pwd`;;
 
1046
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1047
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1048
  esac;;
 
1049
esac
 
1050
case $ac_abs_builddir in
 
1051
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1052
*)
 
1053
  case ${ac_top_builddir}. in
 
1054
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1055
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1056
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1057
  esac;;
 
1058
esac
 
1059
case $ac_abs_builddir in
 
1060
.) ac_abs_srcdir=$ac_srcdir;;
 
1061
*)
 
1062
  case $ac_srcdir in
 
1063
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1064
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1065
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1066
  esac;;
 
1067
esac
 
1068
case $ac_abs_builddir in
 
1069
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1070
*)
 
1071
  case $ac_top_srcdir in
 
1072
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1073
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1074
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1075
  esac;;
 
1076
esac
 
1077
 
 
1078
    cd $ac_dir
 
1079
    # Check for guested configure; otherwise get Cygnus style configure.
 
1080
    if test -f $ac_srcdir/configure.gnu; then
 
1081
      echo
 
1082
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1083
    elif test -f $ac_srcdir/configure; then
 
1084
      echo
 
1085
      $SHELL $ac_srcdir/configure  --help=recursive
 
1086
    elif test -f $ac_srcdir/configure.ac ||
 
1087
           test -f $ac_srcdir/configure.in; then
 
1088
      echo
 
1089
      $ac_configure --help
 
1090
    else
 
1091
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1092
    fi
 
1093
    cd $ac_popdir
 
1094
  done
 
1095
fi
 
1096
 
 
1097
test -n "$ac_init_help" && exit 0
 
1098
if $ac_init_version; then
 
1099
  cat <<\_ACEOF
 
1100
 
 
1101
Copyright (C) 2003 Free Software Foundation, Inc.
 
1102
This configure script is free software; the Free Software Foundation
 
1103
gives unlimited permission to copy, distribute and modify it.
 
1104
_ACEOF
 
1105
  exit 0
 
1106
fi
 
1107
exec 5>config.log
 
1108
cat >&5 <<_ACEOF
 
1109
This file contains any messages produced by compilers while
 
1110
running configure, to aid debugging if configure makes a mistake.
 
1111
 
 
1112
It was created by $as_me, which was
 
1113
generated by GNU Autoconf 2.59.  Invocation command line was
 
1114
 
 
1115
  $ $0 $@
 
1116
 
 
1117
_ACEOF
 
1118
{
 
1119
cat <<_ASUNAME
 
1120
## --------- ##
 
1121
## Platform. ##
 
1122
## --------- ##
 
1123
 
 
1124
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1125
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1126
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1127
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1128
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1129
 
 
1130
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1131
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1132
 
 
1133
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1134
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1135
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1136
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1137
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1138
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1139
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1140
 
 
1141
_ASUNAME
 
1142
 
 
1143
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1144
for as_dir in $PATH
 
1145
do
 
1146
  IFS=$as_save_IFS
 
1147
  test -z "$as_dir" && as_dir=.
 
1148
  echo "PATH: $as_dir"
 
1149
done
 
1150
 
 
1151
} >&5
 
1152
 
 
1153
cat >&5 <<_ACEOF
 
1154
 
 
1155
 
 
1156
## ----------- ##
 
1157
## Core tests. ##
 
1158
## ----------- ##
 
1159
 
 
1160
_ACEOF
 
1161
 
 
1162
 
 
1163
# Keep a trace of the command line.
 
1164
# Strip out --no-create and --no-recursion so they do not pile up.
 
1165
# Strip out --silent because we don't want to record it for future runs.
 
1166
# Also quote any args containing shell meta-characters.
 
1167
# Make two passes to allow for proper duplicate-argument suppression.
 
1168
ac_configure_args=
 
1169
ac_configure_args0=
 
1170
ac_configure_args1=
 
1171
ac_sep=
 
1172
ac_must_keep_next=false
 
1173
for ac_pass in 1 2
 
1174
do
 
1175
  for ac_arg
 
1176
  do
 
1177
    case $ac_arg in
 
1178
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1179
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1180
    | -silent | --silent | --silen | --sile | --sil)
 
1181
      continue ;;
 
1182
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1183
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1184
    esac
 
1185
    case $ac_pass in
 
1186
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1187
    2)
 
1188
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1189
      if test $ac_must_keep_next = true; then
 
1190
        ac_must_keep_next=false # Got value, back to normal.
 
1191
      else
 
1192
        case $ac_arg in
 
1193
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1194
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1195
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1196
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1197
            case "$ac_configure_args0 " in
 
1198
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1199
            esac
 
1200
            ;;
 
1201
          -* ) ac_must_keep_next=true ;;
 
1202
        esac
 
1203
      fi
 
1204
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1205
      # Get rid of the leading space.
 
1206
      ac_sep=" "
 
1207
      ;;
 
1208
    esac
 
1209
  done
 
1210
done
 
1211
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1212
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1213
 
 
1214
# When interrupted or exit'd, cleanup temporary files, and complete
 
1215
# config.log.  We remove comments because anyway the quotes in there
 
1216
# would cause problems or look ugly.
 
1217
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1218
# such as our DU 5.0 friend, will then `close' the trap.
 
1219
trap 'exit_status=$?
 
1220
  # Save into config.log some information that might help in debugging.
 
1221
  {
 
1222
    echo
 
1223
 
 
1224
    cat <<\_ASBOX
 
1225
## ---------------- ##
 
1226
## Cache variables. ##
 
1227
## ---------------- ##
 
1228
_ASBOX
 
1229
    echo
 
1230
    # The following way of writing the cache mishandles newlines in values,
 
1231
{
 
1232
  (set) 2>&1 |
 
1233
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1234
    *ac_space=\ *)
 
1235
      sed -n \
 
1236
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1237
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1238
      ;;
 
1239
    *)
 
1240
      sed -n \
 
1241
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1242
      ;;
 
1243
    esac;
 
1244
}
 
1245
    echo
 
1246
 
 
1247
    cat <<\_ASBOX
 
1248
## ----------------- ##
 
1249
## Output variables. ##
 
1250
## ----------------- ##
 
1251
_ASBOX
 
1252
    echo
 
1253
    for ac_var in $ac_subst_vars
 
1254
    do
 
1255
      eval ac_val=$`echo $ac_var`
 
1256
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1257
    done | sort
 
1258
    echo
 
1259
 
 
1260
    if test -n "$ac_subst_files"; then
 
1261
      cat <<\_ASBOX
 
1262
## ------------- ##
 
1263
## Output files. ##
 
1264
## ------------- ##
 
1265
_ASBOX
 
1266
      echo
 
1267
      for ac_var in $ac_subst_files
 
1268
      do
 
1269
        eval ac_val=$`echo $ac_var`
 
1270
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1271
      done | sort
 
1272
      echo
 
1273
    fi
 
1274
 
 
1275
    if test -s confdefs.h; then
 
1276
      cat <<\_ASBOX
 
1277
## ----------- ##
 
1278
## confdefs.h. ##
 
1279
## ----------- ##
 
1280
_ASBOX
 
1281
      echo
 
1282
      sed "/^$/d" confdefs.h | sort
 
1283
      echo
 
1284
    fi
 
1285
    test "$ac_signal" != 0 &&
 
1286
      echo "$as_me: caught signal $ac_signal"
 
1287
    echo "$as_me: exit $exit_status"
 
1288
  } >&5
 
1289
  rm -f core *.core &&
 
1290
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1291
    exit $exit_status
 
1292
     ' 0
 
1293
for ac_signal in 1 2 13 15; do
 
1294
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1295
done
 
1296
ac_signal=0
 
1297
 
 
1298
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1299
rm -rf conftest* confdefs.h
 
1300
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1301
echo >confdefs.h
 
1302
 
 
1303
# Predefined preprocessor variables.
 
1304
 
 
1305
cat >>confdefs.h <<_ACEOF
 
1306
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1307
_ACEOF
 
1308
 
 
1309
 
 
1310
cat >>confdefs.h <<_ACEOF
 
1311
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1312
_ACEOF
 
1313
 
 
1314
 
 
1315
cat >>confdefs.h <<_ACEOF
 
1316
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1317
_ACEOF
 
1318
 
 
1319
 
 
1320
cat >>confdefs.h <<_ACEOF
 
1321
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1322
_ACEOF
 
1323
 
 
1324
 
 
1325
cat >>confdefs.h <<_ACEOF
 
1326
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1327
_ACEOF
 
1328
 
 
1329
 
 
1330
# Let the site file select an alternate cache file if it wants to.
 
1331
# Prefer explicitly selected file to automatically selected ones.
 
1332
if test -z "$CONFIG_SITE"; then
 
1333
  if test "x$prefix" != xNONE; then
 
1334
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1335
  else
 
1336
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1337
  fi
 
1338
fi
 
1339
for ac_site_file in $CONFIG_SITE; do
 
1340
  if test -r "$ac_site_file"; then
 
1341
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1342
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1343
    sed 's/^/| /' "$ac_site_file" >&5
 
1344
    . "$ac_site_file"
 
1345
  fi
 
1346
done
 
1347
 
 
1348
if test -r "$cache_file"; then
 
1349
  # Some versions of bash will fail to source /dev/null (special
 
1350
  # files actually), so we avoid doing that.
 
1351
  if test -f "$cache_file"; then
 
1352
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1353
echo "$as_me: loading cache $cache_file" >&6;}
 
1354
    case $cache_file in
 
1355
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1356
      *)                      . ./$cache_file;;
 
1357
    esac
 
1358
  fi
 
1359
else
 
1360
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1361
echo "$as_me: creating cache $cache_file" >&6;}
 
1362
  >$cache_file
 
1363
fi
 
1364
 
 
1365
# Check that the precious variables saved in the cache have kept the same
 
1366
# value.
 
1367
ac_cache_corrupted=false
 
1368
for ac_var in `(set) 2>&1 |
 
1369
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1370
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1371
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1372
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1373
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1374
  case $ac_old_set,$ac_new_set in
 
1375
    set,)
 
1376
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1377
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1378
      ac_cache_corrupted=: ;;
 
1379
    ,set)
 
1380
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1381
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1382
      ac_cache_corrupted=: ;;
 
1383
    ,);;
 
1384
    *)
 
1385
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1386
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1387
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1388
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1389
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1390
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1391
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1392
        ac_cache_corrupted=:
 
1393
      fi;;
 
1394
  esac
 
1395
  # Pass precious variables to config.status.
 
1396
  if test "$ac_new_set" = set; then
 
1397
    case $ac_new_val in
 
1398
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1399
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1400
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1401
    esac
 
1402
    case " $ac_configure_args " in
 
1403
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1404
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1405
    esac
 
1406
  fi
 
1407
done
 
1408
if $ac_cache_corrupted; then
 
1409
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1410
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1411
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1412
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1413
   { (exit 1); exit 1; }; }
 
1414
fi
 
1415
 
 
1416
ac_ext=c
 
1417
ac_cpp='$CPP $CPPFLAGS'
 
1418
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1419
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1420
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1421
 
 
1422
 
 
1423
 
 
1424
 
 
1425
 
 
1426
 
 
1427
 
 
1428
 
 
1429
 
 
1430
 
 
1431
 
 
1432
 
 
1433
 
 
1434
 
 
1435
 
 
1436
 
 
1437
 
 
1438
 
 
1439
 
 
1440
 
 
1441
          ac_config_headers="$ac_config_headers include/ap_config_auto.h"
 
1442
 
 
1443
ac_aux_dir=
 
1444
for ac_dir in build $srcdir/build; do
 
1445
  if test -f $ac_dir/install-sh; then
 
1446
    ac_aux_dir=$ac_dir
 
1447
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1448
    break
 
1449
  elif test -f $ac_dir/install.sh; then
 
1450
    ac_aux_dir=$ac_dir
 
1451
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1452
    break
 
1453
  elif test -f $ac_dir/shtool; then
 
1454
    ac_aux_dir=$ac_dir
 
1455
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1456
    break
 
1457
  fi
 
1458
done
 
1459
if test -z "$ac_aux_dir"; then
 
1460
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
 
1461
echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
 
1462
   { (exit 1); exit 1; }; }
 
1463
fi
 
1464
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1465
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1466
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1467
 
 
1468
 
 
1469
 
 
1470
 
 
1471
 
 
1472
 
 
1473
 
 
1474
 
 
1475
 
 
1476
 
 
1477
 
 
1478
 
 
1479
 
 
1480
 
 
1481
 
 
1482
 
 
1483
 
 
1484
 
 
1485
 
 
1486
 
 
1487
 
 
1488
 
 
1489
 
 
1490
 
 
1491
 
 
1492
 
 
1493
 
 
1494
 
 
1495
 
 
1496
 
 
1497
 
 
1498
 
 
1499
 
 
1500
 
 
1501
 
 
1502
 
 
1503
 
 
1504
 
 
1505
 
 
1506
 
 
1507
 
 
1508
 
 
1509
 
 
1510
 
 
1511
 
 
1512
 
 
1513
 
 
1514
 
 
1515
 
 
1516
 
 
1517
 
 
1518
 
 
1519
 
 
1520
 
 
1521
 
 
1522
 
 
1523
 
 
1524
 
 
1525
 
 
1526
 
 
1527
 
 
1528
 
 
1529
 
 
1530
 
 
1531
 
 
1532
 
 
1533
 
 
1534
 
 
1535
 
 
1536
 
 
1537
 
 
1538
 
 
1539
 
 
1540
 
 
1541
 
 
1542
 
 
1543
 
 
1544
 
 
1545
 
 
1546
 
 
1547
 
 
1548
 
 
1549
 
 
1550
 
 
1551
 
 
1552
 
 
1553
 
 
1554
 
 
1555
 
 
1556
 
 
1557
 
 
1558
 
 
1559
 
 
1560
 
 
1561
 
 
1562
 
 
1563
 
 
1564
 
 
1565
 
 
1566
 
 
1567
 
 
1568
 
 
1569
 
 
1570
 
 
1571
 
 
1572
 
 
1573
 
 
1574
 
 
1575
 
 
1576
 
 
1577
 
 
1578
 
 
1579
 
 
1580
 
 
1581
 
 
1582
 
 
1583
 
 
1584
 
 
1585
 
 
1586
# Check whether --enable-layout or --disable-layout was given.
 
1587
if test "${enable_layout+set}" = set; then
 
1588
  enableval="$enable_layout"
 
1589
 
 
1590
  LAYOUT=$enableval
 
1591
 
 
1592
fi;
 
1593
 
 
1594
if test -z "$LAYOUT"; then
 
1595
  LAYOUT="Apache"
 
1596
fi
 
1597
 
 
1598
  if test ! -f $srcdir/config.layout; then
 
1599
    echo "** Error: Layout file $srcdir/config.layout not found"
 
1600
    echo "** Error: Cannot use undefined layout '$LAYOUT'"
 
1601
    exit 1
 
1602
  fi
 
1603
  # Catch layout names including a slash which will otherwise
 
1604
  # confuse the heck out of the sed script.
 
1605
  case $LAYOUT in
 
1606
  */*)
 
1607
    echo "** Error: $LAYOUT is not a valid layout name"
 
1608
    exit 1 ;;
 
1609
  esac
 
1610
  pldconf=./config.pld
 
1611
 
 
1612
  sed -e "1s/[  ]*<[lL]ayout[   ]*$LAYOUT[      ]*>[    ]*//;1t" \
 
1613
      -e "1,/[  ]*<[lL]ayout[   ]*$LAYOUT[      ]*>[    ]*/d" \
 
1614
      -e '/[    ]*<\/Layout>[   ]*/,$d' \
 
1615
      -e "s/^[  ]*//g" \
 
1616
      -e "s/:[  ]*/=\'/g" \
 
1617
      -e "s/[   ]*$/'/g" \
 
1618
      $srcdir/config.layout > $pldconf
 
1619
  layout_name=$LAYOUT
 
1620
  if test ! -s $pldconf; then
 
1621
    echo "** Error: unable to find layout $layout_name"
 
1622
    exit 1
 
1623
  fi
 
1624
  . $pldconf
 
1625
  rm $pldconf
 
1626
  for var in prefix exec_prefix bindir sbindir libexecdir mandir \
 
1627
             sysconfdir datadir includedir localstatedir runtimedir \
 
1628
             logfiledir libdir installbuilddir libsuffix errordir iconsdir htdocsdir cgidir; do
 
1629
    eval "val=\"\$$var\""
 
1630
    case $val in
 
1631
      *+)
 
1632
        val=`echo $val | sed -e 's;\+$;;'`
 
1633
        eval "$var=\"\$val\""
 
1634
        autosuffix=yes
 
1635
        ;;
 
1636
      *)
 
1637
        autosuffix=no
 
1638
        ;;
 
1639
    esac
 
1640
    val=`echo $val | sed -e 's:\(.\)/*$:\1:'`
 
1641
    val=`echo $val | sed -e 's:[\$]\([a-z_]*\):$\1:g'`
 
1642
    if test "$autosuffix" = "yes"; then
 
1643
      if echo $val | grep apache >/dev/null; then
 
1644
        addtarget=no
 
1645
      else
 
1646
        addtarget=yes
 
1647
      fi
 
1648
      if test "$addtarget" = "yes"; then
 
1649
        val="$val/apache2"
 
1650
      fi
 
1651
    fi
 
1652
    eval "$var='$val'"
 
1653
  done
 
1654
 
 
1655
 
 
1656
 
 
1657
echo "$as_me:$LINENO: checking for chosen layout" >&5
 
1658
echo $ECHO_N "checking for chosen layout... $ECHO_C" >&6
 
1659
echo "$as_me:$LINENO: result: $layout_name" >&5
 
1660
echo "${ECHO_T}$layout_name" >&6
 
1661
 
 
1662
 
 
1663
 
 
1664
ac_prev=
 
1665
for ac_option
 
1666
do
 
1667
  # If the previous option needs an argument, assign it.
 
1668
  if test -n "$ac_prev"; then
 
1669
    eval "$ac_prev=\$ac_option"
 
1670
    ac_prev=
 
1671
    continue
 
1672
  fi
 
1673
 
 
1674
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
1675
 
 
1676
  case $ac_option in
 
1677
 
 
1678
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
1679
    ac_prev=bindir ;;
 
1680
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
1681
    bindir="$ac_optarg" ;;
 
1682
 
 
1683
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
1684
    ac_prev=datadir ;;
 
1685
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
1686
  | --da=*)
 
1687
    datadir="$ac_optarg" ;;
 
1688
 
 
1689
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1690
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1691
  | --exec | --exe | --ex)
 
1692
    ac_prev=exec_prefix ;;
 
1693
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1694
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1695
  | --exec=* | --exe=* | --ex=*)
 
1696
    exec_prefix="$ac_optarg" ;;
 
1697
 
 
1698
  -includedir | --includedir | --includedi | --included | --include \
 
1699
  | --includ | --inclu | --incl | --inc)
 
1700
    ac_prev=includedir ;;
 
1701
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1702
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1703
    includedir="$ac_optarg" ;;
 
1704
 
 
1705
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1706
    ac_prev=infodir ;;
 
1707
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1708
    infodir="$ac_optarg" ;;
 
1709
 
 
1710
  -libdir | --libdir | --libdi | --libd)
 
1711
    ac_prev=libdir ;;
 
1712
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1713
    libdir="$ac_optarg" ;;
 
1714
 
 
1715
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1716
  | --libexe | --libex | --libe)
 
1717
    ac_prev=libexecdir ;;
 
1718
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1719
  | --libexe=* | --libex=* | --libe=*)
 
1720
    libexecdir="$ac_optarg" ;;
 
1721
 
 
1722
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1723
  | --localstate | --localstat | --localsta | --localst \
 
1724
  | --locals | --local | --loca | --loc | --lo)
 
1725
    ac_prev=localstatedir ;;
 
1726
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1727
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
1728
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
1729
    localstatedir="$ac_optarg" ;;
 
1730
 
 
1731
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1732
    ac_prev=mandir ;;
 
1733
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1734
    mandir="$ac_optarg" ;;
 
1735
 
 
1736
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1737
    ac_prev=prefix ;;
 
1738
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1739
    prefix="$ac_optarg" ;;
 
1740
 
 
1741
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1742
    ac_prev=sbindir ;;
 
1743
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1744
  | --sbi=* | --sb=*)
 
1745
    sbindir="$ac_optarg" ;;
 
1746
 
 
1747
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1748
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1749
  | --sharedst | --shareds | --shared | --share | --shar \
 
1750
  | --sha | --sh)
 
1751
    ac_prev=sharedstatedir ;;
 
1752
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1753
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1754
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1755
  | --sha=* | --sh=*)
 
1756
    sharedstatedir="$ac_optarg" ;;
 
1757
 
 
1758
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1759
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1760
    ac_prev=sysconfdir ;;
 
1761
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1762
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1763
    sysconfdir="$ac_optarg" ;;
 
1764
 
 
1765
  esac
 
1766
done
 
1767
 
 
1768
# Be sure to have absolute paths.
 
1769
for ac_var in exec_prefix prefix
 
1770
do
 
1771
  eval ac_val=$`echo $ac_var`
 
1772
  case $ac_val in
 
1773
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
1774
    *)  { { echo "$as_me:$LINENO: error: expected an absolute path for --$ac_var: $ac_val" >&5
 
1775
echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2;}
 
1776
   { (exit 1); exit 1; }; };;
 
1777
  esac
 
1778
done
 
1779
 
 
1780
 
 
1781
 
 
1782
 
 
1783
 
 
1784
 
 
1785
ap_last=
 
1786
ap_cur="$exec_prefix"
 
1787
while test "x${ap_cur}" != "x${ap_last}";
 
1788
do
 
1789
  ap_last="${ap_cur}"
 
1790
  ap_cur=`eval "echo ${ap_cur}"`
 
1791
done
 
1792
exp_exec_prefix="${ap_cur}"
 
1793
 
 
1794
 
 
1795
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_exec_prefix"
 
1796
 
 
1797
 
 
1798
 
 
1799
ap_stripped=`echo $exp_exec_prefix | sed -e "s#^${prefix}##"`
 
1800
# check if the stripping was successful
 
1801
if test "x$exp_exec_prefix" != "x${ap_stripped}"; then
 
1802
    # it was, so strip of any leading slashes
 
1803
    rel_exec_prefix="`echo ${ap_stripped} | sed -e 's#^/*##'`"
 
1804
else
 
1805
    # it wasn't so return the original
 
1806
    rel_exec_prefix="$exp_exec_prefix"
 
1807
fi
 
1808
 
 
1809
 
 
1810
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_exec_prefix"
 
1811
 
 
1812
 
 
1813
 
 
1814
 
 
1815
 
 
1816
ap_last=
 
1817
ap_cur="$bindir"
 
1818
while test "x${ap_cur}" != "x${ap_last}";
 
1819
do
 
1820
  ap_last="${ap_cur}"
 
1821
  ap_cur=`eval "echo ${ap_cur}"`
 
1822
done
 
1823
exp_bindir="${ap_cur}"
 
1824
 
 
1825
 
 
1826
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_bindir"
 
1827
 
 
1828
 
 
1829
 
 
1830
ap_stripped=`echo $exp_bindir | sed -e "s#^${prefix}##"`
 
1831
# check if the stripping was successful
 
1832
if test "x$exp_bindir" != "x${ap_stripped}"; then
 
1833
    # it was, so strip of any leading slashes
 
1834
    rel_bindir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
 
1835
else
 
1836
    # it wasn't so return the original
 
1837
    rel_bindir="$exp_bindir"
 
1838
fi
 
1839
 
 
1840
 
 
1841
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_bindir"
 
1842
 
 
1843
 
 
1844
 
 
1845
 
 
1846
 
 
1847
ap_last=
 
1848
ap_cur="$sbindir"
 
1849
while test "x${ap_cur}" != "x${ap_last}";
 
1850
do
 
1851
  ap_last="${ap_cur}"
 
1852
  ap_cur=`eval "echo ${ap_cur}"`
 
1853
done
 
1854
exp_sbindir="${ap_cur}"
 
1855
 
 
1856
 
 
1857
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_sbindir"
 
1858
 
 
1859
 
 
1860
 
 
1861
ap_stripped=`echo $exp_sbindir | sed -e "s#^${prefix}##"`
 
1862
# check if the stripping was successful
 
1863
if test "x$exp_sbindir" != "x${ap_stripped}"; then
 
1864
    # it was, so strip of any leading slashes
 
1865
    rel_sbindir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
 
1866
else
 
1867
    # it wasn't so return the original
 
1868
    rel_sbindir="$exp_sbindir"
 
1869
fi
 
1870
 
 
1871
 
 
1872
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_sbindir"
 
1873
 
 
1874
 
 
1875
 
 
1876
 
 
1877
 
 
1878
ap_last=
 
1879
ap_cur="$libdir"
 
1880
while test "x${ap_cur}" != "x${ap_last}";
 
1881
do
 
1882
  ap_last="${ap_cur}"
 
1883
  ap_cur=`eval "echo ${ap_cur}"`
 
1884
done
 
1885
exp_libdir="${ap_cur}"
 
1886
 
 
1887
 
 
1888
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_libdir"
 
1889
 
 
1890
 
 
1891
 
 
1892
ap_stripped=`echo $exp_libdir | sed -e "s#^${prefix}##"`
 
1893
# check if the stripping was successful
 
1894
if test "x$exp_libdir" != "x${ap_stripped}"; then
 
1895
    # it was, so strip of any leading slashes
 
1896
    rel_libdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
 
1897
else
 
1898
    # it wasn't so return the original
 
1899
    rel_libdir="$exp_libdir"
 
1900
fi
 
1901
 
 
1902
 
 
1903
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_libdir"
 
1904
 
 
1905
 
 
1906
 
 
1907
 
 
1908
 
 
1909
ap_last=
 
1910
ap_cur="$libexecdir"
 
1911
while test "x${ap_cur}" != "x${ap_last}";
 
1912
do
 
1913
  ap_last="${ap_cur}"
 
1914
  ap_cur=`eval "echo ${ap_cur}"`
 
1915
done
 
1916
exp_libexecdir="${ap_cur}"
 
1917
 
 
1918
 
 
1919
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_libexecdir"
 
1920
 
 
1921
 
 
1922
 
 
1923
ap_stripped=`echo $exp_libexecdir | sed -e "s#^${prefix}##"`
 
1924
# check if the stripping was successful
 
1925
if test "x$exp_libexecdir" != "x${ap_stripped}"; then
 
1926
    # it was, so strip of any leading slashes
 
1927
    rel_libexecdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
 
1928
else
 
1929
    # it wasn't so return the original
 
1930
    rel_libexecdir="$exp_libexecdir"
 
1931
fi
 
1932
 
 
1933
 
 
1934
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_libexecdir"
 
1935
 
 
1936
 
 
1937
 
 
1938
 
 
1939
 
 
1940
ap_last=
 
1941
ap_cur="$mandir"
 
1942
while test "x${ap_cur}" != "x${ap_last}";
 
1943
do
 
1944
  ap_last="${ap_cur}"
 
1945
  ap_cur=`eval "echo ${ap_cur}"`
 
1946
done
 
1947
exp_mandir="${ap_cur}"
 
1948
 
 
1949
 
 
1950
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_mandir"
 
1951
 
 
1952
 
 
1953
 
 
1954
ap_stripped=`echo $exp_mandir | sed -e "s#^${prefix}##"`
 
1955
# check if the stripping was successful
 
1956
if test "x$exp_mandir" != "x${ap_stripped}"; then
 
1957
    # it was, so strip of any leading slashes
 
1958
    rel_mandir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
 
1959
else
 
1960
    # it wasn't so return the original
 
1961
    rel_mandir="$exp_mandir"
 
1962
fi
 
1963
 
 
1964
 
 
1965
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_mandir"
 
1966
 
 
1967
 
 
1968
 
 
1969
 
 
1970
 
 
1971
ap_last=
 
1972
ap_cur="$sysconfdir"
 
1973
while test "x${ap_cur}" != "x${ap_last}";
 
1974
do
 
1975
  ap_last="${ap_cur}"
 
1976
  ap_cur=`eval "echo ${ap_cur}"`
 
1977
done
 
1978
exp_sysconfdir="${ap_cur}"
 
1979
 
 
1980
 
 
1981
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_sysconfdir"
 
1982
 
 
1983
 
 
1984
 
 
1985
ap_stripped=`echo $exp_sysconfdir | sed -e "s#^${prefix}##"`
 
1986
# check if the stripping was successful
 
1987
if test "x$exp_sysconfdir" != "x${ap_stripped}"; then
 
1988
    # it was, so strip of any leading slashes
 
1989
    rel_sysconfdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
 
1990
else
 
1991
    # it wasn't so return the original
 
1992
    rel_sysconfdir="$exp_sysconfdir"
 
1993
fi
 
1994
 
 
1995
 
 
1996
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_sysconfdir"
 
1997
 
 
1998
 
 
1999
 
 
2000
 
 
2001
 
 
2002
ap_last=
 
2003
ap_cur="$datadir"
 
2004
while test "x${ap_cur}" != "x${ap_last}";
 
2005
do
 
2006
  ap_last="${ap_cur}"
 
2007
  ap_cur=`eval "echo ${ap_cur}"`
 
2008
done
 
2009
exp_datadir="${ap_cur}"
 
2010
 
 
2011
 
 
2012
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_datadir"
 
2013
 
 
2014
 
 
2015
 
 
2016
ap_stripped=`echo $exp_datadir | sed -e "s#^${prefix}##"`
 
2017
# check if the stripping was successful
 
2018
if test "x$exp_datadir" != "x${ap_stripped}"; then
 
2019
    # it was, so strip of any leading slashes
 
2020
    rel_datadir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
 
2021
else
 
2022
    # it wasn't so return the original
 
2023
    rel_datadir="$exp_datadir"
 
2024
fi
 
2025
 
 
2026
 
 
2027
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_datadir"
 
2028
 
 
2029
 
 
2030
 
 
2031
 
 
2032
 
 
2033
ap_last=
 
2034
ap_cur="$installbuilddir"
 
2035
while test "x${ap_cur}" != "x${ap_last}";
 
2036
do
 
2037
  ap_last="${ap_cur}"
 
2038
  ap_cur=`eval "echo ${ap_cur}"`
 
2039
done
 
2040
exp_installbuilddir="${ap_cur}"
 
2041
 
 
2042
 
 
2043
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_installbuilddir"
 
2044
 
 
2045
 
 
2046
 
 
2047
ap_stripped=`echo $exp_installbuilddir | sed -e "s#^${prefix}##"`
 
2048
# check if the stripping was successful
 
2049
if test "x$exp_installbuilddir" != "x${ap_stripped}"; then
 
2050
    # it was, so strip of any leading slashes
 
2051
    rel_installbuilddir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
 
2052
else
 
2053
    # it wasn't so return the original
 
2054
    rel_installbuilddir="$exp_installbuilddir"
 
2055
fi
 
2056
 
 
2057
 
 
2058
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_installbuilddir"
 
2059
 
 
2060
 
 
2061
 
 
2062
 
 
2063
 
 
2064
ap_last=
 
2065
ap_cur="$errordir"
 
2066
while test "x${ap_cur}" != "x${ap_last}";
 
2067
do
 
2068
  ap_last="${ap_cur}"
 
2069
  ap_cur=`eval "echo ${ap_cur}"`
 
2070
done
 
2071
exp_errordir="${ap_cur}"
 
2072
 
 
2073
 
 
2074
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_errordir"
 
2075
 
 
2076
 
 
2077
 
 
2078
ap_stripped=`echo $exp_errordir | sed -e "s#^${prefix}##"`
 
2079
# check if the stripping was successful
 
2080
if test "x$exp_errordir" != "x${ap_stripped}"; then
 
2081
    # it was, so strip of any leading slashes
 
2082
    rel_errordir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
 
2083
else
 
2084
    # it wasn't so return the original
 
2085
    rel_errordir="$exp_errordir"
 
2086
fi
 
2087
 
 
2088
 
 
2089
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_errordir"
 
2090
 
 
2091
 
 
2092
 
 
2093
 
 
2094
 
 
2095
ap_last=
 
2096
ap_cur="$iconsdir"
 
2097
while test "x${ap_cur}" != "x${ap_last}";
 
2098
do
 
2099
  ap_last="${ap_cur}"
 
2100
  ap_cur=`eval "echo ${ap_cur}"`
 
2101
done
 
2102
exp_iconsdir="${ap_cur}"
 
2103
 
 
2104
 
 
2105
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_iconsdir"
 
2106
 
 
2107
 
 
2108
 
 
2109
ap_stripped=`echo $exp_iconsdir | sed -e "s#^${prefix}##"`
 
2110
# check if the stripping was successful
 
2111
if test "x$exp_iconsdir" != "x${ap_stripped}"; then
 
2112
    # it was, so strip of any leading slashes
 
2113
    rel_iconsdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
 
2114
else
 
2115
    # it wasn't so return the original
 
2116
    rel_iconsdir="$exp_iconsdir"
 
2117
fi
 
2118
 
 
2119
 
 
2120
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_iconsdir"
 
2121
 
 
2122
 
 
2123
 
 
2124
 
 
2125
 
 
2126
ap_last=
 
2127
ap_cur="$htdocsdir"
 
2128
while test "x${ap_cur}" != "x${ap_last}";
 
2129
do
 
2130
  ap_last="${ap_cur}"
 
2131
  ap_cur=`eval "echo ${ap_cur}"`
 
2132
done
 
2133
exp_htdocsdir="${ap_cur}"
 
2134
 
 
2135
 
 
2136
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_htdocsdir"
 
2137
 
 
2138
 
 
2139
 
 
2140
ap_stripped=`echo $exp_htdocsdir | sed -e "s#^${prefix}##"`
 
2141
# check if the stripping was successful
 
2142
if test "x$exp_htdocsdir" != "x${ap_stripped}"; then
 
2143
    # it was, so strip of any leading slashes
 
2144
    rel_htdocsdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
 
2145
else
 
2146
    # it wasn't so return the original
 
2147
    rel_htdocsdir="$exp_htdocsdir"
 
2148
fi
 
2149
 
 
2150
 
 
2151
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_htdocsdir"
 
2152
 
 
2153
 
 
2154
 
 
2155
 
 
2156
 
 
2157
ap_last=
 
2158
ap_cur="$manualdir"
 
2159
while test "x${ap_cur}" != "x${ap_last}";
 
2160
do
 
2161
  ap_last="${ap_cur}"
 
2162
  ap_cur=`eval "echo ${ap_cur}"`
 
2163
done
 
2164
exp_manualdir="${ap_cur}"
 
2165
 
 
2166
 
 
2167
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_manualdir"
 
2168
 
 
2169
 
 
2170
 
 
2171
ap_stripped=`echo $exp_manualdir | sed -e "s#^${prefix}##"`
 
2172
# check if the stripping was successful
 
2173
if test "x$exp_manualdir" != "x${ap_stripped}"; then
 
2174
    # it was, so strip of any leading slashes
 
2175
    rel_manualdir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
 
2176
else
 
2177
    # it wasn't so return the original
 
2178
    rel_manualdir="$exp_manualdir"
 
2179
fi
 
2180
 
 
2181
 
 
2182
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_manualdir"
 
2183
 
 
2184
 
 
2185
 
 
2186
 
 
2187
 
 
2188
ap_last=
 
2189
ap_cur="$cgidir"
 
2190
while test "x${ap_cur}" != "x${ap_last}";
 
2191
do
 
2192
  ap_last="${ap_cur}"
 
2193
  ap_cur=`eval "echo ${ap_cur}"`
 
2194
done
 
2195
exp_cgidir="${ap_cur}"
 
2196
 
 
2197
 
 
2198
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_cgidir"
 
2199
 
 
2200
 
 
2201
 
 
2202
ap_stripped=`echo $exp_cgidir | sed -e "s#^${prefix}##"`
 
2203
# check if the stripping was successful
 
2204
if test "x$exp_cgidir" != "x${ap_stripped}"; then
 
2205
    # it was, so strip of any leading slashes
 
2206
    rel_cgidir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
 
2207
else
 
2208
    # it wasn't so return the original
 
2209
    rel_cgidir="$exp_cgidir"
 
2210
fi
 
2211
 
 
2212
 
 
2213
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_cgidir"
 
2214
 
 
2215
 
 
2216
 
 
2217
 
 
2218
 
 
2219
ap_last=
 
2220
ap_cur="$includedir"
 
2221
while test "x${ap_cur}" != "x${ap_last}";
 
2222
do
 
2223
  ap_last="${ap_cur}"
 
2224
  ap_cur=`eval "echo ${ap_cur}"`
 
2225
done
 
2226
exp_includedir="${ap_cur}"
 
2227
 
 
2228
 
 
2229
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_includedir"
 
2230
 
 
2231
 
 
2232
 
 
2233
ap_stripped=`echo $exp_includedir | sed -e "s#^${prefix}##"`
 
2234
# check if the stripping was successful
 
2235
if test "x$exp_includedir" != "x${ap_stripped}"; then
 
2236
    # it was, so strip of any leading slashes
 
2237
    rel_includedir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
 
2238
else
 
2239
    # it wasn't so return the original
 
2240
    rel_includedir="$exp_includedir"
 
2241
fi
 
2242
 
 
2243
 
 
2244
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_includedir"
 
2245
 
 
2246
 
 
2247
 
 
2248
 
 
2249
 
 
2250
ap_last=
 
2251
ap_cur="$localstatedir"
 
2252
while test "x${ap_cur}" != "x${ap_last}";
 
2253
do
 
2254
  ap_last="${ap_cur}"
 
2255
  ap_cur=`eval "echo ${ap_cur}"`
 
2256
done
 
2257
exp_localstatedir="${ap_cur}"
 
2258
 
 
2259
 
 
2260
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_localstatedir"
 
2261
 
 
2262
 
 
2263
 
 
2264
ap_stripped=`echo $exp_localstatedir | sed -e "s#^${prefix}##"`
 
2265
# check if the stripping was successful
 
2266
if test "x$exp_localstatedir" != "x${ap_stripped}"; then
 
2267
    # it was, so strip of any leading slashes
 
2268
    rel_localstatedir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
 
2269
else
 
2270
    # it wasn't so return the original
 
2271
    rel_localstatedir="$exp_localstatedir"
 
2272
fi
 
2273
 
 
2274
 
 
2275
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_localstatedir"
 
2276
 
 
2277
 
 
2278
 
 
2279
 
 
2280
 
 
2281
ap_last=
 
2282
ap_cur="$runtimedir"
 
2283
while test "x${ap_cur}" != "x${ap_last}";
 
2284
do
 
2285
  ap_last="${ap_cur}"
 
2286
  ap_cur=`eval "echo ${ap_cur}"`
 
2287
done
 
2288
exp_runtimedir="${ap_cur}"
 
2289
 
 
2290
 
 
2291
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_runtimedir"
 
2292
 
 
2293
 
 
2294
 
 
2295
ap_stripped=`echo $exp_runtimedir | sed -e "s#^${prefix}##"`
 
2296
# check if the stripping was successful
 
2297
if test "x$exp_runtimedir" != "x${ap_stripped}"; then
 
2298
    # it was, so strip of any leading slashes
 
2299
    rel_runtimedir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
 
2300
else
 
2301
    # it wasn't so return the original
 
2302
    rel_runtimedir="$exp_runtimedir"
 
2303
fi
 
2304
 
 
2305
 
 
2306
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_runtimedir"
 
2307
 
 
2308
 
 
2309
 
 
2310
 
 
2311
 
 
2312
ap_last=
 
2313
ap_cur="$logfiledir"
 
2314
while test "x${ap_cur}" != "x${ap_last}";
 
2315
do
 
2316
  ap_last="${ap_cur}"
 
2317
  ap_cur=`eval "echo ${ap_cur}"`
 
2318
done
 
2319
exp_logfiledir="${ap_cur}"
 
2320
 
 
2321
 
 
2322
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_logfiledir"
 
2323
 
 
2324
 
 
2325
 
 
2326
ap_stripped=`echo $exp_logfiledir | sed -e "s#^${prefix}##"`
 
2327
# check if the stripping was successful
 
2328
if test "x$exp_logfiledir" != "x${ap_stripped}"; then
 
2329
    # it was, so strip of any leading slashes
 
2330
    rel_logfiledir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
 
2331
else
 
2332
    # it wasn't so return the original
 
2333
    rel_logfiledir="$exp_logfiledir"
 
2334
fi
 
2335
 
 
2336
 
 
2337
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_logfiledir"
 
2338
 
 
2339
 
 
2340
 
 
2341
 
 
2342
 
 
2343
ap_last=
 
2344
ap_cur="$proxycachedir"
 
2345
while test "x${ap_cur}" != "x${ap_last}";
 
2346
do
 
2347
  ap_last="${ap_cur}"
 
2348
  ap_cur=`eval "echo ${ap_cur}"`
 
2349
done
 
2350
exp_proxycachedir="${ap_cur}"
 
2351
 
 
2352
 
 
2353
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exp_proxycachedir"
 
2354
 
 
2355
 
 
2356
 
 
2357
ap_stripped=`echo $exp_proxycachedir | sed -e "s#^${prefix}##"`
 
2358
# check if the stripping was successful
 
2359
if test "x$exp_proxycachedir" != "x${ap_stripped}"; then
 
2360
    # it was, so strip of any leading slashes
 
2361
    rel_proxycachedir="`echo ${ap_stripped} | sed -e 's#^/*##'`"
 
2362
else
 
2363
    # it wasn't so return the original
 
2364
    rel_proxycachedir="$exp_proxycachedir"
 
2365
fi
 
2366
 
 
2367
 
 
2368
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_proxycachedir"
 
2369
 
 
2370
 
 
2371
 
 
2372
 
 
2373
 
 
2374
 
 
2375
  apr_ste_save_CPPFLAGS="$CPPFLAGS"
 
2376
 
 
2377
 
 
2378
  apr_ste_save_CFLAGS="$CFLAGS"
 
2379
 
 
2380
 
 
2381
  apr_ste_save_CXXFLAGS="$CXXFLAGS"
 
2382
 
 
2383
 
 
2384
  apr_ste_save_LDFLAGS="$LDFLAGS"
 
2385
 
 
2386
 
 
2387
  apr_ste_save_LIBS="$LIBS"
 
2388
 
 
2389
 
 
2390
  apr_ste_save_INCLUDES="$INCLUDES"
 
2391
 
 
2392
 
 
2393
 
 
2394
  rm -f config.nice
 
2395
  cat >config.nice<<EOF
 
2396
#! /bin/sh
 
2397
#
 
2398
# Created by configure
 
2399
 
 
2400
EOF
 
2401
  if test -n "$CC"; then
 
2402
    echo "CC=\"$CC\"; export CC" >> config.nice
 
2403
  fi
 
2404
  if test -n "$CFLAGS"; then
 
2405
    echo "CFLAGS=\"$CFLAGS\"; export CFLAGS" >> config.nice
 
2406
  fi
 
2407
  if test -n "$CPPFLAGS"; then
 
2408
    echo "CPPFLAGS=\"$CPPFLAGS\"; export CPPFLAGS" >> config.nice
 
2409
  fi
 
2410
  if test -n "$LDFLAGS"; then
 
2411
    echo "LDFLAGS=\"$LDFLAGS\"; export LDFLAGS" >> config.nice
 
2412
  fi
 
2413
  if test -n "$LTFLAGS"; then
 
2414
    echo "LTFLAGS=\"$LTFLAGS\"; export LTFLAGS" >> config.nice
 
2415
  fi
 
2416
  if test -n "$LIBS"; then
 
2417
    echo "LIBS=\"$LIBS\"; export LIBS" >> config.nice
 
2418
  fi
 
2419
  if test -n "$INCLUDES"; then
 
2420
    echo "INCLUDES=\"$INCLUDES\"; export INCLUDES" >> config.nice
 
2421
  fi
 
2422
  if test -n "$NOTEST_CFLAGS"; then
 
2423
    echo "NOTEST_CFLAGS=\"$NOTEST_CFLAGS\"; export NOTEST_CFLAGS" >> config.nice
 
2424
  fi
 
2425
  if test -n "$NOTEST_CPPFLAGS"; then
 
2426
    echo "NOTEST_CPPFLAGS=\"$NOTEST_CPPFLAGS\"; export NOTEST_CPPFLAGS" >> config.nice
 
2427
  fi
 
2428
  if test -n "$NOTEST_LDFLAGS"; then
 
2429
    echo "NOTEST_LDFLAGS=\"$NOTEST_LDFLAGS\"; export NOTEST_LDFLAGS" >> config.nice
 
2430
  fi
 
2431
  if test -n "$NOTEST_LIBS"; then
 
2432
    echo "NOTEST_LIBS=\"$NOTEST_LIBS\"; export NOTEST_LIBS" >> config.nice
 
2433
  fi
 
2434
 
 
2435
  for arg in $0 "$@"; do
 
2436
 
 
2437
ap_last=
 
2438
ap_cur="$arg"
 
2439
while test "x${ap_cur}" != "x${ap_last}";
 
2440
do
 
2441
  ap_last="${ap_cur}"
 
2442
  ap_cur=`eval "echo ${ap_cur}"`
 
2443
done
 
2444
arg="${ap_cur}"
 
2445
 
 
2446
    echo "\"$arg\" \\" >> config.nice
 
2447
  done
 
2448
  echo '"$@"' >> config.nice
 
2449
  chmod +x config.nice
 
2450
 
 
2451
 
 
2452
nl='
 
2453
'
 
2454
 
 
2455
  echo "$as_me:$LINENO: checking for working mkdir -p" >&5
 
2456
echo $ECHO_N "checking for working mkdir -p... $ECHO_C" >&6
 
2457
if test "${ac_cv_mkdir_p+set}" = set; then
 
2458
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2459
else
 
2460
 
 
2461
    test -d conftestdir && rm -rf conftestdir
 
2462
    mkdir -p conftestdir/somedir >/dev/null 2>&1
 
2463
    if test -d conftestdir/somedir; then
 
2464
      ac_cv_mkdir_p=yes
 
2465
    else
 
2466
      ac_cv_mkdir_p=no
 
2467
    fi
 
2468
    rm -rf conftestdir
 
2469
 
 
2470
fi
 
2471
echo "$as_me:$LINENO: result: $ac_cv_mkdir_p" >&5
 
2472
echo "${ECHO_T}$ac_cv_mkdir_p" >&6
 
2473
  if test "$ac_cv_mkdir_p" = "yes"; then
 
2474
      mkdir_p="mkdir -p"
 
2475
  else
 
2476
      mkdir_p="$top_srcdir/build/mkdir.sh"
 
2477
  fi
 
2478
 
 
2479
 
 
2480
 
 
2481
 
 
2482
# Make sure we can run config.sub.
 
2483
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
2484
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
2485
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
2486
   { (exit 1); exit 1; }; }
 
2487
 
 
2488
echo "$as_me:$LINENO: checking build system type" >&5
 
2489
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
2490
if test "${ac_cv_build+set}" = set; then
 
2491
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2492
else
 
2493
  ac_cv_build_alias=$build_alias
 
2494
test -z "$ac_cv_build_alias" &&
 
2495
  ac_cv_build_alias=`$ac_config_guess`
 
2496
test -z "$ac_cv_build_alias" &&
 
2497
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
2498
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
2499
   { (exit 1); exit 1; }; }
 
2500
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
2501
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
2502
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
2503
   { (exit 1); exit 1; }; }
 
2504
 
 
2505
fi
 
2506
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
2507
echo "${ECHO_T}$ac_cv_build" >&6
 
2508
build=$ac_cv_build
 
2509
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
2510
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
2511
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
2512
 
 
2513
 
 
2514
echo "$as_me:$LINENO: checking host system type" >&5
 
2515
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
2516
if test "${ac_cv_host+set}" = set; then
 
2517
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2518
else
 
2519
  ac_cv_host_alias=$host_alias
 
2520
test -z "$ac_cv_host_alias" &&
 
2521
  ac_cv_host_alias=$ac_cv_build_alias
 
2522
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
2523
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
2524
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
2525
   { (exit 1); exit 1; }; }
 
2526
 
 
2527
fi
 
2528
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
2529
echo "${ECHO_T}$ac_cv_host" >&6
 
2530
host=$ac_cv_host
 
2531
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
2532
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
2533
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
2534
 
 
2535
 
 
2536
echo "$as_me:$LINENO: checking target system type" >&5
 
2537
echo $ECHO_N "checking target system type... $ECHO_C" >&6
 
2538
if test "${ac_cv_target+set}" = set; then
 
2539
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2540
else
 
2541
  ac_cv_target_alias=$target_alias
 
2542
test "x$ac_cv_target_alias" = "x" &&
 
2543
  ac_cv_target_alias=$ac_cv_host_alias
 
2544
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
 
2545
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
 
2546
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
 
2547
   { (exit 1); exit 1; }; }
 
2548
 
 
2549
fi
 
2550
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
 
2551
echo "${ECHO_T}$ac_cv_target" >&6
 
2552
target=$ac_cv_target
 
2553
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
2554
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
2555
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
2556
 
 
2557
 
 
2558
# The aliases save the names the user supplied, while $host etc.
 
2559
# will get canonicalized.
 
2560
test -n "$target_alias" &&
 
2561
  test "$program_prefix$program_suffix$program_transform_name" = \
 
2562
    NONENONEs,x,x, &&
 
2563
  program_prefix=${target_alias}-
 
2564
 
 
2565
orig_prefix="$prefix"
 
2566
 
 
2567
echo $ac_n "${nl}Configuring Apache Portable Runtime library ...${nl}"
 
2568
 
 
2569
 
 
2570
# Check whether --with-included-apr or --without-included-apr was given.
 
2571
if test "${with_included_apr+set}" = set; then
 
2572
  withval="$with_included_apr"
 
2573
 
 
2574
fi;
 
2575
 
 
2576
# Only APR 1.x is supported.
 
2577
apr_version=1
 
2578
 
 
2579
if test "x$with_included_apr" = "xyes"; then
 
2580
   apr_found=reconfig
 
2581
   apr_config="$srcdir/srclib/apr/apr-${apr_version}-config"
 
2582
else
 
2583
 
 
2584
  apr_found="no"
 
2585
 
 
2586
  if test "$target_os" = "os2-emx"; then
 
2587
    # Scripts don't pass test -x on OS/2
 
2588
    TEST_X="test -f"
 
2589
  else
 
2590
    TEST_X="test -x"
 
2591
  fi
 
2592
 
 
2593
  acceptable_majors="${apr_version}"
 
2594
 
 
2595
  apr_temp_acceptable_apr_config=""
 
2596
  for apr_temp_major in $acceptable_majors
 
2597
  do
 
2598
    case $apr_temp_major in
 
2599
      0)
 
2600
      apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
 
2601
      ;;
 
2602
      *)
 
2603
      apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
 
2604
      ;;
 
2605
    esac
 
2606
  done
 
2607
 
 
2608
  echo "$as_me:$LINENO: checking for APR" >&5
 
2609
echo $ECHO_N "checking for APR... $ECHO_C" >&6
 
2610
 
 
2611
# Check whether --with-apr or --without-apr was given.
 
2612
if test "${with_apr+set}" = set; then
 
2613
  withval="$with_apr"
 
2614
 
 
2615
    if test "$withval" = "no" || test "$withval" = "yes"; then
 
2616
      { { echo "$as_me:$LINENO: error: --with-apr requires a directory or file to be provided" >&5
 
2617
echo "$as_me: error: --with-apr requires a directory or file to be provided" >&2;}
 
2618
   { (exit 1); exit 1; }; }
 
2619
    fi
 
2620
 
 
2621
    for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
 
2622
    do
 
2623
      for lookdir in "$withval/bin" "$withval"
 
2624
      do
 
2625
        if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
 
2626
          apr_found="yes"
 
2627
          apr_config="$lookdir/$apr_temp_apr_config_file"
 
2628
          break 2
 
2629
        fi
 
2630
      done
 
2631
    done
 
2632
 
 
2633
    if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
 
2634
      apr_found="yes"
 
2635
      apr_config="$withval"
 
2636
    fi
 
2637
 
 
2638
            if test "$apr_found" != "yes"; then
 
2639
      { { echo "$as_me:$LINENO: error: the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file." >&5
 
2640
echo "$as_me: error: the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file." >&2;}
 
2641
   { (exit 1); exit 1; }; }
 
2642
    fi
 
2643
 
 
2644
else
 
2645
 
 
2646
        if test -n "1" && test "1" = "1"; then
 
2647
      for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
 
2648
      do
 
2649
        if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
 
2650
          apr_found="yes"
 
2651
          apr_config="$apr_temp_apr_config_file"
 
2652
          break
 
2653
        else
 
2654
                    for lookdir in /usr /usr/local /usr/local/apr /opt/apr /usr/local/apache2; do
 
2655
            if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
 
2656
              apr_found="yes"
 
2657
              apr_config="$lookdir/bin/$apr_temp_apr_config_file"
 
2658
              break 2
 
2659
            fi
 
2660
          done
 
2661
        fi
 
2662
      done
 
2663
    fi
 
2664
        if test "$apr_found" = "no" && test -d ""$srcdir/srclib/apr""; then
 
2665
      apr_temp_abs_srcdir="`cd "$srcdir/srclib/apr" && pwd`"
 
2666
      apr_found="reconfig"
 
2667
      apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \""$srcdir/srclib/apr"/include/apr_version.h\"`"
 
2668
      case $apr_bundled_major in
 
2669
        "")
 
2670
          { { echo "$as_me:$LINENO: error: failed to find major version of bundled APR" >&5
 
2671
echo "$as_me: error: failed to find major version of bundled APR" >&2;}
 
2672
   { (exit 1); exit 1; }; }
 
2673
        ;;
 
2674
        0)
 
2675
          apr_temp_apr_config_file="apr-config"
 
2676
        ;;
 
2677
        *)
 
2678
          apr_temp_apr_config_file="apr-$apr_bundled_major-config"
 
2679
        ;;
 
2680
      esac
 
2681
      if test -n ""./srclib/apr""; then
 
2682
        apr_config=""./srclib/apr"/$apr_temp_apr_config_file"
 
2683
      else
 
2684
        apr_config=""$srcdir/srclib/apr"/$apr_temp_apr_config_file"
 
2685
      fi
 
2686
    fi
 
2687
 
 
2688
fi;
 
2689
 
 
2690
  echo "$as_me:$LINENO: result: $apr_found" >&5
 
2691
echo "${ECHO_T}$apr_found" >&6
 
2692
 
 
2693
fi
 
2694
 
 
2695
if test "$apr_found" = "no"; then
 
2696
  { { echo "$as_me:$LINENO: error: APR not found.  Please read the documentation." >&5
 
2697
echo "$as_me: error: APR not found.  Please read the documentation." >&2;}
 
2698
   { (exit 1); exit 1; }; }
 
2699
fi
 
2700
 
 
2701
if test "$apr_found" = "reconfig"; then
 
2702
 
 
2703
  # save our work to this point; this allows the sub-package to use it
 
2704
  cat >confcache <<\_ACEOF
 
2705
# This file is a shell script that caches the results of configure
 
2706
# tests run on this system so they can be shared between configure
 
2707
# scripts and configure runs, see configure's option --config-cache.
 
2708
# It is not useful on other systems.  If it contains results you don't
 
2709
# want to keep, you may remove or edit it.
 
2710
#
 
2711
# config.status only pays attention to the cache file if you give it
 
2712
# the --recheck option to rerun configure.
 
2713
#
 
2714
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
2715
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
2716
# following values.
 
2717
 
 
2718
_ACEOF
 
2719
 
 
2720
# The following way of writing the cache mishandles newlines in values,
 
2721
# but we know of no workaround that is simple, portable, and efficient.
 
2722
# So, don't put newlines in cache variables' values.
 
2723
# Ultrix sh set writes to stderr and can't be redirected directly,
 
2724
# and sets the high bit in the cache file unless we assign to the vars.
 
2725
{
 
2726
  (set) 2>&1 |
 
2727
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
2728
    *ac_space=\ *)
 
2729
      # `set' does not quote correctly, so add quotes (double-quote
 
2730
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
2731
      sed -n \
 
2732
        "s/'/'\\\\''/g;
 
2733
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
2734
      ;;
 
2735
    *)
 
2736
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
2737
      sed -n \
 
2738
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
2739
      ;;
 
2740
    esac;
 
2741
} |
 
2742
  sed '
 
2743
     t clear
 
2744
     : clear
 
2745
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
2746
     t end
 
2747
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
2748
     : end' >>confcache
 
2749
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
2750
  if test -w $cache_file; then
 
2751
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
2752
    cat confcache >$cache_file
 
2753
  else
 
2754
    echo "not updating unwritable cache $cache_file"
 
2755
  fi
 
2756
fi
 
2757
rm -f confcache
 
2758
 
 
2759
  echo "configuring package in srclib/apr now"
 
2760
  ac_popdir=`pwd`
 
2761
  apr_config_subdirs="srclib/apr"
 
2762
  test -d srclib/apr || $mkdir_p srclib/apr
 
2763
  ac_abs_srcdir=`(cd $srcdir/srclib/apr && pwd)`
 
2764
  cd srclib/apr
 
2765
 
 
2766
      # A "../" for each directory in /$config_subdirs.
 
2767
      ac_dots=`echo $apr_config_subdirs|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
 
2768
 
 
2769
  # Make the cache file pathname absolute for the subdirs
 
2770
  # required to correctly handle subdirs that might actually
 
2771
  # be symlinks
 
2772
  case "$cache_file" in
 
2773
  /*) # already absolute
 
2774
    ac_sub_cache_file=$cache_file ;;
 
2775
  *)  # Was relative path.
 
2776
    ac_sub_cache_file="$ac_popdir/$cache_file" ;;
 
2777
  esac
 
2778
 
 
2779
 
 
2780
  apr_configure_args=
 
2781
  apr_sep=
 
2782
  for apr_configure_arg in $ac_configure_args
 
2783
  do
 
2784
    case "$apr_configure_arg" in
 
2785
      --enable-layout=*|\'--enable-layout=*)
 
2786
        continue ;;
 
2787
    esac
 
2788
    apr_configure_args="$apr_configure_args$apr_sep'$apr_configure_arg'"
 
2789
    apr_sep=" "
 
2790
  done
 
2791
 
 
2792
 
 
2793
  # autoconf doesn't add --silent to ac_configure_args; explicitly pass it
 
2794
  test "x$silent" = "xyes" && apr_configure_args="$apr_configure_args --silent"
 
2795
 
 
2796
              if eval $SHELL $ac_abs_srcdir/configure $apr_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_abs_srcdir $apache_apr_flags --prefix=$prefix --exec-prefix=$exec_prefix --libdir=$libdir --includedir=$includedir --bindir=$bindir --datadir=$datadir --with-installbuilddir=$installbuilddir
 
2797
  then :
 
2798
    echo "srclib/apr configured properly"
 
2799
  else
 
2800
    echo "configure failed for srclib/apr"
 
2801
    exit 1
 
2802
  fi
 
2803
 
 
2804
  cd $ac_popdir
 
2805
 
 
2806
  # grab any updates from the sub-package
 
2807
  if test -r "$cache_file"; then
 
2808
  # Some versions of bash will fail to source /dev/null (special
 
2809
  # files actually), so we avoid doing that.
 
2810
  if test -f "$cache_file"; then
 
2811
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
2812
echo "$as_me: loading cache $cache_file" >&6;}
 
2813
    case $cache_file in
 
2814
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
2815
      *)                      . ./$cache_file;;
 
2816
    esac
 
2817
  fi
 
2818
else
 
2819
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
2820
echo "$as_me: creating cache $cache_file" >&6;}
 
2821
  >$cache_file
 
2822
fi
 
2823
 
 
2824
 
 
2825
    AP_BUILD_SRCLIB_DIRS="apr $AP_BUILD_SRCLIB_DIRS"
 
2826
  AP_CLEAN_SRCLIB_DIRS="$AP_CLEAN_SRCLIB_DIRS apr"
 
2827
fi
 
2828
 
 
2829
 
 
2830
  if test -z "$CC"; then
 
2831
    test "x$silent" != "xyes" && echo "  setting CC to \"`$apr_config --cc`\""
 
2832
    CC="`$apr_config --cc`"
 
2833
  fi
 
2834
 
 
2835
 
 
2836
  if test -z "$CPP"; then
 
2837
    test "x$silent" != "xyes" && echo "  setting CPP to \"`$apr_config --cpp`\""
 
2838
    CPP="`$apr_config --cpp`"
 
2839
  fi
 
2840
 
 
2841
 
 
2842
  if test "x$CFLAGS" = "x"; then
 
2843
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"`$apr_config --cflags`\""
 
2844
    CFLAGS="`$apr_config --cflags`"
 
2845
  else
 
2846
    apr_addto_bugger="`$apr_config --cflags`"
 
2847
    for i in $apr_addto_bugger; do
 
2848
      apr_addto_duplicate="0"
 
2849
      for j in $CFLAGS; do
 
2850
        if test "x$i" = "x$j"; then
 
2851
          apr_addto_duplicate="1"
 
2852
          break
 
2853
        fi
 
2854
      done
 
2855
      if test $apr_addto_duplicate = "0"; then
 
2856
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
 
2857
        CFLAGS="$CFLAGS $i"
 
2858
      fi
 
2859
    done
 
2860
  fi
 
2861
 
 
2862
 
 
2863
  if test "x$CPPFLAGS" = "x"; then
 
2864
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"`$apr_config --cppflags`\""
 
2865
    CPPFLAGS="`$apr_config --cppflags`"
 
2866
  else
 
2867
    apr_addto_bugger="`$apr_config --cppflags`"
 
2868
    for i in $apr_addto_bugger; do
 
2869
      apr_addto_duplicate="0"
 
2870
      for j in $CPPFLAGS; do
 
2871
        if test "x$i" = "x$j"; then
 
2872
          apr_addto_duplicate="1"
 
2873
          break
 
2874
        fi
 
2875
      done
 
2876
      if test $apr_addto_duplicate = "0"; then
 
2877
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
2878
        CPPFLAGS="$CPPFLAGS $i"
 
2879
      fi
 
2880
    done
 
2881
  fi
 
2882
 
 
2883
 
 
2884
  if test "x$LDFLAGS" = "x"; then
 
2885
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"`$apr_config --ldflags`\""
 
2886
    LDFLAGS="`$apr_config --ldflags`"
 
2887
  else
 
2888
    apr_addto_bugger="`$apr_config --ldflags`"
 
2889
    for i in $apr_addto_bugger; do
 
2890
      apr_addto_duplicate="0"
 
2891
      for j in $LDFLAGS; do
 
2892
        if test "x$i" = "x$j"; then
 
2893
          apr_addto_duplicate="1"
 
2894
          break
 
2895
        fi
 
2896
      done
 
2897
      if test $apr_addto_duplicate = "0"; then
 
2898
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
 
2899
        LDFLAGS="$LDFLAGS $i"
 
2900
      fi
 
2901
    done
 
2902
  fi
 
2903
 
 
2904
SHLIBPATH_VAR=`$apr_config --shlib-path-var`
 
2905
APR_BINDIR=`$apr_config --bindir`
 
2906
APR_INCLUDEDIR=`$apr_config --includedir`
 
2907
APR_VERSION=`$apr_config --version`
 
2908
APR_CONFIG="$APR_BINDIR/apr-`echo ${APR_VERSION} | sed 's,\..*,,'`-config"
 
2909
 
 
2910
echo $ac_n "${nl}Configuring Apache Portable Runtime Utility library...${nl}"
 
2911
 
 
2912
# Only APR-util 1.x is supported.
 
2913
apu_version=1
 
2914
 
 
2915
if test "x$with_included_apr" = "xyes"; then
 
2916
   apu_found=reconfig
 
2917
   apu_config="${srcdir}/srclib/apr-util/apu-${apu_version}-config"
 
2918
else
 
2919
 
 
2920
  apu_found="no"
 
2921
 
 
2922
  if test "$target_os" = "os2-emx"; then
 
2923
    # Scripts don't pass test -x on OS/2
 
2924
    TEST_X="test -f"
 
2925
  else
 
2926
    TEST_X="test -x"
 
2927
  fi
 
2928
 
 
2929
  acceptable_majors="${apu_version}"
 
2930
 
 
2931
  apu_temp_acceptable_apu_config=""
 
2932
  for apu_temp_major in $acceptable_majors
 
2933
  do
 
2934
    case $apu_temp_major in
 
2935
      0)
 
2936
      apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-config"
 
2937
      ;;
 
2938
      *)
 
2939
      apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-$apu_temp_major-config"
 
2940
      ;;
 
2941
    esac
 
2942
  done
 
2943
 
 
2944
  echo "$as_me:$LINENO: checking for APR-util" >&5
 
2945
echo $ECHO_N "checking for APR-util... $ECHO_C" >&6
 
2946
 
 
2947
# Check whether --with-apr-util or --without-apr-util was given.
 
2948
if test "${with_apr_util+set}" = set; then
 
2949
  withval="$with_apr_util"
 
2950
 
 
2951
    if test "$withval" = "no" || test "$withval" = "yes"; then
 
2952
      { { echo "$as_me:$LINENO: error: --with-apr-util requires a directory or file to be provided" >&5
 
2953
echo "$as_me: error: --with-apr-util requires a directory or file to be provided" >&2;}
 
2954
   { (exit 1); exit 1; }; }
 
2955
    fi
 
2956
 
 
2957
    for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
 
2958
    do
 
2959
      for lookdir in "$withval/bin" "$withval"
 
2960
      do
 
2961
        if $TEST_X "$lookdir/$apu_temp_apu_config_file"; then
 
2962
          apu_found="yes"
 
2963
          apu_config="$lookdir/$apu_temp_apu_config_file"
 
2964
          break 2
 
2965
        fi
 
2966
      done
 
2967
    done
 
2968
 
 
2969
    if test "$apu_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
 
2970
      apu_found="yes"
 
2971
      apu_config="$withval"
 
2972
    fi
 
2973
 
 
2974
            if test "$apu_found" != "yes"; then
 
2975
      { { echo "$as_me:$LINENO: error: the --with-apr-util parameter is incorrect. It must specify an install prefix, a build directory, or an apu-config file." >&5
 
2976
echo "$as_me: error: the --with-apr-util parameter is incorrect. It must specify an install prefix, a build directory, or an apu-config file." >&2;}
 
2977
   { (exit 1); exit 1; }; }
 
2978
    fi
 
2979
 
 
2980
else
 
2981
 
 
2982
    if test -n "1" && test "1" = "1"; then
 
2983
      for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
 
2984
      do
 
2985
        if $apu_temp_apu_config_file --help > /dev/null 2>&1 ; then
 
2986
          apu_found="yes"
 
2987
          apu_config="$apu_temp_apu_config_file"
 
2988
          break
 
2989
        else
 
2990
                    for lookdir in /usr /usr/local /usr/local/apr /opt/apr /usr/local/apache2 ; do
 
2991
            if $TEST_X "$lookdir/bin/$apu_temp_apu_config_file"; then
 
2992
              apu_found="yes"
 
2993
              apu_config="$lookdir/bin/$apu_temp_apu_config_file"
 
2994
              break 2
 
2995
            fi
 
2996
          done
 
2997
        fi
 
2998
      done
 
2999
    fi
 
3000
        if test "$apu_found" = "no" && test -d ""$srcdir/srclib/apr-util""; then
 
3001
      apu_temp_abs_srcdir="`cd "$srcdir/srclib/apr-util" && pwd`"
 
3002
      apu_found="reconfig"
 
3003
      apu_bundled_major="`sed -n '/#define.*APU_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \""$srcdir/srclib/apr-util"/include/apu_version.h\"`"
 
3004
      case $apu_bundled_major in
 
3005
        "")
 
3006
          { { echo "$as_me:$LINENO: error: failed to find major version of bundled APU" >&5
 
3007
echo "$as_me: error: failed to find major version of bundled APU" >&2;}
 
3008
   { (exit 1); exit 1; }; }
 
3009
        ;;
 
3010
        0)
 
3011
          apu_temp_apu_config_file="apu-config"
 
3012
        ;;
 
3013
        *)
 
3014
          apu_temp_apu_config_file="apu-$apu_bundled_major-config"
 
3015
        ;;
 
3016
      esac
 
3017
      if test -n ""./srclib/apr-util""; then
 
3018
        apu_config=""./srclib/apr-util"/$apu_temp_apu_config_file"
 
3019
      else
 
3020
        apu_config=""$srcdir/srclib/apr-util"/$apu_temp_apu_config_file"
 
3021
      fi
 
3022
    fi
 
3023
 
 
3024
fi;
 
3025
 
 
3026
  echo "$as_me:$LINENO: result: $apu_found" >&5
 
3027
echo "${ECHO_T}$apu_found" >&6
 
3028
 
 
3029
fi
 
3030
 
 
3031
if test "$apu_found" = "no"; then
 
3032
  { { echo "$as_me:$LINENO: error: APR-util not found.  Please read the documentation." >&5
 
3033
echo "$as_me: error: APR-util not found.  Please read the documentation." >&2;}
 
3034
   { (exit 1); exit 1; }; }
 
3035
fi
 
3036
 
 
3037
# Catch some misconfigurations:
 
3038
case ${apr_found}.${apu_found} in
 
3039
reconfig.yes)
 
3040
  { { echo "$as_me:$LINENO: error: Cannot use an external APR-util with the bundled APR" >&5
 
3041
echo "$as_me: error: Cannot use an external APR-util with the bundled APR" >&2;}
 
3042
   { (exit 1); exit 1; }; }
 
3043
  ;;
 
3044
yes.reconfig)
 
3045
  { { echo "$as_me:$LINENO: error: Cannot use an external APR with the bundled APR-util" >&5
 
3046
echo "$as_me: error: Cannot use an external APR with the bundled APR-util" >&2;}
 
3047
   { (exit 1); exit 1; }; }
 
3048
  ;;
 
3049
esac
 
3050
 
 
3051
if test "$apu_found" = "reconfig"; then
 
3052
 
 
3053
  # save our work to this point; this allows the sub-package to use it
 
3054
  cat >confcache <<\_ACEOF
 
3055
# This file is a shell script that caches the results of configure
 
3056
# tests run on this system so they can be shared between configure
 
3057
# scripts and configure runs, see configure's option --config-cache.
 
3058
# It is not useful on other systems.  If it contains results you don't
 
3059
# want to keep, you may remove or edit it.
 
3060
#
 
3061
# config.status only pays attention to the cache file if you give it
 
3062
# the --recheck option to rerun configure.
 
3063
#
 
3064
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
3065
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
3066
# following values.
 
3067
 
 
3068
_ACEOF
 
3069
 
 
3070
# The following way of writing the cache mishandles newlines in values,
 
3071
# but we know of no workaround that is simple, portable, and efficient.
 
3072
# So, don't put newlines in cache variables' values.
 
3073
# Ultrix sh set writes to stderr and can't be redirected directly,
 
3074
# and sets the high bit in the cache file unless we assign to the vars.
 
3075
{
 
3076
  (set) 2>&1 |
 
3077
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
3078
    *ac_space=\ *)
 
3079
      # `set' does not quote correctly, so add quotes (double-quote
 
3080
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
3081
      sed -n \
 
3082
        "s/'/'\\\\''/g;
 
3083
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
3084
      ;;
 
3085
    *)
 
3086
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
3087
      sed -n \
 
3088
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
3089
      ;;
 
3090
    esac;
 
3091
} |
 
3092
  sed '
 
3093
     t clear
 
3094
     : clear
 
3095
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
3096
     t end
 
3097
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
3098
     : end' >>confcache
 
3099
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
3100
  if test -w $cache_file; then
 
3101
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
3102
    cat confcache >$cache_file
 
3103
  else
 
3104
    echo "not updating unwritable cache $cache_file"
 
3105
  fi
 
3106
fi
 
3107
rm -f confcache
 
3108
 
 
3109
  echo "configuring package in srclib/apr-util now"
 
3110
  ac_popdir=`pwd`
 
3111
  apr_config_subdirs="srclib/apr-util"
 
3112
  test -d srclib/apr-util || $mkdir_p srclib/apr-util
 
3113
  ac_abs_srcdir=`(cd $srcdir/srclib/apr-util && pwd)`
 
3114
  cd srclib/apr-util
 
3115
 
 
3116
      # A "../" for each directory in /$config_subdirs.
 
3117
      ac_dots=`echo $apr_config_subdirs|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
 
3118
 
 
3119
  # Make the cache file pathname absolute for the subdirs
 
3120
  # required to correctly handle subdirs that might actually
 
3121
  # be symlinks
 
3122
  case "$cache_file" in
 
3123
  /*) # already absolute
 
3124
    ac_sub_cache_file=$cache_file ;;
 
3125
  *)  # Was relative path.
 
3126
    ac_sub_cache_file="$ac_popdir/$cache_file" ;;
 
3127
  esac
 
3128
 
 
3129
 
 
3130
  apr_configure_args=
 
3131
  apr_sep=
 
3132
  for apr_configure_arg in $ac_configure_args
 
3133
  do
 
3134
    case "$apr_configure_arg" in
 
3135
      --enable-layout=*|\'--enable-layout=*)
 
3136
        continue ;;
 
3137
    esac
 
3138
    apr_configure_args="$apr_configure_args$apr_sep'$apr_configure_arg'"
 
3139
    apr_sep=" "
 
3140
  done
 
3141
 
 
3142
 
 
3143
  # autoconf doesn't add --silent to ac_configure_args; explicitly pass it
 
3144
  test "x$silent" = "xyes" && apr_configure_args="$apr_configure_args --silent"
 
3145
 
 
3146
              if eval $SHELL $ac_abs_srcdir/configure $apr_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_abs_srcdir --with-apr=../apr --prefix=$prefix --exec-prefix=$exec_prefix --libdir=$libdir --includedir=$includedir --bindir=$bindir
 
3147
  then :
 
3148
    echo "srclib/apr-util configured properly"
 
3149
  else
 
3150
    echo "configure failed for srclib/apr-util"
 
3151
    exit 1
 
3152
  fi
 
3153
 
 
3154
  cd $ac_popdir
 
3155
 
 
3156
  # grab any updates from the sub-package
 
3157
  if test -r "$cache_file"; then
 
3158
  # Some versions of bash will fail to source /dev/null (special
 
3159
  # files actually), so we avoid doing that.
 
3160
  if test -f "$cache_file"; then
 
3161
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
3162
echo "$as_me: loading cache $cache_file" >&6;}
 
3163
    case $cache_file in
 
3164
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
3165
      *)                      . ./$cache_file;;
 
3166
    esac
 
3167
  fi
 
3168
else
 
3169
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
3170
echo "$as_me: creating cache $cache_file" >&6;}
 
3171
  >$cache_file
 
3172
fi
 
3173
 
 
3174
 
 
3175
    AP_BUILD_SRCLIB_DIRS="$AP_BUILD_SRCLIB_DIRS apr-util"
 
3176
  AP_CLEAN_SRCLIB_DIRS="apr-util $AP_CLEAN_SRCLIB_DIRS"
 
3177
fi
 
3178
 
 
3179
 
 
3180
  if test "x$LDFLAGS" = "x"; then
 
3181
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"`$apu_config --ldflags`\""
 
3182
    LDFLAGS="`$apu_config --ldflags`"
 
3183
  else
 
3184
    apr_addto_bugger="`$apu_config --ldflags`"
 
3185
    for i in $apr_addto_bugger; do
 
3186
      apr_addto_duplicate="0"
 
3187
      for j in $LDFLAGS; do
 
3188
        if test "x$i" = "x$j"; then
 
3189
          apr_addto_duplicate="1"
 
3190
          break
 
3191
        fi
 
3192
      done
 
3193
      if test $apr_addto_duplicate = "0"; then
 
3194
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
 
3195
        LDFLAGS="$LDFLAGS $i"
 
3196
      fi
 
3197
    done
 
3198
  fi
 
3199
 
 
3200
APU_BINDIR=`$apu_config --bindir`
 
3201
APU_INCLUDEDIR=`$apu_config --includedir`
 
3202
APU_VERSION=`$apu_config --version`
 
3203
APU_CONFIG="$APU_BINDIR/apu-`echo ${APU_VERSION} | sed 's,\..*,,'`-config"
 
3204
 
 
3205
ac_ext=c
 
3206
ac_cpp='$CPP $CPPFLAGS'
 
3207
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3208
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3209
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3210
if test -n "$ac_tool_prefix"; then
 
3211
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
3212
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
3213
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3214
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3215
if test "${ac_cv_prog_CC+set}" = set; then
 
3216
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3217
else
 
3218
  if test -n "$CC"; then
 
3219
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3220
else
 
3221
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3222
for as_dir in $PATH
 
3223
do
 
3224
  IFS=$as_save_IFS
 
3225
  test -z "$as_dir" && as_dir=.
 
3226
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3227
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3228
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3229
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3230
    break 2
 
3231
  fi
 
3232
done
 
3233
done
 
3234
 
 
3235
fi
 
3236
fi
 
3237
CC=$ac_cv_prog_CC
 
3238
if test -n "$CC"; then
 
3239
  echo "$as_me:$LINENO: result: $CC" >&5
 
3240
echo "${ECHO_T}$CC" >&6
 
3241
else
 
3242
  echo "$as_me:$LINENO: result: no" >&5
 
3243
echo "${ECHO_T}no" >&6
 
3244
fi
 
3245
 
 
3246
fi
 
3247
if test -z "$ac_cv_prog_CC"; then
 
3248
  ac_ct_CC=$CC
 
3249
  # Extract the first word of "gcc", so it can be a program name with args.
 
3250
set dummy gcc; ac_word=$2
 
3251
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3252
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3253
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3254
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3255
else
 
3256
  if test -n "$ac_ct_CC"; then
 
3257
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3258
else
 
3259
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3260
for as_dir in $PATH
 
3261
do
 
3262
  IFS=$as_save_IFS
 
3263
  test -z "$as_dir" && as_dir=.
 
3264
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3265
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3266
    ac_cv_prog_ac_ct_CC="gcc"
 
3267
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3268
    break 2
 
3269
  fi
 
3270
done
 
3271
done
 
3272
 
 
3273
fi
 
3274
fi
 
3275
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3276
if test -n "$ac_ct_CC"; then
 
3277
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3278
echo "${ECHO_T}$ac_ct_CC" >&6
 
3279
else
 
3280
  echo "$as_me:$LINENO: result: no" >&5
 
3281
echo "${ECHO_T}no" >&6
 
3282
fi
 
3283
 
 
3284
  CC=$ac_ct_CC
 
3285
else
 
3286
  CC="$ac_cv_prog_CC"
 
3287
fi
 
3288
 
 
3289
if test -z "$CC"; then
 
3290
  if test -n "$ac_tool_prefix"; then
 
3291
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3292
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3293
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3294
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3295
if test "${ac_cv_prog_CC+set}" = set; then
 
3296
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3297
else
 
3298
  if test -n "$CC"; then
 
3299
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3300
else
 
3301
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3302
for as_dir in $PATH
 
3303
do
 
3304
  IFS=$as_save_IFS
 
3305
  test -z "$as_dir" && as_dir=.
 
3306
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3307
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3308
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3309
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3310
    break 2
 
3311
  fi
 
3312
done
 
3313
done
 
3314
 
 
3315
fi
 
3316
fi
 
3317
CC=$ac_cv_prog_CC
 
3318
if test -n "$CC"; then
 
3319
  echo "$as_me:$LINENO: result: $CC" >&5
 
3320
echo "${ECHO_T}$CC" >&6
 
3321
else
 
3322
  echo "$as_me:$LINENO: result: no" >&5
 
3323
echo "${ECHO_T}no" >&6
 
3324
fi
 
3325
 
 
3326
fi
 
3327
if test -z "$ac_cv_prog_CC"; then
 
3328
  ac_ct_CC=$CC
 
3329
  # Extract the first word of "cc", so it can be a program name with args.
 
3330
set dummy cc; ac_word=$2
 
3331
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3332
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3333
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3334
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3335
else
 
3336
  if test -n "$ac_ct_CC"; then
 
3337
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3338
else
 
3339
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3340
for as_dir in $PATH
 
3341
do
 
3342
  IFS=$as_save_IFS
 
3343
  test -z "$as_dir" && as_dir=.
 
3344
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3345
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3346
    ac_cv_prog_ac_ct_CC="cc"
 
3347
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3348
    break 2
 
3349
  fi
 
3350
done
 
3351
done
 
3352
 
 
3353
fi
 
3354
fi
 
3355
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3356
if test -n "$ac_ct_CC"; then
 
3357
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3358
echo "${ECHO_T}$ac_ct_CC" >&6
 
3359
else
 
3360
  echo "$as_me:$LINENO: result: no" >&5
 
3361
echo "${ECHO_T}no" >&6
 
3362
fi
 
3363
 
 
3364
  CC=$ac_ct_CC
 
3365
else
 
3366
  CC="$ac_cv_prog_CC"
 
3367
fi
 
3368
 
 
3369
fi
 
3370
if test -z "$CC"; then
 
3371
  # Extract the first word of "cc", so it can be a program name with args.
 
3372
set dummy cc; ac_word=$2
 
3373
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3374
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3375
if test "${ac_cv_prog_CC+set}" = set; then
 
3376
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3377
else
 
3378
  if test -n "$CC"; then
 
3379
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3380
else
 
3381
  ac_prog_rejected=no
 
3382
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3383
for as_dir in $PATH
 
3384
do
 
3385
  IFS=$as_save_IFS
 
3386
  test -z "$as_dir" && as_dir=.
 
3387
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3388
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3389
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3390
       ac_prog_rejected=yes
 
3391
       continue
 
3392
     fi
 
3393
    ac_cv_prog_CC="cc"
 
3394
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3395
    break 2
 
3396
  fi
 
3397
done
 
3398
done
 
3399
 
 
3400
if test $ac_prog_rejected = yes; then
 
3401
  # We found a bogon in the path, so make sure we never use it.
 
3402
  set dummy $ac_cv_prog_CC
 
3403
  shift
 
3404
  if test $# != 0; then
 
3405
    # We chose a different compiler from the bogus one.
 
3406
    # However, it has the same basename, so the bogon will be chosen
 
3407
    # first if we set CC to just the basename; use the full file name.
 
3408
    shift
 
3409
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3410
  fi
 
3411
fi
 
3412
fi
 
3413
fi
 
3414
CC=$ac_cv_prog_CC
 
3415
if test -n "$CC"; then
 
3416
  echo "$as_me:$LINENO: result: $CC" >&5
 
3417
echo "${ECHO_T}$CC" >&6
 
3418
else
 
3419
  echo "$as_me:$LINENO: result: no" >&5
 
3420
echo "${ECHO_T}no" >&6
 
3421
fi
 
3422
 
 
3423
fi
 
3424
if test -z "$CC"; then
 
3425
  if test -n "$ac_tool_prefix"; then
 
3426
  for ac_prog in cl
 
3427
  do
 
3428
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3429
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3430
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3431
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3432
if test "${ac_cv_prog_CC+set}" = set; then
 
3433
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3434
else
 
3435
  if test -n "$CC"; then
 
3436
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3437
else
 
3438
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3439
for as_dir in $PATH
 
3440
do
 
3441
  IFS=$as_save_IFS
 
3442
  test -z "$as_dir" && as_dir=.
 
3443
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3444
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3445
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3446
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3447
    break 2
 
3448
  fi
 
3449
done
 
3450
done
 
3451
 
 
3452
fi
 
3453
fi
 
3454
CC=$ac_cv_prog_CC
 
3455
if test -n "$CC"; then
 
3456
  echo "$as_me:$LINENO: result: $CC" >&5
 
3457
echo "${ECHO_T}$CC" >&6
 
3458
else
 
3459
  echo "$as_me:$LINENO: result: no" >&5
 
3460
echo "${ECHO_T}no" >&6
 
3461
fi
 
3462
 
 
3463
    test -n "$CC" && break
 
3464
  done
 
3465
fi
 
3466
if test -z "$CC"; then
 
3467
  ac_ct_CC=$CC
 
3468
  for ac_prog in cl
 
3469
do
 
3470
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3471
set dummy $ac_prog; ac_word=$2
 
3472
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3473
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3474
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3475
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3476
else
 
3477
  if test -n "$ac_ct_CC"; then
 
3478
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3479
else
 
3480
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3481
for as_dir in $PATH
 
3482
do
 
3483
  IFS=$as_save_IFS
 
3484
  test -z "$as_dir" && as_dir=.
 
3485
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3486
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3487
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3488
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3489
    break 2
 
3490
  fi
 
3491
done
 
3492
done
 
3493
 
 
3494
fi
 
3495
fi
 
3496
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3497
if test -n "$ac_ct_CC"; then
 
3498
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3499
echo "${ECHO_T}$ac_ct_CC" >&6
 
3500
else
 
3501
  echo "$as_me:$LINENO: result: no" >&5
 
3502
echo "${ECHO_T}no" >&6
 
3503
fi
 
3504
 
 
3505
  test -n "$ac_ct_CC" && break
 
3506
done
 
3507
 
 
3508
  CC=$ac_ct_CC
 
3509
fi
 
3510
 
 
3511
fi
 
3512
 
 
3513
 
 
3514
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
3515
See \`config.log' for more details." >&5
 
3516
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
3517
See \`config.log' for more details." >&2;}
 
3518
   { (exit 1); exit 1; }; }
 
3519
 
 
3520
# Provide some information about the compiler.
 
3521
echo "$as_me:$LINENO:" \
 
3522
     "checking for C compiler version" >&5
 
3523
ac_compiler=`set X $ac_compile; echo $2`
 
3524
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
3525
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
3526
  ac_status=$?
 
3527
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3528
  (exit $ac_status); }
 
3529
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
3530
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
3531
  ac_status=$?
 
3532
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3533
  (exit $ac_status); }
 
3534
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
3535
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
3536
  ac_status=$?
 
3537
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3538
  (exit $ac_status); }
 
3539
 
 
3540
cat >conftest.$ac_ext <<_ACEOF
 
3541
/* confdefs.h.  */
 
3542
_ACEOF
 
3543
cat confdefs.h >>conftest.$ac_ext
 
3544
cat >>conftest.$ac_ext <<_ACEOF
 
3545
/* end confdefs.h.  */
 
3546
 
 
3547
int
 
3548
main ()
 
3549
{
 
3550
 
 
3551
  ;
 
3552
  return 0;
 
3553
}
 
3554
_ACEOF
 
3555
ac_clean_files_save=$ac_clean_files
 
3556
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
3557
# Try to create an executable without -o first, disregard a.out.
 
3558
# It will help us diagnose broken compilers, and finding out an intuition
 
3559
# of exeext.
 
3560
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
3561
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
3562
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3563
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
3564
  (eval $ac_link_default) 2>&5
 
3565
  ac_status=$?
 
3566
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3567
  (exit $ac_status); }; then
 
3568
  # Find the output, starting from the most likely.  This scheme is
 
3569
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
3570
# resort.
 
3571
 
 
3572
# Be careful to initialize this variable, since it used to be cached.
 
3573
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
3574
ac_cv_exeext=
 
3575
# b.out is created by i960 compilers.
 
3576
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
3577
do
 
3578
  test -f "$ac_file" || continue
 
3579
  case $ac_file in
 
3580
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
3581
        ;;
 
3582
    conftest.$ac_ext )
 
3583
        # This is the source file.
 
3584
        ;;
 
3585
    [ab].out )
 
3586
        # We found the default executable, but exeext='' is most
 
3587
        # certainly right.
 
3588
        break;;
 
3589
    *.* )
 
3590
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3591
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
3592
        # but it would be cool to find out if it's true.  Does anybody
 
3593
        # maintain Libtool? --akim.
 
3594
        export ac_cv_exeext
 
3595
        break;;
 
3596
    * )
 
3597
        break;;
 
3598
  esac
 
3599
done
 
3600
else
 
3601
  echo "$as_me: failed program was:" >&5
 
3602
sed 's/^/| /' conftest.$ac_ext >&5
 
3603
 
 
3604
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
3605
See \`config.log' for more details." >&5
 
3606
echo "$as_me: error: C compiler cannot create executables
 
3607
See \`config.log' for more details." >&2;}
 
3608
   { (exit 77); exit 77; }; }
 
3609
fi
 
3610
 
 
3611
ac_exeext=$ac_cv_exeext
 
3612
echo "$as_me:$LINENO: result: $ac_file" >&5
 
3613
echo "${ECHO_T}$ac_file" >&6
 
3614
 
 
3615
# Check the compiler produces executables we can run.  If not, either
 
3616
# the compiler is broken, or we cross compile.
 
3617
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
3618
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
3619
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
3620
# If not cross compiling, check that we can run a simple program.
 
3621
if test "$cross_compiling" != yes; then
 
3622
  if { ac_try='./$ac_file'
 
3623
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3624
  (eval $ac_try) 2>&5
 
3625
  ac_status=$?
 
3626
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3627
  (exit $ac_status); }; }; then
 
3628
    cross_compiling=no
 
3629
  else
 
3630
    if test "$cross_compiling" = maybe; then
 
3631
        cross_compiling=yes
 
3632
    else
 
3633
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
3634
If you meant to cross compile, use \`--host'.
 
3635
See \`config.log' for more details." >&5
 
3636
echo "$as_me: error: cannot run C compiled programs.
 
3637
If you meant to cross compile, use \`--host'.
 
3638
See \`config.log' for more details." >&2;}
 
3639
   { (exit 1); exit 1; }; }
 
3640
    fi
 
3641
  fi
 
3642
fi
 
3643
echo "$as_me:$LINENO: result: yes" >&5
 
3644
echo "${ECHO_T}yes" >&6
 
3645
 
 
3646
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
3647
ac_clean_files=$ac_clean_files_save
 
3648
# Check the compiler produces executables we can run.  If not, either
 
3649
# the compiler is broken, or we cross compile.
 
3650
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
3651
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
3652
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
3653
echo "${ECHO_T}$cross_compiling" >&6
 
3654
 
 
3655
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
3656
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
3657
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3658
  (eval $ac_link) 2>&5
 
3659
  ac_status=$?
 
3660
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3661
  (exit $ac_status); }; then
 
3662
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3663
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3664
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3665
# `rm'.
 
3666
for ac_file in conftest.exe conftest conftest.*; do
 
3667
  test -f "$ac_file" || continue
 
3668
  case $ac_file in
 
3669
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
3670
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3671
          export ac_cv_exeext
 
3672
          break;;
 
3673
    * ) break;;
 
3674
  esac
 
3675
done
 
3676
else
 
3677
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
3678
See \`config.log' for more details." >&5
 
3679
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
3680
See \`config.log' for more details." >&2;}
 
3681
   { (exit 1); exit 1; }; }
 
3682
fi
 
3683
 
 
3684
rm -f conftest$ac_cv_exeext
 
3685
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
3686
echo "${ECHO_T}$ac_cv_exeext" >&6
 
3687
 
 
3688
rm -f conftest.$ac_ext
 
3689
EXEEXT=$ac_cv_exeext
 
3690
ac_exeext=$EXEEXT
 
3691
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
3692
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
3693
if test "${ac_cv_objext+set}" = set; then
 
3694
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3695
else
 
3696
  cat >conftest.$ac_ext <<_ACEOF
 
3697
/* confdefs.h.  */
 
3698
_ACEOF
 
3699
cat confdefs.h >>conftest.$ac_ext
 
3700
cat >>conftest.$ac_ext <<_ACEOF
 
3701
/* end confdefs.h.  */
 
3702
 
 
3703
int
 
3704
main ()
 
3705
{
 
3706
 
 
3707
  ;
 
3708
  return 0;
 
3709
}
 
3710
_ACEOF
 
3711
rm -f conftest.o conftest.obj
 
3712
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3713
  (eval $ac_compile) 2>&5
 
3714
  ac_status=$?
 
3715
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3716
  (exit $ac_status); }; then
 
3717
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
3718
  case $ac_file in
 
3719
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
3720
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3721
       break;;
 
3722
  esac
 
3723
done
 
3724
else
 
3725
  echo "$as_me: failed program was:" >&5
 
3726
sed 's/^/| /' conftest.$ac_ext >&5
 
3727
 
 
3728
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
3729
See \`config.log' for more details." >&5
 
3730
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
3731
See \`config.log' for more details." >&2;}
 
3732
   { (exit 1); exit 1; }; }
 
3733
fi
 
3734
 
 
3735
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3736
fi
 
3737
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
3738
echo "${ECHO_T}$ac_cv_objext" >&6
 
3739
OBJEXT=$ac_cv_objext
 
3740
ac_objext=$OBJEXT
 
3741
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3742
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
3743
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
3744
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3745
else
 
3746
  cat >conftest.$ac_ext <<_ACEOF
 
3747
/* confdefs.h.  */
 
3748
_ACEOF
 
3749
cat confdefs.h >>conftest.$ac_ext
 
3750
cat >>conftest.$ac_ext <<_ACEOF
 
3751
/* end confdefs.h.  */
 
3752
 
 
3753
int
 
3754
main ()
 
3755
{
 
3756
#ifndef __GNUC__
 
3757
       choke me
 
3758
#endif
 
3759
 
 
3760
  ;
 
3761
  return 0;
 
3762
}
 
3763
_ACEOF
 
3764
rm -f conftest.$ac_objext
 
3765
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3766
  (eval $ac_compile) 2>conftest.er1
 
3767
  ac_status=$?
 
3768
  grep -v '^ *+' conftest.er1 >conftest.err
 
3769
  rm -f conftest.er1
 
3770
  cat conftest.err >&5
 
3771
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3772
  (exit $ac_status); } &&
 
3773
         { ac_try='test -z "$ac_c_werror_flag"
 
3774
                         || test ! -s conftest.err'
 
3775
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3776
  (eval $ac_try) 2>&5
 
3777
  ac_status=$?
 
3778
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3779
  (exit $ac_status); }; } &&
 
3780
         { ac_try='test -s conftest.$ac_objext'
 
3781
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3782
  (eval $ac_try) 2>&5
 
3783
  ac_status=$?
 
3784
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3785
  (exit $ac_status); }; }; then
 
3786
  ac_compiler_gnu=yes
 
3787
else
 
3788
  echo "$as_me: failed program was:" >&5
 
3789
sed 's/^/| /' conftest.$ac_ext >&5
 
3790
 
 
3791
ac_compiler_gnu=no
 
3792
fi
 
3793
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3794
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3795
 
 
3796
fi
 
3797
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3798
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
3799
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3800
ac_test_CFLAGS=${CFLAGS+set}
 
3801
ac_save_CFLAGS=$CFLAGS
 
3802
CFLAGS="-g"
 
3803
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3804
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
3805
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3806
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3807
else
 
3808
  cat >conftest.$ac_ext <<_ACEOF
 
3809
/* confdefs.h.  */
 
3810
_ACEOF
 
3811
cat confdefs.h >>conftest.$ac_ext
 
3812
cat >>conftest.$ac_ext <<_ACEOF
 
3813
/* end confdefs.h.  */
 
3814
 
 
3815
int
 
3816
main ()
 
3817
{
 
3818
 
 
3819
  ;
 
3820
  return 0;
 
3821
}
 
3822
_ACEOF
 
3823
rm -f conftest.$ac_objext
 
3824
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3825
  (eval $ac_compile) 2>conftest.er1
 
3826
  ac_status=$?
 
3827
  grep -v '^ *+' conftest.er1 >conftest.err
 
3828
  rm -f conftest.er1
 
3829
  cat conftest.err >&5
 
3830
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3831
  (exit $ac_status); } &&
 
3832
         { ac_try='test -z "$ac_c_werror_flag"
 
3833
                         || test ! -s conftest.err'
 
3834
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3835
  (eval $ac_try) 2>&5
 
3836
  ac_status=$?
 
3837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3838
  (exit $ac_status); }; } &&
 
3839
         { ac_try='test -s conftest.$ac_objext'
 
3840
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3841
  (eval $ac_try) 2>&5
 
3842
  ac_status=$?
 
3843
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3844
  (exit $ac_status); }; }; then
 
3845
  ac_cv_prog_cc_g=yes
 
3846
else
 
3847
  echo "$as_me: failed program was:" >&5
 
3848
sed 's/^/| /' conftest.$ac_ext >&5
 
3849
 
 
3850
ac_cv_prog_cc_g=no
 
3851
fi
 
3852
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3853
fi
 
3854
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3855
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
3856
if test "$ac_test_CFLAGS" = set; then
 
3857
  CFLAGS=$ac_save_CFLAGS
 
3858
elif test $ac_cv_prog_cc_g = yes; then
 
3859
  if test "$GCC" = yes; then
 
3860
    CFLAGS="-g -O2"
 
3861
  else
 
3862
    CFLAGS="-g"
 
3863
  fi
 
3864
else
 
3865
  if test "$GCC" = yes; then
 
3866
    CFLAGS="-O2"
 
3867
  else
 
3868
    CFLAGS=
 
3869
  fi
 
3870
fi
 
3871
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
3872
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
3873
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
3874
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3875
else
 
3876
  ac_cv_prog_cc_stdc=no
 
3877
ac_save_CC=$CC
 
3878
cat >conftest.$ac_ext <<_ACEOF
 
3879
/* confdefs.h.  */
 
3880
_ACEOF
 
3881
cat confdefs.h >>conftest.$ac_ext
 
3882
cat >>conftest.$ac_ext <<_ACEOF
 
3883
/* end confdefs.h.  */
 
3884
#include <stdarg.h>
 
3885
#include <stdio.h>
 
3886
#include <sys/types.h>
 
3887
#include <sys/stat.h>
 
3888
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3889
struct buf { int x; };
 
3890
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3891
static char *e (p, i)
 
3892
     char **p;
 
3893
     int i;
 
3894
{
 
3895
  return p[i];
 
3896
}
 
3897
static char *f (char * (*g) (char **, int), char **p, ...)
 
3898
{
 
3899
  char *s;
 
3900
  va_list v;
 
3901
  va_start (v,p);
 
3902
  s = g (p, va_arg (v,int));
 
3903
  va_end (v);
 
3904
  return s;
 
3905
}
 
3906
 
 
3907
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3908
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3909
   These don't provoke an error unfortunately, instead are silently treated
 
3910
   as 'x'.  The following induces an error, until -std1 is added to get
 
3911
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3912
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3913
   that's true only with -std1.  */
 
3914
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3915
 
 
3916
int test (int i, double x);
 
3917
struct s1 {int (*f) (int a);};
 
3918
struct s2 {int (*f) (double a);};
 
3919
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3920
int argc;
 
3921
char **argv;
 
3922
int
 
3923
main ()
 
3924
{
 
3925
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3926
  ;
 
3927
  return 0;
 
3928
}
 
3929
_ACEOF
 
3930
# Don't try gcc -ansi; that turns off useful extensions and
 
3931
# breaks some systems' header files.
 
3932
# AIX                   -qlanglvl=ansi
 
3933
# Ultrix and OSF/1      -std1
 
3934
# HP-UX 10.20 and later -Ae
 
3935
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
3936
# SVR4                  -Xc -D__EXTENSIONS__
 
3937
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3938
do
 
3939
  CC="$ac_save_CC $ac_arg"
 
3940
  rm -f conftest.$ac_objext
 
3941
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3942
  (eval $ac_compile) 2>conftest.er1
 
3943
  ac_status=$?
 
3944
  grep -v '^ *+' conftest.er1 >conftest.err
 
3945
  rm -f conftest.er1
 
3946
  cat conftest.err >&5
 
3947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3948
  (exit $ac_status); } &&
 
3949
         { ac_try='test -z "$ac_c_werror_flag"
 
3950
                         || test ! -s conftest.err'
 
3951
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3952
  (eval $ac_try) 2>&5
 
3953
  ac_status=$?
 
3954
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3955
  (exit $ac_status); }; } &&
 
3956
         { ac_try='test -s conftest.$ac_objext'
 
3957
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3958
  (eval $ac_try) 2>&5
 
3959
  ac_status=$?
 
3960
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3961
  (exit $ac_status); }; }; then
 
3962
  ac_cv_prog_cc_stdc=$ac_arg
 
3963
break
 
3964
else
 
3965
  echo "$as_me: failed program was:" >&5
 
3966
sed 's/^/| /' conftest.$ac_ext >&5
 
3967
 
 
3968
fi
 
3969
rm -f conftest.err conftest.$ac_objext
 
3970
done
 
3971
rm -f conftest.$ac_ext conftest.$ac_objext
 
3972
CC=$ac_save_CC
 
3973
 
 
3974
fi
 
3975
 
 
3976
case "x$ac_cv_prog_cc_stdc" in
 
3977
  x|xno)
 
3978
    echo "$as_me:$LINENO: result: none needed" >&5
 
3979
echo "${ECHO_T}none needed" >&6 ;;
 
3980
  *)
 
3981
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
3982
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
3983
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
3984
esac
 
3985
 
 
3986
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
3987
# in C++ we need to declare it.  In case someone uses the same compiler
 
3988
# for both compiling C and C++ we need to have the C++ compiler decide
 
3989
# the declaration of exit, since it's the most demanding environment.
 
3990
cat >conftest.$ac_ext <<_ACEOF
 
3991
#ifndef __cplusplus
 
3992
  choke me
 
3993
#endif
 
3994
_ACEOF
 
3995
rm -f conftest.$ac_objext
 
3996
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3997
  (eval $ac_compile) 2>conftest.er1
 
3998
  ac_status=$?
 
3999
  grep -v '^ *+' conftest.er1 >conftest.err
 
4000
  rm -f conftest.er1
 
4001
  cat conftest.err >&5
 
4002
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4003
  (exit $ac_status); } &&
 
4004
         { ac_try='test -z "$ac_c_werror_flag"
 
4005
                         || test ! -s conftest.err'
 
4006
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4007
  (eval $ac_try) 2>&5
 
4008
  ac_status=$?
 
4009
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4010
  (exit $ac_status); }; } &&
 
4011
         { ac_try='test -s conftest.$ac_objext'
 
4012
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4013
  (eval $ac_try) 2>&5
 
4014
  ac_status=$?
 
4015
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4016
  (exit $ac_status); }; }; then
 
4017
  for ac_declaration in \
 
4018
   '' \
 
4019
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
4020
   'extern "C" void std::exit (int); using std::exit;' \
 
4021
   'extern "C" void exit (int) throw ();' \
 
4022
   'extern "C" void exit (int);' \
 
4023
   'void exit (int);'
 
4024
do
 
4025
  cat >conftest.$ac_ext <<_ACEOF
 
4026
/* confdefs.h.  */
 
4027
_ACEOF
 
4028
cat confdefs.h >>conftest.$ac_ext
 
4029
cat >>conftest.$ac_ext <<_ACEOF
 
4030
/* end confdefs.h.  */
 
4031
$ac_declaration
 
4032
#include <stdlib.h>
 
4033
int
 
4034
main ()
 
4035
{
 
4036
exit (42);
 
4037
  ;
 
4038
  return 0;
 
4039
}
 
4040
_ACEOF
 
4041
rm -f conftest.$ac_objext
 
4042
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4043
  (eval $ac_compile) 2>conftest.er1
 
4044
  ac_status=$?
 
4045
  grep -v '^ *+' conftest.er1 >conftest.err
 
4046
  rm -f conftest.er1
 
4047
  cat conftest.err >&5
 
4048
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4049
  (exit $ac_status); } &&
 
4050
         { ac_try='test -z "$ac_c_werror_flag"
 
4051
                         || test ! -s conftest.err'
 
4052
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4053
  (eval $ac_try) 2>&5
 
4054
  ac_status=$?
 
4055
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4056
  (exit $ac_status); }; } &&
 
4057
         { ac_try='test -s conftest.$ac_objext'
 
4058
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4059
  (eval $ac_try) 2>&5
 
4060
  ac_status=$?
 
4061
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4062
  (exit $ac_status); }; }; then
 
4063
  :
 
4064
else
 
4065
  echo "$as_me: failed program was:" >&5
 
4066
sed 's/^/| /' conftest.$ac_ext >&5
 
4067
 
 
4068
continue
 
4069
fi
 
4070
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4071
  cat >conftest.$ac_ext <<_ACEOF
 
4072
/* confdefs.h.  */
 
4073
_ACEOF
 
4074
cat confdefs.h >>conftest.$ac_ext
 
4075
cat >>conftest.$ac_ext <<_ACEOF
 
4076
/* end confdefs.h.  */
 
4077
$ac_declaration
 
4078
int
 
4079
main ()
 
4080
{
 
4081
exit (42);
 
4082
  ;
 
4083
  return 0;
 
4084
}
 
4085
_ACEOF
 
4086
rm -f conftest.$ac_objext
 
4087
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4088
  (eval $ac_compile) 2>conftest.er1
 
4089
  ac_status=$?
 
4090
  grep -v '^ *+' conftest.er1 >conftest.err
 
4091
  rm -f conftest.er1
 
4092
  cat conftest.err >&5
 
4093
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4094
  (exit $ac_status); } &&
 
4095
         { ac_try='test -z "$ac_c_werror_flag"
 
4096
                         || test ! -s conftest.err'
 
4097
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4098
  (eval $ac_try) 2>&5
 
4099
  ac_status=$?
 
4100
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4101
  (exit $ac_status); }; } &&
 
4102
         { ac_try='test -s conftest.$ac_objext'
 
4103
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4104
  (eval $ac_try) 2>&5
 
4105
  ac_status=$?
 
4106
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4107
  (exit $ac_status); }; }; then
 
4108
  break
 
4109
else
 
4110
  echo "$as_me: failed program was:" >&5
 
4111
sed 's/^/| /' conftest.$ac_ext >&5
 
4112
 
 
4113
fi
 
4114
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4115
done
 
4116
rm -f conftest*
 
4117
if test -n "$ac_declaration"; then
 
4118
  echo '#ifdef __cplusplus' >>confdefs.h
 
4119
  echo $ac_declaration      >>confdefs.h
 
4120
  echo '#endif'             >>confdefs.h
 
4121
fi
 
4122
 
 
4123
else
 
4124
  echo "$as_me: failed program was:" >&5
 
4125
sed 's/^/| /' conftest.$ac_ext >&5
 
4126
 
 
4127
fi
 
4128
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4129
ac_ext=c
 
4130
ac_cpp='$CPP $CPPFLAGS'
 
4131
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4132
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4133
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4134
 
 
4135
ac_ext=c
 
4136
ac_cpp='$CPP $CPPFLAGS'
 
4137
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4138
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4139
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4140
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
4141
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
4142
# On Suns, sometimes $CPP names a directory.
 
4143
if test -n "$CPP" && test -d "$CPP"; then
 
4144
  CPP=
 
4145
fi
 
4146
if test -z "$CPP"; then
 
4147
  if test "${ac_cv_prog_CPP+set}" = set; then
 
4148
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4149
else
 
4150
      # Double quotes because CPP needs to be expanded
 
4151
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4152
    do
 
4153
      ac_preproc_ok=false
 
4154
for ac_c_preproc_warn_flag in '' yes
 
4155
do
 
4156
  # Use a header file that comes with gcc, so configuring glibc
 
4157
  # with a fresh cross-compiler works.
 
4158
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4159
  # <limits.h> exists even on freestanding compilers.
 
4160
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4161
  # not just through cpp. "Syntax error" is here to catch this case.
 
4162
  cat >conftest.$ac_ext <<_ACEOF
 
4163
/* confdefs.h.  */
 
4164
_ACEOF
 
4165
cat confdefs.h >>conftest.$ac_ext
 
4166
cat >>conftest.$ac_ext <<_ACEOF
 
4167
/* end confdefs.h.  */
 
4168
#ifdef __STDC__
 
4169
# include <limits.h>
 
4170
#else
 
4171
# include <assert.h>
 
4172
#endif
 
4173
                     Syntax error
 
4174
_ACEOF
 
4175
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4176
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4177
  ac_status=$?
 
4178
  grep -v '^ *+' conftest.er1 >conftest.err
 
4179
  rm -f conftest.er1
 
4180
  cat conftest.err >&5
 
4181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4182
  (exit $ac_status); } >/dev/null; then
 
4183
  if test -s conftest.err; then
 
4184
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4185
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4186
  else
 
4187
    ac_cpp_err=
 
4188
  fi
 
4189
else
 
4190
  ac_cpp_err=yes
 
4191
fi
 
4192
if test -z "$ac_cpp_err"; then
 
4193
  :
 
4194
else
 
4195
  echo "$as_me: failed program was:" >&5
 
4196
sed 's/^/| /' conftest.$ac_ext >&5
 
4197
 
 
4198
  # Broken: fails on valid input.
 
4199
continue
 
4200
fi
 
4201
rm -f conftest.err conftest.$ac_ext
 
4202
 
 
4203
  # OK, works on sane cases.  Now check whether non-existent headers
 
4204
  # can be detected and how.
 
4205
  cat >conftest.$ac_ext <<_ACEOF
 
4206
/* confdefs.h.  */
 
4207
_ACEOF
 
4208
cat confdefs.h >>conftest.$ac_ext
 
4209
cat >>conftest.$ac_ext <<_ACEOF
 
4210
/* end confdefs.h.  */
 
4211
#include <ac_nonexistent.h>
 
4212
_ACEOF
 
4213
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4214
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4215
  ac_status=$?
 
4216
  grep -v '^ *+' conftest.er1 >conftest.err
 
4217
  rm -f conftest.er1
 
4218
  cat conftest.err >&5
 
4219
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4220
  (exit $ac_status); } >/dev/null; then
 
4221
  if test -s conftest.err; then
 
4222
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4223
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4224
  else
 
4225
    ac_cpp_err=
 
4226
  fi
 
4227
else
 
4228
  ac_cpp_err=yes
 
4229
fi
 
4230
if test -z "$ac_cpp_err"; then
 
4231
  # Broken: success on invalid input.
 
4232
continue
 
4233
else
 
4234
  echo "$as_me: failed program was:" >&5
 
4235
sed 's/^/| /' conftest.$ac_ext >&5
 
4236
 
 
4237
  # Passes both tests.
 
4238
ac_preproc_ok=:
 
4239
break
 
4240
fi
 
4241
rm -f conftest.err conftest.$ac_ext
 
4242
 
 
4243
done
 
4244
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4245
rm -f conftest.err conftest.$ac_ext
 
4246
if $ac_preproc_ok; then
 
4247
  break
 
4248
fi
 
4249
 
 
4250
    done
 
4251
    ac_cv_prog_CPP=$CPP
 
4252
 
 
4253
fi
 
4254
  CPP=$ac_cv_prog_CPP
 
4255
else
 
4256
  ac_cv_prog_CPP=$CPP
 
4257
fi
 
4258
echo "$as_me:$LINENO: result: $CPP" >&5
 
4259
echo "${ECHO_T}$CPP" >&6
 
4260
ac_preproc_ok=false
 
4261
for ac_c_preproc_warn_flag in '' yes
 
4262
do
 
4263
  # Use a header file that comes with gcc, so configuring glibc
 
4264
  # with a fresh cross-compiler works.
 
4265
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4266
  # <limits.h> exists even on freestanding compilers.
 
4267
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4268
  # not just through cpp. "Syntax error" is here to catch this case.
 
4269
  cat >conftest.$ac_ext <<_ACEOF
 
4270
/* confdefs.h.  */
 
4271
_ACEOF
 
4272
cat confdefs.h >>conftest.$ac_ext
 
4273
cat >>conftest.$ac_ext <<_ACEOF
 
4274
/* end confdefs.h.  */
 
4275
#ifdef __STDC__
 
4276
# include <limits.h>
 
4277
#else
 
4278
# include <assert.h>
 
4279
#endif
 
4280
                     Syntax error
 
4281
_ACEOF
 
4282
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4283
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4284
  ac_status=$?
 
4285
  grep -v '^ *+' conftest.er1 >conftest.err
 
4286
  rm -f conftest.er1
 
4287
  cat conftest.err >&5
 
4288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4289
  (exit $ac_status); } >/dev/null; then
 
4290
  if test -s conftest.err; then
 
4291
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4292
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4293
  else
 
4294
    ac_cpp_err=
 
4295
  fi
 
4296
else
 
4297
  ac_cpp_err=yes
 
4298
fi
 
4299
if test -z "$ac_cpp_err"; then
 
4300
  :
 
4301
else
 
4302
  echo "$as_me: failed program was:" >&5
 
4303
sed 's/^/| /' conftest.$ac_ext >&5
 
4304
 
 
4305
  # Broken: fails on valid input.
 
4306
continue
 
4307
fi
 
4308
rm -f conftest.err conftest.$ac_ext
 
4309
 
 
4310
  # OK, works on sane cases.  Now check whether non-existent headers
 
4311
  # can be detected and how.
 
4312
  cat >conftest.$ac_ext <<_ACEOF
 
4313
/* confdefs.h.  */
 
4314
_ACEOF
 
4315
cat confdefs.h >>conftest.$ac_ext
 
4316
cat >>conftest.$ac_ext <<_ACEOF
 
4317
/* end confdefs.h.  */
 
4318
#include <ac_nonexistent.h>
 
4319
_ACEOF
 
4320
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4321
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4322
  ac_status=$?
 
4323
  grep -v '^ *+' conftest.er1 >conftest.err
 
4324
  rm -f conftest.er1
 
4325
  cat conftest.err >&5
 
4326
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4327
  (exit $ac_status); } >/dev/null; then
 
4328
  if test -s conftest.err; then
 
4329
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4330
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4331
  else
 
4332
    ac_cpp_err=
 
4333
  fi
 
4334
else
 
4335
  ac_cpp_err=yes
 
4336
fi
 
4337
if test -z "$ac_cpp_err"; then
 
4338
  # Broken: success on invalid input.
 
4339
continue
 
4340
else
 
4341
  echo "$as_me: failed program was:" >&5
 
4342
sed 's/^/| /' conftest.$ac_ext >&5
 
4343
 
 
4344
  # Passes both tests.
 
4345
ac_preproc_ok=:
 
4346
break
 
4347
fi
 
4348
rm -f conftest.err conftest.$ac_ext
 
4349
 
 
4350
done
 
4351
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4352
rm -f conftest.err conftest.$ac_ext
 
4353
if $ac_preproc_ok; then
 
4354
  :
 
4355
else
 
4356
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4357
See \`config.log' for more details." >&5
 
4358
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4359
See \`config.log' for more details." >&2;}
 
4360
   { (exit 1); exit 1; }; }
 
4361
fi
 
4362
 
 
4363
ac_ext=c
 
4364
ac_cpp='$CPP $CPPFLAGS'
 
4365
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4366
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4367
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4368
 
 
4369
 
 
4370
if test "x${cache_file}" = "x/dev/null"; then
 
4371
  # Likewise, ensure that CC and CPP are passed through to the pcre
 
4372
  # configure script iff caching is disabled (the autoconf 2.5x default).
 
4373
  export CC; export CPP
 
4374
fi
 
4375
 
 
4376
abs_srcdir=`(cd $srcdir && pwd)`
 
4377
abs_builddir=`pwd`
 
4378
 
 
4379
 
 
4380
# Check whether --with-pcre or --without-pcre was given.
 
4381
if test "${with_pcre+set}" = set; then
 
4382
  withval="$with_pcre"
 
4383
 
 
4384
fi;
 
4385
 
 
4386
case $with_pcre in
 
4387
yes) # Extract the first word of "pcre-config", so it can be a program name with args.
 
4388
set dummy pcre-config; ac_word=$2
 
4389
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4390
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4391
if test "${ac_cv_path_PCRE_CONFIG+set}" = set; then
 
4392
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4393
else
 
4394
  case $PCRE_CONFIG in
 
4395
  [\\/]* | ?:[\\/]*)
 
4396
  ac_cv_path_PCRE_CONFIG="$PCRE_CONFIG" # Let the user override the test with a path.
 
4397
  ;;
 
4398
  *)
 
4399
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4400
for as_dir in $PATH
 
4401
do
 
4402
  IFS=$as_save_IFS
 
4403
  test -z "$as_dir" && as_dir=.
 
4404
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4405
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4406
    ac_cv_path_PCRE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
4407
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4408
    break 2
 
4409
  fi
 
4410
done
 
4411
done
 
4412
 
 
4413
  test -z "$ac_cv_path_PCRE_CONFIG" && ac_cv_path_PCRE_CONFIG="false"
 
4414
  ;;
 
4415
esac
 
4416
fi
 
4417
PCRE_CONFIG=$ac_cv_path_PCRE_CONFIG
 
4418
 
 
4419
if test -n "$PCRE_CONFIG"; then
 
4420
  echo "$as_me:$LINENO: result: $PCRE_CONFIG" >&5
 
4421
echo "${ECHO_T}$PCRE_CONFIG" >&6
 
4422
else
 
4423
  echo "$as_me:$LINENO: result: no" >&5
 
4424
echo "${ECHO_T}no" >&6
 
4425
fi
 
4426
 ;;
 
4427
 /*) if test -d "$with_pcre" && test -x "$with_pcre/bin/pcre-config"; then
 
4428
       PCRE_CONFIG=$with_pcre/bin/pcre-config
 
4429
     elif test -x "$with_pcre"; then
 
4430
       PCRE_CONFIG=$with_pcre
 
4431
     fi
 
4432
 
 
4433
     if $PCRE_CONFIG --version >/dev/null 2>&1; then :; else
 
4434
       { { echo "$as_me:$LINENO: error: Did not find pcre-config script at $PCRE_CONFIG" >&5
 
4435
echo "$as_me: error: Did not find pcre-config script at $PCRE_CONFIG" >&2;}
 
4436
   { (exit 1); exit 1; }; }
 
4437
     fi
 
4438
     ;;
 
4439
*) PCRE_CONFIG=false ;;
 
4440
esac
 
4441
 
 
4442
if test "$PCRE_CONFIG" != "false"; then
 
4443
  { echo "$as_me:$LINENO: Using external PCRE library from $PCRE_CONFIG" >&5
 
4444
echo "$as_me: Using external PCRE library from $PCRE_CONFIG" >&6;}
 
4445
 
 
4446
  if test "x$CFLAGS" = "x"; then
 
4447
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"`$PCRE_CONFIG --cflags`\""
 
4448
    CFLAGS="`$PCRE_CONFIG --cflags`"
 
4449
  else
 
4450
    apr_addto_bugger="`$PCRE_CONFIG --cflags`"
 
4451
    for i in $apr_addto_bugger; do
 
4452
      apr_addto_duplicate="0"
 
4453
      for j in $CFLAGS; do
 
4454
        if test "x$i" = "x$j"; then
 
4455
          apr_addto_duplicate="1"
 
4456
          break
 
4457
        fi
 
4458
      done
 
4459
      if test $apr_addto_duplicate = "0"; then
 
4460
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
 
4461
        CFLAGS="$CFLAGS $i"
 
4462
      fi
 
4463
    done
 
4464
  fi
 
4465
 
 
4466
 
 
4467
  if test "x$LIBS" = "x"; then
 
4468
    test "x$silent" != "xyes" && echo "  setting LIBS to \"`$PCRE_CONFIG --libs`\""
 
4469
    LIBS="`$PCRE_CONFIG --libs`"
 
4470
  else
 
4471
    apr_addto_bugger="`$PCRE_CONFIG --libs`"
 
4472
    for i in $apr_addto_bugger; do
 
4473
      apr_addto_duplicate="0"
 
4474
      for j in $LIBS; do
 
4475
        if test "x$i" = "x$j"; then
 
4476
          apr_addto_duplicate="1"
 
4477
          break
 
4478
        fi
 
4479
      done
 
4480
      if test $apr_addto_duplicate = "0"; then
 
4481
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
 
4482
        LIBS="$LIBS $i"
 
4483
      fi
 
4484
    done
 
4485
  fi
 
4486
 
 
4487
else
 
4488
  # Build the bundled PCRE
 
4489
  { echo "$as_me:$LINENO: Configuring PCRE regular expression library" >&5
 
4490
echo "$as_me: Configuring PCRE regular expression library" >&6;}
 
4491
 
 
4492
 
 
4493
  # save our work to this point; this allows the sub-package to use it
 
4494
  cat >confcache <<\_ACEOF
 
4495
# This file is a shell script that caches the results of configure
 
4496
# tests run on this system so they can be shared between configure
 
4497
# scripts and configure runs, see configure's option --config-cache.
 
4498
# It is not useful on other systems.  If it contains results you don't
 
4499
# want to keep, you may remove or edit it.
 
4500
#
 
4501
# config.status only pays attention to the cache file if you give it
 
4502
# the --recheck option to rerun configure.
 
4503
#
 
4504
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
4505
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
4506
# following values.
 
4507
 
 
4508
_ACEOF
 
4509
 
 
4510
# The following way of writing the cache mishandles newlines in values,
 
4511
# but we know of no workaround that is simple, portable, and efficient.
 
4512
# So, don't put newlines in cache variables' values.
 
4513
# Ultrix sh set writes to stderr and can't be redirected directly,
 
4514
# and sets the high bit in the cache file unless we assign to the vars.
 
4515
{
 
4516
  (set) 2>&1 |
 
4517
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
4518
    *ac_space=\ *)
 
4519
      # `set' does not quote correctly, so add quotes (double-quote
 
4520
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
4521
      sed -n \
 
4522
        "s/'/'\\\\''/g;
 
4523
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
4524
      ;;
 
4525
    *)
 
4526
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
4527
      sed -n \
 
4528
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
4529
      ;;
 
4530
    esac;
 
4531
} |
 
4532
  sed '
 
4533
     t clear
 
4534
     : clear
 
4535
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
4536
     t end
 
4537
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
4538
     : end' >>confcache
 
4539
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
4540
  if test -w $cache_file; then
 
4541
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
4542
    cat confcache >$cache_file
 
4543
  else
 
4544
    echo "not updating unwritable cache $cache_file"
 
4545
  fi
 
4546
fi
 
4547
rm -f confcache
 
4548
 
 
4549
  echo "configuring package in srclib/pcre now"
 
4550
  ac_popdir=`pwd`
 
4551
  apr_config_subdirs="srclib/pcre"
 
4552
  test -d srclib/pcre || $mkdir_p srclib/pcre
 
4553
  ac_abs_srcdir=`(cd $srcdir/srclib/pcre && pwd)`
 
4554
  cd srclib/pcre
 
4555
 
 
4556
      # A "../" for each directory in /$config_subdirs.
 
4557
      ac_dots=`echo $apr_config_subdirs|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
 
4558
 
 
4559
  # Make the cache file pathname absolute for the subdirs
 
4560
  # required to correctly handle subdirs that might actually
 
4561
  # be symlinks
 
4562
  case "$cache_file" in
 
4563
  /*) # already absolute
 
4564
    ac_sub_cache_file=$cache_file ;;
 
4565
  *)  # Was relative path.
 
4566
    ac_sub_cache_file="$ac_popdir/$cache_file" ;;
 
4567
  esac
 
4568
 
 
4569
  apr_configure_args=$ac_configure_args
 
4570
 
 
4571
  # autoconf doesn't add --silent to ac_configure_args; explicitly pass it
 
4572
  test "x$silent" = "xyes" && apr_configure_args="$apr_configure_args --silent"
 
4573
 
 
4574
              if eval $SHELL $ac_abs_srcdir/configure $apr_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_abs_srcdir --prefix=$prefix --exec-prefix=$exec_prefix --libdir=$libdir --includedir=$includedir --bindir=$bindir
 
4575
  then :
 
4576
    echo "srclib/pcre configured properly"
 
4577
  else
 
4578
    echo "configure failed for srclib/pcre"
 
4579
    exit 1
 
4580
  fi
 
4581
 
 
4582
  cd $ac_popdir
 
4583
 
 
4584
  # grab any updates from the sub-package
 
4585
  if test -r "$cache_file"; then
 
4586
  # Some versions of bash will fail to source /dev/null (special
 
4587
  # files actually), so we avoid doing that.
 
4588
  if test -f "$cache_file"; then
 
4589
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
4590
echo "$as_me: loading cache $cache_file" >&6;}
 
4591
    case $cache_file in
 
4592
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
4593
      *)                      . ./$cache_file;;
 
4594
    esac
 
4595
  fi
 
4596
else
 
4597
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
4598
echo "$as_me: creating cache $cache_file" >&6;}
 
4599
  >$cache_file
 
4600
fi
 
4601
 
 
4602
 
 
4603
 
 
4604
 
 
4605
  if test "x$AP_LIBS" = "x"; then
 
4606
    test "x$silent" != "xyes" && echo "  setting AP_LIBS to \"$abs_builddir/srclib/pcre/libpcre.la\""
 
4607
    AP_LIBS="$abs_builddir/srclib/pcre/libpcre.la"
 
4608
  else
 
4609
    apr_addto_bugger="$abs_builddir/srclib/pcre/libpcre.la"
 
4610
    for i in $apr_addto_bugger; do
 
4611
      apr_addto_duplicate="0"
 
4612
      for j in $AP_LIBS; do
 
4613
        if test "x$i" = "x$j"; then
 
4614
          apr_addto_duplicate="1"
 
4615
          break
 
4616
        fi
 
4617
      done
 
4618
      if test $apr_addto_duplicate = "0"; then
 
4619
        test "x$silent" != "xyes" && echo "  adding \"$i\" to AP_LIBS"
 
4620
        AP_LIBS="$AP_LIBS $i"
 
4621
      fi
 
4622
    done
 
4623
  fi
 
4624
 
 
4625
 
 
4626
  if test "x$INCLUDES" = "x"; then
 
4627
    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_builddir)/srclib/pcre\""
 
4628
    INCLUDES="-I\$(top_builddir)/srclib/pcre"
 
4629
  else
 
4630
    apr_addto_bugger="-I\$(top_builddir)/srclib/pcre"
 
4631
    for i in $apr_addto_bugger; do
 
4632
      apr_addto_duplicate="0"
 
4633
      for j in $INCLUDES; do
 
4634
        if test "x$i" = "x$j"; then
 
4635
          apr_addto_duplicate="1"
 
4636
          break
 
4637
        fi
 
4638
      done
 
4639
      if test $apr_addto_duplicate = "0"; then
 
4640
        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
 
4641
        INCLUDES="$INCLUDES $i"
 
4642
      fi
 
4643
    done
 
4644
  fi
 
4645
 
 
4646
 
 
4647
  AP_BUILD_SRCLIB_DIRS="$AP_BUILD_SRCLIB_DIRS pcre"
 
4648
  AP_CLEAN_SRCLIB_DIRS="$AP_CLEAN_SRCLIB_DIRS pcre"
 
4649
fi
 
4650
 
 
4651
echo $ac_n "${nl}Configuring Apache httpd ...${nl}"
 
4652
 
 
4653
 
 
4654
 
 
4655
  if test "x$INCLUDES" = "x"; then
 
4656
    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I.\""
 
4657
    INCLUDES="-I."
 
4658
  else
 
4659
    apr_addto_bugger="-I."
 
4660
    for i in $apr_addto_bugger; do
 
4661
      apr_addto_duplicate="0"
 
4662
      for j in $INCLUDES; do
 
4663
        if test "x$i" = "x$j"; then
 
4664
          apr_addto_duplicate="1"
 
4665
          break
 
4666
        fi
 
4667
      done
 
4668
      if test $apr_addto_duplicate = "0"; then
 
4669
        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
 
4670
        INCLUDES="$INCLUDES $i"
 
4671
      fi
 
4672
    done
 
4673
  fi
 
4674
 
 
4675
 
 
4676
if test "$abs_builddir" != "$abs_srcdir"; then
 
4677
 
 
4678
  if test "x$INCLUDES" = "x"; then
 
4679
    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_builddir)/include\""
 
4680
    INCLUDES="-I\$(top_builddir)/include"
 
4681
  else
 
4682
    apr_addto_bugger="-I\$(top_builddir)/include"
 
4683
    for i in $apr_addto_bugger; do
 
4684
      apr_addto_duplicate="0"
 
4685
      for j in $INCLUDES; do
 
4686
        if test "x$i" = "x$j"; then
 
4687
          apr_addto_duplicate="1"
 
4688
          break
 
4689
        fi
 
4690
      done
 
4691
      if test $apr_addto_duplicate = "0"; then
 
4692
        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
 
4693
        INCLUDES="$INCLUDES $i"
 
4694
      fi
 
4695
    done
 
4696
  fi
 
4697
 
 
4698
fi
 
4699
 
 
4700
 
 
4701
  if test "x$INCLUDES" = "x"; then
 
4702
    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/os/\$(OS_DIR) -I\$(top_srcdir)/server/mpm/\$(MPM_SUBDIR_NAME) -I\$(top_srcdir)/modules/http -I\$(top_srcdir)/modules/filters -I\$(top_srcdir)/modules/proxy -I\$(top_srcdir)/include -I\$(top_srcdir)/modules/generators -I\$(top_srcdir)/modules/mappers -I\$(top_srcdir)/modules/database\""
 
4703
    INCLUDES="-I\$(top_srcdir)/os/\$(OS_DIR) -I\$(top_srcdir)/server/mpm/\$(MPM_SUBDIR_NAME) -I\$(top_srcdir)/modules/http -I\$(top_srcdir)/modules/filters -I\$(top_srcdir)/modules/proxy -I\$(top_srcdir)/include -I\$(top_srcdir)/modules/generators -I\$(top_srcdir)/modules/mappers -I\$(top_srcdir)/modules/database"
 
4704
  else
 
4705
    apr_addto_bugger="-I\$(top_srcdir)/os/\$(OS_DIR) -I\$(top_srcdir)/server/mpm/\$(MPM_SUBDIR_NAME) -I\$(top_srcdir)/modules/http -I\$(top_srcdir)/modules/filters -I\$(top_srcdir)/modules/proxy -I\$(top_srcdir)/include -I\$(top_srcdir)/modules/generators -I\$(top_srcdir)/modules/mappers -I\$(top_srcdir)/modules/database"
 
4706
    for i in $apr_addto_bugger; do
 
4707
      apr_addto_duplicate="0"
 
4708
      for j in $INCLUDES; do
 
4709
        if test "x$i" = "x$j"; then
 
4710
          apr_addto_duplicate="1"
 
4711
          break
 
4712
        fi
 
4713
      done
 
4714
      if test $apr_addto_duplicate = "0"; then
 
4715
        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
 
4716
        INCLUDES="$INCLUDES $i"
 
4717
      fi
 
4718
    done
 
4719
  fi
 
4720
 
 
4721
 
 
4722
# apr/apr-util --includes may pick up system paths for dependent
 
4723
# libraries, so ensure these are later in INCLUDES than local source
 
4724
# directories.
 
4725
 
 
4726
  if test "x$INCLUDES" = "x"; then
 
4727
    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"`$apr_config --includes`\""
 
4728
    INCLUDES="`$apr_config --includes`"
 
4729
  else
 
4730
    apr_addto_bugger="`$apr_config --includes`"
 
4731
    for i in $apr_addto_bugger; do
 
4732
      apr_addto_duplicate="0"
 
4733
      for j in $INCLUDES; do
 
4734
        if test "x$i" = "x$j"; then
 
4735
          apr_addto_duplicate="1"
 
4736
          break
 
4737
        fi
 
4738
      done
 
4739
      if test $apr_addto_duplicate = "0"; then
 
4740
        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
 
4741
        INCLUDES="$INCLUDES $i"
 
4742
      fi
 
4743
    done
 
4744
  fi
 
4745
 
 
4746
 
 
4747
  if test "x$INCLUDES" = "x"; then
 
4748
    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"`$apu_config --includes`\""
 
4749
    INCLUDES="`$apu_config --includes`"
 
4750
  else
 
4751
    apr_addto_bugger="`$apu_config --includes`"
 
4752
    for i in $apr_addto_bugger; do
 
4753
      apr_addto_duplicate="0"
 
4754
      for j in $INCLUDES; do
 
4755
        if test "x$i" = "x$j"; then
 
4756
          apr_addto_duplicate="1"
 
4757
          break
 
4758
        fi
 
4759
      done
 
4760
      if test $apr_addto_duplicate = "0"; then
 
4761
        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
 
4762
        INCLUDES="$INCLUDES $i"
 
4763
      fi
 
4764
    done
 
4765
  fi
 
4766
 
 
4767
 
 
4768
echo $ac_n "${nl}Applying OS-specific hints for httpd ...${nl}"
 
4769
 
 
4770
case $host in
 
4771
  *os2*)
 
4772
      # Use a custom made libtool replacement
 
4773
      echo "using aplibtool"
 
4774
      LIBTOOL="$abs_srcdir/srclib/apr/build/aplibtool"
 
4775
      SH_LIBTOOL="$LIBTOOL --shared --export-all"
 
4776
      SH_LIBS="\$(ALL_LIBS)"
 
4777
      CORE_IMPLIB_FILE="ApacheCoreOS2.la"
 
4778
      CORE_IMPLIB="$abs_srcdir/server/$CORE_IMPLIB_FILE"
 
4779
      MK_IMPLIB="emximp"
 
4780
      other_targets="$other_targets os2core"
 
4781
      INSTALL_PROG_FLAGS="-e .exe"
 
4782
      SHLTCFLAGS=""
 
4783
      LTCFLAGS=""
 
4784
      ;;
 
4785
  *)
 
4786
      if test "x$LTFLAGS" = "x"; then
 
4787
          LTFLAGS='--silent'
 
4788
      fi
 
4789
      my_libtool=`$apr_config --apr-libtool`
 
4790
      LIBTOOL="$my_libtool \$(LTFLAGS)"
 
4791
      libtoolversion=`$my_libtool --version`
 
4792
      case $libtoolversion in
 
4793
          *1.[45]*)
 
4794
              SH_LIBTOOL='$(LIBTOOL)'
 
4795
              SHLTCFLAGS="-prefer-pic"
 
4796
              LTCFLAGS="-prefer-non-pic -static"
 
4797
              ;;
 
4798
          *)
 
4799
              SH_LIBTOOL='$(SHELL) $(top_builddir)/shlibtool $(LTFLAGS)'
 
4800
              SHLTCFLAGS=""
 
4801
              LTCFLAGS=""
 
4802
              ;;
 
4803
      esac
 
4804
      ;;
 
4805
esac
 
4806
 
 
4807
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SHLTCFLAGS"
 
4808
 
 
4809
 
 
4810
 
 
4811
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST LTCFLAGS"
 
4812
 
 
4813
 
 
4814
 
 
4815
case $host in
 
4816
  *-apple-aux3*)
 
4817
 
 
4818
  test "x$silent" != "xyes" && echo "  forcing APACHE_MPM to \"prefork\""
 
4819
  APACHE_MPM="prefork"
 
4820
 
 
4821
 
 
4822
  test "x$silent" != "xyes" && echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
 
4823
  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
 
4824
 
 
4825
      ;;
 
4826
  *-beos*)
 
4827
 
 
4828
  test "x$silent" != "xyes" && echo "  forcing APACHE_MPM to \"beos\""
 
4829
  APACHE_MPM="beos"
 
4830
 
 
4831
 
 
4832
  test "x$silent" != "xyes" && echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
 
4833
  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
 
4834
 
 
4835
      ;;
 
4836
  *os2-emx*)
 
4837
 
 
4838
  test "x$silent" != "xyes" && echo "  forcing APACHE_MPM to \"mpmt_os2\""
 
4839
  APACHE_MPM="mpmt_os2"
 
4840
 
 
4841
 
 
4842
  test "x$silent" != "xyes" && echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
 
4843
  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
 
4844
 
 
4845
      ;;
 
4846
  *-linux-*)
 
4847
      case `uname -r` in
 
4848
        2.[2-9]* )
 
4849
 
 
4850
  test "x$silent" != "xyes" && echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
 
4851
  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
 
4852
 
 
4853
            ;;
 
4854
        * )
 
4855
            ;;
 
4856
      esac
 
4857
      ;;
 
4858
  *486-*-bsdi* | *-netbsd* | *-freebsd* | *-apple-darwin* | *-dec-osf* | *-qnx)
 
4859
 
 
4860
  test "x$silent" != "xyes" && echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
 
4861
  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
 
4862
 
 
4863
      ;;
 
4864
  *-solaris2*)
 
4865
            ap_platform_runtime_link_flag="-R"
 
4866
                  case `uname -r` in
 
4867
        5.567*)
 
4868
            ;;
 
4869
        * )
 
4870
 
 
4871
  test "x$silent" != "xyes" && echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
 
4872
  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
 
4873
 
 
4874
            ;;
 
4875
      esac
 
4876
      ;;
 
4877
  *cygwin*)
 
4878
 
 
4879
  test "x$silent" != "xyes" && echo "  forcing APACHE_MPM to \"prefork\""
 
4880
  APACHE_MPM="prefork"
 
4881
 
 
4882
 
 
4883
  test "x$silent" != "xyes" && echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
 
4884
  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
 
4885
 
 
4886
      ;;
 
4887
  *aix*)
 
4888
      aixver=`echo $host | sed 's/^[^0-9]*//' | sed 's/\.//g'`
 
4889
      if test $aixver -ge 4320; then
 
4890
 
 
4891
  test "x$silent" != "xyes" && echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
 
4892
  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
 
4893
 
 
4894
      fi
 
4895
      ;;
 
4896
  *os390*)
 
4897
 
 
4898
  test "x$silent" != "xyes" && echo "  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to \"1\""
 
4899
  SINGLE_LISTEN_UNSERIALIZED_ACCEPT="1"
 
4900
 
 
4901
      ;;
 
4902
esac
 
4903
 
 
4904
 
 
4905
  test "x$silent" != "xyes" && echo "  forcing AP_NONBLOCK_WHEN_MULTI_LISTEN to \"1\""
 
4906
  AP_NONBLOCK_WHEN_MULTI_LISTEN="1"
 
4907
 
 
4908
 
 
4909
 
 
4910
 
 
4911
# Extract the first word of "rm", so it can be a program name with args.
 
4912
set dummy rm; ac_word=$2
 
4913
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4914
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4915
if test "${ac_cv_path_RM+set}" = set; then
 
4916
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4917
else
 
4918
  case $RM in
 
4919
  [\\/]* | ?:[\\/]*)
 
4920
  ac_cv_path_RM="$RM" # Let the user override the test with a path.
 
4921
  ;;
 
4922
  *)
 
4923
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4924
for as_dir in $PATH
 
4925
do
 
4926
  IFS=$as_save_IFS
 
4927
  test -z "$as_dir" && as_dir=.
 
4928
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4929
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4930
    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
 
4931
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4932
    break 2
 
4933
  fi
 
4934
done
 
4935
done
 
4936
 
 
4937
  ;;
 
4938
esac
 
4939
fi
 
4940
RM=$ac_cv_path_RM
 
4941
 
 
4942
if test -n "$RM"; then
 
4943
  echo "$as_me:$LINENO: result: $RM" >&5
 
4944
echo "${ECHO_T}$RM" >&6
 
4945
else
 
4946
  echo "$as_me:$LINENO: result: no" >&5
 
4947
echo "${ECHO_T}no" >&6
 
4948
fi
 
4949
 
 
4950
# Extract the first word of "pkg-config", so it can be a program name with args.
 
4951
set dummy pkg-config; ac_word=$2
 
4952
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4953
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4954
if test "${ac_cv_path_PKGCONFIG+set}" = set; then
 
4955
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4956
else
 
4957
  case $PKGCONFIG in
 
4958
  [\\/]* | ?:[\\/]*)
 
4959
  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
 
4960
  ;;
 
4961
  *)
 
4962
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4963
for as_dir in $PATH
 
4964
do
 
4965
  IFS=$as_save_IFS
 
4966
  test -z "$as_dir" && as_dir=.
 
4967
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4968
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4969
    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
 
4970
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4971
    break 2
 
4972
  fi
 
4973
done
 
4974
done
 
4975
 
 
4976
  ;;
 
4977
esac
 
4978
fi
 
4979
PKGCONFIG=$ac_cv_path_PKGCONFIG
 
4980
 
 
4981
if test -n "$PKGCONFIG"; then
 
4982
  echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
 
4983
echo "${ECHO_T}$PKGCONFIG" >&6
 
4984
else
 
4985
  echo "$as_me:$LINENO: result: no" >&5
 
4986
echo "${ECHO_T}no" >&6
 
4987
fi
 
4988
 
 
4989
# Extract the first word of "rsync", so it can be a program name with args.
 
4990
set dummy rsync; ac_word=$2
 
4991
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4992
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4993
if test "${ac_cv_path_RSYNC+set}" = set; then
 
4994
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4995
else
 
4996
  case $RSYNC in
 
4997
  [\\/]* | ?:[\\/]*)
 
4998
  ac_cv_path_RSYNC="$RSYNC" # Let the user override the test with a path.
 
4999
  ;;
 
5000
  *)
 
5001
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5002
for as_dir in $PATH
 
5003
do
 
5004
  IFS=$as_save_IFS
 
5005
  test -z "$as_dir" && as_dir=.
 
5006
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5007
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5008
    ac_cv_path_RSYNC="$as_dir/$ac_word$ac_exec_ext"
 
5009
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5010
    break 2
 
5011
  fi
 
5012
done
 
5013
done
 
5014
 
 
5015
  ;;
 
5016
esac
 
5017
fi
 
5018
RSYNC=$ac_cv_path_RSYNC
 
5019
 
 
5020
if test -n "$RSYNC"; then
 
5021
  echo "$as_me:$LINENO: result: $RSYNC" >&5
 
5022
echo "${ECHO_T}$RSYNC" >&6
 
5023
else
 
5024
  echo "$as_me:$LINENO: result: no" >&5
 
5025
echo "${ECHO_T}no" >&6
 
5026
fi
 
5027
 
 
5028
for ac_prog in gawk mawk nawk awk
 
5029
do
 
5030
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5031
set dummy $ac_prog; ac_word=$2
 
5032
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5033
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5034
if test "${ac_cv_prog_AWK+set}" = set; then
 
5035
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5036
else
 
5037
  if test -n "$AWK"; then
 
5038
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
5039
else
 
5040
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5041
for as_dir in $PATH
 
5042
do
 
5043
  IFS=$as_save_IFS
 
5044
  test -z "$as_dir" && as_dir=.
 
5045
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5046
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5047
    ac_cv_prog_AWK="$ac_prog"
 
5048
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5049
    break 2
 
5050
  fi
 
5051
done
 
5052
done
 
5053
 
 
5054
fi
 
5055
fi
 
5056
AWK=$ac_cv_prog_AWK
 
5057
if test -n "$AWK"; then
 
5058
  echo "$as_me:$LINENO: result: $AWK" >&5
 
5059
echo "${ECHO_T}$AWK" >&6
 
5060
else
 
5061
  echo "$as_me:$LINENO: result: no" >&5
 
5062
echo "${ECHO_T}no" >&6
 
5063
fi
 
5064
 
 
5065
  test -n "$AWK" && break
 
5066
done
 
5067
 
 
5068
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
5069
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
5070
LN_S=$as_ln_s
 
5071
if test "$LN_S" = "ln -s"; then
 
5072
  echo "$as_me:$LINENO: result: yes" >&5
 
5073
echo "${ECHO_T}yes" >&6
 
5074
else
 
5075
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
5076
echo "${ECHO_T}no, using $LN_S" >&6
 
5077
fi
 
5078
 
 
5079
if test -n "$ac_tool_prefix"; then
 
5080
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5081
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5082
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5083
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5084
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
5085
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5086
else
 
5087
  if test -n "$RANLIB"; then
 
5088
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5089
else
 
5090
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5091
for as_dir in $PATH
 
5092
do
 
5093
  IFS=$as_save_IFS
 
5094
  test -z "$as_dir" && as_dir=.
 
5095
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5096
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5097
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5098
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5099
    break 2
 
5100
  fi
 
5101
done
 
5102
done
 
5103
 
 
5104
fi
 
5105
fi
 
5106
RANLIB=$ac_cv_prog_RANLIB
 
5107
if test -n "$RANLIB"; then
 
5108
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
5109
echo "${ECHO_T}$RANLIB" >&6
 
5110
else
 
5111
  echo "$as_me:$LINENO: result: no" >&5
 
5112
echo "${ECHO_T}no" >&6
 
5113
fi
 
5114
 
 
5115
fi
 
5116
if test -z "$ac_cv_prog_RANLIB"; then
 
5117
  ac_ct_RANLIB=$RANLIB
 
5118
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5119
set dummy ranlib; ac_word=$2
 
5120
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5121
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5122
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
5123
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5124
else
 
5125
  if test -n "$ac_ct_RANLIB"; then
 
5126
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5127
else
 
5128
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5129
for as_dir in $PATH
 
5130
do
 
5131
  IFS=$as_save_IFS
 
5132
  test -z "$as_dir" && as_dir=.
 
5133
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5134
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5135
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5136
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5137
    break 2
 
5138
  fi
 
5139
done
 
5140
done
 
5141
 
 
5142
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="true"
 
5143
fi
 
5144
fi
 
5145
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5146
if test -n "$ac_ct_RANLIB"; then
 
5147
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
5148
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
5149
else
 
5150
  echo "$as_me:$LINENO: result: no" >&5
 
5151
echo "${ECHO_T}no" >&6
 
5152
fi
 
5153
 
 
5154
  RANLIB=$ac_ct_RANLIB
 
5155
else
 
5156
  RANLIB="$ac_cv_prog_RANLIB"
 
5157
fi
 
5158
 
 
5159
for ac_prog in lynx links elinks
 
5160
do
 
5161
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5162
set dummy $ac_prog; ac_word=$2
 
5163
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5164
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5165
if test "${ac_cv_prog_LYNX_PATH+set}" = set; then
 
5166
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5167
else
 
5168
  if test -n "$LYNX_PATH"; then
 
5169
  ac_cv_prog_LYNX_PATH="$LYNX_PATH" # Let the user override the test.
 
5170
else
 
5171
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5172
for as_dir in $PATH
 
5173
do
 
5174
  IFS=$as_save_IFS
 
5175
  test -z "$as_dir" && as_dir=.
 
5176
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5177
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5178
    ac_cv_prog_LYNX_PATH="$ac_prog"
 
5179
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5180
    break 2
 
5181
  fi
 
5182
done
 
5183
done
 
5184
 
 
5185
fi
 
5186
fi
 
5187
LYNX_PATH=$ac_cv_prog_LYNX_PATH
 
5188
if test -n "$LYNX_PATH"; then
 
5189
  echo "$as_me:$LINENO: result: $LYNX_PATH" >&5
 
5190
echo "${ECHO_T}$LYNX_PATH" >&6
 
5191
else
 
5192
  echo "$as_me:$LINENO: result: no" >&5
 
5193
echo "${ECHO_T}no" >&6
 
5194
fi
 
5195
 
 
5196
  test -n "$LYNX_PATH" && break
 
5197
done
 
5198
test -n "$LYNX_PATH" || LYNX_PATH="lynx"
 
5199
 
 
5200
 
 
5201
# Hard-coded install programs
 
5202
MKINSTALLDIRS="\$(abs_srcdir)/build/mkdir.sh"
 
5203
INSTALL="\$(LIBTOOL) --mode=install \$(abs_srcdir)/build/install.sh -c"
 
5204
 
 
5205
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MKINSTALLDIRS"
 
5206
 
 
5207
 
 
5208
 
 
5209
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST INSTALL"
 
5210
 
 
5211
 
 
5212
 
 
5213
 
 
5214
 
 
5215
echo "$as_me:$LINENO: checking for egrep" >&5
 
5216
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
5217
if test "${ac_cv_prog_egrep+set}" = set; then
 
5218
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5219
else
 
5220
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
5221
    then ac_cv_prog_egrep='grep -E'
 
5222
    else ac_cv_prog_egrep='egrep'
 
5223
    fi
 
5224
fi
 
5225
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
5226
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
5227
 EGREP=$ac_cv_prog_egrep
 
5228
 
 
5229
 
 
5230
 
 
5231
echo "$as_me:$LINENO: checking for AIX" >&5
 
5232
echo $ECHO_N "checking for AIX... $ECHO_C" >&6
 
5233
cat >conftest.$ac_ext <<_ACEOF
 
5234
/* confdefs.h.  */
 
5235
_ACEOF
 
5236
cat confdefs.h >>conftest.$ac_ext
 
5237
cat >>conftest.$ac_ext <<_ACEOF
 
5238
/* end confdefs.h.  */
 
5239
#ifdef _AIX
 
5240
  yes
 
5241
#endif
 
5242
 
 
5243
_ACEOF
 
5244
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5245
  $EGREP "yes" >/dev/null 2>&1; then
 
5246
  echo "$as_me:$LINENO: result: yes" >&5
 
5247
echo "${ECHO_T}yes" >&6
 
5248
cat >>confdefs.h <<\_ACEOF
 
5249
#define _ALL_SOURCE 1
 
5250
_ACEOF
 
5251
 
 
5252
else
 
5253
  echo "$as_me:$LINENO: result: no" >&5
 
5254
echo "${ECHO_T}no" >&6
 
5255
fi
 
5256
rm -f conftest*
 
5257
 
 
5258
 
 
5259
echo "$as_me:$LINENO: checking for library containing strerror" >&5
 
5260
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
 
5261
if test "${ac_cv_search_strerror+set}" = set; then
 
5262
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5263
else
 
5264
  ac_func_search_save_LIBS=$LIBS
 
5265
ac_cv_search_strerror=no
 
5266
cat >conftest.$ac_ext <<_ACEOF
 
5267
/* confdefs.h.  */
 
5268
_ACEOF
 
5269
cat confdefs.h >>conftest.$ac_ext
 
5270
cat >>conftest.$ac_ext <<_ACEOF
 
5271
/* end confdefs.h.  */
 
5272
 
 
5273
/* Override any gcc2 internal prototype to avoid an error.  */
 
5274
#ifdef __cplusplus
 
5275
extern "C"
 
5276
#endif
 
5277
/* We use char because int might match the return type of a gcc2
 
5278
   builtin and then its argument prototype would still apply.  */
 
5279
char strerror ();
 
5280
int
 
5281
main ()
 
5282
{
 
5283
strerror ();
 
5284
  ;
 
5285
  return 0;
 
5286
}
 
5287
_ACEOF
 
5288
rm -f conftest.$ac_objext conftest$ac_exeext
 
5289
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5290
  (eval $ac_link) 2>conftest.er1
 
5291
  ac_status=$?
 
5292
  grep -v '^ *+' conftest.er1 >conftest.err
 
5293
  rm -f conftest.er1
 
5294
  cat conftest.err >&5
 
5295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5296
  (exit $ac_status); } &&
 
5297
         { ac_try='test -z "$ac_c_werror_flag"
 
5298
                         || test ! -s conftest.err'
 
5299
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5300
  (eval $ac_try) 2>&5
 
5301
  ac_status=$?
 
5302
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5303
  (exit $ac_status); }; } &&
 
5304
         { ac_try='test -s conftest$ac_exeext'
 
5305
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5306
  (eval $ac_try) 2>&5
 
5307
  ac_status=$?
 
5308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5309
  (exit $ac_status); }; }; then
 
5310
  ac_cv_search_strerror="none required"
 
5311
else
 
5312
  echo "$as_me: failed program was:" >&5
 
5313
sed 's/^/| /' conftest.$ac_ext >&5
 
5314
 
 
5315
fi
 
5316
rm -f conftest.err conftest.$ac_objext \
 
5317
      conftest$ac_exeext conftest.$ac_ext
 
5318
if test "$ac_cv_search_strerror" = no; then
 
5319
  for ac_lib in cposix; do
 
5320
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
5321
    cat >conftest.$ac_ext <<_ACEOF
 
5322
/* confdefs.h.  */
 
5323
_ACEOF
 
5324
cat confdefs.h >>conftest.$ac_ext
 
5325
cat >>conftest.$ac_ext <<_ACEOF
 
5326
/* end confdefs.h.  */
 
5327
 
 
5328
/* Override any gcc2 internal prototype to avoid an error.  */
 
5329
#ifdef __cplusplus
 
5330
extern "C"
 
5331
#endif
 
5332
/* We use char because int might match the return type of a gcc2
 
5333
   builtin and then its argument prototype would still apply.  */
 
5334
char strerror ();
 
5335
int
 
5336
main ()
 
5337
{
 
5338
strerror ();
 
5339
  ;
 
5340
  return 0;
 
5341
}
 
5342
_ACEOF
 
5343
rm -f conftest.$ac_objext conftest$ac_exeext
 
5344
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5345
  (eval $ac_link) 2>conftest.er1
 
5346
  ac_status=$?
 
5347
  grep -v '^ *+' conftest.er1 >conftest.err
 
5348
  rm -f conftest.er1
 
5349
  cat conftest.err >&5
 
5350
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5351
  (exit $ac_status); } &&
 
5352
         { ac_try='test -z "$ac_c_werror_flag"
 
5353
                         || test ! -s conftest.err'
 
5354
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5355
  (eval $ac_try) 2>&5
 
5356
  ac_status=$?
 
5357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5358
  (exit $ac_status); }; } &&
 
5359
         { ac_try='test -s conftest$ac_exeext'
 
5360
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5361
  (eval $ac_try) 2>&5
 
5362
  ac_status=$?
 
5363
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5364
  (exit $ac_status); }; }; then
 
5365
  ac_cv_search_strerror="-l$ac_lib"
 
5366
break
 
5367
else
 
5368
  echo "$as_me: failed program was:" >&5
 
5369
sed 's/^/| /' conftest.$ac_ext >&5
 
5370
 
 
5371
fi
 
5372
rm -f conftest.err conftest.$ac_objext \
 
5373
      conftest$ac_exeext conftest.$ac_ext
 
5374
  done
 
5375
fi
 
5376
LIBS=$ac_func_search_save_LIBS
 
5377
fi
 
5378
echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
 
5379
echo "${ECHO_T}$ac_cv_search_strerror" >&6
 
5380
if test "$ac_cv_search_strerror" != no; then
 
5381
  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
 
5382
 
 
5383
fi
 
5384
 
 
5385
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
5386
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
5387
if test "${ac_cv_header_stdc+set}" = set; then
 
5388
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5389
else
 
5390
  cat >conftest.$ac_ext <<_ACEOF
 
5391
/* confdefs.h.  */
 
5392
_ACEOF
 
5393
cat confdefs.h >>conftest.$ac_ext
 
5394
cat >>conftest.$ac_ext <<_ACEOF
 
5395
/* end confdefs.h.  */
 
5396
#include <stdlib.h>
 
5397
#include <stdarg.h>
 
5398
#include <string.h>
 
5399
#include <float.h>
 
5400
 
 
5401
int
 
5402
main ()
 
5403
{
 
5404
 
 
5405
  ;
 
5406
  return 0;
 
5407
}
 
5408
_ACEOF
 
5409
rm -f conftest.$ac_objext
 
5410
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5411
  (eval $ac_compile) 2>conftest.er1
 
5412
  ac_status=$?
 
5413
  grep -v '^ *+' conftest.er1 >conftest.err
 
5414
  rm -f conftest.er1
 
5415
  cat conftest.err >&5
 
5416
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5417
  (exit $ac_status); } &&
 
5418
         { ac_try='test -z "$ac_c_werror_flag"
 
5419
                         || test ! -s conftest.err'
 
5420
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5421
  (eval $ac_try) 2>&5
 
5422
  ac_status=$?
 
5423
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5424
  (exit $ac_status); }; } &&
 
5425
         { ac_try='test -s conftest.$ac_objext'
 
5426
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5427
  (eval $ac_try) 2>&5
 
5428
  ac_status=$?
 
5429
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5430
  (exit $ac_status); }; }; then
 
5431
  ac_cv_header_stdc=yes
 
5432
else
 
5433
  echo "$as_me: failed program was:" >&5
 
5434
sed 's/^/| /' conftest.$ac_ext >&5
 
5435
 
 
5436
ac_cv_header_stdc=no
 
5437
fi
 
5438
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5439
 
 
5440
if test $ac_cv_header_stdc = yes; then
 
5441
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
5442
  cat >conftest.$ac_ext <<_ACEOF
 
5443
/* confdefs.h.  */
 
5444
_ACEOF
 
5445
cat confdefs.h >>conftest.$ac_ext
 
5446
cat >>conftest.$ac_ext <<_ACEOF
 
5447
/* end confdefs.h.  */
 
5448
#include <string.h>
 
5449
 
 
5450
_ACEOF
 
5451
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5452
  $EGREP "memchr" >/dev/null 2>&1; then
 
5453
  :
 
5454
else
 
5455
  ac_cv_header_stdc=no
 
5456
fi
 
5457
rm -f conftest*
 
5458
 
 
5459
fi
 
5460
 
 
5461
if test $ac_cv_header_stdc = yes; then
 
5462
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
5463
  cat >conftest.$ac_ext <<_ACEOF
 
5464
/* confdefs.h.  */
 
5465
_ACEOF
 
5466
cat confdefs.h >>conftest.$ac_ext
 
5467
cat >>conftest.$ac_ext <<_ACEOF
 
5468
/* end confdefs.h.  */
 
5469
#include <stdlib.h>
 
5470
 
 
5471
_ACEOF
 
5472
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5473
  $EGREP "free" >/dev/null 2>&1; then
 
5474
  :
 
5475
else
 
5476
  ac_cv_header_stdc=no
 
5477
fi
 
5478
rm -f conftest*
 
5479
 
 
5480
fi
 
5481
 
 
5482
if test $ac_cv_header_stdc = yes; then
 
5483
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
5484
  if test "$cross_compiling" = yes; then
 
5485
  :
 
5486
else
 
5487
  cat >conftest.$ac_ext <<_ACEOF
 
5488
/* confdefs.h.  */
 
5489
_ACEOF
 
5490
cat confdefs.h >>conftest.$ac_ext
 
5491
cat >>conftest.$ac_ext <<_ACEOF
 
5492
/* end confdefs.h.  */
 
5493
#include <ctype.h>
 
5494
#if ((' ' & 0x0FF) == 0x020)
 
5495
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
5496
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
5497
#else
 
5498
# define ISLOWER(c) \
 
5499
                   (('a' <= (c) && (c) <= 'i') \
 
5500
                     || ('j' <= (c) && (c) <= 'r') \
 
5501
                     || ('s' <= (c) && (c) <= 'z'))
 
5502
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
5503
#endif
 
5504
 
 
5505
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
5506
int
 
5507
main ()
 
5508
{
 
5509
  int i;
 
5510
  for (i = 0; i < 256; i++)
 
5511
    if (XOR (islower (i), ISLOWER (i))
 
5512
        || toupper (i) != TOUPPER (i))
 
5513
      exit(2);
 
5514
  exit (0);
 
5515
}
 
5516
_ACEOF
 
5517
rm -f conftest$ac_exeext
 
5518
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5519
  (eval $ac_link) 2>&5
 
5520
  ac_status=$?
 
5521
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5522
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5523
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5524
  (eval $ac_try) 2>&5
 
5525
  ac_status=$?
 
5526
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5527
  (exit $ac_status); }; }; then
 
5528
  :
 
5529
else
 
5530
  echo "$as_me: program exited with status $ac_status" >&5
 
5531
echo "$as_me: failed program was:" >&5
 
5532
sed 's/^/| /' conftest.$ac_ext >&5
 
5533
 
 
5534
( exit $ac_status )
 
5535
ac_cv_header_stdc=no
 
5536
fi
 
5537
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5538
fi
 
5539
fi
 
5540
fi
 
5541
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
5542
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
5543
if test $ac_cv_header_stdc = yes; then
 
5544
 
 
5545
cat >>confdefs.h <<\_ACEOF
 
5546
#define STDC_HEADERS 1
 
5547
_ACEOF
 
5548
 
 
5549
fi
 
5550
 
 
5551
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
5552
 
 
5553
 
 
5554
 
 
5555
 
 
5556
 
 
5557
 
 
5558
 
 
5559
 
 
5560
 
 
5561
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
5562
                  inttypes.h stdint.h unistd.h
 
5563
do
 
5564
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5565
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5566
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5567
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5568
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5569
else
 
5570
  cat >conftest.$ac_ext <<_ACEOF
 
5571
/* confdefs.h.  */
 
5572
_ACEOF
 
5573
cat confdefs.h >>conftest.$ac_ext
 
5574
cat >>conftest.$ac_ext <<_ACEOF
 
5575
/* end confdefs.h.  */
 
5576
$ac_includes_default
 
5577
 
 
5578
#include <$ac_header>
 
5579
_ACEOF
 
5580
rm -f conftest.$ac_objext
 
5581
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5582
  (eval $ac_compile) 2>conftest.er1
 
5583
  ac_status=$?
 
5584
  grep -v '^ *+' conftest.er1 >conftest.err
 
5585
  rm -f conftest.er1
 
5586
  cat conftest.err >&5
 
5587
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5588
  (exit $ac_status); } &&
 
5589
         { ac_try='test -z "$ac_c_werror_flag"
 
5590
                         || test ! -s conftest.err'
 
5591
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5592
  (eval $ac_try) 2>&5
 
5593
  ac_status=$?
 
5594
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5595
  (exit $ac_status); }; } &&
 
5596
         { ac_try='test -s conftest.$ac_objext'
 
5597
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5598
  (eval $ac_try) 2>&5
 
5599
  ac_status=$?
 
5600
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5601
  (exit $ac_status); }; }; then
 
5602
  eval "$as_ac_Header=yes"
 
5603
else
 
5604
  echo "$as_me: failed program was:" >&5
 
5605
sed 's/^/| /' conftest.$ac_ext >&5
 
5606
 
 
5607
eval "$as_ac_Header=no"
 
5608
fi
 
5609
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5610
fi
 
5611
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5612
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5613
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5614
  cat >>confdefs.h <<_ACEOF
 
5615
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5616
_ACEOF
 
5617
 
 
5618
fi
 
5619
 
 
5620
done
 
5621
 
 
5622
 
 
5623
if test "${ac_cv_header_minix_config_h+set}" = set; then
 
5624
  echo "$as_me:$LINENO: checking for minix/config.h" >&5
 
5625
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
 
5626
if test "${ac_cv_header_minix_config_h+set}" = set; then
 
5627
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5628
fi
 
5629
echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
 
5630
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
 
5631
else
 
5632
  # Is the header compilable?
 
5633
echo "$as_me:$LINENO: checking minix/config.h usability" >&5
 
5634
echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
 
5635
cat >conftest.$ac_ext <<_ACEOF
 
5636
/* confdefs.h.  */
 
5637
_ACEOF
 
5638
cat confdefs.h >>conftest.$ac_ext
 
5639
cat >>conftest.$ac_ext <<_ACEOF
 
5640
/* end confdefs.h.  */
 
5641
$ac_includes_default
 
5642
#include <minix/config.h>
 
5643
_ACEOF
 
5644
rm -f conftest.$ac_objext
 
5645
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5646
  (eval $ac_compile) 2>conftest.er1
 
5647
  ac_status=$?
 
5648
  grep -v '^ *+' conftest.er1 >conftest.err
 
5649
  rm -f conftest.er1
 
5650
  cat conftest.err >&5
 
5651
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5652
  (exit $ac_status); } &&
 
5653
         { ac_try='test -z "$ac_c_werror_flag"
 
5654
                         || test ! -s conftest.err'
 
5655
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5656
  (eval $ac_try) 2>&5
 
5657
  ac_status=$?
 
5658
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5659
  (exit $ac_status); }; } &&
 
5660
         { ac_try='test -s conftest.$ac_objext'
 
5661
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5662
  (eval $ac_try) 2>&5
 
5663
  ac_status=$?
 
5664
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5665
  (exit $ac_status); }; }; then
 
5666
  ac_header_compiler=yes
 
5667
else
 
5668
  echo "$as_me: failed program was:" >&5
 
5669
sed 's/^/| /' conftest.$ac_ext >&5
 
5670
 
 
5671
ac_header_compiler=no
 
5672
fi
 
5673
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5674
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5675
echo "${ECHO_T}$ac_header_compiler" >&6
 
5676
 
 
5677
# Is the header present?
 
5678
echo "$as_me:$LINENO: checking minix/config.h presence" >&5
 
5679
echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
 
5680
cat >conftest.$ac_ext <<_ACEOF
 
5681
/* confdefs.h.  */
 
5682
_ACEOF
 
5683
cat confdefs.h >>conftest.$ac_ext
 
5684
cat >>conftest.$ac_ext <<_ACEOF
 
5685
/* end confdefs.h.  */
 
5686
#include <minix/config.h>
 
5687
_ACEOF
 
5688
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5689
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5690
  ac_status=$?
 
5691
  grep -v '^ *+' conftest.er1 >conftest.err
 
5692
  rm -f conftest.er1
 
5693
  cat conftest.err >&5
 
5694
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5695
  (exit $ac_status); } >/dev/null; then
 
5696
  if test -s conftest.err; then
 
5697
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5698
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
5699
  else
 
5700
    ac_cpp_err=
 
5701
  fi
 
5702
else
 
5703
  ac_cpp_err=yes
 
5704
fi
 
5705
if test -z "$ac_cpp_err"; then
 
5706
  ac_header_preproc=yes
 
5707
else
 
5708
  echo "$as_me: failed program was:" >&5
 
5709
sed 's/^/| /' conftest.$ac_ext >&5
 
5710
 
 
5711
  ac_header_preproc=no
 
5712
fi
 
5713
rm -f conftest.err conftest.$ac_ext
 
5714
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5715
echo "${ECHO_T}$ac_header_preproc" >&6
 
5716
 
 
5717
# So?  What about this header?
 
5718
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5719
  yes:no: )
 
5720
    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
5721
echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5722
    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
 
5723
echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
 
5724
    ac_header_preproc=yes
 
5725
    ;;
 
5726
  no:yes:* )
 
5727
    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
 
5728
echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
 
5729
    { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
 
5730
echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
 
5731
    { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
 
5732
echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
 
5733
    { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
 
5734
echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5735
    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
 
5736
echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
 
5737
    { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
 
5738
echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
 
5739
    (
 
5740
      cat <<\_ASBOX
 
5741
## ------------------------------------------ ##
 
5742
## Report this to the AC_PACKAGE_NAME lists.  ##
 
5743
## ------------------------------------------ ##
 
5744
_ASBOX
 
5745
    ) |
 
5746
      sed "s/^/$as_me: WARNING:     /" >&2
 
5747
    ;;
 
5748
esac
 
5749
echo "$as_me:$LINENO: checking for minix/config.h" >&5
 
5750
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
 
5751
if test "${ac_cv_header_minix_config_h+set}" = set; then
 
5752
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5753
else
 
5754
  ac_cv_header_minix_config_h=$ac_header_preproc
 
5755
fi
 
5756
echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
 
5757
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
 
5758
 
 
5759
fi
 
5760
if test $ac_cv_header_minix_config_h = yes; then
 
5761
  MINIX=yes
 
5762
else
 
5763
  MINIX=
 
5764
fi
 
5765
 
 
5766
 
 
5767
if test "$MINIX" = yes; then
 
5768
 
 
5769
cat >>confdefs.h <<\_ACEOF
 
5770
#define _POSIX_SOURCE 1
 
5771
_ACEOF
 
5772
 
 
5773
 
 
5774
cat >>confdefs.h <<\_ACEOF
 
5775
#define _POSIX_1_SOURCE 2
 
5776
_ACEOF
 
5777
 
 
5778
 
 
5779
cat >>confdefs.h <<\_ACEOF
 
5780
#define _MINIX 1
 
5781
_ACEOF
 
5782
 
 
5783
fi
 
5784
 
 
5785
 
 
5786
# Ensure that satisfactory versions of apr and apr-util are
 
5787
# found if external copies are configured.
 
5788
if test "${apr_found}" = "yes"; then
 
5789
  # Require APR 1.2.x otherwise fail
 
5790
 
 
5791
 
 
5792
 
 
5793
 
 
5794
 
 
5795
 
 
5796
ap_ckver_CPPFLAGS="$CPPFLAGS"
 
5797
CPPFLAGS="$CPPFLAGS `$apr_config --includes`"
 
5798
 
 
5799
echo "$as_me:$LINENO: checking for APR version 1.2.0 or later" >&5
 
5800
echo $ECHO_N "checking for APR version 1.2.0 or later... $ECHO_C" >&6
 
5801
if test "${ap_cv_aprver12+set}" = set; then
 
5802
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5803
else
 
5804
 
 
5805
cat >conftest.$ac_ext <<_ACEOF
 
5806
/* confdefs.h.  */
 
5807
_ACEOF
 
5808
cat confdefs.h >>conftest.$ac_ext
 
5809
cat >>conftest.$ac_ext <<_ACEOF
 
5810
/* end confdefs.h.  */
 
5811
 
 
5812
#include <apr_version.h>
 
5813
#if APR_MAJOR_VERSION > 1 || (APR_MAJOR_VERSION == 1 && APR_MINOR_VERSION >= 2)
 
5814
good
 
5815
#endif
 
5816
 
 
5817
_ACEOF
 
5818
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5819
  $EGREP "good" >/dev/null 2>&1; then
 
5820
  ap_cv_aprver12=yes
 
5821
else
 
5822
  ap_cv_aprver12=no
 
5823
fi
 
5824
rm -f conftest*
 
5825
 
 
5826
fi
 
5827
echo "$as_me:$LINENO: result: $ap_cv_aprver12" >&5
 
5828
echo "${ECHO_T}$ap_cv_aprver12" >&6
 
5829
 
 
5830
if test "$ap_cv_aprver12" = "yes"; then
 
5831
  :
 
5832
else
 
5833
  { { echo "$as_me:$LINENO: error: APR version 1.2.0 or later is required" >&5
 
5834
echo "$as_me: error: APR version 1.2.0 or later is required" >&2;}
 
5835
   { (exit 1); exit 1; }; }
 
5836
fi
 
5837
 
 
5838
CPPFLAGS="$ap_ckver_CPPFLAGS"
 
5839
 
 
5840
 
 
5841
 
 
5842
 
 
5843
 
 
5844
 
 
5845
fi
 
5846
 
 
5847
if test "${apu_found}" = "yes"; then
 
5848
  # Require APR-util 1.2.x otherwise fail
 
5849
 
 
5850
 
 
5851
 
 
5852
 
 
5853
 
 
5854
 
 
5855
ap_ckver_CPPFLAGS="$CPPFLAGS"
 
5856
CPPFLAGS="$CPPFLAGS `$apu_config --includes`"
 
5857
 
 
5858
echo "$as_me:$LINENO: checking for APR-util version 1.2.0 or later" >&5
 
5859
echo $ECHO_N "checking for APR-util version 1.2.0 or later... $ECHO_C" >&6
 
5860
if test "${ap_cv_apuver12+set}" = set; then
 
5861
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5862
else
 
5863
 
 
5864
cat >conftest.$ac_ext <<_ACEOF
 
5865
/* confdefs.h.  */
 
5866
_ACEOF
 
5867
cat confdefs.h >>conftest.$ac_ext
 
5868
cat >>conftest.$ac_ext <<_ACEOF
 
5869
/* end confdefs.h.  */
 
5870
 
 
5871
#include <apu_version.h>
 
5872
#if APU_MAJOR_VERSION > 1 || (APU_MAJOR_VERSION == 1 && APU_MINOR_VERSION >= 2)
 
5873
good
 
5874
#endif
 
5875
 
 
5876
_ACEOF
 
5877
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5878
  $EGREP "good" >/dev/null 2>&1; then
 
5879
  ap_cv_apuver12=yes
 
5880
else
 
5881
  ap_cv_apuver12=no
 
5882
fi
 
5883
rm -f conftest*
 
5884
 
 
5885
fi
 
5886
echo "$as_me:$LINENO: result: $ap_cv_apuver12" >&5
 
5887
echo "${ECHO_T}$ap_cv_apuver12" >&6
 
5888
 
 
5889
if test "$ap_cv_apuver12" = "yes"; then
 
5890
  :
 
5891
else
 
5892
  { { echo "$as_me:$LINENO: error: APR-util version 1.2.0 or later is required" >&5
 
5893
echo "$as_me: error: APR-util version 1.2.0 or later is required" >&2;}
 
5894
   { (exit 1); exit 1; }; }
 
5895
fi
 
5896
 
 
5897
CPPFLAGS="$ap_ckver_CPPFLAGS"
 
5898
 
 
5899
 
 
5900
 
 
5901
 
 
5902
 
 
5903
 
 
5904
fi
 
5905
 
 
5906
 
 
5907
if test "$GCC" = "yes"; then
 
5908
  MKDEP='$(CC) -MM'
 
5909
else
 
5910
  rm -f conftest.c
 
5911
  cat > conftest.c <<EOF
 
5912
#include <sys/types.h>
 
5913
  int main() { return 0; }
 
5914
EOF
 
5915
  MKDEP="true"
 
5916
  for i in "$CC -MM" "$CC -M" "$CPP -MM" "$CPP -M" "cpp -M"; do
 
5917
    echo "$as_me:$LINENO: checking if $i can create proper make dependencies" >&5
 
5918
echo $ECHO_N "checking if $i can create proper make dependencies... $ECHO_C" >&6
 
5919
    if $i conftest.c 2>/dev/null | grep 'conftest.o: conftest.c' >/dev/null; then
 
5920
      MKDEP=$i
 
5921
      echo "$as_me:$LINENO: result: yes" >&5
 
5922
echo "${ECHO_T}yes" >&6
 
5923
      break;
 
5924
    fi
 
5925
    echo "$as_me:$LINENO: result: no" >&5
 
5926
echo "${ECHO_T}no" >&6
 
5927
  done
 
5928
  rm -f conftest.c
 
5929
fi
 
5930
 
 
5931
 
 
5932
 
 
5933
 
 
5934
 
 
5935
 
 
5936
 
 
5937
 
 
5938
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
5939
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
5940
if test "${ac_cv_header_stdc+set}" = set; then
 
5941
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5942
else
 
5943
  cat >conftest.$ac_ext <<_ACEOF
 
5944
/* confdefs.h.  */
 
5945
_ACEOF
 
5946
cat confdefs.h >>conftest.$ac_ext
 
5947
cat >>conftest.$ac_ext <<_ACEOF
 
5948
/* end confdefs.h.  */
 
5949
#include <stdlib.h>
 
5950
#include <stdarg.h>
 
5951
#include <string.h>
 
5952
#include <float.h>
 
5953
 
 
5954
int
 
5955
main ()
 
5956
{
 
5957
 
 
5958
  ;
 
5959
  return 0;
 
5960
}
 
5961
_ACEOF
 
5962
rm -f conftest.$ac_objext
 
5963
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5964
  (eval $ac_compile) 2>conftest.er1
 
5965
  ac_status=$?
 
5966
  grep -v '^ *+' conftest.er1 >conftest.err
 
5967
  rm -f conftest.er1
 
5968
  cat conftest.err >&5
 
5969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5970
  (exit $ac_status); } &&
 
5971
         { ac_try='test -z "$ac_c_werror_flag"
 
5972
                         || test ! -s conftest.err'
 
5973
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5974
  (eval $ac_try) 2>&5
 
5975
  ac_status=$?
 
5976
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5977
  (exit $ac_status); }; } &&
 
5978
         { ac_try='test -s conftest.$ac_objext'
 
5979
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5980
  (eval $ac_try) 2>&5
 
5981
  ac_status=$?
 
5982
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5983
  (exit $ac_status); }; }; then
 
5984
  ac_cv_header_stdc=yes
 
5985
else
 
5986
  echo "$as_me: failed program was:" >&5
 
5987
sed 's/^/| /' conftest.$ac_ext >&5
 
5988
 
 
5989
ac_cv_header_stdc=no
 
5990
fi
 
5991
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5992
 
 
5993
if test $ac_cv_header_stdc = yes; then
 
5994
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
5995
  cat >conftest.$ac_ext <<_ACEOF
 
5996
/* confdefs.h.  */
 
5997
_ACEOF
 
5998
cat confdefs.h >>conftest.$ac_ext
 
5999
cat >>conftest.$ac_ext <<_ACEOF
 
6000
/* end confdefs.h.  */
 
6001
#include <string.h>
 
6002
 
 
6003
_ACEOF
 
6004
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6005
  $EGREP "memchr" >/dev/null 2>&1; then
 
6006
  :
 
6007
else
 
6008
  ac_cv_header_stdc=no
 
6009
fi
 
6010
rm -f conftest*
 
6011
 
 
6012
fi
 
6013
 
 
6014
if test $ac_cv_header_stdc = yes; then
 
6015
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
6016
  cat >conftest.$ac_ext <<_ACEOF
 
6017
/* confdefs.h.  */
 
6018
_ACEOF
 
6019
cat confdefs.h >>conftest.$ac_ext
 
6020
cat >>conftest.$ac_ext <<_ACEOF
 
6021
/* end confdefs.h.  */
 
6022
#include <stdlib.h>
 
6023
 
 
6024
_ACEOF
 
6025
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6026
  $EGREP "free" >/dev/null 2>&1; then
 
6027
  :
 
6028
else
 
6029
  ac_cv_header_stdc=no
 
6030
fi
 
6031
rm -f conftest*
 
6032
 
 
6033
fi
 
6034
 
 
6035
if test $ac_cv_header_stdc = yes; then
 
6036
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
6037
  if test "$cross_compiling" = yes; then
 
6038
  :
 
6039
else
 
6040
  cat >conftest.$ac_ext <<_ACEOF
 
6041
/* confdefs.h.  */
 
6042
_ACEOF
 
6043
cat confdefs.h >>conftest.$ac_ext
 
6044
cat >>conftest.$ac_ext <<_ACEOF
 
6045
/* end confdefs.h.  */
 
6046
#include <ctype.h>
 
6047
#if ((' ' & 0x0FF) == 0x020)
 
6048
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
6049
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
6050
#else
 
6051
# define ISLOWER(c) \
 
6052
                   (('a' <= (c) && (c) <= 'i') \
 
6053
                     || ('j' <= (c) && (c) <= 'r') \
 
6054
                     || ('s' <= (c) && (c) <= 'z'))
 
6055
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
6056
#endif
 
6057
 
 
6058
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
6059
int
 
6060
main ()
 
6061
{
 
6062
  int i;
 
6063
  for (i = 0; i < 256; i++)
 
6064
    if (XOR (islower (i), ISLOWER (i))
 
6065
        || toupper (i) != TOUPPER (i))
 
6066
      exit(2);
 
6067
  exit (0);
 
6068
}
 
6069
_ACEOF
 
6070
rm -f conftest$ac_exeext
 
6071
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6072
  (eval $ac_link) 2>&5
 
6073
  ac_status=$?
 
6074
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6075
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6076
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6077
  (eval $ac_try) 2>&5
 
6078
  ac_status=$?
 
6079
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6080
  (exit $ac_status); }; }; then
 
6081
  :
 
6082
else
 
6083
  echo "$as_me: program exited with status $ac_status" >&5
 
6084
echo "$as_me: failed program was:" >&5
 
6085
sed 's/^/| /' conftest.$ac_ext >&5
 
6086
 
 
6087
( exit $ac_status )
 
6088
ac_cv_header_stdc=no
 
6089
fi
 
6090
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6091
fi
 
6092
fi
 
6093
fi
 
6094
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
6095
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
6096
if test $ac_cv_header_stdc = yes; then
 
6097
 
 
6098
cat >>confdefs.h <<\_ACEOF
 
6099
#define STDC_HEADERS 1
 
6100
_ACEOF
 
6101
 
 
6102
fi
 
6103
 
 
6104
 
 
6105
 
 
6106
 
 
6107
 
 
6108
 
 
6109
 
 
6110
 
 
6111
 
 
6112
 
 
6113
 
 
6114
for ac_header in \
 
6115
string.h \
 
6116
limits.h \
 
6117
unistd.h \
 
6118
sys/socket.h \
 
6119
pwd.h \
 
6120
grp.h \
 
6121
strings.h \
 
6122
sys/prctl.h \
 
6123
sys/processor.h \
 
6124
sys/sem.h
 
6125
 
 
6126
do
 
6127
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6128
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6129
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6130
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6131
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6132
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6133
fi
 
6134
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6135
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6136
else
 
6137
  # Is the header compilable?
 
6138
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
6139
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
6140
cat >conftest.$ac_ext <<_ACEOF
 
6141
/* confdefs.h.  */
 
6142
_ACEOF
 
6143
cat confdefs.h >>conftest.$ac_ext
 
6144
cat >>conftest.$ac_ext <<_ACEOF
 
6145
/* end confdefs.h.  */
 
6146
$ac_includes_default
 
6147
#include <$ac_header>
 
6148
_ACEOF
 
6149
rm -f conftest.$ac_objext
 
6150
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6151
  (eval $ac_compile) 2>conftest.er1
 
6152
  ac_status=$?
 
6153
  grep -v '^ *+' conftest.er1 >conftest.err
 
6154
  rm -f conftest.er1
 
6155
  cat conftest.err >&5
 
6156
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6157
  (exit $ac_status); } &&
 
6158
         { ac_try='test -z "$ac_c_werror_flag"
 
6159
                         || test ! -s conftest.err'
 
6160
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6161
  (eval $ac_try) 2>&5
 
6162
  ac_status=$?
 
6163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6164
  (exit $ac_status); }; } &&
 
6165
         { ac_try='test -s conftest.$ac_objext'
 
6166
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6167
  (eval $ac_try) 2>&5
 
6168
  ac_status=$?
 
6169
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6170
  (exit $ac_status); }; }; then
 
6171
  ac_header_compiler=yes
 
6172
else
 
6173
  echo "$as_me: failed program was:" >&5
 
6174
sed 's/^/| /' conftest.$ac_ext >&5
 
6175
 
 
6176
ac_header_compiler=no
 
6177
fi
 
6178
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6179
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6180
echo "${ECHO_T}$ac_header_compiler" >&6
 
6181
 
 
6182
# Is the header present?
 
6183
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
6184
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
6185
cat >conftest.$ac_ext <<_ACEOF
 
6186
/* confdefs.h.  */
 
6187
_ACEOF
 
6188
cat confdefs.h >>conftest.$ac_ext
 
6189
cat >>conftest.$ac_ext <<_ACEOF
 
6190
/* end confdefs.h.  */
 
6191
#include <$ac_header>
 
6192
_ACEOF
 
6193
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6194
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6195
  ac_status=$?
 
6196
  grep -v '^ *+' conftest.er1 >conftest.err
 
6197
  rm -f conftest.er1
 
6198
  cat conftest.err >&5
 
6199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6200
  (exit $ac_status); } >/dev/null; then
 
6201
  if test -s conftest.err; then
 
6202
    ac_cpp_err=$ac_c_preproc_warn_flag
 
6203
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
6204
  else
 
6205
    ac_cpp_err=
 
6206
  fi
 
6207
else
 
6208
  ac_cpp_err=yes
 
6209
fi
 
6210
if test -z "$ac_cpp_err"; then
 
6211
  ac_header_preproc=yes
 
6212
else
 
6213
  echo "$as_me: failed program was:" >&5
 
6214
sed 's/^/| /' conftest.$ac_ext >&5
 
6215
 
 
6216
  ac_header_preproc=no
 
6217
fi
 
6218
rm -f conftest.err conftest.$ac_ext
 
6219
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6220
echo "${ECHO_T}$ac_header_preproc" >&6
 
6221
 
 
6222
# So?  What about this header?
 
6223
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6224
  yes:no: )
 
6225
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
6226
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6227
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
6228
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
6229
    ac_header_preproc=yes
 
6230
    ;;
 
6231
  no:yes:* )
 
6232
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
6233
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
6234
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
6235
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
6236
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
6237
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
6238
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
6239
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
6240
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6241
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6242
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
6243
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
6244
    (
 
6245
      cat <<\_ASBOX
 
6246
## ------------------------------------------ ##
 
6247
## Report this to the AC_PACKAGE_NAME lists.  ##
 
6248
## ------------------------------------------ ##
 
6249
_ASBOX
 
6250
    ) |
 
6251
      sed "s/^/$as_me: WARNING:     /" >&2
 
6252
    ;;
 
6253
esac
 
6254
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6255
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6256
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6257
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6258
else
 
6259
  eval "$as_ac_Header=\$ac_header_preproc"
 
6260
fi
 
6261
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6262
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6263
 
 
6264
fi
 
6265
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6266
  cat >>confdefs.h <<_ACEOF
 
6267
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6268
_ACEOF
 
6269
 
 
6270
fi
 
6271
 
 
6272
done
 
6273
 
 
6274
echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
 
6275
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
 
6276
if test "${ac_cv_header_sys_wait_h+set}" = set; then
 
6277
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6278
else
 
6279
  cat >conftest.$ac_ext <<_ACEOF
 
6280
/* confdefs.h.  */
 
6281
_ACEOF
 
6282
cat confdefs.h >>conftest.$ac_ext
 
6283
cat >>conftest.$ac_ext <<_ACEOF
 
6284
/* end confdefs.h.  */
 
6285
#include <sys/types.h>
 
6286
#include <sys/wait.h>
 
6287
#ifndef WEXITSTATUS
 
6288
# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
 
6289
#endif
 
6290
#ifndef WIFEXITED
 
6291
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
 
6292
#endif
 
6293
 
 
6294
int
 
6295
main ()
 
6296
{
 
6297
  int s;
 
6298
  wait (&s);
 
6299
  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
 
6300
  ;
 
6301
  return 0;
 
6302
}
 
6303
_ACEOF
 
6304
rm -f conftest.$ac_objext
 
6305
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6306
  (eval $ac_compile) 2>conftest.er1
 
6307
  ac_status=$?
 
6308
  grep -v '^ *+' conftest.er1 >conftest.err
 
6309
  rm -f conftest.er1
 
6310
  cat conftest.err >&5
 
6311
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6312
  (exit $ac_status); } &&
 
6313
         { ac_try='test -z "$ac_c_werror_flag"
 
6314
                         || test ! -s conftest.err'
 
6315
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6316
  (eval $ac_try) 2>&5
 
6317
  ac_status=$?
 
6318
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6319
  (exit $ac_status); }; } &&
 
6320
         { ac_try='test -s conftest.$ac_objext'
 
6321
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6322
  (eval $ac_try) 2>&5
 
6323
  ac_status=$?
 
6324
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6325
  (exit $ac_status); }; }; then
 
6326
  ac_cv_header_sys_wait_h=yes
 
6327
else
 
6328
  echo "$as_me: failed program was:" >&5
 
6329
sed 's/^/| /' conftest.$ac_ext >&5
 
6330
 
 
6331
ac_cv_header_sys_wait_h=no
 
6332
fi
 
6333
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6334
fi
 
6335
echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
 
6336
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
 
6337
if test $ac_cv_header_sys_wait_h = yes; then
 
6338
 
 
6339
cat >>confdefs.h <<\_ACEOF
 
6340
#define HAVE_SYS_WAIT_H 1
 
6341
_ACEOF
 
6342
 
 
6343
fi
 
6344
 
 
6345
 
 
6346
 
 
6347
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
6348
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 
6349
if test "${ac_cv_c_const+set}" = set; then
 
6350
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6351
else
 
6352
  cat >conftest.$ac_ext <<_ACEOF
 
6353
/* confdefs.h.  */
 
6354
_ACEOF
 
6355
cat confdefs.h >>conftest.$ac_ext
 
6356
cat >>conftest.$ac_ext <<_ACEOF
 
6357
/* end confdefs.h.  */
 
6358
 
 
6359
int
 
6360
main ()
 
6361
{
 
6362
/* FIXME: Include the comments suggested by Paul. */
 
6363
#ifndef __cplusplus
 
6364
  /* Ultrix mips cc rejects this.  */
 
6365
  typedef int charset[2];
 
6366
  const charset x;
 
6367
  /* SunOS 4.1.1 cc rejects this.  */
 
6368
  char const *const *ccp;
 
6369
  char **p;
 
6370
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
6371
  struct point {int x, y;};
 
6372
  static struct point const zero = {0,0};
 
6373
  /* AIX XL C 1.02.0.0 rejects this.
 
6374
     It does not let you subtract one const X* pointer from another in
 
6375
     an arm of an if-expression whose if-part is not a constant
 
6376
     expression */
 
6377
  const char *g = "string";
 
6378
  ccp = &g + (g ? g-g : 0);
 
6379
  /* HPUX 7.0 cc rejects these. */
 
6380
  ++ccp;
 
6381
  p = (char**) ccp;
 
6382
  ccp = (char const *const *) p;
 
6383
  { /* SCO 3.2v4 cc rejects this.  */
 
6384
    char *t;
 
6385
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
6386
 
 
6387
    *t++ = 0;
 
6388
  }
 
6389
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
6390
    int x[] = {25, 17};
 
6391
    const int *foo = &x[0];
 
6392
    ++foo;
 
6393
  }
 
6394
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
6395
    typedef const int *iptr;
 
6396
    iptr p = 0;
 
6397
    ++p;
 
6398
  }
 
6399
  { /* AIX XL C 1.02.0.0 rejects this saying
 
6400
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
6401
    struct s { int j; const int *ap[3]; };
 
6402
    struct s *b; b->j = 5;
 
6403
  }
 
6404
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
6405
    const int foo = 10;
 
6406
  }
 
6407
#endif
 
6408
 
 
6409
  ;
 
6410
  return 0;
 
6411
}
 
6412
_ACEOF
 
6413
rm -f conftest.$ac_objext
 
6414
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6415
  (eval $ac_compile) 2>conftest.er1
 
6416
  ac_status=$?
 
6417
  grep -v '^ *+' conftest.er1 >conftest.err
 
6418
  rm -f conftest.er1
 
6419
  cat conftest.err >&5
 
6420
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6421
  (exit $ac_status); } &&
 
6422
         { ac_try='test -z "$ac_c_werror_flag"
 
6423
                         || test ! -s conftest.err'
 
6424
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6425
  (eval $ac_try) 2>&5
 
6426
  ac_status=$?
 
6427
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6428
  (exit $ac_status); }; } &&
 
6429
         { ac_try='test -s conftest.$ac_objext'
 
6430
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6431
  (eval $ac_try) 2>&5
 
6432
  ac_status=$?
 
6433
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6434
  (exit $ac_status); }; }; then
 
6435
  ac_cv_c_const=yes
 
6436
else
 
6437
  echo "$as_me: failed program was:" >&5
 
6438
sed 's/^/| /' conftest.$ac_ext >&5
 
6439
 
 
6440
ac_cv_c_const=no
 
6441
fi
 
6442
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6443
fi
 
6444
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
6445
echo "${ECHO_T}$ac_cv_c_const" >&6
 
6446
if test $ac_cv_c_const = no; then
 
6447
 
 
6448
cat >>confdefs.h <<\_ACEOF
 
6449
#define const
 
6450
_ACEOF
 
6451
 
 
6452
fi
 
6453
 
 
6454
 
 
6455
echo "$as_me:$LINENO: checking for library containing sqrt" >&5
 
6456
echo $ECHO_N "checking for library containing sqrt... $ECHO_C" >&6
 
6457
if test "${ac_cv_search_sqrt+set}" = set; then
 
6458
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6459
else
 
6460
  ac_func_search_save_LIBS=$LIBS
 
6461
ac_cv_search_sqrt=no
 
6462
cat >conftest.$ac_ext <<_ACEOF
 
6463
/* confdefs.h.  */
 
6464
_ACEOF
 
6465
cat confdefs.h >>conftest.$ac_ext
 
6466
cat >>conftest.$ac_ext <<_ACEOF
 
6467
/* end confdefs.h.  */
 
6468
 
 
6469
/* Override any gcc2 internal prototype to avoid an error.  */
 
6470
#ifdef __cplusplus
 
6471
extern "C"
 
6472
#endif
 
6473
/* We use char because int might match the return type of a gcc2
 
6474
   builtin and then its argument prototype would still apply.  */
 
6475
char sqrt ();
 
6476
int
 
6477
main ()
 
6478
{
 
6479
sqrt ();
 
6480
  ;
 
6481
  return 0;
 
6482
}
 
6483
_ACEOF
 
6484
rm -f conftest.$ac_objext conftest$ac_exeext
 
6485
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6486
  (eval $ac_link) 2>conftest.er1
 
6487
  ac_status=$?
 
6488
  grep -v '^ *+' conftest.er1 >conftest.err
 
6489
  rm -f conftest.er1
 
6490
  cat conftest.err >&5
 
6491
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6492
  (exit $ac_status); } &&
 
6493
         { ac_try='test -z "$ac_c_werror_flag"
 
6494
                         || test ! -s conftest.err'
 
6495
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6496
  (eval $ac_try) 2>&5
 
6497
  ac_status=$?
 
6498
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6499
  (exit $ac_status); }; } &&
 
6500
         { ac_try='test -s conftest$ac_exeext'
 
6501
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6502
  (eval $ac_try) 2>&5
 
6503
  ac_status=$?
 
6504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6505
  (exit $ac_status); }; }; then
 
6506
  ac_cv_search_sqrt="none required"
 
6507
else
 
6508
  echo "$as_me: failed program was:" >&5
 
6509
sed 's/^/| /' conftest.$ac_ext >&5
 
6510
 
 
6511
fi
 
6512
rm -f conftest.err conftest.$ac_objext \
 
6513
      conftest$ac_exeext conftest.$ac_ext
 
6514
if test "$ac_cv_search_sqrt" = no; then
 
6515
  for ac_lib in m; do
 
6516
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
6517
    cat >conftest.$ac_ext <<_ACEOF
 
6518
/* confdefs.h.  */
 
6519
_ACEOF
 
6520
cat confdefs.h >>conftest.$ac_ext
 
6521
cat >>conftest.$ac_ext <<_ACEOF
 
6522
/* end confdefs.h.  */
 
6523
 
 
6524
/* Override any gcc2 internal prototype to avoid an error.  */
 
6525
#ifdef __cplusplus
 
6526
extern "C"
 
6527
#endif
 
6528
/* We use char because int might match the return type of a gcc2
 
6529
   builtin and then its argument prototype would still apply.  */
 
6530
char sqrt ();
 
6531
int
 
6532
main ()
 
6533
{
 
6534
sqrt ();
 
6535
  ;
 
6536
  return 0;
 
6537
}
 
6538
_ACEOF
 
6539
rm -f conftest.$ac_objext conftest$ac_exeext
 
6540
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6541
  (eval $ac_link) 2>conftest.er1
 
6542
  ac_status=$?
 
6543
  grep -v '^ *+' conftest.er1 >conftest.err
 
6544
  rm -f conftest.er1
 
6545
  cat conftest.err >&5
 
6546
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6547
  (exit $ac_status); } &&
 
6548
         { ac_try='test -z "$ac_c_werror_flag"
 
6549
                         || test ! -s conftest.err'
 
6550
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6551
  (eval $ac_try) 2>&5
 
6552
  ac_status=$?
 
6553
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6554
  (exit $ac_status); }; } &&
 
6555
         { ac_try='test -s conftest$ac_exeext'
 
6556
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6557
  (eval $ac_try) 2>&5
 
6558
  ac_status=$?
 
6559
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6560
  (exit $ac_status); }; }; then
 
6561
  ac_cv_search_sqrt="-l$ac_lib"
 
6562
break
 
6563
else
 
6564
  echo "$as_me: failed program was:" >&5
 
6565
sed 's/^/| /' conftest.$ac_ext >&5
 
6566
 
 
6567
fi
 
6568
rm -f conftest.err conftest.$ac_objext \
 
6569
      conftest$ac_exeext conftest.$ac_ext
 
6570
  done
 
6571
fi
 
6572
LIBS=$ac_func_search_save_LIBS
 
6573
fi
 
6574
echo "$as_me:$LINENO: result: $ac_cv_search_sqrt" >&5
 
6575
echo "${ECHO_T}$ac_cv_search_sqrt" >&6
 
6576
if test "$ac_cv_search_sqrt" != no; then
 
6577
  test "$ac_cv_search_sqrt" = "none required" || LIBS="$ac_cv_search_sqrt $LIBS"
 
6578
 
 
6579
fi
 
6580
 
 
6581
 
 
6582
 
 
6583
 
 
6584
 
 
6585
 
 
6586
 
 
6587
 
 
6588
 
 
6589
for ac_func in \
 
6590
getpwnam \
 
6591
getgrnam \
 
6592
initgroups \
 
6593
bindprocessor \
 
6594
prctl \
 
6595
timegm \
 
6596
 
 
6597
do
 
6598
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
6599
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
6600
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
6601
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
6602
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6603
else
 
6604
  cat >conftest.$ac_ext <<_ACEOF
 
6605
/* confdefs.h.  */
 
6606
_ACEOF
 
6607
cat confdefs.h >>conftest.$ac_ext
 
6608
cat >>conftest.$ac_ext <<_ACEOF
 
6609
/* end confdefs.h.  */
 
6610
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
6611
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
6612
#define $ac_func innocuous_$ac_func
 
6613
 
 
6614
/* System header to define __stub macros and hopefully few prototypes,
 
6615
    which can conflict with char $ac_func (); below.
 
6616
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6617
    <limits.h> exists even on freestanding compilers.  */
 
6618
 
 
6619
#ifdef __STDC__
 
6620
# include <limits.h>
 
6621
#else
 
6622
# include <assert.h>
 
6623
#endif
 
6624
 
 
6625
#undef $ac_func
 
6626
 
 
6627
/* Override any gcc2 internal prototype to avoid an error.  */
 
6628
#ifdef __cplusplus
 
6629
extern "C"
 
6630
{
 
6631
#endif
 
6632
/* We use char because int might match the return type of a gcc2
 
6633
   builtin and then its argument prototype would still apply.  */
 
6634
char $ac_func ();
 
6635
/* The GNU C library defines this for functions which it implements
 
6636
    to always fail with ENOSYS.  Some functions are actually named
 
6637
    something starting with __ and the normal name is an alias.  */
 
6638
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
6639
choke me
 
6640
#else
 
6641
char (*f) () = $ac_func;
 
6642
#endif
 
6643
#ifdef __cplusplus
 
6644
}
 
6645
#endif
 
6646
 
 
6647
int
 
6648
main ()
 
6649
{
 
6650
return f != $ac_func;
 
6651
  ;
 
6652
  return 0;
 
6653
}
 
6654
_ACEOF
 
6655
rm -f conftest.$ac_objext conftest$ac_exeext
 
6656
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6657
  (eval $ac_link) 2>conftest.er1
 
6658
  ac_status=$?
 
6659
  grep -v '^ *+' conftest.er1 >conftest.err
 
6660
  rm -f conftest.er1
 
6661
  cat conftest.err >&5
 
6662
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6663
  (exit $ac_status); } &&
 
6664
         { ac_try='test -z "$ac_c_werror_flag"
 
6665
                         || test ! -s conftest.err'
 
6666
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6667
  (eval $ac_try) 2>&5
 
6668
  ac_status=$?
 
6669
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6670
  (exit $ac_status); }; } &&
 
6671
         { ac_try='test -s conftest$ac_exeext'
 
6672
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6673
  (eval $ac_try) 2>&5
 
6674
  ac_status=$?
 
6675
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6676
  (exit $ac_status); }; }; then
 
6677
  eval "$as_ac_var=yes"
 
6678
else
 
6679
  echo "$as_me: failed program was:" >&5
 
6680
sed 's/^/| /' conftest.$ac_ext >&5
 
6681
 
 
6682
eval "$as_ac_var=no"
 
6683
fi
 
6684
rm -f conftest.err conftest.$ac_objext \
 
6685
      conftest$ac_exeext conftest.$ac_ext
 
6686
fi
 
6687
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
6688
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
6689
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
6690
  cat >>confdefs.h <<_ACEOF
 
6691
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
6692
_ACEOF
 
6693
 
 
6694
fi
 
6695
done
 
6696
 
 
6697
 
 
6698
 
 
6699
 
 
6700
echo "$as_me:$LINENO: checking for void pointer length" >&5
 
6701
echo $ECHO_N "checking for void pointer length... $ECHO_C" >&6
 
6702
if test "${ap_void_ptr_lt_long+set}" = set; then
 
6703
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6704
else
 
6705
  if test "$cross_compiling" = yes; then
 
6706
  ap_void_ptr_lt_long=yes
 
6707
else
 
6708
  cat >conftest.$ac_ext <<_ACEOF
 
6709
/* confdefs.h.  */
 
6710
_ACEOF
 
6711
cat confdefs.h >>conftest.$ac_ext
 
6712
cat >>conftest.$ac_ext <<_ACEOF
 
6713
/* end confdefs.h.  */
 
6714
 
 
6715
int main(void)
 
6716
{
 
6717
    return sizeof(void *) < sizeof(long);
 
6718
}
 
6719
_ACEOF
 
6720
rm -f conftest$ac_exeext
 
6721
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6722
  (eval $ac_link) 2>&5
 
6723
  ac_status=$?
 
6724
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6725
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6726
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6727
  (eval $ac_try) 2>&5
 
6728
  ac_status=$?
 
6729
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6730
  (exit $ac_status); }; }; then
 
6731
  ap_void_ptr_lt_long=no
 
6732
else
 
6733
  echo "$as_me: program exited with status $ac_status" >&5
 
6734
echo "$as_me: failed program was:" >&5
 
6735
sed 's/^/| /' conftest.$ac_ext >&5
 
6736
 
 
6737
( exit $ac_status )
 
6738
ap_void_ptr_lt_long=yes
 
6739
fi
 
6740
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6741
fi
 
6742
fi
 
6743
echo "$as_me:$LINENO: result: $ap_void_ptr_lt_long" >&5
 
6744
echo "${ECHO_T}$ap_void_ptr_lt_long" >&6
 
6745
 
 
6746
if test "$ap_void_ptr_lt_long" = "yes"; then
 
6747
    { { echo "$as_me:$LINENO: error: Size of \"void *\" is less than size of \"long\"" >&5
 
6748
echo "$as_me: error: Size of \"void *\" is less than size of \"long\"" >&2;}
 
6749
   { (exit 1); exit 1; }; }
 
6750
fi
 
6751
 
 
6752
 
 
6753
echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
 
6754
echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
 
6755
if test "${ac_cv_struct_tm_gmtoff+set}" = set; then
 
6756
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6757
else
 
6758
  cat >conftest.$ac_ext <<_ACEOF
 
6759
/* confdefs.h.  */
 
6760
_ACEOF
 
6761
cat confdefs.h >>conftest.$ac_ext
 
6762
cat >>conftest.$ac_ext <<_ACEOF
 
6763
/* end confdefs.h.  */
 
6764
#include <sys/types.h>
 
6765
#include <time.h>
 
6766
int
 
6767
main ()
 
6768
{
 
6769
struct tm tm; tm.tm_gmtoff;
 
6770
  ;
 
6771
  return 0;
 
6772
}
 
6773
_ACEOF
 
6774
rm -f conftest.$ac_objext
 
6775
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6776
  (eval $ac_compile) 2>conftest.er1
 
6777
  ac_status=$?
 
6778
  grep -v '^ *+' conftest.er1 >conftest.err
 
6779
  rm -f conftest.er1
 
6780
  cat conftest.err >&5
 
6781
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6782
  (exit $ac_status); } &&
 
6783
         { ac_try='test -z "$ac_c_werror_flag"
 
6784
                         || test ! -s conftest.err'
 
6785
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6786
  (eval $ac_try) 2>&5
 
6787
  ac_status=$?
 
6788
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6789
  (exit $ac_status); }; } &&
 
6790
         { ac_try='test -s conftest.$ac_objext'
 
6791
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6792
  (eval $ac_try) 2>&5
 
6793
  ac_status=$?
 
6794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6795
  (exit $ac_status); }; }; then
 
6796
  ac_cv_struct_tm_gmtoff=yes
 
6797
else
 
6798
  echo "$as_me: failed program was:" >&5
 
6799
sed 's/^/| /' conftest.$ac_ext >&5
 
6800
 
 
6801
ac_cv_struct_tm_gmtoff=no
 
6802
fi
 
6803
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6804
fi
 
6805
echo "$as_me:$LINENO: result: $ac_cv_struct_tm_gmtoff" >&5
 
6806
echo "${ECHO_T}$ac_cv_struct_tm_gmtoff" >&6
 
6807
if test "$ac_cv_struct_tm_gmtoff" = "yes"; then
 
6808
 
 
6809
cat >>confdefs.h <<\_ACEOF
 
6810
#define HAVE_GMTOFF 1
 
6811
_ACEOF
 
6812
 
 
6813
fi
 
6814
 
 
6815
 
 
6816
case $host in
 
6817
    *aix*)
 
6818
        # for 32-bit builds, increase MAXDATA to allow lots of threads
 
6819
        if test x$OBJECT_MODE != x64; then
 
6820
            OS_SPECIFIC_VARS="LDR_CNTRL=\"MAXDATA=0x80000000\" ; export LDR_CNTRL ;"
 
6821
        fi
 
6822
        OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS AIXTHREAD_SCOPE=S ; export AIXTHREAD_SCOPE"
 
6823
        OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS ; AIXTHREAD_MUTEX_DEBUG=OFF ; export AIXTHREAD_MUTEX_DEBUG"
 
6824
        OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS ; AIXTHREAD_RWLOCK_DEBUG=OFF ; export AIXTHREAD_RWLOCK_DEBUG"
 
6825
        OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS ; AIXTHREAD_COND_DEBUG=OFF ; export AIXTHREAD_COND_DEBUG"
 
6826
        OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS ; SPINLOOPTIME=1000 ; export SPINLOOPTIME"
 
6827
        OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS ; YIELDLOOPTIME=8 ; export YIELDLOOPTIME"
 
6828
        OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS ; MALLOCMULTIHEAP=considersize,heaps:8 ; export MALLOCMULTIHEAP"
 
6829
        ;;
 
6830
    *os390*)
 
6831
        OS_SPECIFIC_VARS="export _CEE_RUNOPTS=\"STACK(,,ANY)\" ; export _EDC_ADD_ERRNO2=1"
 
6832
        ;;
 
6833
    *)
 
6834
        OS_SPECIFIC_VARS=""
 
6835
esac
 
6836
 
 
6837
 
 
6838
# Check whether --with-port or --without-port was given.
 
6839
if test "${with_port+set}" = set; then
 
6840
  withval="$with_port"
 
6841
  if test "$withval" = "yes"; then { { echo "$as_me:$LINENO: error: 'option --with-port requires a value (the TCP port number)'" >&5
 
6842
echo "$as_me: error: 'option --with-port requires a value (the TCP port number)'" >&2;}
 
6843
   { (exit 1); exit 1; }; }; else PORT="$withval"; fi
 
6844
else
 
6845
  PORT=80
 
6846
fi;
 
6847
 
 
6848
 
 
6849
apr_old_cppflags=$CPPFLAGS
 
6850
CPPFLAGS="$CPPFLAGS $INCLUDES"
 
6851
cat >conftest.$ac_ext <<_ACEOF
 
6852
/* confdefs.h.  */
 
6853
_ACEOF
 
6854
cat confdefs.h >>conftest.$ac_ext
 
6855
cat >>conftest.$ac_ext <<_ACEOF
 
6856
/* end confdefs.h.  */
 
6857
 
 
6858
#include <apr.h>
 
6859
#if APR_HAVE_IPV6
 
6860
YES_IS_DEFINED
 
6861
#endif
 
6862
 
 
6863
_ACEOF
 
6864
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6865
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
 
6866
  ac_cv_define_APR_HAVE_IPV6=yes
 
6867
else
 
6868
  ac_cv_define_APR_HAVE_IPV6=no
 
6869
fi
 
6870
rm -f conftest*
 
6871
 
 
6872
CPPFLAGS=$apr_old_cppflags
 
6873
 
 
6874
 
 
6875
# Check whether --enable-v4-mapped or --disable-v4-mapped was given.
 
6876
if test "${enable_v4_mapped+set}" = set; then
 
6877
  enableval="$enable_v4_mapped"
 
6878
 
 
6879
  v4mapped=$enableval
 
6880
 
 
6881
else
 
6882
 
 
6883
    case $host in
 
6884
    *freebsd5*|*netbsd*|*openbsd*)
 
6885
        v4mapped=no
 
6886
        ;;
 
6887
    *)
 
6888
        v4mapped=yes
 
6889
        ;;
 
6890
esac
 
6891
 
 
6892
fi;
 
6893
 
 
6894
if test $v4mapped = "yes" -a $ac_cv_define_APR_HAVE_IPV6 = "yes"; then
 
6895
 
 
6896
cat >>confdefs.h <<\_ACEOF
 
6897
#define AP_ENABLE_V4_MAPPED 1
 
6898
_ACEOF
 
6899
 
 
6900
fi
 
6901
 
 
6902
# Check whether --enable-exception-hook or --disable-exception-hook was given.
 
6903
if test "${enable_exception_hook+set}" = set; then
 
6904
  enableval="$enable_exception_hook"
 
6905
 
 
6906
 
 
6907
cat >>confdefs.h <<\_ACEOF
 
6908
#define AP_ENABLE_EXCEPTION_HOOK 1
 
6909
_ACEOF
 
6910
 
 
6911
 
 
6912
fi;
 
6913
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
 
6914
if test "${enable_maintainer_mode+set}" = set; then
 
6915
  enableval="$enable_maintainer_mode"
 
6916
 
 
6917
 
 
6918
  if test "x$CPPFLAGS" = "x"; then
 
6919
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DAP_DEBUG\""
 
6920
    CPPFLAGS="-DAP_DEBUG"
 
6921
  else
 
6922
    apr_addto_bugger="-DAP_DEBUG"
 
6923
    for i in $apr_addto_bugger; do
 
6924
      apr_addto_duplicate="0"
 
6925
      for j in $CPPFLAGS; do
 
6926
        if test "x$i" = "x$j"; then
 
6927
          apr_addto_duplicate="1"
 
6928
          break
 
6929
        fi
 
6930
      done
 
6931
      if test $apr_addto_duplicate = "0"; then
 
6932
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
6933
        CPPFLAGS="$CPPFLAGS $i"
 
6934
      fi
 
6935
    done
 
6936
  fi
 
6937
 
 
6938
 
 
6939
fi;
 
6940
# Check whether --enable-pie or --disable-pie was given.
 
6941
if test "${enable_pie+set}" = set; then
 
6942
  enableval="$enable_pie"
 
6943
 
 
6944
fi;
 
6945
if test "$enable_pie" = "yes"; then
 
6946
   echo "$as_me:$LINENO: checking whether $CC accepts PIE flags" >&5
 
6947
echo $ECHO_N "checking whether $CC accepts PIE flags... $ECHO_C" >&6
 
6948
if test "${ap_cv_cc_pie+set}" = set; then
 
6949
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6950
else
 
6951
 
 
6952
     save_CFLAGS=$CFLAGS
 
6953
     save_LDFLAGS=$LDFLAGS
 
6954
     CFLAGS="$CFLAGS -fPIE"
 
6955
     LDFLAGS="$LDFLAGS -pie"
 
6956
     if test "$cross_compiling" = yes; then
 
6957
  ap_cv_cc_pie=yes
 
6958
else
 
6959
  cat >conftest.$ac_ext <<_ACEOF
 
6960
/* confdefs.h.  */
 
6961
_ACEOF
 
6962
cat confdefs.h >>conftest.$ac_ext
 
6963
cat >>conftest.$ac_ext <<_ACEOF
 
6964
/* end confdefs.h.  */
 
6965
static int foo[30000]; int main () { return 0; }
 
6966
_ACEOF
 
6967
rm -f conftest$ac_exeext
 
6968
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6969
  (eval $ac_link) 2>&5
 
6970
  ac_status=$?
 
6971
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6972
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6973
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6974
  (eval $ac_try) 2>&5
 
6975
  ac_status=$?
 
6976
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6977
  (exit $ac_status); }; }; then
 
6978
  ap_cv_cc_pie=yes
 
6979
else
 
6980
  echo "$as_me: program exited with status $ac_status" >&5
 
6981
echo "$as_me: failed program was:" >&5
 
6982
sed 's/^/| /' conftest.$ac_ext >&5
 
6983
 
 
6984
( exit $ac_status )
 
6985
ap_cv_cc_pie=no
 
6986
fi
 
6987
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6988
fi
 
6989
     CFLAGS=$save_CFLAGS
 
6990
     LDFLAGS=$save_LDFLAGS
 
6991
 
 
6992
fi
 
6993
echo "$as_me:$LINENO: result: $ap_cv_cc_pie" >&5
 
6994
echo "${ECHO_T}$ap_cv_cc_pie" >&6
 
6995
   if test "$ap_cv_cc_pie" = "yes"; then
 
6996
     PICFLAGS="-fPIE"
 
6997
     PILDFLAGS="-pie"
 
6998
   else
 
6999
     { { echo "$as_me:$LINENO: error: --enable-pie requested but $CC failed using PIE flags" >&5
 
7000
echo "$as_me: error: --enable-pie requested but $CC failed using PIE flags" >&2;}
 
7001
   { (exit 1); exit 1; }; }
 
7002
   fi
 
7003
fi
 
7004
 
 
7005
 
 
7006
 
 
7007
prefix="$orig_prefix"
 
7008
 
 
7009
  module_selection=default
 
7010
  module_default=yes
 
7011
 
 
7012
  # Check whether --enable-modules or --disable-modules was given.
 
7013
if test "${enable_modules+set}" = set; then
 
7014
  enableval="$enable_modules"
 
7015
 
 
7016
    for i in $enableval; do
 
7017
      if test "$i" = "all" -o "$i" = "most"; then
 
7018
        module_selection=$i
 
7019
      else
 
7020
        i=`echo $i | sed 's/-/_/g'`
 
7021
        eval "enable_$i=yes"
 
7022
      fi
 
7023
    done
 
7024
 
 
7025
fi;
 
7026
 
 
7027
  # Check whether --enable-mods-shared or --disable-mods-shared was given.
 
7028
if test "${enable_mods_shared+set}" = set; then
 
7029
  enableval="$enable_mods_shared"
 
7030
 
 
7031
    for i in $enableval; do
 
7032
      if test "$i" = "all" -o "$i" = "most"; then
 
7033
        module_selection=$i
 
7034
        module_default=shared
 
7035
      else
 
7036
        i=`echo $i | sed 's/-/_/g'`
 
7037
        eval "enable_$i=shared"
 
7038
      fi
 
7039
    done
 
7040
 
 
7041
fi;
 
7042
 
 
7043
 
 
7044
 
 
7045
 
 
7046
 
 
7047
 
 
7048
  current_dir=aaa
 
7049
  modpath_current=modules/aaa
 
7050
  modpath_static=
 
7051
  modpath_shared=
 
7052
  test -d aaa || $srcdir/build/mkdir.sh $modpath_current
 
7053
  > $modpath_current/modules.mk
 
7054
 
 
7055
 
 
7056
 
 
7057
  echo "$as_me:$LINENO: checking whether to enable mod_authn_file" >&5
 
7058
echo $ECHO_N "checking whether to enable mod_authn_file... $ECHO_C" >&6
 
7059
    # Check whether --enable-authn-file or --disable-authn-file was given.
 
7060
if test "${enable_authn_file+set}" = set; then
 
7061
  enableval="$enable_authn_file"
 
7062
 
 
7063
else
 
7064
  enable_authn_file=yes
 
7065
fi;
 
7066
    _apmod_extra_msg=""
 
7067
      if test "$module_selection" = "most" -a "$enable_authn_file" = "most"; then
 
7068
    _apmod_error_fatal="no"
 
7069
  else
 
7070
    _apmod_error_fatal="yes"
 
7071
  fi
 
7072
  if test "$enable_authn_file" = "static"; then
 
7073
    enable_authn_file=yes
 
7074
  elif test "$enable_authn_file" = "yes"; then
 
7075
    enable_authn_file=$module_default
 
7076
    _apmod_extra_msg=" ($module_selection)"
 
7077
  elif test "$enable_authn_file" = "most"; then
 
7078
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
7079
      enable_authn_file=$module_default
 
7080
      _apmod_extra_msg=" ($module_selection)"
 
7081
    elif test "$enable_authn_file" != "yes"; then
 
7082
      enable_authn_file=no
 
7083
    fi
 
7084
  elif test "$enable_authn_file" = "maybe-all"; then
 
7085
    if test "$module_selection" = "all"; then
 
7086
      enable_authn_file=$module_default
 
7087
      _apmod_extra_msg=" (all)"
 
7088
    else
 
7089
      enable_authn_file=no
 
7090
    fi
 
7091
  fi
 
7092
  if test "$enable_authn_file" != "no"; then
 
7093
            :
 
7094
  fi
 
7095
  echo "$as_me:$LINENO: result: $enable_authn_file$_apmod_extra_msg" >&5
 
7096
echo "${ECHO_T}$enable_authn_file$_apmod_extra_msg" >&6
 
7097
  if test "$enable_authn_file" != "no"; then
 
7098
    case "$enable_authn_file" in
 
7099
    shared*)
 
7100
      enable_authn_file=`echo $enable_authn_file|sed 's/shared,*//'`
 
7101
      sharedobjs=yes
 
7102
      shared=yes
 
7103
      DSO_MODULES="$DSO_MODULES authn_file"
 
7104
      ;;
 
7105
    *)
 
7106
      MODLIST="$MODLIST authn_file"
 
7107
      if test "authn_file" = "so"; then
 
7108
          sharedobjs=yes
 
7109
      fi
 
7110
      shared="";;
 
7111
    esac
 
7112
 
 
7113
 
 
7114
  if test -z ""; then
 
7115
    objects="mod_authn_file.lo"
 
7116
  else
 
7117
    objects=""
 
7118
  fi
 
7119
 
 
7120
  if test -z "$module_standalone"; then
 
7121
    if test -z "$shared"; then
 
7122
      # The filename of a convenience library must have a "lib" prefix:
 
7123
      libname="libmod_authn_file.la"
 
7124
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
7125
      modpath_static="$modpath_static $libname"
 
7126
      cat >>$modpath_current/modules.mk<<EOF
 
7127
$libname: $objects
 
7128
        \$(MOD_LINK) $objects \$(MOD_AUTHN_FILE_LDADD)
 
7129
EOF
 
7130
    else
 
7131
      apache_need_shared=yes
 
7132
      libname="mod_authn_file.la"
 
7133
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
7134
      modpath_shared="$modpath_shared $libname"
 
7135
      cat >>$modpath_current/modules.mk<<EOF
 
7136
$libname: $shobjects
 
7137
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHN_FILE_LDADD)
 
7138
EOF
 
7139
    fi
 
7140
  fi
 
7141
 
 
7142
 
 
7143
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHN_FILE_LDADD"
 
7144
 
 
7145
 
 
7146
 
 
7147
  fi
 
7148
 
 
7149
 
 
7150
  echo "$as_me:$LINENO: checking whether to enable mod_authn_dbm" >&5
 
7151
echo $ECHO_N "checking whether to enable mod_authn_dbm... $ECHO_C" >&6
 
7152
    # Check whether --enable-authn-dbm or --disable-authn-dbm was given.
 
7153
if test "${enable_authn_dbm+set}" = set; then
 
7154
  enableval="$enable_authn_dbm"
 
7155
 
 
7156
else
 
7157
  enable_authn_dbm=most
 
7158
fi;
 
7159
    _apmod_extra_msg=""
 
7160
      if test "$module_selection" = "most" -a "$enable_authn_dbm" = "most"; then
 
7161
    _apmod_error_fatal="no"
 
7162
  else
 
7163
    _apmod_error_fatal="yes"
 
7164
  fi
 
7165
  if test "$enable_authn_dbm" = "static"; then
 
7166
    enable_authn_dbm=yes
 
7167
  elif test "$enable_authn_dbm" = "yes"; then
 
7168
    enable_authn_dbm=$module_default
 
7169
    _apmod_extra_msg=" ($module_selection)"
 
7170
  elif test "$enable_authn_dbm" = "most"; then
 
7171
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
7172
      enable_authn_dbm=$module_default
 
7173
      _apmod_extra_msg=" ($module_selection)"
 
7174
    elif test "$enable_authn_dbm" != "yes"; then
 
7175
      enable_authn_dbm=no
 
7176
    fi
 
7177
  elif test "$enable_authn_dbm" = "maybe-all"; then
 
7178
    if test "$module_selection" = "all"; then
 
7179
      enable_authn_dbm=$module_default
 
7180
      _apmod_extra_msg=" (all)"
 
7181
    else
 
7182
      enable_authn_dbm=no
 
7183
    fi
 
7184
  fi
 
7185
  if test "$enable_authn_dbm" != "no"; then
 
7186
            :
 
7187
  fi
 
7188
  echo "$as_me:$LINENO: result: $enable_authn_dbm$_apmod_extra_msg" >&5
 
7189
echo "${ECHO_T}$enable_authn_dbm$_apmod_extra_msg" >&6
 
7190
  if test "$enable_authn_dbm" != "no"; then
 
7191
    case "$enable_authn_dbm" in
 
7192
    shared*)
 
7193
      enable_authn_dbm=`echo $enable_authn_dbm|sed 's/shared,*//'`
 
7194
      sharedobjs=yes
 
7195
      shared=yes
 
7196
      DSO_MODULES="$DSO_MODULES authn_dbm"
 
7197
      ;;
 
7198
    *)
 
7199
      MODLIST="$MODLIST authn_dbm"
 
7200
      if test "authn_dbm" = "so"; then
 
7201
          sharedobjs=yes
 
7202
      fi
 
7203
      shared="";;
 
7204
    esac
 
7205
 
 
7206
 
 
7207
  if test -z ""; then
 
7208
    objects="mod_authn_dbm.lo"
 
7209
  else
 
7210
    objects=""
 
7211
  fi
 
7212
 
 
7213
  if test -z "$module_standalone"; then
 
7214
    if test -z "$shared"; then
 
7215
      # The filename of a convenience library must have a "lib" prefix:
 
7216
      libname="libmod_authn_dbm.la"
 
7217
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
7218
      modpath_static="$modpath_static $libname"
 
7219
      cat >>$modpath_current/modules.mk<<EOF
 
7220
$libname: $objects
 
7221
        \$(MOD_LINK) $objects \$(MOD_AUTHN_DBM_LDADD)
 
7222
EOF
 
7223
    else
 
7224
      apache_need_shared=yes
 
7225
      libname="mod_authn_dbm.la"
 
7226
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
7227
      modpath_shared="$modpath_shared $libname"
 
7228
      cat >>$modpath_current/modules.mk<<EOF
 
7229
$libname: $shobjects
 
7230
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHN_DBM_LDADD)
 
7231
EOF
 
7232
    fi
 
7233
  fi
 
7234
 
 
7235
 
 
7236
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHN_DBM_LDADD"
 
7237
 
 
7238
 
 
7239
 
 
7240
  fi
 
7241
 
 
7242
 
 
7243
  echo "$as_me:$LINENO: checking whether to enable mod_authn_anon" >&5
 
7244
echo $ECHO_N "checking whether to enable mod_authn_anon... $ECHO_C" >&6
 
7245
    # Check whether --enable-authn-anon or --disable-authn-anon was given.
 
7246
if test "${enable_authn_anon+set}" = set; then
 
7247
  enableval="$enable_authn_anon"
 
7248
 
 
7249
else
 
7250
  enable_authn_anon=most
 
7251
fi;
 
7252
    _apmod_extra_msg=""
 
7253
      if test "$module_selection" = "most" -a "$enable_authn_anon" = "most"; then
 
7254
    _apmod_error_fatal="no"
 
7255
  else
 
7256
    _apmod_error_fatal="yes"
 
7257
  fi
 
7258
  if test "$enable_authn_anon" = "static"; then
 
7259
    enable_authn_anon=yes
 
7260
  elif test "$enable_authn_anon" = "yes"; then
 
7261
    enable_authn_anon=$module_default
 
7262
    _apmod_extra_msg=" ($module_selection)"
 
7263
  elif test "$enable_authn_anon" = "most"; then
 
7264
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
7265
      enable_authn_anon=$module_default
 
7266
      _apmod_extra_msg=" ($module_selection)"
 
7267
    elif test "$enable_authn_anon" != "yes"; then
 
7268
      enable_authn_anon=no
 
7269
    fi
 
7270
  elif test "$enable_authn_anon" = "maybe-all"; then
 
7271
    if test "$module_selection" = "all"; then
 
7272
      enable_authn_anon=$module_default
 
7273
      _apmod_extra_msg=" (all)"
 
7274
    else
 
7275
      enable_authn_anon=no
 
7276
    fi
 
7277
  fi
 
7278
  if test "$enable_authn_anon" != "no"; then
 
7279
            :
 
7280
  fi
 
7281
  echo "$as_me:$LINENO: result: $enable_authn_anon$_apmod_extra_msg" >&5
 
7282
echo "${ECHO_T}$enable_authn_anon$_apmod_extra_msg" >&6
 
7283
  if test "$enable_authn_anon" != "no"; then
 
7284
    case "$enable_authn_anon" in
 
7285
    shared*)
 
7286
      enable_authn_anon=`echo $enable_authn_anon|sed 's/shared,*//'`
 
7287
      sharedobjs=yes
 
7288
      shared=yes
 
7289
      DSO_MODULES="$DSO_MODULES authn_anon"
 
7290
      ;;
 
7291
    *)
 
7292
      MODLIST="$MODLIST authn_anon"
 
7293
      if test "authn_anon" = "so"; then
 
7294
          sharedobjs=yes
 
7295
      fi
 
7296
      shared="";;
 
7297
    esac
 
7298
 
 
7299
 
 
7300
  if test -z ""; then
 
7301
    objects="mod_authn_anon.lo"
 
7302
  else
 
7303
    objects=""
 
7304
  fi
 
7305
 
 
7306
  if test -z "$module_standalone"; then
 
7307
    if test -z "$shared"; then
 
7308
      # The filename of a convenience library must have a "lib" prefix:
 
7309
      libname="libmod_authn_anon.la"
 
7310
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
7311
      modpath_static="$modpath_static $libname"
 
7312
      cat >>$modpath_current/modules.mk<<EOF
 
7313
$libname: $objects
 
7314
        \$(MOD_LINK) $objects \$(MOD_AUTHN_ANON_LDADD)
 
7315
EOF
 
7316
    else
 
7317
      apache_need_shared=yes
 
7318
      libname="mod_authn_anon.la"
 
7319
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
7320
      modpath_shared="$modpath_shared $libname"
 
7321
      cat >>$modpath_current/modules.mk<<EOF
 
7322
$libname: $shobjects
 
7323
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHN_ANON_LDADD)
 
7324
EOF
 
7325
    fi
 
7326
  fi
 
7327
 
 
7328
 
 
7329
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHN_ANON_LDADD"
 
7330
 
 
7331
 
 
7332
 
 
7333
  fi
 
7334
 
 
7335
 
 
7336
  echo "$as_me:$LINENO: checking whether to enable mod_authn_dbd" >&5
 
7337
echo $ECHO_N "checking whether to enable mod_authn_dbd... $ECHO_C" >&6
 
7338
    # Check whether --enable-authn-dbd or --disable-authn-dbd was given.
 
7339
if test "${enable_authn_dbd+set}" = set; then
 
7340
  enableval="$enable_authn_dbd"
 
7341
 
 
7342
else
 
7343
  enable_authn_dbd=most
 
7344
fi;
 
7345
    _apmod_extra_msg=""
 
7346
      if test "$module_selection" = "most" -a "$enable_authn_dbd" = "most"; then
 
7347
    _apmod_error_fatal="no"
 
7348
  else
 
7349
    _apmod_error_fatal="yes"
 
7350
  fi
 
7351
  if test "$enable_authn_dbd" = "static"; then
 
7352
    enable_authn_dbd=yes
 
7353
  elif test "$enable_authn_dbd" = "yes"; then
 
7354
    enable_authn_dbd=$module_default
 
7355
    _apmod_extra_msg=" ($module_selection)"
 
7356
  elif test "$enable_authn_dbd" = "most"; then
 
7357
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
7358
      enable_authn_dbd=$module_default
 
7359
      _apmod_extra_msg=" ($module_selection)"
 
7360
    elif test "$enable_authn_dbd" != "yes"; then
 
7361
      enable_authn_dbd=no
 
7362
    fi
 
7363
  elif test "$enable_authn_dbd" = "maybe-all"; then
 
7364
    if test "$module_selection" = "all"; then
 
7365
      enable_authn_dbd=$module_default
 
7366
      _apmod_extra_msg=" (all)"
 
7367
    else
 
7368
      enable_authn_dbd=no
 
7369
    fi
 
7370
  fi
 
7371
  if test "$enable_authn_dbd" != "no"; then
 
7372
            :
 
7373
  fi
 
7374
  echo "$as_me:$LINENO: result: $enable_authn_dbd$_apmod_extra_msg" >&5
 
7375
echo "${ECHO_T}$enable_authn_dbd$_apmod_extra_msg" >&6
 
7376
  if test "$enable_authn_dbd" != "no"; then
 
7377
    case "$enable_authn_dbd" in
 
7378
    shared*)
 
7379
      enable_authn_dbd=`echo $enable_authn_dbd|sed 's/shared,*//'`
 
7380
      sharedobjs=yes
 
7381
      shared=yes
 
7382
      DSO_MODULES="$DSO_MODULES authn_dbd"
 
7383
      ;;
 
7384
    *)
 
7385
      MODLIST="$MODLIST authn_dbd"
 
7386
      if test "authn_dbd" = "so"; then
 
7387
          sharedobjs=yes
 
7388
      fi
 
7389
      shared="";;
 
7390
    esac
 
7391
 
 
7392
 
 
7393
  if test -z ""; then
 
7394
    objects="mod_authn_dbd.lo"
 
7395
  else
 
7396
    objects=""
 
7397
  fi
 
7398
 
 
7399
  if test -z "$module_standalone"; then
 
7400
    if test -z "$shared"; then
 
7401
      # The filename of a convenience library must have a "lib" prefix:
 
7402
      libname="libmod_authn_dbd.la"
 
7403
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
7404
      modpath_static="$modpath_static $libname"
 
7405
      cat >>$modpath_current/modules.mk<<EOF
 
7406
$libname: $objects
 
7407
        \$(MOD_LINK) $objects \$(MOD_AUTHN_DBD_LDADD)
 
7408
EOF
 
7409
    else
 
7410
      apache_need_shared=yes
 
7411
      libname="mod_authn_dbd.la"
 
7412
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
7413
      modpath_shared="$modpath_shared $libname"
 
7414
      cat >>$modpath_current/modules.mk<<EOF
 
7415
$libname: $shobjects
 
7416
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHN_DBD_LDADD)
 
7417
EOF
 
7418
    fi
 
7419
  fi
 
7420
 
 
7421
 
 
7422
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHN_DBD_LDADD"
 
7423
 
 
7424
 
 
7425
 
 
7426
  fi
 
7427
 
 
7428
 
 
7429
 
 
7430
  echo "$as_me:$LINENO: checking whether to enable mod_authn_default" >&5
 
7431
echo $ECHO_N "checking whether to enable mod_authn_default... $ECHO_C" >&6
 
7432
    # Check whether --enable-authn-default or --disable-authn-default was given.
 
7433
if test "${enable_authn_default+set}" = set; then
 
7434
  enableval="$enable_authn_default"
 
7435
 
 
7436
else
 
7437
  enable_authn_default=yes
 
7438
fi;
 
7439
    _apmod_extra_msg=""
 
7440
      if test "$module_selection" = "most" -a "$enable_authn_default" = "most"; then
 
7441
    _apmod_error_fatal="no"
 
7442
  else
 
7443
    _apmod_error_fatal="yes"
 
7444
  fi
 
7445
  if test "$enable_authn_default" = "static"; then
 
7446
    enable_authn_default=yes
 
7447
  elif test "$enable_authn_default" = "yes"; then
 
7448
    enable_authn_default=$module_default
 
7449
    _apmod_extra_msg=" ($module_selection)"
 
7450
  elif test "$enable_authn_default" = "most"; then
 
7451
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
7452
      enable_authn_default=$module_default
 
7453
      _apmod_extra_msg=" ($module_selection)"
 
7454
    elif test "$enable_authn_default" != "yes"; then
 
7455
      enable_authn_default=no
 
7456
    fi
 
7457
  elif test "$enable_authn_default" = "maybe-all"; then
 
7458
    if test "$module_selection" = "all"; then
 
7459
      enable_authn_default=$module_default
 
7460
      _apmod_extra_msg=" (all)"
 
7461
    else
 
7462
      enable_authn_default=no
 
7463
    fi
 
7464
  fi
 
7465
  if test "$enable_authn_default" != "no"; then
 
7466
            :
 
7467
  fi
 
7468
  echo "$as_me:$LINENO: result: $enable_authn_default$_apmod_extra_msg" >&5
 
7469
echo "${ECHO_T}$enable_authn_default$_apmod_extra_msg" >&6
 
7470
  if test "$enable_authn_default" != "no"; then
 
7471
    case "$enable_authn_default" in
 
7472
    shared*)
 
7473
      enable_authn_default=`echo $enable_authn_default|sed 's/shared,*//'`
 
7474
      sharedobjs=yes
 
7475
      shared=yes
 
7476
      DSO_MODULES="$DSO_MODULES authn_default"
 
7477
      ;;
 
7478
    *)
 
7479
      MODLIST="$MODLIST authn_default"
 
7480
      if test "authn_default" = "so"; then
 
7481
          sharedobjs=yes
 
7482
      fi
 
7483
      shared="";;
 
7484
    esac
 
7485
 
 
7486
 
 
7487
  if test -z ""; then
 
7488
    objects="mod_authn_default.lo"
 
7489
  else
 
7490
    objects=""
 
7491
  fi
 
7492
 
 
7493
  if test -z "$module_standalone"; then
 
7494
    if test -z "$shared"; then
 
7495
      # The filename of a convenience library must have a "lib" prefix:
 
7496
      libname="libmod_authn_default.la"
 
7497
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
7498
      modpath_static="$modpath_static $libname"
 
7499
      cat >>$modpath_current/modules.mk<<EOF
 
7500
$libname: $objects
 
7501
        \$(MOD_LINK) $objects \$(MOD_AUTHN_DEFAULT_LDADD)
 
7502
EOF
 
7503
    else
 
7504
      apache_need_shared=yes
 
7505
      libname="mod_authn_default.la"
 
7506
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
7507
      modpath_shared="$modpath_shared $libname"
 
7508
      cat >>$modpath_current/modules.mk<<EOF
 
7509
$libname: $shobjects
 
7510
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHN_DEFAULT_LDADD)
 
7511
EOF
 
7512
    fi
 
7513
  fi
 
7514
 
 
7515
 
 
7516
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHN_DEFAULT_LDADD"
 
7517
 
 
7518
 
 
7519
 
 
7520
  fi
 
7521
 
 
7522
 
 
7523
 
 
7524
  echo "$as_me:$LINENO: checking whether to enable mod_authn_alias" >&5
 
7525
echo $ECHO_N "checking whether to enable mod_authn_alias... $ECHO_C" >&6
 
7526
    # Check whether --enable-authn-alias or --disable-authn-alias was given.
 
7527
if test "${enable_authn_alias+set}" = set; then
 
7528
  enableval="$enable_authn_alias"
 
7529
 
 
7530
else
 
7531
  enable_authn_alias=no
 
7532
fi;
 
7533
    _apmod_extra_msg=""
 
7534
      if test "$module_selection" = "most" -a "$enable_authn_alias" = "most"; then
 
7535
    _apmod_error_fatal="no"
 
7536
  else
 
7537
    _apmod_error_fatal="yes"
 
7538
  fi
 
7539
  if test "$enable_authn_alias" = "static"; then
 
7540
    enable_authn_alias=yes
 
7541
  elif test "$enable_authn_alias" = "yes"; then
 
7542
    enable_authn_alias=$module_default
 
7543
    _apmod_extra_msg=" ($module_selection)"
 
7544
  elif test "$enable_authn_alias" = "most"; then
 
7545
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
7546
      enable_authn_alias=$module_default
 
7547
      _apmod_extra_msg=" ($module_selection)"
 
7548
    elif test "$enable_authn_alias" != "yes"; then
 
7549
      enable_authn_alias=no
 
7550
    fi
 
7551
  elif test "$enable_authn_alias" = "maybe-all"; then
 
7552
    if test "$module_selection" = "all"; then
 
7553
      enable_authn_alias=$module_default
 
7554
      _apmod_extra_msg=" (all)"
 
7555
    else
 
7556
      enable_authn_alias=no
 
7557
    fi
 
7558
  fi
 
7559
  if test "$enable_authn_alias" != "no"; then
 
7560
            :
 
7561
  fi
 
7562
  echo "$as_me:$LINENO: result: $enable_authn_alias$_apmod_extra_msg" >&5
 
7563
echo "${ECHO_T}$enable_authn_alias$_apmod_extra_msg" >&6
 
7564
  if test "$enable_authn_alias" != "no"; then
 
7565
    case "$enable_authn_alias" in
 
7566
    shared*)
 
7567
      enable_authn_alias=`echo $enable_authn_alias|sed 's/shared,*//'`
 
7568
      sharedobjs=yes
 
7569
      shared=yes
 
7570
      DSO_MODULES="$DSO_MODULES authn_alias"
 
7571
      ;;
 
7572
    *)
 
7573
      MODLIST="$MODLIST authn_alias"
 
7574
      if test "authn_alias" = "so"; then
 
7575
          sharedobjs=yes
 
7576
      fi
 
7577
      shared="";;
 
7578
    esac
 
7579
 
 
7580
 
 
7581
  if test -z ""; then
 
7582
    objects="mod_authn_alias.lo"
 
7583
  else
 
7584
    objects=""
 
7585
  fi
 
7586
 
 
7587
  if test -z "$module_standalone"; then
 
7588
    if test -z "$shared"; then
 
7589
      # The filename of a convenience library must have a "lib" prefix:
 
7590
      libname="libmod_authn_alias.la"
 
7591
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
7592
      modpath_static="$modpath_static $libname"
 
7593
      cat >>$modpath_current/modules.mk<<EOF
 
7594
$libname: $objects
 
7595
        \$(MOD_LINK) $objects \$(MOD_AUTHN_ALIAS_LDADD)
 
7596
EOF
 
7597
    else
 
7598
      apache_need_shared=yes
 
7599
      libname="mod_authn_alias.la"
 
7600
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
7601
      modpath_shared="$modpath_shared $libname"
 
7602
      cat >>$modpath_current/modules.mk<<EOF
 
7603
$libname: $shobjects
 
7604
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHN_ALIAS_LDADD)
 
7605
EOF
 
7606
    fi
 
7607
  fi
 
7608
 
 
7609
 
 
7610
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHN_ALIAS_LDADD"
 
7611
 
 
7612
 
 
7613
 
 
7614
  fi
 
7615
 
 
7616
 
 
7617
 
 
7618
  echo "$as_me:$LINENO: checking whether to enable mod_authz_host" >&5
 
7619
echo $ECHO_N "checking whether to enable mod_authz_host... $ECHO_C" >&6
 
7620
    # Check whether --enable-authz-host or --disable-authz-host was given.
 
7621
if test "${enable_authz_host+set}" = set; then
 
7622
  enableval="$enable_authz_host"
 
7623
 
 
7624
else
 
7625
  enable_authz_host=yes
 
7626
fi;
 
7627
    _apmod_extra_msg=""
 
7628
      if test "$module_selection" = "most" -a "$enable_authz_host" = "most"; then
 
7629
    _apmod_error_fatal="no"
 
7630
  else
 
7631
    _apmod_error_fatal="yes"
 
7632
  fi
 
7633
  if test "$enable_authz_host" = "static"; then
 
7634
    enable_authz_host=yes
 
7635
  elif test "$enable_authz_host" = "yes"; then
 
7636
    enable_authz_host=$module_default
 
7637
    _apmod_extra_msg=" ($module_selection)"
 
7638
  elif test "$enable_authz_host" = "most"; then
 
7639
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
7640
      enable_authz_host=$module_default
 
7641
      _apmod_extra_msg=" ($module_selection)"
 
7642
    elif test "$enable_authz_host" != "yes"; then
 
7643
      enable_authz_host=no
 
7644
    fi
 
7645
  elif test "$enable_authz_host" = "maybe-all"; then
 
7646
    if test "$module_selection" = "all"; then
 
7647
      enable_authz_host=$module_default
 
7648
      _apmod_extra_msg=" (all)"
 
7649
    else
 
7650
      enable_authz_host=no
 
7651
    fi
 
7652
  fi
 
7653
  if test "$enable_authz_host" != "no"; then
 
7654
            :
 
7655
  fi
 
7656
  echo "$as_me:$LINENO: result: $enable_authz_host$_apmod_extra_msg" >&5
 
7657
echo "${ECHO_T}$enable_authz_host$_apmod_extra_msg" >&6
 
7658
  if test "$enable_authz_host" != "no"; then
 
7659
    case "$enable_authz_host" in
 
7660
    shared*)
 
7661
      enable_authz_host=`echo $enable_authz_host|sed 's/shared,*//'`
 
7662
      sharedobjs=yes
 
7663
      shared=yes
 
7664
      DSO_MODULES="$DSO_MODULES authz_host"
 
7665
      ;;
 
7666
    *)
 
7667
      MODLIST="$MODLIST authz_host"
 
7668
      if test "authz_host" = "so"; then
 
7669
          sharedobjs=yes
 
7670
      fi
 
7671
      shared="";;
 
7672
    esac
 
7673
 
 
7674
 
 
7675
  if test -z ""; then
 
7676
    objects="mod_authz_host.lo"
 
7677
  else
 
7678
    objects=""
 
7679
  fi
 
7680
 
 
7681
  if test -z "$module_standalone"; then
 
7682
    if test -z "$shared"; then
 
7683
      # The filename of a convenience library must have a "lib" prefix:
 
7684
      libname="libmod_authz_host.la"
 
7685
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
7686
      modpath_static="$modpath_static $libname"
 
7687
      cat >>$modpath_current/modules.mk<<EOF
 
7688
$libname: $objects
 
7689
        \$(MOD_LINK) $objects \$(MOD_AUTHZ_HOST_LDADD)
 
7690
EOF
 
7691
    else
 
7692
      apache_need_shared=yes
 
7693
      libname="mod_authz_host.la"
 
7694
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
7695
      modpath_shared="$modpath_shared $libname"
 
7696
      cat >>$modpath_current/modules.mk<<EOF
 
7697
$libname: $shobjects
 
7698
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHZ_HOST_LDADD)
 
7699
EOF
 
7700
    fi
 
7701
  fi
 
7702
 
 
7703
 
 
7704
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHZ_HOST_LDADD"
 
7705
 
 
7706
 
 
7707
 
 
7708
  fi
 
7709
 
 
7710
 
 
7711
  echo "$as_me:$LINENO: checking whether to enable mod_authz_groupfile" >&5
 
7712
echo $ECHO_N "checking whether to enable mod_authz_groupfile... $ECHO_C" >&6
 
7713
    # Check whether --enable-authz-groupfile or --disable-authz-groupfile was given.
 
7714
if test "${enable_authz_groupfile+set}" = set; then
 
7715
  enableval="$enable_authz_groupfile"
 
7716
 
 
7717
else
 
7718
  enable_authz_groupfile=yes
 
7719
fi;
 
7720
    _apmod_extra_msg=""
 
7721
      if test "$module_selection" = "most" -a "$enable_authz_groupfile" = "most"; then
 
7722
    _apmod_error_fatal="no"
 
7723
  else
 
7724
    _apmod_error_fatal="yes"
 
7725
  fi
 
7726
  if test "$enable_authz_groupfile" = "static"; then
 
7727
    enable_authz_groupfile=yes
 
7728
  elif test "$enable_authz_groupfile" = "yes"; then
 
7729
    enable_authz_groupfile=$module_default
 
7730
    _apmod_extra_msg=" ($module_selection)"
 
7731
  elif test "$enable_authz_groupfile" = "most"; then
 
7732
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
7733
      enable_authz_groupfile=$module_default
 
7734
      _apmod_extra_msg=" ($module_selection)"
 
7735
    elif test "$enable_authz_groupfile" != "yes"; then
 
7736
      enable_authz_groupfile=no
 
7737
    fi
 
7738
  elif test "$enable_authz_groupfile" = "maybe-all"; then
 
7739
    if test "$module_selection" = "all"; then
 
7740
      enable_authz_groupfile=$module_default
 
7741
      _apmod_extra_msg=" (all)"
 
7742
    else
 
7743
      enable_authz_groupfile=no
 
7744
    fi
 
7745
  fi
 
7746
  if test "$enable_authz_groupfile" != "no"; then
 
7747
            :
 
7748
  fi
 
7749
  echo "$as_me:$LINENO: result: $enable_authz_groupfile$_apmod_extra_msg" >&5
 
7750
echo "${ECHO_T}$enable_authz_groupfile$_apmod_extra_msg" >&6
 
7751
  if test "$enable_authz_groupfile" != "no"; then
 
7752
    case "$enable_authz_groupfile" in
 
7753
    shared*)
 
7754
      enable_authz_groupfile=`echo $enable_authz_groupfile|sed 's/shared,*//'`
 
7755
      sharedobjs=yes
 
7756
      shared=yes
 
7757
      DSO_MODULES="$DSO_MODULES authz_groupfile"
 
7758
      ;;
 
7759
    *)
 
7760
      MODLIST="$MODLIST authz_groupfile"
 
7761
      if test "authz_groupfile" = "so"; then
 
7762
          sharedobjs=yes
 
7763
      fi
 
7764
      shared="";;
 
7765
    esac
 
7766
 
 
7767
 
 
7768
  if test -z ""; then
 
7769
    objects="mod_authz_groupfile.lo"
 
7770
  else
 
7771
    objects=""
 
7772
  fi
 
7773
 
 
7774
  if test -z "$module_standalone"; then
 
7775
    if test -z "$shared"; then
 
7776
      # The filename of a convenience library must have a "lib" prefix:
 
7777
      libname="libmod_authz_groupfile.la"
 
7778
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
7779
      modpath_static="$modpath_static $libname"
 
7780
      cat >>$modpath_current/modules.mk<<EOF
 
7781
$libname: $objects
 
7782
        \$(MOD_LINK) $objects \$(MOD_AUTHZ_GROUPFILE_LDADD)
 
7783
EOF
 
7784
    else
 
7785
      apache_need_shared=yes
 
7786
      libname="mod_authz_groupfile.la"
 
7787
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
7788
      modpath_shared="$modpath_shared $libname"
 
7789
      cat >>$modpath_current/modules.mk<<EOF
 
7790
$libname: $shobjects
 
7791
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHZ_GROUPFILE_LDADD)
 
7792
EOF
 
7793
    fi
 
7794
  fi
 
7795
 
 
7796
 
 
7797
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHZ_GROUPFILE_LDADD"
 
7798
 
 
7799
 
 
7800
 
 
7801
  fi
 
7802
 
 
7803
 
 
7804
  echo "$as_me:$LINENO: checking whether to enable mod_authz_user" >&5
 
7805
echo $ECHO_N "checking whether to enable mod_authz_user... $ECHO_C" >&6
 
7806
    # Check whether --enable-authz-user or --disable-authz-user was given.
 
7807
if test "${enable_authz_user+set}" = set; then
 
7808
  enableval="$enable_authz_user"
 
7809
 
 
7810
else
 
7811
  enable_authz_user=yes
 
7812
fi;
 
7813
    _apmod_extra_msg=""
 
7814
      if test "$module_selection" = "most" -a "$enable_authz_user" = "most"; then
 
7815
    _apmod_error_fatal="no"
 
7816
  else
 
7817
    _apmod_error_fatal="yes"
 
7818
  fi
 
7819
  if test "$enable_authz_user" = "static"; then
 
7820
    enable_authz_user=yes
 
7821
  elif test "$enable_authz_user" = "yes"; then
 
7822
    enable_authz_user=$module_default
 
7823
    _apmod_extra_msg=" ($module_selection)"
 
7824
  elif test "$enable_authz_user" = "most"; then
 
7825
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
7826
      enable_authz_user=$module_default
 
7827
      _apmod_extra_msg=" ($module_selection)"
 
7828
    elif test "$enable_authz_user" != "yes"; then
 
7829
      enable_authz_user=no
 
7830
    fi
 
7831
  elif test "$enable_authz_user" = "maybe-all"; then
 
7832
    if test "$module_selection" = "all"; then
 
7833
      enable_authz_user=$module_default
 
7834
      _apmod_extra_msg=" (all)"
 
7835
    else
 
7836
      enable_authz_user=no
 
7837
    fi
 
7838
  fi
 
7839
  if test "$enable_authz_user" != "no"; then
 
7840
            :
 
7841
  fi
 
7842
  echo "$as_me:$LINENO: result: $enable_authz_user$_apmod_extra_msg" >&5
 
7843
echo "${ECHO_T}$enable_authz_user$_apmod_extra_msg" >&6
 
7844
  if test "$enable_authz_user" != "no"; then
 
7845
    case "$enable_authz_user" in
 
7846
    shared*)
 
7847
      enable_authz_user=`echo $enable_authz_user|sed 's/shared,*//'`
 
7848
      sharedobjs=yes
 
7849
      shared=yes
 
7850
      DSO_MODULES="$DSO_MODULES authz_user"
 
7851
      ;;
 
7852
    *)
 
7853
      MODLIST="$MODLIST authz_user"
 
7854
      if test "authz_user" = "so"; then
 
7855
          sharedobjs=yes
 
7856
      fi
 
7857
      shared="";;
 
7858
    esac
 
7859
 
 
7860
 
 
7861
  if test -z ""; then
 
7862
    objects="mod_authz_user.lo"
 
7863
  else
 
7864
    objects=""
 
7865
  fi
 
7866
 
 
7867
  if test -z "$module_standalone"; then
 
7868
    if test -z "$shared"; then
 
7869
      # The filename of a convenience library must have a "lib" prefix:
 
7870
      libname="libmod_authz_user.la"
 
7871
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
7872
      modpath_static="$modpath_static $libname"
 
7873
      cat >>$modpath_current/modules.mk<<EOF
 
7874
$libname: $objects
 
7875
        \$(MOD_LINK) $objects \$(MOD_AUTHZ_USER_LDADD)
 
7876
EOF
 
7877
    else
 
7878
      apache_need_shared=yes
 
7879
      libname="mod_authz_user.la"
 
7880
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
7881
      modpath_shared="$modpath_shared $libname"
 
7882
      cat >>$modpath_current/modules.mk<<EOF
 
7883
$libname: $shobjects
 
7884
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHZ_USER_LDADD)
 
7885
EOF
 
7886
    fi
 
7887
  fi
 
7888
 
 
7889
 
 
7890
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHZ_USER_LDADD"
 
7891
 
 
7892
 
 
7893
 
 
7894
  fi
 
7895
 
 
7896
 
 
7897
  echo "$as_me:$LINENO: checking whether to enable mod_authz_dbm" >&5
 
7898
echo $ECHO_N "checking whether to enable mod_authz_dbm... $ECHO_C" >&6
 
7899
    # Check whether --enable-authz-dbm or --disable-authz-dbm was given.
 
7900
if test "${enable_authz_dbm+set}" = set; then
 
7901
  enableval="$enable_authz_dbm"
 
7902
 
 
7903
else
 
7904
  enable_authz_dbm=most
 
7905
fi;
 
7906
    _apmod_extra_msg=""
 
7907
      if test "$module_selection" = "most" -a "$enable_authz_dbm" = "most"; then
 
7908
    _apmod_error_fatal="no"
 
7909
  else
 
7910
    _apmod_error_fatal="yes"
 
7911
  fi
 
7912
  if test "$enable_authz_dbm" = "static"; then
 
7913
    enable_authz_dbm=yes
 
7914
  elif test "$enable_authz_dbm" = "yes"; then
 
7915
    enable_authz_dbm=$module_default
 
7916
    _apmod_extra_msg=" ($module_selection)"
 
7917
  elif test "$enable_authz_dbm" = "most"; then
 
7918
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
7919
      enable_authz_dbm=$module_default
 
7920
      _apmod_extra_msg=" ($module_selection)"
 
7921
    elif test "$enable_authz_dbm" != "yes"; then
 
7922
      enable_authz_dbm=no
 
7923
    fi
 
7924
  elif test "$enable_authz_dbm" = "maybe-all"; then
 
7925
    if test "$module_selection" = "all"; then
 
7926
      enable_authz_dbm=$module_default
 
7927
      _apmod_extra_msg=" (all)"
 
7928
    else
 
7929
      enable_authz_dbm=no
 
7930
    fi
 
7931
  fi
 
7932
  if test "$enable_authz_dbm" != "no"; then
 
7933
            :
 
7934
  fi
 
7935
  echo "$as_me:$LINENO: result: $enable_authz_dbm$_apmod_extra_msg" >&5
 
7936
echo "${ECHO_T}$enable_authz_dbm$_apmod_extra_msg" >&6
 
7937
  if test "$enable_authz_dbm" != "no"; then
 
7938
    case "$enable_authz_dbm" in
 
7939
    shared*)
 
7940
      enable_authz_dbm=`echo $enable_authz_dbm|sed 's/shared,*//'`
 
7941
      sharedobjs=yes
 
7942
      shared=yes
 
7943
      DSO_MODULES="$DSO_MODULES authz_dbm"
 
7944
      ;;
 
7945
    *)
 
7946
      MODLIST="$MODLIST authz_dbm"
 
7947
      if test "authz_dbm" = "so"; then
 
7948
          sharedobjs=yes
 
7949
      fi
 
7950
      shared="";;
 
7951
    esac
 
7952
 
 
7953
 
 
7954
  if test -z ""; then
 
7955
    objects="mod_authz_dbm.lo"
 
7956
  else
 
7957
    objects=""
 
7958
  fi
 
7959
 
 
7960
  if test -z "$module_standalone"; then
 
7961
    if test -z "$shared"; then
 
7962
      # The filename of a convenience library must have a "lib" prefix:
 
7963
      libname="libmod_authz_dbm.la"
 
7964
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
7965
      modpath_static="$modpath_static $libname"
 
7966
      cat >>$modpath_current/modules.mk<<EOF
 
7967
$libname: $objects
 
7968
        \$(MOD_LINK) $objects \$(MOD_AUTHZ_DBM_LDADD)
 
7969
EOF
 
7970
    else
 
7971
      apache_need_shared=yes
 
7972
      libname="mod_authz_dbm.la"
 
7973
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
7974
      modpath_shared="$modpath_shared $libname"
 
7975
      cat >>$modpath_current/modules.mk<<EOF
 
7976
$libname: $shobjects
 
7977
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHZ_DBM_LDADD)
 
7978
EOF
 
7979
    fi
 
7980
  fi
 
7981
 
 
7982
 
 
7983
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHZ_DBM_LDADD"
 
7984
 
 
7985
 
 
7986
 
 
7987
  fi
 
7988
 
 
7989
 
 
7990
  echo "$as_me:$LINENO: checking whether to enable mod_authz_owner" >&5
 
7991
echo $ECHO_N "checking whether to enable mod_authz_owner... $ECHO_C" >&6
 
7992
    # Check whether --enable-authz-owner or --disable-authz-owner was given.
 
7993
if test "${enable_authz_owner+set}" = set; then
 
7994
  enableval="$enable_authz_owner"
 
7995
 
 
7996
else
 
7997
  enable_authz_owner=most
 
7998
fi;
 
7999
    _apmod_extra_msg=""
 
8000
      if test "$module_selection" = "most" -a "$enable_authz_owner" = "most"; then
 
8001
    _apmod_error_fatal="no"
 
8002
  else
 
8003
    _apmod_error_fatal="yes"
 
8004
  fi
 
8005
  if test "$enable_authz_owner" = "static"; then
 
8006
    enable_authz_owner=yes
 
8007
  elif test "$enable_authz_owner" = "yes"; then
 
8008
    enable_authz_owner=$module_default
 
8009
    _apmod_extra_msg=" ($module_selection)"
 
8010
  elif test "$enable_authz_owner" = "most"; then
 
8011
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
8012
      enable_authz_owner=$module_default
 
8013
      _apmod_extra_msg=" ($module_selection)"
 
8014
    elif test "$enable_authz_owner" != "yes"; then
 
8015
      enable_authz_owner=no
 
8016
    fi
 
8017
  elif test "$enable_authz_owner" = "maybe-all"; then
 
8018
    if test "$module_selection" = "all"; then
 
8019
      enable_authz_owner=$module_default
 
8020
      _apmod_extra_msg=" (all)"
 
8021
    else
 
8022
      enable_authz_owner=no
 
8023
    fi
 
8024
  fi
 
8025
  if test "$enable_authz_owner" != "no"; then
 
8026
            :
 
8027
  fi
 
8028
  echo "$as_me:$LINENO: result: $enable_authz_owner$_apmod_extra_msg" >&5
 
8029
echo "${ECHO_T}$enable_authz_owner$_apmod_extra_msg" >&6
 
8030
  if test "$enable_authz_owner" != "no"; then
 
8031
    case "$enable_authz_owner" in
 
8032
    shared*)
 
8033
      enable_authz_owner=`echo $enable_authz_owner|sed 's/shared,*//'`
 
8034
      sharedobjs=yes
 
8035
      shared=yes
 
8036
      DSO_MODULES="$DSO_MODULES authz_owner"
 
8037
      ;;
 
8038
    *)
 
8039
      MODLIST="$MODLIST authz_owner"
 
8040
      if test "authz_owner" = "so"; then
 
8041
          sharedobjs=yes
 
8042
      fi
 
8043
      shared="";;
 
8044
    esac
 
8045
 
 
8046
 
 
8047
  if test -z ""; then
 
8048
    objects="mod_authz_owner.lo"
 
8049
  else
 
8050
    objects=""
 
8051
  fi
 
8052
 
 
8053
  if test -z "$module_standalone"; then
 
8054
    if test -z "$shared"; then
 
8055
      # The filename of a convenience library must have a "lib" prefix:
 
8056
      libname="libmod_authz_owner.la"
 
8057
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
8058
      modpath_static="$modpath_static $libname"
 
8059
      cat >>$modpath_current/modules.mk<<EOF
 
8060
$libname: $objects
 
8061
        \$(MOD_LINK) $objects \$(MOD_AUTHZ_OWNER_LDADD)
 
8062
EOF
 
8063
    else
 
8064
      apache_need_shared=yes
 
8065
      libname="mod_authz_owner.la"
 
8066
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
8067
      modpath_shared="$modpath_shared $libname"
 
8068
      cat >>$modpath_current/modules.mk<<EOF
 
8069
$libname: $shobjects
 
8070
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHZ_OWNER_LDADD)
 
8071
EOF
 
8072
    fi
 
8073
  fi
 
8074
 
 
8075
 
 
8076
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHZ_OWNER_LDADD"
 
8077
 
 
8078
 
 
8079
 
 
8080
  fi
 
8081
 
 
8082
 
 
8083
 
 
8084
  echo "$as_me:$LINENO: checking whether to enable mod_authnz_ldap" >&5
 
8085
echo $ECHO_N "checking whether to enable mod_authnz_ldap... $ECHO_C" >&6
 
8086
    # Check whether --enable-authnz-ldap or --disable-authnz-ldap was given.
 
8087
if test "${enable_authnz_ldap+set}" = set; then
 
8088
  enableval="$enable_authnz_ldap"
 
8089
 
 
8090
else
 
8091
  enable_authnz_ldap=no
 
8092
fi;
 
8093
    _apmod_extra_msg=""
 
8094
      if test "$module_selection" = "most" -a "$enable_authnz_ldap" = "most"; then
 
8095
    _apmod_error_fatal="no"
 
8096
  else
 
8097
    _apmod_error_fatal="yes"
 
8098
  fi
 
8099
  if test "$enable_authnz_ldap" = "static"; then
 
8100
    enable_authnz_ldap=yes
 
8101
  elif test "$enable_authnz_ldap" = "yes"; then
 
8102
    enable_authnz_ldap=$module_default
 
8103
    _apmod_extra_msg=" ($module_selection)"
 
8104
  elif test "$enable_authnz_ldap" = "most"; then
 
8105
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
8106
      enable_authnz_ldap=$module_default
 
8107
      _apmod_extra_msg=" ($module_selection)"
 
8108
    elif test "$enable_authnz_ldap" != "yes"; then
 
8109
      enable_authnz_ldap=no
 
8110
    fi
 
8111
  elif test "$enable_authnz_ldap" = "maybe-all"; then
 
8112
    if test "$module_selection" = "all"; then
 
8113
      enable_authnz_ldap=$module_default
 
8114
      _apmod_extra_msg=" (all)"
 
8115
    else
 
8116
      enable_authnz_ldap=no
 
8117
    fi
 
8118
  fi
 
8119
  if test "$enable_authnz_ldap" != "no"; then
 
8120
            :
 
8121
  fi
 
8122
  echo "$as_me:$LINENO: result: $enable_authnz_ldap$_apmod_extra_msg" >&5
 
8123
echo "${ECHO_T}$enable_authnz_ldap$_apmod_extra_msg" >&6
 
8124
  if test "$enable_authnz_ldap" != "no"; then
 
8125
    case "$enable_authnz_ldap" in
 
8126
    shared*)
 
8127
      enable_authnz_ldap=`echo $enable_authnz_ldap|sed 's/shared,*//'`
 
8128
      sharedobjs=yes
 
8129
      shared=yes
 
8130
      DSO_MODULES="$DSO_MODULES authnz_ldap"
 
8131
      ;;
 
8132
    *)
 
8133
      MODLIST="$MODLIST authnz_ldap"
 
8134
      if test "authnz_ldap" = "so"; then
 
8135
          sharedobjs=yes
 
8136
      fi
 
8137
      shared="";;
 
8138
    esac
 
8139
 
 
8140
 
 
8141
  if test -z ""; then
 
8142
    objects="mod_authnz_ldap.lo"
 
8143
  else
 
8144
    objects=""
 
8145
  fi
 
8146
 
 
8147
  if test -z "$module_standalone"; then
 
8148
    if test -z "$shared"; then
 
8149
      # The filename of a convenience library must have a "lib" prefix:
 
8150
      libname="libmod_authnz_ldap.la"
 
8151
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
8152
      modpath_static="$modpath_static $libname"
 
8153
      cat >>$modpath_current/modules.mk<<EOF
 
8154
$libname: $objects
 
8155
        \$(MOD_LINK) $objects \$(MOD_AUTHNZ_LDAP_LDADD)
 
8156
EOF
 
8157
    else
 
8158
      apache_need_shared=yes
 
8159
      libname="mod_authnz_ldap.la"
 
8160
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
8161
      modpath_shared="$modpath_shared $libname"
 
8162
      cat >>$modpath_current/modules.mk<<EOF
 
8163
$libname: $shobjects
 
8164
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHNZ_LDAP_LDADD)
 
8165
EOF
 
8166
    fi
 
8167
  fi
 
8168
 
 
8169
 
 
8170
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHNZ_LDAP_LDADD"
 
8171
 
 
8172
 
 
8173
 
 
8174
  fi
 
8175
 
 
8176
 
 
8177
 
 
8178
  echo "$as_me:$LINENO: checking whether to enable mod_authz_default" >&5
 
8179
echo $ECHO_N "checking whether to enable mod_authz_default... $ECHO_C" >&6
 
8180
    # Check whether --enable-authz-default or --disable-authz-default was given.
 
8181
if test "${enable_authz_default+set}" = set; then
 
8182
  enableval="$enable_authz_default"
 
8183
 
 
8184
else
 
8185
  enable_authz_default=yes
 
8186
fi;
 
8187
    _apmod_extra_msg=""
 
8188
      if test "$module_selection" = "most" -a "$enable_authz_default" = "most"; then
 
8189
    _apmod_error_fatal="no"
 
8190
  else
 
8191
    _apmod_error_fatal="yes"
 
8192
  fi
 
8193
  if test "$enable_authz_default" = "static"; then
 
8194
    enable_authz_default=yes
 
8195
  elif test "$enable_authz_default" = "yes"; then
 
8196
    enable_authz_default=$module_default
 
8197
    _apmod_extra_msg=" ($module_selection)"
 
8198
  elif test "$enable_authz_default" = "most"; then
 
8199
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
8200
      enable_authz_default=$module_default
 
8201
      _apmod_extra_msg=" ($module_selection)"
 
8202
    elif test "$enable_authz_default" != "yes"; then
 
8203
      enable_authz_default=no
 
8204
    fi
 
8205
  elif test "$enable_authz_default" = "maybe-all"; then
 
8206
    if test "$module_selection" = "all"; then
 
8207
      enable_authz_default=$module_default
 
8208
      _apmod_extra_msg=" (all)"
 
8209
    else
 
8210
      enable_authz_default=no
 
8211
    fi
 
8212
  fi
 
8213
  if test "$enable_authz_default" != "no"; then
 
8214
            :
 
8215
  fi
 
8216
  echo "$as_me:$LINENO: result: $enable_authz_default$_apmod_extra_msg" >&5
 
8217
echo "${ECHO_T}$enable_authz_default$_apmod_extra_msg" >&6
 
8218
  if test "$enable_authz_default" != "no"; then
 
8219
    case "$enable_authz_default" in
 
8220
    shared*)
 
8221
      enable_authz_default=`echo $enable_authz_default|sed 's/shared,*//'`
 
8222
      sharedobjs=yes
 
8223
      shared=yes
 
8224
      DSO_MODULES="$DSO_MODULES authz_default"
 
8225
      ;;
 
8226
    *)
 
8227
      MODLIST="$MODLIST authz_default"
 
8228
      if test "authz_default" = "so"; then
 
8229
          sharedobjs=yes
 
8230
      fi
 
8231
      shared="";;
 
8232
    esac
 
8233
 
 
8234
 
 
8235
  if test -z ""; then
 
8236
    objects="mod_authz_default.lo"
 
8237
  else
 
8238
    objects=""
 
8239
  fi
 
8240
 
 
8241
  if test -z "$module_standalone"; then
 
8242
    if test -z "$shared"; then
 
8243
      # The filename of a convenience library must have a "lib" prefix:
 
8244
      libname="libmod_authz_default.la"
 
8245
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
8246
      modpath_static="$modpath_static $libname"
 
8247
      cat >>$modpath_current/modules.mk<<EOF
 
8248
$libname: $objects
 
8249
        \$(MOD_LINK) $objects \$(MOD_AUTHZ_DEFAULT_LDADD)
 
8250
EOF
 
8251
    else
 
8252
      apache_need_shared=yes
 
8253
      libname="mod_authz_default.la"
 
8254
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
8255
      modpath_shared="$modpath_shared $libname"
 
8256
      cat >>$modpath_current/modules.mk<<EOF
 
8257
$libname: $shobjects
 
8258
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTHZ_DEFAULT_LDADD)
 
8259
EOF
 
8260
    fi
 
8261
  fi
 
8262
 
 
8263
 
 
8264
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTHZ_DEFAULT_LDADD"
 
8265
 
 
8266
 
 
8267
 
 
8268
  fi
 
8269
 
 
8270
 
 
8271
 
 
8272
 
 
8273
  echo "$as_me:$LINENO: checking whether to enable mod_auth_basic" >&5
 
8274
echo $ECHO_N "checking whether to enable mod_auth_basic... $ECHO_C" >&6
 
8275
    # Check whether --enable-auth-basic or --disable-auth-basic was given.
 
8276
if test "${enable_auth_basic+set}" = set; then
 
8277
  enableval="$enable_auth_basic"
 
8278
 
 
8279
else
 
8280
  enable_auth_basic=yes
 
8281
fi;
 
8282
    _apmod_extra_msg=""
 
8283
      if test "$module_selection" = "most" -a "$enable_auth_basic" = "most"; then
 
8284
    _apmod_error_fatal="no"
 
8285
  else
 
8286
    _apmod_error_fatal="yes"
 
8287
  fi
 
8288
  if test "$enable_auth_basic" = "static"; then
 
8289
    enable_auth_basic=yes
 
8290
  elif test "$enable_auth_basic" = "yes"; then
 
8291
    enable_auth_basic=$module_default
 
8292
    _apmod_extra_msg=" ($module_selection)"
 
8293
  elif test "$enable_auth_basic" = "most"; then
 
8294
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
8295
      enable_auth_basic=$module_default
 
8296
      _apmod_extra_msg=" ($module_selection)"
 
8297
    elif test "$enable_auth_basic" != "yes"; then
 
8298
      enable_auth_basic=no
 
8299
    fi
 
8300
  elif test "$enable_auth_basic" = "maybe-all"; then
 
8301
    if test "$module_selection" = "all"; then
 
8302
      enable_auth_basic=$module_default
 
8303
      _apmod_extra_msg=" (all)"
 
8304
    else
 
8305
      enable_auth_basic=no
 
8306
    fi
 
8307
  fi
 
8308
  if test "$enable_auth_basic" != "no"; then
 
8309
            :
 
8310
  fi
 
8311
  echo "$as_me:$LINENO: result: $enable_auth_basic$_apmod_extra_msg" >&5
 
8312
echo "${ECHO_T}$enable_auth_basic$_apmod_extra_msg" >&6
 
8313
  if test "$enable_auth_basic" != "no"; then
 
8314
    case "$enable_auth_basic" in
 
8315
    shared*)
 
8316
      enable_auth_basic=`echo $enable_auth_basic|sed 's/shared,*//'`
 
8317
      sharedobjs=yes
 
8318
      shared=yes
 
8319
      DSO_MODULES="$DSO_MODULES auth_basic"
 
8320
      ;;
 
8321
    *)
 
8322
      MODLIST="$MODLIST auth_basic"
 
8323
      if test "auth_basic" = "so"; then
 
8324
          sharedobjs=yes
 
8325
      fi
 
8326
      shared="";;
 
8327
    esac
 
8328
 
 
8329
 
 
8330
  if test -z ""; then
 
8331
    objects="mod_auth_basic.lo"
 
8332
  else
 
8333
    objects=""
 
8334
  fi
 
8335
 
 
8336
  if test -z "$module_standalone"; then
 
8337
    if test -z "$shared"; then
 
8338
      # The filename of a convenience library must have a "lib" prefix:
 
8339
      libname="libmod_auth_basic.la"
 
8340
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
8341
      modpath_static="$modpath_static $libname"
 
8342
      cat >>$modpath_current/modules.mk<<EOF
 
8343
$libname: $objects
 
8344
        \$(MOD_LINK) $objects \$(MOD_AUTH_BASIC_LDADD)
 
8345
EOF
 
8346
    else
 
8347
      apache_need_shared=yes
 
8348
      libname="mod_auth_basic.la"
 
8349
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
8350
      modpath_shared="$modpath_shared $libname"
 
8351
      cat >>$modpath_current/modules.mk<<EOF
 
8352
$libname: $shobjects
 
8353
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTH_BASIC_LDADD)
 
8354
EOF
 
8355
    fi
 
8356
  fi
 
8357
 
 
8358
 
 
8359
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTH_BASIC_LDADD"
 
8360
 
 
8361
 
 
8362
 
 
8363
  fi
 
8364
 
 
8365
 
 
8366
  echo "$as_me:$LINENO: checking whether to enable mod_auth_digest" >&5
 
8367
echo $ECHO_N "checking whether to enable mod_auth_digest... $ECHO_C" >&6
 
8368
    # Check whether --enable-auth-digest or --disable-auth-digest was given.
 
8369
if test "${enable_auth_digest+set}" = set; then
 
8370
  enableval="$enable_auth_digest"
 
8371
 
 
8372
else
 
8373
  enable_auth_digest=most
 
8374
fi;
 
8375
    _apmod_extra_msg=""
 
8376
      if test "$module_selection" = "most" -a "$enable_auth_digest" = "most"; then
 
8377
    _apmod_error_fatal="no"
 
8378
  else
 
8379
    _apmod_error_fatal="yes"
 
8380
  fi
 
8381
  if test "$enable_auth_digest" = "static"; then
 
8382
    enable_auth_digest=yes
 
8383
  elif test "$enable_auth_digest" = "yes"; then
 
8384
    enable_auth_digest=$module_default
 
8385
    _apmod_extra_msg=" ($module_selection)"
 
8386
  elif test "$enable_auth_digest" = "most"; then
 
8387
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
8388
      enable_auth_digest=$module_default
 
8389
      _apmod_extra_msg=" ($module_selection)"
 
8390
    elif test "$enable_auth_digest" != "yes"; then
 
8391
      enable_auth_digest=no
 
8392
    fi
 
8393
  elif test "$enable_auth_digest" = "maybe-all"; then
 
8394
    if test "$module_selection" = "all"; then
 
8395
      enable_auth_digest=$module_default
 
8396
      _apmod_extra_msg=" (all)"
 
8397
    else
 
8398
      enable_auth_digest=no
 
8399
    fi
 
8400
  fi
 
8401
  if test "$enable_auth_digest" != "no"; then
 
8402
            echo "$as_me:$LINENO: result: checking dependencies" >&5
 
8403
echo "${ECHO_T}checking dependencies" >&6
 
8404
 
 
8405
 
 
8406
apr_old_cppflags=$CPPFLAGS
 
8407
CPPFLAGS="$CPPFLAGS $INCLUDES"
 
8408
cat >conftest.$ac_ext <<_ACEOF
 
8409
/* confdefs.h.  */
 
8410
_ACEOF
 
8411
cat confdefs.h >>conftest.$ac_ext
 
8412
cat >>conftest.$ac_ext <<_ACEOF
 
8413
/* end confdefs.h.  */
 
8414
 
 
8415
#include <apr.h>
 
8416
#if APR_HAS_RANDOM
 
8417
YES_IS_DEFINED
 
8418
#endif
 
8419
 
 
8420
_ACEOF
 
8421
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
8422
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
 
8423
  ac_cv_define_APR_HAS_RANDOM=yes
 
8424
else
 
8425
  ac_cv_define_APR_HAS_RANDOM=no
 
8426
fi
 
8427
rm -f conftest*
 
8428
 
 
8429
CPPFLAGS=$apr_old_cppflags
 
8430
 
 
8431
  if test $ac_cv_define_APR_HAS_RANDOM = "no"; then
 
8432
    echo "You need APR random support to use mod_auth_digest."
 
8433
    echo "Look at APR configure options --with-egd and --with-devrandom."
 
8434
    enable_auth_digest="no"
 
8435
  fi
 
8436
 
 
8437
                    echo "$as_me:$LINENO: checking whether to enable mod_auth_digest" >&5
 
8438
echo $ECHO_N "checking whether to enable mod_auth_digest... $ECHO_C" >&6
 
8439
                    if test "$enable_auth_digest" = "no"; then
 
8440
                      if test "$_apmod_error_fatal" = "no"; then
 
8441
                        _apmod_extra_msg=" (disabled)"
 
8442
                      else
 
8443
                        { { echo "$as_me:$LINENO: error: mod_auth_digest has been requested but can not be built due to prerequisite failures" >&5
 
8444
echo "$as_me: error: mod_auth_digest has been requested but can not be built due to prerequisite failures" >&2;}
 
8445
   { (exit 1); exit 1; }; }
 
8446
                      fi
 
8447
                    fi
 
8448
  fi
 
8449
  echo "$as_me:$LINENO: result: $enable_auth_digest$_apmod_extra_msg" >&5
 
8450
echo "${ECHO_T}$enable_auth_digest$_apmod_extra_msg" >&6
 
8451
  if test "$enable_auth_digest" != "no"; then
 
8452
    case "$enable_auth_digest" in
 
8453
    shared*)
 
8454
      enable_auth_digest=`echo $enable_auth_digest|sed 's/shared,*//'`
 
8455
      sharedobjs=yes
 
8456
      shared=yes
 
8457
      DSO_MODULES="$DSO_MODULES auth_digest"
 
8458
      ;;
 
8459
    *)
 
8460
      MODLIST="$MODLIST auth_digest"
 
8461
      if test "auth_digest" = "so"; then
 
8462
          sharedobjs=yes
 
8463
      fi
 
8464
      shared="";;
 
8465
    esac
 
8466
 
 
8467
 
 
8468
  if test -z ""; then
 
8469
    objects="mod_auth_digest.lo"
 
8470
  else
 
8471
    objects=""
 
8472
  fi
 
8473
 
 
8474
  if test -z "$module_standalone"; then
 
8475
    if test -z "$shared"; then
 
8476
      # The filename of a convenience library must have a "lib" prefix:
 
8477
      libname="libmod_auth_digest.la"
 
8478
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
8479
      modpath_static="$modpath_static $libname"
 
8480
      cat >>$modpath_current/modules.mk<<EOF
 
8481
$libname: $objects
 
8482
        \$(MOD_LINK) $objects \$(MOD_AUTH_DIGEST_LDADD)
 
8483
EOF
 
8484
    else
 
8485
      apache_need_shared=yes
 
8486
      libname="mod_auth_digest.la"
 
8487
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
8488
      modpath_shared="$modpath_shared $libname"
 
8489
      cat >>$modpath_current/modules.mk<<EOF
 
8490
$libname: $shobjects
 
8491
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTH_DIGEST_LDADD)
 
8492
EOF
 
8493
    fi
 
8494
  fi
 
8495
 
 
8496
 
 
8497
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTH_DIGEST_LDADD"
 
8498
 
 
8499
 
 
8500
 
 
8501
  fi
 
8502
 
 
8503
 
 
8504
 
 
8505
  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
 
8506
  echo "static = $modpath_static" >> $modpath_current/modules.mk
 
8507
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
 
8508
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
 
8509
    MODULE_DIRS="$MODULE_DIRS $current_dir"
 
8510
  else
 
8511
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
 
8512
  fi
 
8513
 
 
8514
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
 
8515
 
 
8516
 
 
8517
 
 
8518
 
 
8519
 
 
8520
 
 
8521
  current_dir=arch/win32
 
8522
  modpath_current=modules/arch/win32
 
8523
  modpath_static=
 
8524
  modpath_shared=
 
8525
  test -d arch/win32 || $srcdir/build/mkdir.sh $modpath_current
 
8526
  > $modpath_current/modules.mk
 
8527
 
 
8528
 
 
8529
 
 
8530
  echo "$as_me:$LINENO: checking whether to enable mod_isapi" >&5
 
8531
echo $ECHO_N "checking whether to enable mod_isapi... $ECHO_C" >&6
 
8532
    # Check whether --enable-isapi or --disable-isapi was given.
 
8533
if test "${enable_isapi+set}" = set; then
 
8534
  enableval="$enable_isapi"
 
8535
 
 
8536
else
 
8537
  enable_isapi=no
 
8538
fi;
 
8539
    _apmod_extra_msg=""
 
8540
      if test "$module_selection" = "most" -a "$enable_isapi" = "most"; then
 
8541
    _apmod_error_fatal="no"
 
8542
  else
 
8543
    _apmod_error_fatal="yes"
 
8544
  fi
 
8545
  if test "$enable_isapi" = "static"; then
 
8546
    enable_isapi=yes
 
8547
  elif test "$enable_isapi" = "yes"; then
 
8548
    enable_isapi=$module_default
 
8549
    _apmod_extra_msg=" ($module_selection)"
 
8550
  elif test "$enable_isapi" = "most"; then
 
8551
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
8552
      enable_isapi=$module_default
 
8553
      _apmod_extra_msg=" ($module_selection)"
 
8554
    elif test "$enable_isapi" != "yes"; then
 
8555
      enable_isapi=no
 
8556
    fi
 
8557
  elif test "$enable_isapi" = "maybe-all"; then
 
8558
    if test "$module_selection" = "all"; then
 
8559
      enable_isapi=$module_default
 
8560
      _apmod_extra_msg=" (all)"
 
8561
    else
 
8562
      enable_isapi=no
 
8563
    fi
 
8564
  fi
 
8565
  if test "$enable_isapi" != "no"; then
 
8566
            :
 
8567
  fi
 
8568
  echo "$as_me:$LINENO: result: $enable_isapi$_apmod_extra_msg" >&5
 
8569
echo "${ECHO_T}$enable_isapi$_apmod_extra_msg" >&6
 
8570
  if test "$enable_isapi" != "no"; then
 
8571
    case "$enable_isapi" in
 
8572
    shared*)
 
8573
      enable_isapi=`echo $enable_isapi|sed 's/shared,*//'`
 
8574
      sharedobjs=yes
 
8575
      shared=yes
 
8576
      DSO_MODULES="$DSO_MODULES isapi"
 
8577
      ;;
 
8578
    *)
 
8579
      MODLIST="$MODLIST isapi"
 
8580
      if test "isapi" = "so"; then
 
8581
          sharedobjs=yes
 
8582
      fi
 
8583
      shared="";;
 
8584
    esac
 
8585
 
 
8586
 
 
8587
  if test -z ""; then
 
8588
    objects="mod_isapi.lo"
 
8589
  else
 
8590
    objects=""
 
8591
  fi
 
8592
 
 
8593
  if test -z "$module_standalone"; then
 
8594
    if test -z "$shared"; then
 
8595
      # The filename of a convenience library must have a "lib" prefix:
 
8596
      libname="libmod_isapi.la"
 
8597
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
8598
      modpath_static="$modpath_static $libname"
 
8599
      cat >>$modpath_current/modules.mk<<EOF
 
8600
$libname: $objects
 
8601
        \$(MOD_LINK) $objects \$(MOD_ISAPI_LDADD)
 
8602
EOF
 
8603
    else
 
8604
      apache_need_shared=yes
 
8605
      libname="mod_isapi.la"
 
8606
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
8607
      modpath_shared="$modpath_shared $libname"
 
8608
      cat >>$modpath_current/modules.mk<<EOF
 
8609
$libname: $shobjects
 
8610
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_ISAPI_LDADD)
 
8611
EOF
 
8612
    fi
 
8613
  fi
 
8614
 
 
8615
 
 
8616
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ISAPI_LDADD"
 
8617
 
 
8618
 
 
8619
 
 
8620
  fi
 
8621
 
 
8622
 
 
8623
 
 
8624
  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
 
8625
  echo "static = $modpath_static" >> $modpath_current/modules.mk
 
8626
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
 
8627
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
 
8628
    MODULE_DIRS="$MODULE_DIRS $current_dir"
 
8629
  else
 
8630
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
 
8631
  fi
 
8632
 
 
8633
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
 
8634
 
 
8635
 
 
8636
 
 
8637
 
 
8638
 
 
8639
 
 
8640
  current_dir=cache
 
8641
  modpath_current=modules/cache
 
8642
  modpath_static=
 
8643
  modpath_shared=
 
8644
  test -d cache || $srcdir/build/mkdir.sh $modpath_current
 
8645
  > $modpath_current/modules.mk
 
8646
 
 
8647
 
 
8648
 
 
8649
  echo "$as_me:$LINENO: checking whether to enable mod_file_cache" >&5
 
8650
echo $ECHO_N "checking whether to enable mod_file_cache... $ECHO_C" >&6
 
8651
    # Check whether --enable-file-cache or --disable-file-cache was given.
 
8652
if test "${enable_file_cache+set}" = set; then
 
8653
  enableval="$enable_file_cache"
 
8654
 
 
8655
else
 
8656
  enable_file_cache=no
 
8657
fi;
 
8658
    _apmod_extra_msg=""
 
8659
      if test "$module_selection" = "most" -a "$enable_file_cache" = "most"; then
 
8660
    _apmod_error_fatal="no"
 
8661
  else
 
8662
    _apmod_error_fatal="yes"
 
8663
  fi
 
8664
  if test "$enable_file_cache" = "static"; then
 
8665
    enable_file_cache=yes
 
8666
  elif test "$enable_file_cache" = "yes"; then
 
8667
    enable_file_cache=$module_default
 
8668
    _apmod_extra_msg=" ($module_selection)"
 
8669
  elif test "$enable_file_cache" = "most"; then
 
8670
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
8671
      enable_file_cache=$module_default
 
8672
      _apmod_extra_msg=" ($module_selection)"
 
8673
    elif test "$enable_file_cache" != "yes"; then
 
8674
      enable_file_cache=no
 
8675
    fi
 
8676
  elif test "$enable_file_cache" = "maybe-all"; then
 
8677
    if test "$module_selection" = "all"; then
 
8678
      enable_file_cache=$module_default
 
8679
      _apmod_extra_msg=" (all)"
 
8680
    else
 
8681
      enable_file_cache=no
 
8682
    fi
 
8683
  fi
 
8684
  if test "$enable_file_cache" != "no"; then
 
8685
            :
 
8686
  fi
 
8687
  echo "$as_me:$LINENO: result: $enable_file_cache$_apmod_extra_msg" >&5
 
8688
echo "${ECHO_T}$enable_file_cache$_apmod_extra_msg" >&6
 
8689
  if test "$enable_file_cache" != "no"; then
 
8690
    case "$enable_file_cache" in
 
8691
    shared*)
 
8692
      enable_file_cache=`echo $enable_file_cache|sed 's/shared,*//'`
 
8693
      sharedobjs=yes
 
8694
      shared=yes
 
8695
      DSO_MODULES="$DSO_MODULES file_cache"
 
8696
      ;;
 
8697
    *)
 
8698
      MODLIST="$MODLIST file_cache"
 
8699
      if test "file_cache" = "so"; then
 
8700
          sharedobjs=yes
 
8701
      fi
 
8702
      shared="";;
 
8703
    esac
 
8704
 
 
8705
 
 
8706
  if test -z ""; then
 
8707
    objects="mod_file_cache.lo"
 
8708
  else
 
8709
    objects=""
 
8710
  fi
 
8711
 
 
8712
  if test -z "$module_standalone"; then
 
8713
    if test -z "$shared"; then
 
8714
      # The filename of a convenience library must have a "lib" prefix:
 
8715
      libname="libmod_file_cache.la"
 
8716
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
8717
      modpath_static="$modpath_static $libname"
 
8718
      cat >>$modpath_current/modules.mk<<EOF
 
8719
$libname: $objects
 
8720
        \$(MOD_LINK) $objects \$(MOD_FILE_CACHE_LDADD)
 
8721
EOF
 
8722
    else
 
8723
      apache_need_shared=yes
 
8724
      libname="mod_file_cache.la"
 
8725
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
8726
      modpath_shared="$modpath_shared $libname"
 
8727
      cat >>$modpath_current/modules.mk<<EOF
 
8728
$libname: $shobjects
 
8729
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_FILE_CACHE_LDADD)
 
8730
EOF
 
8731
    fi
 
8732
  fi
 
8733
 
 
8734
 
 
8735
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_FILE_CACHE_LDADD"
 
8736
 
 
8737
 
 
8738
 
 
8739
  fi
 
8740
 
 
8741
 
 
8742
cache_objs="mod_cache.lo cache_storage.lo cache_util.lo "
 
8743
mem_cache_objs="mod_mem_cache.lo cache_cache.lo cache_pqueue.lo cache_hash.lo "
 
8744
 
 
8745
  echo "$as_me:$LINENO: checking whether to enable mod_cache" >&5
 
8746
echo $ECHO_N "checking whether to enable mod_cache... $ECHO_C" >&6
 
8747
    # Check whether --enable-cache or --disable-cache was given.
 
8748
if test "${enable_cache+set}" = set; then
 
8749
  enableval="$enable_cache"
 
8750
 
 
8751
else
 
8752
  enable_cache=no
 
8753
fi;
 
8754
    _apmod_extra_msg=""
 
8755
      if test "$module_selection" = "most" -a "$enable_cache" = "most"; then
 
8756
    _apmod_error_fatal="no"
 
8757
  else
 
8758
    _apmod_error_fatal="yes"
 
8759
  fi
 
8760
  if test "$enable_cache" = "static"; then
 
8761
    enable_cache=yes
 
8762
  elif test "$enable_cache" = "yes"; then
 
8763
    enable_cache=$module_default
 
8764
    _apmod_extra_msg=" ($module_selection)"
 
8765
  elif test "$enable_cache" = "most"; then
 
8766
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
8767
      enable_cache=$module_default
 
8768
      _apmod_extra_msg=" ($module_selection)"
 
8769
    elif test "$enable_cache" != "yes"; then
 
8770
      enable_cache=no
 
8771
    fi
 
8772
  elif test "$enable_cache" = "maybe-all"; then
 
8773
    if test "$module_selection" = "all"; then
 
8774
      enable_cache=$module_default
 
8775
      _apmod_extra_msg=" (all)"
 
8776
    else
 
8777
      enable_cache=no
 
8778
    fi
 
8779
  fi
 
8780
  if test "$enable_cache" != "no"; then
 
8781
            :
 
8782
  fi
 
8783
  echo "$as_me:$LINENO: result: $enable_cache$_apmod_extra_msg" >&5
 
8784
echo "${ECHO_T}$enable_cache$_apmod_extra_msg" >&6
 
8785
  if test "$enable_cache" != "no"; then
 
8786
    case "$enable_cache" in
 
8787
    shared*)
 
8788
      enable_cache=`echo $enable_cache|sed 's/shared,*//'`
 
8789
      sharedobjs=yes
 
8790
      shared=yes
 
8791
      DSO_MODULES="$DSO_MODULES cache"
 
8792
      ;;
 
8793
    *)
 
8794
      MODLIST="$MODLIST cache"
 
8795
      if test "cache" = "so"; then
 
8796
          sharedobjs=yes
 
8797
      fi
 
8798
      shared="";;
 
8799
    esac
 
8800
 
 
8801
 
 
8802
  if test -z "$cache_objs"; then
 
8803
    objects="mod_cache.lo"
 
8804
  else
 
8805
    objects="$cache_objs"
 
8806
  fi
 
8807
 
 
8808
  if test -z "$module_standalone"; then
 
8809
    if test -z "$shared"; then
 
8810
      # The filename of a convenience library must have a "lib" prefix:
 
8811
      libname="libmod_cache.la"
 
8812
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
8813
      modpath_static="$modpath_static $libname"
 
8814
      cat >>$modpath_current/modules.mk<<EOF
 
8815
$libname: $objects
 
8816
        \$(MOD_LINK) $objects \$(MOD_CACHE_LDADD)
 
8817
EOF
 
8818
    else
 
8819
      apache_need_shared=yes
 
8820
      libname="mod_cache.la"
 
8821
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
8822
      modpath_shared="$modpath_shared $libname"
 
8823
      cat >>$modpath_current/modules.mk<<EOF
 
8824
$libname: $shobjects
 
8825
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CACHE_LDADD)
 
8826
EOF
 
8827
    fi
 
8828
  fi
 
8829
 
 
8830
 
 
8831
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CACHE_LDADD"
 
8832
 
 
8833
 
 
8834
 
 
8835
  fi
 
8836
 
 
8837
 
 
8838
  echo "$as_me:$LINENO: checking whether to enable mod_disk_cache" >&5
 
8839
echo $ECHO_N "checking whether to enable mod_disk_cache... $ECHO_C" >&6
 
8840
    # Check whether --enable-disk-cache or --disable-disk-cache was given.
 
8841
if test "${enable_disk_cache+set}" = set; then
 
8842
  enableval="$enable_disk_cache"
 
8843
 
 
8844
else
 
8845
  enable_disk_cache=no
 
8846
fi;
 
8847
    _apmod_extra_msg=""
 
8848
      if test "$module_selection" = "most" -a "$enable_disk_cache" = "most"; then
 
8849
    _apmod_error_fatal="no"
 
8850
  else
 
8851
    _apmod_error_fatal="yes"
 
8852
  fi
 
8853
  if test "$enable_disk_cache" = "static"; then
 
8854
    enable_disk_cache=yes
 
8855
  elif test "$enable_disk_cache" = "yes"; then
 
8856
    enable_disk_cache=$module_default
 
8857
    _apmod_extra_msg=" ($module_selection)"
 
8858
  elif test "$enable_disk_cache" = "most"; then
 
8859
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
8860
      enable_disk_cache=$module_default
 
8861
      _apmod_extra_msg=" ($module_selection)"
 
8862
    elif test "$enable_disk_cache" != "yes"; then
 
8863
      enable_disk_cache=no
 
8864
    fi
 
8865
  elif test "$enable_disk_cache" = "maybe-all"; then
 
8866
    if test "$module_selection" = "all"; then
 
8867
      enable_disk_cache=$module_default
 
8868
      _apmod_extra_msg=" (all)"
 
8869
    else
 
8870
      enable_disk_cache=no
 
8871
    fi
 
8872
  fi
 
8873
  if test "$enable_disk_cache" != "no"; then
 
8874
            :
 
8875
  fi
 
8876
  echo "$as_me:$LINENO: result: $enable_disk_cache$_apmod_extra_msg" >&5
 
8877
echo "${ECHO_T}$enable_disk_cache$_apmod_extra_msg" >&6
 
8878
  if test "$enable_disk_cache" != "no"; then
 
8879
    case "$enable_disk_cache" in
 
8880
    shared*)
 
8881
      enable_disk_cache=`echo $enable_disk_cache|sed 's/shared,*//'`
 
8882
      sharedobjs=yes
 
8883
      shared=yes
 
8884
      DSO_MODULES="$DSO_MODULES disk_cache"
 
8885
      ;;
 
8886
    *)
 
8887
      MODLIST="$MODLIST disk_cache"
 
8888
      if test "disk_cache" = "so"; then
 
8889
          sharedobjs=yes
 
8890
      fi
 
8891
      shared="";;
 
8892
    esac
 
8893
 
 
8894
 
 
8895
  if test -z ""; then
 
8896
    objects="mod_disk_cache.lo"
 
8897
  else
 
8898
    objects=""
 
8899
  fi
 
8900
 
 
8901
  if test -z "$module_standalone"; then
 
8902
    if test -z "$shared"; then
 
8903
      # The filename of a convenience library must have a "lib" prefix:
 
8904
      libname="libmod_disk_cache.la"
 
8905
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
8906
      modpath_static="$modpath_static $libname"
 
8907
      cat >>$modpath_current/modules.mk<<EOF
 
8908
$libname: $objects
 
8909
        \$(MOD_LINK) $objects \$(MOD_DISK_CACHE_LDADD)
 
8910
EOF
 
8911
    else
 
8912
      apache_need_shared=yes
 
8913
      libname="mod_disk_cache.la"
 
8914
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
8915
      modpath_shared="$modpath_shared $libname"
 
8916
      cat >>$modpath_current/modules.mk<<EOF
 
8917
$libname: $shobjects
 
8918
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_DISK_CACHE_LDADD)
 
8919
EOF
 
8920
    fi
 
8921
  fi
 
8922
 
 
8923
 
 
8924
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DISK_CACHE_LDADD"
 
8925
 
 
8926
 
 
8927
 
 
8928
  fi
 
8929
 
 
8930
 
 
8931
  echo "$as_me:$LINENO: checking whether to enable mod_mem_cache" >&5
 
8932
echo $ECHO_N "checking whether to enable mod_mem_cache... $ECHO_C" >&6
 
8933
    # Check whether --enable-mem-cache or --disable-mem-cache was given.
 
8934
if test "${enable_mem_cache+set}" = set; then
 
8935
  enableval="$enable_mem_cache"
 
8936
 
 
8937
else
 
8938
  enable_mem_cache=no
 
8939
fi;
 
8940
    _apmod_extra_msg=""
 
8941
      if test "$module_selection" = "most" -a "$enable_mem_cache" = "most"; then
 
8942
    _apmod_error_fatal="no"
 
8943
  else
 
8944
    _apmod_error_fatal="yes"
 
8945
  fi
 
8946
  if test "$enable_mem_cache" = "static"; then
 
8947
    enable_mem_cache=yes
 
8948
  elif test "$enable_mem_cache" = "yes"; then
 
8949
    enable_mem_cache=$module_default
 
8950
    _apmod_extra_msg=" ($module_selection)"
 
8951
  elif test "$enable_mem_cache" = "most"; then
 
8952
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
8953
      enable_mem_cache=$module_default
 
8954
      _apmod_extra_msg=" ($module_selection)"
 
8955
    elif test "$enable_mem_cache" != "yes"; then
 
8956
      enable_mem_cache=no
 
8957
    fi
 
8958
  elif test "$enable_mem_cache" = "maybe-all"; then
 
8959
    if test "$module_selection" = "all"; then
 
8960
      enable_mem_cache=$module_default
 
8961
      _apmod_extra_msg=" (all)"
 
8962
    else
 
8963
      enable_mem_cache=no
 
8964
    fi
 
8965
  fi
 
8966
  if test "$enable_mem_cache" != "no"; then
 
8967
            :
 
8968
  fi
 
8969
  echo "$as_me:$LINENO: result: $enable_mem_cache$_apmod_extra_msg" >&5
 
8970
echo "${ECHO_T}$enable_mem_cache$_apmod_extra_msg" >&6
 
8971
  if test "$enable_mem_cache" != "no"; then
 
8972
    case "$enable_mem_cache" in
 
8973
    shared*)
 
8974
      enable_mem_cache=`echo $enable_mem_cache|sed 's/shared,*//'`
 
8975
      sharedobjs=yes
 
8976
      shared=yes
 
8977
      DSO_MODULES="$DSO_MODULES mem_cache"
 
8978
      ;;
 
8979
    *)
 
8980
      MODLIST="$MODLIST mem_cache"
 
8981
      if test "mem_cache" = "so"; then
 
8982
          sharedobjs=yes
 
8983
      fi
 
8984
      shared="";;
 
8985
    esac
 
8986
 
 
8987
 
 
8988
  if test -z "$mem_cache_objs"; then
 
8989
    objects="mod_mem_cache.lo"
 
8990
  else
 
8991
    objects="$mem_cache_objs"
 
8992
  fi
 
8993
 
 
8994
  if test -z "$module_standalone"; then
 
8995
    if test -z "$shared"; then
 
8996
      # The filename of a convenience library must have a "lib" prefix:
 
8997
      libname="libmod_mem_cache.la"
 
8998
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
8999
      modpath_static="$modpath_static $libname"
 
9000
      cat >>$modpath_current/modules.mk<<EOF
 
9001
$libname: $objects
 
9002
        \$(MOD_LINK) $objects \$(MOD_MEM_CACHE_LDADD)
 
9003
EOF
 
9004
    else
 
9005
      apache_need_shared=yes
 
9006
      libname="mod_mem_cache.la"
 
9007
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
9008
      modpath_shared="$modpath_shared $libname"
 
9009
      cat >>$modpath_current/modules.mk<<EOF
 
9010
$libname: $shobjects
 
9011
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_MEM_CACHE_LDADD)
 
9012
EOF
 
9013
    fi
 
9014
  fi
 
9015
 
 
9016
 
 
9017
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_MEM_CACHE_LDADD"
 
9018
 
 
9019
 
 
9020
 
 
9021
  fi
 
9022
 
 
9023
 
 
9024
 
 
9025
  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
 
9026
  echo "static = $modpath_static" >> $modpath_current/modules.mk
 
9027
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
 
9028
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
 
9029
    MODULE_DIRS="$MODULE_DIRS $current_dir"
 
9030
  else
 
9031
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
 
9032
  fi
 
9033
 
 
9034
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
 
9035
 
 
9036
 
 
9037
 
 
9038
 
 
9039
 
 
9040
  current_dir=database
 
9041
  modpath_current=modules/database
 
9042
  modpath_static=
 
9043
  modpath_shared=
 
9044
  test -d database || $srcdir/build/mkdir.sh $modpath_current
 
9045
  > $modpath_current/modules.mk
 
9046
 
 
9047
 
 
9048
 
 
9049
  echo "$as_me:$LINENO: checking whether to enable mod_dbd" >&5
 
9050
echo $ECHO_N "checking whether to enable mod_dbd... $ECHO_C" >&6
 
9051
    # Check whether --enable-dbd or --disable-dbd was given.
 
9052
if test "${enable_dbd+set}" = set; then
 
9053
  enableval="$enable_dbd"
 
9054
 
 
9055
else
 
9056
  enable_dbd=most
 
9057
fi;
 
9058
    _apmod_extra_msg=""
 
9059
      if test "$module_selection" = "most" -a "$enable_dbd" = "most"; then
 
9060
    _apmod_error_fatal="no"
 
9061
  else
 
9062
    _apmod_error_fatal="yes"
 
9063
  fi
 
9064
  if test "$enable_dbd" = "static"; then
 
9065
    enable_dbd=yes
 
9066
  elif test "$enable_dbd" = "yes"; then
 
9067
    enable_dbd=$module_default
 
9068
    _apmod_extra_msg=" ($module_selection)"
 
9069
  elif test "$enable_dbd" = "most"; then
 
9070
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
9071
      enable_dbd=$module_default
 
9072
      _apmod_extra_msg=" ($module_selection)"
 
9073
    elif test "$enable_dbd" != "yes"; then
 
9074
      enable_dbd=no
 
9075
    fi
 
9076
  elif test "$enable_dbd" = "maybe-all"; then
 
9077
    if test "$module_selection" = "all"; then
 
9078
      enable_dbd=$module_default
 
9079
      _apmod_extra_msg=" (all)"
 
9080
    else
 
9081
      enable_dbd=no
 
9082
    fi
 
9083
  fi
 
9084
  if test "$enable_dbd" != "no"; then
 
9085
            :
 
9086
  fi
 
9087
  echo "$as_me:$LINENO: result: $enable_dbd$_apmod_extra_msg" >&5
 
9088
echo "${ECHO_T}$enable_dbd$_apmod_extra_msg" >&6
 
9089
  if test "$enable_dbd" != "no"; then
 
9090
    case "$enable_dbd" in
 
9091
    shared*)
 
9092
      enable_dbd=`echo $enable_dbd|sed 's/shared,*//'`
 
9093
      sharedobjs=yes
 
9094
      shared=yes
 
9095
      DSO_MODULES="$DSO_MODULES dbd"
 
9096
      ;;
 
9097
    *)
 
9098
      MODLIST="$MODLIST dbd"
 
9099
      if test "dbd" = "so"; then
 
9100
          sharedobjs=yes
 
9101
      fi
 
9102
      shared="";;
 
9103
    esac
 
9104
 
 
9105
 
 
9106
  if test -z ""; then
 
9107
    objects="mod_dbd.lo"
 
9108
  else
 
9109
    objects=""
 
9110
  fi
 
9111
 
 
9112
  if test -z "$module_standalone"; then
 
9113
    if test -z "$shared"; then
 
9114
      # The filename of a convenience library must have a "lib" prefix:
 
9115
      libname="libmod_dbd.la"
 
9116
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
9117
      modpath_static="$modpath_static $libname"
 
9118
      cat >>$modpath_current/modules.mk<<EOF
 
9119
$libname: $objects
 
9120
        \$(MOD_LINK) $objects \$(MOD_DBD_LDADD)
 
9121
EOF
 
9122
    else
 
9123
      apache_need_shared=yes
 
9124
      libname="mod_dbd.la"
 
9125
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
9126
      modpath_shared="$modpath_shared $libname"
 
9127
      cat >>$modpath_current/modules.mk<<EOF
 
9128
$libname: $shobjects
 
9129
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_DBD_LDADD)
 
9130
EOF
 
9131
    fi
 
9132
  fi
 
9133
 
 
9134
 
 
9135
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DBD_LDADD"
 
9136
 
 
9137
 
 
9138
 
 
9139
  fi
 
9140
 
 
9141
 
 
9142
 
 
9143
  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
 
9144
  echo "static = $modpath_static" >> $modpath_current/modules.mk
 
9145
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
 
9146
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
 
9147
    MODULE_DIRS="$MODULE_DIRS $current_dir"
 
9148
  else
 
9149
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
 
9150
  fi
 
9151
 
 
9152
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
 
9153
 
 
9154
 
 
9155
 
 
9156
 
 
9157
 
 
9158
  current_dir=debug
 
9159
  modpath_current=modules/debug
 
9160
  modpath_static=
 
9161
  modpath_shared=
 
9162
  test -d debug || $srcdir/build/mkdir.sh $modpath_current
 
9163
  > $modpath_current/modules.mk
 
9164
 
 
9165
 
 
9166
 
 
9167
  echo "$as_me:$LINENO: checking whether to enable mod_bucketeer" >&5
 
9168
echo $ECHO_N "checking whether to enable mod_bucketeer... $ECHO_C" >&6
 
9169
    # Check whether --enable-bucketeer or --disable-bucketeer was given.
 
9170
if test "${enable_bucketeer+set}" = set; then
 
9171
  enableval="$enable_bucketeer"
 
9172
 
 
9173
else
 
9174
  enable_bucketeer=no
 
9175
fi;
 
9176
    _apmod_extra_msg=""
 
9177
      if test "$module_selection" = "most" -a "$enable_bucketeer" = "most"; then
 
9178
    _apmod_error_fatal="no"
 
9179
  else
 
9180
    _apmod_error_fatal="yes"
 
9181
  fi
 
9182
  if test "$enable_bucketeer" = "static"; then
 
9183
    enable_bucketeer=yes
 
9184
  elif test "$enable_bucketeer" = "yes"; then
 
9185
    enable_bucketeer=$module_default
 
9186
    _apmod_extra_msg=" ($module_selection)"
 
9187
  elif test "$enable_bucketeer" = "most"; then
 
9188
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
9189
      enable_bucketeer=$module_default
 
9190
      _apmod_extra_msg=" ($module_selection)"
 
9191
    elif test "$enable_bucketeer" != "yes"; then
 
9192
      enable_bucketeer=no
 
9193
    fi
 
9194
  elif test "$enable_bucketeer" = "maybe-all"; then
 
9195
    if test "$module_selection" = "all"; then
 
9196
      enable_bucketeer=$module_default
 
9197
      _apmod_extra_msg=" (all)"
 
9198
    else
 
9199
      enable_bucketeer=no
 
9200
    fi
 
9201
  fi
 
9202
  if test "$enable_bucketeer" != "no"; then
 
9203
            :
 
9204
  fi
 
9205
  echo "$as_me:$LINENO: result: $enable_bucketeer$_apmod_extra_msg" >&5
 
9206
echo "${ECHO_T}$enable_bucketeer$_apmod_extra_msg" >&6
 
9207
  if test "$enable_bucketeer" != "no"; then
 
9208
    case "$enable_bucketeer" in
 
9209
    shared*)
 
9210
      enable_bucketeer=`echo $enable_bucketeer|sed 's/shared,*//'`
 
9211
      sharedobjs=yes
 
9212
      shared=yes
 
9213
      DSO_MODULES="$DSO_MODULES bucketeer"
 
9214
      ;;
 
9215
    *)
 
9216
      MODLIST="$MODLIST bucketeer"
 
9217
      if test "bucketeer" = "so"; then
 
9218
          sharedobjs=yes
 
9219
      fi
 
9220
      shared="";;
 
9221
    esac
 
9222
 
 
9223
 
 
9224
  if test -z ""; then
 
9225
    objects="mod_bucketeer.lo"
 
9226
  else
 
9227
    objects=""
 
9228
  fi
 
9229
 
 
9230
  if test -z "$module_standalone"; then
 
9231
    if test -z "$shared"; then
 
9232
      # The filename of a convenience library must have a "lib" prefix:
 
9233
      libname="libmod_bucketeer.la"
 
9234
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
9235
      modpath_static="$modpath_static $libname"
 
9236
      cat >>$modpath_current/modules.mk<<EOF
 
9237
$libname: $objects
 
9238
        \$(MOD_LINK) $objects \$(MOD_BUCKETEER_LDADD)
 
9239
EOF
 
9240
    else
 
9241
      apache_need_shared=yes
 
9242
      libname="mod_bucketeer.la"
 
9243
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
9244
      modpath_shared="$modpath_shared $libname"
 
9245
      cat >>$modpath_current/modules.mk<<EOF
 
9246
$libname: $shobjects
 
9247
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_BUCKETEER_LDADD)
 
9248
EOF
 
9249
    fi
 
9250
  fi
 
9251
 
 
9252
 
 
9253
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_BUCKETEER_LDADD"
 
9254
 
 
9255
 
 
9256
 
 
9257
  fi
 
9258
 
 
9259
 
 
9260
  echo "$as_me:$LINENO: checking whether to enable mod_dumpio" >&5
 
9261
echo $ECHO_N "checking whether to enable mod_dumpio... $ECHO_C" >&6
 
9262
    # Check whether --enable-dumpio or --disable-dumpio was given.
 
9263
if test "${enable_dumpio+set}" = set; then
 
9264
  enableval="$enable_dumpio"
 
9265
 
 
9266
else
 
9267
  enable_dumpio=most
 
9268
fi;
 
9269
    _apmod_extra_msg=""
 
9270
      if test "$module_selection" = "most" -a "$enable_dumpio" = "most"; then
 
9271
    _apmod_error_fatal="no"
 
9272
  else
 
9273
    _apmod_error_fatal="yes"
 
9274
  fi
 
9275
  if test "$enable_dumpio" = "static"; then
 
9276
    enable_dumpio=yes
 
9277
  elif test "$enable_dumpio" = "yes"; then
 
9278
    enable_dumpio=$module_default
 
9279
    _apmod_extra_msg=" ($module_selection)"
 
9280
  elif test "$enable_dumpio" = "most"; then
 
9281
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
9282
      enable_dumpio=$module_default
 
9283
      _apmod_extra_msg=" ($module_selection)"
 
9284
    elif test "$enable_dumpio" != "yes"; then
 
9285
      enable_dumpio=no
 
9286
    fi
 
9287
  elif test "$enable_dumpio" = "maybe-all"; then
 
9288
    if test "$module_selection" = "all"; then
 
9289
      enable_dumpio=$module_default
 
9290
      _apmod_extra_msg=" (all)"
 
9291
    else
 
9292
      enable_dumpio=no
 
9293
    fi
 
9294
  fi
 
9295
  if test "$enable_dumpio" != "no"; then
 
9296
            :
 
9297
  fi
 
9298
  echo "$as_me:$LINENO: result: $enable_dumpio$_apmod_extra_msg" >&5
 
9299
echo "${ECHO_T}$enable_dumpio$_apmod_extra_msg" >&6
 
9300
  if test "$enable_dumpio" != "no"; then
 
9301
    case "$enable_dumpio" in
 
9302
    shared*)
 
9303
      enable_dumpio=`echo $enable_dumpio|sed 's/shared,*//'`
 
9304
      sharedobjs=yes
 
9305
      shared=yes
 
9306
      DSO_MODULES="$DSO_MODULES dumpio"
 
9307
      ;;
 
9308
    *)
 
9309
      MODLIST="$MODLIST dumpio"
 
9310
      if test "dumpio" = "so"; then
 
9311
          sharedobjs=yes
 
9312
      fi
 
9313
      shared="";;
 
9314
    esac
 
9315
 
 
9316
 
 
9317
  if test -z ""; then
 
9318
    objects="mod_dumpio.lo"
 
9319
  else
 
9320
    objects=""
 
9321
  fi
 
9322
 
 
9323
  if test -z "$module_standalone"; then
 
9324
    if test -z "$shared"; then
 
9325
      # The filename of a convenience library must have a "lib" prefix:
 
9326
      libname="libmod_dumpio.la"
 
9327
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
9328
      modpath_static="$modpath_static $libname"
 
9329
      cat >>$modpath_current/modules.mk<<EOF
 
9330
$libname: $objects
 
9331
        \$(MOD_LINK) $objects \$(MOD_DUMPIO_LDADD)
 
9332
EOF
 
9333
    else
 
9334
      apache_need_shared=yes
 
9335
      libname="mod_dumpio.la"
 
9336
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
9337
      modpath_shared="$modpath_shared $libname"
 
9338
      cat >>$modpath_current/modules.mk<<EOF
 
9339
$libname: $shobjects
 
9340
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_DUMPIO_LDADD)
 
9341
EOF
 
9342
    fi
 
9343
  fi
 
9344
 
 
9345
 
 
9346
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DUMPIO_LDADD"
 
9347
 
 
9348
 
 
9349
 
 
9350
  fi
 
9351
 
 
9352
 
 
9353
 
 
9354
  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
 
9355
  echo "static = $modpath_static" >> $modpath_current/modules.mk
 
9356
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
 
9357
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
 
9358
    MODULE_DIRS="$MODULE_DIRS $current_dir"
 
9359
  else
 
9360
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
 
9361
  fi
 
9362
 
 
9363
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
 
9364
 
 
9365
 
 
9366
 
 
9367
 
 
9368
 
 
9369
 
 
9370
  current_dir=echo
 
9371
  modpath_current=modules/echo
 
9372
  modpath_static=
 
9373
  modpath_shared=
 
9374
  test -d echo || $srcdir/build/mkdir.sh $modpath_current
 
9375
  > $modpath_current/modules.mk
 
9376
 
 
9377
 
 
9378
 
 
9379
  echo "$as_me:$LINENO: checking whether to enable mod_echo" >&5
 
9380
echo $ECHO_N "checking whether to enable mod_echo... $ECHO_C" >&6
 
9381
    # Check whether --enable-echo or --disable-echo was given.
 
9382
if test "${enable_echo+set}" = set; then
 
9383
  enableval="$enable_echo"
 
9384
 
 
9385
else
 
9386
  enable_echo=no
 
9387
fi;
 
9388
    _apmod_extra_msg=""
 
9389
      if test "$module_selection" = "most" -a "$enable_echo" = "most"; then
 
9390
    _apmod_error_fatal="no"
 
9391
  else
 
9392
    _apmod_error_fatal="yes"
 
9393
  fi
 
9394
  if test "$enable_echo" = "static"; then
 
9395
    enable_echo=yes
 
9396
  elif test "$enable_echo" = "yes"; then
 
9397
    enable_echo=$module_default
 
9398
    _apmod_extra_msg=" ($module_selection)"
 
9399
  elif test "$enable_echo" = "most"; then
 
9400
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
9401
      enable_echo=$module_default
 
9402
      _apmod_extra_msg=" ($module_selection)"
 
9403
    elif test "$enable_echo" != "yes"; then
 
9404
      enable_echo=no
 
9405
    fi
 
9406
  elif test "$enable_echo" = "maybe-all"; then
 
9407
    if test "$module_selection" = "all"; then
 
9408
      enable_echo=$module_default
 
9409
      _apmod_extra_msg=" (all)"
 
9410
    else
 
9411
      enable_echo=no
 
9412
    fi
 
9413
  fi
 
9414
  if test "$enable_echo" != "no"; then
 
9415
            :
 
9416
  fi
 
9417
  echo "$as_me:$LINENO: result: $enable_echo$_apmod_extra_msg" >&5
 
9418
echo "${ECHO_T}$enable_echo$_apmod_extra_msg" >&6
 
9419
  if test "$enable_echo" != "no"; then
 
9420
    case "$enable_echo" in
 
9421
    shared*)
 
9422
      enable_echo=`echo $enable_echo|sed 's/shared,*//'`
 
9423
      sharedobjs=yes
 
9424
      shared=yes
 
9425
      DSO_MODULES="$DSO_MODULES echo"
 
9426
      ;;
 
9427
    *)
 
9428
      MODLIST="$MODLIST echo"
 
9429
      if test "echo" = "so"; then
 
9430
          sharedobjs=yes
 
9431
      fi
 
9432
      shared="";;
 
9433
    esac
 
9434
 
 
9435
 
 
9436
  if test -z ""; then
 
9437
    objects="mod_echo.lo"
 
9438
  else
 
9439
    objects=""
 
9440
  fi
 
9441
 
 
9442
  if test -z "$module_standalone"; then
 
9443
    if test -z "$shared"; then
 
9444
      # The filename of a convenience library must have a "lib" prefix:
 
9445
      libname="libmod_echo.la"
 
9446
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
9447
      modpath_static="$modpath_static $libname"
 
9448
      cat >>$modpath_current/modules.mk<<EOF
 
9449
$libname: $objects
 
9450
        \$(MOD_LINK) $objects \$(MOD_ECHO_LDADD)
 
9451
EOF
 
9452
    else
 
9453
      apache_need_shared=yes
 
9454
      libname="mod_echo.la"
 
9455
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
9456
      modpath_shared="$modpath_shared $libname"
 
9457
      cat >>$modpath_current/modules.mk<<EOF
 
9458
$libname: $shobjects
 
9459
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_ECHO_LDADD)
 
9460
EOF
 
9461
    fi
 
9462
  fi
 
9463
 
 
9464
 
 
9465
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ECHO_LDADD"
 
9466
 
 
9467
 
 
9468
 
 
9469
  fi
 
9470
 
 
9471
 
 
9472
 
 
9473
  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
 
9474
  echo "static = $modpath_static" >> $modpath_current/modules.mk
 
9475
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
 
9476
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
 
9477
    MODULE_DIRS="$MODULE_DIRS $current_dir"
 
9478
  else
 
9479
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
 
9480
  fi
 
9481
 
 
9482
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
 
9483
 
 
9484
 
 
9485
 
 
9486
 
 
9487
 
 
9488
  current_dir=experimental
 
9489
  modpath_current=modules/experimental
 
9490
  modpath_static=
 
9491
  modpath_shared=
 
9492
  test -d experimental || $srcdir/build/mkdir.sh $modpath_current
 
9493
  > $modpath_current/modules.mk
 
9494
 
 
9495
 
 
9496
 
 
9497
  echo "$as_me:$LINENO: checking whether to enable mod_example" >&5
 
9498
echo $ECHO_N "checking whether to enable mod_example... $ECHO_C" >&6
 
9499
    # Check whether --enable-example or --disable-example was given.
 
9500
if test "${enable_example+set}" = set; then
 
9501
  enableval="$enable_example"
 
9502
 
 
9503
else
 
9504
  enable_example=no
 
9505
fi;
 
9506
    _apmod_extra_msg=""
 
9507
      if test "$module_selection" = "most" -a "$enable_example" = "most"; then
 
9508
    _apmod_error_fatal="no"
 
9509
  else
 
9510
    _apmod_error_fatal="yes"
 
9511
  fi
 
9512
  if test "$enable_example" = "static"; then
 
9513
    enable_example=yes
 
9514
  elif test "$enable_example" = "yes"; then
 
9515
    enable_example=$module_default
 
9516
    _apmod_extra_msg=" ($module_selection)"
 
9517
  elif test "$enable_example" = "most"; then
 
9518
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
9519
      enable_example=$module_default
 
9520
      _apmod_extra_msg=" ($module_selection)"
 
9521
    elif test "$enable_example" != "yes"; then
 
9522
      enable_example=no
 
9523
    fi
 
9524
  elif test "$enable_example" = "maybe-all"; then
 
9525
    if test "$module_selection" = "all"; then
 
9526
      enable_example=$module_default
 
9527
      _apmod_extra_msg=" (all)"
 
9528
    else
 
9529
      enable_example=no
 
9530
    fi
 
9531
  fi
 
9532
  if test "$enable_example" != "no"; then
 
9533
            :
 
9534
  fi
 
9535
  echo "$as_me:$LINENO: result: $enable_example$_apmod_extra_msg" >&5
 
9536
echo "${ECHO_T}$enable_example$_apmod_extra_msg" >&6
 
9537
  if test "$enable_example" != "no"; then
 
9538
    case "$enable_example" in
 
9539
    shared*)
 
9540
      enable_example=`echo $enable_example|sed 's/shared,*//'`
 
9541
      sharedobjs=yes
 
9542
      shared=yes
 
9543
      DSO_MODULES="$DSO_MODULES example"
 
9544
      ;;
 
9545
    *)
 
9546
      MODLIST="$MODLIST example"
 
9547
      if test "example" = "so"; then
 
9548
          sharedobjs=yes
 
9549
      fi
 
9550
      shared="";;
 
9551
    esac
 
9552
 
 
9553
 
 
9554
  if test -z ""; then
 
9555
    objects="mod_example.lo"
 
9556
  else
 
9557
    objects=""
 
9558
  fi
 
9559
 
 
9560
  if test -z "$module_standalone"; then
 
9561
    if test -z "$shared"; then
 
9562
      # The filename of a convenience library must have a "lib" prefix:
 
9563
      libname="libmod_example.la"
 
9564
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
9565
      modpath_static="$modpath_static $libname"
 
9566
      cat >>$modpath_current/modules.mk<<EOF
 
9567
$libname: $objects
 
9568
        \$(MOD_LINK) $objects \$(MOD_EXAMPLE_LDADD)
 
9569
EOF
 
9570
    else
 
9571
      apache_need_shared=yes
 
9572
      libname="mod_example.la"
 
9573
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
9574
      modpath_shared="$modpath_shared $libname"
 
9575
      cat >>$modpath_current/modules.mk<<EOF
 
9576
$libname: $shobjects
 
9577
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_EXAMPLE_LDADD)
 
9578
EOF
 
9579
    fi
 
9580
  fi
 
9581
 
 
9582
 
 
9583
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_EXAMPLE_LDADD"
 
9584
 
 
9585
 
 
9586
 
 
9587
  fi
 
9588
 
 
9589
 
 
9590
  echo "$as_me:$LINENO: checking whether to enable mod_case_filter" >&5
 
9591
echo $ECHO_N "checking whether to enable mod_case_filter... $ECHO_C" >&6
 
9592
    # Check whether --enable-case-filter or --disable-case-filter was given.
 
9593
if test "${enable_case_filter+set}" = set; then
 
9594
  enableval="$enable_case_filter"
 
9595
 
 
9596
else
 
9597
  enable_case_filter=no
 
9598
fi;
 
9599
    _apmod_extra_msg=""
 
9600
      if test "$module_selection" = "most" -a "$enable_case_filter" = "most"; then
 
9601
    _apmod_error_fatal="no"
 
9602
  else
 
9603
    _apmod_error_fatal="yes"
 
9604
  fi
 
9605
  if test "$enable_case_filter" = "static"; then
 
9606
    enable_case_filter=yes
 
9607
  elif test "$enable_case_filter" = "yes"; then
 
9608
    enable_case_filter=$module_default
 
9609
    _apmod_extra_msg=" ($module_selection)"
 
9610
  elif test "$enable_case_filter" = "most"; then
 
9611
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
9612
      enable_case_filter=$module_default
 
9613
      _apmod_extra_msg=" ($module_selection)"
 
9614
    elif test "$enable_case_filter" != "yes"; then
 
9615
      enable_case_filter=no
 
9616
    fi
 
9617
  elif test "$enable_case_filter" = "maybe-all"; then
 
9618
    if test "$module_selection" = "all"; then
 
9619
      enable_case_filter=$module_default
 
9620
      _apmod_extra_msg=" (all)"
 
9621
    else
 
9622
      enable_case_filter=no
 
9623
    fi
 
9624
  fi
 
9625
  if test "$enable_case_filter" != "no"; then
 
9626
            :
 
9627
  fi
 
9628
  echo "$as_me:$LINENO: result: $enable_case_filter$_apmod_extra_msg" >&5
 
9629
echo "${ECHO_T}$enable_case_filter$_apmod_extra_msg" >&6
 
9630
  if test "$enable_case_filter" != "no"; then
 
9631
    case "$enable_case_filter" in
 
9632
    shared*)
 
9633
      enable_case_filter=`echo $enable_case_filter|sed 's/shared,*//'`
 
9634
      sharedobjs=yes
 
9635
      shared=yes
 
9636
      DSO_MODULES="$DSO_MODULES case_filter"
 
9637
      ;;
 
9638
    *)
 
9639
      MODLIST="$MODLIST case_filter"
 
9640
      if test "case_filter" = "so"; then
 
9641
          sharedobjs=yes
 
9642
      fi
 
9643
      shared="";;
 
9644
    esac
 
9645
 
 
9646
 
 
9647
  if test -z ""; then
 
9648
    objects="mod_case_filter.lo"
 
9649
  else
 
9650
    objects=""
 
9651
  fi
 
9652
 
 
9653
  if test -z "$module_standalone"; then
 
9654
    if test -z "$shared"; then
 
9655
      # The filename of a convenience library must have a "lib" prefix:
 
9656
      libname="libmod_case_filter.la"
 
9657
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
9658
      modpath_static="$modpath_static $libname"
 
9659
      cat >>$modpath_current/modules.mk<<EOF
 
9660
$libname: $objects
 
9661
        \$(MOD_LINK) $objects \$(MOD_CASE_FILTER_LDADD)
 
9662
EOF
 
9663
    else
 
9664
      apache_need_shared=yes
 
9665
      libname="mod_case_filter.la"
 
9666
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
9667
      modpath_shared="$modpath_shared $libname"
 
9668
      cat >>$modpath_current/modules.mk<<EOF
 
9669
$libname: $shobjects
 
9670
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CASE_FILTER_LDADD)
 
9671
EOF
 
9672
    fi
 
9673
  fi
 
9674
 
 
9675
 
 
9676
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CASE_FILTER_LDADD"
 
9677
 
 
9678
 
 
9679
 
 
9680
  fi
 
9681
 
 
9682
 
 
9683
  echo "$as_me:$LINENO: checking whether to enable mod_case_filter_in" >&5
 
9684
echo $ECHO_N "checking whether to enable mod_case_filter_in... $ECHO_C" >&6
 
9685
    # Check whether --enable-case-filter-in or --disable-case-filter-in was given.
 
9686
if test "${enable_case_filter_in+set}" = set; then
 
9687
  enableval="$enable_case_filter_in"
 
9688
 
 
9689
else
 
9690
  enable_case_filter_in=no
 
9691
fi;
 
9692
    _apmod_extra_msg=""
 
9693
      if test "$module_selection" = "most" -a "$enable_case_filter_in" = "most"; then
 
9694
    _apmod_error_fatal="no"
 
9695
  else
 
9696
    _apmod_error_fatal="yes"
 
9697
  fi
 
9698
  if test "$enable_case_filter_in" = "static"; then
 
9699
    enable_case_filter_in=yes
 
9700
  elif test "$enable_case_filter_in" = "yes"; then
 
9701
    enable_case_filter_in=$module_default
 
9702
    _apmod_extra_msg=" ($module_selection)"
 
9703
  elif test "$enable_case_filter_in" = "most"; then
 
9704
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
9705
      enable_case_filter_in=$module_default
 
9706
      _apmod_extra_msg=" ($module_selection)"
 
9707
    elif test "$enable_case_filter_in" != "yes"; then
 
9708
      enable_case_filter_in=no
 
9709
    fi
 
9710
  elif test "$enable_case_filter_in" = "maybe-all"; then
 
9711
    if test "$module_selection" = "all"; then
 
9712
      enable_case_filter_in=$module_default
 
9713
      _apmod_extra_msg=" (all)"
 
9714
    else
 
9715
      enable_case_filter_in=no
 
9716
    fi
 
9717
  fi
 
9718
  if test "$enable_case_filter_in" != "no"; then
 
9719
            :
 
9720
  fi
 
9721
  echo "$as_me:$LINENO: result: $enable_case_filter_in$_apmod_extra_msg" >&5
 
9722
echo "${ECHO_T}$enable_case_filter_in$_apmod_extra_msg" >&6
 
9723
  if test "$enable_case_filter_in" != "no"; then
 
9724
    case "$enable_case_filter_in" in
 
9725
    shared*)
 
9726
      enable_case_filter_in=`echo $enable_case_filter_in|sed 's/shared,*//'`
 
9727
      sharedobjs=yes
 
9728
      shared=yes
 
9729
      DSO_MODULES="$DSO_MODULES case_filter_in"
 
9730
      ;;
 
9731
    *)
 
9732
      MODLIST="$MODLIST case_filter_in"
 
9733
      if test "case_filter_in" = "so"; then
 
9734
          sharedobjs=yes
 
9735
      fi
 
9736
      shared="";;
 
9737
    esac
 
9738
 
 
9739
 
 
9740
  if test -z ""; then
 
9741
    objects="mod_case_filter_in.lo"
 
9742
  else
 
9743
    objects=""
 
9744
  fi
 
9745
 
 
9746
  if test -z "$module_standalone"; then
 
9747
    if test -z "$shared"; then
 
9748
      # The filename of a convenience library must have a "lib" prefix:
 
9749
      libname="libmod_case_filter_in.la"
 
9750
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
9751
      modpath_static="$modpath_static $libname"
 
9752
      cat >>$modpath_current/modules.mk<<EOF
 
9753
$libname: $objects
 
9754
        \$(MOD_LINK) $objects \$(MOD_CASE_FILTER_IN_LDADD)
 
9755
EOF
 
9756
    else
 
9757
      apache_need_shared=yes
 
9758
      libname="mod_case_filter_in.la"
 
9759
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
9760
      modpath_shared="$modpath_shared $libname"
 
9761
      cat >>$modpath_current/modules.mk<<EOF
 
9762
$libname: $shobjects
 
9763
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CASE_FILTER_IN_LDADD)
 
9764
EOF
 
9765
    fi
 
9766
  fi
 
9767
 
 
9768
 
 
9769
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CASE_FILTER_IN_LDADD"
 
9770
 
 
9771
 
 
9772
 
 
9773
  fi
 
9774
 
 
9775
 
 
9776
 
 
9777
  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
 
9778
  echo "static = $modpath_static" >> $modpath_current/modules.mk
 
9779
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
 
9780
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
 
9781
    MODULE_DIRS="$MODULE_DIRS $current_dir"
 
9782
  else
 
9783
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
 
9784
  fi
 
9785
 
 
9786
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
 
9787
 
 
9788
 
 
9789
 
 
9790
 
 
9791
 
 
9792
 
 
9793
  current_dir=filters
 
9794
  modpath_current=modules/filters
 
9795
  modpath_static=
 
9796
  modpath_shared=
 
9797
  test -d filters || $srcdir/build/mkdir.sh $modpath_current
 
9798
  > $modpath_current/modules.mk
 
9799
 
 
9800
 
 
9801
 
 
9802
  echo "$as_me:$LINENO: checking whether to enable mod_ext_filter" >&5
 
9803
echo $ECHO_N "checking whether to enable mod_ext_filter... $ECHO_C" >&6
 
9804
    # Check whether --enable-ext-filter or --disable-ext-filter was given.
 
9805
if test "${enable_ext_filter+set}" = set; then
 
9806
  enableval="$enable_ext_filter"
 
9807
 
 
9808
else
 
9809
  enable_ext_filter=most
 
9810
fi;
 
9811
    _apmod_extra_msg=""
 
9812
      if test "$module_selection" = "most" -a "$enable_ext_filter" = "most"; then
 
9813
    _apmod_error_fatal="no"
 
9814
  else
 
9815
    _apmod_error_fatal="yes"
 
9816
  fi
 
9817
  if test "$enable_ext_filter" = "static"; then
 
9818
    enable_ext_filter=yes
 
9819
  elif test "$enable_ext_filter" = "yes"; then
 
9820
    enable_ext_filter=$module_default
 
9821
    _apmod_extra_msg=" ($module_selection)"
 
9822
  elif test "$enable_ext_filter" = "most"; then
 
9823
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
9824
      enable_ext_filter=$module_default
 
9825
      _apmod_extra_msg=" ($module_selection)"
 
9826
    elif test "$enable_ext_filter" != "yes"; then
 
9827
      enable_ext_filter=no
 
9828
    fi
 
9829
  elif test "$enable_ext_filter" = "maybe-all"; then
 
9830
    if test "$module_selection" = "all"; then
 
9831
      enable_ext_filter=$module_default
 
9832
      _apmod_extra_msg=" (all)"
 
9833
    else
 
9834
      enable_ext_filter=no
 
9835
    fi
 
9836
  fi
 
9837
  if test "$enable_ext_filter" != "no"; then
 
9838
            :
 
9839
  fi
 
9840
  echo "$as_me:$LINENO: result: $enable_ext_filter$_apmod_extra_msg" >&5
 
9841
echo "${ECHO_T}$enable_ext_filter$_apmod_extra_msg" >&6
 
9842
  if test "$enable_ext_filter" != "no"; then
 
9843
    case "$enable_ext_filter" in
 
9844
    shared*)
 
9845
      enable_ext_filter=`echo $enable_ext_filter|sed 's/shared,*//'`
 
9846
      sharedobjs=yes
 
9847
      shared=yes
 
9848
      DSO_MODULES="$DSO_MODULES ext_filter"
 
9849
      ;;
 
9850
    *)
 
9851
      MODLIST="$MODLIST ext_filter"
 
9852
      if test "ext_filter" = "so"; then
 
9853
          sharedobjs=yes
 
9854
      fi
 
9855
      shared="";;
 
9856
    esac
 
9857
 
 
9858
 
 
9859
  if test -z ""; then
 
9860
    objects="mod_ext_filter.lo"
 
9861
  else
 
9862
    objects=""
 
9863
  fi
 
9864
 
 
9865
  if test -z "$module_standalone"; then
 
9866
    if test -z "$shared"; then
 
9867
      # The filename of a convenience library must have a "lib" prefix:
 
9868
      libname="libmod_ext_filter.la"
 
9869
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
9870
      modpath_static="$modpath_static $libname"
 
9871
      cat >>$modpath_current/modules.mk<<EOF
 
9872
$libname: $objects
 
9873
        \$(MOD_LINK) $objects \$(MOD_EXT_FILTER_LDADD)
 
9874
EOF
 
9875
    else
 
9876
      apache_need_shared=yes
 
9877
      libname="mod_ext_filter.la"
 
9878
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
9879
      modpath_shared="$modpath_shared $libname"
 
9880
      cat >>$modpath_current/modules.mk<<EOF
 
9881
$libname: $shobjects
 
9882
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_EXT_FILTER_LDADD)
 
9883
EOF
 
9884
    fi
 
9885
  fi
 
9886
 
 
9887
 
 
9888
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_EXT_FILTER_LDADD"
 
9889
 
 
9890
 
 
9891
 
 
9892
  fi
 
9893
 
 
9894
 
 
9895
  echo "$as_me:$LINENO: checking whether to enable mod_include" >&5
 
9896
echo $ECHO_N "checking whether to enable mod_include... $ECHO_C" >&6
 
9897
    # Check whether --enable-include or --disable-include was given.
 
9898
if test "${enable_include+set}" = set; then
 
9899
  enableval="$enable_include"
 
9900
 
 
9901
else
 
9902
  enable_include=yes
 
9903
fi;
 
9904
    _apmod_extra_msg=""
 
9905
      if test "$module_selection" = "most" -a "$enable_include" = "most"; then
 
9906
    _apmod_error_fatal="no"
 
9907
  else
 
9908
    _apmod_error_fatal="yes"
 
9909
  fi
 
9910
  if test "$enable_include" = "static"; then
 
9911
    enable_include=yes
 
9912
  elif test "$enable_include" = "yes"; then
 
9913
    enable_include=$module_default
 
9914
    _apmod_extra_msg=" ($module_selection)"
 
9915
  elif test "$enable_include" = "most"; then
 
9916
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
9917
      enable_include=$module_default
 
9918
      _apmod_extra_msg=" ($module_selection)"
 
9919
    elif test "$enable_include" != "yes"; then
 
9920
      enable_include=no
 
9921
    fi
 
9922
  elif test "$enable_include" = "maybe-all"; then
 
9923
    if test "$module_selection" = "all"; then
 
9924
      enable_include=$module_default
 
9925
      _apmod_extra_msg=" (all)"
 
9926
    else
 
9927
      enable_include=no
 
9928
    fi
 
9929
  fi
 
9930
  if test "$enable_include" != "no"; then
 
9931
            :
 
9932
  fi
 
9933
  echo "$as_me:$LINENO: result: $enable_include$_apmod_extra_msg" >&5
 
9934
echo "${ECHO_T}$enable_include$_apmod_extra_msg" >&6
 
9935
  if test "$enable_include" != "no"; then
 
9936
    case "$enable_include" in
 
9937
    shared*)
 
9938
      enable_include=`echo $enable_include|sed 's/shared,*//'`
 
9939
      sharedobjs=yes
 
9940
      shared=yes
 
9941
      DSO_MODULES="$DSO_MODULES include"
 
9942
      ;;
 
9943
    *)
 
9944
      MODLIST="$MODLIST include"
 
9945
      if test "include" = "so"; then
 
9946
          sharedobjs=yes
 
9947
      fi
 
9948
      shared="";;
 
9949
    esac
 
9950
 
 
9951
 
 
9952
  if test -z ""; then
 
9953
    objects="mod_include.lo"
 
9954
  else
 
9955
    objects=""
 
9956
  fi
 
9957
 
 
9958
  if test -z "$module_standalone"; then
 
9959
    if test -z "$shared"; then
 
9960
      # The filename of a convenience library must have a "lib" prefix:
 
9961
      libname="libmod_include.la"
 
9962
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
9963
      modpath_static="$modpath_static $libname"
 
9964
      cat >>$modpath_current/modules.mk<<EOF
 
9965
$libname: $objects
 
9966
        \$(MOD_LINK) $objects \$(MOD_INCLUDE_LDADD)
 
9967
EOF
 
9968
    else
 
9969
      apache_need_shared=yes
 
9970
      libname="mod_include.la"
 
9971
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
9972
      modpath_shared="$modpath_shared $libname"
 
9973
      cat >>$modpath_current/modules.mk<<EOF
 
9974
$libname: $shobjects
 
9975
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_INCLUDE_LDADD)
 
9976
EOF
 
9977
    fi
 
9978
  fi
 
9979
 
 
9980
 
 
9981
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_INCLUDE_LDADD"
 
9982
 
 
9983
 
 
9984
 
 
9985
  fi
 
9986
 
 
9987
 
 
9988
  echo "$as_me:$LINENO: checking whether to enable mod_filter" >&5
 
9989
echo $ECHO_N "checking whether to enable mod_filter... $ECHO_C" >&6
 
9990
    # Check whether --enable-filter or --disable-filter was given.
 
9991
if test "${enable_filter+set}" = set; then
 
9992
  enableval="$enable_filter"
 
9993
 
 
9994
else
 
9995
  enable_filter=yes
 
9996
fi;
 
9997
    _apmod_extra_msg=""
 
9998
      if test "$module_selection" = "most" -a "$enable_filter" = "most"; then
 
9999
    _apmod_error_fatal="no"
 
10000
  else
 
10001
    _apmod_error_fatal="yes"
 
10002
  fi
 
10003
  if test "$enable_filter" = "static"; then
 
10004
    enable_filter=yes
 
10005
  elif test "$enable_filter" = "yes"; then
 
10006
    enable_filter=$module_default
 
10007
    _apmod_extra_msg=" ($module_selection)"
 
10008
  elif test "$enable_filter" = "most"; then
 
10009
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
10010
      enable_filter=$module_default
 
10011
      _apmod_extra_msg=" ($module_selection)"
 
10012
    elif test "$enable_filter" != "yes"; then
 
10013
      enable_filter=no
 
10014
    fi
 
10015
  elif test "$enable_filter" = "maybe-all"; then
 
10016
    if test "$module_selection" = "all"; then
 
10017
      enable_filter=$module_default
 
10018
      _apmod_extra_msg=" (all)"
 
10019
    else
 
10020
      enable_filter=no
 
10021
    fi
 
10022
  fi
 
10023
  if test "$enable_filter" != "no"; then
 
10024
            :
 
10025
  fi
 
10026
  echo "$as_me:$LINENO: result: $enable_filter$_apmod_extra_msg" >&5
 
10027
echo "${ECHO_T}$enable_filter$_apmod_extra_msg" >&6
 
10028
  if test "$enable_filter" != "no"; then
 
10029
    case "$enable_filter" in
 
10030
    shared*)
 
10031
      enable_filter=`echo $enable_filter|sed 's/shared,*//'`
 
10032
      sharedobjs=yes
 
10033
      shared=yes
 
10034
      DSO_MODULES="$DSO_MODULES filter"
 
10035
      ;;
 
10036
    *)
 
10037
      MODLIST="$MODLIST filter"
 
10038
      if test "filter" = "so"; then
 
10039
          sharedobjs=yes
 
10040
      fi
 
10041
      shared="";;
 
10042
    esac
 
10043
 
 
10044
 
 
10045
  if test -z ""; then
 
10046
    objects="mod_filter.lo"
 
10047
  else
 
10048
    objects=""
 
10049
  fi
 
10050
 
 
10051
  if test -z "$module_standalone"; then
 
10052
    if test -z "$shared"; then
 
10053
      # The filename of a convenience library must have a "lib" prefix:
 
10054
      libname="libmod_filter.la"
 
10055
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
10056
      modpath_static="$modpath_static $libname"
 
10057
      cat >>$modpath_current/modules.mk<<EOF
 
10058
$libname: $objects
 
10059
        \$(MOD_LINK) $objects \$(MOD_FILTER_LDADD)
 
10060
EOF
 
10061
    else
 
10062
      apache_need_shared=yes
 
10063
      libname="mod_filter.la"
 
10064
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
10065
      modpath_shared="$modpath_shared $libname"
 
10066
      cat >>$modpath_current/modules.mk<<EOF
 
10067
$libname: $shobjects
 
10068
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_FILTER_LDADD)
 
10069
EOF
 
10070
    fi
 
10071
  fi
 
10072
 
 
10073
 
 
10074
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_FILTER_LDADD"
 
10075
 
 
10076
 
 
10077
 
 
10078
  fi
 
10079
 
 
10080
 
 
10081
if test "$ac_cv_ebcdic" = "yes"; then
 
10082
# mod_charset_lite can be very useful on an ebcdic system,
 
10083
#   so include it by default
 
10084
 
 
10085
  echo "$as_me:$LINENO: checking whether to enable mod_charset_lite" >&5
 
10086
echo $ECHO_N "checking whether to enable mod_charset_lite... $ECHO_C" >&6
 
10087
    # Check whether --enable-charset-lite or --disable-charset-lite was given.
 
10088
if test "${enable_charset_lite+set}" = set; then
 
10089
  enableval="$enable_charset_lite"
 
10090
 
 
10091
else
 
10092
  enable_charset_lite=yes
 
10093
fi;
 
10094
    _apmod_extra_msg=""
 
10095
      if test "$module_selection" = "most" -a "$enable_charset_lite" = "most"; then
 
10096
    _apmod_error_fatal="no"
 
10097
  else
 
10098
    _apmod_error_fatal="yes"
 
10099
  fi
 
10100
  if test "$enable_charset_lite" = "static"; then
 
10101
    enable_charset_lite=yes
 
10102
  elif test "$enable_charset_lite" = "yes"; then
 
10103
    enable_charset_lite=$module_default
 
10104
    _apmod_extra_msg=" ($module_selection)"
 
10105
  elif test "$enable_charset_lite" = "most"; then
 
10106
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
10107
      enable_charset_lite=$module_default
 
10108
      _apmod_extra_msg=" ($module_selection)"
 
10109
    elif test "$enable_charset_lite" != "yes"; then
 
10110
      enable_charset_lite=no
 
10111
    fi
 
10112
  elif test "$enable_charset_lite" = "maybe-all"; then
 
10113
    if test "$module_selection" = "all"; then
 
10114
      enable_charset_lite=$module_default
 
10115
      _apmod_extra_msg=" (all)"
 
10116
    else
 
10117
      enable_charset_lite=no
 
10118
    fi
 
10119
  fi
 
10120
  if test "$enable_charset_lite" != "no"; then
 
10121
            :
 
10122
  fi
 
10123
  echo "$as_me:$LINENO: result: $enable_charset_lite$_apmod_extra_msg" >&5
 
10124
echo "${ECHO_T}$enable_charset_lite$_apmod_extra_msg" >&6
 
10125
  if test "$enable_charset_lite" != "no"; then
 
10126
    case "$enable_charset_lite" in
 
10127
    shared*)
 
10128
      enable_charset_lite=`echo $enable_charset_lite|sed 's/shared,*//'`
 
10129
      sharedobjs=yes
 
10130
      shared=yes
 
10131
      DSO_MODULES="$DSO_MODULES charset_lite"
 
10132
      ;;
 
10133
    *)
 
10134
      MODLIST="$MODLIST charset_lite"
 
10135
      if test "charset_lite" = "so"; then
 
10136
          sharedobjs=yes
 
10137
      fi
 
10138
      shared="";;
 
10139
    esac
 
10140
 
 
10141
 
 
10142
  if test -z ""; then
 
10143
    objects="mod_charset_lite.lo"
 
10144
  else
 
10145
    objects=""
 
10146
  fi
 
10147
 
 
10148
  if test -z "$module_standalone"; then
 
10149
    if test -z "$shared"; then
 
10150
      # The filename of a convenience library must have a "lib" prefix:
 
10151
      libname="libmod_charset_lite.la"
 
10152
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
10153
      modpath_static="$modpath_static $libname"
 
10154
      cat >>$modpath_current/modules.mk<<EOF
 
10155
$libname: $objects
 
10156
        \$(MOD_LINK) $objects \$(MOD_CHARSET_LITE_LDADD)
 
10157
EOF
 
10158
    else
 
10159
      apache_need_shared=yes
 
10160
      libname="mod_charset_lite.la"
 
10161
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
10162
      modpath_shared="$modpath_shared $libname"
 
10163
      cat >>$modpath_current/modules.mk<<EOF
 
10164
$libname: $shobjects
 
10165
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CHARSET_LITE_LDADD)
 
10166
EOF
 
10167
    fi
 
10168
  fi
 
10169
 
 
10170
 
 
10171
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CHARSET_LITE_LDADD"
 
10172
 
 
10173
 
 
10174
 
 
10175
  fi
 
10176
 
 
10177
else
 
10178
 
 
10179
  echo "$as_me:$LINENO: checking whether to enable mod_charset_lite" >&5
 
10180
echo $ECHO_N "checking whether to enable mod_charset_lite... $ECHO_C" >&6
 
10181
    # Check whether --enable-charset-lite or --disable-charset-lite was given.
 
10182
if test "${enable_charset_lite+set}" = set; then
 
10183
  enableval="$enable_charset_lite"
 
10184
 
 
10185
else
 
10186
  enable_charset_lite=no
 
10187
fi;
 
10188
    _apmod_extra_msg=""
 
10189
      if test "$module_selection" = "most" -a "$enable_charset_lite" = "most"; then
 
10190
    _apmod_error_fatal="no"
 
10191
  else
 
10192
    _apmod_error_fatal="yes"
 
10193
  fi
 
10194
  if test "$enable_charset_lite" = "static"; then
 
10195
    enable_charset_lite=yes
 
10196
  elif test "$enable_charset_lite" = "yes"; then
 
10197
    enable_charset_lite=$module_default
 
10198
    _apmod_extra_msg=" ($module_selection)"
 
10199
  elif test "$enable_charset_lite" = "most"; then
 
10200
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
10201
      enable_charset_lite=$module_default
 
10202
      _apmod_extra_msg=" ($module_selection)"
 
10203
    elif test "$enable_charset_lite" != "yes"; then
 
10204
      enable_charset_lite=no
 
10205
    fi
 
10206
  elif test "$enable_charset_lite" = "maybe-all"; then
 
10207
    if test "$module_selection" = "all"; then
 
10208
      enable_charset_lite=$module_default
 
10209
      _apmod_extra_msg=" (all)"
 
10210
    else
 
10211
      enable_charset_lite=no
 
10212
    fi
 
10213
  fi
 
10214
  if test "$enable_charset_lite" != "no"; then
 
10215
            :
 
10216
  fi
 
10217
  echo "$as_me:$LINENO: result: $enable_charset_lite$_apmod_extra_msg" >&5
 
10218
echo "${ECHO_T}$enable_charset_lite$_apmod_extra_msg" >&6
 
10219
  if test "$enable_charset_lite" != "no"; then
 
10220
    case "$enable_charset_lite" in
 
10221
    shared*)
 
10222
      enable_charset_lite=`echo $enable_charset_lite|sed 's/shared,*//'`
 
10223
      sharedobjs=yes
 
10224
      shared=yes
 
10225
      DSO_MODULES="$DSO_MODULES charset_lite"
 
10226
      ;;
 
10227
    *)
 
10228
      MODLIST="$MODLIST charset_lite"
 
10229
      if test "charset_lite" = "so"; then
 
10230
          sharedobjs=yes
 
10231
      fi
 
10232
      shared="";;
 
10233
    esac
 
10234
 
 
10235
 
 
10236
  if test -z ""; then
 
10237
    objects="mod_charset_lite.lo"
 
10238
  else
 
10239
    objects=""
 
10240
  fi
 
10241
 
 
10242
  if test -z "$module_standalone"; then
 
10243
    if test -z "$shared"; then
 
10244
      # The filename of a convenience library must have a "lib" prefix:
 
10245
      libname="libmod_charset_lite.la"
 
10246
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
10247
      modpath_static="$modpath_static $libname"
 
10248
      cat >>$modpath_current/modules.mk<<EOF
 
10249
$libname: $objects
 
10250
        \$(MOD_LINK) $objects \$(MOD_CHARSET_LITE_LDADD)
 
10251
EOF
 
10252
    else
 
10253
      apache_need_shared=yes
 
10254
      libname="mod_charset_lite.la"
 
10255
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
10256
      modpath_shared="$modpath_shared $libname"
 
10257
      cat >>$modpath_current/modules.mk<<EOF
 
10258
$libname: $shobjects
 
10259
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CHARSET_LITE_LDADD)
 
10260
EOF
 
10261
    fi
 
10262
  fi
 
10263
 
 
10264
 
 
10265
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CHARSET_LITE_LDADD"
 
10266
 
 
10267
 
 
10268
 
 
10269
  fi
 
10270
 
 
10271
fi
 
10272
 
 
10273
 
 
10274
 
 
10275
  echo "$as_me:$LINENO: checking whether to enable mod_deflate" >&5
 
10276
echo $ECHO_N "checking whether to enable mod_deflate... $ECHO_C" >&6
 
10277
    # Check whether --enable-deflate or --disable-deflate was given.
 
10278
if test "${enable_deflate+set}" = set; then
 
10279
  enableval="$enable_deflate"
 
10280
 
 
10281
else
 
10282
  enable_deflate=most
 
10283
fi;
 
10284
    _apmod_extra_msg=""
 
10285
      if test "$module_selection" = "most" -a "$enable_deflate" = "most"; then
 
10286
    _apmod_error_fatal="no"
 
10287
  else
 
10288
    _apmod_error_fatal="yes"
 
10289
  fi
 
10290
  if test "$enable_deflate" = "static"; then
 
10291
    enable_deflate=yes
 
10292
  elif test "$enable_deflate" = "yes"; then
 
10293
    enable_deflate=$module_default
 
10294
    _apmod_extra_msg=" ($module_selection)"
 
10295
  elif test "$enable_deflate" = "most"; then
 
10296
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
10297
      enable_deflate=$module_default
 
10298
      _apmod_extra_msg=" ($module_selection)"
 
10299
    elif test "$enable_deflate" != "yes"; then
 
10300
      enable_deflate=no
 
10301
    fi
 
10302
  elif test "$enable_deflate" = "maybe-all"; then
 
10303
    if test "$module_selection" = "all"; then
 
10304
      enable_deflate=$module_default
 
10305
      _apmod_extra_msg=" (all)"
 
10306
    else
 
10307
      enable_deflate=no
 
10308
    fi
 
10309
  fi
 
10310
  if test "$enable_deflate" != "no"; then
 
10311
            echo "$as_me:$LINENO: result: checking dependencies" >&5
 
10312
echo "${ECHO_T}checking dependencies" >&6
 
10313
 
 
10314
 
 
10315
# Check whether --with-z or --without-z was given.
 
10316
if test "${with_z+set}" = set; then
 
10317
  withval="$with_z"
 
10318
 
 
10319
    if test "x$withval" != "xyes" && test "x$withval" != "x"; then
 
10320
      ap_zlib_base="$withval"
 
10321
    fi
 
10322
 
 
10323
fi;
 
10324
  if test "x$ap_zlib_base" = "x"; then
 
10325
    echo "$as_me:$LINENO: checking for zlib location" >&5
 
10326
echo $ECHO_N "checking for zlib location... $ECHO_C" >&6
 
10327
    if test "${ap_cv_zlib+set}" = set; then
 
10328
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10329
else
 
10330
 
 
10331
      for dir in /usr/local /usr ; do
 
10332
        if test -d $dir && test -f $dir/include/zlib.h; then
 
10333
          ap_cv_zlib=$dir
 
10334
          break
 
10335
        fi
 
10336
      done
 
10337
 
 
10338
fi
 
10339
 
 
10340
    ap_zlib_base=$ap_cv_zlib
 
10341
    if test "x$ap_zlib_base" = "x"; then
 
10342
      enable_deflate=no
 
10343
      echo "$as_me:$LINENO: result: not found" >&5
 
10344
echo "${ECHO_T}not found" >&6
 
10345
    else
 
10346
      echo "$as_me:$LINENO: result: $ap_zlib_base" >&5
 
10347
echo "${ECHO_T}$ap_zlib_base" >&6
 
10348
    fi
 
10349
  fi
 
10350
  if test "$enable_deflate" != "no"; then
 
10351
    ap_save_includes=$INCLUDES
 
10352
    ap_save_ldflags=$LDFLAGS
 
10353
    ap_save_cppflags=$CPPFLAGS
 
10354
    if test "$ap_zlib_base" != "/usr"; then
 
10355
 
 
10356
  if test "x$INCLUDES" = "x"; then
 
10357
    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I${ap_zlib_base}/include\""
 
10358
    INCLUDES="-I${ap_zlib_base}/include"
 
10359
  else
 
10360
    apr_addto_bugger="-I${ap_zlib_base}/include"
 
10361
    for i in $apr_addto_bugger; do
 
10362
      apr_addto_duplicate="0"
 
10363
      for j in $INCLUDES; do
 
10364
        if test "x$i" = "x$j"; then
 
10365
          apr_addto_duplicate="1"
 
10366
          break
 
10367
        fi
 
10368
      done
 
10369
      if test $apr_addto_duplicate = "0"; then
 
10370
        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
 
10371
        INCLUDES="$INCLUDES $i"
 
10372
      fi
 
10373
    done
 
10374
  fi
 
10375
 
 
10376
            CPPFLAGS="$CPPFLAGS $INCLUDES"
 
10377
 
 
10378
  if test "x$LDFLAGS" = "x"; then
 
10379
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-L${ap_zlib_base}/lib\""
 
10380
    LDFLAGS="-L${ap_zlib_base}/lib"
 
10381
  else
 
10382
    apr_addto_bugger="-L${ap_zlib_base}/lib"
 
10383
    for i in $apr_addto_bugger; do
 
10384
      apr_addto_duplicate="0"
 
10385
      for j in $LDFLAGS; do
 
10386
        if test "x$i" = "x$j"; then
 
10387
          apr_addto_duplicate="1"
 
10388
          break
 
10389
        fi
 
10390
      done
 
10391
      if test $apr_addto_duplicate = "0"; then
 
10392
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
 
10393
        LDFLAGS="$LDFLAGS $i"
 
10394
      fi
 
10395
    done
 
10396
  fi
 
10397
 
 
10398
      if test "x$ap_platform_runtime_link_flag" != "x"; then
 
10399
 
 
10400
  if test "x$LDFLAGS" = "x"; then
 
10401
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$ap_platform_runtime_link_flag${ap_zlib_base}/lib\""
 
10402
    LDFLAGS="$ap_platform_runtime_link_flag${ap_zlib_base}/lib"
 
10403
  else
 
10404
    apr_addto_bugger="$ap_platform_runtime_link_flag${ap_zlib_base}/lib"
 
10405
    for i in $apr_addto_bugger; do
 
10406
      apr_addto_duplicate="0"
 
10407
      for j in $LDFLAGS; do
 
10408
        if test "x$i" = "x$j"; then
 
10409
          apr_addto_duplicate="1"
 
10410
          break
 
10411
        fi
 
10412
      done
 
10413
      if test $apr_addto_duplicate = "0"; then
 
10414
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
 
10415
        LDFLAGS="$LDFLAGS $i"
 
10416
      fi
 
10417
    done
 
10418
  fi
 
10419
 
 
10420
      fi
 
10421
    fi
 
10422
 
 
10423
  if test "x$LIBS" = "x"; then
 
10424
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lz\""
 
10425
    LIBS="-lz"
 
10426
  else
 
10427
    apr_addto_bugger="-lz"
 
10428
    for i in $apr_addto_bugger; do
 
10429
      apr_addto_duplicate="0"
 
10430
      for j in $LIBS; do
 
10431
        if test "x$i" = "x$j"; then
 
10432
          apr_addto_duplicate="1"
 
10433
          break
 
10434
        fi
 
10435
      done
 
10436
      if test $apr_addto_duplicate = "0"; then
 
10437
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
 
10438
        LIBS="$LIBS $i"
 
10439
      fi
 
10440
    done
 
10441
  fi
 
10442
 
 
10443
    echo "$as_me:$LINENO: checking for zlib library" >&5
 
10444
echo $ECHO_N "checking for zlib library... $ECHO_C" >&6
 
10445
    cat >conftest.$ac_ext <<_ACEOF
 
10446
/* confdefs.h.  */
 
10447
_ACEOF
 
10448
cat confdefs.h >>conftest.$ac_ext
 
10449
cat >>conftest.$ac_ext <<_ACEOF
 
10450
/* end confdefs.h.  */
 
10451
#include <zlib.h>
 
10452
int
 
10453
main ()
 
10454
{
 
10455
int i = Z_OK;
 
10456
  ;
 
10457
  return 0;
 
10458
}
 
10459
_ACEOF
 
10460
rm -f conftest.$ac_objext conftest$ac_exeext
 
10461
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10462
  (eval $ac_link) 2>conftest.er1
 
10463
  ac_status=$?
 
10464
  grep -v '^ *+' conftest.er1 >conftest.err
 
10465
  rm -f conftest.er1
 
10466
  cat conftest.err >&5
 
10467
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10468
  (exit $ac_status); } &&
 
10469
         { ac_try='test -z "$ac_c_werror_flag"
 
10470
                         || test ! -s conftest.err'
 
10471
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10472
  (eval $ac_try) 2>&5
 
10473
  ac_status=$?
 
10474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10475
  (exit $ac_status); }; } &&
 
10476
         { ac_try='test -s conftest$ac_exeext'
 
10477
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10478
  (eval $ac_try) 2>&5
 
10479
  ac_status=$?
 
10480
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10481
  (exit $ac_status); }; }; then
 
10482
  echo "$as_me:$LINENO: result: found" >&5
 
10483
echo "${ECHO_T}found" >&6
 
10484
 
 
10485
  test "x$silent" != "xyes" && echo "  forcing MOD_DEFLATE_LDADD to \"-lz\""
 
10486
  MOD_DEFLATE_LDADD="-lz"
 
10487
 
 
10488
else
 
10489
  echo "$as_me: failed program was:" >&5
 
10490
sed 's/^/| /' conftest.$ac_ext >&5
 
10491
 
 
10492
echo "$as_me:$LINENO: result: not found" >&5
 
10493
echo "${ECHO_T}not found" >&6
 
10494
     enable_deflate=no
 
10495
     INCLUDES=$ap_save_includes
 
10496
     LDFLAGS=$ap_save_ldflags
 
10497
fi
 
10498
rm -f conftest.err conftest.$ac_objext \
 
10499
      conftest$ac_exeext conftest.$ac_ext
 
10500
 
 
10501
  if test "x$LIBS" = "x-lz"; then
 
10502
    test "x$silent" != "xyes" && echo "  nulling LIBS"
 
10503
    LIBS=""
 
10504
  else
 
10505
    apr_new_bugger=""
 
10506
    apr_removed=0
 
10507
    for i in $LIBS; do
 
10508
      if test "x$i" != "x-lz"; then
 
10509
        apr_new_bugger="$apr_new_bugger $i"
 
10510
      else
 
10511
        apr_removed=1
 
10512
      fi
 
10513
    done
 
10514
    if test $apr_removed = "1"; then
 
10515
      test "x$silent" != "xyes" && echo "  removed \"-lz\" from LIBS"
 
10516
      LIBS=$apr_new_bugger
 
10517
    fi
 
10518
  fi
 
10519
 
 
10520
    CPPFLAGS=$ap_save_cppflags
 
10521
  fi
 
10522
 
 
10523
                    echo "$as_me:$LINENO: checking whether to enable mod_deflate" >&5
 
10524
echo $ECHO_N "checking whether to enable mod_deflate... $ECHO_C" >&6
 
10525
                    if test "$enable_deflate" = "no"; then
 
10526
                      if test "$_apmod_error_fatal" = "no"; then
 
10527
                        _apmod_extra_msg=" (disabled)"
 
10528
                      else
 
10529
                        { { echo "$as_me:$LINENO: error: mod_deflate has been requested but can not be built due to prerequisite failures" >&5
 
10530
echo "$as_me: error: mod_deflate has been requested but can not be built due to prerequisite failures" >&2;}
 
10531
   { (exit 1); exit 1; }; }
 
10532
                      fi
 
10533
                    fi
 
10534
  fi
 
10535
  echo "$as_me:$LINENO: result: $enable_deflate$_apmod_extra_msg" >&5
 
10536
echo "${ECHO_T}$enable_deflate$_apmod_extra_msg" >&6
 
10537
  if test "$enable_deflate" != "no"; then
 
10538
    case "$enable_deflate" in
 
10539
    shared*)
 
10540
      enable_deflate=`echo $enable_deflate|sed 's/shared,*//'`
 
10541
      sharedobjs=yes
 
10542
      shared=yes
 
10543
      DSO_MODULES="$DSO_MODULES deflate"
 
10544
      ;;
 
10545
    *)
 
10546
      MODLIST="$MODLIST deflate"
 
10547
      if test "deflate" = "so"; then
 
10548
          sharedobjs=yes
 
10549
      fi
 
10550
      shared="";;
 
10551
    esac
 
10552
 
 
10553
 
 
10554
  if test -z ""; then
 
10555
    objects="mod_deflate.lo"
 
10556
  else
 
10557
    objects=""
 
10558
  fi
 
10559
 
 
10560
  if test -z "$module_standalone"; then
 
10561
    if test -z "$shared"; then
 
10562
      # The filename of a convenience library must have a "lib" prefix:
 
10563
      libname="libmod_deflate.la"
 
10564
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
10565
      modpath_static="$modpath_static $libname"
 
10566
      cat >>$modpath_current/modules.mk<<EOF
 
10567
$libname: $objects
 
10568
        \$(MOD_LINK) $objects \$(MOD_DEFLATE_LDADD)
 
10569
EOF
 
10570
    else
 
10571
      apache_need_shared=yes
 
10572
      libname="mod_deflate.la"
 
10573
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
10574
      modpath_shared="$modpath_shared $libname"
 
10575
      cat >>$modpath_current/modules.mk<<EOF
 
10576
$libname: $shobjects
 
10577
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_DEFLATE_LDADD)
 
10578
EOF
 
10579
    fi
 
10580
  fi
 
10581
 
 
10582
 
 
10583
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DEFLATE_LDADD"
 
10584
 
 
10585
 
 
10586
 
 
10587
  fi
 
10588
 
 
10589
 
 
10590
 
 
10591
  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
 
10592
  echo "static = $modpath_static" >> $modpath_current/modules.mk
 
10593
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
 
10594
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
 
10595
    MODULE_DIRS="$MODULE_DIRS $current_dir"
 
10596
  else
 
10597
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
 
10598
  fi
 
10599
 
 
10600
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
 
10601
 
 
10602
 
 
10603
 
 
10604
 
 
10605
 
 
10606
 
 
10607
  current_dir=ldap
 
10608
  modpath_current=modules/ldap
 
10609
  modpath_static=
 
10610
  modpath_shared=
 
10611
  test -d ldap || $srcdir/build/mkdir.sh $modpath_current
 
10612
  > $modpath_current/modules.mk
 
10613
 
 
10614
 
 
10615
ldap_objects="util_ldap.lo util_ldap_cache.lo util_ldap_cache_mgr.lo"
 
10616
 
 
10617
  echo "$as_me:$LINENO: checking whether to enable mod_ldap" >&5
 
10618
echo $ECHO_N "checking whether to enable mod_ldap... $ECHO_C" >&6
 
10619
    # Check whether --enable-ldap or --disable-ldap was given.
 
10620
if test "${enable_ldap+set}" = set; then
 
10621
  enableval="$enable_ldap"
 
10622
 
 
10623
else
 
10624
  enable_ldap=no
 
10625
fi;
 
10626
    _apmod_extra_msg=""
 
10627
      if test "$module_selection" = "most" -a "$enable_ldap" = "most"; then
 
10628
    _apmod_error_fatal="no"
 
10629
  else
 
10630
    _apmod_error_fatal="yes"
 
10631
  fi
 
10632
  if test "$enable_ldap" = "static"; then
 
10633
    enable_ldap=yes
 
10634
  elif test "$enable_ldap" = "yes"; then
 
10635
    enable_ldap=$module_default
 
10636
    _apmod_extra_msg=" ($module_selection)"
 
10637
  elif test "$enable_ldap" = "most"; then
 
10638
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
10639
      enable_ldap=$module_default
 
10640
      _apmod_extra_msg=" ($module_selection)"
 
10641
    elif test "$enable_ldap" != "yes"; then
 
10642
      enable_ldap=no
 
10643
    fi
 
10644
  elif test "$enable_ldap" = "maybe-all"; then
 
10645
    if test "$module_selection" = "all"; then
 
10646
      enable_ldap=$module_default
 
10647
      _apmod_extra_msg=" (all)"
 
10648
    else
 
10649
      enable_ldap=no
 
10650
    fi
 
10651
  fi
 
10652
  if test "$enable_ldap" != "no"; then
 
10653
            :
 
10654
  fi
 
10655
  echo "$as_me:$LINENO: result: $enable_ldap$_apmod_extra_msg" >&5
 
10656
echo "${ECHO_T}$enable_ldap$_apmod_extra_msg" >&6
 
10657
  if test "$enable_ldap" != "no"; then
 
10658
    case "$enable_ldap" in
 
10659
    shared*)
 
10660
      enable_ldap=`echo $enable_ldap|sed 's/shared,*//'`
 
10661
      sharedobjs=yes
 
10662
      shared=yes
 
10663
      DSO_MODULES="$DSO_MODULES ldap"
 
10664
      ;;
 
10665
    *)
 
10666
      MODLIST="$MODLIST ldap"
 
10667
      if test "ldap" = "so"; then
 
10668
          sharedobjs=yes
 
10669
      fi
 
10670
      shared="";;
 
10671
    esac
 
10672
 
 
10673
 
 
10674
  if test -z "$ldap_objects"; then
 
10675
    objects="mod_ldap.lo"
 
10676
  else
 
10677
    objects="$ldap_objects"
 
10678
  fi
 
10679
 
 
10680
  if test -z "$module_standalone"; then
 
10681
    if test -z "$shared"; then
 
10682
      # The filename of a convenience library must have a "lib" prefix:
 
10683
      libname="libmod_ldap.la"
 
10684
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
10685
      modpath_static="$modpath_static $libname"
 
10686
      cat >>$modpath_current/modules.mk<<EOF
 
10687
$libname: $objects
 
10688
        \$(MOD_LINK) $objects \$(MOD_LDAP_LDADD)
 
10689
EOF
 
10690
    else
 
10691
      apache_need_shared=yes
 
10692
      libname="mod_ldap.la"
 
10693
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
10694
      modpath_shared="$modpath_shared $libname"
 
10695
      cat >>$modpath_current/modules.mk<<EOF
 
10696
$libname: $shobjects
 
10697
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_LDAP_LDADD)
 
10698
EOF
 
10699
    fi
 
10700
  fi
 
10701
 
 
10702
 
 
10703
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LDAP_LDADD"
 
10704
 
 
10705
 
 
10706
 
 
10707
  fi
 
10708
 
 
10709
 
 
10710
 
 
10711
  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
 
10712
  echo "static = $modpath_static" >> $modpath_current/modules.mk
 
10713
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
 
10714
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
 
10715
    MODULE_DIRS="$MODULE_DIRS $current_dir"
 
10716
  else
 
10717
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
 
10718
  fi
 
10719
 
 
10720
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
 
10721
 
 
10722
 
 
10723
 
 
10724
 
 
10725
 
 
10726
 
 
10727
  current_dir=loggers
 
10728
  modpath_current=modules/loggers
 
10729
  modpath_static=
 
10730
  modpath_shared=
 
10731
  test -d loggers || $srcdir/build/mkdir.sh $modpath_current
 
10732
  > $modpath_current/modules.mk
 
10733
 
 
10734
 
 
10735
 
 
10736
  echo "$as_me:$LINENO: checking whether to enable mod_log_config" >&5
 
10737
echo $ECHO_N "checking whether to enable mod_log_config... $ECHO_C" >&6
 
10738
    # Check whether --enable-log-config or --disable-log-config was given.
 
10739
if test "${enable_log_config+set}" = set; then
 
10740
  enableval="$enable_log_config"
 
10741
 
 
10742
else
 
10743
  enable_log_config=yes
 
10744
fi;
 
10745
    _apmod_extra_msg=""
 
10746
      if test "$module_selection" = "most" -a "$enable_log_config" = "most"; then
 
10747
    _apmod_error_fatal="no"
 
10748
  else
 
10749
    _apmod_error_fatal="yes"
 
10750
  fi
 
10751
  if test "$enable_log_config" = "static"; then
 
10752
    enable_log_config=yes
 
10753
  elif test "$enable_log_config" = "yes"; then
 
10754
    enable_log_config=$module_default
 
10755
    _apmod_extra_msg=" ($module_selection)"
 
10756
  elif test "$enable_log_config" = "most"; then
 
10757
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
10758
      enable_log_config=$module_default
 
10759
      _apmod_extra_msg=" ($module_selection)"
 
10760
    elif test "$enable_log_config" != "yes"; then
 
10761
      enable_log_config=no
 
10762
    fi
 
10763
  elif test "$enable_log_config" = "maybe-all"; then
 
10764
    if test "$module_selection" = "all"; then
 
10765
      enable_log_config=$module_default
 
10766
      _apmod_extra_msg=" (all)"
 
10767
    else
 
10768
      enable_log_config=no
 
10769
    fi
 
10770
  fi
 
10771
  if test "$enable_log_config" != "no"; then
 
10772
            :
 
10773
  fi
 
10774
  echo "$as_me:$LINENO: result: $enable_log_config$_apmod_extra_msg" >&5
 
10775
echo "${ECHO_T}$enable_log_config$_apmod_extra_msg" >&6
 
10776
  if test "$enable_log_config" != "no"; then
 
10777
    case "$enable_log_config" in
 
10778
    shared*)
 
10779
      enable_log_config=`echo $enable_log_config|sed 's/shared,*//'`
 
10780
      sharedobjs=yes
 
10781
      shared=yes
 
10782
      DSO_MODULES="$DSO_MODULES log_config"
 
10783
      ;;
 
10784
    *)
 
10785
      MODLIST="$MODLIST log_config"
 
10786
      if test "log_config" = "so"; then
 
10787
          sharedobjs=yes
 
10788
      fi
 
10789
      shared="";;
 
10790
    esac
 
10791
 
 
10792
 
 
10793
  if test -z ""; then
 
10794
    objects="mod_log_config.lo"
 
10795
  else
 
10796
    objects=""
 
10797
  fi
 
10798
 
 
10799
  if test -z "$module_standalone"; then
 
10800
    if test -z "$shared"; then
 
10801
      # The filename of a convenience library must have a "lib" prefix:
 
10802
      libname="libmod_log_config.la"
 
10803
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
10804
      modpath_static="$modpath_static $libname"
 
10805
      cat >>$modpath_current/modules.mk<<EOF
 
10806
$libname: $objects
 
10807
        \$(MOD_LINK) $objects \$(MOD_LOG_CONFIG_LDADD)
 
10808
EOF
 
10809
    else
 
10810
      apache_need_shared=yes
 
10811
      libname="mod_log_config.la"
 
10812
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
10813
      modpath_shared="$modpath_shared $libname"
 
10814
      cat >>$modpath_current/modules.mk<<EOF
 
10815
$libname: $shobjects
 
10816
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_LOG_CONFIG_LDADD)
 
10817
EOF
 
10818
    fi
 
10819
  fi
 
10820
 
 
10821
 
 
10822
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LOG_CONFIG_LDADD"
 
10823
 
 
10824
 
 
10825
 
 
10826
  fi
 
10827
 
 
10828
 
 
10829
  echo "$as_me:$LINENO: checking whether to enable mod_log_forensic" >&5
 
10830
echo $ECHO_N "checking whether to enable mod_log_forensic... $ECHO_C" >&6
 
10831
    # Check whether --enable-log-forensic or --disable-log-forensic was given.
 
10832
if test "${enable_log_forensic+set}" = set; then
 
10833
  enableval="$enable_log_forensic"
 
10834
 
 
10835
else
 
10836
  enable_log_forensic=maybe-all
 
10837
fi;
 
10838
    _apmod_extra_msg=""
 
10839
      if test "$module_selection" = "most" -a "$enable_log_forensic" = "most"; then
 
10840
    _apmod_error_fatal="no"
 
10841
  else
 
10842
    _apmod_error_fatal="yes"
 
10843
  fi
 
10844
  if test "$enable_log_forensic" = "static"; then
 
10845
    enable_log_forensic=yes
 
10846
  elif test "$enable_log_forensic" = "yes"; then
 
10847
    enable_log_forensic=$module_default
 
10848
    _apmod_extra_msg=" ($module_selection)"
 
10849
  elif test "$enable_log_forensic" = "most"; then
 
10850
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
10851
      enable_log_forensic=$module_default
 
10852
      _apmod_extra_msg=" ($module_selection)"
 
10853
    elif test "$enable_log_forensic" != "yes"; then
 
10854
      enable_log_forensic=no
 
10855
    fi
 
10856
  elif test "$enable_log_forensic" = "maybe-all"; then
 
10857
    if test "$module_selection" = "all"; then
 
10858
      enable_log_forensic=$module_default
 
10859
      _apmod_extra_msg=" (all)"
 
10860
    else
 
10861
      enable_log_forensic=no
 
10862
    fi
 
10863
  fi
 
10864
  if test "$enable_log_forensic" != "no"; then
 
10865
            :
 
10866
  fi
 
10867
  echo "$as_me:$LINENO: result: $enable_log_forensic$_apmod_extra_msg" >&5
 
10868
echo "${ECHO_T}$enable_log_forensic$_apmod_extra_msg" >&6
 
10869
  if test "$enable_log_forensic" != "no"; then
 
10870
    case "$enable_log_forensic" in
 
10871
    shared*)
 
10872
      enable_log_forensic=`echo $enable_log_forensic|sed 's/shared,*//'`
 
10873
      sharedobjs=yes
 
10874
      shared=yes
 
10875
      DSO_MODULES="$DSO_MODULES log_forensic"
 
10876
      ;;
 
10877
    *)
 
10878
      MODLIST="$MODLIST log_forensic"
 
10879
      if test "log_forensic" = "so"; then
 
10880
          sharedobjs=yes
 
10881
      fi
 
10882
      shared="";;
 
10883
    esac
 
10884
 
 
10885
 
 
10886
  if test -z ""; then
 
10887
    objects="mod_log_forensic.lo"
 
10888
  else
 
10889
    objects=""
 
10890
  fi
 
10891
 
 
10892
  if test -z "$module_standalone"; then
 
10893
    if test -z "$shared"; then
 
10894
      # The filename of a convenience library must have a "lib" prefix:
 
10895
      libname="libmod_log_forensic.la"
 
10896
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
10897
      modpath_static="$modpath_static $libname"
 
10898
      cat >>$modpath_current/modules.mk<<EOF
 
10899
$libname: $objects
 
10900
        \$(MOD_LINK) $objects \$(MOD_LOG_FORENSIC_LDADD)
 
10901
EOF
 
10902
    else
 
10903
      apache_need_shared=yes
 
10904
      libname="mod_log_forensic.la"
 
10905
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
10906
      modpath_shared="$modpath_shared $libname"
 
10907
      cat >>$modpath_current/modules.mk<<EOF
 
10908
$libname: $shobjects
 
10909
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_LOG_FORENSIC_LDADD)
 
10910
EOF
 
10911
    fi
 
10912
  fi
 
10913
 
 
10914
 
 
10915
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LOG_FORENSIC_LDADD"
 
10916
 
 
10917
 
 
10918
 
 
10919
  fi
 
10920
 
 
10921
 
 
10922
if test "x$enable_log_forensic" != "xno"; then
 
10923
    # mod_log_forensic needs test_char.h
 
10924
 
 
10925
  if test "x$INCLUDES" = "x"; then
 
10926
    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_builddir)/server\""
 
10927
    INCLUDES="-I\$(top_builddir)/server"
 
10928
  else
 
10929
    apr_addto_bugger="-I\$(top_builddir)/server"
 
10930
    for i in $apr_addto_bugger; do
 
10931
      apr_addto_duplicate="0"
 
10932
      for j in $INCLUDES; do
 
10933
        if test "x$i" = "x$j"; then
 
10934
          apr_addto_duplicate="1"
 
10935
          break
 
10936
        fi
 
10937
      done
 
10938
      if test $apr_addto_duplicate = "0"; then
 
10939
        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
 
10940
        INCLUDES="$INCLUDES $i"
 
10941
      fi
 
10942
    done
 
10943
  fi
 
10944
 
 
10945
fi
 
10946
 
 
10947
 
 
10948
  echo "$as_me:$LINENO: checking whether to enable mod_logio" >&5
 
10949
echo $ECHO_N "checking whether to enable mod_logio... $ECHO_C" >&6
 
10950
    # Check whether --enable-logio or --disable-logio was given.
 
10951
if test "${enable_logio+set}" = set; then
 
10952
  enableval="$enable_logio"
 
10953
 
 
10954
else
 
10955
  enable_logio=most
 
10956
fi;
 
10957
    _apmod_extra_msg=""
 
10958
      if test "$module_selection" = "most" -a "$enable_logio" = "most"; then
 
10959
    _apmod_error_fatal="no"
 
10960
  else
 
10961
    _apmod_error_fatal="yes"
 
10962
  fi
 
10963
  if test "$enable_logio" = "static"; then
 
10964
    enable_logio=yes
 
10965
  elif test "$enable_logio" = "yes"; then
 
10966
    enable_logio=$module_default
 
10967
    _apmod_extra_msg=" ($module_selection)"
 
10968
  elif test "$enable_logio" = "most"; then
 
10969
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
10970
      enable_logio=$module_default
 
10971
      _apmod_extra_msg=" ($module_selection)"
 
10972
    elif test "$enable_logio" != "yes"; then
 
10973
      enable_logio=no
 
10974
    fi
 
10975
  elif test "$enable_logio" = "maybe-all"; then
 
10976
    if test "$module_selection" = "all"; then
 
10977
      enable_logio=$module_default
 
10978
      _apmod_extra_msg=" (all)"
 
10979
    else
 
10980
      enable_logio=no
 
10981
    fi
 
10982
  fi
 
10983
  if test "$enable_logio" != "no"; then
 
10984
            :
 
10985
  fi
 
10986
  echo "$as_me:$LINENO: result: $enable_logio$_apmod_extra_msg" >&5
 
10987
echo "${ECHO_T}$enable_logio$_apmod_extra_msg" >&6
 
10988
  if test "$enable_logio" != "no"; then
 
10989
    case "$enable_logio" in
 
10990
    shared*)
 
10991
      enable_logio=`echo $enable_logio|sed 's/shared,*//'`
 
10992
      sharedobjs=yes
 
10993
      shared=yes
 
10994
      DSO_MODULES="$DSO_MODULES logio"
 
10995
      ;;
 
10996
    *)
 
10997
      MODLIST="$MODLIST logio"
 
10998
      if test "logio" = "so"; then
 
10999
          sharedobjs=yes
 
11000
      fi
 
11001
      shared="";;
 
11002
    esac
 
11003
 
 
11004
 
 
11005
  if test -z ""; then
 
11006
    objects="mod_logio.lo"
 
11007
  else
 
11008
    objects=""
 
11009
  fi
 
11010
 
 
11011
  if test -z "$module_standalone"; then
 
11012
    if test -z "$shared"; then
 
11013
      # The filename of a convenience library must have a "lib" prefix:
 
11014
      libname="libmod_logio.la"
 
11015
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
11016
      modpath_static="$modpath_static $libname"
 
11017
      cat >>$modpath_current/modules.mk<<EOF
 
11018
$libname: $objects
 
11019
        \$(MOD_LINK) $objects \$(MOD_LOGIO_LDADD)
 
11020
EOF
 
11021
    else
 
11022
      apache_need_shared=yes
 
11023
      libname="mod_logio.la"
 
11024
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
11025
      modpath_shared="$modpath_shared $libname"
 
11026
      cat >>$modpath_current/modules.mk<<EOF
 
11027
$libname: $shobjects
 
11028
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_LOGIO_LDADD)
 
11029
EOF
 
11030
    fi
 
11031
  fi
 
11032
 
 
11033
 
 
11034
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_LOGIO_LDADD"
 
11035
 
 
11036
 
 
11037
 
 
11038
  fi
 
11039
 
 
11040
 
 
11041
 
 
11042
  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
 
11043
  echo "static = $modpath_static" >> $modpath_current/modules.mk
 
11044
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
 
11045
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
 
11046
    MODULE_DIRS="$MODULE_DIRS $current_dir"
 
11047
  else
 
11048
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
 
11049
  fi
 
11050
 
 
11051
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
 
11052
 
 
11053
 
 
11054
 
 
11055
 
 
11056
 
 
11057
 
 
11058
  current_dir=metadata
 
11059
  modpath_current=modules/metadata
 
11060
  modpath_static=
 
11061
  modpath_shared=
 
11062
  test -d metadata || $srcdir/build/mkdir.sh $modpath_current
 
11063
  > $modpath_current/modules.mk
 
11064
 
 
11065
 
 
11066
 
 
11067
  echo "$as_me:$LINENO: checking whether to enable mod_env" >&5
 
11068
echo $ECHO_N "checking whether to enable mod_env... $ECHO_C" >&6
 
11069
    # Check whether --enable-env or --disable-env was given.
 
11070
if test "${enable_env+set}" = set; then
 
11071
  enableval="$enable_env"
 
11072
 
 
11073
else
 
11074
  enable_env=yes
 
11075
fi;
 
11076
    _apmod_extra_msg=""
 
11077
      if test "$module_selection" = "most" -a "$enable_env" = "most"; then
 
11078
    _apmod_error_fatal="no"
 
11079
  else
 
11080
    _apmod_error_fatal="yes"
 
11081
  fi
 
11082
  if test "$enable_env" = "static"; then
 
11083
    enable_env=yes
 
11084
  elif test "$enable_env" = "yes"; then
 
11085
    enable_env=$module_default
 
11086
    _apmod_extra_msg=" ($module_selection)"
 
11087
  elif test "$enable_env" = "most"; then
 
11088
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
11089
      enable_env=$module_default
 
11090
      _apmod_extra_msg=" ($module_selection)"
 
11091
    elif test "$enable_env" != "yes"; then
 
11092
      enable_env=no
 
11093
    fi
 
11094
  elif test "$enable_env" = "maybe-all"; then
 
11095
    if test "$module_selection" = "all"; then
 
11096
      enable_env=$module_default
 
11097
      _apmod_extra_msg=" (all)"
 
11098
    else
 
11099
      enable_env=no
 
11100
    fi
 
11101
  fi
 
11102
  if test "$enable_env" != "no"; then
 
11103
            :
 
11104
  fi
 
11105
  echo "$as_me:$LINENO: result: $enable_env$_apmod_extra_msg" >&5
 
11106
echo "${ECHO_T}$enable_env$_apmod_extra_msg" >&6
 
11107
  if test "$enable_env" != "no"; then
 
11108
    case "$enable_env" in
 
11109
    shared*)
 
11110
      enable_env=`echo $enable_env|sed 's/shared,*//'`
 
11111
      sharedobjs=yes
 
11112
      shared=yes
 
11113
      DSO_MODULES="$DSO_MODULES env"
 
11114
      ;;
 
11115
    *)
 
11116
      MODLIST="$MODLIST env"
 
11117
      if test "env" = "so"; then
 
11118
          sharedobjs=yes
 
11119
      fi
 
11120
      shared="";;
 
11121
    esac
 
11122
 
 
11123
 
 
11124
  if test -z ""; then
 
11125
    objects="mod_env.lo"
 
11126
  else
 
11127
    objects=""
 
11128
  fi
 
11129
 
 
11130
  if test -z "$module_standalone"; then
 
11131
    if test -z "$shared"; then
 
11132
      # The filename of a convenience library must have a "lib" prefix:
 
11133
      libname="libmod_env.la"
 
11134
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
11135
      modpath_static="$modpath_static $libname"
 
11136
      cat >>$modpath_current/modules.mk<<EOF
 
11137
$libname: $objects
 
11138
        \$(MOD_LINK) $objects \$(MOD_ENV_LDADD)
 
11139
EOF
 
11140
    else
 
11141
      apache_need_shared=yes
 
11142
      libname="mod_env.la"
 
11143
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
11144
      modpath_shared="$modpath_shared $libname"
 
11145
      cat >>$modpath_current/modules.mk<<EOF
 
11146
$libname: $shobjects
 
11147
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_ENV_LDADD)
 
11148
EOF
 
11149
    fi
 
11150
  fi
 
11151
 
 
11152
 
 
11153
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ENV_LDADD"
 
11154
 
 
11155
 
 
11156
 
 
11157
  fi
 
11158
 
 
11159
 
 
11160
  echo "$as_me:$LINENO: checking whether to enable mod_mime_magic" >&5
 
11161
echo $ECHO_N "checking whether to enable mod_mime_magic... $ECHO_C" >&6
 
11162
    # Check whether --enable-mime-magic or --disable-mime-magic was given.
 
11163
if test "${enable_mime_magic+set}" = set; then
 
11164
  enableval="$enable_mime_magic"
 
11165
 
 
11166
else
 
11167
  enable_mime_magic=maybe-all
 
11168
fi;
 
11169
    _apmod_extra_msg=""
 
11170
      if test "$module_selection" = "most" -a "$enable_mime_magic" = "most"; then
 
11171
    _apmod_error_fatal="no"
 
11172
  else
 
11173
    _apmod_error_fatal="yes"
 
11174
  fi
 
11175
  if test "$enable_mime_magic" = "static"; then
 
11176
    enable_mime_magic=yes
 
11177
  elif test "$enable_mime_magic" = "yes"; then
 
11178
    enable_mime_magic=$module_default
 
11179
    _apmod_extra_msg=" ($module_selection)"
 
11180
  elif test "$enable_mime_magic" = "most"; then
 
11181
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
11182
      enable_mime_magic=$module_default
 
11183
      _apmod_extra_msg=" ($module_selection)"
 
11184
    elif test "$enable_mime_magic" != "yes"; then
 
11185
      enable_mime_magic=no
 
11186
    fi
 
11187
  elif test "$enable_mime_magic" = "maybe-all"; then
 
11188
    if test "$module_selection" = "all"; then
 
11189
      enable_mime_magic=$module_default
 
11190
      _apmod_extra_msg=" (all)"
 
11191
    else
 
11192
      enable_mime_magic=no
 
11193
    fi
 
11194
  fi
 
11195
  if test "$enable_mime_magic" != "no"; then
 
11196
            :
 
11197
  fi
 
11198
  echo "$as_me:$LINENO: result: $enable_mime_magic$_apmod_extra_msg" >&5
 
11199
echo "${ECHO_T}$enable_mime_magic$_apmod_extra_msg" >&6
 
11200
  if test "$enable_mime_magic" != "no"; then
 
11201
    case "$enable_mime_magic" in
 
11202
    shared*)
 
11203
      enable_mime_magic=`echo $enable_mime_magic|sed 's/shared,*//'`
 
11204
      sharedobjs=yes
 
11205
      shared=yes
 
11206
      DSO_MODULES="$DSO_MODULES mime_magic"
 
11207
      ;;
 
11208
    *)
 
11209
      MODLIST="$MODLIST mime_magic"
 
11210
      if test "mime_magic" = "so"; then
 
11211
          sharedobjs=yes
 
11212
      fi
 
11213
      shared="";;
 
11214
    esac
 
11215
 
 
11216
 
 
11217
  if test -z ""; then
 
11218
    objects="mod_mime_magic.lo"
 
11219
  else
 
11220
    objects=""
 
11221
  fi
 
11222
 
 
11223
  if test -z "$module_standalone"; then
 
11224
    if test -z "$shared"; then
 
11225
      # The filename of a convenience library must have a "lib" prefix:
 
11226
      libname="libmod_mime_magic.la"
 
11227
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
11228
      modpath_static="$modpath_static $libname"
 
11229
      cat >>$modpath_current/modules.mk<<EOF
 
11230
$libname: $objects
 
11231
        \$(MOD_LINK) $objects \$(MOD_MIME_MAGIC_LDADD)
 
11232
EOF
 
11233
    else
 
11234
      apache_need_shared=yes
 
11235
      libname="mod_mime_magic.la"
 
11236
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
11237
      modpath_shared="$modpath_shared $libname"
 
11238
      cat >>$modpath_current/modules.mk<<EOF
 
11239
$libname: $shobjects
 
11240
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_MIME_MAGIC_LDADD)
 
11241
EOF
 
11242
    fi
 
11243
  fi
 
11244
 
 
11245
 
 
11246
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_MIME_MAGIC_LDADD"
 
11247
 
 
11248
 
 
11249
 
 
11250
  fi
 
11251
 
 
11252
 
 
11253
  echo "$as_me:$LINENO: checking whether to enable mod_cern_meta" >&5
 
11254
echo $ECHO_N "checking whether to enable mod_cern_meta... $ECHO_C" >&6
 
11255
    # Check whether --enable-cern-meta or --disable-cern-meta was given.
 
11256
if test "${enable_cern_meta+set}" = set; then
 
11257
  enableval="$enable_cern_meta"
 
11258
 
 
11259
else
 
11260
  enable_cern_meta=maybe-all
 
11261
fi;
 
11262
    _apmod_extra_msg=""
 
11263
      if test "$module_selection" = "most" -a "$enable_cern_meta" = "most"; then
 
11264
    _apmod_error_fatal="no"
 
11265
  else
 
11266
    _apmod_error_fatal="yes"
 
11267
  fi
 
11268
  if test "$enable_cern_meta" = "static"; then
 
11269
    enable_cern_meta=yes
 
11270
  elif test "$enable_cern_meta" = "yes"; then
 
11271
    enable_cern_meta=$module_default
 
11272
    _apmod_extra_msg=" ($module_selection)"
 
11273
  elif test "$enable_cern_meta" = "most"; then
 
11274
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
11275
      enable_cern_meta=$module_default
 
11276
      _apmod_extra_msg=" ($module_selection)"
 
11277
    elif test "$enable_cern_meta" != "yes"; then
 
11278
      enable_cern_meta=no
 
11279
    fi
 
11280
  elif test "$enable_cern_meta" = "maybe-all"; then
 
11281
    if test "$module_selection" = "all"; then
 
11282
      enable_cern_meta=$module_default
 
11283
      _apmod_extra_msg=" (all)"
 
11284
    else
 
11285
      enable_cern_meta=no
 
11286
    fi
 
11287
  fi
 
11288
  if test "$enable_cern_meta" != "no"; then
 
11289
            :
 
11290
  fi
 
11291
  echo "$as_me:$LINENO: result: $enable_cern_meta$_apmod_extra_msg" >&5
 
11292
echo "${ECHO_T}$enable_cern_meta$_apmod_extra_msg" >&6
 
11293
  if test "$enable_cern_meta" != "no"; then
 
11294
    case "$enable_cern_meta" in
 
11295
    shared*)
 
11296
      enable_cern_meta=`echo $enable_cern_meta|sed 's/shared,*//'`
 
11297
      sharedobjs=yes
 
11298
      shared=yes
 
11299
      DSO_MODULES="$DSO_MODULES cern_meta"
 
11300
      ;;
 
11301
    *)
 
11302
      MODLIST="$MODLIST cern_meta"
 
11303
      if test "cern_meta" = "so"; then
 
11304
          sharedobjs=yes
 
11305
      fi
 
11306
      shared="";;
 
11307
    esac
 
11308
 
 
11309
 
 
11310
  if test -z ""; then
 
11311
    objects="mod_cern_meta.lo"
 
11312
  else
 
11313
    objects=""
 
11314
  fi
 
11315
 
 
11316
  if test -z "$module_standalone"; then
 
11317
    if test -z "$shared"; then
 
11318
      # The filename of a convenience library must have a "lib" prefix:
 
11319
      libname="libmod_cern_meta.la"
 
11320
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
11321
      modpath_static="$modpath_static $libname"
 
11322
      cat >>$modpath_current/modules.mk<<EOF
 
11323
$libname: $objects
 
11324
        \$(MOD_LINK) $objects \$(MOD_CERN_META_LDADD)
 
11325
EOF
 
11326
    else
 
11327
      apache_need_shared=yes
 
11328
      libname="mod_cern_meta.la"
 
11329
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
11330
      modpath_shared="$modpath_shared $libname"
 
11331
      cat >>$modpath_current/modules.mk<<EOF
 
11332
$libname: $shobjects
 
11333
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CERN_META_LDADD)
 
11334
EOF
 
11335
    fi
 
11336
  fi
 
11337
 
 
11338
 
 
11339
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CERN_META_LDADD"
 
11340
 
 
11341
 
 
11342
 
 
11343
  fi
 
11344
 
 
11345
 
 
11346
  echo "$as_me:$LINENO: checking whether to enable mod_expires" >&5
 
11347
echo $ECHO_N "checking whether to enable mod_expires... $ECHO_C" >&6
 
11348
    # Check whether --enable-expires or --disable-expires was given.
 
11349
if test "${enable_expires+set}" = set; then
 
11350
  enableval="$enable_expires"
 
11351
 
 
11352
else
 
11353
  enable_expires=most
 
11354
fi;
 
11355
    _apmod_extra_msg=""
 
11356
      if test "$module_selection" = "most" -a "$enable_expires" = "most"; then
 
11357
    _apmod_error_fatal="no"
 
11358
  else
 
11359
    _apmod_error_fatal="yes"
 
11360
  fi
 
11361
  if test "$enable_expires" = "static"; then
 
11362
    enable_expires=yes
 
11363
  elif test "$enable_expires" = "yes"; then
 
11364
    enable_expires=$module_default
 
11365
    _apmod_extra_msg=" ($module_selection)"
 
11366
  elif test "$enable_expires" = "most"; then
 
11367
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
11368
      enable_expires=$module_default
 
11369
      _apmod_extra_msg=" ($module_selection)"
 
11370
    elif test "$enable_expires" != "yes"; then
 
11371
      enable_expires=no
 
11372
    fi
 
11373
  elif test "$enable_expires" = "maybe-all"; then
 
11374
    if test "$module_selection" = "all"; then
 
11375
      enable_expires=$module_default
 
11376
      _apmod_extra_msg=" (all)"
 
11377
    else
 
11378
      enable_expires=no
 
11379
    fi
 
11380
  fi
 
11381
  if test "$enable_expires" != "no"; then
 
11382
            :
 
11383
  fi
 
11384
  echo "$as_me:$LINENO: result: $enable_expires$_apmod_extra_msg" >&5
 
11385
echo "${ECHO_T}$enable_expires$_apmod_extra_msg" >&6
 
11386
  if test "$enable_expires" != "no"; then
 
11387
    case "$enable_expires" in
 
11388
    shared*)
 
11389
      enable_expires=`echo $enable_expires|sed 's/shared,*//'`
 
11390
      sharedobjs=yes
 
11391
      shared=yes
 
11392
      DSO_MODULES="$DSO_MODULES expires"
 
11393
      ;;
 
11394
    *)
 
11395
      MODLIST="$MODLIST expires"
 
11396
      if test "expires" = "so"; then
 
11397
          sharedobjs=yes
 
11398
      fi
 
11399
      shared="";;
 
11400
    esac
 
11401
 
 
11402
 
 
11403
  if test -z ""; then
 
11404
    objects="mod_expires.lo"
 
11405
  else
 
11406
    objects=""
 
11407
  fi
 
11408
 
 
11409
  if test -z "$module_standalone"; then
 
11410
    if test -z "$shared"; then
 
11411
      # The filename of a convenience library must have a "lib" prefix:
 
11412
      libname="libmod_expires.la"
 
11413
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
11414
      modpath_static="$modpath_static $libname"
 
11415
      cat >>$modpath_current/modules.mk<<EOF
 
11416
$libname: $objects
 
11417
        \$(MOD_LINK) $objects \$(MOD_EXPIRES_LDADD)
 
11418
EOF
 
11419
    else
 
11420
      apache_need_shared=yes
 
11421
      libname="mod_expires.la"
 
11422
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
11423
      modpath_shared="$modpath_shared $libname"
 
11424
      cat >>$modpath_current/modules.mk<<EOF
 
11425
$libname: $shobjects
 
11426
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_EXPIRES_LDADD)
 
11427
EOF
 
11428
    fi
 
11429
  fi
 
11430
 
 
11431
 
 
11432
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_EXPIRES_LDADD"
 
11433
 
 
11434
 
 
11435
 
 
11436
  fi
 
11437
 
 
11438
 
 
11439
  echo "$as_me:$LINENO: checking whether to enable mod_headers" >&5
 
11440
echo $ECHO_N "checking whether to enable mod_headers... $ECHO_C" >&6
 
11441
    # Check whether --enable-headers or --disable-headers was given.
 
11442
if test "${enable_headers+set}" = set; then
 
11443
  enableval="$enable_headers"
 
11444
 
 
11445
else
 
11446
  enable_headers=most
 
11447
fi;
 
11448
    _apmod_extra_msg=""
 
11449
      if test "$module_selection" = "most" -a "$enable_headers" = "most"; then
 
11450
    _apmod_error_fatal="no"
 
11451
  else
 
11452
    _apmod_error_fatal="yes"
 
11453
  fi
 
11454
  if test "$enable_headers" = "static"; then
 
11455
    enable_headers=yes
 
11456
  elif test "$enable_headers" = "yes"; then
 
11457
    enable_headers=$module_default
 
11458
    _apmod_extra_msg=" ($module_selection)"
 
11459
  elif test "$enable_headers" = "most"; then
 
11460
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
11461
      enable_headers=$module_default
 
11462
      _apmod_extra_msg=" ($module_selection)"
 
11463
    elif test "$enable_headers" != "yes"; then
 
11464
      enable_headers=no
 
11465
    fi
 
11466
  elif test "$enable_headers" = "maybe-all"; then
 
11467
    if test "$module_selection" = "all"; then
 
11468
      enable_headers=$module_default
 
11469
      _apmod_extra_msg=" (all)"
 
11470
    else
 
11471
      enable_headers=no
 
11472
    fi
 
11473
  fi
 
11474
  if test "$enable_headers" != "no"; then
 
11475
            :
 
11476
  fi
 
11477
  echo "$as_me:$LINENO: result: $enable_headers$_apmod_extra_msg" >&5
 
11478
echo "${ECHO_T}$enable_headers$_apmod_extra_msg" >&6
 
11479
  if test "$enable_headers" != "no"; then
 
11480
    case "$enable_headers" in
 
11481
    shared*)
 
11482
      enable_headers=`echo $enable_headers|sed 's/shared,*//'`
 
11483
      sharedobjs=yes
 
11484
      shared=yes
 
11485
      DSO_MODULES="$DSO_MODULES headers"
 
11486
      ;;
 
11487
    *)
 
11488
      MODLIST="$MODLIST headers"
 
11489
      if test "headers" = "so"; then
 
11490
          sharedobjs=yes
 
11491
      fi
 
11492
      shared="";;
 
11493
    esac
 
11494
 
 
11495
 
 
11496
  if test -z ""; then
 
11497
    objects="mod_headers.lo"
 
11498
  else
 
11499
    objects=""
 
11500
  fi
 
11501
 
 
11502
  if test -z "$module_standalone"; then
 
11503
    if test -z "$shared"; then
 
11504
      # The filename of a convenience library must have a "lib" prefix:
 
11505
      libname="libmod_headers.la"
 
11506
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
11507
      modpath_static="$modpath_static $libname"
 
11508
      cat >>$modpath_current/modules.mk<<EOF
 
11509
$libname: $objects
 
11510
        \$(MOD_LINK) $objects \$(MOD_HEADERS_LDADD)
 
11511
EOF
 
11512
    else
 
11513
      apache_need_shared=yes
 
11514
      libname="mod_headers.la"
 
11515
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
11516
      modpath_shared="$modpath_shared $libname"
 
11517
      cat >>$modpath_current/modules.mk<<EOF
 
11518
$libname: $shobjects
 
11519
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_HEADERS_LDADD)
 
11520
EOF
 
11521
    fi
 
11522
  fi
 
11523
 
 
11524
 
 
11525
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_HEADERS_LDADD"
 
11526
 
 
11527
 
 
11528
 
 
11529
  fi
 
11530
 
 
11531
 
 
11532
  echo "$as_me:$LINENO: checking whether to enable mod_ident" >&5
 
11533
echo $ECHO_N "checking whether to enable mod_ident... $ECHO_C" >&6
 
11534
    # Check whether --enable-ident or --disable-ident was given.
 
11535
if test "${enable_ident+set}" = set; then
 
11536
  enableval="$enable_ident"
 
11537
 
 
11538
else
 
11539
  enable_ident=most
 
11540
fi;
 
11541
    _apmod_extra_msg=""
 
11542
      if test "$module_selection" = "most" -a "$enable_ident" = "most"; then
 
11543
    _apmod_error_fatal="no"
 
11544
  else
 
11545
    _apmod_error_fatal="yes"
 
11546
  fi
 
11547
  if test "$enable_ident" = "static"; then
 
11548
    enable_ident=yes
 
11549
  elif test "$enable_ident" = "yes"; then
 
11550
    enable_ident=$module_default
 
11551
    _apmod_extra_msg=" ($module_selection)"
 
11552
  elif test "$enable_ident" = "most"; then
 
11553
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
11554
      enable_ident=$module_default
 
11555
      _apmod_extra_msg=" ($module_selection)"
 
11556
    elif test "$enable_ident" != "yes"; then
 
11557
      enable_ident=no
 
11558
    fi
 
11559
  elif test "$enable_ident" = "maybe-all"; then
 
11560
    if test "$module_selection" = "all"; then
 
11561
      enable_ident=$module_default
 
11562
      _apmod_extra_msg=" (all)"
 
11563
    else
 
11564
      enable_ident=no
 
11565
    fi
 
11566
  fi
 
11567
  if test "$enable_ident" != "no"; then
 
11568
            :
 
11569
  fi
 
11570
  echo "$as_me:$LINENO: result: $enable_ident$_apmod_extra_msg" >&5
 
11571
echo "${ECHO_T}$enable_ident$_apmod_extra_msg" >&6
 
11572
  if test "$enable_ident" != "no"; then
 
11573
    case "$enable_ident" in
 
11574
    shared*)
 
11575
      enable_ident=`echo $enable_ident|sed 's/shared,*//'`
 
11576
      sharedobjs=yes
 
11577
      shared=yes
 
11578
      DSO_MODULES="$DSO_MODULES ident"
 
11579
      ;;
 
11580
    *)
 
11581
      MODLIST="$MODLIST ident"
 
11582
      if test "ident" = "so"; then
 
11583
          sharedobjs=yes
 
11584
      fi
 
11585
      shared="";;
 
11586
    esac
 
11587
 
 
11588
 
 
11589
  if test -z ""; then
 
11590
    objects="mod_ident.lo"
 
11591
  else
 
11592
    objects=""
 
11593
  fi
 
11594
 
 
11595
  if test -z "$module_standalone"; then
 
11596
    if test -z "$shared"; then
 
11597
      # The filename of a convenience library must have a "lib" prefix:
 
11598
      libname="libmod_ident.la"
 
11599
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
11600
      modpath_static="$modpath_static $libname"
 
11601
      cat >>$modpath_current/modules.mk<<EOF
 
11602
$libname: $objects
 
11603
        \$(MOD_LINK) $objects \$(MOD_IDENT_LDADD)
 
11604
EOF
 
11605
    else
 
11606
      apache_need_shared=yes
 
11607
      libname="mod_ident.la"
 
11608
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
11609
      modpath_shared="$modpath_shared $libname"
 
11610
      cat >>$modpath_current/modules.mk<<EOF
 
11611
$libname: $shobjects
 
11612
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_IDENT_LDADD)
 
11613
EOF
 
11614
    fi
 
11615
  fi
 
11616
 
 
11617
 
 
11618
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_IDENT_LDADD"
 
11619
 
 
11620
 
 
11621
 
 
11622
  fi
 
11623
 
 
11624
 
 
11625
 
 
11626
  echo "$as_me:$LINENO: checking whether to enable mod_usertrack" >&5
 
11627
echo $ECHO_N "checking whether to enable mod_usertrack... $ECHO_C" >&6
 
11628
    # Check whether --enable-usertrack or --disable-usertrack was given.
 
11629
if test "${enable_usertrack+set}" = set; then
 
11630
  enableval="$enable_usertrack"
 
11631
 
 
11632
else
 
11633
  enable_usertrack=maybe-all
 
11634
fi;
 
11635
    _apmod_extra_msg=""
 
11636
      if test "$module_selection" = "most" -a "$enable_usertrack" = "most"; then
 
11637
    _apmod_error_fatal="no"
 
11638
  else
 
11639
    _apmod_error_fatal="yes"
 
11640
  fi
 
11641
  if test "$enable_usertrack" = "static"; then
 
11642
    enable_usertrack=yes
 
11643
  elif test "$enable_usertrack" = "yes"; then
 
11644
    enable_usertrack=$module_default
 
11645
    _apmod_extra_msg=" ($module_selection)"
 
11646
  elif test "$enable_usertrack" = "most"; then
 
11647
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
11648
      enable_usertrack=$module_default
 
11649
      _apmod_extra_msg=" ($module_selection)"
 
11650
    elif test "$enable_usertrack" != "yes"; then
 
11651
      enable_usertrack=no
 
11652
    fi
 
11653
  elif test "$enable_usertrack" = "maybe-all"; then
 
11654
    if test "$module_selection" = "all"; then
 
11655
      enable_usertrack=$module_default
 
11656
      _apmod_extra_msg=" (all)"
 
11657
    else
 
11658
      enable_usertrack=no
 
11659
    fi
 
11660
  fi
 
11661
  if test "$enable_usertrack" != "no"; then
 
11662
            echo "$as_me:$LINENO: result: checking dependencies" >&5
 
11663
echo "${ECHO_T}checking dependencies" >&6
 
11664
 
 
11665
 
 
11666
for ac_header in sys/times.h
 
11667
do
 
11668
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
11669
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11670
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
11671
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
11672
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11673
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11674
fi
 
11675
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
11676
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
11677
else
 
11678
  # Is the header compilable?
 
11679
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
11680
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
11681
cat >conftest.$ac_ext <<_ACEOF
 
11682
/* confdefs.h.  */
 
11683
_ACEOF
 
11684
cat confdefs.h >>conftest.$ac_ext
 
11685
cat >>conftest.$ac_ext <<_ACEOF
 
11686
/* end confdefs.h.  */
 
11687
$ac_includes_default
 
11688
#include <$ac_header>
 
11689
_ACEOF
 
11690
rm -f conftest.$ac_objext
 
11691
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11692
  (eval $ac_compile) 2>conftest.er1
 
11693
  ac_status=$?
 
11694
  grep -v '^ *+' conftest.er1 >conftest.err
 
11695
  rm -f conftest.er1
 
11696
  cat conftest.err >&5
 
11697
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11698
  (exit $ac_status); } &&
 
11699
         { ac_try='test -z "$ac_c_werror_flag"
 
11700
                         || test ! -s conftest.err'
 
11701
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11702
  (eval $ac_try) 2>&5
 
11703
  ac_status=$?
 
11704
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11705
  (exit $ac_status); }; } &&
 
11706
         { ac_try='test -s conftest.$ac_objext'
 
11707
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11708
  (eval $ac_try) 2>&5
 
11709
  ac_status=$?
 
11710
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11711
  (exit $ac_status); }; }; then
 
11712
  ac_header_compiler=yes
 
11713
else
 
11714
  echo "$as_me: failed program was:" >&5
 
11715
sed 's/^/| /' conftest.$ac_ext >&5
 
11716
 
 
11717
ac_header_compiler=no
 
11718
fi
 
11719
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11720
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
11721
echo "${ECHO_T}$ac_header_compiler" >&6
 
11722
 
 
11723
# Is the header present?
 
11724
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
11725
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
11726
cat >conftest.$ac_ext <<_ACEOF
 
11727
/* confdefs.h.  */
 
11728
_ACEOF
 
11729
cat confdefs.h >>conftest.$ac_ext
 
11730
cat >>conftest.$ac_ext <<_ACEOF
 
11731
/* end confdefs.h.  */
 
11732
#include <$ac_header>
 
11733
_ACEOF
 
11734
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
11735
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
11736
  ac_status=$?
 
11737
  grep -v '^ *+' conftest.er1 >conftest.err
 
11738
  rm -f conftest.er1
 
11739
  cat conftest.err >&5
 
11740
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11741
  (exit $ac_status); } >/dev/null; then
 
11742
  if test -s conftest.err; then
 
11743
    ac_cpp_err=$ac_c_preproc_warn_flag
 
11744
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
11745
  else
 
11746
    ac_cpp_err=
 
11747
  fi
 
11748
else
 
11749
  ac_cpp_err=yes
 
11750
fi
 
11751
if test -z "$ac_cpp_err"; then
 
11752
  ac_header_preproc=yes
 
11753
else
 
11754
  echo "$as_me: failed program was:" >&5
 
11755
sed 's/^/| /' conftest.$ac_ext >&5
 
11756
 
 
11757
  ac_header_preproc=no
 
11758
fi
 
11759
rm -f conftest.err conftest.$ac_ext
 
11760
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
11761
echo "${ECHO_T}$ac_header_preproc" >&6
 
11762
 
 
11763
# So?  What about this header?
 
11764
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
11765
  yes:no: )
 
11766
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
11767
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
11768
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
11769
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
11770
    ac_header_preproc=yes
 
11771
    ;;
 
11772
  no:yes:* )
 
11773
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
11774
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
11775
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
11776
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
11777
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
11778
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
11779
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
11780
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
11781
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
11782
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
11783
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
11784
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
11785
    (
 
11786
      cat <<\_ASBOX
 
11787
## ------------------------------------------ ##
 
11788
## Report this to the AC_PACKAGE_NAME lists.  ##
 
11789
## ------------------------------------------ ##
 
11790
_ASBOX
 
11791
    ) |
 
11792
      sed "s/^/$as_me: WARNING:     /" >&2
 
11793
    ;;
 
11794
esac
 
11795
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
11796
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
11797
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11798
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11799
else
 
11800
  eval "$as_ac_Header=\$ac_header_preproc"
 
11801
fi
 
11802
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
11803
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
11804
 
 
11805
fi
 
11806
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
11807
  cat >>confdefs.h <<_ACEOF
 
11808
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
11809
_ACEOF
 
11810
 
 
11811
fi
 
11812
 
 
11813
done
 
11814
 
 
11815
 
 
11816
for ac_func in times
 
11817
do
 
11818
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
11819
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
11820
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
11821
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
11822
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11823
else
 
11824
  cat >conftest.$ac_ext <<_ACEOF
 
11825
/* confdefs.h.  */
 
11826
_ACEOF
 
11827
cat confdefs.h >>conftest.$ac_ext
 
11828
cat >>conftest.$ac_ext <<_ACEOF
 
11829
/* end confdefs.h.  */
 
11830
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
11831
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
11832
#define $ac_func innocuous_$ac_func
 
11833
 
 
11834
/* System header to define __stub macros and hopefully few prototypes,
 
11835
    which can conflict with char $ac_func (); below.
 
11836
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11837
    <limits.h> exists even on freestanding compilers.  */
 
11838
 
 
11839
#ifdef __STDC__
 
11840
# include <limits.h>
 
11841
#else
 
11842
# include <assert.h>
 
11843
#endif
 
11844
 
 
11845
#undef $ac_func
 
11846
 
 
11847
/* Override any gcc2 internal prototype to avoid an error.  */
 
11848
#ifdef __cplusplus
 
11849
extern "C"
 
11850
{
 
11851
#endif
 
11852
/* We use char because int might match the return type of a gcc2
 
11853
   builtin and then its argument prototype would still apply.  */
 
11854
char $ac_func ();
 
11855
/* The GNU C library defines this for functions which it implements
 
11856
    to always fail with ENOSYS.  Some functions are actually named
 
11857
    something starting with __ and the normal name is an alias.  */
 
11858
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
11859
choke me
 
11860
#else
 
11861
char (*f) () = $ac_func;
 
11862
#endif
 
11863
#ifdef __cplusplus
 
11864
}
 
11865
#endif
 
11866
 
 
11867
int
 
11868
main ()
 
11869
{
 
11870
return f != $ac_func;
 
11871
  ;
 
11872
  return 0;
 
11873
}
 
11874
_ACEOF
 
11875
rm -f conftest.$ac_objext conftest$ac_exeext
 
11876
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11877
  (eval $ac_link) 2>conftest.er1
 
11878
  ac_status=$?
 
11879
  grep -v '^ *+' conftest.er1 >conftest.err
 
11880
  rm -f conftest.er1
 
11881
  cat conftest.err >&5
 
11882
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11883
  (exit $ac_status); } &&
 
11884
         { ac_try='test -z "$ac_c_werror_flag"
 
11885
                         || test ! -s conftest.err'
 
11886
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11887
  (eval $ac_try) 2>&5
 
11888
  ac_status=$?
 
11889
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11890
  (exit $ac_status); }; } &&
 
11891
         { ac_try='test -s conftest$ac_exeext'
 
11892
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11893
  (eval $ac_try) 2>&5
 
11894
  ac_status=$?
 
11895
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11896
  (exit $ac_status); }; }; then
 
11897
  eval "$as_ac_var=yes"
 
11898
else
 
11899
  echo "$as_me: failed program was:" >&5
 
11900
sed 's/^/| /' conftest.$ac_ext >&5
 
11901
 
 
11902
eval "$as_ac_var=no"
 
11903
fi
 
11904
rm -f conftest.err conftest.$ac_objext \
 
11905
      conftest$ac_exeext conftest.$ac_ext
 
11906
fi
 
11907
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
11908
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
11909
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
11910
  cat >>confdefs.h <<_ACEOF
 
11911
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
11912
_ACEOF
 
11913
 
 
11914
fi
 
11915
done
 
11916
 
 
11917
 
 
11918
                    echo "$as_me:$LINENO: checking whether to enable mod_usertrack" >&5
 
11919
echo $ECHO_N "checking whether to enable mod_usertrack... $ECHO_C" >&6
 
11920
                    if test "$enable_usertrack" = "no"; then
 
11921
                      if test "$_apmod_error_fatal" = "no"; then
 
11922
                        _apmod_extra_msg=" (disabled)"
 
11923
                      else
 
11924
                        { { echo "$as_me:$LINENO: error: mod_usertrack has been requested but can not be built due to prerequisite failures" >&5
 
11925
echo "$as_me: error: mod_usertrack has been requested but can not be built due to prerequisite failures" >&2;}
 
11926
   { (exit 1); exit 1; }; }
 
11927
                      fi
 
11928
                    fi
 
11929
  fi
 
11930
  echo "$as_me:$LINENO: result: $enable_usertrack$_apmod_extra_msg" >&5
 
11931
echo "${ECHO_T}$enable_usertrack$_apmod_extra_msg" >&6
 
11932
  if test "$enable_usertrack" != "no"; then
 
11933
    case "$enable_usertrack" in
 
11934
    shared*)
 
11935
      enable_usertrack=`echo $enable_usertrack|sed 's/shared,*//'`
 
11936
      sharedobjs=yes
 
11937
      shared=yes
 
11938
      DSO_MODULES="$DSO_MODULES usertrack"
 
11939
      ;;
 
11940
    *)
 
11941
      MODLIST="$MODLIST usertrack"
 
11942
      if test "usertrack" = "so"; then
 
11943
          sharedobjs=yes
 
11944
      fi
 
11945
      shared="";;
 
11946
    esac
 
11947
 
 
11948
 
 
11949
  if test -z ""; then
 
11950
    objects="mod_usertrack.lo"
 
11951
  else
 
11952
    objects=""
 
11953
  fi
 
11954
 
 
11955
  if test -z "$module_standalone"; then
 
11956
    if test -z "$shared"; then
 
11957
      # The filename of a convenience library must have a "lib" prefix:
 
11958
      libname="libmod_usertrack.la"
 
11959
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
11960
      modpath_static="$modpath_static $libname"
 
11961
      cat >>$modpath_current/modules.mk<<EOF
 
11962
$libname: $objects
 
11963
        \$(MOD_LINK) $objects \$(MOD_USERTRACK_LDADD)
 
11964
EOF
 
11965
    else
 
11966
      apache_need_shared=yes
 
11967
      libname="mod_usertrack.la"
 
11968
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
11969
      modpath_shared="$modpath_shared $libname"
 
11970
      cat >>$modpath_current/modules.mk<<EOF
 
11971
$libname: $shobjects
 
11972
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_USERTRACK_LDADD)
 
11973
EOF
 
11974
    fi
 
11975
  fi
 
11976
 
 
11977
 
 
11978
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_USERTRACK_LDADD"
 
11979
 
 
11980
 
 
11981
 
 
11982
  fi
 
11983
 
 
11984
 
 
11985
 
 
11986
  echo "$as_me:$LINENO: checking whether to enable mod_unique_id" >&5
 
11987
echo $ECHO_N "checking whether to enable mod_unique_id... $ECHO_C" >&6
 
11988
    # Check whether --enable-unique-id or --disable-unique-id was given.
 
11989
if test "${enable_unique_id+set}" = set; then
 
11990
  enableval="$enable_unique_id"
 
11991
 
 
11992
else
 
11993
  enable_unique_id=maybe-all
 
11994
fi;
 
11995
    _apmod_extra_msg=""
 
11996
      if test "$module_selection" = "most" -a "$enable_unique_id" = "most"; then
 
11997
    _apmod_error_fatal="no"
 
11998
  else
 
11999
    _apmod_error_fatal="yes"
 
12000
  fi
 
12001
  if test "$enable_unique_id" = "static"; then
 
12002
    enable_unique_id=yes
 
12003
  elif test "$enable_unique_id" = "yes"; then
 
12004
    enable_unique_id=$module_default
 
12005
    _apmod_extra_msg=" ($module_selection)"
 
12006
  elif test "$enable_unique_id" = "most"; then
 
12007
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
12008
      enable_unique_id=$module_default
 
12009
      _apmod_extra_msg=" ($module_selection)"
 
12010
    elif test "$enable_unique_id" != "yes"; then
 
12011
      enable_unique_id=no
 
12012
    fi
 
12013
  elif test "$enable_unique_id" = "maybe-all"; then
 
12014
    if test "$module_selection" = "all"; then
 
12015
      enable_unique_id=$module_default
 
12016
      _apmod_extra_msg=" (all)"
 
12017
    else
 
12018
      enable_unique_id=no
 
12019
    fi
 
12020
  fi
 
12021
  if test "$enable_unique_id" != "no"; then
 
12022
            :
 
12023
  fi
 
12024
  echo "$as_me:$LINENO: result: $enable_unique_id$_apmod_extra_msg" >&5
 
12025
echo "${ECHO_T}$enable_unique_id$_apmod_extra_msg" >&6
 
12026
  if test "$enable_unique_id" != "no"; then
 
12027
    case "$enable_unique_id" in
 
12028
    shared*)
 
12029
      enable_unique_id=`echo $enable_unique_id|sed 's/shared,*//'`
 
12030
      sharedobjs=yes
 
12031
      shared=yes
 
12032
      DSO_MODULES="$DSO_MODULES unique_id"
 
12033
      ;;
 
12034
    *)
 
12035
      MODLIST="$MODLIST unique_id"
 
12036
      if test "unique_id" = "so"; then
 
12037
          sharedobjs=yes
 
12038
      fi
 
12039
      shared="";;
 
12040
    esac
 
12041
 
 
12042
 
 
12043
  if test -z ""; then
 
12044
    objects="mod_unique_id.lo"
 
12045
  else
 
12046
    objects=""
 
12047
  fi
 
12048
 
 
12049
  if test -z "$module_standalone"; then
 
12050
    if test -z "$shared"; then
 
12051
      # The filename of a convenience library must have a "lib" prefix:
 
12052
      libname="libmod_unique_id.la"
 
12053
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
12054
      modpath_static="$modpath_static $libname"
 
12055
      cat >>$modpath_current/modules.mk<<EOF
 
12056
$libname: $objects
 
12057
        \$(MOD_LINK) $objects \$(MOD_UNIQUE_ID_LDADD)
 
12058
EOF
 
12059
    else
 
12060
      apache_need_shared=yes
 
12061
      libname="mod_unique_id.la"
 
12062
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
12063
      modpath_shared="$modpath_shared $libname"
 
12064
      cat >>$modpath_current/modules.mk<<EOF
 
12065
$libname: $shobjects
 
12066
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_UNIQUE_ID_LDADD)
 
12067
EOF
 
12068
    fi
 
12069
  fi
 
12070
 
 
12071
 
 
12072
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_UNIQUE_ID_LDADD"
 
12073
 
 
12074
 
 
12075
 
 
12076
  fi
 
12077
 
 
12078
 
 
12079
  echo "$as_me:$LINENO: checking whether to enable mod_setenvif" >&5
 
12080
echo $ECHO_N "checking whether to enable mod_setenvif... $ECHO_C" >&6
 
12081
    # Check whether --enable-setenvif or --disable-setenvif was given.
 
12082
if test "${enable_setenvif+set}" = set; then
 
12083
  enableval="$enable_setenvif"
 
12084
 
 
12085
else
 
12086
  enable_setenvif=yes
 
12087
fi;
 
12088
    _apmod_extra_msg=""
 
12089
      if test "$module_selection" = "most" -a "$enable_setenvif" = "most"; then
 
12090
    _apmod_error_fatal="no"
 
12091
  else
 
12092
    _apmod_error_fatal="yes"
 
12093
  fi
 
12094
  if test "$enable_setenvif" = "static"; then
 
12095
    enable_setenvif=yes
 
12096
  elif test "$enable_setenvif" = "yes"; then
 
12097
    enable_setenvif=$module_default
 
12098
    _apmod_extra_msg=" ($module_selection)"
 
12099
  elif test "$enable_setenvif" = "most"; then
 
12100
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
12101
      enable_setenvif=$module_default
 
12102
      _apmod_extra_msg=" ($module_selection)"
 
12103
    elif test "$enable_setenvif" != "yes"; then
 
12104
      enable_setenvif=no
 
12105
    fi
 
12106
  elif test "$enable_setenvif" = "maybe-all"; then
 
12107
    if test "$module_selection" = "all"; then
 
12108
      enable_setenvif=$module_default
 
12109
      _apmod_extra_msg=" (all)"
 
12110
    else
 
12111
      enable_setenvif=no
 
12112
    fi
 
12113
  fi
 
12114
  if test "$enable_setenvif" != "no"; then
 
12115
            :
 
12116
  fi
 
12117
  echo "$as_me:$LINENO: result: $enable_setenvif$_apmod_extra_msg" >&5
 
12118
echo "${ECHO_T}$enable_setenvif$_apmod_extra_msg" >&6
 
12119
  if test "$enable_setenvif" != "no"; then
 
12120
    case "$enable_setenvif" in
 
12121
    shared*)
 
12122
      enable_setenvif=`echo $enable_setenvif|sed 's/shared,*//'`
 
12123
      sharedobjs=yes
 
12124
      shared=yes
 
12125
      DSO_MODULES="$DSO_MODULES setenvif"
 
12126
      ;;
 
12127
    *)
 
12128
      MODLIST="$MODLIST setenvif"
 
12129
      if test "setenvif" = "so"; then
 
12130
          sharedobjs=yes
 
12131
      fi
 
12132
      shared="";;
 
12133
    esac
 
12134
 
 
12135
 
 
12136
  if test -z ""; then
 
12137
    objects="mod_setenvif.lo"
 
12138
  else
 
12139
    objects=""
 
12140
  fi
 
12141
 
 
12142
  if test -z "$module_standalone"; then
 
12143
    if test -z "$shared"; then
 
12144
      # The filename of a convenience library must have a "lib" prefix:
 
12145
      libname="libmod_setenvif.la"
 
12146
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
12147
      modpath_static="$modpath_static $libname"
 
12148
      cat >>$modpath_current/modules.mk<<EOF
 
12149
$libname: $objects
 
12150
        \$(MOD_LINK) $objects \$(MOD_SETENVIF_LDADD)
 
12151
EOF
 
12152
    else
 
12153
      apache_need_shared=yes
 
12154
      libname="mod_setenvif.la"
 
12155
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
12156
      modpath_shared="$modpath_shared $libname"
 
12157
      cat >>$modpath_current/modules.mk<<EOF
 
12158
$libname: $shobjects
 
12159
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SETENVIF_LDADD)
 
12160
EOF
 
12161
    fi
 
12162
  fi
 
12163
 
 
12164
 
 
12165
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SETENVIF_LDADD"
 
12166
 
 
12167
 
 
12168
 
 
12169
  fi
 
12170
 
 
12171
 
 
12172
  echo "$as_me:$LINENO: checking whether to enable mod_version" >&5
 
12173
echo $ECHO_N "checking whether to enable mod_version... $ECHO_C" >&6
 
12174
    # Check whether --enable-version or --disable-version was given.
 
12175
if test "${enable_version+set}" = set; then
 
12176
  enableval="$enable_version"
 
12177
 
 
12178
else
 
12179
  enable_version=maybe-all
 
12180
fi;
 
12181
    _apmod_extra_msg=""
 
12182
      if test "$module_selection" = "most" -a "$enable_version" = "most"; then
 
12183
    _apmod_error_fatal="no"
 
12184
  else
 
12185
    _apmod_error_fatal="yes"
 
12186
  fi
 
12187
  if test "$enable_version" = "static"; then
 
12188
    enable_version=yes
 
12189
  elif test "$enable_version" = "yes"; then
 
12190
    enable_version=$module_default
 
12191
    _apmod_extra_msg=" ($module_selection)"
 
12192
  elif test "$enable_version" = "most"; then
 
12193
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
12194
      enable_version=$module_default
 
12195
      _apmod_extra_msg=" ($module_selection)"
 
12196
    elif test "$enable_version" != "yes"; then
 
12197
      enable_version=no
 
12198
    fi
 
12199
  elif test "$enable_version" = "maybe-all"; then
 
12200
    if test "$module_selection" = "all"; then
 
12201
      enable_version=$module_default
 
12202
      _apmod_extra_msg=" (all)"
 
12203
    else
 
12204
      enable_version=no
 
12205
    fi
 
12206
  fi
 
12207
  if test "$enable_version" != "no"; then
 
12208
            :
 
12209
  fi
 
12210
  echo "$as_me:$LINENO: result: $enable_version$_apmod_extra_msg" >&5
 
12211
echo "${ECHO_T}$enable_version$_apmod_extra_msg" >&6
 
12212
  if test "$enable_version" != "no"; then
 
12213
    case "$enable_version" in
 
12214
    shared*)
 
12215
      enable_version=`echo $enable_version|sed 's/shared,*//'`
 
12216
      sharedobjs=yes
 
12217
      shared=yes
 
12218
      DSO_MODULES="$DSO_MODULES version"
 
12219
      ;;
 
12220
    *)
 
12221
      MODLIST="$MODLIST version"
 
12222
      if test "version" = "so"; then
 
12223
          sharedobjs=yes
 
12224
      fi
 
12225
      shared="";;
 
12226
    esac
 
12227
 
 
12228
 
 
12229
  if test -z ""; then
 
12230
    objects="mod_version.lo"
 
12231
  else
 
12232
    objects=""
 
12233
  fi
 
12234
 
 
12235
  if test -z "$module_standalone"; then
 
12236
    if test -z "$shared"; then
 
12237
      # The filename of a convenience library must have a "lib" prefix:
 
12238
      libname="libmod_version.la"
 
12239
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
12240
      modpath_static="$modpath_static $libname"
 
12241
      cat >>$modpath_current/modules.mk<<EOF
 
12242
$libname: $objects
 
12243
        \$(MOD_LINK) $objects \$(MOD_VERSION_LDADD)
 
12244
EOF
 
12245
    else
 
12246
      apache_need_shared=yes
 
12247
      libname="mod_version.la"
 
12248
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
12249
      modpath_shared="$modpath_shared $libname"
 
12250
      cat >>$modpath_current/modules.mk<<EOF
 
12251
$libname: $shobjects
 
12252
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_VERSION_LDADD)
 
12253
EOF
 
12254
    fi
 
12255
  fi
 
12256
 
 
12257
 
 
12258
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_VERSION_LDADD"
 
12259
 
 
12260
 
 
12261
 
 
12262
  fi
 
12263
 
 
12264
 
 
12265
 
 
12266
  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
 
12267
  echo "static = $modpath_static" >> $modpath_current/modules.mk
 
12268
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
 
12269
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
 
12270
    MODULE_DIRS="$MODULE_DIRS $current_dir"
 
12271
  else
 
12272
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
 
12273
  fi
 
12274
 
 
12275
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
 
12276
 
 
12277
 
 
12278
 
 
12279
 
 
12280
 
 
12281
  current_dir=proxy
 
12282
  modpath_current=modules/proxy
 
12283
  modpath_static=
 
12284
  modpath_shared=
 
12285
  test -d proxy || $srcdir/build/mkdir.sh $modpath_current
 
12286
  > $modpath_current/modules.mk
 
12287
 
 
12288
 
 
12289
if test "$enable_proxy" = "shared"; then
 
12290
  proxy_mods_enable=shared
 
12291
elif test "$enable_proxy" = "yes"; then
 
12292
  proxy_mods_enable=yes
 
12293
else
 
12294
  proxy_mods_enable=no
 
12295
fi
 
12296
 
 
12297
proxy_objs="mod_proxy.lo proxy_util.lo"
 
12298
 
 
12299
  echo "$as_me:$LINENO: checking whether to enable mod_proxy" >&5
 
12300
echo $ECHO_N "checking whether to enable mod_proxy... $ECHO_C" >&6
 
12301
    # Check whether --enable-proxy or --disable-proxy was given.
 
12302
if test "${enable_proxy+set}" = set; then
 
12303
  enableval="$enable_proxy"
 
12304
 
 
12305
else
 
12306
  enable_proxy=$proxy_mods_enable
 
12307
fi;
 
12308
    _apmod_extra_msg=""
 
12309
      if test "$module_selection" = "most" -a "$enable_proxy" = "most"; then
 
12310
    _apmod_error_fatal="no"
 
12311
  else
 
12312
    _apmod_error_fatal="yes"
 
12313
  fi
 
12314
  if test "$enable_proxy" = "static"; then
 
12315
    enable_proxy=yes
 
12316
  elif test "$enable_proxy" = "yes"; then
 
12317
    enable_proxy=$module_default
 
12318
    _apmod_extra_msg=" ($module_selection)"
 
12319
  elif test "$enable_proxy" = "most"; then
 
12320
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
12321
      enable_proxy=$module_default
 
12322
      _apmod_extra_msg=" ($module_selection)"
 
12323
    elif test "$enable_proxy" != "yes"; then
 
12324
      enable_proxy=no
 
12325
    fi
 
12326
  elif test "$enable_proxy" = "maybe-all"; then
 
12327
    if test "$module_selection" = "all"; then
 
12328
      enable_proxy=$module_default
 
12329
      _apmod_extra_msg=" (all)"
 
12330
    else
 
12331
      enable_proxy=no
 
12332
    fi
 
12333
  fi
 
12334
  if test "$enable_proxy" != "no"; then
 
12335
            :
 
12336
  fi
 
12337
  echo "$as_me:$LINENO: result: $enable_proxy$_apmod_extra_msg" >&5
 
12338
echo "${ECHO_T}$enable_proxy$_apmod_extra_msg" >&6
 
12339
  if test "$enable_proxy" != "no"; then
 
12340
    case "$enable_proxy" in
 
12341
    shared*)
 
12342
      enable_proxy=`echo $enable_proxy|sed 's/shared,*//'`
 
12343
      sharedobjs=yes
 
12344
      shared=yes
 
12345
      DSO_MODULES="$DSO_MODULES proxy"
 
12346
      ;;
 
12347
    *)
 
12348
      MODLIST="$MODLIST proxy"
 
12349
      if test "proxy" = "so"; then
 
12350
          sharedobjs=yes
 
12351
      fi
 
12352
      shared="";;
 
12353
    esac
 
12354
 
 
12355
 
 
12356
  if test -z "$proxy_objs"; then
 
12357
    objects="mod_proxy.lo"
 
12358
  else
 
12359
    objects="$proxy_objs"
 
12360
  fi
 
12361
 
 
12362
  if test -z "$module_standalone"; then
 
12363
    if test -z "$shared"; then
 
12364
      # The filename of a convenience library must have a "lib" prefix:
 
12365
      libname="libmod_proxy.la"
 
12366
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
12367
      modpath_static="$modpath_static $libname"
 
12368
      cat >>$modpath_current/modules.mk<<EOF
 
12369
$libname: $objects
 
12370
        \$(MOD_LINK) $objects \$(MOD_PROXY_LDADD)
 
12371
EOF
 
12372
    else
 
12373
      apache_need_shared=yes
 
12374
      libname="mod_proxy.la"
 
12375
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
12376
      modpath_shared="$modpath_shared $libname"
 
12377
      cat >>$modpath_current/modules.mk<<EOF
 
12378
$libname: $shobjects
 
12379
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_LDADD)
 
12380
EOF
 
12381
    fi
 
12382
  fi
 
12383
 
 
12384
 
 
12385
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_LDADD"
 
12386
 
 
12387
 
 
12388
 
 
12389
  fi
 
12390
 
 
12391
 
 
12392
proxy_connect_objs="mod_proxy_connect.lo"
 
12393
proxy_ftp_objs="mod_proxy_ftp.lo"
 
12394
proxy_http_objs="mod_proxy_http.lo"
 
12395
proxy_ajp_objs="mod_proxy_ajp.lo ajp_header.lo ajp_link.lo ajp_msg.lo"
 
12396
proxy_balancer_objs="mod_proxy_balancer.lo"
 
12397
 
 
12398
case "$host" in
 
12399
  *os2*)
 
12400
    # OS/2 DLLs must resolve all symbols at build time and
 
12401
    # these sub-modules need some from the main proxy module
 
12402
    proxy_connect_objs="$proxy_connect_objs mod_proxy.la"
 
12403
    proxy_ftp_objs="$proxy_ftp_objs mod_proxy.la"
 
12404
    proxy_http_objs="$proxy_http_objs mod_proxy.la"
 
12405
    proxy_ajp_objs="$proxy_ajp_objs mod_proxy.la"
 
12406
    proxy_balancer_objs="$proxy_balancer_objs mod_proxy.la"
 
12407
    ;;
 
12408
esac
 
12409
 
 
12410
 
 
12411
  echo "$as_me:$LINENO: checking whether to enable mod_proxy_connect" >&5
 
12412
echo $ECHO_N "checking whether to enable mod_proxy_connect... $ECHO_C" >&6
 
12413
    # Check whether --enable-proxy-connect or --disable-proxy-connect was given.
 
12414
if test "${enable_proxy_connect+set}" = set; then
 
12415
  enableval="$enable_proxy_connect"
 
12416
 
 
12417
else
 
12418
  enable_proxy_connect=$proxy_mods_enable
 
12419
fi;
 
12420
    _apmod_extra_msg=""
 
12421
      if test "$module_selection" = "most" -a "$enable_proxy_connect" = "most"; then
 
12422
    _apmod_error_fatal="no"
 
12423
  else
 
12424
    _apmod_error_fatal="yes"
 
12425
  fi
 
12426
  if test "$enable_proxy_connect" = "static"; then
 
12427
    enable_proxy_connect=yes
 
12428
  elif test "$enable_proxy_connect" = "yes"; then
 
12429
    enable_proxy_connect=$module_default
 
12430
    _apmod_extra_msg=" ($module_selection)"
 
12431
  elif test "$enable_proxy_connect" = "most"; then
 
12432
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
12433
      enable_proxy_connect=$module_default
 
12434
      _apmod_extra_msg=" ($module_selection)"
 
12435
    elif test "$enable_proxy_connect" != "yes"; then
 
12436
      enable_proxy_connect=no
 
12437
    fi
 
12438
  elif test "$enable_proxy_connect" = "maybe-all"; then
 
12439
    if test "$module_selection" = "all"; then
 
12440
      enable_proxy_connect=$module_default
 
12441
      _apmod_extra_msg=" (all)"
 
12442
    else
 
12443
      enable_proxy_connect=no
 
12444
    fi
 
12445
  fi
 
12446
  if test "$enable_proxy_connect" != "no"; then
 
12447
            :
 
12448
  fi
 
12449
  echo "$as_me:$LINENO: result: $enable_proxy_connect$_apmod_extra_msg" >&5
 
12450
echo "${ECHO_T}$enable_proxy_connect$_apmod_extra_msg" >&6
 
12451
  if test "$enable_proxy_connect" != "no"; then
 
12452
    case "$enable_proxy_connect" in
 
12453
    shared*)
 
12454
      enable_proxy_connect=`echo $enable_proxy_connect|sed 's/shared,*//'`
 
12455
      sharedobjs=yes
 
12456
      shared=yes
 
12457
      DSO_MODULES="$DSO_MODULES proxy_connect"
 
12458
      ;;
 
12459
    *)
 
12460
      MODLIST="$MODLIST proxy_connect"
 
12461
      if test "proxy_connect" = "so"; then
 
12462
          sharedobjs=yes
 
12463
      fi
 
12464
      shared="";;
 
12465
    esac
 
12466
 
 
12467
 
 
12468
  if test -z "$proxy_connect_objs"; then
 
12469
    objects="mod_proxy_connect.lo"
 
12470
  else
 
12471
    objects="$proxy_connect_objs"
 
12472
  fi
 
12473
 
 
12474
  if test -z "$module_standalone"; then
 
12475
    if test -z "$shared"; then
 
12476
      # The filename of a convenience library must have a "lib" prefix:
 
12477
      libname="libmod_proxy_connect.la"
 
12478
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
12479
      modpath_static="$modpath_static $libname"
 
12480
      cat >>$modpath_current/modules.mk<<EOF
 
12481
$libname: $objects
 
12482
        \$(MOD_LINK) $objects \$(MOD_PROXY_CONNECT_LDADD)
 
12483
EOF
 
12484
    else
 
12485
      apache_need_shared=yes
 
12486
      libname="mod_proxy_connect.la"
 
12487
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
12488
      modpath_shared="$modpath_shared $libname"
 
12489
      cat >>$modpath_current/modules.mk<<EOF
 
12490
$libname: $shobjects
 
12491
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_CONNECT_LDADD)
 
12492
EOF
 
12493
    fi
 
12494
  fi
 
12495
 
 
12496
 
 
12497
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_CONNECT_LDADD"
 
12498
 
 
12499
 
 
12500
 
 
12501
  fi
 
12502
 
 
12503
 
 
12504
  echo "$as_me:$LINENO: checking whether to enable mod_proxy_ftp" >&5
 
12505
echo $ECHO_N "checking whether to enable mod_proxy_ftp... $ECHO_C" >&6
 
12506
    # Check whether --enable-proxy-ftp or --disable-proxy-ftp was given.
 
12507
if test "${enable_proxy_ftp+set}" = set; then
 
12508
  enableval="$enable_proxy_ftp"
 
12509
 
 
12510
else
 
12511
  enable_proxy_ftp=$proxy_mods_enable
 
12512
fi;
 
12513
    _apmod_extra_msg=""
 
12514
      if test "$module_selection" = "most" -a "$enable_proxy_ftp" = "most"; then
 
12515
    _apmod_error_fatal="no"
 
12516
  else
 
12517
    _apmod_error_fatal="yes"
 
12518
  fi
 
12519
  if test "$enable_proxy_ftp" = "static"; then
 
12520
    enable_proxy_ftp=yes
 
12521
  elif test "$enable_proxy_ftp" = "yes"; then
 
12522
    enable_proxy_ftp=$module_default
 
12523
    _apmod_extra_msg=" ($module_selection)"
 
12524
  elif test "$enable_proxy_ftp" = "most"; then
 
12525
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
12526
      enable_proxy_ftp=$module_default
 
12527
      _apmod_extra_msg=" ($module_selection)"
 
12528
    elif test "$enable_proxy_ftp" != "yes"; then
 
12529
      enable_proxy_ftp=no
 
12530
    fi
 
12531
  elif test "$enable_proxy_ftp" = "maybe-all"; then
 
12532
    if test "$module_selection" = "all"; then
 
12533
      enable_proxy_ftp=$module_default
 
12534
      _apmod_extra_msg=" (all)"
 
12535
    else
 
12536
      enable_proxy_ftp=no
 
12537
    fi
 
12538
  fi
 
12539
  if test "$enable_proxy_ftp" != "no"; then
 
12540
            :
 
12541
  fi
 
12542
  echo "$as_me:$LINENO: result: $enable_proxy_ftp$_apmod_extra_msg" >&5
 
12543
echo "${ECHO_T}$enable_proxy_ftp$_apmod_extra_msg" >&6
 
12544
  if test "$enable_proxy_ftp" != "no"; then
 
12545
    case "$enable_proxy_ftp" in
 
12546
    shared*)
 
12547
      enable_proxy_ftp=`echo $enable_proxy_ftp|sed 's/shared,*//'`
 
12548
      sharedobjs=yes
 
12549
      shared=yes
 
12550
      DSO_MODULES="$DSO_MODULES proxy_ftp"
 
12551
      ;;
 
12552
    *)
 
12553
      MODLIST="$MODLIST proxy_ftp"
 
12554
      if test "proxy_ftp" = "so"; then
 
12555
          sharedobjs=yes
 
12556
      fi
 
12557
      shared="";;
 
12558
    esac
 
12559
 
 
12560
 
 
12561
  if test -z "$proxy_ftp_objs"; then
 
12562
    objects="mod_proxy_ftp.lo"
 
12563
  else
 
12564
    objects="$proxy_ftp_objs"
 
12565
  fi
 
12566
 
 
12567
  if test -z "$module_standalone"; then
 
12568
    if test -z "$shared"; then
 
12569
      # The filename of a convenience library must have a "lib" prefix:
 
12570
      libname="libmod_proxy_ftp.la"
 
12571
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
12572
      modpath_static="$modpath_static $libname"
 
12573
      cat >>$modpath_current/modules.mk<<EOF
 
12574
$libname: $objects
 
12575
        \$(MOD_LINK) $objects \$(MOD_PROXY_FTP_LDADD)
 
12576
EOF
 
12577
    else
 
12578
      apache_need_shared=yes
 
12579
      libname="mod_proxy_ftp.la"
 
12580
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
12581
      modpath_shared="$modpath_shared $libname"
 
12582
      cat >>$modpath_current/modules.mk<<EOF
 
12583
$libname: $shobjects
 
12584
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_FTP_LDADD)
 
12585
EOF
 
12586
    fi
 
12587
  fi
 
12588
 
 
12589
 
 
12590
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_FTP_LDADD"
 
12591
 
 
12592
 
 
12593
 
 
12594
  fi
 
12595
 
 
12596
 
 
12597
  echo "$as_me:$LINENO: checking whether to enable mod_proxy_http" >&5
 
12598
echo $ECHO_N "checking whether to enable mod_proxy_http... $ECHO_C" >&6
 
12599
    # Check whether --enable-proxy-http or --disable-proxy-http was given.
 
12600
if test "${enable_proxy_http+set}" = set; then
 
12601
  enableval="$enable_proxy_http"
 
12602
 
 
12603
else
 
12604
  enable_proxy_http=$proxy_mods_enable
 
12605
fi;
 
12606
    _apmod_extra_msg=""
 
12607
      if test "$module_selection" = "most" -a "$enable_proxy_http" = "most"; then
 
12608
    _apmod_error_fatal="no"
 
12609
  else
 
12610
    _apmod_error_fatal="yes"
 
12611
  fi
 
12612
  if test "$enable_proxy_http" = "static"; then
 
12613
    enable_proxy_http=yes
 
12614
  elif test "$enable_proxy_http" = "yes"; then
 
12615
    enable_proxy_http=$module_default
 
12616
    _apmod_extra_msg=" ($module_selection)"
 
12617
  elif test "$enable_proxy_http" = "most"; then
 
12618
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
12619
      enable_proxy_http=$module_default
 
12620
      _apmod_extra_msg=" ($module_selection)"
 
12621
    elif test "$enable_proxy_http" != "yes"; then
 
12622
      enable_proxy_http=no
 
12623
    fi
 
12624
  elif test "$enable_proxy_http" = "maybe-all"; then
 
12625
    if test "$module_selection" = "all"; then
 
12626
      enable_proxy_http=$module_default
 
12627
      _apmod_extra_msg=" (all)"
 
12628
    else
 
12629
      enable_proxy_http=no
 
12630
    fi
 
12631
  fi
 
12632
  if test "$enable_proxy_http" != "no"; then
 
12633
            :
 
12634
  fi
 
12635
  echo "$as_me:$LINENO: result: $enable_proxy_http$_apmod_extra_msg" >&5
 
12636
echo "${ECHO_T}$enable_proxy_http$_apmod_extra_msg" >&6
 
12637
  if test "$enable_proxy_http" != "no"; then
 
12638
    case "$enable_proxy_http" in
 
12639
    shared*)
 
12640
      enable_proxy_http=`echo $enable_proxy_http|sed 's/shared,*//'`
 
12641
      sharedobjs=yes
 
12642
      shared=yes
 
12643
      DSO_MODULES="$DSO_MODULES proxy_http"
 
12644
      ;;
 
12645
    *)
 
12646
      MODLIST="$MODLIST proxy_http"
 
12647
      if test "proxy_http" = "so"; then
 
12648
          sharedobjs=yes
 
12649
      fi
 
12650
      shared="";;
 
12651
    esac
 
12652
 
 
12653
 
 
12654
  if test -z "$proxy_http_objs"; then
 
12655
    objects="mod_proxy_http.lo"
 
12656
  else
 
12657
    objects="$proxy_http_objs"
 
12658
  fi
 
12659
 
 
12660
  if test -z "$module_standalone"; then
 
12661
    if test -z "$shared"; then
 
12662
      # The filename of a convenience library must have a "lib" prefix:
 
12663
      libname="libmod_proxy_http.la"
 
12664
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
12665
      modpath_static="$modpath_static $libname"
 
12666
      cat >>$modpath_current/modules.mk<<EOF
 
12667
$libname: $objects
 
12668
        \$(MOD_LINK) $objects \$(MOD_PROXY_HTTP_LDADD)
 
12669
EOF
 
12670
    else
 
12671
      apache_need_shared=yes
 
12672
      libname="mod_proxy_http.la"
 
12673
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
12674
      modpath_shared="$modpath_shared $libname"
 
12675
      cat >>$modpath_current/modules.mk<<EOF
 
12676
$libname: $shobjects
 
12677
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_HTTP_LDADD)
 
12678
EOF
 
12679
    fi
 
12680
  fi
 
12681
 
 
12682
 
 
12683
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_HTTP_LDADD"
 
12684
 
 
12685
 
 
12686
 
 
12687
  fi
 
12688
 
 
12689
 
 
12690
  echo "$as_me:$LINENO: checking whether to enable mod_proxy_ajp" >&5
 
12691
echo $ECHO_N "checking whether to enable mod_proxy_ajp... $ECHO_C" >&6
 
12692
    # Check whether --enable-proxy-ajp or --disable-proxy-ajp was given.
 
12693
if test "${enable_proxy_ajp+set}" = set; then
 
12694
  enableval="$enable_proxy_ajp"
 
12695
 
 
12696
else
 
12697
  enable_proxy_ajp=$proxy_mods_enable
 
12698
fi;
 
12699
    _apmod_extra_msg=""
 
12700
      if test "$module_selection" = "most" -a "$enable_proxy_ajp" = "most"; then
 
12701
    _apmod_error_fatal="no"
 
12702
  else
 
12703
    _apmod_error_fatal="yes"
 
12704
  fi
 
12705
  if test "$enable_proxy_ajp" = "static"; then
 
12706
    enable_proxy_ajp=yes
 
12707
  elif test "$enable_proxy_ajp" = "yes"; then
 
12708
    enable_proxy_ajp=$module_default
 
12709
    _apmod_extra_msg=" ($module_selection)"
 
12710
  elif test "$enable_proxy_ajp" = "most"; then
 
12711
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
12712
      enable_proxy_ajp=$module_default
 
12713
      _apmod_extra_msg=" ($module_selection)"
 
12714
    elif test "$enable_proxy_ajp" != "yes"; then
 
12715
      enable_proxy_ajp=no
 
12716
    fi
 
12717
  elif test "$enable_proxy_ajp" = "maybe-all"; then
 
12718
    if test "$module_selection" = "all"; then
 
12719
      enable_proxy_ajp=$module_default
 
12720
      _apmod_extra_msg=" (all)"
 
12721
    else
 
12722
      enable_proxy_ajp=no
 
12723
    fi
 
12724
  fi
 
12725
  if test "$enable_proxy_ajp" != "no"; then
 
12726
            :
 
12727
  fi
 
12728
  echo "$as_me:$LINENO: result: $enable_proxy_ajp$_apmod_extra_msg" >&5
 
12729
echo "${ECHO_T}$enable_proxy_ajp$_apmod_extra_msg" >&6
 
12730
  if test "$enable_proxy_ajp" != "no"; then
 
12731
    case "$enable_proxy_ajp" in
 
12732
    shared*)
 
12733
      enable_proxy_ajp=`echo $enable_proxy_ajp|sed 's/shared,*//'`
 
12734
      sharedobjs=yes
 
12735
      shared=yes
 
12736
      DSO_MODULES="$DSO_MODULES proxy_ajp"
 
12737
      ;;
 
12738
    *)
 
12739
      MODLIST="$MODLIST proxy_ajp"
 
12740
      if test "proxy_ajp" = "so"; then
 
12741
          sharedobjs=yes
 
12742
      fi
 
12743
      shared="";;
 
12744
    esac
 
12745
 
 
12746
 
 
12747
  if test -z "$proxy_ajp_objs"; then
 
12748
    objects="mod_proxy_ajp.lo"
 
12749
  else
 
12750
    objects="$proxy_ajp_objs"
 
12751
  fi
 
12752
 
 
12753
  if test -z "$module_standalone"; then
 
12754
    if test -z "$shared"; then
 
12755
      # The filename of a convenience library must have a "lib" prefix:
 
12756
      libname="libmod_proxy_ajp.la"
 
12757
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
12758
      modpath_static="$modpath_static $libname"
 
12759
      cat >>$modpath_current/modules.mk<<EOF
 
12760
$libname: $objects
 
12761
        \$(MOD_LINK) $objects \$(MOD_PROXY_AJP_LDADD)
 
12762
EOF
 
12763
    else
 
12764
      apache_need_shared=yes
 
12765
      libname="mod_proxy_ajp.la"
 
12766
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
12767
      modpath_shared="$modpath_shared $libname"
 
12768
      cat >>$modpath_current/modules.mk<<EOF
 
12769
$libname: $shobjects
 
12770
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_AJP_LDADD)
 
12771
EOF
 
12772
    fi
 
12773
  fi
 
12774
 
 
12775
 
 
12776
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_AJP_LDADD"
 
12777
 
 
12778
 
 
12779
 
 
12780
  fi
 
12781
 
 
12782
 
 
12783
  echo "$as_me:$LINENO: checking whether to enable mod_proxy_balancer" >&5
 
12784
echo $ECHO_N "checking whether to enable mod_proxy_balancer... $ECHO_C" >&6
 
12785
    # Check whether --enable-proxy-balancer or --disable-proxy-balancer was given.
 
12786
if test "${enable_proxy_balancer+set}" = set; then
 
12787
  enableval="$enable_proxy_balancer"
 
12788
 
 
12789
else
 
12790
  enable_proxy_balancer=$proxy_mods_enable
 
12791
fi;
 
12792
    _apmod_extra_msg=""
 
12793
      if test "$module_selection" = "most" -a "$enable_proxy_balancer" = "most"; then
 
12794
    _apmod_error_fatal="no"
 
12795
  else
 
12796
    _apmod_error_fatal="yes"
 
12797
  fi
 
12798
  if test "$enable_proxy_balancer" = "static"; then
 
12799
    enable_proxy_balancer=yes
 
12800
  elif test "$enable_proxy_balancer" = "yes"; then
 
12801
    enable_proxy_balancer=$module_default
 
12802
    _apmod_extra_msg=" ($module_selection)"
 
12803
  elif test "$enable_proxy_balancer" = "most"; then
 
12804
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
12805
      enable_proxy_balancer=$module_default
 
12806
      _apmod_extra_msg=" ($module_selection)"
 
12807
    elif test "$enable_proxy_balancer" != "yes"; then
 
12808
      enable_proxy_balancer=no
 
12809
    fi
 
12810
  elif test "$enable_proxy_balancer" = "maybe-all"; then
 
12811
    if test "$module_selection" = "all"; then
 
12812
      enable_proxy_balancer=$module_default
 
12813
      _apmod_extra_msg=" (all)"
 
12814
    else
 
12815
      enable_proxy_balancer=no
 
12816
    fi
 
12817
  fi
 
12818
  if test "$enable_proxy_balancer" != "no"; then
 
12819
            :
 
12820
  fi
 
12821
  echo "$as_me:$LINENO: result: $enable_proxy_balancer$_apmod_extra_msg" >&5
 
12822
echo "${ECHO_T}$enable_proxy_balancer$_apmod_extra_msg" >&6
 
12823
  if test "$enable_proxy_balancer" != "no"; then
 
12824
    case "$enable_proxy_balancer" in
 
12825
    shared*)
 
12826
      enable_proxy_balancer=`echo $enable_proxy_balancer|sed 's/shared,*//'`
 
12827
      sharedobjs=yes
 
12828
      shared=yes
 
12829
      DSO_MODULES="$DSO_MODULES proxy_balancer"
 
12830
      ;;
 
12831
    *)
 
12832
      MODLIST="$MODLIST proxy_balancer"
 
12833
      if test "proxy_balancer" = "so"; then
 
12834
          sharedobjs=yes
 
12835
      fi
 
12836
      shared="";;
 
12837
    esac
 
12838
 
 
12839
 
 
12840
  if test -z "$proxy_balancer_objs"; then
 
12841
    objects="mod_proxy_balancer.lo"
 
12842
  else
 
12843
    objects="$proxy_balancer_objs"
 
12844
  fi
 
12845
 
 
12846
  if test -z "$module_standalone"; then
 
12847
    if test -z "$shared"; then
 
12848
      # The filename of a convenience library must have a "lib" prefix:
 
12849
      libname="libmod_proxy_balancer.la"
 
12850
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
12851
      modpath_static="$modpath_static $libname"
 
12852
      cat >>$modpath_current/modules.mk<<EOF
 
12853
$libname: $objects
 
12854
        \$(MOD_LINK) $objects \$(MOD_PROXY_BALANCER_LDADD)
 
12855
EOF
 
12856
    else
 
12857
      apache_need_shared=yes
 
12858
      libname="mod_proxy_balancer.la"
 
12859
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
12860
      modpath_shared="$modpath_shared $libname"
 
12861
      cat >>$modpath_current/modules.mk<<EOF
 
12862
$libname: $shobjects
 
12863
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_PROXY_BALANCER_LDADD)
 
12864
EOF
 
12865
    fi
 
12866
  fi
 
12867
 
 
12868
 
 
12869
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_PROXY_BALANCER_LDADD"
 
12870
 
 
12871
 
 
12872
 
 
12873
  fi
 
12874
 
 
12875
 
 
12876
 
 
12877
  if test "x$INCLUDES" = "x"; then
 
12878
    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current/../generators\""
 
12879
    INCLUDES="-I\$(top_srcdir)/$modpath_current/../generators"
 
12880
  else
 
12881
    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current/../generators"
 
12882
    for i in $apr_addto_bugger; do
 
12883
      apr_addto_duplicate="0"
 
12884
      for j in $INCLUDES; do
 
12885
        if test "x$i" = "x$j"; then
 
12886
          apr_addto_duplicate="1"
 
12887
          break
 
12888
        fi
 
12889
      done
 
12890
      if test $apr_addto_duplicate = "0"; then
 
12891
        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
 
12892
        INCLUDES="$INCLUDES $i"
 
12893
      fi
 
12894
    done
 
12895
  fi
 
12896
 
 
12897
 
 
12898
 
 
12899
  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
 
12900
  echo "static = $modpath_static" >> $modpath_current/modules.mk
 
12901
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
 
12902
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
 
12903
    MODULE_DIRS="$MODULE_DIRS $current_dir"
 
12904
  else
 
12905
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
 
12906
  fi
 
12907
 
 
12908
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
 
12909
 
 
12910
 
 
12911
 
 
12912
 
 
12913
 
 
12914
 
 
12915
 
 
12916
  current_dir=ssl
 
12917
  modpath_current=modules/ssl
 
12918
  modpath_static=
 
12919
  modpath_shared=
 
12920
  test -d ssl || $srcdir/build/mkdir.sh $modpath_current
 
12921
  > $modpath_current/modules.mk
 
12922
 
 
12923
 
 
12924
ssl_objs="mod_ssl.lo ssl_engine_config.lo ssl_engine_dh.lo ssl_engine_init.lo ssl_engine_io.lo ssl_engine_kernel.lo ssl_engine_log.lo ssl_engine_mutex.lo ssl_engine_pphrase.lo ssl_engine_rand.lo ssl_engine_vars.lo ssl_expr.lo ssl_expr_eval.lo ssl_expr_parse.lo ssl_expr_scan.lo ssl_scache.lo ssl_scache_dbm.lo ssl_scache_shmcb.lo ssl_scache_dc.lo ssl_util.lo ssl_util_ssl.lo "
 
12925
 
 
12926
  echo "$as_me:$LINENO: checking whether to enable mod_ssl" >&5
 
12927
echo $ECHO_N "checking whether to enable mod_ssl... $ECHO_C" >&6
 
12928
    # Check whether --enable-ssl or --disable-ssl was given.
 
12929
if test "${enable_ssl+set}" = set; then
 
12930
  enableval="$enable_ssl"
 
12931
 
 
12932
else
 
12933
  enable_ssl=no
 
12934
fi;
 
12935
    _apmod_extra_msg=""
 
12936
      if test "$module_selection" = "most" -a "$enable_ssl" = "most"; then
 
12937
    _apmod_error_fatal="no"
 
12938
  else
 
12939
    _apmod_error_fatal="yes"
 
12940
  fi
 
12941
  if test "$enable_ssl" = "static"; then
 
12942
    enable_ssl=yes
 
12943
  elif test "$enable_ssl" = "yes"; then
 
12944
    enable_ssl=$module_default
 
12945
    _apmod_extra_msg=" ($module_selection)"
 
12946
  elif test "$enable_ssl" = "most"; then
 
12947
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
12948
      enable_ssl=$module_default
 
12949
      _apmod_extra_msg=" ($module_selection)"
 
12950
    elif test "$enable_ssl" != "yes"; then
 
12951
      enable_ssl=no
 
12952
    fi
 
12953
  elif test "$enable_ssl" = "maybe-all"; then
 
12954
    if test "$module_selection" = "all"; then
 
12955
      enable_ssl=$module_default
 
12956
      _apmod_extra_msg=" (all)"
 
12957
    else
 
12958
      enable_ssl=no
 
12959
    fi
 
12960
  fi
 
12961
  if test "$enable_ssl" != "no"; then
 
12962
            echo "$as_me:$LINENO: result: checking dependencies" >&5
 
12963
echo "${ECHO_T}checking dependencies" >&6
 
12964
 
 
12965
 
 
12966
if test "x$ap_ssltk_configured" = "x"; then
 
12967
    ap_ssltk_base=""
 
12968
  ap_ssltk_inc=""
 
12969
  ap_ssltk_lib=""
 
12970
  ap_ssltk_type=""
 
12971
 
 
12972
    echo "$as_me:$LINENO: checking for SSL/TLS toolkit base" >&5
 
12973
echo $ECHO_N "checking for SSL/TLS toolkit base... $ECHO_C" >&6
 
12974
 
 
12975
# Check whether --with-sslc or --without-sslc was given.
 
12976
if test "${with_sslc+set}" = set; then
 
12977
  withval="$with_sslc"
 
12978
 
 
12979
        if test "x$withval" != "xyes" -a "x$withval" != "x"; then
 
12980
            ap_ssltk_base="`cd $withval ; pwd`"
 
12981
    fi
 
12982
    ap_ssltk_type="sslc"
 
12983
 
 
12984
fi;
 
12985
 
 
12986
# Check whether --with-ssl or --without-ssl was given.
 
12987
if test "${with_ssl+set}" = set; then
 
12988
  withval="$with_ssl"
 
12989
 
 
12990
        if test "x$withval" != "xyes" -a "x$withval" != "x"; then
 
12991
            ap_ssltk_base="`cd $withval ; pwd`"
 
12992
    fi
 
12993
 
 
12994
fi;
 
12995
  if test "x$ap_ssltk_base" = "x"; then
 
12996
    echo "$as_me:$LINENO: result: none" >&5
 
12997
echo "${ECHO_T}none" >&6
 
12998
  else
 
12999
    echo "$as_me:$LINENO: result: $ap_ssltk_base" >&5
 
13000
echo "${ECHO_T}$ap_ssltk_base" >&6
 
13001
  fi
 
13002
 
 
13003
    saved_CPPFLAGS=$CPPFLAGS
 
13004
  if test "x$ap_ssltk_base" != "x"; then
 
13005
    ap_ssltk_inc="-I$ap_ssltk_base/include"
 
13006
    CPPFLAGS="$CPPFLAGS $ap_ssltk_inc"
 
13007
  fi
 
13008
  if test "x$ap_ssltk_type" = "x"; then
 
13009
    echo "$as_me:$LINENO: checking for OpenSSL version" >&5
 
13010
echo $ECHO_N "checking for OpenSSL version... $ECHO_C" >&6
 
13011
 
 
13012
 
 
13013
for ac_header in openssl/opensslv.h openssl/ssl.h
 
13014
do
 
13015
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
13016
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
13017
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
13018
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
13019
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
13020
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13021
fi
 
13022
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
13023
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
13024
else
 
13025
  # Is the header compilable?
 
13026
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
13027
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
13028
cat >conftest.$ac_ext <<_ACEOF
 
13029
/* confdefs.h.  */
 
13030
_ACEOF
 
13031
cat confdefs.h >>conftest.$ac_ext
 
13032
cat >>conftest.$ac_ext <<_ACEOF
 
13033
/* end confdefs.h.  */
 
13034
$ac_includes_default
 
13035
#include <$ac_header>
 
13036
_ACEOF
 
13037
rm -f conftest.$ac_objext
 
13038
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13039
  (eval $ac_compile) 2>conftest.er1
 
13040
  ac_status=$?
 
13041
  grep -v '^ *+' conftest.er1 >conftest.err
 
13042
  rm -f conftest.er1
 
13043
  cat conftest.err >&5
 
13044
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13045
  (exit $ac_status); } &&
 
13046
         { ac_try='test -z "$ac_c_werror_flag"
 
13047
                         || test ! -s conftest.err'
 
13048
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13049
  (eval $ac_try) 2>&5
 
13050
  ac_status=$?
 
13051
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13052
  (exit $ac_status); }; } &&
 
13053
         { ac_try='test -s conftest.$ac_objext'
 
13054
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13055
  (eval $ac_try) 2>&5
 
13056
  ac_status=$?
 
13057
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13058
  (exit $ac_status); }; }; then
 
13059
  ac_header_compiler=yes
 
13060
else
 
13061
  echo "$as_me: failed program was:" >&5
 
13062
sed 's/^/| /' conftest.$ac_ext >&5
 
13063
 
 
13064
ac_header_compiler=no
 
13065
fi
 
13066
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
13067
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
13068
echo "${ECHO_T}$ac_header_compiler" >&6
 
13069
 
 
13070
# Is the header present?
 
13071
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
13072
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
13073
cat >conftest.$ac_ext <<_ACEOF
 
13074
/* confdefs.h.  */
 
13075
_ACEOF
 
13076
cat confdefs.h >>conftest.$ac_ext
 
13077
cat >>conftest.$ac_ext <<_ACEOF
 
13078
/* end confdefs.h.  */
 
13079
#include <$ac_header>
 
13080
_ACEOF
 
13081
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
13082
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
13083
  ac_status=$?
 
13084
  grep -v '^ *+' conftest.er1 >conftest.err
 
13085
  rm -f conftest.er1
 
13086
  cat conftest.err >&5
 
13087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13088
  (exit $ac_status); } >/dev/null; then
 
13089
  if test -s conftest.err; then
 
13090
    ac_cpp_err=$ac_c_preproc_warn_flag
 
13091
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
13092
  else
 
13093
    ac_cpp_err=
 
13094
  fi
 
13095
else
 
13096
  ac_cpp_err=yes
 
13097
fi
 
13098
if test -z "$ac_cpp_err"; then
 
13099
  ac_header_preproc=yes
 
13100
else
 
13101
  echo "$as_me: failed program was:" >&5
 
13102
sed 's/^/| /' conftest.$ac_ext >&5
 
13103
 
 
13104
  ac_header_preproc=no
 
13105
fi
 
13106
rm -f conftest.err conftest.$ac_ext
 
13107
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
13108
echo "${ECHO_T}$ac_header_preproc" >&6
 
13109
 
 
13110
# So?  What about this header?
 
13111
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
13112
  yes:no: )
 
13113
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
13114
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
13115
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
13116
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
13117
    ac_header_preproc=yes
 
13118
    ;;
 
13119
  no:yes:* )
 
13120
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
13121
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
13122
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
13123
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
13124
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
13125
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
13126
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
13127
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
13128
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
13129
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
13130
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
13131
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
13132
    (
 
13133
      cat <<\_ASBOX
 
13134
## ------------------------------------------ ##
 
13135
## Report this to the AC_PACKAGE_NAME lists.  ##
 
13136
## ------------------------------------------ ##
 
13137
_ASBOX
 
13138
    ) |
 
13139
      sed "s/^/$as_me: WARNING:     /" >&2
 
13140
    ;;
 
13141
esac
 
13142
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
13143
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
13144
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
13145
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13146
else
 
13147
  eval "$as_ac_Header=\$ac_header_preproc"
 
13148
fi
 
13149
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
13150
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
13151
 
 
13152
fi
 
13153
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
13154
  cat >>confdefs.h <<_ACEOF
 
13155
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
13156
_ACEOF
 
13157
 ap_ssltk_type="openssl"
 
13158
fi
 
13159
 
 
13160
done
 
13161
 
 
13162
    if test "$ap_ssltk_type" = "openssl"; then
 
13163
            cat >conftest.$ac_ext <<_ACEOF
 
13164
/* confdefs.h.  */
 
13165
_ACEOF
 
13166
cat confdefs.h >>conftest.$ac_ext
 
13167
cat >>conftest.$ac_ext <<_ACEOF
 
13168
/* end confdefs.h.  */
 
13169
#include <openssl/opensslv.h>
 
13170
int
 
13171
main ()
 
13172
{
 
13173
 
 
13174
#if !defined(OPENSSL_VERSION_NUMBER)
 
13175
#error "Missing openssl version"
 
13176
#endif
 
13177
#if  (OPENSSL_VERSION_NUMBER < 0x009060af) \
 
13178
 || ((OPENSSL_VERSION_NUMBER > 0x00907000) && (OPENSSL_VERSION_NUMBER < 0x0090702f))
 
13179
#error "Insecure openssl version " OPENSSL_VERSION_TEXT
 
13180
#endif
 
13181
  ;
 
13182
  return 0;
 
13183
}
 
13184
_ACEOF
 
13185
rm -f conftest.$ac_objext
 
13186
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13187
  (eval $ac_compile) 2>conftest.er1
 
13188
  ac_status=$?
 
13189
  grep -v '^ *+' conftest.er1 >conftest.err
 
13190
  rm -f conftest.er1
 
13191
  cat conftest.err >&5
 
13192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13193
  (exit $ac_status); } &&
 
13194
         { ac_try='test -z "$ac_c_werror_flag"
 
13195
                         || test ! -s conftest.err'
 
13196
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13197
  (eval $ac_try) 2>&5
 
13198
  ac_status=$?
 
13199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13200
  (exit $ac_status); }; } &&
 
13201
         { ac_try='test -s conftest.$ac_objext'
 
13202
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13203
  (eval $ac_try) 2>&5
 
13204
  ac_status=$?
 
13205
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13206
  (exit $ac_status); }; }; then
 
13207
  echo "$as_me:$LINENO: result: OK" >&5
 
13208
echo "${ECHO_T}OK" >&6
 
13209
else
 
13210
  echo "$as_me: failed program was:" >&5
 
13211
sed 's/^/| /' conftest.$ac_ext >&5
 
13212
 
 
13213
       echo "$as_me:$LINENO: result: not encouraging" >&5
 
13214
echo "${ECHO_T}not encouraging" >&6
 
13215
       echo "WARNING: OpenSSL version may contain security vulnerabilities!"
 
13216
       echo "         Ensure the latest security patches have been applied!"
 
13217
 
 
13218
fi
 
13219
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
13220
 
 
13221
for ac_header in openssl/engine.h
 
13222
do
 
13223
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
13224
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
13225
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
13226
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
13227
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
13228
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13229
fi
 
13230
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
13231
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
13232
else
 
13233
  # Is the header compilable?
 
13234
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
13235
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
13236
cat >conftest.$ac_ext <<_ACEOF
 
13237
/* confdefs.h.  */
 
13238
_ACEOF
 
13239
cat confdefs.h >>conftest.$ac_ext
 
13240
cat >>conftest.$ac_ext <<_ACEOF
 
13241
/* end confdefs.h.  */
 
13242
$ac_includes_default
 
13243
#include <$ac_header>
 
13244
_ACEOF
 
13245
rm -f conftest.$ac_objext
 
13246
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13247
  (eval $ac_compile) 2>conftest.er1
 
13248
  ac_status=$?
 
13249
  grep -v '^ *+' conftest.er1 >conftest.err
 
13250
  rm -f conftest.er1
 
13251
  cat conftest.err >&5
 
13252
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13253
  (exit $ac_status); } &&
 
13254
         { ac_try='test -z "$ac_c_werror_flag"
 
13255
                         || test ! -s conftest.err'
 
13256
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13257
  (eval $ac_try) 2>&5
 
13258
  ac_status=$?
 
13259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13260
  (exit $ac_status); }; } &&
 
13261
         { ac_try='test -s conftest.$ac_objext'
 
13262
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13263
  (eval $ac_try) 2>&5
 
13264
  ac_status=$?
 
13265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13266
  (exit $ac_status); }; }; then
 
13267
  ac_header_compiler=yes
 
13268
else
 
13269
  echo "$as_me: failed program was:" >&5
 
13270
sed 's/^/| /' conftest.$ac_ext >&5
 
13271
 
 
13272
ac_header_compiler=no
 
13273
fi
 
13274
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
13275
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
13276
echo "${ECHO_T}$ac_header_compiler" >&6
 
13277
 
 
13278
# Is the header present?
 
13279
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
13280
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
13281
cat >conftest.$ac_ext <<_ACEOF
 
13282
/* confdefs.h.  */
 
13283
_ACEOF
 
13284
cat confdefs.h >>conftest.$ac_ext
 
13285
cat >>conftest.$ac_ext <<_ACEOF
 
13286
/* end confdefs.h.  */
 
13287
#include <$ac_header>
 
13288
_ACEOF
 
13289
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
13290
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
13291
  ac_status=$?
 
13292
  grep -v '^ *+' conftest.er1 >conftest.err
 
13293
  rm -f conftest.er1
 
13294
  cat conftest.err >&5
 
13295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13296
  (exit $ac_status); } >/dev/null; then
 
13297
  if test -s conftest.err; then
 
13298
    ac_cpp_err=$ac_c_preproc_warn_flag
 
13299
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
13300
  else
 
13301
    ac_cpp_err=
 
13302
  fi
 
13303
else
 
13304
  ac_cpp_err=yes
 
13305
fi
 
13306
if test -z "$ac_cpp_err"; then
 
13307
  ac_header_preproc=yes
 
13308
else
 
13309
  echo "$as_me: failed program was:" >&5
 
13310
sed 's/^/| /' conftest.$ac_ext >&5
 
13311
 
 
13312
  ac_header_preproc=no
 
13313
fi
 
13314
rm -f conftest.err conftest.$ac_ext
 
13315
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
13316
echo "${ECHO_T}$ac_header_preproc" >&6
 
13317
 
 
13318
# So?  What about this header?
 
13319
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
13320
  yes:no: )
 
13321
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
13322
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
13323
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
13324
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
13325
    ac_header_preproc=yes
 
13326
    ;;
 
13327
  no:yes:* )
 
13328
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
13329
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
13330
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
13331
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
13332
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
13333
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
13334
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
13335
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
13336
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
13337
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
13338
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
13339
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
13340
    (
 
13341
      cat <<\_ASBOX
 
13342
## ------------------------------------------ ##
 
13343
## Report this to the AC_PACKAGE_NAME lists.  ##
 
13344
## ------------------------------------------ ##
 
13345
_ASBOX
 
13346
    ) |
 
13347
      sed "s/^/$as_me: WARNING:     /" >&2
 
13348
    ;;
 
13349
esac
 
13350
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
13351
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
13352
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
13353
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13354
else
 
13355
  eval "$as_ac_Header=\$ac_header_preproc"
 
13356
fi
 
13357
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
13358
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
13359
 
 
13360
fi
 
13361
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
13362
  cat >>confdefs.h <<_ACEOF
 
13363
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
13364
_ACEOF
 
13365
 
 
13366
fi
 
13367
 
 
13368
done
 
13369
 
 
13370
      if test -n "$PKGCONFIG"; then
 
13371
        $PKGCONFIG openssl
 
13372
        if test $? -eq 0; then
 
13373
          ap_ssltk_inc="$ap_ssltk_inc `$PKGCONFIG --cflags-only-I openssl`"
 
13374
          CPPFLAGS="$CPPFLAGS $ap_ssltk_inc"
 
13375
        fi
 
13376
      fi
 
13377
    else
 
13378
      echo "$as_me:$LINENO: result: no OpenSSL headers found" >&5
 
13379
echo "${ECHO_T}no OpenSSL headers found" >&6
 
13380
    fi
 
13381
  fi
 
13382
  if test "$ap_ssltk_type" != "openssl"; then
 
13383
        echo "$as_me:$LINENO: checking for SSL-C version" >&5
 
13384
echo $ECHO_N "checking for SSL-C version... $ECHO_C" >&6
 
13385
 
 
13386
for ac_header in sslc.h
 
13387
do
 
13388
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
13389
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
13390
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
13391
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
13392
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
13393
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13394
fi
 
13395
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
13396
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
13397
else
 
13398
  # Is the header compilable?
 
13399
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
13400
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
13401
cat >conftest.$ac_ext <<_ACEOF
 
13402
/* confdefs.h.  */
 
13403
_ACEOF
 
13404
cat confdefs.h >>conftest.$ac_ext
 
13405
cat >>conftest.$ac_ext <<_ACEOF
 
13406
/* end confdefs.h.  */
 
13407
$ac_includes_default
 
13408
#include <$ac_header>
 
13409
_ACEOF
 
13410
rm -f conftest.$ac_objext
 
13411
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13412
  (eval $ac_compile) 2>conftest.er1
 
13413
  ac_status=$?
 
13414
  grep -v '^ *+' conftest.er1 >conftest.err
 
13415
  rm -f conftest.er1
 
13416
  cat conftest.err >&5
 
13417
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13418
  (exit $ac_status); } &&
 
13419
         { ac_try='test -z "$ac_c_werror_flag"
 
13420
                         || test ! -s conftest.err'
 
13421
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13422
  (eval $ac_try) 2>&5
 
13423
  ac_status=$?
 
13424
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13425
  (exit $ac_status); }; } &&
 
13426
         { ac_try='test -s conftest.$ac_objext'
 
13427
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13428
  (eval $ac_try) 2>&5
 
13429
  ac_status=$?
 
13430
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13431
  (exit $ac_status); }; }; then
 
13432
  ac_header_compiler=yes
 
13433
else
 
13434
  echo "$as_me: failed program was:" >&5
 
13435
sed 's/^/| /' conftest.$ac_ext >&5
 
13436
 
 
13437
ac_header_compiler=no
 
13438
fi
 
13439
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
13440
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
13441
echo "${ECHO_T}$ac_header_compiler" >&6
 
13442
 
 
13443
# Is the header present?
 
13444
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
13445
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
13446
cat >conftest.$ac_ext <<_ACEOF
 
13447
/* confdefs.h.  */
 
13448
_ACEOF
 
13449
cat confdefs.h >>conftest.$ac_ext
 
13450
cat >>conftest.$ac_ext <<_ACEOF
 
13451
/* end confdefs.h.  */
 
13452
#include <$ac_header>
 
13453
_ACEOF
 
13454
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
13455
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
13456
  ac_status=$?
 
13457
  grep -v '^ *+' conftest.er1 >conftest.err
 
13458
  rm -f conftest.er1
 
13459
  cat conftest.err >&5
 
13460
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13461
  (exit $ac_status); } >/dev/null; then
 
13462
  if test -s conftest.err; then
 
13463
    ac_cpp_err=$ac_c_preproc_warn_flag
 
13464
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
13465
  else
 
13466
    ac_cpp_err=
 
13467
  fi
 
13468
else
 
13469
  ac_cpp_err=yes
 
13470
fi
 
13471
if test -z "$ac_cpp_err"; then
 
13472
  ac_header_preproc=yes
 
13473
else
 
13474
  echo "$as_me: failed program was:" >&5
 
13475
sed 's/^/| /' conftest.$ac_ext >&5
 
13476
 
 
13477
  ac_header_preproc=no
 
13478
fi
 
13479
rm -f conftest.err conftest.$ac_ext
 
13480
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
13481
echo "${ECHO_T}$ac_header_preproc" >&6
 
13482
 
 
13483
# So?  What about this header?
 
13484
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
13485
  yes:no: )
 
13486
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
13487
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
13488
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
13489
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
13490
    ac_header_preproc=yes
 
13491
    ;;
 
13492
  no:yes:* )
 
13493
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
13494
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
13495
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
13496
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
13497
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
13498
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
13499
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
13500
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
13501
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
13502
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
13503
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
13504
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
13505
    (
 
13506
      cat <<\_ASBOX
 
13507
## ------------------------------------------ ##
 
13508
## Report this to the AC_PACKAGE_NAME lists.  ##
 
13509
## ------------------------------------------ ##
 
13510
_ASBOX
 
13511
    ) |
 
13512
      sed "s/^/$as_me: WARNING:     /" >&2
 
13513
    ;;
 
13514
esac
 
13515
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
13516
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
13517
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
13518
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13519
else
 
13520
  eval "$as_ac_Header=\$ac_header_preproc"
 
13521
fi
 
13522
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
13523
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
13524
 
 
13525
fi
 
13526
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
13527
  cat >>confdefs.h <<_ACEOF
 
13528
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
13529
_ACEOF
 
13530
 ap_ssltk_type="sslc"
 
13531
else
 
13532
  ap_ssltk_type=""
 
13533
fi
 
13534
 
 
13535
done
 
13536
 
 
13537
    if test "$ap_ssltk_type" = "sslc"; then
 
13538
      echo "$as_me:$LINENO: checking for SSL-C version" >&5
 
13539
echo $ECHO_N "checking for SSL-C version... $ECHO_C" >&6
 
13540
      cat >conftest.$ac_ext <<_ACEOF
 
13541
/* confdefs.h.  */
 
13542
_ACEOF
 
13543
cat confdefs.h >>conftest.$ac_ext
 
13544
cat >>conftest.$ac_ext <<_ACEOF
 
13545
/* end confdefs.h.  */
 
13546
#include <sslc.h>
 
13547
int
 
13548
main ()
 
13549
{
 
13550
 
 
13551
#if !defined(SSLC_VERSION_NUMBER)
 
13552
#error "Missing SSL-C version"
 
13553
#endif
 
13554
#if SSLC_VERSION_NUMBER < 0x2310
 
13555
#define stringize_ver(x) #x
 
13556
#error "Insecure SSL-C version " stringize_ver(SSLC_VERSION_NUMBER)
 
13557
#endif
 
13558
  ;
 
13559
  return 0;
 
13560
}
 
13561
_ACEOF
 
13562
rm -f conftest.$ac_objext
 
13563
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13564
  (eval $ac_compile) 2>conftest.er1
 
13565
  ac_status=$?
 
13566
  grep -v '^ *+' conftest.er1 >conftest.err
 
13567
  rm -f conftest.er1
 
13568
  cat conftest.err >&5
 
13569
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13570
  (exit $ac_status); } &&
 
13571
         { ac_try='test -z "$ac_c_werror_flag"
 
13572
                         || test ! -s conftest.err'
 
13573
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13574
  (eval $ac_try) 2>&5
 
13575
  ac_status=$?
 
13576
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13577
  (exit $ac_status); }; } &&
 
13578
         { ac_try='test -s conftest.$ac_objext'
 
13579
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13580
  (eval $ac_try) 2>&5
 
13581
  ac_status=$?
 
13582
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13583
  (exit $ac_status); }; }; then
 
13584
  echo "$as_me:$LINENO: result: OK" >&5
 
13585
echo "${ECHO_T}OK" >&6
 
13586
else
 
13587
  echo "$as_me: failed program was:" >&5
 
13588
sed 's/^/| /' conftest.$ac_ext >&5
 
13589
 
 
13590
       echo "$as_me:$LINENO: result: not encouraging" >&5
 
13591
echo "${ECHO_T}not encouraging" >&6
 
13592
       echo "WARNING: SSL-C version may contain security vulnerabilities!"
 
13593
       echo "         Ensure the latest security patches have been applied!"
 
13594
 
 
13595
fi
 
13596
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
13597
    else
 
13598
      echo "$as_me:$LINENO: result: no SSL-C headers found" >&5
 
13599
echo "${ECHO_T}no SSL-C headers found" >&6
 
13600
    fi
 
13601
  fi
 
13602
    CPPFLAGS=$saved_CPPFLAGS
 
13603
  if test "x$ap_ssltk_type" = "x"; then
 
13604
    { { echo "$as_me:$LINENO: error: ...No recognized SSL/TLS toolkit detected" >&5
 
13605
echo "$as_me: error: ...No recognized SSL/TLS toolkit detected" >&2;}
 
13606
   { (exit 1); exit 1; }; }
 
13607
  fi
 
13608
 
 
13609
    saved_LDFLAGS=$LDFLAGS
 
13610
  saved_LIBS=$LIBS
 
13611
  if test "x$ap_ssltk_base" != "x"; then
 
13612
    if test -d "$ap_ssltk_base/lib"; then
 
13613
      ap_ssltk_lib="$ap_ssltk_base/lib"
 
13614
    else
 
13615
      ap_ssltk_lib="$ap_ssltk_base"
 
13616
    fi
 
13617
    LDFLAGS="$LDFLAGS -L$ap_ssltk_lib"
 
13618
  fi
 
13619
    LIBS="$LIBS `$apr_config --libs`"
 
13620
  liberrors=""
 
13621
  if test "$ap_ssltk_type" = "openssl"; then
 
13622
 
 
13623
echo "$as_me:$LINENO: checking for SSLeay_version in -lcrypto" >&5
 
13624
echo $ECHO_N "checking for SSLeay_version in -lcrypto... $ECHO_C" >&6
 
13625
if test "${ac_cv_lib_crypto_SSLeay_version+set}" = set; then
 
13626
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13627
else
 
13628
  ac_check_lib_save_LIBS=$LIBS
 
13629
LIBS="-lcrypto  $LIBS"
 
13630
cat >conftest.$ac_ext <<_ACEOF
 
13631
/* confdefs.h.  */
 
13632
_ACEOF
 
13633
cat confdefs.h >>conftest.$ac_ext
 
13634
cat >>conftest.$ac_ext <<_ACEOF
 
13635
/* end confdefs.h.  */
 
13636
 
 
13637
/* Override any gcc2 internal prototype to avoid an error.  */
 
13638
#ifdef __cplusplus
 
13639
extern "C"
 
13640
#endif
 
13641
/* We use char because int might match the return type of a gcc2
 
13642
   builtin and then its argument prototype would still apply.  */
 
13643
char SSLeay_version ();
 
13644
int
 
13645
main ()
 
13646
{
 
13647
SSLeay_version ();
 
13648
  ;
 
13649
  return 0;
 
13650
}
 
13651
_ACEOF
 
13652
rm -f conftest.$ac_objext conftest$ac_exeext
 
13653
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13654
  (eval $ac_link) 2>conftest.er1
 
13655
  ac_status=$?
 
13656
  grep -v '^ *+' conftest.er1 >conftest.err
 
13657
  rm -f conftest.er1
 
13658
  cat conftest.err >&5
 
13659
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13660
  (exit $ac_status); } &&
 
13661
         { ac_try='test -z "$ac_c_werror_flag"
 
13662
                         || test ! -s conftest.err'
 
13663
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13664
  (eval $ac_try) 2>&5
 
13665
  ac_status=$?
 
13666
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13667
  (exit $ac_status); }; } &&
 
13668
         { ac_try='test -s conftest$ac_exeext'
 
13669
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13670
  (eval $ac_try) 2>&5
 
13671
  ac_status=$?
 
13672
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13673
  (exit $ac_status); }; }; then
 
13674
  ac_cv_lib_crypto_SSLeay_version=yes
 
13675
else
 
13676
  echo "$as_me: failed program was:" >&5
 
13677
sed 's/^/| /' conftest.$ac_ext >&5
 
13678
 
 
13679
ac_cv_lib_crypto_SSLeay_version=no
 
13680
fi
 
13681
rm -f conftest.err conftest.$ac_objext \
 
13682
      conftest$ac_exeext conftest.$ac_ext
 
13683
LIBS=$ac_check_lib_save_LIBS
 
13684
fi
 
13685
echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_SSLeay_version" >&5
 
13686
echo "${ECHO_T}$ac_cv_lib_crypto_SSLeay_version" >&6
 
13687
if test $ac_cv_lib_crypto_SSLeay_version = yes; then
 
13688
  cat >>confdefs.h <<_ACEOF
 
13689
#define HAVE_LIBCRYPTO 1
 
13690
_ACEOF
 
13691
 
 
13692
  LIBS="-lcrypto $LIBS"
 
13693
 
 
13694
else
 
13695
  liberrors="yes"
 
13696
fi
 
13697
 
 
13698
 
 
13699
echo "$as_me:$LINENO: checking for SSL_CTX_new in -lssl" >&5
 
13700
echo $ECHO_N "checking for SSL_CTX_new in -lssl... $ECHO_C" >&6
 
13701
if test "${ac_cv_lib_ssl_SSL_CTX_new+set}" = set; then
 
13702
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13703
else
 
13704
  ac_check_lib_save_LIBS=$LIBS
 
13705
LIBS="-lssl  $LIBS"
 
13706
cat >conftest.$ac_ext <<_ACEOF
 
13707
/* confdefs.h.  */
 
13708
_ACEOF
 
13709
cat confdefs.h >>conftest.$ac_ext
 
13710
cat >>conftest.$ac_ext <<_ACEOF
 
13711
/* end confdefs.h.  */
 
13712
 
 
13713
/* Override any gcc2 internal prototype to avoid an error.  */
 
13714
#ifdef __cplusplus
 
13715
extern "C"
 
13716
#endif
 
13717
/* We use char because int might match the return type of a gcc2
 
13718
   builtin and then its argument prototype would still apply.  */
 
13719
char SSL_CTX_new ();
 
13720
int
 
13721
main ()
 
13722
{
 
13723
SSL_CTX_new ();
 
13724
  ;
 
13725
  return 0;
 
13726
}
 
13727
_ACEOF
 
13728
rm -f conftest.$ac_objext conftest$ac_exeext
 
13729
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13730
  (eval $ac_link) 2>conftest.er1
 
13731
  ac_status=$?
 
13732
  grep -v '^ *+' conftest.er1 >conftest.err
 
13733
  rm -f conftest.er1
 
13734
  cat conftest.err >&5
 
13735
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13736
  (exit $ac_status); } &&
 
13737
         { ac_try='test -z "$ac_c_werror_flag"
 
13738
                         || test ! -s conftest.err'
 
13739
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13740
  (eval $ac_try) 2>&5
 
13741
  ac_status=$?
 
13742
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13743
  (exit $ac_status); }; } &&
 
13744
         { ac_try='test -s conftest$ac_exeext'
 
13745
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13746
  (eval $ac_try) 2>&5
 
13747
  ac_status=$?
 
13748
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13749
  (exit $ac_status); }; }; then
 
13750
  ac_cv_lib_ssl_SSL_CTX_new=yes
 
13751
else
 
13752
  echo "$as_me: failed program was:" >&5
 
13753
sed 's/^/| /' conftest.$ac_ext >&5
 
13754
 
 
13755
ac_cv_lib_ssl_SSL_CTX_new=no
 
13756
fi
 
13757
rm -f conftest.err conftest.$ac_objext \
 
13758
      conftest$ac_exeext conftest.$ac_ext
 
13759
LIBS=$ac_check_lib_save_LIBS
 
13760
fi
 
13761
echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_CTX_new" >&5
 
13762
echo "${ECHO_T}$ac_cv_lib_ssl_SSL_CTX_new" >&6
 
13763
if test $ac_cv_lib_ssl_SSL_CTX_new = yes; then
 
13764
  cat >>confdefs.h <<_ACEOF
 
13765
#define HAVE_LIBSSL 1
 
13766
_ACEOF
 
13767
 
 
13768
  LIBS="-lssl $LIBS"
 
13769
 
 
13770
else
 
13771
  liberrors="yes"
 
13772
fi
 
13773
 
 
13774
 
 
13775
for ac_func in ENGINE_init
 
13776
do
 
13777
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
13778
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
13779
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
13780
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
13781
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13782
else
 
13783
  cat >conftest.$ac_ext <<_ACEOF
 
13784
/* confdefs.h.  */
 
13785
_ACEOF
 
13786
cat confdefs.h >>conftest.$ac_ext
 
13787
cat >>conftest.$ac_ext <<_ACEOF
 
13788
/* end confdefs.h.  */
 
13789
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
13790
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
13791
#define $ac_func innocuous_$ac_func
 
13792
 
 
13793
/* System header to define __stub macros and hopefully few prototypes,
 
13794
    which can conflict with char $ac_func (); below.
 
13795
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13796
    <limits.h> exists even on freestanding compilers.  */
 
13797
 
 
13798
#ifdef __STDC__
 
13799
# include <limits.h>
 
13800
#else
 
13801
# include <assert.h>
 
13802
#endif
 
13803
 
 
13804
#undef $ac_func
 
13805
 
 
13806
/* Override any gcc2 internal prototype to avoid an error.  */
 
13807
#ifdef __cplusplus
 
13808
extern "C"
 
13809
{
 
13810
#endif
 
13811
/* We use char because int might match the return type of a gcc2
 
13812
   builtin and then its argument prototype would still apply.  */
 
13813
char $ac_func ();
 
13814
/* The GNU C library defines this for functions which it implements
 
13815
    to always fail with ENOSYS.  Some functions are actually named
 
13816
    something starting with __ and the normal name is an alias.  */
 
13817
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
13818
choke me
 
13819
#else
 
13820
char (*f) () = $ac_func;
 
13821
#endif
 
13822
#ifdef __cplusplus
 
13823
}
 
13824
#endif
 
13825
 
 
13826
int
 
13827
main ()
 
13828
{
 
13829
return f != $ac_func;
 
13830
  ;
 
13831
  return 0;
 
13832
}
 
13833
_ACEOF
 
13834
rm -f conftest.$ac_objext conftest$ac_exeext
 
13835
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13836
  (eval $ac_link) 2>conftest.er1
 
13837
  ac_status=$?
 
13838
  grep -v '^ *+' conftest.er1 >conftest.err
 
13839
  rm -f conftest.er1
 
13840
  cat conftest.err >&5
 
13841
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13842
  (exit $ac_status); } &&
 
13843
         { ac_try='test -z "$ac_c_werror_flag"
 
13844
                         || test ! -s conftest.err'
 
13845
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13846
  (eval $ac_try) 2>&5
 
13847
  ac_status=$?
 
13848
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13849
  (exit $ac_status); }; } &&
 
13850
         { ac_try='test -s conftest$ac_exeext'
 
13851
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13852
  (eval $ac_try) 2>&5
 
13853
  ac_status=$?
 
13854
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13855
  (exit $ac_status); }; }; then
 
13856
  eval "$as_ac_var=yes"
 
13857
else
 
13858
  echo "$as_me: failed program was:" >&5
 
13859
sed 's/^/| /' conftest.$ac_ext >&5
 
13860
 
 
13861
eval "$as_ac_var=no"
 
13862
fi
 
13863
rm -f conftest.err conftest.$ac_objext \
 
13864
      conftest$ac_exeext conftest.$ac_ext
 
13865
fi
 
13866
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
13867
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
13868
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
13869
  cat >>confdefs.h <<_ACEOF
 
13870
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
13871
_ACEOF
 
13872
 
 
13873
fi
 
13874
done
 
13875
 
 
13876
 
 
13877
for ac_func in ENGINE_load_builtin_engines
 
13878
do
 
13879
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
13880
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
13881
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
13882
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
13883
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13884
else
 
13885
  cat >conftest.$ac_ext <<_ACEOF
 
13886
/* confdefs.h.  */
 
13887
_ACEOF
 
13888
cat confdefs.h >>conftest.$ac_ext
 
13889
cat >>conftest.$ac_ext <<_ACEOF
 
13890
/* end confdefs.h.  */
 
13891
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
13892
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
13893
#define $ac_func innocuous_$ac_func
 
13894
 
 
13895
/* System header to define __stub macros and hopefully few prototypes,
 
13896
    which can conflict with char $ac_func (); below.
 
13897
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13898
    <limits.h> exists even on freestanding compilers.  */
 
13899
 
 
13900
#ifdef __STDC__
 
13901
# include <limits.h>
 
13902
#else
 
13903
# include <assert.h>
 
13904
#endif
 
13905
 
 
13906
#undef $ac_func
 
13907
 
 
13908
/* Override any gcc2 internal prototype to avoid an error.  */
 
13909
#ifdef __cplusplus
 
13910
extern "C"
 
13911
{
 
13912
#endif
 
13913
/* We use char because int might match the return type of a gcc2
 
13914
   builtin and then its argument prototype would still apply.  */
 
13915
char $ac_func ();
 
13916
/* The GNU C library defines this for functions which it implements
 
13917
    to always fail with ENOSYS.  Some functions are actually named
 
13918
    something starting with __ and the normal name is an alias.  */
 
13919
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
13920
choke me
 
13921
#else
 
13922
char (*f) () = $ac_func;
 
13923
#endif
 
13924
#ifdef __cplusplus
 
13925
}
 
13926
#endif
 
13927
 
 
13928
int
 
13929
main ()
 
13930
{
 
13931
return f != $ac_func;
 
13932
  ;
 
13933
  return 0;
 
13934
}
 
13935
_ACEOF
 
13936
rm -f conftest.$ac_objext conftest$ac_exeext
 
13937
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13938
  (eval $ac_link) 2>conftest.er1
 
13939
  ac_status=$?
 
13940
  grep -v '^ *+' conftest.er1 >conftest.err
 
13941
  rm -f conftest.er1
 
13942
  cat conftest.err >&5
 
13943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13944
  (exit $ac_status); } &&
 
13945
         { ac_try='test -z "$ac_c_werror_flag"
 
13946
                         || test ! -s conftest.err'
 
13947
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13948
  (eval $ac_try) 2>&5
 
13949
  ac_status=$?
 
13950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13951
  (exit $ac_status); }; } &&
 
13952
         { ac_try='test -s conftest$ac_exeext'
 
13953
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13954
  (eval $ac_try) 2>&5
 
13955
  ac_status=$?
 
13956
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13957
  (exit $ac_status); }; }; then
 
13958
  eval "$as_ac_var=yes"
 
13959
else
 
13960
  echo "$as_me: failed program was:" >&5
 
13961
sed 's/^/| /' conftest.$ac_ext >&5
 
13962
 
 
13963
eval "$as_ac_var=no"
 
13964
fi
 
13965
rm -f conftest.err conftest.$ac_objext \
 
13966
      conftest$ac_exeext conftest.$ac_ext
 
13967
fi
 
13968
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
13969
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
13970
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
13971
  cat >>confdefs.h <<_ACEOF
 
13972
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
13973
_ACEOF
 
13974
 
 
13975
fi
 
13976
done
 
13977
 
 
13978
  else
 
13979
 
 
13980
echo "$as_me:$LINENO: checking for SSLC_library_version in -lsslc" >&5
 
13981
echo $ECHO_N "checking for SSLC_library_version in -lsslc... $ECHO_C" >&6
 
13982
if test "${ac_cv_lib_sslc_SSLC_library_version+set}" = set; then
 
13983
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13984
else
 
13985
  ac_check_lib_save_LIBS=$LIBS
 
13986
LIBS="-lsslc  $LIBS"
 
13987
cat >conftest.$ac_ext <<_ACEOF
 
13988
/* confdefs.h.  */
 
13989
_ACEOF
 
13990
cat confdefs.h >>conftest.$ac_ext
 
13991
cat >>conftest.$ac_ext <<_ACEOF
 
13992
/* end confdefs.h.  */
 
13993
 
 
13994
/* Override any gcc2 internal prototype to avoid an error.  */
 
13995
#ifdef __cplusplus
 
13996
extern "C"
 
13997
#endif
 
13998
/* We use char because int might match the return type of a gcc2
 
13999
   builtin and then its argument prototype would still apply.  */
 
14000
char SSLC_library_version ();
 
14001
int
 
14002
main ()
 
14003
{
 
14004
SSLC_library_version ();
 
14005
  ;
 
14006
  return 0;
 
14007
}
 
14008
_ACEOF
 
14009
rm -f conftest.$ac_objext conftest$ac_exeext
 
14010
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14011
  (eval $ac_link) 2>conftest.er1
 
14012
  ac_status=$?
 
14013
  grep -v '^ *+' conftest.er1 >conftest.err
 
14014
  rm -f conftest.er1
 
14015
  cat conftest.err >&5
 
14016
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14017
  (exit $ac_status); } &&
 
14018
         { ac_try='test -z "$ac_c_werror_flag"
 
14019
                         || test ! -s conftest.err'
 
14020
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14021
  (eval $ac_try) 2>&5
 
14022
  ac_status=$?
 
14023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14024
  (exit $ac_status); }; } &&
 
14025
         { ac_try='test -s conftest$ac_exeext'
 
14026
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14027
  (eval $ac_try) 2>&5
 
14028
  ac_status=$?
 
14029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14030
  (exit $ac_status); }; }; then
 
14031
  ac_cv_lib_sslc_SSLC_library_version=yes
 
14032
else
 
14033
  echo "$as_me: failed program was:" >&5
 
14034
sed 's/^/| /' conftest.$ac_ext >&5
 
14035
 
 
14036
ac_cv_lib_sslc_SSLC_library_version=no
 
14037
fi
 
14038
rm -f conftest.err conftest.$ac_objext \
 
14039
      conftest$ac_exeext conftest.$ac_ext
 
14040
LIBS=$ac_check_lib_save_LIBS
 
14041
fi
 
14042
echo "$as_me:$LINENO: result: $ac_cv_lib_sslc_SSLC_library_version" >&5
 
14043
echo "${ECHO_T}$ac_cv_lib_sslc_SSLC_library_version" >&6
 
14044
if test $ac_cv_lib_sslc_SSLC_library_version = yes; then
 
14045
  cat >>confdefs.h <<_ACEOF
 
14046
#define HAVE_LIBSSLC 1
 
14047
_ACEOF
 
14048
 
 
14049
  LIBS="-lsslc $LIBS"
 
14050
 
 
14051
else
 
14052
  liberrors="yes"
 
14053
fi
 
14054
 
 
14055
 
 
14056
echo "$as_me:$LINENO: checking for SSL_CTX_new in -lsslc" >&5
 
14057
echo $ECHO_N "checking for SSL_CTX_new in -lsslc... $ECHO_C" >&6
 
14058
if test "${ac_cv_lib_sslc_SSL_CTX_new+set}" = set; then
 
14059
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14060
else
 
14061
  ac_check_lib_save_LIBS=$LIBS
 
14062
LIBS="-lsslc  $LIBS"
 
14063
cat >conftest.$ac_ext <<_ACEOF
 
14064
/* confdefs.h.  */
 
14065
_ACEOF
 
14066
cat confdefs.h >>conftest.$ac_ext
 
14067
cat >>conftest.$ac_ext <<_ACEOF
 
14068
/* end confdefs.h.  */
 
14069
 
 
14070
/* Override any gcc2 internal prototype to avoid an error.  */
 
14071
#ifdef __cplusplus
 
14072
extern "C"
 
14073
#endif
 
14074
/* We use char because int might match the return type of a gcc2
 
14075
   builtin and then its argument prototype would still apply.  */
 
14076
char SSL_CTX_new ();
 
14077
int
 
14078
main ()
 
14079
{
 
14080
SSL_CTX_new ();
 
14081
  ;
 
14082
  return 0;
 
14083
}
 
14084
_ACEOF
 
14085
rm -f conftest.$ac_objext conftest$ac_exeext
 
14086
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14087
  (eval $ac_link) 2>conftest.er1
 
14088
  ac_status=$?
 
14089
  grep -v '^ *+' conftest.er1 >conftest.err
 
14090
  rm -f conftest.er1
 
14091
  cat conftest.err >&5
 
14092
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14093
  (exit $ac_status); } &&
 
14094
         { ac_try='test -z "$ac_c_werror_flag"
 
14095
                         || test ! -s conftest.err'
 
14096
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14097
  (eval $ac_try) 2>&5
 
14098
  ac_status=$?
 
14099
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14100
  (exit $ac_status); }; } &&
 
14101
         { ac_try='test -s conftest$ac_exeext'
 
14102
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14103
  (eval $ac_try) 2>&5
 
14104
  ac_status=$?
 
14105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14106
  (exit $ac_status); }; }; then
 
14107
  ac_cv_lib_sslc_SSL_CTX_new=yes
 
14108
else
 
14109
  echo "$as_me: failed program was:" >&5
 
14110
sed 's/^/| /' conftest.$ac_ext >&5
 
14111
 
 
14112
ac_cv_lib_sslc_SSL_CTX_new=no
 
14113
fi
 
14114
rm -f conftest.err conftest.$ac_objext \
 
14115
      conftest$ac_exeext conftest.$ac_ext
 
14116
LIBS=$ac_check_lib_save_LIBS
 
14117
fi
 
14118
echo "$as_me:$LINENO: result: $ac_cv_lib_sslc_SSL_CTX_new" >&5
 
14119
echo "${ECHO_T}$ac_cv_lib_sslc_SSL_CTX_new" >&6
 
14120
if test $ac_cv_lib_sslc_SSL_CTX_new = yes; then
 
14121
  cat >>confdefs.h <<_ACEOF
 
14122
#define HAVE_LIBSSLC 1
 
14123
_ACEOF
 
14124
 
 
14125
  LIBS="-lsslc $LIBS"
 
14126
 
 
14127
else
 
14128
  liberrors="yes"
 
14129
fi
 
14130
 
 
14131
 
 
14132
for ac_func in SSL_set_state
 
14133
do
 
14134
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
14135
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
14136
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
14137
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
14138
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14139
else
 
14140
  cat >conftest.$ac_ext <<_ACEOF
 
14141
/* confdefs.h.  */
 
14142
_ACEOF
 
14143
cat confdefs.h >>conftest.$ac_ext
 
14144
cat >>conftest.$ac_ext <<_ACEOF
 
14145
/* end confdefs.h.  */
 
14146
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
14147
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
14148
#define $ac_func innocuous_$ac_func
 
14149
 
 
14150
/* System header to define __stub macros and hopefully few prototypes,
 
14151
    which can conflict with char $ac_func (); below.
 
14152
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
14153
    <limits.h> exists even on freestanding compilers.  */
 
14154
 
 
14155
#ifdef __STDC__
 
14156
# include <limits.h>
 
14157
#else
 
14158
# include <assert.h>
 
14159
#endif
 
14160
 
 
14161
#undef $ac_func
 
14162
 
 
14163
/* Override any gcc2 internal prototype to avoid an error.  */
 
14164
#ifdef __cplusplus
 
14165
extern "C"
 
14166
{
 
14167
#endif
 
14168
/* We use char because int might match the return type of a gcc2
 
14169
   builtin and then its argument prototype would still apply.  */
 
14170
char $ac_func ();
 
14171
/* The GNU C library defines this for functions which it implements
 
14172
    to always fail with ENOSYS.  Some functions are actually named
 
14173
    something starting with __ and the normal name is an alias.  */
 
14174
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
14175
choke me
 
14176
#else
 
14177
char (*f) () = $ac_func;
 
14178
#endif
 
14179
#ifdef __cplusplus
 
14180
}
 
14181
#endif
 
14182
 
 
14183
int
 
14184
main ()
 
14185
{
 
14186
return f != $ac_func;
 
14187
  ;
 
14188
  return 0;
 
14189
}
 
14190
_ACEOF
 
14191
rm -f conftest.$ac_objext conftest$ac_exeext
 
14192
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14193
  (eval $ac_link) 2>conftest.er1
 
14194
  ac_status=$?
 
14195
  grep -v '^ *+' conftest.er1 >conftest.err
 
14196
  rm -f conftest.er1
 
14197
  cat conftest.err >&5
 
14198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14199
  (exit $ac_status); } &&
 
14200
         { ac_try='test -z "$ac_c_werror_flag"
 
14201
                         || test ! -s conftest.err'
 
14202
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14203
  (eval $ac_try) 2>&5
 
14204
  ac_status=$?
 
14205
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14206
  (exit $ac_status); }; } &&
 
14207
         { ac_try='test -s conftest$ac_exeext'
 
14208
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14209
  (eval $ac_try) 2>&5
 
14210
  ac_status=$?
 
14211
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14212
  (exit $ac_status); }; }; then
 
14213
  eval "$as_ac_var=yes"
 
14214
else
 
14215
  echo "$as_me: failed program was:" >&5
 
14216
sed 's/^/| /' conftest.$ac_ext >&5
 
14217
 
 
14218
eval "$as_ac_var=no"
 
14219
fi
 
14220
rm -f conftest.err conftest.$ac_objext \
 
14221
      conftest$ac_exeext conftest.$ac_ext
 
14222
fi
 
14223
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
14224
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
14225
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
14226
  cat >>confdefs.h <<_ACEOF
 
14227
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
14228
_ACEOF
 
14229
 
 
14230
fi
 
14231
done
 
14232
 
 
14233
  fi
 
14234
 
 
14235
for ac_func in SSL_set_cert_store
 
14236
do
 
14237
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
14238
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
14239
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
14240
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
14241
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14242
else
 
14243
  cat >conftest.$ac_ext <<_ACEOF
 
14244
/* confdefs.h.  */
 
14245
_ACEOF
 
14246
cat confdefs.h >>conftest.$ac_ext
 
14247
cat >>conftest.$ac_ext <<_ACEOF
 
14248
/* end confdefs.h.  */
 
14249
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
14250
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
14251
#define $ac_func innocuous_$ac_func
 
14252
 
 
14253
/* System header to define __stub macros and hopefully few prototypes,
 
14254
    which can conflict with char $ac_func (); below.
 
14255
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
14256
    <limits.h> exists even on freestanding compilers.  */
 
14257
 
 
14258
#ifdef __STDC__
 
14259
# include <limits.h>
 
14260
#else
 
14261
# include <assert.h>
 
14262
#endif
 
14263
 
 
14264
#undef $ac_func
 
14265
 
 
14266
/* Override any gcc2 internal prototype to avoid an error.  */
 
14267
#ifdef __cplusplus
 
14268
extern "C"
 
14269
{
 
14270
#endif
 
14271
/* We use char because int might match the return type of a gcc2
 
14272
   builtin and then its argument prototype would still apply.  */
 
14273
char $ac_func ();
 
14274
/* The GNU C library defines this for functions which it implements
 
14275
    to always fail with ENOSYS.  Some functions are actually named
 
14276
    something starting with __ and the normal name is an alias.  */
 
14277
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
14278
choke me
 
14279
#else
 
14280
char (*f) () = $ac_func;
 
14281
#endif
 
14282
#ifdef __cplusplus
 
14283
}
 
14284
#endif
 
14285
 
 
14286
int
 
14287
main ()
 
14288
{
 
14289
return f != $ac_func;
 
14290
  ;
 
14291
  return 0;
 
14292
}
 
14293
_ACEOF
 
14294
rm -f conftest.$ac_objext conftest$ac_exeext
 
14295
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14296
  (eval $ac_link) 2>conftest.er1
 
14297
  ac_status=$?
 
14298
  grep -v '^ *+' conftest.er1 >conftest.err
 
14299
  rm -f conftest.er1
 
14300
  cat conftest.err >&5
 
14301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14302
  (exit $ac_status); } &&
 
14303
         { ac_try='test -z "$ac_c_werror_flag"
 
14304
                         || test ! -s conftest.err'
 
14305
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14306
  (eval $ac_try) 2>&5
 
14307
  ac_status=$?
 
14308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14309
  (exit $ac_status); }; } &&
 
14310
         { ac_try='test -s conftest$ac_exeext'
 
14311
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14312
  (eval $ac_try) 2>&5
 
14313
  ac_status=$?
 
14314
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14315
  (exit $ac_status); }; }; then
 
14316
  eval "$as_ac_var=yes"
 
14317
else
 
14318
  echo "$as_me: failed program was:" >&5
 
14319
sed 's/^/| /' conftest.$ac_ext >&5
 
14320
 
 
14321
eval "$as_ac_var=no"
 
14322
fi
 
14323
rm -f conftest.err conftest.$ac_objext \
 
14324
      conftest$ac_exeext conftest.$ac_ext
 
14325
fi
 
14326
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
14327
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
14328
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
14329
  cat >>confdefs.h <<_ACEOF
 
14330
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
14331
_ACEOF
 
14332
 
 
14333
fi
 
14334
done
 
14335
 
 
14336
    LDFLAGS=$saved_LDFLAGS
 
14337
  LIBS=$saved_LIBS
 
14338
  if test "x$liberrors" != "x"; then
 
14339
    { { echo "$as_me:$LINENO: error: ... Error, SSL/TLS libraries were missing or unusable" >&5
 
14340
echo "$as_me: error: ... Error, SSL/TLS libraries were missing or unusable" >&2;}
 
14341
   { (exit 1); exit 1; }; }
 
14342
  fi
 
14343
 
 
14344
      if test "$ap_ssltk_type" = "openssl"; then
 
14345
 
 
14346
cat >>confdefs.h <<\_ACEOF
 
14347
#define HAVE_OPENSSL 1
 
14348
_ACEOF
 
14349
 
 
14350
  else
 
14351
 
 
14352
cat >>confdefs.h <<\_ACEOF
 
14353
#define HAVE_SSLC 1
 
14354
_ACEOF
 
14355
 
 
14356
  fi
 
14357
    if test "x$ap_ssltk_inc" != "x"; then
 
14358
 
 
14359
  if test "x$INCLUDES" = "x"; then
 
14360
    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"$ap_ssltk_inc\""
 
14361
    INCLUDES="$ap_ssltk_inc"
 
14362
  else
 
14363
    apr_addto_bugger="$ap_ssltk_inc"
 
14364
    for i in $apr_addto_bugger; do
 
14365
      apr_addto_duplicate="0"
 
14366
      for j in $INCLUDES; do
 
14367
        if test "x$i" = "x$j"; then
 
14368
          apr_addto_duplicate="1"
 
14369
          break
 
14370
        fi
 
14371
      done
 
14372
      if test $apr_addto_duplicate = "0"; then
 
14373
        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
 
14374
        INCLUDES="$INCLUDES $i"
 
14375
      fi
 
14376
    done
 
14377
  fi
 
14378
 
 
14379
  fi
 
14380
    if test "x$ap_ssltk_lib" != "x"; then
 
14381
 
 
14382
  if test "x$LDFLAGS" = "x"; then
 
14383
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \""-L$ap_ssltk_lib"\""
 
14384
    LDFLAGS=""-L$ap_ssltk_lib""
 
14385
  else
 
14386
    apr_addto_bugger=""-L$ap_ssltk_lib""
 
14387
    for i in $apr_addto_bugger; do
 
14388
      apr_addto_duplicate="0"
 
14389
      for j in $LDFLAGS; do
 
14390
        if test "x$i" = "x$j"; then
 
14391
          apr_addto_duplicate="1"
 
14392
          break
 
14393
        fi
 
14394
      done
 
14395
      if test $apr_addto_duplicate = "0"; then
 
14396
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
 
14397
        LDFLAGS="$LDFLAGS $i"
 
14398
      fi
 
14399
    done
 
14400
  fi
 
14401
 
 
14402
    if test "x$ap_platform_runtime_link_flag" != "x"; then
 
14403
 
 
14404
  if test "x$LDFLAGS" = "x"; then
 
14405
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \""$ap_platform_runtime_link_flag$ap_ssltk_lib"\""
 
14406
    LDFLAGS=""$ap_platform_runtime_link_flag$ap_ssltk_lib""
 
14407
  else
 
14408
    apr_addto_bugger=""$ap_platform_runtime_link_flag$ap_ssltk_lib""
 
14409
    for i in $apr_addto_bugger; do
 
14410
      apr_addto_duplicate="0"
 
14411
      for j in $LDFLAGS; do
 
14412
        if test "x$i" = "x$j"; then
 
14413
          apr_addto_duplicate="1"
 
14414
          break
 
14415
        fi
 
14416
      done
 
14417
      if test $apr_addto_duplicate = "0"; then
 
14418
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
 
14419
        LDFLAGS="$LDFLAGS $i"
 
14420
      fi
 
14421
    done
 
14422
  fi
 
14423
 
 
14424
    fi
 
14425
  fi
 
14426
  # Put SSL libraries in SSL_LIBS.
 
14427
  if test "$ap_ssltk_type" = "openssl"; then
 
14428
 
 
14429
  test "x$silent" != "xyes" && echo "  forcing SSL_LIBS to \"-lssl -lcrypto\""
 
14430
  SSL_LIBS="-lssl -lcrypto"
 
14431
 
 
14432
    if test -n "$PKGCONFIG"; then
 
14433
      $PKGCONFIG openssl
 
14434
      if test $? -eq 0; then
 
14435
        ap_ssltk_libdep=`$PKGCONFIG --libs openssl`
 
14436
 
 
14437
  if test "x$SSL_LIBS" = "x"; then
 
14438
    test "x$silent" != "xyes" && echo "  setting SSL_LIBS to \"$ap_ssltk_libdep\""
 
14439
    SSL_LIBS="$ap_ssltk_libdep"
 
14440
  else
 
14441
    apr_addto_bugger="$ap_ssltk_libdep"
 
14442
    for i in $apr_addto_bugger; do
 
14443
      apr_addto_duplicate="0"
 
14444
      for j in $SSL_LIBS; do
 
14445
        if test "x$i" = "x$j"; then
 
14446
          apr_addto_duplicate="1"
 
14447
          break
 
14448
        fi
 
14449
      done
 
14450
      if test $apr_addto_duplicate = "0"; then
 
14451
        test "x$silent" != "xyes" && echo "  adding \"$i\" to SSL_LIBS"
 
14452
        SSL_LIBS="$SSL_LIBS $i"
 
14453
      fi
 
14454
    done
 
14455
  fi
 
14456
 
 
14457
      fi
 
14458
    fi
 
14459
  else
 
14460
 
 
14461
  test "x$silent" != "xyes" && echo "  forcing SSL_LIBS to \"-lsslc\""
 
14462
  SSL_LIBS="-lsslc"
 
14463
 
 
14464
  fi
 
14465
 
 
14466
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SSL_LIBS"
 
14467
 
 
14468
 
 
14469
fi
 
14470
 
 
14471
 
 
14472
  test "x$silent" != "xyes" && echo "  forcing MOD_SSL_LDADD to \"\$(SSL_LIBS)\""
 
14473
  MOD_SSL_LDADD="\$(SSL_LIBS)"
 
14474
 
 
14475
 
 
14476
  echo "$as_me:$LINENO: checking whether Distcache is required" >&5
 
14477
echo $ECHO_N "checking whether Distcache is required... $ECHO_C" >&6
 
14478
  ap_ssltk_dc="no"
 
14479
  tmp_nomessage=""
 
14480
  tmp_forced="no"
 
14481
  # Check whether --enable-distcache or --disable-distcache was given.
 
14482
if test "${enable_distcache+set}" = set; then
 
14483
  enableval="$enable_distcache"
 
14484
  ap_ssltk_dc="$enableval"
 
14485
    tmp_nomessage=""
 
14486
    tmp_forced="yes"
 
14487
    if test "x$ap_ssltk_dc" = "x"; then
 
14488
      ap_ssltk_dc="yes"
 
14489
            tmp_forced="no"
 
14490
    fi
 
14491
    if test "$ap_ssltk_dc" != "yes" -a "$ap_ssltk_dc" != "no"; then
 
14492
      tmp_nomessage="--enable-distcache had illegal syntax - disabling"
 
14493
      ap_ssltk_dc="no"
 
14494
    fi
 
14495
fi;
 
14496
  if test "$tmp_forced" = "no"; then
 
14497
    echo "$as_me:$LINENO: result: $ap_ssltk_dc (default)" >&5
 
14498
echo "${ECHO_T}$ap_ssltk_dc (default)" >&6
 
14499
  else
 
14500
    echo "$as_me:$LINENO: result: $ap_ssltk_dc (specified)" >&5
 
14501
echo "${ECHO_T}$ap_ssltk_dc (specified)" >&6
 
14502
  fi
 
14503
  if test "$tmp_forced" = "yes" -a "x$ap_ssltk_dc" = "xno" -a "x$tmp_nomessage" != "x"; then
 
14504
    { { echo "$as_me:$LINENO: error: distcache support failed: $tmp_nomessage" >&5
 
14505
echo "$as_me: error: distcache support failed: $tmp_nomessage" >&2;}
 
14506
   { (exit 1); exit 1; }; }
 
14507
  fi
 
14508
  if test "$ap_ssltk_dc" = "yes"; then
 
14509
    if test "${ac_cv_header_distcache_dc_client_h+set}" = set; then
 
14510
  echo "$as_me:$LINENO: checking for distcache/dc_client.h" >&5
 
14511
echo $ECHO_N "checking for distcache/dc_client.h... $ECHO_C" >&6
 
14512
if test "${ac_cv_header_distcache_dc_client_h+set}" = set; then
 
14513
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14514
fi
 
14515
echo "$as_me:$LINENO: result: $ac_cv_header_distcache_dc_client_h" >&5
 
14516
echo "${ECHO_T}$ac_cv_header_distcache_dc_client_h" >&6
 
14517
else
 
14518
  # Is the header compilable?
 
14519
echo "$as_me:$LINENO: checking distcache/dc_client.h usability" >&5
 
14520
echo $ECHO_N "checking distcache/dc_client.h usability... $ECHO_C" >&6
 
14521
cat >conftest.$ac_ext <<_ACEOF
 
14522
/* confdefs.h.  */
 
14523
_ACEOF
 
14524
cat confdefs.h >>conftest.$ac_ext
 
14525
cat >>conftest.$ac_ext <<_ACEOF
 
14526
/* end confdefs.h.  */
 
14527
$ac_includes_default
 
14528
#include <distcache/dc_client.h>
 
14529
_ACEOF
 
14530
rm -f conftest.$ac_objext
 
14531
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14532
  (eval $ac_compile) 2>conftest.er1
 
14533
  ac_status=$?
 
14534
  grep -v '^ *+' conftest.er1 >conftest.err
 
14535
  rm -f conftest.er1
 
14536
  cat conftest.err >&5
 
14537
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14538
  (exit $ac_status); } &&
 
14539
         { ac_try='test -z "$ac_c_werror_flag"
 
14540
                         || test ! -s conftest.err'
 
14541
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14542
  (eval $ac_try) 2>&5
 
14543
  ac_status=$?
 
14544
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14545
  (exit $ac_status); }; } &&
 
14546
         { ac_try='test -s conftest.$ac_objext'
 
14547
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14548
  (eval $ac_try) 2>&5
 
14549
  ac_status=$?
 
14550
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14551
  (exit $ac_status); }; }; then
 
14552
  ac_header_compiler=yes
 
14553
else
 
14554
  echo "$as_me: failed program was:" >&5
 
14555
sed 's/^/| /' conftest.$ac_ext >&5
 
14556
 
 
14557
ac_header_compiler=no
 
14558
fi
 
14559
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14560
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
14561
echo "${ECHO_T}$ac_header_compiler" >&6
 
14562
 
 
14563
# Is the header present?
 
14564
echo "$as_me:$LINENO: checking distcache/dc_client.h presence" >&5
 
14565
echo $ECHO_N "checking distcache/dc_client.h presence... $ECHO_C" >&6
 
14566
cat >conftest.$ac_ext <<_ACEOF
 
14567
/* confdefs.h.  */
 
14568
_ACEOF
 
14569
cat confdefs.h >>conftest.$ac_ext
 
14570
cat >>conftest.$ac_ext <<_ACEOF
 
14571
/* end confdefs.h.  */
 
14572
#include <distcache/dc_client.h>
 
14573
_ACEOF
 
14574
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
14575
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
14576
  ac_status=$?
 
14577
  grep -v '^ *+' conftest.er1 >conftest.err
 
14578
  rm -f conftest.er1
 
14579
  cat conftest.err >&5
 
14580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14581
  (exit $ac_status); } >/dev/null; then
 
14582
  if test -s conftest.err; then
 
14583
    ac_cpp_err=$ac_c_preproc_warn_flag
 
14584
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
14585
  else
 
14586
    ac_cpp_err=
 
14587
  fi
 
14588
else
 
14589
  ac_cpp_err=yes
 
14590
fi
 
14591
if test -z "$ac_cpp_err"; then
 
14592
  ac_header_preproc=yes
 
14593
else
 
14594
  echo "$as_me: failed program was:" >&5
 
14595
sed 's/^/| /' conftest.$ac_ext >&5
 
14596
 
 
14597
  ac_header_preproc=no
 
14598
fi
 
14599
rm -f conftest.err conftest.$ac_ext
 
14600
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
14601
echo "${ECHO_T}$ac_header_preproc" >&6
 
14602
 
 
14603
# So?  What about this header?
 
14604
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
14605
  yes:no: )
 
14606
    { echo "$as_me:$LINENO: WARNING: distcache/dc_client.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
14607
echo "$as_me: WARNING: distcache/dc_client.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
14608
    { echo "$as_me:$LINENO: WARNING: distcache/dc_client.h: proceeding with the compiler's result" >&5
 
14609
echo "$as_me: WARNING: distcache/dc_client.h: proceeding with the compiler's result" >&2;}
 
14610
    ac_header_preproc=yes
 
14611
    ;;
 
14612
  no:yes:* )
 
14613
    { echo "$as_me:$LINENO: WARNING: distcache/dc_client.h: present but cannot be compiled" >&5
 
14614
echo "$as_me: WARNING: distcache/dc_client.h: present but cannot be compiled" >&2;}
 
14615
    { echo "$as_me:$LINENO: WARNING: distcache/dc_client.h:     check for missing prerequisite headers?" >&5
 
14616
echo "$as_me: WARNING: distcache/dc_client.h:     check for missing prerequisite headers?" >&2;}
 
14617
    { echo "$as_me:$LINENO: WARNING: distcache/dc_client.h: see the Autoconf documentation" >&5
 
14618
echo "$as_me: WARNING: distcache/dc_client.h: see the Autoconf documentation" >&2;}
 
14619
    { echo "$as_me:$LINENO: WARNING: distcache/dc_client.h:     section \"Present But Cannot Be Compiled\"" >&5
 
14620
echo "$as_me: WARNING: distcache/dc_client.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
14621
    { echo "$as_me:$LINENO: WARNING: distcache/dc_client.h: proceeding with the preprocessor's result" >&5
 
14622
echo "$as_me: WARNING: distcache/dc_client.h: proceeding with the preprocessor's result" >&2;}
 
14623
    { echo "$as_me:$LINENO: WARNING: distcache/dc_client.h: in the future, the compiler will take precedence" >&5
 
14624
echo "$as_me: WARNING: distcache/dc_client.h: in the future, the compiler will take precedence" >&2;}
 
14625
    (
 
14626
      cat <<\_ASBOX
 
14627
## ------------------------------------------ ##
 
14628
## Report this to the AC_PACKAGE_NAME lists.  ##
 
14629
## ------------------------------------------ ##
 
14630
_ASBOX
 
14631
    ) |
 
14632
      sed "s/^/$as_me: WARNING:     /" >&2
 
14633
    ;;
 
14634
esac
 
14635
echo "$as_me:$LINENO: checking for distcache/dc_client.h" >&5
 
14636
echo $ECHO_N "checking for distcache/dc_client.h... $ECHO_C" >&6
 
14637
if test "${ac_cv_header_distcache_dc_client_h+set}" = set; then
 
14638
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14639
else
 
14640
  ac_cv_header_distcache_dc_client_h=$ac_header_preproc
 
14641
fi
 
14642
echo "$as_me:$LINENO: result: $ac_cv_header_distcache_dc_client_h" >&5
 
14643
echo "${ECHO_T}$ac_cv_header_distcache_dc_client_h" >&6
 
14644
 
 
14645
fi
 
14646
if test $ac_cv_header_distcache_dc_client_h = yes; then
 
14647
  :
 
14648
else
 
14649
  tmp_nomessage="can't include distcache headers"
 
14650
      ap_ssltk_dc="no"
 
14651
fi
 
14652
 
 
14653
 
 
14654
    if test "$tmp_forced" = "yes" -a "x$ap_ssltk_dc" = "xno"; then
 
14655
      { { echo "$as_me:$LINENO: error: distcache support failed: $tmp_nomessage" >&5
 
14656
echo "$as_me: error: distcache support failed: $tmp_nomessage" >&2;}
 
14657
   { (exit 1); exit 1; }; }
 
14658
    fi
 
14659
  fi
 
14660
  if test "$ap_ssltk_dc" = "yes"; then
 
14661
    echo "$as_me:$LINENO: checking for Distcache version" >&5
 
14662
echo $ECHO_N "checking for Distcache version... $ECHO_C" >&6
 
14663
    cat >conftest.$ac_ext <<_ACEOF
 
14664
/* confdefs.h.  */
 
14665
_ACEOF
 
14666
cat confdefs.h >>conftest.$ac_ext
 
14667
cat >>conftest.$ac_ext <<_ACEOF
 
14668
/* end confdefs.h.  */
 
14669
#include <distcache/dc_client.h>
 
14670
int
 
14671
main ()
 
14672
{
 
14673
#if DISTCACHE_CLIENT_API != 0x0001
 
14674
#error "distcache API version is unrecognised"
 
14675
#endif
 
14676
  ;
 
14677
  return 0;
 
14678
}
 
14679
_ACEOF
 
14680
rm -f conftest.$ac_objext
 
14681
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14682
  (eval $ac_compile) 2>conftest.er1
 
14683
  ac_status=$?
 
14684
  grep -v '^ *+' conftest.er1 >conftest.err
 
14685
  rm -f conftest.er1
 
14686
  cat conftest.err >&5
 
14687
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14688
  (exit $ac_status); } &&
 
14689
         { ac_try='test -z "$ac_c_werror_flag"
 
14690
                         || test ! -s conftest.err'
 
14691
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14692
  (eval $ac_try) 2>&5
 
14693
  ac_status=$?
 
14694
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14695
  (exit $ac_status); }; } &&
 
14696
         { ac_try='test -s conftest.$ac_objext'
 
14697
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14698
  (eval $ac_try) 2>&5
 
14699
  ac_status=$?
 
14700
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14701
  (exit $ac_status); }; }; then
 
14702
  :
 
14703
else
 
14704
  echo "$as_me: failed program was:" >&5
 
14705
sed 's/^/| /' conftest.$ac_ext >&5
 
14706
 
 
14707
tmp_nomessage="distcache has an unsupported API version"
 
14708
ap_ssltk_dc="no"
 
14709
fi
 
14710
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14711
    echo "$as_me:$LINENO: result: $ap_ssltk_dc" >&5
 
14712
echo "${ECHO_T}$ap_ssltk_dc" >&6
 
14713
    if test "$tmp_forced" = "yes" -a "x$ap_ssltk_dc" = "xno"; then
 
14714
      { { echo "$as_me:$LINENO: error: distcache support failed: $tmp_nomessage" >&5
 
14715
echo "$as_me: error: distcache support failed: $tmp_nomessage" >&2;}
 
14716
   { (exit 1); exit 1; }; }
 
14717
    fi
 
14718
  fi
 
14719
  if test "$ap_ssltk_dc" = "yes"; then
 
14720
    echo "$as_me:$LINENO: checking for Distcache libraries" >&5
 
14721
echo $ECHO_N "checking for Distcache libraries... $ECHO_C" >&6
 
14722
    save_libs=$LIBS
 
14723
    LIBS="$LIBS -ldistcache -lnal"
 
14724
    cat >conftest.$ac_ext <<_ACEOF
 
14725
/* confdefs.h.  */
 
14726
_ACEOF
 
14727
cat confdefs.h >>conftest.$ac_ext
 
14728
cat >>conftest.$ac_ext <<_ACEOF
 
14729
/* end confdefs.h.  */
 
14730
#include <distcache/dc_client.h>
 
14731
int
 
14732
main ()
 
14733
{
 
14734
DC_CTX *foo = DC_CTX_new((const char *)0,0);
 
14735
  ;
 
14736
  return 0;
 
14737
}
 
14738
_ACEOF
 
14739
rm -f conftest.$ac_objext conftest$ac_exeext
 
14740
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14741
  (eval $ac_link) 2>conftest.er1
 
14742
  ac_status=$?
 
14743
  grep -v '^ *+' conftest.er1 >conftest.err
 
14744
  rm -f conftest.er1
 
14745
  cat conftest.err >&5
 
14746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14747
  (exit $ac_status); } &&
 
14748
         { ac_try='test -z "$ac_c_werror_flag"
 
14749
                         || test ! -s conftest.err'
 
14750
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14751
  (eval $ac_try) 2>&5
 
14752
  ac_status=$?
 
14753
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14754
  (exit $ac_status); }; } &&
 
14755
         { ac_try='test -s conftest$ac_exeext'
 
14756
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14757
  (eval $ac_try) 2>&5
 
14758
  ac_status=$?
 
14759
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14760
  (exit $ac_status); }; }; then
 
14761
  :
 
14762
else
 
14763
  echo "$as_me: failed program was:" >&5
 
14764
sed 's/^/| /' conftest.$ac_ext >&5
 
14765
 
 
14766
tmp_no_message="failed to link with distcache libraries"
 
14767
      ap_ssltk_dc="no"
 
14768
fi
 
14769
rm -f conftest.err conftest.$ac_objext \
 
14770
      conftest$ac_exeext conftest.$ac_ext
 
14771
    LIBS=$save_libs
 
14772
    echo "$as_me:$LINENO: result: $ap_ssltk_dc" >&5
 
14773
echo "${ECHO_T}$ap_ssltk_dc" >&6
 
14774
    if test "$tmp_forced" = "yes" -a "x$ap_ssltk_dc" = "xno"; then
 
14775
      { { echo "$as_me:$LINENO: error: distcache support failed: $tmp_nomessage" >&5
 
14776
echo "$as_me: error: distcache support failed: $tmp_nomessage" >&2;}
 
14777
   { (exit 1); exit 1; }; }
 
14778
    else
 
14779
 
 
14780
  if test "x$MOD_SSL_LDADD" = "x"; then
 
14781
    test "x$silent" != "xyes" && echo "  setting MOD_SSL_LDADD to \"-ldistcache -lnal\""
 
14782
    MOD_SSL_LDADD="-ldistcache -lnal"
 
14783
  else
 
14784
    apr_addto_bugger="-ldistcache -lnal"
 
14785
    for i in $apr_addto_bugger; do
 
14786
      apr_addto_duplicate="0"
 
14787
      for j in $MOD_SSL_LDADD; do
 
14788
        if test "x$i" = "x$j"; then
 
14789
          apr_addto_duplicate="1"
 
14790
          break
 
14791
        fi
 
14792
      done
 
14793
      if test $apr_addto_duplicate = "0"; then
 
14794
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_SSL_LDADD"
 
14795
        MOD_SSL_LDADD="$MOD_SSL_LDADD $i"
 
14796
      fi
 
14797
    done
 
14798
  fi
 
14799
 
 
14800
 
 
14801
cat >>confdefs.h <<\_ACEOF
 
14802
#define HAVE_DISTCACHE 1
 
14803
_ACEOF
 
14804
 
 
14805
    fi
 
14806
  fi
 
14807
 
 
14808
    if test "x$enable_ssl" = "xshared"; then
 
14809
       # The only symbol which needs to be exported is the module
 
14810
       # structure, so ask libtool to hide everything else:
 
14811
 
 
14812
  if test "x$MOD_SSL_LDADD" = "x"; then
 
14813
    test "x$silent" != "xyes" && echo "  setting MOD_SSL_LDADD to \"-export-symbols-regex ssl_module\""
 
14814
    MOD_SSL_LDADD="-export-symbols-regex ssl_module"
 
14815
  else
 
14816
    apr_addto_bugger="-export-symbols-regex ssl_module"
 
14817
    for i in $apr_addto_bugger; do
 
14818
      apr_addto_duplicate="0"
 
14819
      for j in $MOD_SSL_LDADD; do
 
14820
        if test "x$i" = "x$j"; then
 
14821
          apr_addto_duplicate="1"
 
14822
          break
 
14823
        fi
 
14824
      done
 
14825
      if test $apr_addto_duplicate = "0"; then
 
14826
        test "x$silent" != "xyes" && echo "  adding \"$i\" to MOD_SSL_LDADD"
 
14827
        MOD_SSL_LDADD="$MOD_SSL_LDADD $i"
 
14828
      fi
 
14829
    done
 
14830
  fi
 
14831
 
 
14832
    fi
 
14833
 
 
14834
                    echo "$as_me:$LINENO: checking whether to enable mod_ssl" >&5
 
14835
echo $ECHO_N "checking whether to enable mod_ssl... $ECHO_C" >&6
 
14836
                    if test "$enable_ssl" = "no"; then
 
14837
                      if test "$_apmod_error_fatal" = "no"; then
 
14838
                        _apmod_extra_msg=" (disabled)"
 
14839
                      else
 
14840
                        { { echo "$as_me:$LINENO: error: mod_ssl has been requested but can not be built due to prerequisite failures" >&5
 
14841
echo "$as_me: error: mod_ssl has been requested but can not be built due to prerequisite failures" >&2;}
 
14842
   { (exit 1); exit 1; }; }
 
14843
                      fi
 
14844
                    fi
 
14845
  fi
 
14846
  echo "$as_me:$LINENO: result: $enable_ssl$_apmod_extra_msg" >&5
 
14847
echo "${ECHO_T}$enable_ssl$_apmod_extra_msg" >&6
 
14848
  if test "$enable_ssl" != "no"; then
 
14849
    case "$enable_ssl" in
 
14850
    shared*)
 
14851
      enable_ssl=`echo $enable_ssl|sed 's/shared,*//'`
 
14852
      sharedobjs=yes
 
14853
      shared=yes
 
14854
      DSO_MODULES="$DSO_MODULES ssl"
 
14855
      ;;
 
14856
    *)
 
14857
      MODLIST="$MODLIST ssl"
 
14858
      if test "ssl" = "so"; then
 
14859
          sharedobjs=yes
 
14860
      fi
 
14861
      shared="";;
 
14862
    esac
 
14863
 
 
14864
 
 
14865
  if test -z "$ssl_objs"; then
 
14866
    objects="mod_ssl.lo"
 
14867
  else
 
14868
    objects="$ssl_objs"
 
14869
  fi
 
14870
 
 
14871
  if test -z "$module_standalone"; then
 
14872
    if test -z "$shared"; then
 
14873
      # The filename of a convenience library must have a "lib" prefix:
 
14874
      libname="libmod_ssl.la"
 
14875
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
14876
      modpath_static="$modpath_static $libname"
 
14877
      cat >>$modpath_current/modules.mk<<EOF
 
14878
$libname: $objects
 
14879
        \$(MOD_LINK) $objects \$(MOD_SSL_LDADD)
 
14880
EOF
 
14881
    else
 
14882
      apache_need_shared=yes
 
14883
      libname="mod_ssl.la"
 
14884
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
14885
      modpath_shared="$modpath_shared $libname"
 
14886
      cat >>$modpath_current/modules.mk<<EOF
 
14887
$libname: $shobjects
 
14888
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SSL_LDADD)
 
14889
EOF
 
14890
    fi
 
14891
  fi
 
14892
 
 
14893
 
 
14894
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SSL_LDADD"
 
14895
 
 
14896
 
 
14897
 
 
14898
  fi
 
14899
 
 
14900
 
 
14901
# Ensure that other modules can pick up mod_ssl.h
 
14902
 
 
14903
  if test "x$INCLUDES" = "x"; then
 
14904
    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
 
14905
    INCLUDES="-I\$(top_srcdir)/$modpath_current"
 
14906
  else
 
14907
    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
 
14908
    for i in $apr_addto_bugger; do
 
14909
      apr_addto_duplicate="0"
 
14910
      for j in $INCLUDES; do
 
14911
        if test "x$i" = "x$j"; then
 
14912
          apr_addto_duplicate="1"
 
14913
          break
 
14914
        fi
 
14915
      done
 
14916
      if test $apr_addto_duplicate = "0"; then
 
14917
        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
 
14918
        INCLUDES="$INCLUDES $i"
 
14919
      fi
 
14920
    done
 
14921
  fi
 
14922
 
 
14923
 
 
14924
 
 
14925
  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
 
14926
  echo "static = $modpath_static" >> $modpath_current/modules.mk
 
14927
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
 
14928
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
 
14929
    MODULE_DIRS="$MODULE_DIRS $current_dir"
 
14930
  else
 
14931
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
 
14932
  fi
 
14933
 
 
14934
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
 
14935
 
 
14936
 
 
14937
 
 
14938
 
 
14939
 
 
14940
 
 
14941
  current_dir=test
 
14942
  modpath_current=modules/test
 
14943
  modpath_static=
 
14944
  modpath_shared=
 
14945
  test -d test || $srcdir/build/mkdir.sh $modpath_current
 
14946
  > $modpath_current/modules.mk
 
14947
 
 
14948
 
 
14949
 
 
14950
  echo "$as_me:$LINENO: checking whether to enable mod_optional_hook_export" >&5
 
14951
echo $ECHO_N "checking whether to enable mod_optional_hook_export... $ECHO_C" >&6
 
14952
    # Check whether --enable-optional-hook-export or --disable-optional-hook-export was given.
 
14953
if test "${enable_optional_hook_export+set}" = set; then
 
14954
  enableval="$enable_optional_hook_export"
 
14955
 
 
14956
else
 
14957
  enable_optional_hook_export=no
 
14958
fi;
 
14959
    _apmod_extra_msg=""
 
14960
      if test "$module_selection" = "most" -a "$enable_optional_hook_export" = "most"; then
 
14961
    _apmod_error_fatal="no"
 
14962
  else
 
14963
    _apmod_error_fatal="yes"
 
14964
  fi
 
14965
  if test "$enable_optional_hook_export" = "static"; then
 
14966
    enable_optional_hook_export=yes
 
14967
  elif test "$enable_optional_hook_export" = "yes"; then
 
14968
    enable_optional_hook_export=$module_default
 
14969
    _apmod_extra_msg=" ($module_selection)"
 
14970
  elif test "$enable_optional_hook_export" = "most"; then
 
14971
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
14972
      enable_optional_hook_export=$module_default
 
14973
      _apmod_extra_msg=" ($module_selection)"
 
14974
    elif test "$enable_optional_hook_export" != "yes"; then
 
14975
      enable_optional_hook_export=no
 
14976
    fi
 
14977
  elif test "$enable_optional_hook_export" = "maybe-all"; then
 
14978
    if test "$module_selection" = "all"; then
 
14979
      enable_optional_hook_export=$module_default
 
14980
      _apmod_extra_msg=" (all)"
 
14981
    else
 
14982
      enable_optional_hook_export=no
 
14983
    fi
 
14984
  fi
 
14985
  if test "$enable_optional_hook_export" != "no"; then
 
14986
            :
 
14987
  fi
 
14988
  echo "$as_me:$LINENO: result: $enable_optional_hook_export$_apmod_extra_msg" >&5
 
14989
echo "${ECHO_T}$enable_optional_hook_export$_apmod_extra_msg" >&6
 
14990
  if test "$enable_optional_hook_export" != "no"; then
 
14991
    case "$enable_optional_hook_export" in
 
14992
    shared*)
 
14993
      enable_optional_hook_export=`echo $enable_optional_hook_export|sed 's/shared,*//'`
 
14994
      sharedobjs=yes
 
14995
      shared=yes
 
14996
      DSO_MODULES="$DSO_MODULES optional_hook_export"
 
14997
      ;;
 
14998
    *)
 
14999
      MODLIST="$MODLIST optional_hook_export"
 
15000
      if test "optional_hook_export" = "so"; then
 
15001
          sharedobjs=yes
 
15002
      fi
 
15003
      shared="";;
 
15004
    esac
 
15005
 
 
15006
 
 
15007
  if test -z ""; then
 
15008
    objects="mod_optional_hook_export.lo"
 
15009
  else
 
15010
    objects=""
 
15011
  fi
 
15012
 
 
15013
  if test -z "$module_standalone"; then
 
15014
    if test -z "$shared"; then
 
15015
      # The filename of a convenience library must have a "lib" prefix:
 
15016
      libname="libmod_optional_hook_export.la"
 
15017
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
15018
      modpath_static="$modpath_static $libname"
 
15019
      cat >>$modpath_current/modules.mk<<EOF
 
15020
$libname: $objects
 
15021
        \$(MOD_LINK) $objects \$(MOD_OPTIONAL_HOOK_EXPORT_LDADD)
 
15022
EOF
 
15023
    else
 
15024
      apache_need_shared=yes
 
15025
      libname="mod_optional_hook_export.la"
 
15026
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
15027
      modpath_shared="$modpath_shared $libname"
 
15028
      cat >>$modpath_current/modules.mk<<EOF
 
15029
$libname: $shobjects
 
15030
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_OPTIONAL_HOOK_EXPORT_LDADD)
 
15031
EOF
 
15032
    fi
 
15033
  fi
 
15034
 
 
15035
 
 
15036
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_OPTIONAL_HOOK_EXPORT_LDADD"
 
15037
 
 
15038
 
 
15039
 
 
15040
  fi
 
15041
 
 
15042
 
 
15043
  echo "$as_me:$LINENO: checking whether to enable mod_optional_hook_import" >&5
 
15044
echo $ECHO_N "checking whether to enable mod_optional_hook_import... $ECHO_C" >&6
 
15045
    # Check whether --enable-optional-hook-import or --disable-optional-hook-import was given.
 
15046
if test "${enable_optional_hook_import+set}" = set; then
 
15047
  enableval="$enable_optional_hook_import"
 
15048
 
 
15049
else
 
15050
  enable_optional_hook_import=no
 
15051
fi;
 
15052
    _apmod_extra_msg=""
 
15053
      if test "$module_selection" = "most" -a "$enable_optional_hook_import" = "most"; then
 
15054
    _apmod_error_fatal="no"
 
15055
  else
 
15056
    _apmod_error_fatal="yes"
 
15057
  fi
 
15058
  if test "$enable_optional_hook_import" = "static"; then
 
15059
    enable_optional_hook_import=yes
 
15060
  elif test "$enable_optional_hook_import" = "yes"; then
 
15061
    enable_optional_hook_import=$module_default
 
15062
    _apmod_extra_msg=" ($module_selection)"
 
15063
  elif test "$enable_optional_hook_import" = "most"; then
 
15064
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
15065
      enable_optional_hook_import=$module_default
 
15066
      _apmod_extra_msg=" ($module_selection)"
 
15067
    elif test "$enable_optional_hook_import" != "yes"; then
 
15068
      enable_optional_hook_import=no
 
15069
    fi
 
15070
  elif test "$enable_optional_hook_import" = "maybe-all"; then
 
15071
    if test "$module_selection" = "all"; then
 
15072
      enable_optional_hook_import=$module_default
 
15073
      _apmod_extra_msg=" (all)"
 
15074
    else
 
15075
      enable_optional_hook_import=no
 
15076
    fi
 
15077
  fi
 
15078
  if test "$enable_optional_hook_import" != "no"; then
 
15079
            :
 
15080
  fi
 
15081
  echo "$as_me:$LINENO: result: $enable_optional_hook_import$_apmod_extra_msg" >&5
 
15082
echo "${ECHO_T}$enable_optional_hook_import$_apmod_extra_msg" >&6
 
15083
  if test "$enable_optional_hook_import" != "no"; then
 
15084
    case "$enable_optional_hook_import" in
 
15085
    shared*)
 
15086
      enable_optional_hook_import=`echo $enable_optional_hook_import|sed 's/shared,*//'`
 
15087
      sharedobjs=yes
 
15088
      shared=yes
 
15089
      DSO_MODULES="$DSO_MODULES optional_hook_import"
 
15090
      ;;
 
15091
    *)
 
15092
      MODLIST="$MODLIST optional_hook_import"
 
15093
      if test "optional_hook_import" = "so"; then
 
15094
          sharedobjs=yes
 
15095
      fi
 
15096
      shared="";;
 
15097
    esac
 
15098
 
 
15099
 
 
15100
  if test -z ""; then
 
15101
    objects="mod_optional_hook_import.lo"
 
15102
  else
 
15103
    objects=""
 
15104
  fi
 
15105
 
 
15106
  if test -z "$module_standalone"; then
 
15107
    if test -z "$shared"; then
 
15108
      # The filename of a convenience library must have a "lib" prefix:
 
15109
      libname="libmod_optional_hook_import.la"
 
15110
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
15111
      modpath_static="$modpath_static $libname"
 
15112
      cat >>$modpath_current/modules.mk<<EOF
 
15113
$libname: $objects
 
15114
        \$(MOD_LINK) $objects \$(MOD_OPTIONAL_HOOK_IMPORT_LDADD)
 
15115
EOF
 
15116
    else
 
15117
      apache_need_shared=yes
 
15118
      libname="mod_optional_hook_import.la"
 
15119
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
15120
      modpath_shared="$modpath_shared $libname"
 
15121
      cat >>$modpath_current/modules.mk<<EOF
 
15122
$libname: $shobjects
 
15123
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_OPTIONAL_HOOK_IMPORT_LDADD)
 
15124
EOF
 
15125
    fi
 
15126
  fi
 
15127
 
 
15128
 
 
15129
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_OPTIONAL_HOOK_IMPORT_LDADD"
 
15130
 
 
15131
 
 
15132
 
 
15133
  fi
 
15134
 
 
15135
 
 
15136
  echo "$as_me:$LINENO: checking whether to enable mod_optional_fn_import" >&5
 
15137
echo $ECHO_N "checking whether to enable mod_optional_fn_import... $ECHO_C" >&6
 
15138
    # Check whether --enable-optional-fn-import or --disable-optional-fn-import was given.
 
15139
if test "${enable_optional_fn_import+set}" = set; then
 
15140
  enableval="$enable_optional_fn_import"
 
15141
 
 
15142
else
 
15143
  enable_optional_fn_import=no
 
15144
fi;
 
15145
    _apmod_extra_msg=""
 
15146
      if test "$module_selection" = "most" -a "$enable_optional_fn_import" = "most"; then
 
15147
    _apmod_error_fatal="no"
 
15148
  else
 
15149
    _apmod_error_fatal="yes"
 
15150
  fi
 
15151
  if test "$enable_optional_fn_import" = "static"; then
 
15152
    enable_optional_fn_import=yes
 
15153
  elif test "$enable_optional_fn_import" = "yes"; then
 
15154
    enable_optional_fn_import=$module_default
 
15155
    _apmod_extra_msg=" ($module_selection)"
 
15156
  elif test "$enable_optional_fn_import" = "most"; then
 
15157
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
15158
      enable_optional_fn_import=$module_default
 
15159
      _apmod_extra_msg=" ($module_selection)"
 
15160
    elif test "$enable_optional_fn_import" != "yes"; then
 
15161
      enable_optional_fn_import=no
 
15162
    fi
 
15163
  elif test "$enable_optional_fn_import" = "maybe-all"; then
 
15164
    if test "$module_selection" = "all"; then
 
15165
      enable_optional_fn_import=$module_default
 
15166
      _apmod_extra_msg=" (all)"
 
15167
    else
 
15168
      enable_optional_fn_import=no
 
15169
    fi
 
15170
  fi
 
15171
  if test "$enable_optional_fn_import" != "no"; then
 
15172
            :
 
15173
  fi
 
15174
  echo "$as_me:$LINENO: result: $enable_optional_fn_import$_apmod_extra_msg" >&5
 
15175
echo "${ECHO_T}$enable_optional_fn_import$_apmod_extra_msg" >&6
 
15176
  if test "$enable_optional_fn_import" != "no"; then
 
15177
    case "$enable_optional_fn_import" in
 
15178
    shared*)
 
15179
      enable_optional_fn_import=`echo $enable_optional_fn_import|sed 's/shared,*//'`
 
15180
      sharedobjs=yes
 
15181
      shared=yes
 
15182
      DSO_MODULES="$DSO_MODULES optional_fn_import"
 
15183
      ;;
 
15184
    *)
 
15185
      MODLIST="$MODLIST optional_fn_import"
 
15186
      if test "optional_fn_import" = "so"; then
 
15187
          sharedobjs=yes
 
15188
      fi
 
15189
      shared="";;
 
15190
    esac
 
15191
 
 
15192
 
 
15193
  if test -z ""; then
 
15194
    objects="mod_optional_fn_import.lo"
 
15195
  else
 
15196
    objects=""
 
15197
  fi
 
15198
 
 
15199
  if test -z "$module_standalone"; then
 
15200
    if test -z "$shared"; then
 
15201
      # The filename of a convenience library must have a "lib" prefix:
 
15202
      libname="libmod_optional_fn_import.la"
 
15203
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
15204
      modpath_static="$modpath_static $libname"
 
15205
      cat >>$modpath_current/modules.mk<<EOF
 
15206
$libname: $objects
 
15207
        \$(MOD_LINK) $objects \$(MOD_OPTIONAL_FN_IMPORT_LDADD)
 
15208
EOF
 
15209
    else
 
15210
      apache_need_shared=yes
 
15211
      libname="mod_optional_fn_import.la"
 
15212
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
15213
      modpath_shared="$modpath_shared $libname"
 
15214
      cat >>$modpath_current/modules.mk<<EOF
 
15215
$libname: $shobjects
 
15216
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_OPTIONAL_FN_IMPORT_LDADD)
 
15217
EOF
 
15218
    fi
 
15219
  fi
 
15220
 
 
15221
 
 
15222
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_OPTIONAL_FN_IMPORT_LDADD"
 
15223
 
 
15224
 
 
15225
 
 
15226
  fi
 
15227
 
 
15228
 
 
15229
  echo "$as_me:$LINENO: checking whether to enable mod_optional_fn_export" >&5
 
15230
echo $ECHO_N "checking whether to enable mod_optional_fn_export... $ECHO_C" >&6
 
15231
    # Check whether --enable-optional-fn-export or --disable-optional-fn-export was given.
 
15232
if test "${enable_optional_fn_export+set}" = set; then
 
15233
  enableval="$enable_optional_fn_export"
 
15234
 
 
15235
else
 
15236
  enable_optional_fn_export=no
 
15237
fi;
 
15238
    _apmod_extra_msg=""
 
15239
      if test "$module_selection" = "most" -a "$enable_optional_fn_export" = "most"; then
 
15240
    _apmod_error_fatal="no"
 
15241
  else
 
15242
    _apmod_error_fatal="yes"
 
15243
  fi
 
15244
  if test "$enable_optional_fn_export" = "static"; then
 
15245
    enable_optional_fn_export=yes
 
15246
  elif test "$enable_optional_fn_export" = "yes"; then
 
15247
    enable_optional_fn_export=$module_default
 
15248
    _apmod_extra_msg=" ($module_selection)"
 
15249
  elif test "$enable_optional_fn_export" = "most"; then
 
15250
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
15251
      enable_optional_fn_export=$module_default
 
15252
      _apmod_extra_msg=" ($module_selection)"
 
15253
    elif test "$enable_optional_fn_export" != "yes"; then
 
15254
      enable_optional_fn_export=no
 
15255
    fi
 
15256
  elif test "$enable_optional_fn_export" = "maybe-all"; then
 
15257
    if test "$module_selection" = "all"; then
 
15258
      enable_optional_fn_export=$module_default
 
15259
      _apmod_extra_msg=" (all)"
 
15260
    else
 
15261
      enable_optional_fn_export=no
 
15262
    fi
 
15263
  fi
 
15264
  if test "$enable_optional_fn_export" != "no"; then
 
15265
            :
 
15266
  fi
 
15267
  echo "$as_me:$LINENO: result: $enable_optional_fn_export$_apmod_extra_msg" >&5
 
15268
echo "${ECHO_T}$enable_optional_fn_export$_apmod_extra_msg" >&6
 
15269
  if test "$enable_optional_fn_export" != "no"; then
 
15270
    case "$enable_optional_fn_export" in
 
15271
    shared*)
 
15272
      enable_optional_fn_export=`echo $enable_optional_fn_export|sed 's/shared,*//'`
 
15273
      sharedobjs=yes
 
15274
      shared=yes
 
15275
      DSO_MODULES="$DSO_MODULES optional_fn_export"
 
15276
      ;;
 
15277
    *)
 
15278
      MODLIST="$MODLIST optional_fn_export"
 
15279
      if test "optional_fn_export" = "so"; then
 
15280
          sharedobjs=yes
 
15281
      fi
 
15282
      shared="";;
 
15283
    esac
 
15284
 
 
15285
 
 
15286
  if test -z ""; then
 
15287
    objects="mod_optional_fn_export.lo"
 
15288
  else
 
15289
    objects=""
 
15290
  fi
 
15291
 
 
15292
  if test -z "$module_standalone"; then
 
15293
    if test -z "$shared"; then
 
15294
      # The filename of a convenience library must have a "lib" prefix:
 
15295
      libname="libmod_optional_fn_export.la"
 
15296
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
15297
      modpath_static="$modpath_static $libname"
 
15298
      cat >>$modpath_current/modules.mk<<EOF
 
15299
$libname: $objects
 
15300
        \$(MOD_LINK) $objects \$(MOD_OPTIONAL_FN_EXPORT_LDADD)
 
15301
EOF
 
15302
    else
 
15303
      apache_need_shared=yes
 
15304
      libname="mod_optional_fn_export.la"
 
15305
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
15306
      modpath_shared="$modpath_shared $libname"
 
15307
      cat >>$modpath_current/modules.mk<<EOF
 
15308
$libname: $shobjects
 
15309
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_OPTIONAL_FN_EXPORT_LDADD)
 
15310
EOF
 
15311
    fi
 
15312
  fi
 
15313
 
 
15314
 
 
15315
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_OPTIONAL_FN_EXPORT_LDADD"
 
15316
 
 
15317
 
 
15318
 
 
15319
  fi
 
15320
 
 
15321
 
 
15322
 
 
15323
  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
 
15324
  echo "static = $modpath_static" >> $modpath_current/modules.mk
 
15325
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
 
15326
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
 
15327
    MODULE_DIRS="$MODULE_DIRS $current_dir"
 
15328
  else
 
15329
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
 
15330
  fi
 
15331
 
 
15332
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
 
15333
 
 
15334
 
 
15335
 
 
15336
if test "$OS" = "beos" ; then
 
15337
 
 
15338
  if test "x$CFLAGS" = "x"; then
 
15339
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-DBEOS\""
 
15340
    CFLAGS="-DBEOS"
 
15341
  else
 
15342
    apr_addto_bugger="-DBEOS"
 
15343
    for i in $apr_addto_bugger; do
 
15344
      apr_addto_duplicate="0"
 
15345
      for j in $CFLAGS; do
 
15346
        if test "x$i" = "x$j"; then
 
15347
          apr_addto_duplicate="1"
 
15348
          break
 
15349
        fi
 
15350
      done
 
15351
      if test $apr_addto_duplicate = "0"; then
 
15352
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
 
15353
        CFLAGS="$CFLAGS $i"
 
15354
      fi
 
15355
    done
 
15356
  fi
 
15357
 
 
15358
fi
 
15359
 
 
15360
echo "$as_me:$LINENO: checking for target platform" >&5
 
15361
echo $ECHO_N "checking for target platform... $ECHO_C" >&6
 
15362
 
 
15363
case $host in
 
15364
*beos*)
 
15365
  OS="beos"
 
15366
  OS_DIR=$OS
 
15367
  ;;
 
15368
*pc-os2-emx*)
 
15369
  OS="os2"
 
15370
  OS_DIR=$OS
 
15371
  ;;
 
15372
bs2000*)
 
15373
  OS="unix"
 
15374
  OS_DIR=$OS
 
15375
  ;;
 
15376
*cygwin*)
 
15377
  OS="cygwin"
 
15378
  OS_DIR="unix"
 
15379
  ;;
 
15380
*)
 
15381
  OS="unix"
 
15382
  OS_DIR=$OS;;
 
15383
esac
 
15384
 
 
15385
echo "$as_me:$LINENO: result: $OS" >&5
 
15386
echo "${ECHO_T}$OS" >&6
 
15387
 
 
15388
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES os/${OS_DIR}/Makefile"
 
15389
 
 
15390
 
 
15391
if test "$OS" = "os2" ; then
 
15392
 
 
15393
  if test "x$CFLAGS" = "x"; then
 
15394
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-DOS2 -O2\""
 
15395
    CFLAGS="-DOS2 -O2"
 
15396
  else
 
15397
    apr_addto_bugger="-DOS2 -O2"
 
15398
    for i in $apr_addto_bugger; do
 
15399
      apr_addto_duplicate="0"
 
15400
      for j in $CFLAGS; do
 
15401
        if test "x$i" = "x$j"; then
 
15402
          apr_addto_duplicate="1"
 
15403
          break
 
15404
        fi
 
15405
      done
 
15406
      if test $apr_addto_duplicate = "0"; then
 
15407
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
 
15408
        CFLAGS="$CFLAGS $i"
 
15409
      fi
 
15410
    done
 
15411
  fi
 
15412
 
 
15413
fi
 
15414
 
 
15415
if test "$OS" = "unix" ; then
 
15416
 
 
15417
  echo "$as_me:$LINENO: checking for rlim_t" >&5
 
15418
echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6
 
15419
if test "${ac_cv_type_rlim_t+set}" = set; then
 
15420
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15421
else
 
15422
 
 
15423
    cat >conftest.$ac_ext <<_ACEOF
 
15424
/* confdefs.h.  */
 
15425
_ACEOF
 
15426
cat confdefs.h >>conftest.$ac_ext
 
15427
cat >>conftest.$ac_ext <<_ACEOF
 
15428
/* end confdefs.h.  */
 
15429
 
 
15430
#include <sys/types.h>
 
15431
#include <sys/time.h>
 
15432
#include <sys/resource.h>
 
15433
 
 
15434
int
 
15435
main ()
 
15436
{
 
15437
rlim_t spoon;
 
15438
  ;
 
15439
  return 0;
 
15440
}
 
15441
_ACEOF
 
15442
rm -f conftest.$ac_objext
 
15443
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15444
  (eval $ac_compile) 2>conftest.er1
 
15445
  ac_status=$?
 
15446
  grep -v '^ *+' conftest.er1 >conftest.err
 
15447
  rm -f conftest.er1
 
15448
  cat conftest.err >&5
 
15449
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15450
  (exit $ac_status); } &&
 
15451
         { ac_try='test -z "$ac_c_werror_flag"
 
15452
                         || test ! -s conftest.err'
 
15453
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15454
  (eval $ac_try) 2>&5
 
15455
  ac_status=$?
 
15456
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15457
  (exit $ac_status); }; } &&
 
15458
         { ac_try='test -s conftest.$ac_objext'
 
15459
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15460
  (eval $ac_try) 2>&5
 
15461
  ac_status=$?
 
15462
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15463
  (exit $ac_status); }; }; then
 
15464
 
 
15465
      ac_cv_type_rlim_t=yes
 
15466
 
 
15467
else
 
15468
  echo "$as_me: failed program was:" >&5
 
15469
sed 's/^/| /' conftest.$ac_ext >&5
 
15470
 
 
15471
ac_cv_type_rlim_t=no
 
15472
 
 
15473
fi
 
15474
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15475
 
 
15476
fi
 
15477
echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
 
15478
echo "${ECHO_T}$ac_cv_type_rlim_t" >&6
 
15479
  if test "$ac_cv_type_rlim_t" = "no" ; then
 
15480
 
 
15481
cat >>confdefs.h <<\_ACEOF
 
15482
#define rlim_t int
 
15483
_ACEOF
 
15484
 
 
15485
  fi
 
15486
 
 
15487
 
 
15488
 
 
15489
 
 
15490
 
 
15491
 
 
15492
for ac_header in sys/time.h sys/resource.h sys/sem.h sys/ipc.h
 
15493
do
 
15494
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
15495
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
15496
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
15497
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
15498
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
15499
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15500
fi
 
15501
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
15502
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
15503
else
 
15504
  # Is the header compilable?
 
15505
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
15506
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
15507
cat >conftest.$ac_ext <<_ACEOF
 
15508
/* confdefs.h.  */
 
15509
_ACEOF
 
15510
cat confdefs.h >>conftest.$ac_ext
 
15511
cat >>conftest.$ac_ext <<_ACEOF
 
15512
/* end confdefs.h.  */
 
15513
$ac_includes_default
 
15514
#include <$ac_header>
 
15515
_ACEOF
 
15516
rm -f conftest.$ac_objext
 
15517
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15518
  (eval $ac_compile) 2>conftest.er1
 
15519
  ac_status=$?
 
15520
  grep -v '^ *+' conftest.er1 >conftest.err
 
15521
  rm -f conftest.er1
 
15522
  cat conftest.err >&5
 
15523
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15524
  (exit $ac_status); } &&
 
15525
         { ac_try='test -z "$ac_c_werror_flag"
 
15526
                         || test ! -s conftest.err'
 
15527
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15528
  (eval $ac_try) 2>&5
 
15529
  ac_status=$?
 
15530
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15531
  (exit $ac_status); }; } &&
 
15532
         { ac_try='test -s conftest.$ac_objext'
 
15533
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15534
  (eval $ac_try) 2>&5
 
15535
  ac_status=$?
 
15536
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15537
  (exit $ac_status); }; }; then
 
15538
  ac_header_compiler=yes
 
15539
else
 
15540
  echo "$as_me: failed program was:" >&5
 
15541
sed 's/^/| /' conftest.$ac_ext >&5
 
15542
 
 
15543
ac_header_compiler=no
 
15544
fi
 
15545
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15546
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
15547
echo "${ECHO_T}$ac_header_compiler" >&6
 
15548
 
 
15549
# Is the header present?
 
15550
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
15551
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
15552
cat >conftest.$ac_ext <<_ACEOF
 
15553
/* confdefs.h.  */
 
15554
_ACEOF
 
15555
cat confdefs.h >>conftest.$ac_ext
 
15556
cat >>conftest.$ac_ext <<_ACEOF
 
15557
/* end confdefs.h.  */
 
15558
#include <$ac_header>
 
15559
_ACEOF
 
15560
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
15561
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
15562
  ac_status=$?
 
15563
  grep -v '^ *+' conftest.er1 >conftest.err
 
15564
  rm -f conftest.er1
 
15565
  cat conftest.err >&5
 
15566
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15567
  (exit $ac_status); } >/dev/null; then
 
15568
  if test -s conftest.err; then
 
15569
    ac_cpp_err=$ac_c_preproc_warn_flag
 
15570
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
15571
  else
 
15572
    ac_cpp_err=
 
15573
  fi
 
15574
else
 
15575
  ac_cpp_err=yes
 
15576
fi
 
15577
if test -z "$ac_cpp_err"; then
 
15578
  ac_header_preproc=yes
 
15579
else
 
15580
  echo "$as_me: failed program was:" >&5
 
15581
sed 's/^/| /' conftest.$ac_ext >&5
 
15582
 
 
15583
  ac_header_preproc=no
 
15584
fi
 
15585
rm -f conftest.err conftest.$ac_ext
 
15586
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
15587
echo "${ECHO_T}$ac_header_preproc" >&6
 
15588
 
 
15589
# So?  What about this header?
 
15590
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
15591
  yes:no: )
 
15592
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
15593
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
15594
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
15595
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
15596
    ac_header_preproc=yes
 
15597
    ;;
 
15598
  no:yes:* )
 
15599
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
15600
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
15601
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
15602
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
15603
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
15604
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
15605
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
15606
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
15607
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
15608
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
15609
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
15610
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
15611
    (
 
15612
      cat <<\_ASBOX
 
15613
## ------------------------------------------ ##
 
15614
## Report this to the AC_PACKAGE_NAME lists.  ##
 
15615
## ------------------------------------------ ##
 
15616
_ASBOX
 
15617
    ) |
 
15618
      sed "s/^/$as_me: WARNING:     /" >&2
 
15619
    ;;
 
15620
esac
 
15621
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
15622
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
15623
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
15624
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15625
else
 
15626
  eval "$as_ac_Header=\$ac_header_preproc"
 
15627
fi
 
15628
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
15629
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
15630
 
 
15631
fi
 
15632
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
15633
  cat >>confdefs.h <<_ACEOF
 
15634
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
15635
_ACEOF
 
15636
 
 
15637
fi
 
15638
 
 
15639
done
 
15640
 
 
15641
 
 
15642
 
 
15643
 
 
15644
for ac_func in setsid killpg
 
15645
do
 
15646
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
15647
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
15648
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
15649
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
15650
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15651
else
 
15652
  cat >conftest.$ac_ext <<_ACEOF
 
15653
/* confdefs.h.  */
 
15654
_ACEOF
 
15655
cat confdefs.h >>conftest.$ac_ext
 
15656
cat >>conftest.$ac_ext <<_ACEOF
 
15657
/* end confdefs.h.  */
 
15658
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
15659
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
15660
#define $ac_func innocuous_$ac_func
 
15661
 
 
15662
/* System header to define __stub macros and hopefully few prototypes,
 
15663
    which can conflict with char $ac_func (); below.
 
15664
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
15665
    <limits.h> exists even on freestanding compilers.  */
 
15666
 
 
15667
#ifdef __STDC__
 
15668
# include <limits.h>
 
15669
#else
 
15670
# include <assert.h>
 
15671
#endif
 
15672
 
 
15673
#undef $ac_func
 
15674
 
 
15675
/* Override any gcc2 internal prototype to avoid an error.  */
 
15676
#ifdef __cplusplus
 
15677
extern "C"
 
15678
{
 
15679
#endif
 
15680
/* We use char because int might match the return type of a gcc2
 
15681
   builtin and then its argument prototype would still apply.  */
 
15682
char $ac_func ();
 
15683
/* The GNU C library defines this for functions which it implements
 
15684
    to always fail with ENOSYS.  Some functions are actually named
 
15685
    something starting with __ and the normal name is an alias.  */
 
15686
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
15687
choke me
 
15688
#else
 
15689
char (*f) () = $ac_func;
 
15690
#endif
 
15691
#ifdef __cplusplus
 
15692
}
 
15693
#endif
 
15694
 
 
15695
int
 
15696
main ()
 
15697
{
 
15698
return f != $ac_func;
 
15699
  ;
 
15700
  return 0;
 
15701
}
 
15702
_ACEOF
 
15703
rm -f conftest.$ac_objext conftest$ac_exeext
 
15704
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15705
  (eval $ac_link) 2>conftest.er1
 
15706
  ac_status=$?
 
15707
  grep -v '^ *+' conftest.er1 >conftest.err
 
15708
  rm -f conftest.er1
 
15709
  cat conftest.err >&5
 
15710
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15711
  (exit $ac_status); } &&
 
15712
         { ac_try='test -z "$ac_c_werror_flag"
 
15713
                         || test ! -s conftest.err'
 
15714
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15715
  (eval $ac_try) 2>&5
 
15716
  ac_status=$?
 
15717
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15718
  (exit $ac_status); }; } &&
 
15719
         { ac_try='test -s conftest$ac_exeext'
 
15720
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15721
  (eval $ac_try) 2>&5
 
15722
  ac_status=$?
 
15723
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15724
  (exit $ac_status); }; }; then
 
15725
  eval "$as_ac_var=yes"
 
15726
else
 
15727
  echo "$as_me: failed program was:" >&5
 
15728
sed 's/^/| /' conftest.$ac_ext >&5
 
15729
 
 
15730
eval "$as_ac_var=no"
 
15731
fi
 
15732
rm -f conftest.err conftest.$ac_objext \
 
15733
      conftest$ac_exeext conftest.$ac_ext
 
15734
fi
 
15735
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
15736
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
15737
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
15738
  cat >>confdefs.h <<_ACEOF
 
15739
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
15740
_ACEOF
 
15741
 
 
15742
fi
 
15743
done
 
15744
 
 
15745
fi
 
15746
 
 
15747
 
 
15748
 
 
15749
 
 
15750
 
 
15751
for ac_header in bstring.h unistd.h
 
15752
do
 
15753
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
15754
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
15755
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
15756
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
15757
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
15758
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15759
fi
 
15760
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
15761
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
15762
else
 
15763
  # Is the header compilable?
 
15764
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
15765
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
15766
cat >conftest.$ac_ext <<_ACEOF
 
15767
/* confdefs.h.  */
 
15768
_ACEOF
 
15769
cat confdefs.h >>conftest.$ac_ext
 
15770
cat >>conftest.$ac_ext <<_ACEOF
 
15771
/* end confdefs.h.  */
 
15772
$ac_includes_default
 
15773
#include <$ac_header>
 
15774
_ACEOF
 
15775
rm -f conftest.$ac_objext
 
15776
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15777
  (eval $ac_compile) 2>conftest.er1
 
15778
  ac_status=$?
 
15779
  grep -v '^ *+' conftest.er1 >conftest.err
 
15780
  rm -f conftest.er1
 
15781
  cat conftest.err >&5
 
15782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15783
  (exit $ac_status); } &&
 
15784
         { ac_try='test -z "$ac_c_werror_flag"
 
15785
                         || test ! -s conftest.err'
 
15786
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15787
  (eval $ac_try) 2>&5
 
15788
  ac_status=$?
 
15789
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15790
  (exit $ac_status); }; } &&
 
15791
         { ac_try='test -s conftest.$ac_objext'
 
15792
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15793
  (eval $ac_try) 2>&5
 
15794
  ac_status=$?
 
15795
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15796
  (exit $ac_status); }; }; then
 
15797
  ac_header_compiler=yes
 
15798
else
 
15799
  echo "$as_me: failed program was:" >&5
 
15800
sed 's/^/| /' conftest.$ac_ext >&5
 
15801
 
 
15802
ac_header_compiler=no
 
15803
fi
 
15804
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15805
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
15806
echo "${ECHO_T}$ac_header_compiler" >&6
 
15807
 
 
15808
# Is the header present?
 
15809
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
15810
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
15811
cat >conftest.$ac_ext <<_ACEOF
 
15812
/* confdefs.h.  */
 
15813
_ACEOF
 
15814
cat confdefs.h >>conftest.$ac_ext
 
15815
cat >>conftest.$ac_ext <<_ACEOF
 
15816
/* end confdefs.h.  */
 
15817
#include <$ac_header>
 
15818
_ACEOF
 
15819
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
15820
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
15821
  ac_status=$?
 
15822
  grep -v '^ *+' conftest.er1 >conftest.err
 
15823
  rm -f conftest.er1
 
15824
  cat conftest.err >&5
 
15825
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15826
  (exit $ac_status); } >/dev/null; then
 
15827
  if test -s conftest.err; then
 
15828
    ac_cpp_err=$ac_c_preproc_warn_flag
 
15829
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
15830
  else
 
15831
    ac_cpp_err=
 
15832
  fi
 
15833
else
 
15834
  ac_cpp_err=yes
 
15835
fi
 
15836
if test -z "$ac_cpp_err"; then
 
15837
  ac_header_preproc=yes
 
15838
else
 
15839
  echo "$as_me: failed program was:" >&5
 
15840
sed 's/^/| /' conftest.$ac_ext >&5
 
15841
 
 
15842
  ac_header_preproc=no
 
15843
fi
 
15844
rm -f conftest.err conftest.$ac_ext
 
15845
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
15846
echo "${ECHO_T}$ac_header_preproc" >&6
 
15847
 
 
15848
# So?  What about this header?
 
15849
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
15850
  yes:no: )
 
15851
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
15852
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
15853
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
15854
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
15855
    ac_header_preproc=yes
 
15856
    ;;
 
15857
  no:yes:* )
 
15858
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
15859
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
15860
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
15861
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
15862
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
15863
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
15864
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
15865
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
15866
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
15867
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
15868
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
15869
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
15870
    (
 
15871
      cat <<\_ASBOX
 
15872
## ------------------------------------------ ##
 
15873
## Report this to the AC_PACKAGE_NAME lists.  ##
 
15874
## ------------------------------------------ ##
 
15875
_ASBOX
 
15876
    ) |
 
15877
      sed "s/^/$as_me: WARNING:     /" >&2
 
15878
    ;;
 
15879
esac
 
15880
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
15881
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
15882
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
15883
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15884
else
 
15885
  eval "$as_ac_Header=\$ac_header_preproc"
 
15886
fi
 
15887
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
15888
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
15889
 
 
15890
fi
 
15891
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
15892
  cat >>confdefs.h <<_ACEOF
 
15893
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
15894
_ACEOF
 
15895
 
 
15896
fi
 
15897
 
 
15898
done
 
15899
 
 
15900
 
 
15901
 
 
15902
 
 
15903
 
 
15904
for ac_func in syslog
 
15905
do
 
15906
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
15907
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
15908
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
15909
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
15910
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15911
else
 
15912
  cat >conftest.$ac_ext <<_ACEOF
 
15913
/* confdefs.h.  */
 
15914
_ACEOF
 
15915
cat confdefs.h >>conftest.$ac_ext
 
15916
cat >>conftest.$ac_ext <<_ACEOF
 
15917
/* end confdefs.h.  */
 
15918
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
15919
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
15920
#define $ac_func innocuous_$ac_func
 
15921
 
 
15922
/* System header to define __stub macros and hopefully few prototypes,
 
15923
    which can conflict with char $ac_func (); below.
 
15924
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
15925
    <limits.h> exists even on freestanding compilers.  */
 
15926
 
 
15927
#ifdef __STDC__
 
15928
# include <limits.h>
 
15929
#else
 
15930
# include <assert.h>
 
15931
#endif
 
15932
 
 
15933
#undef $ac_func
 
15934
 
 
15935
/* Override any gcc2 internal prototype to avoid an error.  */
 
15936
#ifdef __cplusplus
 
15937
extern "C"
 
15938
{
 
15939
#endif
 
15940
/* We use char because int might match the return type of a gcc2
 
15941
   builtin and then its argument prototype would still apply.  */
 
15942
char $ac_func ();
 
15943
/* The GNU C library defines this for functions which it implements
 
15944
    to always fail with ENOSYS.  Some functions are actually named
 
15945
    something starting with __ and the normal name is an alias.  */
 
15946
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
15947
choke me
 
15948
#else
 
15949
char (*f) () = $ac_func;
 
15950
#endif
 
15951
#ifdef __cplusplus
 
15952
}
 
15953
#endif
 
15954
 
 
15955
int
 
15956
main ()
 
15957
{
 
15958
return f != $ac_func;
 
15959
  ;
 
15960
  return 0;
 
15961
}
 
15962
_ACEOF
 
15963
rm -f conftest.$ac_objext conftest$ac_exeext
 
15964
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15965
  (eval $ac_link) 2>conftest.er1
 
15966
  ac_status=$?
 
15967
  grep -v '^ *+' conftest.er1 >conftest.err
 
15968
  rm -f conftest.er1
 
15969
  cat conftest.err >&5
 
15970
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15971
  (exit $ac_status); } &&
 
15972
         { ac_try='test -z "$ac_c_werror_flag"
 
15973
                         || test ! -s conftest.err'
 
15974
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15975
  (eval $ac_try) 2>&5
 
15976
  ac_status=$?
 
15977
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15978
  (exit $ac_status); }; } &&
 
15979
         { ac_try='test -s conftest$ac_exeext'
 
15980
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15981
  (eval $ac_try) 2>&5
 
15982
  ac_status=$?
 
15983
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15984
  (exit $ac_status); }; }; then
 
15985
  eval "$as_ac_var=yes"
 
15986
else
 
15987
  echo "$as_me: failed program was:" >&5
 
15988
sed 's/^/| /' conftest.$ac_ext >&5
 
15989
 
 
15990
eval "$as_ac_var=no"
 
15991
fi
 
15992
rm -f conftest.err conftest.$ac_objext \
 
15993
      conftest$ac_exeext conftest.$ac_ext
 
15994
fi
 
15995
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
15996
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
15997
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
15998
  cat >>confdefs.h <<_ACEOF
 
15999
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
16000
_ACEOF
 
16001
 
 
16002
fi
 
16003
done
 
16004
 
 
16005
 
 
16006
 
 
16007
for ac_header in sys/times.h
 
16008
do
 
16009
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
16010
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
16011
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
16012
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
16013
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
16014
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16015
fi
 
16016
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
16017
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
16018
else
 
16019
  # Is the header compilable?
 
16020
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
16021
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
16022
cat >conftest.$ac_ext <<_ACEOF
 
16023
/* confdefs.h.  */
 
16024
_ACEOF
 
16025
cat confdefs.h >>conftest.$ac_ext
 
16026
cat >>conftest.$ac_ext <<_ACEOF
 
16027
/* end confdefs.h.  */
 
16028
$ac_includes_default
 
16029
#include <$ac_header>
 
16030
_ACEOF
 
16031
rm -f conftest.$ac_objext
 
16032
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16033
  (eval $ac_compile) 2>conftest.er1
 
16034
  ac_status=$?
 
16035
  grep -v '^ *+' conftest.er1 >conftest.err
 
16036
  rm -f conftest.er1
 
16037
  cat conftest.err >&5
 
16038
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16039
  (exit $ac_status); } &&
 
16040
         { ac_try='test -z "$ac_c_werror_flag"
 
16041
                         || test ! -s conftest.err'
 
16042
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16043
  (eval $ac_try) 2>&5
 
16044
  ac_status=$?
 
16045
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16046
  (exit $ac_status); }; } &&
 
16047
         { ac_try='test -s conftest.$ac_objext'
 
16048
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16049
  (eval $ac_try) 2>&5
 
16050
  ac_status=$?
 
16051
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16052
  (exit $ac_status); }; }; then
 
16053
  ac_header_compiler=yes
 
16054
else
 
16055
  echo "$as_me: failed program was:" >&5
 
16056
sed 's/^/| /' conftest.$ac_ext >&5
 
16057
 
 
16058
ac_header_compiler=no
 
16059
fi
 
16060
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16061
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
16062
echo "${ECHO_T}$ac_header_compiler" >&6
 
16063
 
 
16064
# Is the header present?
 
16065
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
16066
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
16067
cat >conftest.$ac_ext <<_ACEOF
 
16068
/* confdefs.h.  */
 
16069
_ACEOF
 
16070
cat confdefs.h >>conftest.$ac_ext
 
16071
cat >>conftest.$ac_ext <<_ACEOF
 
16072
/* end confdefs.h.  */
 
16073
#include <$ac_header>
 
16074
_ACEOF
 
16075
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
16076
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
16077
  ac_status=$?
 
16078
  grep -v '^ *+' conftest.er1 >conftest.err
 
16079
  rm -f conftest.er1
 
16080
  cat conftest.err >&5
 
16081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16082
  (exit $ac_status); } >/dev/null; then
 
16083
  if test -s conftest.err; then
 
16084
    ac_cpp_err=$ac_c_preproc_warn_flag
 
16085
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
16086
  else
 
16087
    ac_cpp_err=
 
16088
  fi
 
16089
else
 
16090
  ac_cpp_err=yes
 
16091
fi
 
16092
if test -z "$ac_cpp_err"; then
 
16093
  ac_header_preproc=yes
 
16094
else
 
16095
  echo "$as_me: failed program was:" >&5
 
16096
sed 's/^/| /' conftest.$ac_ext >&5
 
16097
 
 
16098
  ac_header_preproc=no
 
16099
fi
 
16100
rm -f conftest.err conftest.$ac_ext
 
16101
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
16102
echo "${ECHO_T}$ac_header_preproc" >&6
 
16103
 
 
16104
# So?  What about this header?
 
16105
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
16106
  yes:no: )
 
16107
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
16108
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
16109
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
16110
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
16111
    ac_header_preproc=yes
 
16112
    ;;
 
16113
  no:yes:* )
 
16114
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
16115
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
16116
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
16117
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
16118
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
16119
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
16120
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
16121
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
16122
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
16123
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
16124
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
16125
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
16126
    (
 
16127
      cat <<\_ASBOX
 
16128
## ------------------------------------------ ##
 
16129
## Report this to the AC_PACKAGE_NAME lists.  ##
 
16130
## ------------------------------------------ ##
 
16131
_ASBOX
 
16132
    ) |
 
16133
      sed "s/^/$as_me: WARNING:     /" >&2
 
16134
    ;;
 
16135
esac
 
16136
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
16137
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
16138
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
16139
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16140
else
 
16141
  eval "$as_ac_Header=\$ac_header_preproc"
 
16142
fi
 
16143
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
16144
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
16145
 
 
16146
fi
 
16147
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
16148
  cat >>confdefs.h <<_ACEOF
 
16149
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
16150
_ACEOF
 
16151
 
 
16152
fi
 
16153
 
 
16154
done
 
16155
 
 
16156
 
 
16157
for ac_func in times
 
16158
do
 
16159
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
16160
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
16161
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
16162
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
16163
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16164
else
 
16165
  cat >conftest.$ac_ext <<_ACEOF
 
16166
/* confdefs.h.  */
 
16167
_ACEOF
 
16168
cat confdefs.h >>conftest.$ac_ext
 
16169
cat >>conftest.$ac_ext <<_ACEOF
 
16170
/* end confdefs.h.  */
 
16171
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
16172
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
16173
#define $ac_func innocuous_$ac_func
 
16174
 
 
16175
/* System header to define __stub macros and hopefully few prototypes,
 
16176
    which can conflict with char $ac_func (); below.
 
16177
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
16178
    <limits.h> exists even on freestanding compilers.  */
 
16179
 
 
16180
#ifdef __STDC__
 
16181
# include <limits.h>
 
16182
#else
 
16183
# include <assert.h>
 
16184
#endif
 
16185
 
 
16186
#undef $ac_func
 
16187
 
 
16188
/* Override any gcc2 internal prototype to avoid an error.  */
 
16189
#ifdef __cplusplus
 
16190
extern "C"
 
16191
{
 
16192
#endif
 
16193
/* We use char because int might match the return type of a gcc2
 
16194
   builtin and then its argument prototype would still apply.  */
 
16195
char $ac_func ();
 
16196
/* The GNU C library defines this for functions which it implements
 
16197
    to always fail with ENOSYS.  Some functions are actually named
 
16198
    something starting with __ and the normal name is an alias.  */
 
16199
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
16200
choke me
 
16201
#else
 
16202
char (*f) () = $ac_func;
 
16203
#endif
 
16204
#ifdef __cplusplus
 
16205
}
 
16206
#endif
 
16207
 
 
16208
int
 
16209
main ()
 
16210
{
 
16211
return f != $ac_func;
 
16212
  ;
 
16213
  return 0;
 
16214
}
 
16215
_ACEOF
 
16216
rm -f conftest.$ac_objext conftest$ac_exeext
 
16217
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16218
  (eval $ac_link) 2>conftest.er1
 
16219
  ac_status=$?
 
16220
  grep -v '^ *+' conftest.er1 >conftest.err
 
16221
  rm -f conftest.er1
 
16222
  cat conftest.err >&5
 
16223
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16224
  (exit $ac_status); } &&
 
16225
         { ac_try='test -z "$ac_c_werror_flag"
 
16226
                         || test ! -s conftest.err'
 
16227
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16228
  (eval $ac_try) 2>&5
 
16229
  ac_status=$?
 
16230
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16231
  (exit $ac_status); }; } &&
 
16232
         { ac_try='test -s conftest$ac_exeext'
 
16233
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16234
  (eval $ac_try) 2>&5
 
16235
  ac_status=$?
 
16236
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16237
  (exit $ac_status); }; }; then
 
16238
  eval "$as_ac_var=yes"
 
16239
else
 
16240
  echo "$as_me: failed program was:" >&5
 
16241
sed 's/^/| /' conftest.$ac_ext >&5
 
16242
 
 
16243
eval "$as_ac_var=no"
 
16244
fi
 
16245
rm -f conftest.err conftest.$ac_objext \
 
16246
      conftest$ac_exeext conftest.$ac_ext
 
16247
fi
 
16248
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
16249
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
16250
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
16251
  cat >>confdefs.h <<_ACEOF
 
16252
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
16253
_ACEOF
 
16254
 
 
16255
fi
 
16256
done
 
16257
 
 
16258
 
 
16259
echo "$as_me:$LINENO: checking which MPM to use" >&5
 
16260
echo $ECHO_N "checking which MPM to use... $ECHO_C" >&6
 
16261
 
 
16262
# Check whether --with-mpm or --without-mpm was given.
 
16263
if test "${with_mpm+set}" = set; then
 
16264
  withval="$with_mpm"
 
16265
 
 
16266
  APACHE_MPM=$withval
 
16267
 
 
16268
else
 
16269
 
 
16270
  if test "x$APACHE_MPM" = "x"; then
 
16271
    APACHE_MPM=prefork
 
16272
  fi
 
16273
 
 
16274
fi;
 
16275
echo "$as_me:$LINENO: result: $APACHE_MPM" >&5
 
16276
echo "${ECHO_T}$APACHE_MPM" >&6
 
16277
 
 
16278
apache_cv_mpm=$APACHE_MPM
 
16279
 
 
16280
ap_mpm_is_threaded ()
 
16281
{
 
16282
    if test "$apache_cv_mpm" = "worker" -o "$apache_cv_mpm" = "event" ; then
 
16283
        return 0
 
16284
    else
 
16285
        return 1
 
16286
    fi
 
16287
}
 
16288
 
 
16289
ap_mpm_is_experimental ()
 
16290
{
 
16291
    if test "$apache_cv_mpm" = "event" ; then
 
16292
        return 0
 
16293
    else
 
16294
        return 1
 
16295
    fi
 
16296
}
 
16297
 
 
16298
if ap_mpm_is_threaded; then
 
16299
 
 
16300
apr_old_cppflags=$CPPFLAGS
 
16301
CPPFLAGS="$CPPFLAGS $INCLUDES"
 
16302
cat >conftest.$ac_ext <<_ACEOF
 
16303
/* confdefs.h.  */
 
16304
_ACEOF
 
16305
cat confdefs.h >>conftest.$ac_ext
 
16306
cat >>conftest.$ac_ext <<_ACEOF
 
16307
/* end confdefs.h.  */
 
16308
 
 
16309
#include <apr.h>
 
16310
#if APR_HAS_THREADS
 
16311
YES_IS_DEFINED
 
16312
#endif
 
16313
 
 
16314
_ACEOF
 
16315
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
16316
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
 
16317
  ac_cv_define_APR_HAS_THREADS=yes
 
16318
else
 
16319
  ac_cv_define_APR_HAS_THREADS=no
 
16320
fi
 
16321
rm -f conftest*
 
16322
 
 
16323
CPPFLAGS=$apr_old_cppflags
 
16324
 
 
16325
 
 
16326
  if test "x$ac_cv_define_APR_HAS_THREADS" = "xno"; then
 
16327
    echo "$as_me:$LINENO: result: The currently selected MPM requires threads which your system seems to lack" >&5
 
16328
echo "${ECHO_T}The currently selected MPM requires threads which your system seems to lack" >&6
 
16329
    echo "$as_me:$LINENO: checking checking for replacement" >&5
 
16330
echo $ECHO_N "checking checking for replacement... $ECHO_C" >&6
 
16331
    echo "$as_me:$LINENO: result: prefork selected" >&5
 
16332
echo "${ECHO_T}prefork selected" >&6
 
16333
    apache_cv_mpm=prefork
 
16334
  else
 
16335
    case $host in
 
16336
      *-linux-*)
 
16337
        case `uname -r` in
 
16338
          2.0* )
 
16339
                                                echo "Threaded MPM's are not supported on this platform"
 
16340
            echo "$as_me:$LINENO: checking checking for replacement" >&5
 
16341
echo $ECHO_N "checking checking for replacement... $ECHO_C" >&6
 
16342
            echo "$as_me:$LINENO: result: prefork selected" >&5
 
16343
echo "${ECHO_T}prefork selected" >&6
 
16344
            apache_cv_mpm=prefork
 
16345
          ;;
 
16346
        esac
 
16347
      ;;
 
16348
    esac
 
16349
  fi
 
16350
fi
 
16351
 
 
16352
 
 
16353
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES server/mpm/Makefile"
 
16354
 
 
16355
 
 
16356
MPM_NAME=$apache_cv_mpm
 
16357
if ap_mpm_is_experimental; then
 
16358
  { echo "$as_me:$LINENO: WARNING: You have selected an EXPERIMENTAL MPM.  Be warned!" >&5
 
16359
echo "$as_me: WARNING: You have selected an EXPERIMENTAL MPM.  Be warned!" >&2;}
 
16360
  MPM_SUBDIR_NAME=experimental/$MPM_NAME
 
16361
else
 
16362
  MPM_SUBDIR_NAME=$MPM_NAME
 
16363
fi
 
16364
MPM_DIR=server/mpm/$MPM_SUBDIR_NAME
 
16365
MPM_LIB=$MPM_DIR/lib${MPM_NAME}.la
 
16366
 
 
16367
if test ! -f "$abs_srcdir/$MPM_DIR/mpm.h"; then
 
16368
    { { echo "$as_me:$LINENO: error: the selected mpm -- $apache_cv_mpm -- is not supported" >&5
 
16369
echo "$as_me: error: the selected mpm -- $apache_cv_mpm -- is not supported" >&2;}
 
16370
   { (exit 1); exit 1; }; }
 
16371
fi
 
16372
 
 
16373
 
 
16374
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MPM_NAME"
 
16375
 
 
16376
 
 
16377
 
 
16378
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MPM_SUBDIR_NAME"
 
16379
 
 
16380
 
 
16381
MODLIST="$MODLIST mpm_${MPM_NAME}"
 
16382
 
 
16383
 
 
16384
if test "$MPM_NAME" = "prefork" ; then
 
16385
 
 
16386
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES server/mpm/$MPM_NAME/Makefile"
 
16387
 
 
16388
fi
 
16389
 
 
16390
htpasswd_LTFLAGS=""
 
16391
htdigest_LTFLAGS=""
 
16392
rotatelogs_LTFLAGS=""
 
16393
logresolve_LTFLAGS=""
 
16394
htdbm_LTFLAGS=""
 
16395
ab_LTFLAGS=""
 
16396
checkgid_LTFLAGS=""
 
16397
 
 
16398
# Check whether --enable-static-support or --disable-static-support was given.
 
16399
if test "${enable_static_support+set}" = set; then
 
16400
  enableval="$enable_static_support"
 
16401
 
 
16402
if test "$enableval" = "yes" ; then
 
16403
 
 
16404
  if test "x$htpasswd_LTFLAGS" = "x"; then
 
16405
    test "x$silent" != "xyes" && echo "  setting htpasswd_LTFLAGS to \"-static\""
 
16406
    htpasswd_LTFLAGS="-static"
 
16407
  else
 
16408
    apr_addto_bugger="-static"
 
16409
    for i in $apr_addto_bugger; do
 
16410
      apr_addto_duplicate="0"
 
16411
      for j in $htpasswd_LTFLAGS; do
 
16412
        if test "x$i" = "x$j"; then
 
16413
          apr_addto_duplicate="1"
 
16414
          break
 
16415
        fi
 
16416
      done
 
16417
      if test $apr_addto_duplicate = "0"; then
 
16418
        test "x$silent" != "xyes" && echo "  adding \"$i\" to htpasswd_LTFLAGS"
 
16419
        htpasswd_LTFLAGS="$htpasswd_LTFLAGS $i"
 
16420
      fi
 
16421
    done
 
16422
  fi
 
16423
 
 
16424
 
 
16425
  if test "x$htdigest_LTFLAGS" = "x"; then
 
16426
    test "x$silent" != "xyes" && echo "  setting htdigest_LTFLAGS to \"-static\""
 
16427
    htdigest_LTFLAGS="-static"
 
16428
  else
 
16429
    apr_addto_bugger="-static"
 
16430
    for i in $apr_addto_bugger; do
 
16431
      apr_addto_duplicate="0"
 
16432
      for j in $htdigest_LTFLAGS; do
 
16433
        if test "x$i" = "x$j"; then
 
16434
          apr_addto_duplicate="1"
 
16435
          break
 
16436
        fi
 
16437
      done
 
16438
      if test $apr_addto_duplicate = "0"; then
 
16439
        test "x$silent" != "xyes" && echo "  adding \"$i\" to htdigest_LTFLAGS"
 
16440
        htdigest_LTFLAGS="$htdigest_LTFLAGS $i"
 
16441
      fi
 
16442
    done
 
16443
  fi
 
16444
 
 
16445
 
 
16446
  if test "x$rotatelogs_LTFLAGS" = "x"; then
 
16447
    test "x$silent" != "xyes" && echo "  setting rotatelogs_LTFLAGS to \"-static\""
 
16448
    rotatelogs_LTFLAGS="-static"
 
16449
  else
 
16450
    apr_addto_bugger="-static"
 
16451
    for i in $apr_addto_bugger; do
 
16452
      apr_addto_duplicate="0"
 
16453
      for j in $rotatelogs_LTFLAGS; do
 
16454
        if test "x$i" = "x$j"; then
 
16455
          apr_addto_duplicate="1"
 
16456
          break
 
16457
        fi
 
16458
      done
 
16459
      if test $apr_addto_duplicate = "0"; then
 
16460
        test "x$silent" != "xyes" && echo "  adding \"$i\" to rotatelogs_LTFLAGS"
 
16461
        rotatelogs_LTFLAGS="$rotatelogs_LTFLAGS $i"
 
16462
      fi
 
16463
    done
 
16464
  fi
 
16465
 
 
16466
 
 
16467
  if test "x$logresolve_LTFLAGS" = "x"; then
 
16468
    test "x$silent" != "xyes" && echo "  setting logresolve_LTFLAGS to \"-static\""
 
16469
    logresolve_LTFLAGS="-static"
 
16470
  else
 
16471
    apr_addto_bugger="-static"
 
16472
    for i in $apr_addto_bugger; do
 
16473
      apr_addto_duplicate="0"
 
16474
      for j in $logresolve_LTFLAGS; do
 
16475
        if test "x$i" = "x$j"; then
 
16476
          apr_addto_duplicate="1"
 
16477
          break
 
16478
        fi
 
16479
      done
 
16480
      if test $apr_addto_duplicate = "0"; then
 
16481
        test "x$silent" != "xyes" && echo "  adding \"$i\" to logresolve_LTFLAGS"
 
16482
        logresolve_LTFLAGS="$logresolve_LTFLAGS $i"
 
16483
      fi
 
16484
    done
 
16485
  fi
 
16486
 
 
16487
 
 
16488
  if test "x$htdbm_LTFLAGS" = "x"; then
 
16489
    test "x$silent" != "xyes" && echo "  setting htdbm_LTFLAGS to \"-static\""
 
16490
    htdbm_LTFLAGS="-static"
 
16491
  else
 
16492
    apr_addto_bugger="-static"
 
16493
    for i in $apr_addto_bugger; do
 
16494
      apr_addto_duplicate="0"
 
16495
      for j in $htdbm_LTFLAGS; do
 
16496
        if test "x$i" = "x$j"; then
 
16497
          apr_addto_duplicate="1"
 
16498
          break
 
16499
        fi
 
16500
      done
 
16501
      if test $apr_addto_duplicate = "0"; then
 
16502
        test "x$silent" != "xyes" && echo "  adding \"$i\" to htdbm_LTFLAGS"
 
16503
        htdbm_LTFLAGS="$htdbm_LTFLAGS $i"
 
16504
      fi
 
16505
    done
 
16506
  fi
 
16507
 
 
16508
 
 
16509
  if test "x$ab_LTFLAGS" = "x"; then
 
16510
    test "x$silent" != "xyes" && echo "  setting ab_LTFLAGS to \"-static\""
 
16511
    ab_LTFLAGS="-static"
 
16512
  else
 
16513
    apr_addto_bugger="-static"
 
16514
    for i in $apr_addto_bugger; do
 
16515
      apr_addto_duplicate="0"
 
16516
      for j in $ab_LTFLAGS; do
 
16517
        if test "x$i" = "x$j"; then
 
16518
          apr_addto_duplicate="1"
 
16519
          break
 
16520
        fi
 
16521
      done
 
16522
      if test $apr_addto_duplicate = "0"; then
 
16523
        test "x$silent" != "xyes" && echo "  adding \"$i\" to ab_LTFLAGS"
 
16524
        ab_LTFLAGS="$ab_LTFLAGS $i"
 
16525
      fi
 
16526
    done
 
16527
  fi
 
16528
 
 
16529
 
 
16530
  if test "x$checkgid_LTFLAGS" = "x"; then
 
16531
    test "x$silent" != "xyes" && echo "  setting checkgid_LTFLAGS to \"-static\""
 
16532
    checkgid_LTFLAGS="-static"
 
16533
  else
 
16534
    apr_addto_bugger="-static"
 
16535
    for i in $apr_addto_bugger; do
 
16536
      apr_addto_duplicate="0"
 
16537
      for j in $checkgid_LTFLAGS; do
 
16538
        if test "x$i" = "x$j"; then
 
16539
          apr_addto_duplicate="1"
 
16540
          break
 
16541
        fi
 
16542
      done
 
16543
      if test $apr_addto_duplicate = "0"; then
 
16544
        test "x$silent" != "xyes" && echo "  adding \"$i\" to checkgid_LTFLAGS"
 
16545
        checkgid_LTFLAGS="$checkgid_LTFLAGS $i"
 
16546
      fi
 
16547
    done
 
16548
  fi
 
16549
 
 
16550
fi
 
16551
 
 
16552
fi;
 
16553
 
 
16554
# Check whether --enable-static-htpasswd or --disable-static-htpasswd was given.
 
16555
if test "${enable_static_htpasswd+set}" = set; then
 
16556
  enableval="$enable_static_htpasswd"
 
16557
 
 
16558
if test "$enableval" = "yes" ; then
 
16559
 
 
16560
  if test "x$htpasswd_LTFLAGS" = "x"; then
 
16561
    test "x$silent" != "xyes" && echo "  setting htpasswd_LTFLAGS to \"-static\""
 
16562
    htpasswd_LTFLAGS="-static"
 
16563
  else
 
16564
    apr_addto_bugger="-static"
 
16565
    for i in $apr_addto_bugger; do
 
16566
      apr_addto_duplicate="0"
 
16567
      for j in $htpasswd_LTFLAGS; do
 
16568
        if test "x$i" = "x$j"; then
 
16569
          apr_addto_duplicate="1"
 
16570
          break
 
16571
        fi
 
16572
      done
 
16573
      if test $apr_addto_duplicate = "0"; then
 
16574
        test "x$silent" != "xyes" && echo "  adding \"$i\" to htpasswd_LTFLAGS"
 
16575
        htpasswd_LTFLAGS="$htpasswd_LTFLAGS $i"
 
16576
      fi
 
16577
    done
 
16578
  fi
 
16579
 
 
16580
else
 
16581
 
 
16582
  if test "x$htpasswd_LTFLAGS" = "x-static"; then
 
16583
    test "x$silent" != "xyes" && echo "  nulling htpasswd_LTFLAGS"
 
16584
    htpasswd_LTFLAGS=""
 
16585
  else
 
16586
    apr_new_bugger=""
 
16587
    apr_removed=0
 
16588
    for i in $htpasswd_LTFLAGS; do
 
16589
      if test "x$i" != "x-static"; then
 
16590
        apr_new_bugger="$apr_new_bugger $i"
 
16591
      else
 
16592
        apr_removed=1
 
16593
      fi
 
16594
    done
 
16595
    if test $apr_removed = "1"; then
 
16596
      test "x$silent" != "xyes" && echo "  removed \"-static\" from htpasswd_LTFLAGS"
 
16597
      htpasswd_LTFLAGS=$apr_new_bugger
 
16598
    fi
 
16599
  fi
 
16600
 
 
16601
fi
 
16602
 
 
16603
fi;
 
16604
 
 
16605
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST htpasswd_LTFLAGS"
 
16606
 
 
16607
 
 
16608
 
 
16609
# Check whether --enable-static-htdigest or --disable-static-htdigest was given.
 
16610
if test "${enable_static_htdigest+set}" = set; then
 
16611
  enableval="$enable_static_htdigest"
 
16612
 
 
16613
if test "$enableval" = "yes" ; then
 
16614
 
 
16615
  if test "x$htdigest_LTFLAGS" = "x"; then
 
16616
    test "x$silent" != "xyes" && echo "  setting htdigest_LTFLAGS to \"-static\""
 
16617
    htdigest_LTFLAGS="-static"
 
16618
  else
 
16619
    apr_addto_bugger="-static"
 
16620
    for i in $apr_addto_bugger; do
 
16621
      apr_addto_duplicate="0"
 
16622
      for j in $htdigest_LTFLAGS; do
 
16623
        if test "x$i" = "x$j"; then
 
16624
          apr_addto_duplicate="1"
 
16625
          break
 
16626
        fi
 
16627
      done
 
16628
      if test $apr_addto_duplicate = "0"; then
 
16629
        test "x$silent" != "xyes" && echo "  adding \"$i\" to htdigest_LTFLAGS"
 
16630
        htdigest_LTFLAGS="$htdigest_LTFLAGS $i"
 
16631
      fi
 
16632
    done
 
16633
  fi
 
16634
 
 
16635
else
 
16636
 
 
16637
  if test "x$htdigest_LTFLAGS" = "x-static"; then
 
16638
    test "x$silent" != "xyes" && echo "  nulling htdigest_LTFLAGS"
 
16639
    htdigest_LTFLAGS=""
 
16640
  else
 
16641
    apr_new_bugger=""
 
16642
    apr_removed=0
 
16643
    for i in $htdigest_LTFLAGS; do
 
16644
      if test "x$i" != "x-static"; then
 
16645
        apr_new_bugger="$apr_new_bugger $i"
 
16646
      else
 
16647
        apr_removed=1
 
16648
      fi
 
16649
    done
 
16650
    if test $apr_removed = "1"; then
 
16651
      test "x$silent" != "xyes" && echo "  removed \"-static\" from htdigest_LTFLAGS"
 
16652
      htdigest_LTFLAGS=$apr_new_bugger
 
16653
    fi
 
16654
  fi
 
16655
 
 
16656
fi
 
16657
 
 
16658
fi;
 
16659
 
 
16660
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST htdigest_LTFLAGS"
 
16661
 
 
16662
 
 
16663
 
 
16664
# Check whether --enable-static-rotatelogs or --disable-static-rotatelogs was given.
 
16665
if test "${enable_static_rotatelogs+set}" = set; then
 
16666
  enableval="$enable_static_rotatelogs"
 
16667
 
 
16668
if test "$enableval" = "yes" ; then
 
16669
 
 
16670
  if test "x$rotatelogs_LTFLAGS" = "x"; then
 
16671
    test "x$silent" != "xyes" && echo "  setting rotatelogs_LTFLAGS to \"-static\""
 
16672
    rotatelogs_LTFLAGS="-static"
 
16673
  else
 
16674
    apr_addto_bugger="-static"
 
16675
    for i in $apr_addto_bugger; do
 
16676
      apr_addto_duplicate="0"
 
16677
      for j in $rotatelogs_LTFLAGS; do
 
16678
        if test "x$i" = "x$j"; then
 
16679
          apr_addto_duplicate="1"
 
16680
          break
 
16681
        fi
 
16682
      done
 
16683
      if test $apr_addto_duplicate = "0"; then
 
16684
        test "x$silent" != "xyes" && echo "  adding \"$i\" to rotatelogs_LTFLAGS"
 
16685
        rotatelogs_LTFLAGS="$rotatelogs_LTFLAGS $i"
 
16686
      fi
 
16687
    done
 
16688
  fi
 
16689
 
 
16690
else
 
16691
 
 
16692
  if test "x$rotatelogs_LTFLAGS" = "x-static"; then
 
16693
    test "x$silent" != "xyes" && echo "  nulling rotatelogs_LTFLAGS"
 
16694
    rotatelogs_LTFLAGS=""
 
16695
  else
 
16696
    apr_new_bugger=""
 
16697
    apr_removed=0
 
16698
    for i in $rotatelogs_LTFLAGS; do
 
16699
      if test "x$i" != "x-static"; then
 
16700
        apr_new_bugger="$apr_new_bugger $i"
 
16701
      else
 
16702
        apr_removed=1
 
16703
      fi
 
16704
    done
 
16705
    if test $apr_removed = "1"; then
 
16706
      test "x$silent" != "xyes" && echo "  removed \"-static\" from rotatelogs_LTFLAGS"
 
16707
      rotatelogs_LTFLAGS=$apr_new_bugger
 
16708
    fi
 
16709
  fi
 
16710
 
 
16711
fi
 
16712
 
 
16713
fi;
 
16714
 
 
16715
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST rotatelogs_LTFLAGS"
 
16716
 
 
16717
 
 
16718
 
 
16719
# Check whether --enable-static-logresolve or --disable-static-logresolve was given.
 
16720
if test "${enable_static_logresolve+set}" = set; then
 
16721
  enableval="$enable_static_logresolve"
 
16722
 
 
16723
if test "$enableval" = "yes" ; then
 
16724
 
 
16725
  if test "x$logresolve_LTFLAGS" = "x"; then
 
16726
    test "x$silent" != "xyes" && echo "  setting logresolve_LTFLAGS to \"-static\""
 
16727
    logresolve_LTFLAGS="-static"
 
16728
  else
 
16729
    apr_addto_bugger="-static"
 
16730
    for i in $apr_addto_bugger; do
 
16731
      apr_addto_duplicate="0"
 
16732
      for j in $logresolve_LTFLAGS; do
 
16733
        if test "x$i" = "x$j"; then
 
16734
          apr_addto_duplicate="1"
 
16735
          break
 
16736
        fi
 
16737
      done
 
16738
      if test $apr_addto_duplicate = "0"; then
 
16739
        test "x$silent" != "xyes" && echo "  adding \"$i\" to logresolve_LTFLAGS"
 
16740
        logresolve_LTFLAGS="$logresolve_LTFLAGS $i"
 
16741
      fi
 
16742
    done
 
16743
  fi
 
16744
 
 
16745
else
 
16746
 
 
16747
  if test "x$logresolve_LTFLAGS" = "x-static"; then
 
16748
    test "x$silent" != "xyes" && echo "  nulling logresolve_LTFLAGS"
 
16749
    logresolve_LTFLAGS=""
 
16750
  else
 
16751
    apr_new_bugger=""
 
16752
    apr_removed=0
 
16753
    for i in $logresolve_LTFLAGS; do
 
16754
      if test "x$i" != "x-static"; then
 
16755
        apr_new_bugger="$apr_new_bugger $i"
 
16756
      else
 
16757
        apr_removed=1
 
16758
      fi
 
16759
    done
 
16760
    if test $apr_removed = "1"; then
 
16761
      test "x$silent" != "xyes" && echo "  removed \"-static\" from logresolve_LTFLAGS"
 
16762
      logresolve_LTFLAGS=$apr_new_bugger
 
16763
    fi
 
16764
  fi
 
16765
 
 
16766
fi
 
16767
 
 
16768
fi;
 
16769
 
 
16770
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST logresolve_LTFLAGS"
 
16771
 
 
16772
 
 
16773
 
 
16774
# Check whether --enable-static-htdbm or --disable-static-htdbm was given.
 
16775
if test "${enable_static_htdbm+set}" = set; then
 
16776
  enableval="$enable_static_htdbm"
 
16777
 
 
16778
if test "$enableval" = "yes" ; then
 
16779
 
 
16780
  if test "x$htdbm_LTFLAGS" = "x"; then
 
16781
    test "x$silent" != "xyes" && echo "  setting htdbm_LTFLAGS to \"-static\""
 
16782
    htdbm_LTFLAGS="-static"
 
16783
  else
 
16784
    apr_addto_bugger="-static"
 
16785
    for i in $apr_addto_bugger; do
 
16786
      apr_addto_duplicate="0"
 
16787
      for j in $htdbm_LTFLAGS; do
 
16788
        if test "x$i" = "x$j"; then
 
16789
          apr_addto_duplicate="1"
 
16790
          break
 
16791
        fi
 
16792
      done
 
16793
      if test $apr_addto_duplicate = "0"; then
 
16794
        test "x$silent" != "xyes" && echo "  adding \"$i\" to htdbm_LTFLAGS"
 
16795
        htdbm_LTFLAGS="$htdbm_LTFLAGS $i"
 
16796
      fi
 
16797
    done
 
16798
  fi
 
16799
 
 
16800
else
 
16801
 
 
16802
  if test "x$htdbm_LTFLAGS" = "x-static"; then
 
16803
    test "x$silent" != "xyes" && echo "  nulling htdbm_LTFLAGS"
 
16804
    htdbm_LTFLAGS=""
 
16805
  else
 
16806
    apr_new_bugger=""
 
16807
    apr_removed=0
 
16808
    for i in $htdbm_LTFLAGS; do
 
16809
      if test "x$i" != "x-static"; then
 
16810
        apr_new_bugger="$apr_new_bugger $i"
 
16811
      else
 
16812
        apr_removed=1
 
16813
      fi
 
16814
    done
 
16815
    if test $apr_removed = "1"; then
 
16816
      test "x$silent" != "xyes" && echo "  removed \"-static\" from htdbm_LTFLAGS"
 
16817
      htdbm_LTFLAGS=$apr_new_bugger
 
16818
    fi
 
16819
  fi
 
16820
 
 
16821
fi
 
16822
 
 
16823
fi;
 
16824
 
 
16825
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST htdbm_LTFLAGS"
 
16826
 
 
16827
 
 
16828
 
 
16829
# Check whether --enable-static-ab or --disable-static-ab was given.
 
16830
if test "${enable_static_ab+set}" = set; then
 
16831
  enableval="$enable_static_ab"
 
16832
 
 
16833
if test "$enableval" = "yes" ; then
 
16834
 
 
16835
  if test "x$ab_LTFLAGS" = "x"; then
 
16836
    test "x$silent" != "xyes" && echo "  setting ab_LTFLAGS to \"-static\""
 
16837
    ab_LTFLAGS="-static"
 
16838
  else
 
16839
    apr_addto_bugger="-static"
 
16840
    for i in $apr_addto_bugger; do
 
16841
      apr_addto_duplicate="0"
 
16842
      for j in $ab_LTFLAGS; do
 
16843
        if test "x$i" = "x$j"; then
 
16844
          apr_addto_duplicate="1"
 
16845
          break
 
16846
        fi
 
16847
      done
 
16848
      if test $apr_addto_duplicate = "0"; then
 
16849
        test "x$silent" != "xyes" && echo "  adding \"$i\" to ab_LTFLAGS"
 
16850
        ab_LTFLAGS="$ab_LTFLAGS $i"
 
16851
      fi
 
16852
    done
 
16853
  fi
 
16854
 
 
16855
else
 
16856
 
 
16857
  if test "x$ab_LTFLAGS" = "x-static"; then
 
16858
    test "x$silent" != "xyes" && echo "  nulling ab_LTFLAGS"
 
16859
    ab_LTFLAGS=""
 
16860
  else
 
16861
    apr_new_bugger=""
 
16862
    apr_removed=0
 
16863
    for i in $ab_LTFLAGS; do
 
16864
      if test "x$i" != "x-static"; then
 
16865
        apr_new_bugger="$apr_new_bugger $i"
 
16866
      else
 
16867
        apr_removed=1
 
16868
      fi
 
16869
    done
 
16870
    if test $apr_removed = "1"; then
 
16871
      test "x$silent" != "xyes" && echo "  removed \"-static\" from ab_LTFLAGS"
 
16872
      ab_LTFLAGS=$apr_new_bugger
 
16873
    fi
 
16874
  fi
 
16875
 
 
16876
fi
 
16877
 
 
16878
fi;
 
16879
 
 
16880
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST ab_LTFLAGS"
 
16881
 
 
16882
 
 
16883
 
 
16884
# Check whether --enable-static-checkgid or --disable-static-checkgid was given.
 
16885
if test "${enable_static_checkgid+set}" = set; then
 
16886
  enableval="$enable_static_checkgid"
 
16887
 
 
16888
if test "$enableval" = "yes" ; then
 
16889
 
 
16890
  if test "x$checkgid_LTFLAGS" = "x"; then
 
16891
    test "x$silent" != "xyes" && echo "  setting checkgid_LTFLAGS to \"-static\""
 
16892
    checkgid_LTFLAGS="-static"
 
16893
  else
 
16894
    apr_addto_bugger="-static"
 
16895
    for i in $apr_addto_bugger; do
 
16896
      apr_addto_duplicate="0"
 
16897
      for j in $checkgid_LTFLAGS; do
 
16898
        if test "x$i" = "x$j"; then
 
16899
          apr_addto_duplicate="1"
 
16900
          break
 
16901
        fi
 
16902
      done
 
16903
      if test $apr_addto_duplicate = "0"; then
 
16904
        test "x$silent" != "xyes" && echo "  adding \"$i\" to checkgid_LTFLAGS"
 
16905
        checkgid_LTFLAGS="$checkgid_LTFLAGS $i"
 
16906
      fi
 
16907
    done
 
16908
  fi
 
16909
 
 
16910
else
 
16911
 
 
16912
  if test "x$checkgid_LTFLAGS" = "x-static"; then
 
16913
    test "x$silent" != "xyes" && echo "  nulling checkgid_LTFLAGS"
 
16914
    checkgid_LTFLAGS=""
 
16915
  else
 
16916
    apr_new_bugger=""
 
16917
    apr_removed=0
 
16918
    for i in $checkgid_LTFLAGS; do
 
16919
      if test "x$i" != "x-static"; then
 
16920
        apr_new_bugger="$apr_new_bugger $i"
 
16921
      else
 
16922
        apr_removed=1
 
16923
      fi
 
16924
    done
 
16925
    if test $apr_removed = "1"; then
 
16926
      test "x$silent" != "xyes" && echo "  removed \"-static\" from checkgid_LTFLAGS"
 
16927
      checkgid_LTFLAGS=$apr_new_bugger
 
16928
    fi
 
16929
  fi
 
16930
 
 
16931
fi
 
16932
 
 
16933
fi;
 
16934
 
 
16935
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST checkgid_LTFLAGS"
 
16936
 
 
16937
 
 
16938
 
 
16939
case $host in
 
16940
    *aix*)
 
16941
        # this works in any locale, unlike the default command below, which
 
16942
        # fails in a non-English locale if the hard limit is unlimited
 
16943
        # since the display of the limit will translate "unlimited", but
 
16944
        # ulimit only accepts English "unlimited" on input
 
16945
        APACHECTL_ULIMIT="ulimit -S -n unlimited"
 
16946
        ;;
 
16947
    *alpha*-dec-osf*)
 
16948
        # Tru64: -H is for setting, not retrieving
 
16949
        APACHECTL_ULIMIT="ulimit -S -n \`ulimit -h -n\`"
 
16950
        ;;
 
16951
    *)
 
16952
        if TMP_ULIMIT=`ulimit -H -n` && ulimit -S -n $TMP_ULIMIT ; then
 
16953
            APACHECTL_ULIMIT="ulimit -S -n \`ulimit -H -n\`"
 
16954
        else
 
16955
            APACHECTL_ULIMIT=""
 
16956
        fi
 
16957
        ;;
 
16958
esac
 
16959
 
 
16960
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APACHECTL_ULIMIT"
 
16961
 
 
16962
 
 
16963
 
 
16964
 
 
16965
 
 
16966
  current_dir=http
 
16967
  modpath_current=modules/http
 
16968
  modpath_static=
 
16969
  modpath_shared=
 
16970
  test -d http || $srcdir/build/mkdir.sh $modpath_current
 
16971
  > $modpath_current/modules.mk
 
16972
 
 
16973
 
 
16974
http_objects="http_core.lo http_protocol.lo http_request.lo http_filters.lo chunk_filter.lo byterange_filter.lo http_etag.lo"
 
16975
 
 
16976
if test "$enable_http" = "yes"; then
 
16977
    enable_http="static"
 
16978
elif test "$enable_http" = "shared"; then
 
16979
    { { echo "$as_me:$LINENO: error: mod_http can not be built as a shared DSO" >&5
 
16980
echo "$as_me: error: mod_http can not be built as a shared DSO" >&2;}
 
16981
   { (exit 1); exit 1; }; }
 
16982
fi
 
16983
 
 
16984
 
 
16985
  echo "$as_me:$LINENO: checking whether to enable mod_http" >&5
 
16986
echo $ECHO_N "checking whether to enable mod_http... $ECHO_C" >&6
 
16987
    # Check whether --enable-http or --disable-http was given.
 
16988
if test "${enable_http+set}" = set; then
 
16989
  enableval="$enable_http"
 
16990
 
 
16991
else
 
16992
  enable_http=static
 
16993
fi;
 
16994
    _apmod_extra_msg=""
 
16995
      if test "$module_selection" = "most" -a "$enable_http" = "most"; then
 
16996
    _apmod_error_fatal="no"
 
16997
  else
 
16998
    _apmod_error_fatal="yes"
 
16999
  fi
 
17000
  if test "$enable_http" = "static"; then
 
17001
    enable_http=yes
 
17002
  elif test "$enable_http" = "yes"; then
 
17003
    enable_http=$module_default
 
17004
    _apmod_extra_msg=" ($module_selection)"
 
17005
  elif test "$enable_http" = "most"; then
 
17006
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
17007
      enable_http=$module_default
 
17008
      _apmod_extra_msg=" ($module_selection)"
 
17009
    elif test "$enable_http" != "yes"; then
 
17010
      enable_http=no
 
17011
    fi
 
17012
  elif test "$enable_http" = "maybe-all"; then
 
17013
    if test "$module_selection" = "all"; then
 
17014
      enable_http=$module_default
 
17015
      _apmod_extra_msg=" (all)"
 
17016
    else
 
17017
      enable_http=no
 
17018
    fi
 
17019
  fi
 
17020
  if test "$enable_http" != "no"; then
 
17021
            :
 
17022
  fi
 
17023
  echo "$as_me:$LINENO: result: $enable_http$_apmod_extra_msg" >&5
 
17024
echo "${ECHO_T}$enable_http$_apmod_extra_msg" >&6
 
17025
  if test "$enable_http" != "no"; then
 
17026
    case "$enable_http" in
 
17027
    shared*)
 
17028
      enable_http=`echo $enable_http|sed 's/shared,*//'`
 
17029
      sharedobjs=yes
 
17030
      shared=yes
 
17031
      DSO_MODULES="$DSO_MODULES http"
 
17032
      ;;
 
17033
    *)
 
17034
      MODLIST="$MODLIST http"
 
17035
      if test "http" = "so"; then
 
17036
          sharedobjs=yes
 
17037
      fi
 
17038
      shared="";;
 
17039
    esac
 
17040
 
 
17041
 
 
17042
  if test -z "$http_objects"; then
 
17043
    objects="mod_http.lo"
 
17044
  else
 
17045
    objects="$http_objects"
 
17046
  fi
 
17047
 
 
17048
  if test -z "$module_standalone"; then
 
17049
    if test -z "$shared"; then
 
17050
      # The filename of a convenience library must have a "lib" prefix:
 
17051
      libname="libmod_http.la"
 
17052
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
17053
      modpath_static="$modpath_static $libname"
 
17054
      cat >>$modpath_current/modules.mk<<EOF
 
17055
$libname: $objects
 
17056
        \$(MOD_LINK) $objects \$(MOD_HTTP_LDADD)
 
17057
EOF
 
17058
    else
 
17059
      apache_need_shared=yes
 
17060
      libname="mod_http.la"
 
17061
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
17062
      modpath_shared="$modpath_shared $libname"
 
17063
      cat >>$modpath_current/modules.mk<<EOF
 
17064
$libname: $shobjects
 
17065
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_HTTP_LDADD)
 
17066
EOF
 
17067
    fi
 
17068
  fi
 
17069
 
 
17070
 
 
17071
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_HTTP_LDADD"
 
17072
 
 
17073
 
 
17074
 
 
17075
  fi
 
17076
 
 
17077
 
 
17078
  echo "$as_me:$LINENO: checking whether to enable mod_mime" >&5
 
17079
echo $ECHO_N "checking whether to enable mod_mime... $ECHO_C" >&6
 
17080
    # Check whether --enable-mime or --disable-mime was given.
 
17081
if test "${enable_mime+set}" = set; then
 
17082
  enableval="$enable_mime"
 
17083
 
 
17084
else
 
17085
  enable_mime=yes
 
17086
fi;
 
17087
    _apmod_extra_msg=""
 
17088
      if test "$module_selection" = "most" -a "$enable_mime" = "most"; then
 
17089
    _apmod_error_fatal="no"
 
17090
  else
 
17091
    _apmod_error_fatal="yes"
 
17092
  fi
 
17093
  if test "$enable_mime" = "static"; then
 
17094
    enable_mime=yes
 
17095
  elif test "$enable_mime" = "yes"; then
 
17096
    enable_mime=$module_default
 
17097
    _apmod_extra_msg=" ($module_selection)"
 
17098
  elif test "$enable_mime" = "most"; then
 
17099
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
17100
      enable_mime=$module_default
 
17101
      _apmod_extra_msg=" ($module_selection)"
 
17102
    elif test "$enable_mime" != "yes"; then
 
17103
      enable_mime=no
 
17104
    fi
 
17105
  elif test "$enable_mime" = "maybe-all"; then
 
17106
    if test "$module_selection" = "all"; then
 
17107
      enable_mime=$module_default
 
17108
      _apmod_extra_msg=" (all)"
 
17109
    else
 
17110
      enable_mime=no
 
17111
    fi
 
17112
  fi
 
17113
  if test "$enable_mime" != "no"; then
 
17114
            :
 
17115
  fi
 
17116
  echo "$as_me:$LINENO: result: $enable_mime$_apmod_extra_msg" >&5
 
17117
echo "${ECHO_T}$enable_mime$_apmod_extra_msg" >&6
 
17118
  if test "$enable_mime" != "no"; then
 
17119
    case "$enable_mime" in
 
17120
    shared*)
 
17121
      enable_mime=`echo $enable_mime|sed 's/shared,*//'`
 
17122
      sharedobjs=yes
 
17123
      shared=yes
 
17124
      DSO_MODULES="$DSO_MODULES mime"
 
17125
      ;;
 
17126
    *)
 
17127
      MODLIST="$MODLIST mime"
 
17128
      if test "mime" = "so"; then
 
17129
          sharedobjs=yes
 
17130
      fi
 
17131
      shared="";;
 
17132
    esac
 
17133
 
 
17134
 
 
17135
  if test -z ""; then
 
17136
    objects="mod_mime.lo"
 
17137
  else
 
17138
    objects=""
 
17139
  fi
 
17140
 
 
17141
  if test -z "$module_standalone"; then
 
17142
    if test -z "$shared"; then
 
17143
      # The filename of a convenience library must have a "lib" prefix:
 
17144
      libname="libmod_mime.la"
 
17145
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
17146
      modpath_static="$modpath_static $libname"
 
17147
      cat >>$modpath_current/modules.mk<<EOF
 
17148
$libname: $objects
 
17149
        \$(MOD_LINK) $objects \$(MOD_MIME_LDADD)
 
17150
EOF
 
17151
    else
 
17152
      apache_need_shared=yes
 
17153
      libname="mod_mime.la"
 
17154
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
17155
      modpath_shared="$modpath_shared $libname"
 
17156
      cat >>$modpath_current/modules.mk<<EOF
 
17157
$libname: $shobjects
 
17158
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_MIME_LDADD)
 
17159
EOF
 
17160
    fi
 
17161
  fi
 
17162
 
 
17163
 
 
17164
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_MIME_LDADD"
 
17165
 
 
17166
 
 
17167
 
 
17168
  fi
 
17169
 
 
17170
 
 
17171
 
 
17172
  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
 
17173
  echo "static = $modpath_static" >> $modpath_current/modules.mk
 
17174
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
 
17175
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
 
17176
    MODULE_DIRS="$MODULE_DIRS $current_dir"
 
17177
  else
 
17178
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
 
17179
  fi
 
17180
 
 
17181
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
 
17182
 
 
17183
 
 
17184
 
 
17185
echo "$as_me:$LINENO: checking for extra modules" >&5
 
17186
echo $ECHO_N "checking for extra modules... $ECHO_C" >&6
 
17187
 
 
17188
# Check whether --with-module or --without-module was given.
 
17189
if test "${with_module+set}" = set; then
 
17190
  withval="$with_module"
 
17191
 
 
17192
    as_save_IFS="$IFS"; IFS=","
 
17193
    for mod in $withval
 
17194
    do
 
17195
      modtype=`echo $mod | sed -e's/\(.*\):.*/\1/'`
 
17196
      pkg=`echo $mod | sed -e's/.*:\(.*\)/\1/'`
 
17197
      modfilec=`echo $pkg | sed -e 's;^.*/;;'`
 
17198
      modfileo=`echo $pkg | sed -e 's;^.*/;;' -e 's;\.c$;.o;'`
 
17199
      modpath_current="modules/$modtype"
 
17200
      if test "x$mod" != "x$modpath_current/$modfilec"; then
 
17201
        if test ! -d "$modpath_current"; then
 
17202
          mkdir $modpath_current
 
17203
          echo 'include $(top_srcdir)/build/special.mk' > $modpath_current/Makefile.in
 
17204
        fi
 
17205
        cp $pkg $modpath_current/$modfilec
 
17206
      fi
 
17207
      module=`echo $pkg | sed -e 's;\(.*/\)*mod_\(.*\).c;\2;'`
 
17208
      objects="mod_$module.lo"
 
17209
      # The filename of a convenience library must have a "lib" prefix:
 
17210
      libname="libmod_$module.la"
 
17211
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
17212
      if test ! -s "$modpath_current/modules.mk"; then
 
17213
        cat >>$modpath_current/modules.mk<<EOF
 
17214
$libname: $objects
 
17215
        \$(MOD_LINK) $objects
 
17216
DISTCLEAN_TARGETS = modules.mk
 
17217
static = $libname
 
17218
shared =
 
17219
EOF
 
17220
      else
 
17221
        cat >>$modpath_current/modules.mk.tmp<<EOF
 
17222
$libname: $objects
 
17223
        \$(MOD_LINK) $objects
 
17224
EOF
 
17225
        cat $modpath_current/modules.mk >> $modpath_current/modules.mk.tmp
 
17226
        rm $modpath_current/modules.mk
 
17227
        mv $modpath_current/modules.mk.tmp $modpath_current/modules.mk
 
17228
        sed -e "s/\(static =.*\)/\1 $libname/" $modpath_current/modules.mk > $modpath_current/modules.mk.tmp
 
17229
        rm $modpath_current/modules.mk
 
17230
        mv $modpath_current/modules.mk.tmp $modpath_current/modules.mk
 
17231
      fi
 
17232
      MODLIST="$MODLIST $module"
 
17233
      EXTRA_MODLIST="$EXTRA_MODLIST $modtype:$modfilec"
 
17234
      MODULE_DIRS="$MODULE_DIRS $modtype"
 
17235
 
 
17236
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
 
17237
 
 
17238
    done
 
17239
    if test ! -z "$EXTRA_MODLIST"; then
 
17240
      echo "$as_me:$LINENO: result: added:$EXTRA_MODLIST" >&5
 
17241
echo "${ECHO_T}added:$EXTRA_MODLIST" >&6
 
17242
    fi
 
17243
    IFS="$as_save_IFS"
 
17244
 
 
17245
else
 
17246
   echo "$as_me:$LINENO: result: none" >&5
 
17247
echo "${ECHO_T}none" >&6
 
17248
 
 
17249
fi;
 
17250
 
 
17251
 
 
17252
 
 
17253
  current_dir=dav/main
 
17254
  modpath_current=modules/dav/main
 
17255
  modpath_static=
 
17256
  modpath_shared=
 
17257
  test -d dav/main || $srcdir/build/mkdir.sh $modpath_current
 
17258
  > $modpath_current/modules.mk
 
17259
 
 
17260
 
 
17261
dav_objects="mod_dav.lo props.lo util.lo util_lock.lo liveprop.lo providers.lo std_liveprop.lo"
 
17262
 
 
17263
if test "$enable_http" = "no"; then
 
17264
  dav_enable=no
 
17265
else
 
17266
  dav_enable=most
 
17267
fi
 
17268
 
 
17269
 
 
17270
  echo "$as_me:$LINENO: checking whether to enable mod_dav" >&5
 
17271
echo $ECHO_N "checking whether to enable mod_dav... $ECHO_C" >&6
 
17272
    # Check whether --enable-dav or --disable-dav was given.
 
17273
if test "${enable_dav+set}" = set; then
 
17274
  enableval="$enable_dav"
 
17275
 
 
17276
else
 
17277
  enable_dav=$dav_enable
 
17278
fi;
 
17279
    _apmod_extra_msg=""
 
17280
      if test "$module_selection" = "most" -a "$enable_dav" = "most"; then
 
17281
    _apmod_error_fatal="no"
 
17282
  else
 
17283
    _apmod_error_fatal="yes"
 
17284
  fi
 
17285
  if test "$enable_dav" = "static"; then
 
17286
    enable_dav=yes
 
17287
  elif test "$enable_dav" = "yes"; then
 
17288
    enable_dav=$module_default
 
17289
    _apmod_extra_msg=" ($module_selection)"
 
17290
  elif test "$enable_dav" = "most"; then
 
17291
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
17292
      enable_dav=$module_default
 
17293
      _apmod_extra_msg=" ($module_selection)"
 
17294
    elif test "$enable_dav" != "yes"; then
 
17295
      enable_dav=no
 
17296
    fi
 
17297
  elif test "$enable_dav" = "maybe-all"; then
 
17298
    if test "$module_selection" = "all"; then
 
17299
      enable_dav=$module_default
 
17300
      _apmod_extra_msg=" (all)"
 
17301
    else
 
17302
      enable_dav=no
 
17303
    fi
 
17304
  fi
 
17305
  if test "$enable_dav" != "no"; then
 
17306
            :
 
17307
  fi
 
17308
  echo "$as_me:$LINENO: result: $enable_dav$_apmod_extra_msg" >&5
 
17309
echo "${ECHO_T}$enable_dav$_apmod_extra_msg" >&6
 
17310
  if test "$enable_dav" != "no"; then
 
17311
    case "$enable_dav" in
 
17312
    shared*)
 
17313
      enable_dav=`echo $enable_dav|sed 's/shared,*//'`
 
17314
      sharedobjs=yes
 
17315
      shared=yes
 
17316
      DSO_MODULES="$DSO_MODULES dav"
 
17317
      ;;
 
17318
    *)
 
17319
      MODLIST="$MODLIST dav"
 
17320
      if test "dav" = "so"; then
 
17321
          sharedobjs=yes
 
17322
      fi
 
17323
      shared="";;
 
17324
    esac
 
17325
 
 
17326
 
 
17327
  if test -z "$dav_objects"; then
 
17328
    objects="mod_dav.lo"
 
17329
  else
 
17330
    objects="$dav_objects"
 
17331
  fi
 
17332
 
 
17333
  if test -z "$module_standalone"; then
 
17334
    if test -z "$shared"; then
 
17335
      # The filename of a convenience library must have a "lib" prefix:
 
17336
      libname="libmod_dav.la"
 
17337
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
17338
      modpath_static="$modpath_static $libname"
 
17339
      cat >>$modpath_current/modules.mk<<EOF
 
17340
$libname: $objects
 
17341
        \$(MOD_LINK) $objects \$(MOD_DAV_LDADD)
 
17342
EOF
 
17343
    else
 
17344
      apache_need_shared=yes
 
17345
      libname="mod_dav.la"
 
17346
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
17347
      modpath_shared="$modpath_shared $libname"
 
17348
      cat >>$modpath_current/modules.mk<<EOF
 
17349
$libname: $shobjects
 
17350
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_DAV_LDADD)
 
17351
EOF
 
17352
    fi
 
17353
  fi
 
17354
 
 
17355
 
 
17356
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DAV_LDADD"
 
17357
 
 
17358
 
 
17359
 
 
17360
  fi
 
17361
 
 
17362
 
 
17363
if test "$dav_enable" != "no" -o "$enable_dav" != "no"; then
 
17364
  apache_need_expat=yes
 
17365
 
 
17366
 
 
17367
  if test "x$INCLUDES" = "x"; then
 
17368
    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
 
17369
    INCLUDES="-I\$(top_srcdir)/$modpath_current"
 
17370
  else
 
17371
    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
 
17372
    for i in $apr_addto_bugger; do
 
17373
      apr_addto_duplicate="0"
 
17374
      for j in $INCLUDES; do
 
17375
        if test "x$i" = "x$j"; then
 
17376
          apr_addto_duplicate="1"
 
17377
          break
 
17378
        fi
 
17379
      done
 
17380
      if test $apr_addto_duplicate = "0"; then
 
17381
        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
 
17382
        INCLUDES="$INCLUDES $i"
 
17383
      fi
 
17384
    done
 
17385
  fi
 
17386
 
 
17387
fi
 
17388
 
 
17389
 
 
17390
 
 
17391
  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
 
17392
  echo "static = $modpath_static" >> $modpath_current/modules.mk
 
17393
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
 
17394
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
 
17395
    MODULE_DIRS="$MODULE_DIRS $current_dir"
 
17396
  else
 
17397
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
 
17398
  fi
 
17399
 
 
17400
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
 
17401
 
 
17402
 
 
17403
 
 
17404
 
 
17405
 
 
17406
 
 
17407
  current_dir=generators
 
17408
  modpath_current=modules/generators
 
17409
  modpath_static=
 
17410
  modpath_shared=
 
17411
  test -d generators || $srcdir/build/mkdir.sh $modpath_current
 
17412
  > $modpath_current/modules.mk
 
17413
 
 
17414
 
 
17415
 
 
17416
  echo "$as_me:$LINENO: checking whether to enable mod_status" >&5
 
17417
echo $ECHO_N "checking whether to enable mod_status... $ECHO_C" >&6
 
17418
    # Check whether --enable-status or --disable-status was given.
 
17419
if test "${enable_status+set}" = set; then
 
17420
  enableval="$enable_status"
 
17421
 
 
17422
else
 
17423
  enable_status=yes
 
17424
fi;
 
17425
    _apmod_extra_msg=""
 
17426
      if test "$module_selection" = "most" -a "$enable_status" = "most"; then
 
17427
    _apmod_error_fatal="no"
 
17428
  else
 
17429
    _apmod_error_fatal="yes"
 
17430
  fi
 
17431
  if test "$enable_status" = "static"; then
 
17432
    enable_status=yes
 
17433
  elif test "$enable_status" = "yes"; then
 
17434
    enable_status=$module_default
 
17435
    _apmod_extra_msg=" ($module_selection)"
 
17436
  elif test "$enable_status" = "most"; then
 
17437
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
17438
      enable_status=$module_default
 
17439
      _apmod_extra_msg=" ($module_selection)"
 
17440
    elif test "$enable_status" != "yes"; then
 
17441
      enable_status=no
 
17442
    fi
 
17443
  elif test "$enable_status" = "maybe-all"; then
 
17444
    if test "$module_selection" = "all"; then
 
17445
      enable_status=$module_default
 
17446
      _apmod_extra_msg=" (all)"
 
17447
    else
 
17448
      enable_status=no
 
17449
    fi
 
17450
  fi
 
17451
  if test "$enable_status" != "no"; then
 
17452
            :
 
17453
  fi
 
17454
  echo "$as_me:$LINENO: result: $enable_status$_apmod_extra_msg" >&5
 
17455
echo "${ECHO_T}$enable_status$_apmod_extra_msg" >&6
 
17456
  if test "$enable_status" != "no"; then
 
17457
    case "$enable_status" in
 
17458
    shared*)
 
17459
      enable_status=`echo $enable_status|sed 's/shared,*//'`
 
17460
      sharedobjs=yes
 
17461
      shared=yes
 
17462
      DSO_MODULES="$DSO_MODULES status"
 
17463
      ;;
 
17464
    *)
 
17465
      MODLIST="$MODLIST status"
 
17466
      if test "status" = "so"; then
 
17467
          sharedobjs=yes
 
17468
      fi
 
17469
      shared="";;
 
17470
    esac
 
17471
 
 
17472
 
 
17473
  if test -z ""; then
 
17474
    objects="mod_status.lo"
 
17475
  else
 
17476
    objects=""
 
17477
  fi
 
17478
 
 
17479
  if test -z "$module_standalone"; then
 
17480
    if test -z "$shared"; then
 
17481
      # The filename of a convenience library must have a "lib" prefix:
 
17482
      libname="libmod_status.la"
 
17483
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
17484
      modpath_static="$modpath_static $libname"
 
17485
      cat >>$modpath_current/modules.mk<<EOF
 
17486
$libname: $objects
 
17487
        \$(MOD_LINK) $objects \$(MOD_STATUS_LDADD)
 
17488
EOF
 
17489
    else
 
17490
      apache_need_shared=yes
 
17491
      libname="mod_status.la"
 
17492
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
17493
      modpath_shared="$modpath_shared $libname"
 
17494
      cat >>$modpath_current/modules.mk<<EOF
 
17495
$libname: $shobjects
 
17496
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_STATUS_LDADD)
 
17497
EOF
 
17498
    fi
 
17499
  fi
 
17500
 
 
17501
 
 
17502
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_STATUS_LDADD"
 
17503
 
 
17504
 
 
17505
 
 
17506
  fi
 
17507
 
 
17508
 
 
17509
  echo "$as_me:$LINENO: checking whether to enable mod_autoindex" >&5
 
17510
echo $ECHO_N "checking whether to enable mod_autoindex... $ECHO_C" >&6
 
17511
    # Check whether --enable-autoindex or --disable-autoindex was given.
 
17512
if test "${enable_autoindex+set}" = set; then
 
17513
  enableval="$enable_autoindex"
 
17514
 
 
17515
else
 
17516
  enable_autoindex=yes
 
17517
fi;
 
17518
    _apmod_extra_msg=""
 
17519
      if test "$module_selection" = "most" -a "$enable_autoindex" = "most"; then
 
17520
    _apmod_error_fatal="no"
 
17521
  else
 
17522
    _apmod_error_fatal="yes"
 
17523
  fi
 
17524
  if test "$enable_autoindex" = "static"; then
 
17525
    enable_autoindex=yes
 
17526
  elif test "$enable_autoindex" = "yes"; then
 
17527
    enable_autoindex=$module_default
 
17528
    _apmod_extra_msg=" ($module_selection)"
 
17529
  elif test "$enable_autoindex" = "most"; then
 
17530
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
17531
      enable_autoindex=$module_default
 
17532
      _apmod_extra_msg=" ($module_selection)"
 
17533
    elif test "$enable_autoindex" != "yes"; then
 
17534
      enable_autoindex=no
 
17535
    fi
 
17536
  elif test "$enable_autoindex" = "maybe-all"; then
 
17537
    if test "$module_selection" = "all"; then
 
17538
      enable_autoindex=$module_default
 
17539
      _apmod_extra_msg=" (all)"
 
17540
    else
 
17541
      enable_autoindex=no
 
17542
    fi
 
17543
  fi
 
17544
  if test "$enable_autoindex" != "no"; then
 
17545
            :
 
17546
  fi
 
17547
  echo "$as_me:$LINENO: result: $enable_autoindex$_apmod_extra_msg" >&5
 
17548
echo "${ECHO_T}$enable_autoindex$_apmod_extra_msg" >&6
 
17549
  if test "$enable_autoindex" != "no"; then
 
17550
    case "$enable_autoindex" in
 
17551
    shared*)
 
17552
      enable_autoindex=`echo $enable_autoindex|sed 's/shared,*//'`
 
17553
      sharedobjs=yes
 
17554
      shared=yes
 
17555
      DSO_MODULES="$DSO_MODULES autoindex"
 
17556
      ;;
 
17557
    *)
 
17558
      MODLIST="$MODLIST autoindex"
 
17559
      if test "autoindex" = "so"; then
 
17560
          sharedobjs=yes
 
17561
      fi
 
17562
      shared="";;
 
17563
    esac
 
17564
 
 
17565
 
 
17566
  if test -z ""; then
 
17567
    objects="mod_autoindex.lo"
 
17568
  else
 
17569
    objects=""
 
17570
  fi
 
17571
 
 
17572
  if test -z "$module_standalone"; then
 
17573
    if test -z "$shared"; then
 
17574
      # The filename of a convenience library must have a "lib" prefix:
 
17575
      libname="libmod_autoindex.la"
 
17576
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
17577
      modpath_static="$modpath_static $libname"
 
17578
      cat >>$modpath_current/modules.mk<<EOF
 
17579
$libname: $objects
 
17580
        \$(MOD_LINK) $objects \$(MOD_AUTOINDEX_LDADD)
 
17581
EOF
 
17582
    else
 
17583
      apache_need_shared=yes
 
17584
      libname="mod_autoindex.la"
 
17585
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
17586
      modpath_shared="$modpath_shared $libname"
 
17587
      cat >>$modpath_current/modules.mk<<EOF
 
17588
$libname: $shobjects
 
17589
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_AUTOINDEX_LDADD)
 
17590
EOF
 
17591
    fi
 
17592
  fi
 
17593
 
 
17594
 
 
17595
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_AUTOINDEX_LDADD"
 
17596
 
 
17597
 
 
17598
 
 
17599
  fi
 
17600
 
 
17601
 
 
17602
  echo "$as_me:$LINENO: checking whether to enable mod_asis" >&5
 
17603
echo $ECHO_N "checking whether to enable mod_asis... $ECHO_C" >&6
 
17604
    # Check whether --enable-asis or --disable-asis was given.
 
17605
if test "${enable_asis+set}" = set; then
 
17606
  enableval="$enable_asis"
 
17607
 
 
17608
else
 
17609
  enable_asis=yes
 
17610
fi;
 
17611
    _apmod_extra_msg=""
 
17612
      if test "$module_selection" = "most" -a "$enable_asis" = "most"; then
 
17613
    _apmod_error_fatal="no"
 
17614
  else
 
17615
    _apmod_error_fatal="yes"
 
17616
  fi
 
17617
  if test "$enable_asis" = "static"; then
 
17618
    enable_asis=yes
 
17619
  elif test "$enable_asis" = "yes"; then
 
17620
    enable_asis=$module_default
 
17621
    _apmod_extra_msg=" ($module_selection)"
 
17622
  elif test "$enable_asis" = "most"; then
 
17623
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
17624
      enable_asis=$module_default
 
17625
      _apmod_extra_msg=" ($module_selection)"
 
17626
    elif test "$enable_asis" != "yes"; then
 
17627
      enable_asis=no
 
17628
    fi
 
17629
  elif test "$enable_asis" = "maybe-all"; then
 
17630
    if test "$module_selection" = "all"; then
 
17631
      enable_asis=$module_default
 
17632
      _apmod_extra_msg=" (all)"
 
17633
    else
 
17634
      enable_asis=no
 
17635
    fi
 
17636
  fi
 
17637
  if test "$enable_asis" != "no"; then
 
17638
            :
 
17639
  fi
 
17640
  echo "$as_me:$LINENO: result: $enable_asis$_apmod_extra_msg" >&5
 
17641
echo "${ECHO_T}$enable_asis$_apmod_extra_msg" >&6
 
17642
  if test "$enable_asis" != "no"; then
 
17643
    case "$enable_asis" in
 
17644
    shared*)
 
17645
      enable_asis=`echo $enable_asis|sed 's/shared,*//'`
 
17646
      sharedobjs=yes
 
17647
      shared=yes
 
17648
      DSO_MODULES="$DSO_MODULES asis"
 
17649
      ;;
 
17650
    *)
 
17651
      MODLIST="$MODLIST asis"
 
17652
      if test "asis" = "so"; then
 
17653
          sharedobjs=yes
 
17654
      fi
 
17655
      shared="";;
 
17656
    esac
 
17657
 
 
17658
 
 
17659
  if test -z ""; then
 
17660
    objects="mod_asis.lo"
 
17661
  else
 
17662
    objects=""
 
17663
  fi
 
17664
 
 
17665
  if test -z "$module_standalone"; then
 
17666
    if test -z "$shared"; then
 
17667
      # The filename of a convenience library must have a "lib" prefix:
 
17668
      libname="libmod_asis.la"
 
17669
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
17670
      modpath_static="$modpath_static $libname"
 
17671
      cat >>$modpath_current/modules.mk<<EOF
 
17672
$libname: $objects
 
17673
        \$(MOD_LINK) $objects \$(MOD_ASIS_LDADD)
 
17674
EOF
 
17675
    else
 
17676
      apache_need_shared=yes
 
17677
      libname="mod_asis.la"
 
17678
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
17679
      modpath_shared="$modpath_shared $libname"
 
17680
      cat >>$modpath_current/modules.mk<<EOF
 
17681
$libname: $shobjects
 
17682
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_ASIS_LDADD)
 
17683
EOF
 
17684
    fi
 
17685
  fi
 
17686
 
 
17687
 
 
17688
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ASIS_LDADD"
 
17689
 
 
17690
 
 
17691
 
 
17692
  fi
 
17693
 
 
17694
 
 
17695
  echo "$as_me:$LINENO: checking whether to enable mod_info" >&5
 
17696
echo $ECHO_N "checking whether to enable mod_info... $ECHO_C" >&6
 
17697
    # Check whether --enable-info or --disable-info was given.
 
17698
if test "${enable_info+set}" = set; then
 
17699
  enableval="$enable_info"
 
17700
 
 
17701
else
 
17702
  enable_info=most
 
17703
fi;
 
17704
    _apmod_extra_msg=""
 
17705
      if test "$module_selection" = "most" -a "$enable_info" = "most"; then
 
17706
    _apmod_error_fatal="no"
 
17707
  else
 
17708
    _apmod_error_fatal="yes"
 
17709
  fi
 
17710
  if test "$enable_info" = "static"; then
 
17711
    enable_info=yes
 
17712
  elif test "$enable_info" = "yes"; then
 
17713
    enable_info=$module_default
 
17714
    _apmod_extra_msg=" ($module_selection)"
 
17715
  elif test "$enable_info" = "most"; then
 
17716
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
17717
      enable_info=$module_default
 
17718
      _apmod_extra_msg=" ($module_selection)"
 
17719
    elif test "$enable_info" != "yes"; then
 
17720
      enable_info=no
 
17721
    fi
 
17722
  elif test "$enable_info" = "maybe-all"; then
 
17723
    if test "$module_selection" = "all"; then
 
17724
      enable_info=$module_default
 
17725
      _apmod_extra_msg=" (all)"
 
17726
    else
 
17727
      enable_info=no
 
17728
    fi
 
17729
  fi
 
17730
  if test "$enable_info" != "no"; then
 
17731
            :
 
17732
  fi
 
17733
  echo "$as_me:$LINENO: result: $enable_info$_apmod_extra_msg" >&5
 
17734
echo "${ECHO_T}$enable_info$_apmod_extra_msg" >&6
 
17735
  if test "$enable_info" != "no"; then
 
17736
    case "$enable_info" in
 
17737
    shared*)
 
17738
      enable_info=`echo $enable_info|sed 's/shared,*//'`
 
17739
      sharedobjs=yes
 
17740
      shared=yes
 
17741
      DSO_MODULES="$DSO_MODULES info"
 
17742
      ;;
 
17743
    *)
 
17744
      MODLIST="$MODLIST info"
 
17745
      if test "info" = "so"; then
 
17746
          sharedobjs=yes
 
17747
      fi
 
17748
      shared="";;
 
17749
    esac
 
17750
 
 
17751
 
 
17752
  if test -z ""; then
 
17753
    objects="mod_info.lo"
 
17754
  else
 
17755
    objects=""
 
17756
  fi
 
17757
 
 
17758
  if test -z "$module_standalone"; then
 
17759
    if test -z "$shared"; then
 
17760
      # The filename of a convenience library must have a "lib" prefix:
 
17761
      libname="libmod_info.la"
 
17762
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
17763
      modpath_static="$modpath_static $libname"
 
17764
      cat >>$modpath_current/modules.mk<<EOF
 
17765
$libname: $objects
 
17766
        \$(MOD_LINK) $objects \$(MOD_INFO_LDADD)
 
17767
EOF
 
17768
    else
 
17769
      apache_need_shared=yes
 
17770
      libname="mod_info.la"
 
17771
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
17772
      modpath_shared="$modpath_shared $libname"
 
17773
      cat >>$modpath_current/modules.mk<<EOF
 
17774
$libname: $shobjects
 
17775
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_INFO_LDADD)
 
17776
EOF
 
17777
    fi
 
17778
  fi
 
17779
 
 
17780
 
 
17781
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_INFO_LDADD"
 
17782
 
 
17783
 
 
17784
 
 
17785
  fi
 
17786
 
 
17787
 
 
17788
  echo "$as_me:$LINENO: checking whether to enable mod_suexec" >&5
 
17789
echo $ECHO_N "checking whether to enable mod_suexec... $ECHO_C" >&6
 
17790
    # Check whether --enable-suexec or --disable-suexec was given.
 
17791
if test "${enable_suexec+set}" = set; then
 
17792
  enableval="$enable_suexec"
 
17793
 
 
17794
else
 
17795
  enable_suexec=no
 
17796
fi;
 
17797
    _apmod_extra_msg=""
 
17798
      if test "$module_selection" = "most" -a "$enable_suexec" = "most"; then
 
17799
    _apmod_error_fatal="no"
 
17800
  else
 
17801
    _apmod_error_fatal="yes"
 
17802
  fi
 
17803
  if test "$enable_suexec" = "static"; then
 
17804
    enable_suexec=yes
 
17805
  elif test "$enable_suexec" = "yes"; then
 
17806
    enable_suexec=$module_default
 
17807
    _apmod_extra_msg=" ($module_selection)"
 
17808
  elif test "$enable_suexec" = "most"; then
 
17809
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
17810
      enable_suexec=$module_default
 
17811
      _apmod_extra_msg=" ($module_selection)"
 
17812
    elif test "$enable_suexec" != "yes"; then
 
17813
      enable_suexec=no
 
17814
    fi
 
17815
  elif test "$enable_suexec" = "maybe-all"; then
 
17816
    if test "$module_selection" = "all"; then
 
17817
      enable_suexec=$module_default
 
17818
      _apmod_extra_msg=" (all)"
 
17819
    else
 
17820
      enable_suexec=no
 
17821
    fi
 
17822
  fi
 
17823
  if test "$enable_suexec" != "no"; then
 
17824
            echo "$as_me:$LINENO: result: checking dependencies" >&5
 
17825
echo "${ECHO_T}checking dependencies" >&6
 
17826
 
 
17827
              other_targets=suexec
 
17828
                    echo "$as_me:$LINENO: checking whether to enable mod_suexec" >&5
 
17829
echo $ECHO_N "checking whether to enable mod_suexec... $ECHO_C" >&6
 
17830
                    if test "$enable_suexec" = "no"; then
 
17831
                      if test "$_apmod_error_fatal" = "no"; then
 
17832
                        _apmod_extra_msg=" (disabled)"
 
17833
                      else
 
17834
                        { { echo "$as_me:$LINENO: error: mod_suexec has been requested but can not be built due to prerequisite failures" >&5
 
17835
echo "$as_me: error: mod_suexec has been requested but can not be built due to prerequisite failures" >&2;}
 
17836
   { (exit 1); exit 1; }; }
 
17837
                      fi
 
17838
                    fi
 
17839
  fi
 
17840
  echo "$as_me:$LINENO: result: $enable_suexec$_apmod_extra_msg" >&5
 
17841
echo "${ECHO_T}$enable_suexec$_apmod_extra_msg" >&6
 
17842
  if test "$enable_suexec" != "no"; then
 
17843
    case "$enable_suexec" in
 
17844
    shared*)
 
17845
      enable_suexec=`echo $enable_suexec|sed 's/shared,*//'`
 
17846
      sharedobjs=yes
 
17847
      shared=yes
 
17848
      DSO_MODULES="$DSO_MODULES suexec"
 
17849
      ;;
 
17850
    *)
 
17851
      MODLIST="$MODLIST suexec"
 
17852
      if test "suexec" = "so"; then
 
17853
          sharedobjs=yes
 
17854
      fi
 
17855
      shared="";;
 
17856
    esac
 
17857
 
 
17858
 
 
17859
  if test -z ""; then
 
17860
    objects="mod_suexec.lo"
 
17861
  else
 
17862
    objects=""
 
17863
  fi
 
17864
 
 
17865
  if test -z "$module_standalone"; then
 
17866
    if test -z "$shared"; then
 
17867
      # The filename of a convenience library must have a "lib" prefix:
 
17868
      libname="libmod_suexec.la"
 
17869
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
17870
      modpath_static="$modpath_static $libname"
 
17871
      cat >>$modpath_current/modules.mk<<EOF
 
17872
$libname: $objects
 
17873
        \$(MOD_LINK) $objects \$(MOD_SUEXEC_LDADD)
 
17874
EOF
 
17875
    else
 
17876
      apache_need_shared=yes
 
17877
      libname="mod_suexec.la"
 
17878
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
17879
      modpath_shared="$modpath_shared $libname"
 
17880
      cat >>$modpath_current/modules.mk<<EOF
 
17881
$libname: $shobjects
 
17882
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SUEXEC_LDADD)
 
17883
EOF
 
17884
    fi
 
17885
  fi
 
17886
 
 
17887
 
 
17888
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SUEXEC_LDADD"
 
17889
 
 
17890
 
 
17891
 
 
17892
  fi
 
17893
 
 
17894
 
 
17895
if ap_mpm_is_threaded; then
 
17896
# if we are using a threaded MPM, we will get better performance with
 
17897
# mod_cgid, so make it the default.
 
17898
 
 
17899
  echo "$as_me:$LINENO: checking whether to enable mod_cgid" >&5
 
17900
echo $ECHO_N "checking whether to enable mod_cgid... $ECHO_C" >&6
 
17901
    # Check whether --enable-cgid or --disable-cgid was given.
 
17902
if test "${enable_cgid+set}" = set; then
 
17903
  enableval="$enable_cgid"
 
17904
 
 
17905
else
 
17906
  enable_cgid=yes
 
17907
fi;
 
17908
    _apmod_extra_msg=""
 
17909
      if test "$module_selection" = "most" -a "$enable_cgid" = "most"; then
 
17910
    _apmod_error_fatal="no"
 
17911
  else
 
17912
    _apmod_error_fatal="yes"
 
17913
  fi
 
17914
  if test "$enable_cgid" = "static"; then
 
17915
    enable_cgid=yes
 
17916
  elif test "$enable_cgid" = "yes"; then
 
17917
    enable_cgid=$module_default
 
17918
    _apmod_extra_msg=" ($module_selection)"
 
17919
  elif test "$enable_cgid" = "most"; then
 
17920
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
17921
      enable_cgid=$module_default
 
17922
      _apmod_extra_msg=" ($module_selection)"
 
17923
    elif test "$enable_cgid" != "yes"; then
 
17924
      enable_cgid=no
 
17925
    fi
 
17926
  elif test "$enable_cgid" = "maybe-all"; then
 
17927
    if test "$module_selection" = "all"; then
 
17928
      enable_cgid=$module_default
 
17929
      _apmod_extra_msg=" (all)"
 
17930
    else
 
17931
      enable_cgid=no
 
17932
    fi
 
17933
  fi
 
17934
  if test "$enable_cgid" != "no"; then
 
17935
            :
 
17936
  fi
 
17937
  echo "$as_me:$LINENO: result: $enable_cgid$_apmod_extra_msg" >&5
 
17938
echo "${ECHO_T}$enable_cgid$_apmod_extra_msg" >&6
 
17939
  if test "$enable_cgid" != "no"; then
 
17940
    case "$enable_cgid" in
 
17941
    shared*)
 
17942
      enable_cgid=`echo $enable_cgid|sed 's/shared,*//'`
 
17943
      sharedobjs=yes
 
17944
      shared=yes
 
17945
      DSO_MODULES="$DSO_MODULES cgid"
 
17946
      ;;
 
17947
    *)
 
17948
      MODLIST="$MODLIST cgid"
 
17949
      if test "cgid" = "so"; then
 
17950
          sharedobjs=yes
 
17951
      fi
 
17952
      shared="";;
 
17953
    esac
 
17954
 
 
17955
 
 
17956
  if test -z ""; then
 
17957
    objects="mod_cgid.lo"
 
17958
  else
 
17959
    objects=""
 
17960
  fi
 
17961
 
 
17962
  if test -z "$module_standalone"; then
 
17963
    if test -z "$shared"; then
 
17964
      # The filename of a convenience library must have a "lib" prefix:
 
17965
      libname="libmod_cgid.la"
 
17966
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
17967
      modpath_static="$modpath_static $libname"
 
17968
      cat >>$modpath_current/modules.mk<<EOF
 
17969
$libname: $objects
 
17970
        \$(MOD_LINK) $objects \$(MOD_CGID_LDADD)
 
17971
EOF
 
17972
    else
 
17973
      apache_need_shared=yes
 
17974
      libname="mod_cgid.la"
 
17975
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
17976
      modpath_shared="$modpath_shared $libname"
 
17977
      cat >>$modpath_current/modules.mk<<EOF
 
17978
$libname: $shobjects
 
17979
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CGID_LDADD)
 
17980
EOF
 
17981
    fi
 
17982
  fi
 
17983
 
 
17984
 
 
17985
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CGID_LDADD"
 
17986
 
 
17987
 
 
17988
 
 
17989
  fi
 
17990
 
 
17991
 
 
17992
  echo "$as_me:$LINENO: checking whether to enable mod_cgi" >&5
 
17993
echo $ECHO_N "checking whether to enable mod_cgi... $ECHO_C" >&6
 
17994
    # Check whether --enable-cgi or --disable-cgi was given.
 
17995
if test "${enable_cgi+set}" = set; then
 
17996
  enableval="$enable_cgi"
 
17997
 
 
17998
else
 
17999
  enable_cgi=no
 
18000
fi;
 
18001
    _apmod_extra_msg=""
 
18002
      if test "$module_selection" = "most" -a "$enable_cgi" = "most"; then
 
18003
    _apmod_error_fatal="no"
 
18004
  else
 
18005
    _apmod_error_fatal="yes"
 
18006
  fi
 
18007
  if test "$enable_cgi" = "static"; then
 
18008
    enable_cgi=yes
 
18009
  elif test "$enable_cgi" = "yes"; then
 
18010
    enable_cgi=$module_default
 
18011
    _apmod_extra_msg=" ($module_selection)"
 
18012
  elif test "$enable_cgi" = "most"; then
 
18013
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
18014
      enable_cgi=$module_default
 
18015
      _apmod_extra_msg=" ($module_selection)"
 
18016
    elif test "$enable_cgi" != "yes"; then
 
18017
      enable_cgi=no
 
18018
    fi
 
18019
  elif test "$enable_cgi" = "maybe-all"; then
 
18020
    if test "$module_selection" = "all"; then
 
18021
      enable_cgi=$module_default
 
18022
      _apmod_extra_msg=" (all)"
 
18023
    else
 
18024
      enable_cgi=no
 
18025
    fi
 
18026
  fi
 
18027
  if test "$enable_cgi" != "no"; then
 
18028
            :
 
18029
  fi
 
18030
  echo "$as_me:$LINENO: result: $enable_cgi$_apmod_extra_msg" >&5
 
18031
echo "${ECHO_T}$enable_cgi$_apmod_extra_msg" >&6
 
18032
  if test "$enable_cgi" != "no"; then
 
18033
    case "$enable_cgi" in
 
18034
    shared*)
 
18035
      enable_cgi=`echo $enable_cgi|sed 's/shared,*//'`
 
18036
      sharedobjs=yes
 
18037
      shared=yes
 
18038
      DSO_MODULES="$DSO_MODULES cgi"
 
18039
      ;;
 
18040
    *)
 
18041
      MODLIST="$MODLIST cgi"
 
18042
      if test "cgi" = "so"; then
 
18043
          sharedobjs=yes
 
18044
      fi
 
18045
      shared="";;
 
18046
    esac
 
18047
 
 
18048
 
 
18049
  if test -z ""; then
 
18050
    objects="mod_cgi.lo"
 
18051
  else
 
18052
    objects=""
 
18053
  fi
 
18054
 
 
18055
  if test -z "$module_standalone"; then
 
18056
    if test -z "$shared"; then
 
18057
      # The filename of a convenience library must have a "lib" prefix:
 
18058
      libname="libmod_cgi.la"
 
18059
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
18060
      modpath_static="$modpath_static $libname"
 
18061
      cat >>$modpath_current/modules.mk<<EOF
 
18062
$libname: $objects
 
18063
        \$(MOD_LINK) $objects \$(MOD_CGI_LDADD)
 
18064
EOF
 
18065
    else
 
18066
      apache_need_shared=yes
 
18067
      libname="mod_cgi.la"
 
18068
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
18069
      modpath_shared="$modpath_shared $libname"
 
18070
      cat >>$modpath_current/modules.mk<<EOF
 
18071
$libname: $shobjects
 
18072
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CGI_LDADD)
 
18073
EOF
 
18074
    fi
 
18075
  fi
 
18076
 
 
18077
 
 
18078
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CGI_LDADD"
 
18079
 
 
18080
 
 
18081
 
 
18082
  fi
 
18083
 
 
18084
else
 
18085
# if we are using a non-threaded MPM, it makes little sense to use
 
18086
# mod_cgid, and it just opens up holes we don't need.  Make mod_cgi the
 
18087
# default
 
18088
 
 
18089
  echo "$as_me:$LINENO: checking whether to enable mod_cgi" >&5
 
18090
echo $ECHO_N "checking whether to enable mod_cgi... $ECHO_C" >&6
 
18091
    # Check whether --enable-cgi or --disable-cgi was given.
 
18092
if test "${enable_cgi+set}" = set; then
 
18093
  enableval="$enable_cgi"
 
18094
 
 
18095
else
 
18096
  enable_cgi=yes
 
18097
fi;
 
18098
    _apmod_extra_msg=""
 
18099
      if test "$module_selection" = "most" -a "$enable_cgi" = "most"; then
 
18100
    _apmod_error_fatal="no"
 
18101
  else
 
18102
    _apmod_error_fatal="yes"
 
18103
  fi
 
18104
  if test "$enable_cgi" = "static"; then
 
18105
    enable_cgi=yes
 
18106
  elif test "$enable_cgi" = "yes"; then
 
18107
    enable_cgi=$module_default
 
18108
    _apmod_extra_msg=" ($module_selection)"
 
18109
  elif test "$enable_cgi" = "most"; then
 
18110
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
18111
      enable_cgi=$module_default
 
18112
      _apmod_extra_msg=" ($module_selection)"
 
18113
    elif test "$enable_cgi" != "yes"; then
 
18114
      enable_cgi=no
 
18115
    fi
 
18116
  elif test "$enable_cgi" = "maybe-all"; then
 
18117
    if test "$module_selection" = "all"; then
 
18118
      enable_cgi=$module_default
 
18119
      _apmod_extra_msg=" (all)"
 
18120
    else
 
18121
      enable_cgi=no
 
18122
    fi
 
18123
  fi
 
18124
  if test "$enable_cgi" != "no"; then
 
18125
            :
 
18126
  fi
 
18127
  echo "$as_me:$LINENO: result: $enable_cgi$_apmod_extra_msg" >&5
 
18128
echo "${ECHO_T}$enable_cgi$_apmod_extra_msg" >&6
 
18129
  if test "$enable_cgi" != "no"; then
 
18130
    case "$enable_cgi" in
 
18131
    shared*)
 
18132
      enable_cgi=`echo $enable_cgi|sed 's/shared,*//'`
 
18133
      sharedobjs=yes
 
18134
      shared=yes
 
18135
      DSO_MODULES="$DSO_MODULES cgi"
 
18136
      ;;
 
18137
    *)
 
18138
      MODLIST="$MODLIST cgi"
 
18139
      if test "cgi" = "so"; then
 
18140
          sharedobjs=yes
 
18141
      fi
 
18142
      shared="";;
 
18143
    esac
 
18144
 
 
18145
 
 
18146
  if test -z ""; then
 
18147
    objects="mod_cgi.lo"
 
18148
  else
 
18149
    objects=""
 
18150
  fi
 
18151
 
 
18152
  if test -z "$module_standalone"; then
 
18153
    if test -z "$shared"; then
 
18154
      # The filename of a convenience library must have a "lib" prefix:
 
18155
      libname="libmod_cgi.la"
 
18156
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
18157
      modpath_static="$modpath_static $libname"
 
18158
      cat >>$modpath_current/modules.mk<<EOF
 
18159
$libname: $objects
 
18160
        \$(MOD_LINK) $objects \$(MOD_CGI_LDADD)
 
18161
EOF
 
18162
    else
 
18163
      apache_need_shared=yes
 
18164
      libname="mod_cgi.la"
 
18165
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
18166
      modpath_shared="$modpath_shared $libname"
 
18167
      cat >>$modpath_current/modules.mk<<EOF
 
18168
$libname: $shobjects
 
18169
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CGI_LDADD)
 
18170
EOF
 
18171
    fi
 
18172
  fi
 
18173
 
 
18174
 
 
18175
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CGI_LDADD"
 
18176
 
 
18177
 
 
18178
 
 
18179
  fi
 
18180
 
 
18181
 
 
18182
  echo "$as_me:$LINENO: checking whether to enable mod_cgid" >&5
 
18183
echo $ECHO_N "checking whether to enable mod_cgid... $ECHO_C" >&6
 
18184
    # Check whether --enable-cgid or --disable-cgid was given.
 
18185
if test "${enable_cgid+set}" = set; then
 
18186
  enableval="$enable_cgid"
 
18187
 
 
18188
else
 
18189
  enable_cgid=no
 
18190
fi;
 
18191
    _apmod_extra_msg=""
 
18192
      if test "$module_selection" = "most" -a "$enable_cgid" = "most"; then
 
18193
    _apmod_error_fatal="no"
 
18194
  else
 
18195
    _apmod_error_fatal="yes"
 
18196
  fi
 
18197
  if test "$enable_cgid" = "static"; then
 
18198
    enable_cgid=yes
 
18199
  elif test "$enable_cgid" = "yes"; then
 
18200
    enable_cgid=$module_default
 
18201
    _apmod_extra_msg=" ($module_selection)"
 
18202
  elif test "$enable_cgid" = "most"; then
 
18203
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
18204
      enable_cgid=$module_default
 
18205
      _apmod_extra_msg=" ($module_selection)"
 
18206
    elif test "$enable_cgid" != "yes"; then
 
18207
      enable_cgid=no
 
18208
    fi
 
18209
  elif test "$enable_cgid" = "maybe-all"; then
 
18210
    if test "$module_selection" = "all"; then
 
18211
      enable_cgid=$module_default
 
18212
      _apmod_extra_msg=" (all)"
 
18213
    else
 
18214
      enable_cgid=no
 
18215
    fi
 
18216
  fi
 
18217
  if test "$enable_cgid" != "no"; then
 
18218
            :
 
18219
  fi
 
18220
  echo "$as_me:$LINENO: result: $enable_cgid$_apmod_extra_msg" >&5
 
18221
echo "${ECHO_T}$enable_cgid$_apmod_extra_msg" >&6
 
18222
  if test "$enable_cgid" != "no"; then
 
18223
    case "$enable_cgid" in
 
18224
    shared*)
 
18225
      enable_cgid=`echo $enable_cgid|sed 's/shared,*//'`
 
18226
      sharedobjs=yes
 
18227
      shared=yes
 
18228
      DSO_MODULES="$DSO_MODULES cgid"
 
18229
      ;;
 
18230
    *)
 
18231
      MODLIST="$MODLIST cgid"
 
18232
      if test "cgid" = "so"; then
 
18233
          sharedobjs=yes
 
18234
      fi
 
18235
      shared="";;
 
18236
    esac
 
18237
 
 
18238
 
 
18239
  if test -z ""; then
 
18240
    objects="mod_cgid.lo"
 
18241
  else
 
18242
    objects=""
 
18243
  fi
 
18244
 
 
18245
  if test -z "$module_standalone"; then
 
18246
    if test -z "$shared"; then
 
18247
      # The filename of a convenience library must have a "lib" prefix:
 
18248
      libname="libmod_cgid.la"
 
18249
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
18250
      modpath_static="$modpath_static $libname"
 
18251
      cat >>$modpath_current/modules.mk<<EOF
 
18252
$libname: $objects
 
18253
        \$(MOD_LINK) $objects \$(MOD_CGID_LDADD)
 
18254
EOF
 
18255
    else
 
18256
      apache_need_shared=yes
 
18257
      libname="mod_cgid.la"
 
18258
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
18259
      modpath_shared="$modpath_shared $libname"
 
18260
      cat >>$modpath_current/modules.mk<<EOF
 
18261
$libname: $shobjects
 
18262
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_CGID_LDADD)
 
18263
EOF
 
18264
    fi
 
18265
  fi
 
18266
 
 
18267
 
 
18268
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_CGID_LDADD"
 
18269
 
 
18270
 
 
18271
 
 
18272
  fi
 
18273
 
 
18274
fi
 
18275
 
 
18276
 
 
18277
  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
 
18278
  echo "static = $modpath_static" >> $modpath_current/modules.mk
 
18279
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
 
18280
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
 
18281
    MODULE_DIRS="$MODULE_DIRS $current_dir"
 
18282
  else
 
18283
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
 
18284
  fi
 
18285
 
 
18286
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
 
18287
 
 
18288
 
 
18289
 
 
18290
 
 
18291
if test "$MPM_NAME" = "beos" ; then
 
18292
    apache_apr_flags="--enable-threads"
 
18293
 
 
18294
 
 
18295
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES server/mpm/$MPM_NAME/Makefile"
 
18296
 
 
18297
fi
 
18298
 
 
18299
 
 
18300
if test "$MPM_NAME" = "event" ; then
 
18301
 
 
18302
for ac_func in pthread_kill
 
18303
do
 
18304
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
18305
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
18306
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
18307
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
18308
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18309
else
 
18310
  cat >conftest.$ac_ext <<_ACEOF
 
18311
/* confdefs.h.  */
 
18312
_ACEOF
 
18313
cat confdefs.h >>conftest.$ac_ext
 
18314
cat >>conftest.$ac_ext <<_ACEOF
 
18315
/* end confdefs.h.  */
 
18316
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
18317
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18318
#define $ac_func innocuous_$ac_func
 
18319
 
 
18320
/* System header to define __stub macros and hopefully few prototypes,
 
18321
    which can conflict with char $ac_func (); below.
 
18322
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18323
    <limits.h> exists even on freestanding compilers.  */
 
18324
 
 
18325
#ifdef __STDC__
 
18326
# include <limits.h>
 
18327
#else
 
18328
# include <assert.h>
 
18329
#endif
 
18330
 
 
18331
#undef $ac_func
 
18332
 
 
18333
/* Override any gcc2 internal prototype to avoid an error.  */
 
18334
#ifdef __cplusplus
 
18335
extern "C"
 
18336
{
 
18337
#endif
 
18338
/* We use char because int might match the return type of a gcc2
 
18339
   builtin and then its argument prototype would still apply.  */
 
18340
char $ac_func ();
 
18341
/* The GNU C library defines this for functions which it implements
 
18342
    to always fail with ENOSYS.  Some functions are actually named
 
18343
    something starting with __ and the normal name is an alias.  */
 
18344
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
18345
choke me
 
18346
#else
 
18347
char (*f) () = $ac_func;
 
18348
#endif
 
18349
#ifdef __cplusplus
 
18350
}
 
18351
#endif
 
18352
 
 
18353
int
 
18354
main ()
 
18355
{
 
18356
return f != $ac_func;
 
18357
  ;
 
18358
  return 0;
 
18359
}
 
18360
_ACEOF
 
18361
rm -f conftest.$ac_objext conftest$ac_exeext
 
18362
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18363
  (eval $ac_link) 2>conftest.er1
 
18364
  ac_status=$?
 
18365
  grep -v '^ *+' conftest.er1 >conftest.err
 
18366
  rm -f conftest.er1
 
18367
  cat conftest.err >&5
 
18368
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18369
  (exit $ac_status); } &&
 
18370
         { ac_try='test -z "$ac_c_werror_flag"
 
18371
                         || test ! -s conftest.err'
 
18372
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18373
  (eval $ac_try) 2>&5
 
18374
  ac_status=$?
 
18375
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18376
  (exit $ac_status); }; } &&
 
18377
         { ac_try='test -s conftest$ac_exeext'
 
18378
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18379
  (eval $ac_try) 2>&5
 
18380
  ac_status=$?
 
18381
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18382
  (exit $ac_status); }; }; then
 
18383
  eval "$as_ac_var=yes"
 
18384
else
 
18385
  echo "$as_me: failed program was:" >&5
 
18386
sed 's/^/| /' conftest.$ac_ext >&5
 
18387
 
 
18388
eval "$as_ac_var=no"
 
18389
fi
 
18390
rm -f conftest.err conftest.$ac_objext \
 
18391
      conftest$ac_exeext conftest.$ac_ext
 
18392
fi
 
18393
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
18394
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
18395
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
18396
  cat >>confdefs.h <<_ACEOF
 
18397
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
18398
_ACEOF
 
18399
 
 
18400
fi
 
18401
done
 
18402
 
 
18403
 
 
18404
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES server/mpm/$MPM_SUBDIR_NAME/Makefile"
 
18405
 
 
18406
fi
 
18407
 
 
18408
if test "$MPM_NAME" = "mpmt_os2" ; then
 
18409
    cat >confcache <<\_ACEOF
 
18410
# This file is a shell script that caches the results of configure
 
18411
# tests run on this system so they can be shared between configure
 
18412
# scripts and configure runs, see configure's option --config-cache.
 
18413
# It is not useful on other systems.  If it contains results you don't
 
18414
# want to keep, you may remove or edit it.
 
18415
#
 
18416
# config.status only pays attention to the cache file if you give it
 
18417
# the --recheck option to rerun configure.
 
18418
#
 
18419
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
18420
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
18421
# following values.
 
18422
 
 
18423
_ACEOF
 
18424
 
 
18425
# The following way of writing the cache mishandles newlines in values,
 
18426
# but we know of no workaround that is simple, portable, and efficient.
 
18427
# So, don't put newlines in cache variables' values.
 
18428
# Ultrix sh set writes to stderr and can't be redirected directly,
 
18429
# and sets the high bit in the cache file unless we assign to the vars.
 
18430
{
 
18431
  (set) 2>&1 |
 
18432
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
18433
    *ac_space=\ *)
 
18434
      # `set' does not quote correctly, so add quotes (double-quote
 
18435
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
18436
      sed -n \
 
18437
        "s/'/'\\\\''/g;
 
18438
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
18439
      ;;
 
18440
    *)
 
18441
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
18442
      sed -n \
 
18443
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
18444
      ;;
 
18445
    esac;
 
18446
} |
 
18447
  sed '
 
18448
     t clear
 
18449
     : clear
 
18450
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
18451
     t end
 
18452
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
18453
     : end' >>confcache
 
18454
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
18455
  if test -w $cache_file; then
 
18456
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
18457
    cat confcache >$cache_file
 
18458
  else
 
18459
    echo "not updating unwritable cache $cache_file"
 
18460
  fi
 
18461
fi
 
18462
rm -f confcache
 
18463
 
 
18464
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES server/mpm/$MPM_NAME/Makefile"
 
18465
 
 
18466
 
 
18467
  if test "x$CFLAGS" = "x"; then
 
18468
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Zmt\""
 
18469
    CFLAGS="-Zmt"
 
18470
  else
 
18471
    apr_addto_bugger="-Zmt"
 
18472
    for i in $apr_addto_bugger; do
 
18473
      apr_addto_duplicate="0"
 
18474
      for j in $CFLAGS; do
 
18475
        if test "x$i" = "x$j"; then
 
18476
          apr_addto_duplicate="1"
 
18477
          break
 
18478
        fi
 
18479
      done
 
18480
      if test $apr_addto_duplicate = "0"; then
 
18481
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
 
18482
        CFLAGS="$CFLAGS $i"
 
18483
      fi
 
18484
    done
 
18485
  fi
 
18486
 
 
18487
fi
 
18488
 
 
18489
 
 
18490
if test "$MPM_NAME" = "worker" ; then
 
18491
 
 
18492
for ac_func in pthread_kill
 
18493
do
 
18494
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
18495
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
18496
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
18497
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
18498
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18499
else
 
18500
  cat >conftest.$ac_ext <<_ACEOF
 
18501
/* confdefs.h.  */
 
18502
_ACEOF
 
18503
cat confdefs.h >>conftest.$ac_ext
 
18504
cat >>conftest.$ac_ext <<_ACEOF
 
18505
/* end confdefs.h.  */
 
18506
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
18507
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18508
#define $ac_func innocuous_$ac_func
 
18509
 
 
18510
/* System header to define __stub macros and hopefully few prototypes,
 
18511
    which can conflict with char $ac_func (); below.
 
18512
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18513
    <limits.h> exists even on freestanding compilers.  */
 
18514
 
 
18515
#ifdef __STDC__
 
18516
# include <limits.h>
 
18517
#else
 
18518
# include <assert.h>
 
18519
#endif
 
18520
 
 
18521
#undef $ac_func
 
18522
 
 
18523
/* Override any gcc2 internal prototype to avoid an error.  */
 
18524
#ifdef __cplusplus
 
18525
extern "C"
 
18526
{
 
18527
#endif
 
18528
/* We use char because int might match the return type of a gcc2
 
18529
   builtin and then its argument prototype would still apply.  */
 
18530
char $ac_func ();
 
18531
/* The GNU C library defines this for functions which it implements
 
18532
    to always fail with ENOSYS.  Some functions are actually named
 
18533
    something starting with __ and the normal name is an alias.  */
 
18534
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
18535
choke me
 
18536
#else
 
18537
char (*f) () = $ac_func;
 
18538
#endif
 
18539
#ifdef __cplusplus
 
18540
}
 
18541
#endif
 
18542
 
 
18543
int
 
18544
main ()
 
18545
{
 
18546
return f != $ac_func;
 
18547
  ;
 
18548
  return 0;
 
18549
}
 
18550
_ACEOF
 
18551
rm -f conftest.$ac_objext conftest$ac_exeext
 
18552
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18553
  (eval $ac_link) 2>conftest.er1
 
18554
  ac_status=$?
 
18555
  grep -v '^ *+' conftest.er1 >conftest.err
 
18556
  rm -f conftest.er1
 
18557
  cat conftest.err >&5
 
18558
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18559
  (exit $ac_status); } &&
 
18560
         { ac_try='test -z "$ac_c_werror_flag"
 
18561
                         || test ! -s conftest.err'
 
18562
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18563
  (eval $ac_try) 2>&5
 
18564
  ac_status=$?
 
18565
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18566
  (exit $ac_status); }; } &&
 
18567
         { ac_try='test -s conftest$ac_exeext'
 
18568
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18569
  (eval $ac_try) 2>&5
 
18570
  ac_status=$?
 
18571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18572
  (exit $ac_status); }; }; then
 
18573
  eval "$as_ac_var=yes"
 
18574
else
 
18575
  echo "$as_me: failed program was:" >&5
 
18576
sed 's/^/| /' conftest.$ac_ext >&5
 
18577
 
 
18578
eval "$as_ac_var=no"
 
18579
fi
 
18580
rm -f conftest.err conftest.$ac_objext \
 
18581
      conftest$ac_exeext conftest.$ac_ext
 
18582
fi
 
18583
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
18584
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
18585
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
18586
  cat >>confdefs.h <<_ACEOF
 
18587
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
18588
_ACEOF
 
18589
 
 
18590
fi
 
18591
done
 
18592
 
 
18593
 
 
18594
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES server/mpm/$MPM_NAME/Makefile"
 
18595
 
 
18596
fi
 
18597
 
 
18598
 
 
18599
 
 
18600
  current_dir=dav/fs
 
18601
  modpath_current=modules/dav/fs
 
18602
  modpath_static=
 
18603
  modpath_shared=
 
18604
  test -d dav/fs || $srcdir/build/mkdir.sh $modpath_current
 
18605
  > $modpath_current/modules.mk
 
18606
 
 
18607
 
 
18608
dav_fs_objects="mod_dav_fs.lo dbm.lo lock.lo repos.lo"
 
18609
 
 
18610
if test "x$enable_dav" != "x"; then
 
18611
  dav_fs_enable=$enable_dav
 
18612
else
 
18613
  dav_fs_enable=$dav_enable
 
18614
fi
 
18615
 
 
18616
case "$host" in
 
18617
  *os2*)
 
18618
    # OS/2 DLLs must resolve all symbols at build time
 
18619
    # and we need some from main DAV module
 
18620
    dav_fs_objects="$dav_fs_objects ../main/mod_dav.la"
 
18621
    ;;
 
18622
esac
 
18623
 
 
18624
 
 
18625
  echo "$as_me:$LINENO: checking whether to enable mod_dav_fs" >&5
 
18626
echo $ECHO_N "checking whether to enable mod_dav_fs... $ECHO_C" >&6
 
18627
    # Check whether --enable-dav-fs or --disable-dav-fs was given.
 
18628
if test "${enable_dav_fs+set}" = set; then
 
18629
  enableval="$enable_dav_fs"
 
18630
 
 
18631
else
 
18632
  enable_dav_fs=$dav_fs_enable
 
18633
fi;
 
18634
    _apmod_extra_msg=""
 
18635
      if test "$module_selection" = "most" -a "$enable_dav_fs" = "most"; then
 
18636
    _apmod_error_fatal="no"
 
18637
  else
 
18638
    _apmod_error_fatal="yes"
 
18639
  fi
 
18640
  if test "$enable_dav_fs" = "static"; then
 
18641
    enable_dav_fs=yes
 
18642
  elif test "$enable_dav_fs" = "yes"; then
 
18643
    enable_dav_fs=$module_default
 
18644
    _apmod_extra_msg=" ($module_selection)"
 
18645
  elif test "$enable_dav_fs" = "most"; then
 
18646
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
18647
      enable_dav_fs=$module_default
 
18648
      _apmod_extra_msg=" ($module_selection)"
 
18649
    elif test "$enable_dav_fs" != "yes"; then
 
18650
      enable_dav_fs=no
 
18651
    fi
 
18652
  elif test "$enable_dav_fs" = "maybe-all"; then
 
18653
    if test "$module_selection" = "all"; then
 
18654
      enable_dav_fs=$module_default
 
18655
      _apmod_extra_msg=" (all)"
 
18656
    else
 
18657
      enable_dav_fs=no
 
18658
    fi
 
18659
  fi
 
18660
  if test "$enable_dav_fs" != "no"; then
 
18661
            :
 
18662
  fi
 
18663
  echo "$as_me:$LINENO: result: $enable_dav_fs$_apmod_extra_msg" >&5
 
18664
echo "${ECHO_T}$enable_dav_fs$_apmod_extra_msg" >&6
 
18665
  if test "$enable_dav_fs" != "no"; then
 
18666
    case "$enable_dav_fs" in
 
18667
    shared*)
 
18668
      enable_dav_fs=`echo $enable_dav_fs|sed 's/shared,*//'`
 
18669
      sharedobjs=yes
 
18670
      shared=yes
 
18671
      DSO_MODULES="$DSO_MODULES dav_fs"
 
18672
      ;;
 
18673
    *)
 
18674
      MODLIST="$MODLIST dav_fs"
 
18675
      if test "dav_fs" = "so"; then
 
18676
          sharedobjs=yes
 
18677
      fi
 
18678
      shared="";;
 
18679
    esac
 
18680
 
 
18681
 
 
18682
  if test -z "$dav_fs_objects"; then
 
18683
    objects="mod_dav_fs.lo"
 
18684
  else
 
18685
    objects="$dav_fs_objects"
 
18686
  fi
 
18687
 
 
18688
  if test -z "$module_standalone"; then
 
18689
    if test -z "$shared"; then
 
18690
      # The filename of a convenience library must have a "lib" prefix:
 
18691
      libname="libmod_dav_fs.la"
 
18692
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
18693
      modpath_static="$modpath_static $libname"
 
18694
      cat >>$modpath_current/modules.mk<<EOF
 
18695
$libname: $objects
 
18696
        \$(MOD_LINK) $objects \$(MOD_DAV_FS_LDADD)
 
18697
EOF
 
18698
    else
 
18699
      apache_need_shared=yes
 
18700
      libname="mod_dav_fs.la"
 
18701
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
18702
      modpath_shared="$modpath_shared $libname"
 
18703
      cat >>$modpath_current/modules.mk<<EOF
 
18704
$libname: $shobjects
 
18705
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_DAV_FS_LDADD)
 
18706
EOF
 
18707
    fi
 
18708
  fi
 
18709
 
 
18710
 
 
18711
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DAV_FS_LDADD"
 
18712
 
 
18713
 
 
18714
 
 
18715
  fi
 
18716
 
 
18717
 
 
18718
 
 
18719
  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
 
18720
  echo "static = $modpath_static" >> $modpath_current/modules.mk
 
18721
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
 
18722
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
 
18723
    MODULE_DIRS="$MODULE_DIRS $current_dir"
 
18724
  else
 
18725
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
 
18726
  fi
 
18727
 
 
18728
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
 
18729
 
 
18730
 
 
18731
 
 
18732
 
 
18733
 
 
18734
  current_dir=dav/lock
 
18735
  modpath_current=modules/dav/lock
 
18736
  modpath_static=
 
18737
  modpath_shared=
 
18738
  test -d dav/lock || $srcdir/build/mkdir.sh $modpath_current
 
18739
  > $modpath_current/modules.mk
 
18740
 
 
18741
 
 
18742
dav_lock_objects="mod_dav_lock.lo locks.lo"
 
18743
 
 
18744
case "$host" in
 
18745
  *os2*)
 
18746
    # OS/2 DLLs must resolve all symbols at build time
 
18747
    # and we need some from main DAV module
 
18748
    dav_lock_objects="$dav_lock_objects ../main/mod_dav.la"
 
18749
    ;;
 
18750
esac
 
18751
 
 
18752
 
 
18753
  echo "$as_me:$LINENO: checking whether to enable mod_dav_lock" >&5
 
18754
echo $ECHO_N "checking whether to enable mod_dav_lock... $ECHO_C" >&6
 
18755
    # Check whether --enable-dav-lock or --disable-dav-lock was given.
 
18756
if test "${enable_dav_lock+set}" = set; then
 
18757
  enableval="$enable_dav_lock"
 
18758
 
 
18759
else
 
18760
  enable_dav_lock=no
 
18761
fi;
 
18762
    _apmod_extra_msg=""
 
18763
      if test "$module_selection" = "most" -a "$enable_dav_lock" = "most"; then
 
18764
    _apmod_error_fatal="no"
 
18765
  else
 
18766
    _apmod_error_fatal="yes"
 
18767
  fi
 
18768
  if test "$enable_dav_lock" = "static"; then
 
18769
    enable_dav_lock=yes
 
18770
  elif test "$enable_dav_lock" = "yes"; then
 
18771
    enable_dav_lock=$module_default
 
18772
    _apmod_extra_msg=" ($module_selection)"
 
18773
  elif test "$enable_dav_lock" = "most"; then
 
18774
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
18775
      enable_dav_lock=$module_default
 
18776
      _apmod_extra_msg=" ($module_selection)"
 
18777
    elif test "$enable_dav_lock" != "yes"; then
 
18778
      enable_dav_lock=no
 
18779
    fi
 
18780
  elif test "$enable_dav_lock" = "maybe-all"; then
 
18781
    if test "$module_selection" = "all"; then
 
18782
      enable_dav_lock=$module_default
 
18783
      _apmod_extra_msg=" (all)"
 
18784
    else
 
18785
      enable_dav_lock=no
 
18786
    fi
 
18787
  fi
 
18788
  if test "$enable_dav_lock" != "no"; then
 
18789
            :
 
18790
  fi
 
18791
  echo "$as_me:$LINENO: result: $enable_dav_lock$_apmod_extra_msg" >&5
 
18792
echo "${ECHO_T}$enable_dav_lock$_apmod_extra_msg" >&6
 
18793
  if test "$enable_dav_lock" != "no"; then
 
18794
    case "$enable_dav_lock" in
 
18795
    shared*)
 
18796
      enable_dav_lock=`echo $enable_dav_lock|sed 's/shared,*//'`
 
18797
      sharedobjs=yes
 
18798
      shared=yes
 
18799
      DSO_MODULES="$DSO_MODULES dav_lock"
 
18800
      ;;
 
18801
    *)
 
18802
      MODLIST="$MODLIST dav_lock"
 
18803
      if test "dav_lock" = "so"; then
 
18804
          sharedobjs=yes
 
18805
      fi
 
18806
      shared="";;
 
18807
    esac
 
18808
 
 
18809
 
 
18810
  if test -z "$dav_lock_objects"; then
 
18811
    objects="mod_dav_lock.lo"
 
18812
  else
 
18813
    objects="$dav_lock_objects"
 
18814
  fi
 
18815
 
 
18816
  if test -z "$module_standalone"; then
 
18817
    if test -z "$shared"; then
 
18818
      # The filename of a convenience library must have a "lib" prefix:
 
18819
      libname="libmod_dav_lock.la"
 
18820
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
18821
      modpath_static="$modpath_static $libname"
 
18822
      cat >>$modpath_current/modules.mk<<EOF
 
18823
$libname: $objects
 
18824
        \$(MOD_LINK) $objects \$(MOD_DAV_LOCK_LDADD)
 
18825
EOF
 
18826
    else
 
18827
      apache_need_shared=yes
 
18828
      libname="mod_dav_lock.la"
 
18829
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
18830
      modpath_shared="$modpath_shared $libname"
 
18831
      cat >>$modpath_current/modules.mk<<EOF
 
18832
$libname: $shobjects
 
18833
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_DAV_LOCK_LDADD)
 
18834
EOF
 
18835
    fi
 
18836
  fi
 
18837
 
 
18838
 
 
18839
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DAV_LOCK_LDADD"
 
18840
 
 
18841
 
 
18842
 
 
18843
  fi
 
18844
 
 
18845
 
 
18846
 
 
18847
  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
 
18848
  echo "static = $modpath_static" >> $modpath_current/modules.mk
 
18849
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
 
18850
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
 
18851
    MODULE_DIRS="$MODULE_DIRS $current_dir"
 
18852
  else
 
18853
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
 
18854
  fi
 
18855
 
 
18856
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
 
18857
 
 
18858
 
 
18859
 
 
18860
 
 
18861
 
 
18862
 
 
18863
  current_dir=mappers
 
18864
  modpath_current=modules/mappers
 
18865
  modpath_static=
 
18866
  modpath_shared=
 
18867
  test -d mappers || $srcdir/build/mkdir.sh $modpath_current
 
18868
  > $modpath_current/modules.mk
 
18869
 
 
18870
 
 
18871
 
 
18872
  echo "$as_me:$LINENO: checking whether to enable mod_vhost_alias" >&5
 
18873
echo $ECHO_N "checking whether to enable mod_vhost_alias... $ECHO_C" >&6
 
18874
    # Check whether --enable-vhost-alias or --disable-vhost-alias was given.
 
18875
if test "${enable_vhost_alias+set}" = set; then
 
18876
  enableval="$enable_vhost_alias"
 
18877
 
 
18878
else
 
18879
  enable_vhost_alias=most
 
18880
fi;
 
18881
    _apmod_extra_msg=""
 
18882
      if test "$module_selection" = "most" -a "$enable_vhost_alias" = "most"; then
 
18883
    _apmod_error_fatal="no"
 
18884
  else
 
18885
    _apmod_error_fatal="yes"
 
18886
  fi
 
18887
  if test "$enable_vhost_alias" = "static"; then
 
18888
    enable_vhost_alias=yes
 
18889
  elif test "$enable_vhost_alias" = "yes"; then
 
18890
    enable_vhost_alias=$module_default
 
18891
    _apmod_extra_msg=" ($module_selection)"
 
18892
  elif test "$enable_vhost_alias" = "most"; then
 
18893
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
18894
      enable_vhost_alias=$module_default
 
18895
      _apmod_extra_msg=" ($module_selection)"
 
18896
    elif test "$enable_vhost_alias" != "yes"; then
 
18897
      enable_vhost_alias=no
 
18898
    fi
 
18899
  elif test "$enable_vhost_alias" = "maybe-all"; then
 
18900
    if test "$module_selection" = "all"; then
 
18901
      enable_vhost_alias=$module_default
 
18902
      _apmod_extra_msg=" (all)"
 
18903
    else
 
18904
      enable_vhost_alias=no
 
18905
    fi
 
18906
  fi
 
18907
  if test "$enable_vhost_alias" != "no"; then
 
18908
            :
 
18909
  fi
 
18910
  echo "$as_me:$LINENO: result: $enable_vhost_alias$_apmod_extra_msg" >&5
 
18911
echo "${ECHO_T}$enable_vhost_alias$_apmod_extra_msg" >&6
 
18912
  if test "$enable_vhost_alias" != "no"; then
 
18913
    case "$enable_vhost_alias" in
 
18914
    shared*)
 
18915
      enable_vhost_alias=`echo $enable_vhost_alias|sed 's/shared,*//'`
 
18916
      sharedobjs=yes
 
18917
      shared=yes
 
18918
      DSO_MODULES="$DSO_MODULES vhost_alias"
 
18919
      ;;
 
18920
    *)
 
18921
      MODLIST="$MODLIST vhost_alias"
 
18922
      if test "vhost_alias" = "so"; then
 
18923
          sharedobjs=yes
 
18924
      fi
 
18925
      shared="";;
 
18926
    esac
 
18927
 
 
18928
 
 
18929
  if test -z ""; then
 
18930
    objects="mod_vhost_alias.lo"
 
18931
  else
 
18932
    objects=""
 
18933
  fi
 
18934
 
 
18935
  if test -z "$module_standalone"; then
 
18936
    if test -z "$shared"; then
 
18937
      # The filename of a convenience library must have a "lib" prefix:
 
18938
      libname="libmod_vhost_alias.la"
 
18939
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
18940
      modpath_static="$modpath_static $libname"
 
18941
      cat >>$modpath_current/modules.mk<<EOF
 
18942
$libname: $objects
 
18943
        \$(MOD_LINK) $objects \$(MOD_VHOST_ALIAS_LDADD)
 
18944
EOF
 
18945
    else
 
18946
      apache_need_shared=yes
 
18947
      libname="mod_vhost_alias.la"
 
18948
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
18949
      modpath_shared="$modpath_shared $libname"
 
18950
      cat >>$modpath_current/modules.mk<<EOF
 
18951
$libname: $shobjects
 
18952
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_VHOST_ALIAS_LDADD)
 
18953
EOF
 
18954
    fi
 
18955
  fi
 
18956
 
 
18957
 
 
18958
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_VHOST_ALIAS_LDADD"
 
18959
 
 
18960
 
 
18961
 
 
18962
  fi
 
18963
 
 
18964
 
 
18965
  echo "$as_me:$LINENO: checking whether to enable mod_negotiation" >&5
 
18966
echo $ECHO_N "checking whether to enable mod_negotiation... $ECHO_C" >&6
 
18967
    # Check whether --enable-negotiation or --disable-negotiation was given.
 
18968
if test "${enable_negotiation+set}" = set; then
 
18969
  enableval="$enable_negotiation"
 
18970
 
 
18971
else
 
18972
  enable_negotiation=yes
 
18973
fi;
 
18974
    _apmod_extra_msg=""
 
18975
      if test "$module_selection" = "most" -a "$enable_negotiation" = "most"; then
 
18976
    _apmod_error_fatal="no"
 
18977
  else
 
18978
    _apmod_error_fatal="yes"
 
18979
  fi
 
18980
  if test "$enable_negotiation" = "static"; then
 
18981
    enable_negotiation=yes
 
18982
  elif test "$enable_negotiation" = "yes"; then
 
18983
    enable_negotiation=$module_default
 
18984
    _apmod_extra_msg=" ($module_selection)"
 
18985
  elif test "$enable_negotiation" = "most"; then
 
18986
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
18987
      enable_negotiation=$module_default
 
18988
      _apmod_extra_msg=" ($module_selection)"
 
18989
    elif test "$enable_negotiation" != "yes"; then
 
18990
      enable_negotiation=no
 
18991
    fi
 
18992
  elif test "$enable_negotiation" = "maybe-all"; then
 
18993
    if test "$module_selection" = "all"; then
 
18994
      enable_negotiation=$module_default
 
18995
      _apmod_extra_msg=" (all)"
 
18996
    else
 
18997
      enable_negotiation=no
 
18998
    fi
 
18999
  fi
 
19000
  if test "$enable_negotiation" != "no"; then
 
19001
            :
 
19002
  fi
 
19003
  echo "$as_me:$LINENO: result: $enable_negotiation$_apmod_extra_msg" >&5
 
19004
echo "${ECHO_T}$enable_negotiation$_apmod_extra_msg" >&6
 
19005
  if test "$enable_negotiation" != "no"; then
 
19006
    case "$enable_negotiation" in
 
19007
    shared*)
 
19008
      enable_negotiation=`echo $enable_negotiation|sed 's/shared,*//'`
 
19009
      sharedobjs=yes
 
19010
      shared=yes
 
19011
      DSO_MODULES="$DSO_MODULES negotiation"
 
19012
      ;;
 
19013
    *)
 
19014
      MODLIST="$MODLIST negotiation"
 
19015
      if test "negotiation" = "so"; then
 
19016
          sharedobjs=yes
 
19017
      fi
 
19018
      shared="";;
 
19019
    esac
 
19020
 
 
19021
 
 
19022
  if test -z ""; then
 
19023
    objects="mod_negotiation.lo"
 
19024
  else
 
19025
    objects=""
 
19026
  fi
 
19027
 
 
19028
  if test -z "$module_standalone"; then
 
19029
    if test -z "$shared"; then
 
19030
      # The filename of a convenience library must have a "lib" prefix:
 
19031
      libname="libmod_negotiation.la"
 
19032
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
19033
      modpath_static="$modpath_static $libname"
 
19034
      cat >>$modpath_current/modules.mk<<EOF
 
19035
$libname: $objects
 
19036
        \$(MOD_LINK) $objects \$(MOD_NEGOTIATION_LDADD)
 
19037
EOF
 
19038
    else
 
19039
      apache_need_shared=yes
 
19040
      libname="mod_negotiation.la"
 
19041
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
19042
      modpath_shared="$modpath_shared $libname"
 
19043
      cat >>$modpath_current/modules.mk<<EOF
 
19044
$libname: $shobjects
 
19045
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_NEGOTIATION_LDADD)
 
19046
EOF
 
19047
    fi
 
19048
  fi
 
19049
 
 
19050
 
 
19051
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_NEGOTIATION_LDADD"
 
19052
 
 
19053
 
 
19054
 
 
19055
  fi
 
19056
 
 
19057
 
 
19058
  echo "$as_me:$LINENO: checking whether to enable mod_dir" >&5
 
19059
echo $ECHO_N "checking whether to enable mod_dir... $ECHO_C" >&6
 
19060
    # Check whether --enable-dir or --disable-dir was given.
 
19061
if test "${enable_dir+set}" = set; then
 
19062
  enableval="$enable_dir"
 
19063
 
 
19064
else
 
19065
  enable_dir=yes
 
19066
fi;
 
19067
    _apmod_extra_msg=""
 
19068
      if test "$module_selection" = "most" -a "$enable_dir" = "most"; then
 
19069
    _apmod_error_fatal="no"
 
19070
  else
 
19071
    _apmod_error_fatal="yes"
 
19072
  fi
 
19073
  if test "$enable_dir" = "static"; then
 
19074
    enable_dir=yes
 
19075
  elif test "$enable_dir" = "yes"; then
 
19076
    enable_dir=$module_default
 
19077
    _apmod_extra_msg=" ($module_selection)"
 
19078
  elif test "$enable_dir" = "most"; then
 
19079
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
19080
      enable_dir=$module_default
 
19081
      _apmod_extra_msg=" ($module_selection)"
 
19082
    elif test "$enable_dir" != "yes"; then
 
19083
      enable_dir=no
 
19084
    fi
 
19085
  elif test "$enable_dir" = "maybe-all"; then
 
19086
    if test "$module_selection" = "all"; then
 
19087
      enable_dir=$module_default
 
19088
      _apmod_extra_msg=" (all)"
 
19089
    else
 
19090
      enable_dir=no
 
19091
    fi
 
19092
  fi
 
19093
  if test "$enable_dir" != "no"; then
 
19094
            :
 
19095
  fi
 
19096
  echo "$as_me:$LINENO: result: $enable_dir$_apmod_extra_msg" >&5
 
19097
echo "${ECHO_T}$enable_dir$_apmod_extra_msg" >&6
 
19098
  if test "$enable_dir" != "no"; then
 
19099
    case "$enable_dir" in
 
19100
    shared*)
 
19101
      enable_dir=`echo $enable_dir|sed 's/shared,*//'`
 
19102
      sharedobjs=yes
 
19103
      shared=yes
 
19104
      DSO_MODULES="$DSO_MODULES dir"
 
19105
      ;;
 
19106
    *)
 
19107
      MODLIST="$MODLIST dir"
 
19108
      if test "dir" = "so"; then
 
19109
          sharedobjs=yes
 
19110
      fi
 
19111
      shared="";;
 
19112
    esac
 
19113
 
 
19114
 
 
19115
  if test -z ""; then
 
19116
    objects="mod_dir.lo"
 
19117
  else
 
19118
    objects=""
 
19119
  fi
 
19120
 
 
19121
  if test -z "$module_standalone"; then
 
19122
    if test -z "$shared"; then
 
19123
      # The filename of a convenience library must have a "lib" prefix:
 
19124
      libname="libmod_dir.la"
 
19125
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
19126
      modpath_static="$modpath_static $libname"
 
19127
      cat >>$modpath_current/modules.mk<<EOF
 
19128
$libname: $objects
 
19129
        \$(MOD_LINK) $objects \$(MOD_DIR_LDADD)
 
19130
EOF
 
19131
    else
 
19132
      apache_need_shared=yes
 
19133
      libname="mod_dir.la"
 
19134
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
19135
      modpath_shared="$modpath_shared $libname"
 
19136
      cat >>$modpath_current/modules.mk<<EOF
 
19137
$libname: $shobjects
 
19138
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_DIR_LDADD)
 
19139
EOF
 
19140
    fi
 
19141
  fi
 
19142
 
 
19143
 
 
19144
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_DIR_LDADD"
 
19145
 
 
19146
 
 
19147
 
 
19148
  fi
 
19149
 
 
19150
 
 
19151
  echo "$as_me:$LINENO: checking whether to enable mod_imagemap" >&5
 
19152
echo $ECHO_N "checking whether to enable mod_imagemap... $ECHO_C" >&6
 
19153
    # Check whether --enable-imagemap or --disable-imagemap was given.
 
19154
if test "${enable_imagemap+set}" = set; then
 
19155
  enableval="$enable_imagemap"
 
19156
 
 
19157
else
 
19158
  enable_imagemap=most
 
19159
fi;
 
19160
    _apmod_extra_msg=""
 
19161
      if test "$module_selection" = "most" -a "$enable_imagemap" = "most"; then
 
19162
    _apmod_error_fatal="no"
 
19163
  else
 
19164
    _apmod_error_fatal="yes"
 
19165
  fi
 
19166
  if test "$enable_imagemap" = "static"; then
 
19167
    enable_imagemap=yes
 
19168
  elif test "$enable_imagemap" = "yes"; then
 
19169
    enable_imagemap=$module_default
 
19170
    _apmod_extra_msg=" ($module_selection)"
 
19171
  elif test "$enable_imagemap" = "most"; then
 
19172
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
19173
      enable_imagemap=$module_default
 
19174
      _apmod_extra_msg=" ($module_selection)"
 
19175
    elif test "$enable_imagemap" != "yes"; then
 
19176
      enable_imagemap=no
 
19177
    fi
 
19178
  elif test "$enable_imagemap" = "maybe-all"; then
 
19179
    if test "$module_selection" = "all"; then
 
19180
      enable_imagemap=$module_default
 
19181
      _apmod_extra_msg=" (all)"
 
19182
    else
 
19183
      enable_imagemap=no
 
19184
    fi
 
19185
  fi
 
19186
  if test "$enable_imagemap" != "no"; then
 
19187
            :
 
19188
  fi
 
19189
  echo "$as_me:$LINENO: result: $enable_imagemap$_apmod_extra_msg" >&5
 
19190
echo "${ECHO_T}$enable_imagemap$_apmod_extra_msg" >&6
 
19191
  if test "$enable_imagemap" != "no"; then
 
19192
    case "$enable_imagemap" in
 
19193
    shared*)
 
19194
      enable_imagemap=`echo $enable_imagemap|sed 's/shared,*//'`
 
19195
      sharedobjs=yes
 
19196
      shared=yes
 
19197
      DSO_MODULES="$DSO_MODULES imagemap"
 
19198
      ;;
 
19199
    *)
 
19200
      MODLIST="$MODLIST imagemap"
 
19201
      if test "imagemap" = "so"; then
 
19202
          sharedobjs=yes
 
19203
      fi
 
19204
      shared="";;
 
19205
    esac
 
19206
 
 
19207
 
 
19208
  if test -z ""; then
 
19209
    objects="mod_imagemap.lo"
 
19210
  else
 
19211
    objects=""
 
19212
  fi
 
19213
 
 
19214
  if test -z "$module_standalone"; then
 
19215
    if test -z "$shared"; then
 
19216
      # The filename of a convenience library must have a "lib" prefix:
 
19217
      libname="libmod_imagemap.la"
 
19218
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
19219
      modpath_static="$modpath_static $libname"
 
19220
      cat >>$modpath_current/modules.mk<<EOF
 
19221
$libname: $objects
 
19222
        \$(MOD_LINK) $objects \$(MOD_IMAGEMAP_LDADD)
 
19223
EOF
 
19224
    else
 
19225
      apache_need_shared=yes
 
19226
      libname="mod_imagemap.la"
 
19227
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
19228
      modpath_shared="$modpath_shared $libname"
 
19229
      cat >>$modpath_current/modules.mk<<EOF
 
19230
$libname: $shobjects
 
19231
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_IMAGEMAP_LDADD)
 
19232
EOF
 
19233
    fi
 
19234
  fi
 
19235
 
 
19236
 
 
19237
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_IMAGEMAP_LDADD"
 
19238
 
 
19239
 
 
19240
 
 
19241
  fi
 
19242
 
 
19243
 
 
19244
  echo "$as_me:$LINENO: checking whether to enable mod_actions" >&5
 
19245
echo $ECHO_N "checking whether to enable mod_actions... $ECHO_C" >&6
 
19246
    # Check whether --enable-actions or --disable-actions was given.
 
19247
if test "${enable_actions+set}" = set; then
 
19248
  enableval="$enable_actions"
 
19249
 
 
19250
else
 
19251
  enable_actions=yes
 
19252
fi;
 
19253
    _apmod_extra_msg=""
 
19254
      if test "$module_selection" = "most" -a "$enable_actions" = "most"; then
 
19255
    _apmod_error_fatal="no"
 
19256
  else
 
19257
    _apmod_error_fatal="yes"
 
19258
  fi
 
19259
  if test "$enable_actions" = "static"; then
 
19260
    enable_actions=yes
 
19261
  elif test "$enable_actions" = "yes"; then
 
19262
    enable_actions=$module_default
 
19263
    _apmod_extra_msg=" ($module_selection)"
 
19264
  elif test "$enable_actions" = "most"; then
 
19265
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
19266
      enable_actions=$module_default
 
19267
      _apmod_extra_msg=" ($module_selection)"
 
19268
    elif test "$enable_actions" != "yes"; then
 
19269
      enable_actions=no
 
19270
    fi
 
19271
  elif test "$enable_actions" = "maybe-all"; then
 
19272
    if test "$module_selection" = "all"; then
 
19273
      enable_actions=$module_default
 
19274
      _apmod_extra_msg=" (all)"
 
19275
    else
 
19276
      enable_actions=no
 
19277
    fi
 
19278
  fi
 
19279
  if test "$enable_actions" != "no"; then
 
19280
            :
 
19281
  fi
 
19282
  echo "$as_me:$LINENO: result: $enable_actions$_apmod_extra_msg" >&5
 
19283
echo "${ECHO_T}$enable_actions$_apmod_extra_msg" >&6
 
19284
  if test "$enable_actions" != "no"; then
 
19285
    case "$enable_actions" in
 
19286
    shared*)
 
19287
      enable_actions=`echo $enable_actions|sed 's/shared,*//'`
 
19288
      sharedobjs=yes
 
19289
      shared=yes
 
19290
      DSO_MODULES="$DSO_MODULES actions"
 
19291
      ;;
 
19292
    *)
 
19293
      MODLIST="$MODLIST actions"
 
19294
      if test "actions" = "so"; then
 
19295
          sharedobjs=yes
 
19296
      fi
 
19297
      shared="";;
 
19298
    esac
 
19299
 
 
19300
 
 
19301
  if test -z ""; then
 
19302
    objects="mod_actions.lo"
 
19303
  else
 
19304
    objects=""
 
19305
  fi
 
19306
 
 
19307
  if test -z "$module_standalone"; then
 
19308
    if test -z "$shared"; then
 
19309
      # The filename of a convenience library must have a "lib" prefix:
 
19310
      libname="libmod_actions.la"
 
19311
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
19312
      modpath_static="$modpath_static $libname"
 
19313
      cat >>$modpath_current/modules.mk<<EOF
 
19314
$libname: $objects
 
19315
        \$(MOD_LINK) $objects \$(MOD_ACTIONS_LDADD)
 
19316
EOF
 
19317
    else
 
19318
      apache_need_shared=yes
 
19319
      libname="mod_actions.la"
 
19320
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
19321
      modpath_shared="$modpath_shared $libname"
 
19322
      cat >>$modpath_current/modules.mk<<EOF
 
19323
$libname: $shobjects
 
19324
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_ACTIONS_LDADD)
 
19325
EOF
 
19326
    fi
 
19327
  fi
 
19328
 
 
19329
 
 
19330
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ACTIONS_LDADD"
 
19331
 
 
19332
 
 
19333
 
 
19334
  fi
 
19335
 
 
19336
 
 
19337
  echo "$as_me:$LINENO: checking whether to enable mod_speling" >&5
 
19338
echo $ECHO_N "checking whether to enable mod_speling... $ECHO_C" >&6
 
19339
    # Check whether --enable-speling or --disable-speling was given.
 
19340
if test "${enable_speling+set}" = set; then
 
19341
  enableval="$enable_speling"
 
19342
 
 
19343
else
 
19344
  enable_speling=most
 
19345
fi;
 
19346
    _apmod_extra_msg=""
 
19347
      if test "$module_selection" = "most" -a "$enable_speling" = "most"; then
 
19348
    _apmod_error_fatal="no"
 
19349
  else
 
19350
    _apmod_error_fatal="yes"
 
19351
  fi
 
19352
  if test "$enable_speling" = "static"; then
 
19353
    enable_speling=yes
 
19354
  elif test "$enable_speling" = "yes"; then
 
19355
    enable_speling=$module_default
 
19356
    _apmod_extra_msg=" ($module_selection)"
 
19357
  elif test "$enable_speling" = "most"; then
 
19358
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
19359
      enable_speling=$module_default
 
19360
      _apmod_extra_msg=" ($module_selection)"
 
19361
    elif test "$enable_speling" != "yes"; then
 
19362
      enable_speling=no
 
19363
    fi
 
19364
  elif test "$enable_speling" = "maybe-all"; then
 
19365
    if test "$module_selection" = "all"; then
 
19366
      enable_speling=$module_default
 
19367
      _apmod_extra_msg=" (all)"
 
19368
    else
 
19369
      enable_speling=no
 
19370
    fi
 
19371
  fi
 
19372
  if test "$enable_speling" != "no"; then
 
19373
            :
 
19374
  fi
 
19375
  echo "$as_me:$LINENO: result: $enable_speling$_apmod_extra_msg" >&5
 
19376
echo "${ECHO_T}$enable_speling$_apmod_extra_msg" >&6
 
19377
  if test "$enable_speling" != "no"; then
 
19378
    case "$enable_speling" in
 
19379
    shared*)
 
19380
      enable_speling=`echo $enable_speling|sed 's/shared,*//'`
 
19381
      sharedobjs=yes
 
19382
      shared=yes
 
19383
      DSO_MODULES="$DSO_MODULES speling"
 
19384
      ;;
 
19385
    *)
 
19386
      MODLIST="$MODLIST speling"
 
19387
      if test "speling" = "so"; then
 
19388
          sharedobjs=yes
 
19389
      fi
 
19390
      shared="";;
 
19391
    esac
 
19392
 
 
19393
 
 
19394
  if test -z ""; then
 
19395
    objects="mod_speling.lo"
 
19396
  else
 
19397
    objects=""
 
19398
  fi
 
19399
 
 
19400
  if test -z "$module_standalone"; then
 
19401
    if test -z "$shared"; then
 
19402
      # The filename of a convenience library must have a "lib" prefix:
 
19403
      libname="libmod_speling.la"
 
19404
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
19405
      modpath_static="$modpath_static $libname"
 
19406
      cat >>$modpath_current/modules.mk<<EOF
 
19407
$libname: $objects
 
19408
        \$(MOD_LINK) $objects \$(MOD_SPELING_LDADD)
 
19409
EOF
 
19410
    else
 
19411
      apache_need_shared=yes
 
19412
      libname="mod_speling.la"
 
19413
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
19414
      modpath_shared="$modpath_shared $libname"
 
19415
      cat >>$modpath_current/modules.mk<<EOF
 
19416
$libname: $shobjects
 
19417
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SPELING_LDADD)
 
19418
EOF
 
19419
    fi
 
19420
  fi
 
19421
 
 
19422
 
 
19423
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SPELING_LDADD"
 
19424
 
 
19425
 
 
19426
 
 
19427
  fi
 
19428
 
 
19429
 
 
19430
  echo "$as_me:$LINENO: checking whether to enable mod_userdir" >&5
 
19431
echo $ECHO_N "checking whether to enable mod_userdir... $ECHO_C" >&6
 
19432
    # Check whether --enable-userdir or --disable-userdir was given.
 
19433
if test "${enable_userdir+set}" = set; then
 
19434
  enableval="$enable_userdir"
 
19435
 
 
19436
else
 
19437
  enable_userdir=yes
 
19438
fi;
 
19439
    _apmod_extra_msg=""
 
19440
      if test "$module_selection" = "most" -a "$enable_userdir" = "most"; then
 
19441
    _apmod_error_fatal="no"
 
19442
  else
 
19443
    _apmod_error_fatal="yes"
 
19444
  fi
 
19445
  if test "$enable_userdir" = "static"; then
 
19446
    enable_userdir=yes
 
19447
  elif test "$enable_userdir" = "yes"; then
 
19448
    enable_userdir=$module_default
 
19449
    _apmod_extra_msg=" ($module_selection)"
 
19450
  elif test "$enable_userdir" = "most"; then
 
19451
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
19452
      enable_userdir=$module_default
 
19453
      _apmod_extra_msg=" ($module_selection)"
 
19454
    elif test "$enable_userdir" != "yes"; then
 
19455
      enable_userdir=no
 
19456
    fi
 
19457
  elif test "$enable_userdir" = "maybe-all"; then
 
19458
    if test "$module_selection" = "all"; then
 
19459
      enable_userdir=$module_default
 
19460
      _apmod_extra_msg=" (all)"
 
19461
    else
 
19462
      enable_userdir=no
 
19463
    fi
 
19464
  fi
 
19465
  if test "$enable_userdir" != "no"; then
 
19466
            :
 
19467
  fi
 
19468
  echo "$as_me:$LINENO: result: $enable_userdir$_apmod_extra_msg" >&5
 
19469
echo "${ECHO_T}$enable_userdir$_apmod_extra_msg" >&6
 
19470
  if test "$enable_userdir" != "no"; then
 
19471
    case "$enable_userdir" in
 
19472
    shared*)
 
19473
      enable_userdir=`echo $enable_userdir|sed 's/shared,*//'`
 
19474
      sharedobjs=yes
 
19475
      shared=yes
 
19476
      DSO_MODULES="$DSO_MODULES userdir"
 
19477
      ;;
 
19478
    *)
 
19479
      MODLIST="$MODLIST userdir"
 
19480
      if test "userdir" = "so"; then
 
19481
          sharedobjs=yes
 
19482
      fi
 
19483
      shared="";;
 
19484
    esac
 
19485
 
 
19486
 
 
19487
  if test -z ""; then
 
19488
    objects="mod_userdir.lo"
 
19489
  else
 
19490
    objects=""
 
19491
  fi
 
19492
 
 
19493
  if test -z "$module_standalone"; then
 
19494
    if test -z "$shared"; then
 
19495
      # The filename of a convenience library must have a "lib" prefix:
 
19496
      libname="libmod_userdir.la"
 
19497
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
19498
      modpath_static="$modpath_static $libname"
 
19499
      cat >>$modpath_current/modules.mk<<EOF
 
19500
$libname: $objects
 
19501
        \$(MOD_LINK) $objects \$(MOD_USERDIR_LDADD)
 
19502
EOF
 
19503
    else
 
19504
      apache_need_shared=yes
 
19505
      libname="mod_userdir.la"
 
19506
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
19507
      modpath_shared="$modpath_shared $libname"
 
19508
      cat >>$modpath_current/modules.mk<<EOF
 
19509
$libname: $shobjects
 
19510
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_USERDIR_LDADD)
 
19511
EOF
 
19512
    fi
 
19513
  fi
 
19514
 
 
19515
 
 
19516
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_USERDIR_LDADD"
 
19517
 
 
19518
 
 
19519
 
 
19520
  fi
 
19521
 
 
19522
 
 
19523
  echo "$as_me:$LINENO: checking whether to enable mod_alias" >&5
 
19524
echo $ECHO_N "checking whether to enable mod_alias... $ECHO_C" >&6
 
19525
    # Check whether --enable-alias or --disable-alias was given.
 
19526
if test "${enable_alias+set}" = set; then
 
19527
  enableval="$enable_alias"
 
19528
 
 
19529
else
 
19530
  enable_alias=yes
 
19531
fi;
 
19532
    _apmod_extra_msg=""
 
19533
      if test "$module_selection" = "most" -a "$enable_alias" = "most"; then
 
19534
    _apmod_error_fatal="no"
 
19535
  else
 
19536
    _apmod_error_fatal="yes"
 
19537
  fi
 
19538
  if test "$enable_alias" = "static"; then
 
19539
    enable_alias=yes
 
19540
  elif test "$enable_alias" = "yes"; then
 
19541
    enable_alias=$module_default
 
19542
    _apmod_extra_msg=" ($module_selection)"
 
19543
  elif test "$enable_alias" = "most"; then
 
19544
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
19545
      enable_alias=$module_default
 
19546
      _apmod_extra_msg=" ($module_selection)"
 
19547
    elif test "$enable_alias" != "yes"; then
 
19548
      enable_alias=no
 
19549
    fi
 
19550
  elif test "$enable_alias" = "maybe-all"; then
 
19551
    if test "$module_selection" = "all"; then
 
19552
      enable_alias=$module_default
 
19553
      _apmod_extra_msg=" (all)"
 
19554
    else
 
19555
      enable_alias=no
 
19556
    fi
 
19557
  fi
 
19558
  if test "$enable_alias" != "no"; then
 
19559
            :
 
19560
  fi
 
19561
  echo "$as_me:$LINENO: result: $enable_alias$_apmod_extra_msg" >&5
 
19562
echo "${ECHO_T}$enable_alias$_apmod_extra_msg" >&6
 
19563
  if test "$enable_alias" != "no"; then
 
19564
    case "$enable_alias" in
 
19565
    shared*)
 
19566
      enable_alias=`echo $enable_alias|sed 's/shared,*//'`
 
19567
      sharedobjs=yes
 
19568
      shared=yes
 
19569
      DSO_MODULES="$DSO_MODULES alias"
 
19570
      ;;
 
19571
    *)
 
19572
      MODLIST="$MODLIST alias"
 
19573
      if test "alias" = "so"; then
 
19574
          sharedobjs=yes
 
19575
      fi
 
19576
      shared="";;
 
19577
    esac
 
19578
 
 
19579
 
 
19580
  if test -z ""; then
 
19581
    objects="mod_alias.lo"
 
19582
  else
 
19583
    objects=""
 
19584
  fi
 
19585
 
 
19586
  if test -z "$module_standalone"; then
 
19587
    if test -z "$shared"; then
 
19588
      # The filename of a convenience library must have a "lib" prefix:
 
19589
      libname="libmod_alias.la"
 
19590
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
19591
      modpath_static="$modpath_static $libname"
 
19592
      cat >>$modpath_current/modules.mk<<EOF
 
19593
$libname: $objects
 
19594
        \$(MOD_LINK) $objects \$(MOD_ALIAS_LDADD)
 
19595
EOF
 
19596
    else
 
19597
      apache_need_shared=yes
 
19598
      libname="mod_alias.la"
 
19599
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
19600
      modpath_shared="$modpath_shared $libname"
 
19601
      cat >>$modpath_current/modules.mk<<EOF
 
19602
$libname: $shobjects
 
19603
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_ALIAS_LDADD)
 
19604
EOF
 
19605
    fi
 
19606
  fi
 
19607
 
 
19608
 
 
19609
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_ALIAS_LDADD"
 
19610
 
 
19611
 
 
19612
 
 
19613
  fi
 
19614
 
 
19615
 
 
19616
 
 
19617
  echo "$as_me:$LINENO: checking whether to enable mod_rewrite" >&5
 
19618
echo $ECHO_N "checking whether to enable mod_rewrite... $ECHO_C" >&6
 
19619
    # Check whether --enable-rewrite or --disable-rewrite was given.
 
19620
if test "${enable_rewrite+set}" = set; then
 
19621
  enableval="$enable_rewrite"
 
19622
 
 
19623
else
 
19624
  enable_rewrite=most
 
19625
fi;
 
19626
    _apmod_extra_msg=""
 
19627
      if test "$module_selection" = "most" -a "$enable_rewrite" = "most"; then
 
19628
    _apmod_error_fatal="no"
 
19629
  else
 
19630
    _apmod_error_fatal="yes"
 
19631
  fi
 
19632
  if test "$enable_rewrite" = "static"; then
 
19633
    enable_rewrite=yes
 
19634
  elif test "$enable_rewrite" = "yes"; then
 
19635
    enable_rewrite=$module_default
 
19636
    _apmod_extra_msg=" ($module_selection)"
 
19637
  elif test "$enable_rewrite" = "most"; then
 
19638
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
19639
      enable_rewrite=$module_default
 
19640
      _apmod_extra_msg=" ($module_selection)"
 
19641
    elif test "$enable_rewrite" != "yes"; then
 
19642
      enable_rewrite=no
 
19643
    fi
 
19644
  elif test "$enable_rewrite" = "maybe-all"; then
 
19645
    if test "$module_selection" = "all"; then
 
19646
      enable_rewrite=$module_default
 
19647
      _apmod_extra_msg=" (all)"
 
19648
    else
 
19649
      enable_rewrite=no
 
19650
    fi
 
19651
  fi
 
19652
  if test "$enable_rewrite" != "no"; then
 
19653
            :
 
19654
  fi
 
19655
  echo "$as_me:$LINENO: result: $enable_rewrite$_apmod_extra_msg" >&5
 
19656
echo "${ECHO_T}$enable_rewrite$_apmod_extra_msg" >&6
 
19657
  if test "$enable_rewrite" != "no"; then
 
19658
    case "$enable_rewrite" in
 
19659
    shared*)
 
19660
      enable_rewrite=`echo $enable_rewrite|sed 's/shared,*//'`
 
19661
      sharedobjs=yes
 
19662
      shared=yes
 
19663
      DSO_MODULES="$DSO_MODULES rewrite"
 
19664
      ;;
 
19665
    *)
 
19666
      MODLIST="$MODLIST rewrite"
 
19667
      if test "rewrite" = "so"; then
 
19668
          sharedobjs=yes
 
19669
      fi
 
19670
      shared="";;
 
19671
    esac
 
19672
 
 
19673
 
 
19674
  if test -z ""; then
 
19675
    objects="mod_rewrite.lo"
 
19676
  else
 
19677
    objects=""
 
19678
  fi
 
19679
 
 
19680
  if test -z "$module_standalone"; then
 
19681
    if test -z "$shared"; then
 
19682
      # The filename of a convenience library must have a "lib" prefix:
 
19683
      libname="libmod_rewrite.la"
 
19684
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
19685
      modpath_static="$modpath_static $libname"
 
19686
      cat >>$modpath_current/modules.mk<<EOF
 
19687
$libname: $objects
 
19688
        \$(MOD_LINK) $objects \$(MOD_REWRITE_LDADD)
 
19689
EOF
 
19690
    else
 
19691
      apache_need_shared=yes
 
19692
      libname="mod_rewrite.la"
 
19693
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
19694
      modpath_shared="$modpath_shared $libname"
 
19695
      cat >>$modpath_current/modules.mk<<EOF
 
19696
$libname: $shobjects
 
19697
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_REWRITE_LDADD)
 
19698
EOF
 
19699
    fi
 
19700
  fi
 
19701
 
 
19702
 
 
19703
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_REWRITE_LDADD"
 
19704
 
 
19705
 
 
19706
 
 
19707
  fi
 
19708
 
 
19709
 
 
19710
 
 
19711
 
 
19712
apr_old_cppflags=$CPPFLAGS
 
19713
CPPFLAGS="$CPPFLAGS $INCLUDES"
 
19714
cat >conftest.$ac_ext <<_ACEOF
 
19715
/* confdefs.h.  */
 
19716
_ACEOF
 
19717
cat confdefs.h >>conftest.$ac_ext
 
19718
cat >>conftest.$ac_ext <<_ACEOF
 
19719
/* end confdefs.h.  */
 
19720
 
 
19721
#include <apr.h>
 
19722
#if APR_HAS_DSO
 
19723
YES_IS_DEFINED
 
19724
#endif
 
19725
 
 
19726
_ACEOF
 
19727
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
19728
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
 
19729
  ac_cv_define_APR_HAS_DSO=yes
 
19730
else
 
19731
  ac_cv_define_APR_HAS_DSO=no
 
19732
fi
 
19733
rm -f conftest*
 
19734
 
 
19735
CPPFLAGS=$apr_old_cppflags
 
19736
 
 
19737
 
 
19738
case "x$enable_so" in
 
19739
    "xyes")
 
19740
        if test $ac_cv_define_APR_HAS_DSO = "no"; then
 
19741
            { { echo "$as_me:$LINENO: error: mod_so has been requested but cannot be built on your system" >&5
 
19742
echo "$as_me: error: mod_so has been requested but cannot be built on your system" >&2;}
 
19743
   { (exit 1); exit 1; }; }
 
19744
        fi
 
19745
        ;;
 
19746
    "xshared")
 
19747
        { { echo "$as_me:$LINENO: error: mod_so can not be built as a shared DSO" >&5
 
19748
echo "$as_me: error: mod_so can not be built as a shared DSO" >&2;}
 
19749
   { (exit 1); exit 1; }; }
 
19750
        ;;
 
19751
    "xno")
 
19752
        ;;
 
19753
    "x")
 
19754
        enable_so=$ac_cv_define_APR_HAS_DSO
 
19755
        ;;
 
19756
esac
 
19757
 
 
19758
if test "x$enable_so" = "xyes"; then
 
19759
    enable_so="static"
 
19760
fi
 
19761
 
 
19762
if test "x$enable_so" = "xstatic"; then
 
19763
 
 
19764
  if test "x$HTTPD_LDFLAGS" = "x"; then
 
19765
    test "x$silent" != "xyes" && echo "  setting HTTPD_LDFLAGS to \"-export-dynamic\""
 
19766
    HTTPD_LDFLAGS="-export-dynamic"
 
19767
  else
 
19768
    apr_addto_bugger="-export-dynamic"
 
19769
    for i in $apr_addto_bugger; do
 
19770
      apr_addto_duplicate="0"
 
19771
      for j in $HTTPD_LDFLAGS; do
 
19772
        if test "x$i" = "x$j"; then
 
19773
          apr_addto_duplicate="1"
 
19774
          break
 
19775
        fi
 
19776
      done
 
19777
      if test $apr_addto_duplicate = "0"; then
 
19778
        test "x$silent" != "xyes" && echo "  adding \"$i\" to HTTPD_LDFLAGS"
 
19779
        HTTPD_LDFLAGS="$HTTPD_LDFLAGS $i"
 
19780
      fi
 
19781
    done
 
19782
  fi
 
19783
 
 
19784
    INSTALL_DSO=yes
 
19785
else
 
19786
    INSTALL_DSO=no
 
19787
fi
 
19788
 
 
19789
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST INSTALL_DSO"
 
19790
 
 
19791
 
 
19792
 
 
19793
if test "$sharedobjs" = "yes"; then
 
19794
    if test $ac_cv_define_APR_HAS_DSO = "no"; then
 
19795
        { { echo "$as_me:$LINENO: error: shared objects have been requested but cannot be built since mod_so cannot be built" >&5
 
19796
echo "$as_me: error: shared objects have been requested but cannot be built since mod_so cannot be built" >&2;}
 
19797
   { (exit 1); exit 1; }; }
 
19798
    elif test $enable_so = "no"; then
 
19799
        { { echo "$as_me:$LINENO: error: shared objects have been requested but cannot be built since mod_so was disabled" >&5
 
19800
echo "$as_me: error: shared objects have been requested but cannot be built since mod_so was disabled" >&2;}
 
19801
   { (exit 1); exit 1; }; }
 
19802
    fi
 
19803
fi
 
19804
 
 
19805
 
 
19806
  echo "$as_me:$LINENO: checking whether to enable mod_so" >&5
 
19807
echo $ECHO_N "checking whether to enable mod_so... $ECHO_C" >&6
 
19808
    # Check whether --enable-so or --disable-so was given.
 
19809
if test "${enable_so+set}" = set; then
 
19810
  enableval="$enable_so"
 
19811
 
 
19812
else
 
19813
  enable_so=$enable_so
 
19814
fi;
 
19815
    _apmod_extra_msg=""
 
19816
      if test "$module_selection" = "most" -a "$enable_so" = "most"; then
 
19817
    _apmod_error_fatal="no"
 
19818
  else
 
19819
    _apmod_error_fatal="yes"
 
19820
  fi
 
19821
  if test "$enable_so" = "static"; then
 
19822
    enable_so=yes
 
19823
  elif test "$enable_so" = "yes"; then
 
19824
    enable_so=$module_default
 
19825
    _apmod_extra_msg=" ($module_selection)"
 
19826
  elif test "$enable_so" = "most"; then
 
19827
    if test "$module_selection" = "most" -o "$module_selection" = "all"; then
 
19828
      enable_so=$module_default
 
19829
      _apmod_extra_msg=" ($module_selection)"
 
19830
    elif test "$enable_so" != "yes"; then
 
19831
      enable_so=no
 
19832
    fi
 
19833
  elif test "$enable_so" = "maybe-all"; then
 
19834
    if test "$module_selection" = "all"; then
 
19835
      enable_so=$module_default
 
19836
      _apmod_extra_msg=" (all)"
 
19837
    else
 
19838
      enable_so=no
 
19839
    fi
 
19840
  fi
 
19841
  if test "$enable_so" != "no"; then
 
19842
            :
 
19843
  fi
 
19844
  echo "$as_me:$LINENO: result: $enable_so$_apmod_extra_msg" >&5
 
19845
echo "${ECHO_T}$enable_so$_apmod_extra_msg" >&6
 
19846
  if test "$enable_so" != "no"; then
 
19847
    case "$enable_so" in
 
19848
    shared*)
 
19849
      enable_so=`echo $enable_so|sed 's/shared,*//'`
 
19850
      sharedobjs=yes
 
19851
      shared=yes
 
19852
      DSO_MODULES="$DSO_MODULES so"
 
19853
      ;;
 
19854
    *)
 
19855
      MODLIST="$MODLIST so"
 
19856
      if test "so" = "so"; then
 
19857
          sharedobjs=yes
 
19858
      fi
 
19859
      shared="";;
 
19860
    esac
 
19861
 
 
19862
 
 
19863
  if test -z ""; then
 
19864
    objects="mod_so.lo"
 
19865
  else
 
19866
    objects=""
 
19867
  fi
 
19868
 
 
19869
  if test -z "$module_standalone"; then
 
19870
    if test -z "$shared"; then
 
19871
      # The filename of a convenience library must have a "lib" prefix:
 
19872
      libname="libmod_so.la"
 
19873
      BUILTIN_LIBS="$BUILTIN_LIBS $modpath_current/$libname"
 
19874
      modpath_static="$modpath_static $libname"
 
19875
      cat >>$modpath_current/modules.mk<<EOF
 
19876
$libname: $objects
 
19877
        \$(MOD_LINK) $objects \$(MOD_SO_LDADD)
 
19878
EOF
 
19879
    else
 
19880
      apache_need_shared=yes
 
19881
      libname="mod_so.la"
 
19882
      shobjects=`echo $objects | sed 's/\.lo/.slo/g'`
 
19883
      modpath_shared="$modpath_shared $libname"
 
19884
      cat >>$modpath_current/modules.mk<<EOF
 
19885
$libname: $shobjects
 
19886
        \$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_SO_LDADD)
 
19887
EOF
 
19888
    fi
 
19889
  fi
 
19890
 
 
19891
 
 
19892
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_SO_LDADD"
 
19893
 
 
19894
 
 
19895
 
 
19896
  fi
 
19897
 
 
19898
 
 
19899
cat >confcache <<\_ACEOF
 
19900
# This file is a shell script that caches the results of configure
 
19901
# tests run on this system so they can be shared between configure
 
19902
# scripts and configure runs, see configure's option --config-cache.
 
19903
# It is not useful on other systems.  If it contains results you don't
 
19904
# want to keep, you may remove or edit it.
 
19905
#
 
19906
# config.status only pays attention to the cache file if you give it
 
19907
# the --recheck option to rerun configure.
 
19908
#
 
19909
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
19910
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
19911
# following values.
 
19912
 
 
19913
_ACEOF
 
19914
 
 
19915
# The following way of writing the cache mishandles newlines in values,
 
19916
# but we know of no workaround that is simple, portable, and efficient.
 
19917
# So, don't put newlines in cache variables' values.
 
19918
# Ultrix sh set writes to stderr and can't be redirected directly,
 
19919
# and sets the high bit in the cache file unless we assign to the vars.
 
19920
{
 
19921
  (set) 2>&1 |
 
19922
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
19923
    *ac_space=\ *)
 
19924
      # `set' does not quote correctly, so add quotes (double-quote
 
19925
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
19926
      sed -n \
 
19927
        "s/'/'\\\\''/g;
 
19928
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
19929
      ;;
 
19930
    *)
 
19931
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
19932
      sed -n \
 
19933
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
19934
      ;;
 
19935
    esac;
 
19936
} |
 
19937
  sed '
 
19938
     t clear
 
19939
     : clear
 
19940
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
19941
     t end
 
19942
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
19943
     : end' >>confcache
 
19944
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
19945
  if test -w $cache_file; then
 
19946
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
19947
    cat confcache >$cache_file
 
19948
  else
 
19949
    echo "not updating unwritable cache $cache_file"
 
19950
  fi
 
19951
fi
 
19952
rm -f confcache
 
19953
 
 
19954
 
 
19955
  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
 
19956
  echo "static = $modpath_static" >> $modpath_current/modules.mk
 
19957
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
 
19958
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
 
19959
    MODULE_DIRS="$MODULE_DIRS $current_dir"
 
19960
  else
 
19961
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
 
19962
  fi
 
19963
 
 
19964
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"
 
19965
 
 
19966
 
 
19967
 
 
19968
 
 
19969
 
 
19970
 
 
19971
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST progname"
 
19972
 
 
19973
 
 
19974
 
 
19975
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MPM_LIB"
 
19976
 
 
19977
 
 
19978
 
 
19979
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST OS"
 
19980
 
 
19981
 
 
19982
 
 
19983
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST OS_DIR"
 
19984
 
 
19985
 
 
19986
 
 
19987
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST BUILTIN_LIBS"
 
19988
 
 
19989
 
 
19990
 
 
19991
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SHLIBPATH_VAR"
 
19992
 
 
19993
 
 
19994
 
 
19995
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST OS_SPECIFIC_VARS"
 
19996
 
 
19997
 
 
19998
 
 
19999
PRE_SHARED_CMDS='echo ""'
 
20000
POST_SHARED_CMDS='echo ""'
 
20001
 
 
20002
 
 
20003
if test "$apache_need_shared" = "yes"; then
 
20004
  if test -f $ac_aux_dir/ltconfig; then
 
20005
    $SHELL $ac_aux_dir/ltconfig --output=shlibtool --disable-static --srcdir=$ac_aux_dir --cache-file=./config.cache $ac_aux_dir/ltmain.sh
 
20006
  fi
 
20007
  shared_build="shared-build"
 
20008
fi
 
20009
 
 
20010
 
 
20011
if test "$enable_so" = "yes"; then
 
20012
  case $host in
 
20013
    *-ibm-aix*)
 
20014
      HTTPD_LDFLAGS="$HTTPD_LDFLAGS -Wl,-uXML_Parse -Wl,-bE:$abs_builddir/server/httpd.exp"
 
20015
      SH_LDFLAGS="$SH_LDFLAGS \$(EXTRA_LDFLAGS) \$(EXTRA_LIBS)"
 
20016
      UTIL_LDFLAGS="$UTIL_LDFLAGS -Wl,-uXML_Parse"
 
20017
      ;;
 
20018
    *beos)
 
20019
      SH_LDFLAGS='$(top_builddir)/_APP_'
 
20020
      PRE_SHARED_CMDS='ln -s $(top_builddir)/httpd $(top_builddir)/_APP_'
 
20021
      POST_SHARED_CMDS='rm $(top_builddir)/_APP_'
 
20022
      ;;
 
20023
    *os390)
 
20024
      HTTPD_LDFLAGS="$HTTPD_LDFLAGS --main=$abs_srcdir/server/main.o --core-dll=$abs_srcdir/apachecore.dll"
 
20025
      SH_LDFLAGS="$SH_LDFLAGS --core-dll=$abs_srcdir/apachecore.dll"
 
20026
  esac
 
20027
fi
 
20028
 
 
20029
 
 
20030
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST PRE_SHARED_CMDS"
 
20031
 
 
20032
 
 
20033
 
 
20034
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST POST_SHARED_CMDS"
 
20035
 
 
20036
 
 
20037
 
 
20038
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST shared_build"
 
20039
 
 
20040
 
 
20041
 
 
20042
 
 
20043
# Check whether --with-program-name or --without-program-name was given.
 
20044
if test "${with_program_name+set}" = set; then
 
20045
  withval="$with_program_name"
 
20046
 
 
20047
  progname="$withval"
 
20048
else
 
20049
 
 
20050
  progname="httpd"
 
20051
fi;
 
20052
 
 
20053
# SuExec parameters
 
20054
 
 
20055
# Check whether --with-suexec-bin or --without-suexec-bin was given.
 
20056
if test "${with_suexec_bin+set}" = set; then
 
20057
  withval="$with_suexec_bin"
 
20058
 
 
20059
 
 
20060
cat >>confdefs.h <<_ACEOF
 
20061
#define SUEXEC_BIN "$withval"
 
20062
_ACEOF
 
20063
 
 
20064
 
 
20065
fi;
 
20066
 
 
20067
 
 
20068
# Check whether --with-suexec-caller or --without-suexec-caller was given.
 
20069
if test "${with_suexec_caller+set}" = set; then
 
20070
  withval="$with_suexec_caller"
 
20071
 
 
20072
 
 
20073
cat >>confdefs.h <<_ACEOF
 
20074
#define AP_HTTPD_USER "$withval"
 
20075
_ACEOF
 
20076
 
 
20077
fi;
 
20078
 
 
20079
 
 
20080
# Check whether --with-suexec-userdir or --without-suexec-userdir was given.
 
20081
if test "${with_suexec_userdir+set}" = set; then
 
20082
  withval="$with_suexec_userdir"
 
20083
 
 
20084
 
 
20085
cat >>confdefs.h <<_ACEOF
 
20086
#define AP_USERDIR_SUFFIX "$withval"
 
20087
_ACEOF
 
20088
 
 
20089
fi;
 
20090
 
 
20091
 
 
20092
# Check whether --with-suexec-docroot or --without-suexec-docroot was given.
 
20093
if test "${with_suexec_docroot+set}" = set; then
 
20094
  withval="$with_suexec_docroot"
 
20095
 
 
20096
 
 
20097
cat >>confdefs.h <<_ACEOF
 
20098
#define AP_DOC_ROOT "$withval"
 
20099
_ACEOF
 
20100
 
 
20101
fi;
 
20102
 
 
20103
 
 
20104
# Check whether --with-suexec-uidmin or --without-suexec-uidmin was given.
 
20105
if test "${with_suexec_uidmin+set}" = set; then
 
20106
  withval="$with_suexec_uidmin"
 
20107
 
 
20108
 
 
20109
cat >>confdefs.h <<_ACEOF
 
20110
#define AP_UID_MIN $withval
 
20111
_ACEOF
 
20112
 
 
20113
fi;
 
20114
 
 
20115
 
 
20116
# Check whether --with-suexec-gidmin or --without-suexec-gidmin was given.
 
20117
if test "${with_suexec_gidmin+set}" = set; then
 
20118
  withval="$with_suexec_gidmin"
 
20119
 
 
20120
 
 
20121
cat >>confdefs.h <<_ACEOF
 
20122
#define AP_GID_MIN $withval
 
20123
_ACEOF
 
20124
 
 
20125
fi;
 
20126
 
 
20127
 
 
20128
# Check whether --with-suexec-logfile or --without-suexec-logfile was given.
 
20129
if test "${with_suexec_logfile+set}" = set; then
 
20130
  withval="$with_suexec_logfile"
 
20131
 
 
20132
 
 
20133
cat >>confdefs.h <<_ACEOF
 
20134
#define AP_LOG_EXEC "$withval"
 
20135
_ACEOF
 
20136
 
 
20137
fi;
 
20138
 
 
20139
 
 
20140
# Check whether --with-suexec-safepath or --without-suexec-safepath was given.
 
20141
if test "${with_suexec_safepath+set}" = set; then
 
20142
  withval="$with_suexec_safepath"
 
20143
 
 
20144
 
 
20145
cat >>confdefs.h <<_ACEOF
 
20146
#define AP_SAFE_PATH "$withval"
 
20147
_ACEOF
 
20148
 
 
20149
fi;
 
20150
 
 
20151
 
 
20152
# Check whether --with-suexec-umask or --without-suexec-umask was given.
 
20153
if test "${with_suexec_umask+set}" = set; then
 
20154
  withval="$with_suexec_umask"
 
20155
 
 
20156
 
 
20157
cat >>confdefs.h <<_ACEOF
 
20158
#define AP_SUEXEC_UMASK 0$withval
 
20159
_ACEOF
 
20160
 
 
20161
fi;
 
20162
 
 
20163
AP_LIBS="$AP_LIBS `$apu_config --link-libtool --libs` `$apr_config --link-libtool --libs`"
 
20164
 
 
20165
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST AP_LIBS"
 
20166
 
 
20167
 
 
20168
 
 
20169
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST AP_BUILD_SRCLIB_DIRS"
 
20170
 
 
20171
 
 
20172
 
 
20173
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST AP_CLEAN_SRCLIB_DIRS"
 
20174
 
 
20175
 
 
20176
 
 
20177
 
 
20178
cat >>confdefs.h <<\_ACEOF
 
20179
#define AP_USING_AUTOCONF 1
 
20180
_ACEOF
 
20181
 
 
20182
 
 
20183
if test "$SINGLE_LISTEN_UNSERIALIZED_ACCEPT" = "1"; then
 
20184
 
 
20185
cat >>confdefs.h <<\_ACEOF
 
20186
#define SINGLE_LISTEN_UNSERIALIZED_ACCEPT 1
 
20187
_ACEOF
 
20188
 
 
20189
fi
 
20190
 
 
20191
if test "$AP_NONBLOCK_WHEN_MULTI_LISTEN" = "1"; then
 
20192
 
 
20193
cat >>confdefs.h <<\_ACEOF
 
20194
#define AP_NONBLOCK_WHEN_MULTI_LISTEN 1
 
20195
_ACEOF
 
20196
 
 
20197
fi
 
20198
 
 
20199
 
 
20200
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES Makefile modules/Makefile srclib/Makefile"
 
20201
 
 
20202
 
 
20203
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES os/Makefile server/Makefile"
 
20204
 
 
20205
 
 
20206
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES support/Makefile srclib/pcre/Makefile"
 
20207
 
 
20208
 
 
20209
if test -d ./test; then
 
20210
 
 
20211
  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES test/Makefile"
 
20212
 
 
20213
fi
 
20214
 
 
20215
echo $ac_n "${nl}Restore user-defined environment settings...${nl}"
 
20216
 
 
20217
 
 
20218
if test "x$apr_ste_save_CPPFLAGS" = "x"; then
 
20219
  EXTRA_CPPFLAGS="$CPPFLAGS"
 
20220
  CPPFLAGS=
 
20221
else
 
20222
  if test "x$apr_ste_save_CPPFLAGS" = "x$CPPFLAGS"; then
 
20223
    EXTRA_CPPFLAGS=
 
20224
  else
 
20225
    EXTRA_CPPFLAGS=`echo $CPPFLAGS | sed -e "s%${apr_ste_save_CPPFLAGS}%%"`
 
20226
    CPPFLAGS="$apr_ste_save_CPPFLAGS"
 
20227
  fi
 
20228
fi
 
20229
if test "x$silent" != "xyes"; then
 
20230
  echo "  restoring CPPFLAGS to \"$CPPFLAGS\""
 
20231
  echo "  setting EXTRA_CPPFLAGS to \"$EXTRA_CPPFLAGS\""
 
20232
fi
 
20233
 
 
20234
 
 
20235
 
 
20236
if test "x$apr_ste_save_CFLAGS" = "x"; then
 
20237
  EXTRA_CFLAGS="$CFLAGS"
 
20238
  CFLAGS=
 
20239
else
 
20240
  if test "x$apr_ste_save_CFLAGS" = "x$CFLAGS"; then
 
20241
    EXTRA_CFLAGS=
 
20242
  else
 
20243
    EXTRA_CFLAGS=`echo $CFLAGS | sed -e "s%${apr_ste_save_CFLAGS}%%"`
 
20244
    CFLAGS="$apr_ste_save_CFLAGS"
 
20245
  fi
 
20246
fi
 
20247
if test "x$silent" != "xyes"; then
 
20248
  echo "  restoring CFLAGS to \"$CFLAGS\""
 
20249
  echo "  setting EXTRA_CFLAGS to \"$EXTRA_CFLAGS\""
 
20250
fi
 
20251
 
 
20252
 
 
20253
 
 
20254
if test "x$apr_ste_save_CXXFLAGS" = "x"; then
 
20255
  EXTRA_CXXFLAGS="$CXXFLAGS"
 
20256
  CXXFLAGS=
 
20257
else
 
20258
  if test "x$apr_ste_save_CXXFLAGS" = "x$CXXFLAGS"; then
 
20259
    EXTRA_CXXFLAGS=
 
20260
  else
 
20261
    EXTRA_CXXFLAGS=`echo $CXXFLAGS | sed -e "s%${apr_ste_save_CXXFLAGS}%%"`
 
20262
    CXXFLAGS="$apr_ste_save_CXXFLAGS"
 
20263
  fi
 
20264
fi
 
20265
if test "x$silent" != "xyes"; then
 
20266
  echo "  restoring CXXFLAGS to \"$CXXFLAGS\""
 
20267
  echo "  setting EXTRA_CXXFLAGS to \"$EXTRA_CXXFLAGS\""
 
20268
fi
 
20269
 
 
20270
 
 
20271
 
 
20272
if test "x$apr_ste_save_LDFLAGS" = "x"; then
 
20273
  EXTRA_LDFLAGS="$LDFLAGS"
 
20274
  LDFLAGS=
 
20275
else
 
20276
  if test "x$apr_ste_save_LDFLAGS" = "x$LDFLAGS"; then
 
20277
    EXTRA_LDFLAGS=
 
20278
  else
 
20279
    EXTRA_LDFLAGS=`echo $LDFLAGS | sed -e "s%${apr_ste_save_LDFLAGS}%%"`
 
20280
    LDFLAGS="$apr_ste_save_LDFLAGS"
 
20281
  fi
 
20282
fi
 
20283
if test "x$silent" != "xyes"; then
 
20284
  echo "  restoring LDFLAGS to \"$LDFLAGS\""
 
20285
  echo "  setting EXTRA_LDFLAGS to \"$EXTRA_LDFLAGS\""
 
20286
fi
 
20287
 
 
20288
 
 
20289
 
 
20290
if test "x$apr_ste_save_LIBS" = "x"; then
 
20291
  EXTRA_LIBS="$LIBS"
 
20292
  LIBS=
 
20293
else
 
20294
  if test "x$apr_ste_save_LIBS" = "x$LIBS"; then
 
20295
    EXTRA_LIBS=
 
20296
  else
 
20297
    EXTRA_LIBS=`echo $LIBS | sed -e "s%${apr_ste_save_LIBS}%%"`
 
20298
    LIBS="$apr_ste_save_LIBS"
 
20299
  fi
 
20300
fi
 
20301
if test "x$silent" != "xyes"; then
 
20302
  echo "  restoring LIBS to \"$LIBS\""
 
20303
  echo "  setting EXTRA_LIBS to \"$EXTRA_LIBS\""
 
20304
fi
 
20305
 
 
20306
 
 
20307
 
 
20308
if test "x$apr_ste_save_INCLUDES" = "x"; then
 
20309
  EXTRA_INCLUDES="$INCLUDES"
 
20310
  INCLUDES=
 
20311
else
 
20312
  if test "x$apr_ste_save_INCLUDES" = "x$INCLUDES"; then
 
20313
    EXTRA_INCLUDES=
 
20314
  else
 
20315
    EXTRA_INCLUDES=`echo $INCLUDES | sed -e "s%${apr_ste_save_INCLUDES}%%"`
 
20316
    INCLUDES="$apr_ste_save_INCLUDES"
 
20317
  fi
 
20318
fi
 
20319
if test "x$silent" != "xyes"; then
 
20320
  echo "  restoring INCLUDES to \"$INCLUDES\""
 
20321
  echo "  setting EXTRA_INCLUDES to \"$EXTRA_INCLUDES\""
 
20322
fi
 
20323
 
 
20324
 
 
20325
 
 
20326
echo $ac_n "${nl}Construct makefiles and header files...${nl}"
 
20327
 
 
20328
 
 
20329
 
 
20330
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST abs_srcdir"
 
20331
 
 
20332
 
 
20333
 
 
20334
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST bindir"
 
20335
 
 
20336
 
 
20337
 
 
20338
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST sbindir"
 
20339
 
 
20340
 
 
20341
 
 
20342
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST cgidir"
 
20343
 
 
20344
 
 
20345
 
 
20346
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST logfiledir"
 
20347
 
 
20348
 
 
20349
 
 
20350
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exec_prefix"
 
20351
 
 
20352
 
 
20353
 
 
20354
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST datadir"
 
20355
 
 
20356
 
 
20357
 
 
20358
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST localstatedir"
 
20359
 
 
20360
 
 
20361
 
 
20362
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST mandir"
 
20363
 
 
20364
 
 
20365
 
 
20366
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST libdir"
 
20367
 
 
20368
 
 
20369
 
 
20370
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST libexecdir"
 
20371
 
 
20372
 
 
20373
 
 
20374
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST htdocsdir"
 
20375
 
 
20376
 
 
20377
 
 
20378
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST manualdir"
 
20379
 
 
20380
 
 
20381
 
 
20382
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST includedir"
 
20383
 
 
20384
 
 
20385
 
 
20386
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST errordir"
 
20387
 
 
20388
 
 
20389
 
 
20390
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST iconsdir"
 
20391
 
 
20392
 
 
20393
 
 
20394
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST sysconfdir"
 
20395
 
 
20396
 
 
20397
 
 
20398
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST installbuilddir"
 
20399
 
 
20400
 
 
20401
 
 
20402
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST runtimedir"
 
20403
 
 
20404
 
 
20405
 
 
20406
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST proxycachedir"
 
20407
 
 
20408
 
 
20409
 
 
20410
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST other_targets"
 
20411
 
 
20412
 
 
20413
 
 
20414
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST progname"
 
20415
 
 
20416
 
 
20417
 
 
20418
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST prefix"
 
20419
 
 
20420
 
 
20421
 
 
20422
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST AWK"
 
20423
 
 
20424
 
 
20425
 
 
20426
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CC"
 
20427
 
 
20428
 
 
20429
 
 
20430
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CPP"
 
20431
 
 
20432
 
 
20433
 
 
20434
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CXX"
 
20435
 
 
20436
 
 
20437
 
 
20438
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CPPFLAGS"
 
20439
 
 
20440
 
 
20441
 
 
20442
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CFLAGS"
 
20443
 
 
20444
 
 
20445
 
 
20446
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CXXFLAGS"
 
20447
 
 
20448
 
 
20449
 
 
20450
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST LTFLAGS"
 
20451
 
 
20452
 
 
20453
 
 
20454
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST LDFLAGS"
 
20455
 
 
20456
 
 
20457
 
 
20458
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST LT_LDFLAGS"
 
20459
 
 
20460
 
 
20461
 
 
20462
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SH_LDFLAGS"
 
20463
 
 
20464
 
 
20465
 
 
20466
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST HTTPD_LDFLAGS"
 
20467
 
 
20468
 
 
20469
 
 
20470
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST UTIL_LDFLAGS"
 
20471
 
 
20472
 
 
20473
 
 
20474
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST LIBS"
 
20475
 
 
20476
 
 
20477
 
 
20478
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST DEFS"
 
20479
 
 
20480
 
 
20481
 
 
20482
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST INCLUDES"
 
20483
 
 
20484
 
 
20485
 
 
20486
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_CPPFLAGS"
 
20487
 
 
20488
 
 
20489
 
 
20490
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_CFLAGS"
 
20491
 
 
20492
 
 
20493
 
 
20494
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_CXXFLAGS"
 
20495
 
 
20496
 
 
20497
 
 
20498
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_LDFLAGS"
 
20499
 
 
20500
 
 
20501
 
 
20502
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_LIBS"
 
20503
 
 
20504
 
 
20505
 
 
20506
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_CPPFLAGS"
 
20507
 
 
20508
 
 
20509
 
 
20510
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_CFLAGS"
 
20511
 
 
20512
 
 
20513
 
 
20514
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_CXXFLAGS"
 
20515
 
 
20516
 
 
20517
 
 
20518
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_LDFLAGS"
 
20519
 
 
20520
 
 
20521
 
 
20522
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_LIBS"
 
20523
 
 
20524
 
 
20525
 
 
20526
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_INCLUDES"
 
20527
 
 
20528
 
 
20529
 
 
20530
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST LIBTOOL"
 
20531
 
 
20532
 
 
20533
 
 
20534
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SHELL"
 
20535
 
 
20536
 
 
20537
 
 
20538
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST RSYNC"
 
20539
 
 
20540
 
 
20541
 
 
20542
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MODULE_DIRS"
 
20543
 
 
20544
 
 
20545
 
 
20546
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MODULE_CLEANDIRS"
 
20547
 
 
20548
 
 
20549
 
 
20550
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST PORT"
 
20551
 
 
20552
 
 
20553
 
 
20554
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST nonssl_listen_stmt_1"
 
20555
 
 
20556
 
 
20557
 
 
20558
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST nonssl_listen_stmt_2"
 
20559
 
 
20560
 
 
20561
 
 
20562
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CORE_IMPLIB_FILE"
 
20563
 
 
20564
 
 
20565
 
 
20566
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CORE_IMPLIB"
 
20567
 
 
20568
 
 
20569
 
 
20570
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SH_LIBS"
 
20571
 
 
20572
 
 
20573
 
 
20574
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SH_LIBTOOL"
 
20575
 
 
20576
 
 
20577
 
 
20578
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MK_IMPLIB"
 
20579
 
 
20580
 
 
20581
 
 
20582
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MKDEP"
 
20583
 
 
20584
 
 
20585
 
 
20586
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST INSTALL_PROG_FLAGS"
 
20587
 
 
20588
 
 
20589
 
 
20590
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST DSO_MODULES"
 
20591
 
 
20592
 
 
20593
 
 
20594
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APR_BINDIR"
 
20595
 
 
20596
 
 
20597
 
 
20598
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APR_INCLUDEDIR"
 
20599
 
 
20600
 
 
20601
 
 
20602
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APR_VERSION"
 
20603
 
 
20604
 
 
20605
 
 
20606
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APR_CONFIG"
 
20607
 
 
20608
 
 
20609
 
 
20610
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APU_BINDIR"
 
20611
 
 
20612
 
 
20613
 
 
20614
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APU_INCLUDEDIR"
 
20615
 
 
20616
 
 
20617
 
 
20618
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APU_VERSION"
 
20619
 
 
20620
 
 
20621
 
 
20622
  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APU_CONFIG"
 
20623
 
 
20624
 
 
20625
 
 
20626
  abs_srcdir="`(cd $srcdir && pwd)`"
 
20627
 
 
20628
  echo creating config_vars.mk
 
20629
  test -d build || $mkdir_p build
 
20630
  > build/config_vars.mk
 
20631
  for i in $APACHE_VAR_SUBST; do
 
20632
    eval echo "$i = \$$i" >> build/config_vars.mk
 
20633
  done
 
20634
 
 
20635
 
 
20636
rm -f modules.c
 
20637
echo $MODLIST | $AWK -f $srcdir/build/build-modules-c.awk > modules.c
 
20638
 
 
20639
 
 
20640
ap_last=
 
20641
ap_cur="$prefix"
 
20642
while test "x${ap_cur}" != "x${ap_last}";
 
20643
do
 
20644
  ap_last="${ap_cur}"
 
20645
  ap_cur=`eval "echo ${ap_cur}"`
 
20646
done
 
20647
ap_prefix="${ap_cur}"
 
20648
 
 
20649
 
 
20650
cat >>confdefs.h <<_ACEOF
 
20651
#define HTTPD_ROOT "${ap_prefix}"
 
20652
_ACEOF
 
20653
 
 
20654
 
 
20655
cat >>confdefs.h <<_ACEOF
 
20656
#define SERVER_CONFIG_FILE "${rel_sysconfdir}/${progname}.conf"
 
20657
_ACEOF
 
20658
 
 
20659
 
 
20660
cat >>confdefs.h <<_ACEOF
 
20661
#define AP_TYPES_CONFIG_FILE "${rel_sysconfdir}/mime.types"
 
20662
_ACEOF
 
20663
 
 
20664
 
 
20665
cat >>confdefs.h <<_ACEOF
 
20666
#define APACHE_MPM_DIR "$MPM_DIR"
 
20667
_ACEOF
 
20668
 
 
20669
 
 
20670
perlbin=`$ac_aux_dir/PrintPath perl`
 
20671
if test "x$perlbin" = "x"; then
 
20672
    perlbin="/replace/with/path/to/perl/interpreter"
 
20673
fi
 
20674
 
 
20675
 
 
20676
 
 
20677
BSD_MAKEFILE=no
 
20678
ap_make_include=include
 
20679
ap_make_delimiter=' '
 
20680
case $host in
 
20681
*bsdi*)
 
20682
    # Check whether they've installed GNU make
 
20683
    if make --version > /dev/null 2>&1; then
 
20684
        true
 
20685
    else
 
20686
        BSD_MAKEFILE=yes
 
20687
        ap_make_include=.include
 
20688
        ap_make_delimiter='"'
 
20689
    fi
 
20690
    ;;
 
20691
esac
 
20692
 
 
20693
 
 
20694
 
 
20695
test -d docs/conf||$mkdir_p docs/conf
 
20696
 
 
20697
HTTPD_VERSION=`$abs_srcdir/build/get-version.sh all $abs_srcdir/include/ap_release.h AP_SERVER`
 
20698
 
 
20699
 
 
20700
                                                                                                                                                                                                                                                          ac_config_files="$ac_config_files $APACHE_OUTPUT_FILES docs/conf/httpd.conf docs/conf/extra/httpd-autoindex.conf docs/conf/extra/httpd-dav.conf docs/conf/extra/httpd-default.conf docs/conf/extra/httpd-info.conf docs/conf/extra/httpd-languages.conf docs/conf/extra/httpd-manual.conf docs/conf/extra/httpd-mpm.conf docs/conf/extra/httpd-multilang-errordoc.conf docs/conf/extra/httpd-ssl.conf docs/conf/extra/httpd-userdir.conf docs/conf/extra/httpd-vhosts.conf include/ap_config_layout.h support/apxs support/apachectl support/dbmmanage support/envvars-std support/log_server_status support/logresolve.pl support/phf_abuse_log.cgi support/split-logfile build/rules.mk build/pkg/pkginfo build/config_vars.sh"
 
20701
          ac_config_commands="$ac_config_commands default"
 
20702
cat >confcache <<\_ACEOF
 
20703
# This file is a shell script that caches the results of configure
 
20704
# tests run on this system so they can be shared between configure
 
20705
# scripts and configure runs, see configure's option --config-cache.
 
20706
# It is not useful on other systems.  If it contains results you don't
 
20707
# want to keep, you may remove or edit it.
 
20708
#
 
20709
# config.status only pays attention to the cache file if you give it
 
20710
# the --recheck option to rerun configure.
 
20711
#
 
20712
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
20713
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
20714
# following values.
 
20715
 
 
20716
_ACEOF
 
20717
 
 
20718
# The following way of writing the cache mishandles newlines in values,
 
20719
# but we know of no workaround that is simple, portable, and efficient.
 
20720
# So, don't put newlines in cache variables' values.
 
20721
# Ultrix sh set writes to stderr and can't be redirected directly,
 
20722
# and sets the high bit in the cache file unless we assign to the vars.
 
20723
{
 
20724
  (set) 2>&1 |
 
20725
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
20726
    *ac_space=\ *)
 
20727
      # `set' does not quote correctly, so add quotes (double-quote
 
20728
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
20729
      sed -n \
 
20730
        "s/'/'\\\\''/g;
 
20731
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
20732
      ;;
 
20733
    *)
 
20734
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
20735
      sed -n \
 
20736
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
20737
      ;;
 
20738
    esac;
 
20739
} |
 
20740
  sed '
 
20741
     t clear
 
20742
     : clear
 
20743
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
20744
     t end
 
20745
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
20746
     : end' >>confcache
 
20747
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
20748
  if test -w $cache_file; then
 
20749
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
20750
    cat confcache >$cache_file
 
20751
  else
 
20752
    echo "not updating unwritable cache $cache_file"
 
20753
  fi
 
20754
fi
 
20755
rm -f confcache
 
20756
 
 
20757
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
20758
# Let make expand exec_prefix.
 
20759
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
20760
 
 
20761
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
20762
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
20763
# trailing colons and then remove the whole line if VPATH becomes empty
 
20764
# (actually we leave an empty line to preserve line numbers).
 
20765
if test "x$srcdir" = x.; then
 
20766
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
20767
s/:*\$(srcdir):*/:/;
 
20768
s/:*\${srcdir}:*/:/;
 
20769
s/:*@srcdir@:*/:/;
 
20770
s/^\([^=]*=[     ]*\):*/\1/;
 
20771
s/:*$//;
 
20772
s/^[^=]*=[       ]*$//;
 
20773
}'
 
20774
fi
 
20775
 
 
20776
DEFS=-DHAVE_CONFIG_H
 
20777
 
 
20778
ac_libobjs=
 
20779
ac_ltlibobjs=
 
20780
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
20781
  # 1. Remove the extension, and $U if already installed.
 
20782
  ac_i=`echo "$ac_i" |
 
20783
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
20784
  # 2. Add them.
 
20785
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
20786
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
20787
done
 
20788
LIBOBJS=$ac_libobjs
 
20789
 
 
20790
LTLIBOBJS=$ac_ltlibobjs
 
20791
 
 
20792
 
 
20793
 
 
20794
: ${CONFIG_STATUS=./config.status}
 
20795
ac_clean_files_save=$ac_clean_files
 
20796
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
20797
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
20798
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
20799
cat >$CONFIG_STATUS <<_ACEOF
 
20800
#! $SHELL
 
20801
# Generated by $as_me.
 
20802
# Run this file to recreate the current configuration.
 
20803
# Compiler output produced by configure, useful for debugging
 
20804
# configure, is in config.log if it exists.
 
20805
 
 
20806
debug=false
 
20807
ac_cs_recheck=false
 
20808
ac_cs_silent=false
 
20809
SHELL=\${CONFIG_SHELL-$SHELL}
 
20810
_ACEOF
 
20811
 
 
20812
cat >>$CONFIG_STATUS <<\_ACEOF
 
20813
## --------------------- ##
 
20814
## M4sh Initialization.  ##
 
20815
## --------------------- ##
 
20816
 
 
20817
# Be Bourne compatible
 
20818
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
20819
  emulate sh
 
20820
  NULLCMD=:
 
20821
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
20822
  # is contrary to our usage.  Disable this feature.
 
20823
  alias -g '${1+"$@"}'='"$@"'
 
20824
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
20825
  set -o posix
 
20826
fi
 
20827
DUALCASE=1; export DUALCASE # for MKS sh
 
20828
 
 
20829
# Support unset when possible.
 
20830
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
20831
  as_unset=unset
 
20832
else
 
20833
  as_unset=false
 
20834
fi
 
20835
 
 
20836
 
 
20837
# Work around bugs in pre-3.0 UWIN ksh.
 
20838
$as_unset ENV MAIL MAILPATH
 
20839
PS1='$ '
 
20840
PS2='> '
 
20841
PS4='+ '
 
20842
 
 
20843
# NLS nuisances.
 
20844
for as_var in \
 
20845
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
20846
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
20847
  LC_TELEPHONE LC_TIME
 
20848
do
 
20849
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
20850
    eval $as_var=C; export $as_var
 
20851
  else
 
20852
    $as_unset $as_var
 
20853
  fi
 
20854
done
 
20855
 
 
20856
# Required to use basename.
 
20857
if expr a : '\(a\)' >/dev/null 2>&1; then
 
20858
  as_expr=expr
 
20859
else
 
20860
  as_expr=false
 
20861
fi
 
20862
 
 
20863
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
20864
  as_basename=basename
 
20865
else
 
20866
  as_basename=false
 
20867
fi
 
20868
 
 
20869
 
 
20870
# Name of the executable.
 
20871
as_me=`$as_basename "$0" ||
 
20872
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
20873
         X"$0" : 'X\(//\)$' \| \
 
20874
         X"$0" : 'X\(/\)$' \| \
 
20875
         .     : '\(.\)' 2>/dev/null ||
 
20876
echo X/"$0" |
 
20877
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
20878
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
20879
          /^X\/\(\/\).*/{ s//\1/; q; }
 
20880
          s/.*/./; q'`
 
20881
 
 
20882
 
 
20883
# PATH needs CR, and LINENO needs CR and PATH.
 
20884
# Avoid depending upon Character Ranges.
 
20885
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
20886
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
20887
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
20888
as_cr_digits='0123456789'
 
20889
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
20890
 
 
20891
# The user is always right.
 
20892
if test "${PATH_SEPARATOR+set}" != set; then
 
20893
  echo "#! /bin/sh" >conf$$.sh
 
20894
  echo  "exit 0"   >>conf$$.sh
 
20895
  chmod +x conf$$.sh
 
20896
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
20897
    PATH_SEPARATOR=';'
 
20898
  else
 
20899
    PATH_SEPARATOR=:
 
20900
  fi
 
20901
  rm -f conf$$.sh
 
20902
fi
 
20903
 
 
20904
 
 
20905
  as_lineno_1=$LINENO
 
20906
  as_lineno_2=$LINENO
 
20907
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
20908
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
20909
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
20910
  # Find who we are.  Look in the path if we contain no path at all
 
20911
  # relative or not.
 
20912
  case $0 in
 
20913
    *[\\/]* ) as_myself=$0 ;;
 
20914
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20915
for as_dir in $PATH
 
20916
do
 
20917
  IFS=$as_save_IFS
 
20918
  test -z "$as_dir" && as_dir=.
 
20919
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
20920
done
 
20921
 
 
20922
       ;;
 
20923
  esac
 
20924
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
20925
  # in which case we are not to be found in the path.
 
20926
  if test "x$as_myself" = x; then
 
20927
    as_myself=$0
 
20928
  fi
 
20929
  if test ! -f "$as_myself"; then
 
20930
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
20931
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
20932
   { (exit 1); exit 1; }; }
 
20933
  fi
 
20934
  case $CONFIG_SHELL in
 
20935
  '')
 
20936
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20937
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
20938
do
 
20939
  IFS=$as_save_IFS
 
20940
  test -z "$as_dir" && as_dir=.
 
20941
  for as_base in sh bash ksh sh5; do
 
20942
         case $as_dir in
 
20943
         /*)
 
20944
           if ("$as_dir/$as_base" -c '
 
20945
  as_lineno_1=$LINENO
 
20946
  as_lineno_2=$LINENO
 
20947
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
20948
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
20949
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
20950
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
20951
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
20952
             CONFIG_SHELL=$as_dir/$as_base
 
20953
             export CONFIG_SHELL
 
20954
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
20955
           fi;;
 
20956
         esac
 
20957
       done
 
20958
done
 
20959
;;
 
20960
  esac
 
20961
 
 
20962
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
20963
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
20964
  # line-number line before each line; the second 'sed' does the real
 
20965
  # work.  The second script uses 'N' to pair each line-number line
 
20966
  # with the numbered line, and appends trailing '-' during
 
20967
  # substitution so that $LINENO is not a special case at line end.
 
20968
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
20969
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
20970
  sed '=' <$as_myself |
 
20971
    sed '
 
20972
      N
 
20973
      s,$,-,
 
20974
      : loop
 
20975
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
20976
      t loop
 
20977
      s,-$,,
 
20978
      s,^['$as_cr_digits']*\n,,
 
20979
    ' >$as_me.lineno &&
 
20980
  chmod +x $as_me.lineno ||
 
20981
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
20982
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
20983
   { (exit 1); exit 1; }; }
 
20984
 
 
20985
  # Don't try to exec as it changes $[0], causing all sort of problems
 
20986
  # (the dirname of $[0] is not the place where we might find the
 
20987
  # original and so on.  Autoconf is especially sensible to this).
 
20988
  . ./$as_me.lineno
 
20989
  # Exit status is that of the last command.
 
20990
  exit
 
20991
}
 
20992
 
 
20993
 
 
20994
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
20995
  *c*,-n*) ECHO_N= ECHO_C='
 
20996
' ECHO_T='      ' ;;
 
20997
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
20998
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
20999
esac
 
21000
 
 
21001
if expr a : '\(a\)' >/dev/null 2>&1; then
 
21002
  as_expr=expr
 
21003
else
 
21004
  as_expr=false
 
21005
fi
 
21006
 
 
21007
rm -f conf$$ conf$$.exe conf$$.file
 
21008
echo >conf$$.file
 
21009
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
21010
  # We could just check for DJGPP; but this test a) works b) is more generic
 
21011
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
21012
  if test -f conf$$.exe; then
 
21013
    # Don't use ln at all; we don't have any links
 
21014
    as_ln_s='cp -p'
 
21015
  else
 
21016
    as_ln_s='ln -s'
 
21017
  fi
 
21018
elif ln conf$$.file conf$$ 2>/dev/null; then
 
21019
  as_ln_s=ln
 
21020
else
 
21021
  as_ln_s='cp -p'
 
21022
fi
 
21023
rm -f conf$$ conf$$.exe conf$$.file
 
21024
 
 
21025
if mkdir -p . 2>/dev/null; then
 
21026
  as_mkdir_p=:
 
21027
else
 
21028
  test -d ./-p && rmdir ./-p
 
21029
  as_mkdir_p=false
 
21030
fi
 
21031
 
 
21032
as_executable_p="test -f"
 
21033
 
 
21034
# Sed expression to map a string onto a valid CPP name.
 
21035
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
21036
 
 
21037
# Sed expression to map a string onto a valid variable name.
 
21038
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
21039
 
 
21040
 
 
21041
# IFS
 
21042
# We need space, tab and new line, in precisely that order.
 
21043
as_nl='
 
21044
'
 
21045
IFS="   $as_nl"
 
21046
 
 
21047
# CDPATH.
 
21048
$as_unset CDPATH
 
21049
 
 
21050
exec 6>&1
 
21051
 
 
21052
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
21053
# report actual input values of CONFIG_FILES etc. instead of their
 
21054
# values after options handling.  Logging --version etc. is OK.
 
21055
exec 5>>config.log
 
21056
{
 
21057
  echo
 
21058
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
21059
## Running $as_me. ##
 
21060
_ASBOX
 
21061
} >&5
 
21062
cat >&5 <<_CSEOF
 
21063
 
 
21064
This file was extended by $as_me, which was
 
21065
generated by GNU Autoconf 2.59.  Invocation command line was
 
21066
 
 
21067
  CONFIG_FILES    = $CONFIG_FILES
 
21068
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
21069
  CONFIG_LINKS    = $CONFIG_LINKS
 
21070
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
21071
  $ $0 $@
 
21072
 
 
21073
_CSEOF
 
21074
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
21075
echo >&5
 
21076
_ACEOF
 
21077
 
 
21078
# Files that config.status was made for.
 
21079
if test -n "$ac_config_files"; then
 
21080
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
21081
fi
 
21082
 
 
21083
if test -n "$ac_config_headers"; then
 
21084
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
21085
fi
 
21086
 
 
21087
if test -n "$ac_config_links"; then
 
21088
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
21089
fi
 
21090
 
 
21091
if test -n "$ac_config_commands"; then
 
21092
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
21093
fi
 
21094
 
 
21095
cat >>$CONFIG_STATUS <<\_ACEOF
 
21096
 
 
21097
ac_cs_usage="\
 
21098
\`$as_me' instantiates files from templates according to the
 
21099
current configuration.
 
21100
 
 
21101
Usage: $0 [OPTIONS] [FILE]...
 
21102
 
 
21103
  -h, --help       print this help, then exit
 
21104
  -V, --version    print version number, then exit
 
21105
  -q, --quiet      do not print progress messages
 
21106
  -d, --debug      don't remove temporary files
 
21107
      --recheck    update $as_me by reconfiguring in the same conditions
 
21108
  --file=FILE[:TEMPLATE]
 
21109
                   instantiate the configuration file FILE
 
21110
  --header=FILE[:TEMPLATE]
 
21111
                   instantiate the configuration header FILE
 
21112
 
 
21113
Configuration files:
 
21114
$config_files
 
21115
 
 
21116
Configuration headers:
 
21117
$config_headers
 
21118
 
 
21119
Configuration commands:
 
21120
$config_commands
 
21121
 
 
21122
Report bugs to <bug-autoconf@gnu.org>."
 
21123
_ACEOF
 
21124
 
 
21125
cat >>$CONFIG_STATUS <<_ACEOF
 
21126
ac_cs_version="\\
 
21127
config.status
 
21128
configured by $0, generated by GNU Autoconf 2.59,
 
21129
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
21130
 
 
21131
Copyright (C) 2003 Free Software Foundation, Inc.
 
21132
This config.status script is free software; the Free Software Foundation
 
21133
gives unlimited permission to copy, distribute and modify it."
 
21134
srcdir=$srcdir
 
21135
_ACEOF
 
21136
 
 
21137
cat >>$CONFIG_STATUS <<\_ACEOF
 
21138
# If no file are specified by the user, then we need to provide default
 
21139
# value.  By we need to know if files were specified by the user.
 
21140
ac_need_defaults=:
 
21141
while test $# != 0
 
21142
do
 
21143
  case $1 in
 
21144
  --*=*)
 
21145
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
21146
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
21147
    ac_shift=:
 
21148
    ;;
 
21149
  -*)
 
21150
    ac_option=$1
 
21151
    ac_optarg=$2
 
21152
    ac_shift=shift
 
21153
    ;;
 
21154
  *) # This is not an option, so the user has probably given explicit
 
21155
     # arguments.
 
21156
     ac_option=$1
 
21157
     ac_need_defaults=false;;
 
21158
  esac
 
21159
 
 
21160
  case $ac_option in
 
21161
  # Handling of the options.
 
21162
_ACEOF
 
21163
cat >>$CONFIG_STATUS <<\_ACEOF
 
21164
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
21165
    ac_cs_recheck=: ;;
 
21166
  --version | --vers* | -V )
 
21167
    echo "$ac_cs_version"; exit 0 ;;
 
21168
  --he | --h)
 
21169
    # Conflict between --help and --header
 
21170
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
21171
Try \`$0 --help' for more information." >&5
 
21172
echo "$as_me: error: ambiguous option: $1
 
21173
Try \`$0 --help' for more information." >&2;}
 
21174
   { (exit 1); exit 1; }; };;
 
21175
  --help | --hel | -h )
 
21176
    echo "$ac_cs_usage"; exit 0 ;;
 
21177
  --debug | --d* | -d )
 
21178
    debug=: ;;
 
21179
  --file | --fil | --fi | --f )
 
21180
    $ac_shift
 
21181
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
21182
    ac_need_defaults=false;;
 
21183
  --header | --heade | --head | --hea )
 
21184
    $ac_shift
 
21185
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
21186
    ac_need_defaults=false;;
 
21187
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
21188
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
21189
    ac_cs_silent=: ;;
 
21190
 
 
21191
  # This is an error.
 
21192
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
21193
Try \`$0 --help' for more information." >&5
 
21194
echo "$as_me: error: unrecognized option: $1
 
21195
Try \`$0 --help' for more information." >&2;}
 
21196
   { (exit 1); exit 1; }; } ;;
 
21197
 
 
21198
  *) ac_config_targets="$ac_config_targets $1" ;;
 
21199
 
 
21200
  esac
 
21201
  shift
 
21202
done
 
21203
 
 
21204
ac_configure_extra_args=
 
21205
 
 
21206
if $ac_cs_silent; then
 
21207
  exec 6>/dev/null
 
21208
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
21209
fi
 
21210
 
 
21211
_ACEOF
 
21212
cat >>$CONFIG_STATUS <<_ACEOF
 
21213
if \$ac_cs_recheck; then
 
21214
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
21215
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
21216
fi
 
21217
 
 
21218
_ACEOF
 
21219
 
 
21220
cat >>$CONFIG_STATUS <<_ACEOF
 
21221
#
 
21222
# INIT-COMMANDS section.
 
21223
#
 
21224
 
 
21225
 
 
21226
 
 
21227
  $SHELL $srcdir/build/fastgen.sh $srcdir $ac_cv_mkdir_p $BSD_MAKEFILE $APACHE_FAST_OUTPUT_FILES
 
21228
 
 
21229
 
 
21230
 
 
21231
_ACEOF
 
21232
 
 
21233
 
 
21234
 
 
21235
cat >>$CONFIG_STATUS <<\_ACEOF
 
21236
for ac_config_target in $ac_config_targets
 
21237
do
 
21238
  case "$ac_config_target" in
 
21239
  # Handling of arguments.
 
21240
  "$APACHE_OUTPUT_FILES" ) CONFIG_FILES="$CONFIG_FILES $APACHE_OUTPUT_FILES" ;;
 
21241
  "docs/conf/httpd.conf" ) CONFIG_FILES="$CONFIG_FILES docs/conf/httpd.conf" ;;
 
21242
  "docs/conf/extra/httpd-autoindex.conf" ) CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-autoindex.conf" ;;
 
21243
  "docs/conf/extra/httpd-dav.conf" ) CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-dav.conf" ;;
 
21244
  "docs/conf/extra/httpd-default.conf" ) CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-default.conf" ;;
 
21245
  "docs/conf/extra/httpd-info.conf" ) CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-info.conf" ;;
 
21246
  "docs/conf/extra/httpd-languages.conf" ) CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-languages.conf" ;;
 
21247
  "docs/conf/extra/httpd-manual.conf" ) CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-manual.conf" ;;
 
21248
  "docs/conf/extra/httpd-mpm.conf" ) CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-mpm.conf" ;;
 
21249
  "docs/conf/extra/httpd-multilang-errordoc.conf" ) CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-multilang-errordoc.conf" ;;
 
21250
  "docs/conf/extra/httpd-ssl.conf" ) CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-ssl.conf" ;;
 
21251
  "docs/conf/extra/httpd-userdir.conf" ) CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-userdir.conf" ;;
 
21252
  "docs/conf/extra/httpd-vhosts.conf" ) CONFIG_FILES="$CONFIG_FILES docs/conf/extra/httpd-vhosts.conf" ;;
 
21253
  "include/ap_config_layout.h" ) CONFIG_FILES="$CONFIG_FILES include/ap_config_layout.h" ;;
 
21254
  "support/apxs" ) CONFIG_FILES="$CONFIG_FILES support/apxs" ;;
 
21255
  "support/apachectl" ) CONFIG_FILES="$CONFIG_FILES support/apachectl" ;;
 
21256
  "support/dbmmanage" ) CONFIG_FILES="$CONFIG_FILES support/dbmmanage" ;;
 
21257
  "support/envvars-std" ) CONFIG_FILES="$CONFIG_FILES support/envvars-std" ;;
 
21258
  "support/log_server_status" ) CONFIG_FILES="$CONFIG_FILES support/log_server_status" ;;
 
21259
  "support/logresolve.pl" ) CONFIG_FILES="$CONFIG_FILES support/logresolve.pl" ;;
 
21260
  "support/phf_abuse_log.cgi" ) CONFIG_FILES="$CONFIG_FILES support/phf_abuse_log.cgi" ;;
 
21261
  "support/split-logfile" ) CONFIG_FILES="$CONFIG_FILES support/split-logfile" ;;
 
21262
  "build/rules.mk" ) CONFIG_FILES="$CONFIG_FILES build/rules.mk" ;;
 
21263
  "build/pkg/pkginfo" ) CONFIG_FILES="$CONFIG_FILES build/pkg/pkginfo" ;;
 
21264
  "build/config_vars.sh" ) CONFIG_FILES="$CONFIG_FILES build/config_vars.sh" ;;
 
21265
  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
 
21266
  "include/ap_config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ap_config_auto.h" ;;
 
21267
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
21268
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
21269
   { (exit 1); exit 1; }; };;
 
21270
  esac
 
21271
done
 
21272
 
 
21273
# If the user did not use the arguments to specify the items to instantiate,
 
21274
# then the envvar interface is used.  Set only those that are not.
 
21275
# We use the long form for the default assignment because of an extremely
 
21276
# bizarre bug on SunOS 4.1.3.
 
21277
if $ac_need_defaults; then
 
21278
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
21279
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
21280
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
21281
fi
 
21282
 
 
21283
# Have a temporary directory for convenience.  Make it in the build tree
 
21284
# simply because there is no reason to put it here, and in addition,
 
21285
# creating and moving files from /tmp can sometimes cause problems.
 
21286
# Create a temporary directory, and hook for its removal unless debugging.
 
21287
$debug ||
 
21288
{
 
21289
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
21290
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
21291
}
 
21292
 
 
21293
# Create a (secure) tmp directory for tmp files.
 
21294
 
 
21295
{
 
21296
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
21297
  test -n "$tmp" && test -d "$tmp"
 
21298
}  ||
 
21299
{
 
21300
  tmp=./confstat$$-$RANDOM
 
21301
  (umask 077 && mkdir $tmp)
 
21302
} ||
 
21303
{
 
21304
   echo "$me: cannot create a temporary directory in ." >&2
 
21305
   { (exit 1); exit 1; }
 
21306
}
 
21307
 
 
21308
_ACEOF
 
21309
 
 
21310
cat >>$CONFIG_STATUS <<_ACEOF
 
21311
 
 
21312
#
 
21313
# CONFIG_FILES section.
 
21314
#
 
21315
 
 
21316
# No need to generate the scripts if there are no CONFIG_FILES.
 
21317
# This happens for instance when ./config.status config.h
 
21318
if test -n "\$CONFIG_FILES"; then
 
21319
  # Protect against being on the right side of a sed subst in config.status.
 
21320
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
21321
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
21322
s,@SHELL@,$SHELL,;t t
 
21323
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
21324
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
21325
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
21326
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
21327
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
21328
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
21329
s,@exec_prefix@,$exec_prefix,;t t
 
21330
s,@prefix@,$prefix,;t t
 
21331
s,@program_transform_name@,$program_transform_name,;t t
 
21332
s,@bindir@,$bindir,;t t
 
21333
s,@sbindir@,$sbindir,;t t
 
21334
s,@libexecdir@,$libexecdir,;t t
 
21335
s,@datadir@,$datadir,;t t
 
21336
s,@sysconfdir@,$sysconfdir,;t t
 
21337
s,@sharedstatedir@,$sharedstatedir,;t t
 
21338
s,@localstatedir@,$localstatedir,;t t
 
21339
s,@libdir@,$libdir,;t t
 
21340
s,@includedir@,$includedir,;t t
 
21341
s,@oldincludedir@,$oldincludedir,;t t
 
21342
s,@infodir@,$infodir,;t t
 
21343
s,@mandir@,$mandir,;t t
 
21344
s,@build_alias@,$build_alias,;t t
 
21345
s,@host_alias@,$host_alias,;t t
 
21346
s,@target_alias@,$target_alias,;t t
 
21347
s,@DEFS@,$DEFS,;t t
 
21348
s,@ECHO_C@,$ECHO_C,;t t
 
21349
s,@ECHO_N@,$ECHO_N,;t t
 
21350
s,@ECHO_T@,$ECHO_T,;t t
 
21351
s,@LIBS@,$LIBS,;t t
 
21352
s,@exp_exec_prefix@,$exp_exec_prefix,;t t
 
21353
s,@rel_exec_prefix@,$rel_exec_prefix,;t t
 
21354
s,@exp_bindir@,$exp_bindir,;t t
 
21355
s,@rel_bindir@,$rel_bindir,;t t
 
21356
s,@exp_sbindir@,$exp_sbindir,;t t
 
21357
s,@rel_sbindir@,$rel_sbindir,;t t
 
21358
s,@exp_libdir@,$exp_libdir,;t t
 
21359
s,@rel_libdir@,$rel_libdir,;t t
 
21360
s,@exp_libexecdir@,$exp_libexecdir,;t t
 
21361
s,@rel_libexecdir@,$rel_libexecdir,;t t
 
21362
s,@exp_mandir@,$exp_mandir,;t t
 
21363
s,@rel_mandir@,$rel_mandir,;t t
 
21364
s,@exp_sysconfdir@,$exp_sysconfdir,;t t
 
21365
s,@rel_sysconfdir@,$rel_sysconfdir,;t t
 
21366
s,@exp_datadir@,$exp_datadir,;t t
 
21367
s,@rel_datadir@,$rel_datadir,;t t
 
21368
s,@exp_installbuilddir@,$exp_installbuilddir,;t t
 
21369
s,@rel_installbuilddir@,$rel_installbuilddir,;t t
 
21370
s,@exp_errordir@,$exp_errordir,;t t
 
21371
s,@rel_errordir@,$rel_errordir,;t t
 
21372
s,@exp_iconsdir@,$exp_iconsdir,;t t
 
21373
s,@rel_iconsdir@,$rel_iconsdir,;t t
 
21374
s,@exp_htdocsdir@,$exp_htdocsdir,;t t
 
21375
s,@rel_htdocsdir@,$rel_htdocsdir,;t t
 
21376
s,@exp_manualdir@,$exp_manualdir,;t t
 
21377
s,@rel_manualdir@,$rel_manualdir,;t t
 
21378
s,@exp_cgidir@,$exp_cgidir,;t t
 
21379
s,@rel_cgidir@,$rel_cgidir,;t t
 
21380
s,@exp_includedir@,$exp_includedir,;t t
 
21381
s,@rel_includedir@,$rel_includedir,;t t
 
21382
s,@exp_localstatedir@,$exp_localstatedir,;t t
 
21383
s,@rel_localstatedir@,$rel_localstatedir,;t t
 
21384
s,@exp_runtimedir@,$exp_runtimedir,;t t
 
21385
s,@rel_runtimedir@,$rel_runtimedir,;t t
 
21386
s,@exp_logfiledir@,$exp_logfiledir,;t t
 
21387
s,@rel_logfiledir@,$rel_logfiledir,;t t
 
21388
s,@exp_proxycachedir@,$exp_proxycachedir,;t t
 
21389
s,@rel_proxycachedir@,$rel_proxycachedir,;t t
 
21390
s,@build@,$build,;t t
 
21391
s,@build_cpu@,$build_cpu,;t t
 
21392
s,@build_vendor@,$build_vendor,;t t
 
21393
s,@build_os@,$build_os,;t t
 
21394
s,@host@,$host,;t t
 
21395
s,@host_cpu@,$host_cpu,;t t
 
21396
s,@host_vendor@,$host_vendor,;t t
 
21397
s,@host_os@,$host_os,;t t
 
21398
s,@target@,$target,;t t
 
21399
s,@target_cpu@,$target_cpu,;t t
 
21400
s,@target_vendor@,$target_vendor,;t t
 
21401
s,@target_os@,$target_os,;t t
 
21402
s,@CC@,$CC,;t t
 
21403
s,@CFLAGS@,$CFLAGS,;t t
 
21404
s,@LDFLAGS@,$LDFLAGS,;t t
 
21405
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
21406
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
21407
s,@EXEEXT@,$EXEEXT,;t t
 
21408
s,@OBJEXT@,$OBJEXT,;t t
 
21409
s,@CPP@,$CPP,;t t
 
21410
s,@PCRE_CONFIG@,$PCRE_CONFIG,;t t
 
21411
s,@SHLTCFLAGS@,$SHLTCFLAGS,;t t
 
21412
s,@LTCFLAGS@,$LTCFLAGS,;t t
 
21413
s,@RM@,$RM,;t t
 
21414
s,@PKGCONFIG@,$PKGCONFIG,;t t
 
21415
s,@RSYNC@,$RSYNC,;t t
 
21416
s,@AWK@,$AWK,;t t
 
21417
s,@LN_S@,$LN_S,;t t
 
21418
s,@RANLIB@,$RANLIB,;t t
 
21419
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
21420
s,@LYNX_PATH@,$LYNX_PATH,;t t
 
21421
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
 
21422
s,@INSTALL@,$INSTALL,;t t
 
21423
s,@EGREP@,$EGREP,;t t
 
21424
s,@MKDEP@,$MKDEP,;t t
 
21425
s,@PICFLAGS@,$PICFLAGS,;t t
 
21426
s,@PILDFLAGS@,$PILDFLAGS,;t t
 
21427
s,@MOD_AUTHN_FILE_LDADD@,$MOD_AUTHN_FILE_LDADD,;t t
 
21428
s,@MOD_AUTHN_DBM_LDADD@,$MOD_AUTHN_DBM_LDADD,;t t
 
21429
s,@MOD_AUTHN_ANON_LDADD@,$MOD_AUTHN_ANON_LDADD,;t t
 
21430
s,@MOD_AUTHN_DBD_LDADD@,$MOD_AUTHN_DBD_LDADD,;t t
 
21431
s,@MOD_AUTHN_DEFAULT_LDADD@,$MOD_AUTHN_DEFAULT_LDADD,;t t
 
21432
s,@MOD_AUTHN_ALIAS_LDADD@,$MOD_AUTHN_ALIAS_LDADD,;t t
 
21433
s,@MOD_AUTHZ_HOST_LDADD@,$MOD_AUTHZ_HOST_LDADD,;t t
 
21434
s,@MOD_AUTHZ_GROUPFILE_LDADD@,$MOD_AUTHZ_GROUPFILE_LDADD,;t t
 
21435
s,@MOD_AUTHZ_USER_LDADD@,$MOD_AUTHZ_USER_LDADD,;t t
 
21436
s,@MOD_AUTHZ_DBM_LDADD@,$MOD_AUTHZ_DBM_LDADD,;t t
 
21437
s,@MOD_AUTHZ_OWNER_LDADD@,$MOD_AUTHZ_OWNER_LDADD,;t t
 
21438
s,@MOD_AUTHNZ_LDAP_LDADD@,$MOD_AUTHNZ_LDAP_LDADD,;t t
 
21439
s,@MOD_AUTHZ_DEFAULT_LDADD@,$MOD_AUTHZ_DEFAULT_LDADD,;t t
 
21440
s,@MOD_AUTH_BASIC_LDADD@,$MOD_AUTH_BASIC_LDADD,;t t
 
21441
s,@MOD_AUTH_DIGEST_LDADD@,$MOD_AUTH_DIGEST_LDADD,;t t
 
21442
s,@MOD_ISAPI_LDADD@,$MOD_ISAPI_LDADD,;t t
 
21443
s,@MOD_FILE_CACHE_LDADD@,$MOD_FILE_CACHE_LDADD,;t t
 
21444
s,@MOD_CACHE_LDADD@,$MOD_CACHE_LDADD,;t t
 
21445
s,@MOD_DISK_CACHE_LDADD@,$MOD_DISK_CACHE_LDADD,;t t
 
21446
s,@MOD_MEM_CACHE_LDADD@,$MOD_MEM_CACHE_LDADD,;t t
 
21447
s,@MOD_DBD_LDADD@,$MOD_DBD_LDADD,;t t
 
21448
s,@MOD_BUCKETEER_LDADD@,$MOD_BUCKETEER_LDADD,;t t
 
21449
s,@MOD_DUMPIO_LDADD@,$MOD_DUMPIO_LDADD,;t t
 
21450
s,@MOD_ECHO_LDADD@,$MOD_ECHO_LDADD,;t t
 
21451
s,@MOD_EXAMPLE_LDADD@,$MOD_EXAMPLE_LDADD,;t t
 
21452
s,@MOD_CASE_FILTER_LDADD@,$MOD_CASE_FILTER_LDADD,;t t
 
21453
s,@MOD_CASE_FILTER_IN_LDADD@,$MOD_CASE_FILTER_IN_LDADD,;t t
 
21454
s,@MOD_EXT_FILTER_LDADD@,$MOD_EXT_FILTER_LDADD,;t t
 
21455
s,@MOD_INCLUDE_LDADD@,$MOD_INCLUDE_LDADD,;t t
 
21456
s,@MOD_FILTER_LDADD@,$MOD_FILTER_LDADD,;t t
 
21457
s,@MOD_CHARSET_LITE_LDADD@,$MOD_CHARSET_LITE_LDADD,;t t
 
21458
s,@MOD_DEFLATE_LDADD@,$MOD_DEFLATE_LDADD,;t t
 
21459
s,@MOD_LDAP_LDADD@,$MOD_LDAP_LDADD,;t t
 
21460
s,@MOD_LOG_CONFIG_LDADD@,$MOD_LOG_CONFIG_LDADD,;t t
 
21461
s,@MOD_LOG_FORENSIC_LDADD@,$MOD_LOG_FORENSIC_LDADD,;t t
 
21462
s,@MOD_LOGIO_LDADD@,$MOD_LOGIO_LDADD,;t t
 
21463
s,@MOD_ENV_LDADD@,$MOD_ENV_LDADD,;t t
 
21464
s,@MOD_MIME_MAGIC_LDADD@,$MOD_MIME_MAGIC_LDADD,;t t
 
21465
s,@MOD_CERN_META_LDADD@,$MOD_CERN_META_LDADD,;t t
 
21466
s,@MOD_EXPIRES_LDADD@,$MOD_EXPIRES_LDADD,;t t
 
21467
s,@MOD_HEADERS_LDADD@,$MOD_HEADERS_LDADD,;t t
 
21468
s,@MOD_IDENT_LDADD@,$MOD_IDENT_LDADD,;t t
 
21469
s,@MOD_USERTRACK_LDADD@,$MOD_USERTRACK_LDADD,;t t
 
21470
s,@MOD_UNIQUE_ID_LDADD@,$MOD_UNIQUE_ID_LDADD,;t t
 
21471
s,@MOD_SETENVIF_LDADD@,$MOD_SETENVIF_LDADD,;t t
 
21472
s,@MOD_VERSION_LDADD@,$MOD_VERSION_LDADD,;t t
 
21473
s,@MOD_PROXY_LDADD@,$MOD_PROXY_LDADD,;t t
 
21474
s,@MOD_PROXY_CONNECT_LDADD@,$MOD_PROXY_CONNECT_LDADD,;t t
 
21475
s,@MOD_PROXY_FTP_LDADD@,$MOD_PROXY_FTP_LDADD,;t t
 
21476
s,@MOD_PROXY_HTTP_LDADD@,$MOD_PROXY_HTTP_LDADD,;t t
 
21477
s,@MOD_PROXY_AJP_LDADD@,$MOD_PROXY_AJP_LDADD,;t t
 
21478
s,@MOD_PROXY_BALANCER_LDADD@,$MOD_PROXY_BALANCER_LDADD,;t t
 
21479
s,@SSL_LIBS@,$SSL_LIBS,;t t
 
21480
s,@MOD_SSL_LDADD@,$MOD_SSL_LDADD,;t t
 
21481
s,@MOD_OPTIONAL_HOOK_EXPORT_LDADD@,$MOD_OPTIONAL_HOOK_EXPORT_LDADD,;t t
 
21482
s,@MOD_OPTIONAL_HOOK_IMPORT_LDADD@,$MOD_OPTIONAL_HOOK_IMPORT_LDADD,;t t
 
21483
s,@MOD_OPTIONAL_FN_IMPORT_LDADD@,$MOD_OPTIONAL_FN_IMPORT_LDADD,;t t
 
21484
s,@MOD_OPTIONAL_FN_EXPORT_LDADD@,$MOD_OPTIONAL_FN_EXPORT_LDADD,;t t
 
21485
s,@MPM_NAME@,$MPM_NAME,;t t
 
21486
s,@MPM_SUBDIR_NAME@,$MPM_SUBDIR_NAME,;t t
 
21487
s,@htpasswd_LTFLAGS@,$htpasswd_LTFLAGS,;t t
 
21488
s,@htdigest_LTFLAGS@,$htdigest_LTFLAGS,;t t
 
21489
s,@rotatelogs_LTFLAGS@,$rotatelogs_LTFLAGS,;t t
 
21490
s,@logresolve_LTFLAGS@,$logresolve_LTFLAGS,;t t
 
21491
s,@htdbm_LTFLAGS@,$htdbm_LTFLAGS,;t t
 
21492
s,@ab_LTFLAGS@,$ab_LTFLAGS,;t t
 
21493
s,@checkgid_LTFLAGS@,$checkgid_LTFLAGS,;t t
 
21494
s,@APACHECTL_ULIMIT@,$APACHECTL_ULIMIT,;t t
 
21495
s,@MOD_HTTP_LDADD@,$MOD_HTTP_LDADD,;t t
 
21496
s,@MOD_MIME_LDADD@,$MOD_MIME_LDADD,;t t
 
21497
s,@MOD_DAV_LDADD@,$MOD_DAV_LDADD,;t t
 
21498
s,@MOD_STATUS_LDADD@,$MOD_STATUS_LDADD,;t t
 
21499
s,@MOD_AUTOINDEX_LDADD@,$MOD_AUTOINDEX_LDADD,;t t
 
21500
s,@MOD_ASIS_LDADD@,$MOD_ASIS_LDADD,;t t
 
21501
s,@MOD_INFO_LDADD@,$MOD_INFO_LDADD,;t t
 
21502
s,@MOD_SUEXEC_LDADD@,$MOD_SUEXEC_LDADD,;t t
 
21503
s,@MOD_CGID_LDADD@,$MOD_CGID_LDADD,;t t
 
21504
s,@MOD_CGI_LDADD@,$MOD_CGI_LDADD,;t t
 
21505
s,@MOD_DAV_FS_LDADD@,$MOD_DAV_FS_LDADD,;t t
 
21506
s,@MOD_DAV_LOCK_LDADD@,$MOD_DAV_LOCK_LDADD,;t t
 
21507
s,@MOD_VHOST_ALIAS_LDADD@,$MOD_VHOST_ALIAS_LDADD,;t t
 
21508
s,@MOD_NEGOTIATION_LDADD@,$MOD_NEGOTIATION_LDADD,;t t
 
21509
s,@MOD_DIR_LDADD@,$MOD_DIR_LDADD,;t t
 
21510
s,@MOD_IMAGEMAP_LDADD@,$MOD_IMAGEMAP_LDADD,;t t
 
21511
s,@MOD_ACTIONS_LDADD@,$MOD_ACTIONS_LDADD,;t t
 
21512
s,@MOD_SPELING_LDADD@,$MOD_SPELING_LDADD,;t t
 
21513
s,@MOD_USERDIR_LDADD@,$MOD_USERDIR_LDADD,;t t
 
21514
s,@MOD_ALIAS_LDADD@,$MOD_ALIAS_LDADD,;t t
 
21515
s,@MOD_REWRITE_LDADD@,$MOD_REWRITE_LDADD,;t t
 
21516
s,@INSTALL_DSO@,$INSTALL_DSO,;t t
 
21517
s,@MOD_SO_LDADD@,$MOD_SO_LDADD,;t t
 
21518
s,@progname@,$progname,;t t
 
21519
s,@MPM_LIB@,$MPM_LIB,;t t
 
21520
s,@OS@,$OS,;t t
 
21521
s,@OS_DIR@,$OS_DIR,;t t
 
21522
s,@BUILTIN_LIBS@,$BUILTIN_LIBS,;t t
 
21523
s,@SHLIBPATH_VAR@,$SHLIBPATH_VAR,;t t
 
21524
s,@OS_SPECIFIC_VARS@,$OS_SPECIFIC_VARS,;t t
 
21525
s,@PRE_SHARED_CMDS@,$PRE_SHARED_CMDS,;t t
 
21526
s,@POST_SHARED_CMDS@,$POST_SHARED_CMDS,;t t
 
21527
s,@shared_build@,$shared_build,;t t
 
21528
s,@AP_LIBS@,$AP_LIBS,;t t
 
21529
s,@AP_BUILD_SRCLIB_DIRS@,$AP_BUILD_SRCLIB_DIRS,;t t
 
21530
s,@AP_CLEAN_SRCLIB_DIRS@,$AP_CLEAN_SRCLIB_DIRS,;t t
 
21531
s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
 
21532
s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
 
21533
s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
 
21534
s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
 
21535
s,@EXTRA_LIBS@,$EXTRA_LIBS,;t t
 
21536
s,@EXTRA_INCLUDES@,$EXTRA_INCLUDES,;t t
 
21537
s,@abs_srcdir@,$abs_srcdir,;t t
 
21538
s,@cgidir@,$cgidir,;t t
 
21539
s,@logfiledir@,$logfiledir,;t t
 
21540
s,@htdocsdir@,$htdocsdir,;t t
 
21541
s,@manualdir@,$manualdir,;t t
 
21542
s,@errordir@,$errordir,;t t
 
21543
s,@iconsdir@,$iconsdir,;t t
 
21544
s,@installbuilddir@,$installbuilddir,;t t
 
21545
s,@runtimedir@,$runtimedir,;t t
 
21546
s,@proxycachedir@,$proxycachedir,;t t
 
21547
s,@other_targets@,$other_targets,;t t
 
21548
s,@CXX@,$CXX,;t t
 
21549
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
21550
s,@LTFLAGS@,$LTFLAGS,;t t
 
21551
s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
 
21552
s,@SH_LDFLAGS@,$SH_LDFLAGS,;t t
 
21553
s,@HTTPD_LDFLAGS@,$HTTPD_LDFLAGS,;t t
 
21554
s,@UTIL_LDFLAGS@,$UTIL_LDFLAGS,;t t
 
21555
s,@INCLUDES@,$INCLUDES,;t t
 
21556
s,@NOTEST_CPPFLAGS@,$NOTEST_CPPFLAGS,;t t
 
21557
s,@NOTEST_CFLAGS@,$NOTEST_CFLAGS,;t t
 
21558
s,@NOTEST_CXXFLAGS@,$NOTEST_CXXFLAGS,;t t
 
21559
s,@NOTEST_LDFLAGS@,$NOTEST_LDFLAGS,;t t
 
21560
s,@NOTEST_LIBS@,$NOTEST_LIBS,;t t
 
21561
s,@LIBTOOL@,$LIBTOOL,;t t
 
21562
s,@MODULE_DIRS@,$MODULE_DIRS,;t t
 
21563
s,@MODULE_CLEANDIRS@,$MODULE_CLEANDIRS,;t t
 
21564
s,@PORT@,$PORT,;t t
 
21565
s,@nonssl_listen_stmt_1@,$nonssl_listen_stmt_1,;t t
 
21566
s,@nonssl_listen_stmt_2@,$nonssl_listen_stmt_2,;t t
 
21567
s,@CORE_IMPLIB_FILE@,$CORE_IMPLIB_FILE,;t t
 
21568
s,@CORE_IMPLIB@,$CORE_IMPLIB,;t t
 
21569
s,@SH_LIBS@,$SH_LIBS,;t t
 
21570
s,@SH_LIBTOOL@,$SH_LIBTOOL,;t t
 
21571
s,@MK_IMPLIB@,$MK_IMPLIB,;t t
 
21572
s,@INSTALL_PROG_FLAGS@,$INSTALL_PROG_FLAGS,;t t
 
21573
s,@DSO_MODULES@,$DSO_MODULES,;t t
 
21574
s,@APR_BINDIR@,$APR_BINDIR,;t t
 
21575
s,@APR_INCLUDEDIR@,$APR_INCLUDEDIR,;t t
 
21576
s,@APR_VERSION@,$APR_VERSION,;t t
 
21577
s,@APR_CONFIG@,$APR_CONFIG,;t t
 
21578
s,@APU_BINDIR@,$APU_BINDIR,;t t
 
21579
s,@APU_INCLUDEDIR@,$APU_INCLUDEDIR,;t t
 
21580
s,@APU_VERSION@,$APU_VERSION,;t t
 
21581
s,@APU_CONFIG@,$APU_CONFIG,;t t
 
21582
s,@perlbin@,$perlbin,;t t
 
21583
s,@ap_make_include@,$ap_make_include,;t t
 
21584
s,@ap_make_delimiter@,$ap_make_delimiter,;t t
 
21585
s,@HTTPD_VERSION@,$HTTPD_VERSION,;t t
 
21586
s,@LIBOBJS@,$LIBOBJS,;t t
 
21587
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
21588
CEOF
 
21589
 
 
21590
_ACEOF
 
21591
 
 
21592
  cat >>$CONFIG_STATUS <<\_ACEOF
 
21593
  # Split the substitutions into bite-sized pieces for seds with
 
21594
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
21595
  ac_max_sed_lines=48
 
21596
  ac_sed_frag=1 # Number of current file.
 
21597
  ac_beg=1 # First line for current file.
 
21598
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
21599
  ac_more_lines=:
 
21600
  ac_sed_cmds=
 
21601
  while $ac_more_lines; do
 
21602
    if test $ac_beg -gt 1; then
 
21603
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
21604
    else
 
21605
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
21606
    fi
 
21607
    if test ! -s $tmp/subs.frag; then
 
21608
      ac_more_lines=false
 
21609
    else
 
21610
      # The purpose of the label and of the branching condition is to
 
21611
      # speed up the sed processing (if there are no `@' at all, there
 
21612
      # is no need to browse any of the substitutions).
 
21613
      # These are the two extra sed commands mentioned above.
 
21614
      (echo ':t
 
21615
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
21616
      if test -z "$ac_sed_cmds"; then
 
21617
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
21618
      else
 
21619
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
21620
      fi
 
21621
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
21622
      ac_beg=$ac_end
 
21623
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
21624
    fi
 
21625
  done
 
21626
  if test -z "$ac_sed_cmds"; then
 
21627
    ac_sed_cmds=cat
 
21628
  fi
 
21629
fi # test -n "$CONFIG_FILES"
 
21630
 
 
21631
_ACEOF
 
21632
cat >>$CONFIG_STATUS <<\_ACEOF
 
21633
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
21634
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
21635
  case $ac_file in
 
21636
  - | *:- | *:-:* ) # input from stdin
 
21637
        cat >$tmp/stdin
 
21638
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
21639
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
21640
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
21641
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
21642
  * )   ac_file_in=$ac_file.in ;;
 
21643
  esac
 
21644
 
 
21645
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
21646
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
21647
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21648
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
21649
         X"$ac_file" : 'X\(//\)$' \| \
 
21650
         X"$ac_file" : 'X\(/\)' \| \
 
21651
         .     : '\(.\)' 2>/dev/null ||
 
21652
echo X"$ac_file" |
 
21653
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21654
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21655
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21656
          /^X\(\/\).*/{ s//\1/; q; }
 
21657
          s/.*/./; q'`
 
21658
  { if $as_mkdir_p; then
 
21659
    mkdir -p "$ac_dir"
 
21660
  else
 
21661
    as_dir="$ac_dir"
 
21662
    as_dirs=
 
21663
    while test ! -d "$as_dir"; do
 
21664
      as_dirs="$as_dir $as_dirs"
 
21665
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
21666
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21667
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
21668
         X"$as_dir" : 'X\(//\)$' \| \
 
21669
         X"$as_dir" : 'X\(/\)' \| \
 
21670
         .     : '\(.\)' 2>/dev/null ||
 
21671
echo X"$as_dir" |
 
21672
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21673
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21674
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21675
          /^X\(\/\).*/{ s//\1/; q; }
 
21676
          s/.*/./; q'`
 
21677
    done
 
21678
    test ! -n "$as_dirs" || mkdir $as_dirs
 
21679
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
21680
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
21681
   { (exit 1); exit 1; }; }; }
 
21682
 
 
21683
  ac_builddir=.
 
21684
 
 
21685
if test "$ac_dir" != .; then
 
21686
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
21687
  # A "../" for each directory in $ac_dir_suffix.
 
21688
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
21689
else
 
21690
  ac_dir_suffix= ac_top_builddir=
 
21691
fi
 
21692
 
 
21693
case $srcdir in
 
21694
  .)  # No --srcdir option.  We are building in place.
 
21695
    ac_srcdir=.
 
21696
    if test -z "$ac_top_builddir"; then
 
21697
       ac_top_srcdir=.
 
21698
    else
 
21699
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
21700
    fi ;;
 
21701
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
21702
    ac_srcdir=$srcdir$ac_dir_suffix;
 
21703
    ac_top_srcdir=$srcdir ;;
 
21704
  *) # Relative path.
 
21705
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
21706
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
21707
esac
 
21708
 
 
21709
# Do not use `cd foo && pwd` to compute absolute paths, because
 
21710
# the directories may not exist.
 
21711
case `pwd` in
 
21712
.) ac_abs_builddir="$ac_dir";;
 
21713
*)
 
21714
  case "$ac_dir" in
 
21715
  .) ac_abs_builddir=`pwd`;;
 
21716
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
21717
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
21718
  esac;;
 
21719
esac
 
21720
case $ac_abs_builddir in
 
21721
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
21722
*)
 
21723
  case ${ac_top_builddir}. in
 
21724
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
21725
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
21726
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
21727
  esac;;
 
21728
esac
 
21729
case $ac_abs_builddir in
 
21730
.) ac_abs_srcdir=$ac_srcdir;;
 
21731
*)
 
21732
  case $ac_srcdir in
 
21733
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
21734
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
21735
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
21736
  esac;;
 
21737
esac
 
21738
case $ac_abs_builddir in
 
21739
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
21740
*)
 
21741
  case $ac_top_srcdir in
 
21742
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
21743
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
21744
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
21745
  esac;;
 
21746
esac
 
21747
 
 
21748
 
 
21749
 
 
21750
  if test x"$ac_file" != x-; then
 
21751
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
21752
echo "$as_me: creating $ac_file" >&6;}
 
21753
    rm -f "$ac_file"
 
21754
  fi
 
21755
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
21756
  # use $as_me), people would be surprised to read:
 
21757
  #    /* config.h.  Generated by config.status.  */
 
21758
  if test x"$ac_file" = x-; then
 
21759
    configure_input=
 
21760
  else
 
21761
    configure_input="$ac_file.  "
 
21762
  fi
 
21763
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
21764
                                     sed 's,.*/,,'` by configure."
 
21765
 
 
21766
  # First look for the input files in the build tree, otherwise in the
 
21767
  # src tree.
 
21768
  ac_file_inputs=`IFS=:
 
21769
    for f in $ac_file_in; do
 
21770
      case $f in
 
21771
      -) echo $tmp/stdin ;;
 
21772
      [\\/$]*)
 
21773
         # Absolute (can't be DOS-style, as IFS=:)
 
21774
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
21775
echo "$as_me: error: cannot find input file: $f" >&2;}
 
21776
   { (exit 1); exit 1; }; }
 
21777
         echo "$f";;
 
21778
      *) # Relative
 
21779
         if test -f "$f"; then
 
21780
           # Build tree
 
21781
           echo "$f"
 
21782
         elif test -f "$srcdir/$f"; then
 
21783
           # Source tree
 
21784
           echo "$srcdir/$f"
 
21785
         else
 
21786
           # /dev/null tree
 
21787
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
21788
echo "$as_me: error: cannot find input file: $f" >&2;}
 
21789
   { (exit 1); exit 1; }; }
 
21790
         fi;;
 
21791
      esac
 
21792
    done` || { (exit 1); exit 1; }
 
21793
_ACEOF
 
21794
cat >>$CONFIG_STATUS <<_ACEOF
 
21795
  sed "$ac_vpsub
 
21796
$extrasub
 
21797
_ACEOF
 
21798
cat >>$CONFIG_STATUS <<\_ACEOF
 
21799
:t
 
21800
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
21801
s,@configure_input@,$configure_input,;t t
 
21802
s,@srcdir@,$ac_srcdir,;t t
 
21803
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
21804
s,@top_srcdir@,$ac_top_srcdir,;t t
 
21805
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
21806
s,@builddir@,$ac_builddir,;t t
 
21807
s,@abs_builddir@,$ac_abs_builddir,;t t
 
21808
s,@top_builddir@,$ac_top_builddir,;t t
 
21809
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
21810
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
21811
  rm -f $tmp/stdin
 
21812
  if test x"$ac_file" != x-; then
 
21813
    mv $tmp/out $ac_file
 
21814
  else
 
21815
    cat $tmp/out
 
21816
    rm -f $tmp/out
 
21817
  fi
 
21818
 
 
21819
done
 
21820
_ACEOF
 
21821
cat >>$CONFIG_STATUS <<\_ACEOF
 
21822
 
 
21823
#
 
21824
# CONFIG_HEADER section.
 
21825
#
 
21826
 
 
21827
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
21828
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
21829
#
 
21830
# ac_d sets the value in "#define NAME VALUE" lines.
 
21831
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
21832
ac_dB='[         ].*$,\1#\2'
 
21833
ac_dC=' '
 
21834
ac_dD=',;t'
 
21835
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
21836
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
21837
ac_uB='$,\1#\2define\3'
 
21838
ac_uC=' '
 
21839
ac_uD=',;t'
 
21840
 
 
21841
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
21842
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
21843
  case $ac_file in
 
21844
  - | *:- | *:-:* ) # input from stdin
 
21845
        cat >$tmp/stdin
 
21846
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
21847
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
21848
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
21849
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
21850
  * )   ac_file_in=$ac_file.in ;;
 
21851
  esac
 
21852
 
 
21853
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
21854
echo "$as_me: creating $ac_file" >&6;}
 
21855
 
 
21856
  # First look for the input files in the build tree, otherwise in the
 
21857
  # src tree.
 
21858
  ac_file_inputs=`IFS=:
 
21859
    for f in $ac_file_in; do
 
21860
      case $f in
 
21861
      -) echo $tmp/stdin ;;
 
21862
      [\\/$]*)
 
21863
         # Absolute (can't be DOS-style, as IFS=:)
 
21864
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
21865
echo "$as_me: error: cannot find input file: $f" >&2;}
 
21866
   { (exit 1); exit 1; }; }
 
21867
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
21868
         echo "$f";;
 
21869
      *) # Relative
 
21870
         if test -f "$f"; then
 
21871
           # Build tree
 
21872
           echo "$f"
 
21873
         elif test -f "$srcdir/$f"; then
 
21874
           # Source tree
 
21875
           echo "$srcdir/$f"
 
21876
         else
 
21877
           # /dev/null tree
 
21878
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
21879
echo "$as_me: error: cannot find input file: $f" >&2;}
 
21880
   { (exit 1); exit 1; }; }
 
21881
         fi;;
 
21882
      esac
 
21883
    done` || { (exit 1); exit 1; }
 
21884
  # Remove the trailing spaces.
 
21885
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
21886
 
 
21887
_ACEOF
 
21888
 
 
21889
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
21890
# `conftest.undefs', that substitutes the proper values into
 
21891
# config.h.in to produce config.h.  The first handles `#define'
 
21892
# templates, and the second `#undef' templates.
 
21893
# And first: Protect against being on the right side of a sed subst in
 
21894
# config.status.  Protect against being in an unquoted here document
 
21895
# in config.status.
 
21896
rm -f conftest.defines conftest.undefs
 
21897
# Using a here document instead of a string reduces the quoting nightmare.
 
21898
# Putting comments in sed scripts is not portable.
 
21899
#
 
21900
# `end' is used to avoid that the second main sed command (meant for
 
21901
# 0-ary CPP macros) applies to n-ary macro definitions.
 
21902
# See the Autoconf documentation for `clear'.
 
21903
cat >confdef2sed.sed <<\_ACEOF
 
21904
s/[\\&,]/\\&/g
 
21905
s,[\\$`],\\&,g
 
21906
t clear
 
21907
: clear
 
21908
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
21909
t end
 
21910
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
21911
: end
 
21912
_ACEOF
 
21913
# If some macros were called several times there might be several times
 
21914
# the same #defines, which is useless.  Nevertheless, we may not want to
 
21915
# sort them, since we want the *last* AC-DEFINE to be honored.
 
21916
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
21917
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
21918
rm -f confdef2sed.sed
 
21919
 
 
21920
# This sed command replaces #undef with comments.  This is necessary, for
 
21921
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
21922
# on some systems where configure will not decide to define it.
 
21923
cat >>conftest.undefs <<\_ACEOF
 
21924
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
21925
_ACEOF
 
21926
 
 
21927
# Break up conftest.defines because some shells have a limit on the size
 
21928
# of here documents, and old seds have small limits too (100 cmds).
 
21929
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
21930
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
21931
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
21932
echo '  :' >>$CONFIG_STATUS
 
21933
rm -f conftest.tail
 
21934
while grep . conftest.defines >/dev/null
 
21935
do
 
21936
  # Write a limited-size here document to $tmp/defines.sed.
 
21937
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
21938
  # Speed up: don't consider the non `#define' lines.
 
21939
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
21940
  # Work around the forget-to-reset-the-flag bug.
 
21941
  echo 't clr' >>$CONFIG_STATUS
 
21942
  echo ': clr' >>$CONFIG_STATUS
 
21943
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
21944
  echo 'CEOF
 
21945
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
21946
  rm -f $tmp/in
 
21947
  mv $tmp/out $tmp/in
 
21948
' >>$CONFIG_STATUS
 
21949
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
21950
  rm -f conftest.defines
 
21951
  mv conftest.tail conftest.defines
 
21952
done
 
21953
rm -f conftest.defines
 
21954
echo '  fi # grep' >>$CONFIG_STATUS
 
21955
echo >>$CONFIG_STATUS
 
21956
 
 
21957
# Break up conftest.undefs because some shells have a limit on the size
 
21958
# of here documents, and old seds have small limits too (100 cmds).
 
21959
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
21960
rm -f conftest.tail
 
21961
while grep . conftest.undefs >/dev/null
 
21962
do
 
21963
  # Write a limited-size here document to $tmp/undefs.sed.
 
21964
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
21965
  # Speed up: don't consider the non `#undef'
 
21966
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
21967
  # Work around the forget-to-reset-the-flag bug.
 
21968
  echo 't clr' >>$CONFIG_STATUS
 
21969
  echo ': clr' >>$CONFIG_STATUS
 
21970
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
21971
  echo 'CEOF
 
21972
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
21973
  rm -f $tmp/in
 
21974
  mv $tmp/out $tmp/in
 
21975
' >>$CONFIG_STATUS
 
21976
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
21977
  rm -f conftest.undefs
 
21978
  mv conftest.tail conftest.undefs
 
21979
done
 
21980
rm -f conftest.undefs
 
21981
 
 
21982
cat >>$CONFIG_STATUS <<\_ACEOF
 
21983
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
21984
  # use $as_me), people would be surprised to read:
 
21985
  #    /* config.h.  Generated by config.status.  */
 
21986
  if test x"$ac_file" = x-; then
 
21987
    echo "/* Generated by configure.  */" >$tmp/config.h
 
21988
  else
 
21989
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
21990
  fi
 
21991
  cat $tmp/in >>$tmp/config.h
 
21992
  rm -f $tmp/in
 
21993
  if test x"$ac_file" != x-; then
 
21994
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
21995
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
21996
echo "$as_me: $ac_file is unchanged" >&6;}
 
21997
    else
 
21998
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
21999
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22000
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
22001
         X"$ac_file" : 'X\(//\)$' \| \
 
22002
         X"$ac_file" : 'X\(/\)' \| \
 
22003
         .     : '\(.\)' 2>/dev/null ||
 
22004
echo X"$ac_file" |
 
22005
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22006
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22007
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22008
          /^X\(\/\).*/{ s//\1/; q; }
 
22009
          s/.*/./; q'`
 
22010
      { if $as_mkdir_p; then
 
22011
    mkdir -p "$ac_dir"
 
22012
  else
 
22013
    as_dir="$ac_dir"
 
22014
    as_dirs=
 
22015
    while test ! -d "$as_dir"; do
 
22016
      as_dirs="$as_dir $as_dirs"
 
22017
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
22018
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22019
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
22020
         X"$as_dir" : 'X\(//\)$' \| \
 
22021
         X"$as_dir" : 'X\(/\)' \| \
 
22022
         .     : '\(.\)' 2>/dev/null ||
 
22023
echo X"$as_dir" |
 
22024
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22025
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22026
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22027
          /^X\(\/\).*/{ s//\1/; q; }
 
22028
          s/.*/./; q'`
 
22029
    done
 
22030
    test ! -n "$as_dirs" || mkdir $as_dirs
 
22031
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
22032
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
22033
   { (exit 1); exit 1; }; }; }
 
22034
 
 
22035
      rm -f $ac_file
 
22036
      mv $tmp/config.h $ac_file
 
22037
    fi
 
22038
  else
 
22039
    cat $tmp/config.h
 
22040
    rm -f $tmp/config.h
 
22041
  fi
 
22042
done
 
22043
_ACEOF
 
22044
cat >>$CONFIG_STATUS <<\_ACEOF
 
22045
 
 
22046
#
 
22047
# CONFIG_COMMANDS section.
 
22048
#
 
22049
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
22050
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
22051
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
22052
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
22053
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22054
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
22055
         X"$ac_dest" : 'X\(//\)$' \| \
 
22056
         X"$ac_dest" : 'X\(/\)' \| \
 
22057
         .     : '\(.\)' 2>/dev/null ||
 
22058
echo X"$ac_dest" |
 
22059
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22060
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22061
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22062
          /^X\(\/\).*/{ s//\1/; q; }
 
22063
          s/.*/./; q'`
 
22064
  { if $as_mkdir_p; then
 
22065
    mkdir -p "$ac_dir"
 
22066
  else
 
22067
    as_dir="$ac_dir"
 
22068
    as_dirs=
 
22069
    while test ! -d "$as_dir"; do
 
22070
      as_dirs="$as_dir $as_dirs"
 
22071
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
22072
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22073
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
22074
         X"$as_dir" : 'X\(//\)$' \| \
 
22075
         X"$as_dir" : 'X\(/\)' \| \
 
22076
         .     : '\(.\)' 2>/dev/null ||
 
22077
echo X"$as_dir" |
 
22078
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22079
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22080
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22081
          /^X\(\/\).*/{ s//\1/; q; }
 
22082
          s/.*/./; q'`
 
22083
    done
 
22084
    test ! -n "$as_dirs" || mkdir $as_dirs
 
22085
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
22086
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
22087
   { (exit 1); exit 1; }; }; }
 
22088
 
 
22089
  ac_builddir=.
 
22090
 
 
22091
if test "$ac_dir" != .; then
 
22092
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
22093
  # A "../" for each directory in $ac_dir_suffix.
 
22094
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
22095
else
 
22096
  ac_dir_suffix= ac_top_builddir=
 
22097
fi
 
22098
 
 
22099
case $srcdir in
 
22100
  .)  # No --srcdir option.  We are building in place.
 
22101
    ac_srcdir=.
 
22102
    if test -z "$ac_top_builddir"; then
 
22103
       ac_top_srcdir=.
 
22104
    else
 
22105
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
22106
    fi ;;
 
22107
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
22108
    ac_srcdir=$srcdir$ac_dir_suffix;
 
22109
    ac_top_srcdir=$srcdir ;;
 
22110
  *) # Relative path.
 
22111
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
22112
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
22113
esac
 
22114
 
 
22115
# Do not use `cd foo && pwd` to compute absolute paths, because
 
22116
# the directories may not exist.
 
22117
case `pwd` in
 
22118
.) ac_abs_builddir="$ac_dir";;
 
22119
*)
 
22120
  case "$ac_dir" in
 
22121
  .) ac_abs_builddir=`pwd`;;
 
22122
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
22123
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
22124
  esac;;
 
22125
esac
 
22126
case $ac_abs_builddir in
 
22127
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
22128
*)
 
22129
  case ${ac_top_builddir}. in
 
22130
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
22131
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
22132
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
22133
  esac;;
 
22134
esac
 
22135
case $ac_abs_builddir in
 
22136
.) ac_abs_srcdir=$ac_srcdir;;
 
22137
*)
 
22138
  case $ac_srcdir in
 
22139
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
22140
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
22141
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
22142
  esac;;
 
22143
esac
 
22144
case $ac_abs_builddir in
 
22145
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
22146
*)
 
22147
  case $ac_top_srcdir in
 
22148
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
22149
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
22150
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
22151
  esac;;
 
22152
esac
 
22153
 
 
22154
 
 
22155
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
22156
echo "$as_me: executing $ac_dest commands" >&6;}
 
22157
  case $ac_dest in
 
22158
    default ) true ;;
 
22159
  esac
 
22160
done
 
22161
_ACEOF
 
22162
 
 
22163
cat >>$CONFIG_STATUS <<\_ACEOF
 
22164
 
 
22165
{ (exit 0); exit 0; }
 
22166
_ACEOF
 
22167
chmod +x $CONFIG_STATUS
 
22168
ac_clean_files=$ac_clean_files_save
 
22169
 
 
22170
 
 
22171
# configure is writing to config.log, and then calls config.status.
 
22172
# config.status does its own redirection, appending to config.log.
 
22173
# Unfortunately, on DOS this fails, as config.log is still kept open
 
22174
# by configure, so config.status won't be able to write to it; its
 
22175
# output is simply discarded.  So we exec the FD to /dev/null,
 
22176
# effectively closing config.log, so it can be properly (re)opened and
 
22177
# appended to by config.status.  When coming back to configure, we
 
22178
# need to make the FD available again.
 
22179
if test "$no_create" != yes; then
 
22180
  ac_cs_success=:
 
22181
  ac_config_status_args=
 
22182
  test "$silent" = yes &&
 
22183
    ac_config_status_args="$ac_config_status_args --quiet"
 
22184
  exec 5>/dev/null
 
22185
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
22186
  exec 5>>config.log
 
22187
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
22188
  # would make configure fail if this is the last instruction.
 
22189
  $ac_cs_success || { (exit 1); exit 1; }
 
22190
fi
 
22191
 
 
22192
 
 
22193
case $MPM_SUBDIR_NAME in
 
22194
*experimental*)
 
22195
    echo ""
 
22196
    echo ""
 
22197
    echo "============================================================"
 
22198
    echo "    WARNING: THE '${APACHE_MPM}' MPM IS EXPERIMENTAL"
 
22199
    echo "============================================================"
 
22200
    echo " The selected MPM might not be fully functional!"
 
22201
    echo ""
 
22202
    echo " Development of this MPM is not complete. Do not use this"
 
22203
    echo " MPM unless you are a programmer willing to help fix it."
 
22204
    echo ""
 
22205
    echo " If you are looking for a stable server, you should not use"
 
22206
    echo " the '${APACHE_MPM}' MPM until it is moved out of experimental."
 
22207
    echo "============================================================"
 
22208
    echo ""
 
22209
    echo ""
 
22210
    ;;
 
22211
esac