source: mod_gnutls/configure @ 3e94bd3

debian/masterdebian/stretch-backportsjessie-backportsupstream upstream/0.2.0
Last change on this file since 3e94bd3 was 3e94bd3, checked in by Daniel Kahn Gillmor <dkg@…>, 7 years ago

Imported Upstream version 0.2.0

  • Property mode set to 100755
File size: 163.5 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for mod_gnutls 0.2.0.
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
13if 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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for 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
43do
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
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68         X"$0" : 'X\(//\)$' \| \
69         X"$0" : 'X\(/\)$' \| \
70         .     : '\(.\)' 2>/dev/null ||
71echo 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.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if 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
97fi
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
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
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
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
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
152done
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
187case `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= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if 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
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_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.
231as_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.
236as_nl='
237'
238IFS="   $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.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${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.
268PACKAGE_NAME='mod_gnutls'
269PACKAGE_TARNAME='mod_gnutls'
270PACKAGE_VERSION='0.2.0'
271PACKAGE_STRING='mod_gnutls 0.2.0'
272PACKAGE_BUGREPORT=''
273
274ac_unique_file="src/mod_gnutls.c"
275ac_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 OOO_MAINTAIN MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MOD_GNUTLS_VERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP APXS_BIN AP_DEFS AP_PREFIX AP_CFLAGS AP_CPPFLAGS AP_INCLUDES AP_INCLUDEDIR AP_LIBEXECDIR AP_VERSION AP_SYSCONFDIR AP_BINDIR AP_SBINDIR APR_INCLUDES APU_INCLUDES APXS_EXTENSION APXS_CFLAGS LIBTOOL GTLS_BIN LIBGNUTLS_LIBS LIBGNUTLS_CFLAGS LIBGNUTLS_VERSION GNUTLS_CERTTOOL LIBGNUTLS_PREFIX APR_MEMCACHE_LIBS APR_MEMCACHE_CFLAGS have_apr_memcache MODULE_CFLAGS MODULE_LIBS LIBOBJS LTLIBOBJS'
276ac_subst_files=''
277
278# Initialize some variables set by options.
279ac_init_help=
280ac_init_version=false
281# The variables have the same names as the options, with
282# dashes changed to underlines.
283cache_file=/dev/null
284exec_prefix=NONE
285no_create=
286no_recursion=
287prefix=NONE
288program_prefix=NONE
289program_suffix=NONE
290program_transform_name=s,x,x,
291silent=
292site=
293srcdir=
294verbose=
295x_includes=NONE
296x_libraries=NONE
297
298# Installation directory options.
299# These are left unexpanded so users can "make install exec_prefix=/foo"
300# and all the variables that are supposed to be based on exec_prefix
301# by default will actually change.
302# Use braces instead of parens because sh, perl, etc. also accept them.
303bindir='${exec_prefix}/bin'
304sbindir='${exec_prefix}/sbin'
305libexecdir='${exec_prefix}/libexec'
306datadir='${prefix}/share'
307sysconfdir='${prefix}/etc'
308sharedstatedir='${prefix}/com'
309localstatedir='${prefix}/var'
310libdir='${exec_prefix}/lib'
311includedir='${prefix}/include'
312oldincludedir='/usr/include'
313infodir='${prefix}/info'
314mandir='${prefix}/man'
315
316ac_prev=
317for ac_option
318do
319  # If the previous option needs an argument, assign it.
320  if test -n "$ac_prev"; then
321    eval "$ac_prev=\$ac_option"
322    ac_prev=
323    continue
324  fi
325
326  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
327
328  # Accept the important Cygnus configure options, so we can diagnose typos.
329
330  case $ac_option in
331
332  -bindir | --bindir | --bindi | --bind | --bin | --bi)
333    ac_prev=bindir ;;
334  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
335    bindir=$ac_optarg ;;
336
337  -build | --build | --buil | --bui | --bu)
338    ac_prev=build_alias ;;
339  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
340    build_alias=$ac_optarg ;;
341
342  -cache-file | --cache-file | --cache-fil | --cache-fi \
343  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344    ac_prev=cache_file ;;
345  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
347    cache_file=$ac_optarg ;;
348
349  --config-cache | -C)
350    cache_file=config.cache ;;
351
352  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353    ac_prev=datadir ;;
354  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355  | --da=*)
356    datadir=$ac_optarg ;;
357
358  -disable-* | --disable-*)
359    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
360    # Reject names that are not valid shell variable names.
361    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363   { (exit 1); exit 1; }; }
364    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365    eval "enable_$ac_feature=no" ;;
366
367  -enable-* | --enable-*)
368    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
369    # Reject names that are not valid shell variable names.
370    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372   { (exit 1); exit 1; }; }
373    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374    case $ac_option in
375      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
376      *) ac_optarg=yes ;;
377    esac
378    eval "enable_$ac_feature='$ac_optarg'" ;;
379
380  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382  | --exec | --exe | --ex)
383    ac_prev=exec_prefix ;;
384  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386  | --exec=* | --exe=* | --ex=*)
387    exec_prefix=$ac_optarg ;;
388
389  -gas | --gas | --ga | --g)
390    # Obsolete; use --with-gas.
391    with_gas=yes ;;
392
393  -help | --help | --hel | --he | -h)
394    ac_init_help=long ;;
395  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396    ac_init_help=recursive ;;
397  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398    ac_init_help=short ;;
399
400  -host | --host | --hos | --ho)
401    ac_prev=host_alias ;;
402  -host=* | --host=* | --hos=* | --ho=*)
403    host_alias=$ac_optarg ;;
404
405  -includedir | --includedir | --includedi | --included | --include \
406  | --includ | --inclu | --incl | --inc)
407    ac_prev=includedir ;;
408  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409  | --includ=* | --inclu=* | --incl=* | --inc=*)
410    includedir=$ac_optarg ;;
411
412  -infodir | --infodir | --infodi | --infod | --info | --inf)
413    ac_prev=infodir ;;
414  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
415    infodir=$ac_optarg ;;
416
417  -libdir | --libdir | --libdi | --libd)
418    ac_prev=libdir ;;
419  -libdir=* | --libdir=* | --libdi=* | --libd=*)
420    libdir=$ac_optarg ;;
421
422  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423  | --libexe | --libex | --libe)
424    ac_prev=libexecdir ;;
425  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426  | --libexe=* | --libex=* | --libe=*)
427    libexecdir=$ac_optarg ;;
428
429  -localstatedir | --localstatedir | --localstatedi | --localstated \
430  | --localstate | --localstat | --localsta | --localst \
431  | --locals | --local | --loca | --loc | --lo)
432    ac_prev=localstatedir ;;
433  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
436    localstatedir=$ac_optarg ;;
437
438  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439    ac_prev=mandir ;;
440  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
441    mandir=$ac_optarg ;;
442
443  -nfp | --nfp | --nf)
444    # Obsolete; use --without-fp.
445    with_fp=no ;;
446
447  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448  | --no-cr | --no-c | -n)
449    no_create=yes ;;
450
451  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453    no_recursion=yes ;;
454
455  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457  | --oldin | --oldi | --old | --ol | --o)
458    ac_prev=oldincludedir ;;
459  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
462    oldincludedir=$ac_optarg ;;
463
464  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465    ac_prev=prefix ;;
466  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
467    prefix=$ac_optarg ;;
468
469  -program-prefix | --program-prefix | --program-prefi | --program-pref \
470  | --program-pre | --program-pr | --program-p)
471    ac_prev=program_prefix ;;
472  -program-prefix=* | --program-prefix=* | --program-prefi=* \
473  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
474    program_prefix=$ac_optarg ;;
475
476  -program-suffix | --program-suffix | --program-suffi | --program-suff \
477  | --program-suf | --program-su | --program-s)
478    ac_prev=program_suffix ;;
479  -program-suffix=* | --program-suffix=* | --program-suffi=* \
480  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
481    program_suffix=$ac_optarg ;;
482
483  -program-transform-name | --program-transform-name \
484  | --program-transform-nam | --program-transform-na \
485  | --program-transform-n | --program-transform- \
486  | --program-transform | --program-transfor \
487  | --program-transfo | --program-transf \
488  | --program-trans | --program-tran \
489  | --progr-tra | --program-tr | --program-t)
490    ac_prev=program_transform_name ;;
491  -program-transform-name=* | --program-transform-name=* \
492  | --program-transform-nam=* | --program-transform-na=* \
493  | --program-transform-n=* | --program-transform-=* \
494  | --program-transform=* | --program-transfor=* \
495  | --program-transfo=* | --program-transf=* \
496  | --program-trans=* | --program-tran=* \
497  | --progr-tra=* | --program-tr=* | --program-t=*)
498    program_transform_name=$ac_optarg ;;
499
500  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501  | -silent | --silent | --silen | --sile | --sil)
502    silent=yes ;;
503
504  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505    ac_prev=sbindir ;;
506  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507  | --sbi=* | --sb=*)
508    sbindir=$ac_optarg ;;
509
510  -sharedstatedir | --sharedstatedir | --sharedstatedi \
511  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512  | --sharedst | --shareds | --shared | --share | --shar \
513  | --sha | --sh)
514    ac_prev=sharedstatedir ;;
515  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518  | --sha=* | --sh=*)
519    sharedstatedir=$ac_optarg ;;
520
521  -site | --site | --sit)
522    ac_prev=site ;;
523  -site=* | --site=* | --sit=*)
524    site=$ac_optarg ;;
525
526  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527    ac_prev=srcdir ;;
528  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
529    srcdir=$ac_optarg ;;
530
531  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532  | --syscon | --sysco | --sysc | --sys | --sy)
533    ac_prev=sysconfdir ;;
534  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
536    sysconfdir=$ac_optarg ;;
537
538  -target | --target | --targe | --targ | --tar | --ta | --t)
539    ac_prev=target_alias ;;
540  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
541    target_alias=$ac_optarg ;;
542
543  -v | -verbose | --verbose | --verbos | --verbo | --verb)
544    verbose=yes ;;
545
546  -version | --version | --versio | --versi | --vers | -V)
547    ac_init_version=: ;;
548
549  -with-* | --with-*)
550    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
551    # Reject names that are not valid shell variable names.
552    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553      { echo "$as_me: error: invalid package name: $ac_package" >&2
554   { (exit 1); exit 1; }; }
555    ac_package=`echo $ac_package| sed 's/-/_/g'`
556    case $ac_option in
557      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
558      *) ac_optarg=yes ;;
559    esac
560    eval "with_$ac_package='$ac_optarg'" ;;
561
562  -without-* | --without-*)
563    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
564    # Reject names that are not valid shell variable names.
565    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566      { echo "$as_me: error: invalid package name: $ac_package" >&2
567   { (exit 1); exit 1; }; }
568    ac_package=`echo $ac_package | sed 's/-/_/g'`
569    eval "with_$ac_package=no" ;;
570
571  --x)
572    # Obsolete; use --with-x.
573    with_x=yes ;;
574
575  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576  | --x-incl | --x-inc | --x-in | --x-i)
577    ac_prev=x_includes ;;
578  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
580    x_includes=$ac_optarg ;;
581
582  -x-libraries | --x-libraries | --x-librarie | --x-librari \
583  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584    ac_prev=x_libraries ;;
585  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
587    x_libraries=$ac_optarg ;;
588
589  -*) { echo "$as_me: error: unrecognized option: $ac_option
590Try \`$0 --help' for more information." >&2
591   { (exit 1); exit 1; }; }
592    ;;
593
594  *=*)
595    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596    # Reject names that are not valid shell variable names.
597    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599   { (exit 1); exit 1; }; }
600    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601    eval "$ac_envvar='$ac_optarg'"
602    export $ac_envvar ;;
603
604  *)
605    # FIXME: should be removed in autoconf 3.0.
606    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
610    ;;
611
612  esac
613done
614
615if test -n "$ac_prev"; then
616  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617  { echo "$as_me: error: missing argument to $ac_option" >&2
618   { (exit 1); exit 1; }; }
619fi
620
621# Be sure to have absolute paths.
622for ac_var in exec_prefix prefix
623do
624  eval ac_val=$`echo $ac_var`
625  case $ac_val in
626    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628   { (exit 1); exit 1; }; };;
629  esac
630done
631
632# Be sure to have absolute paths.
633for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634              localstatedir libdir includedir oldincludedir infodir mandir
635do
636  eval ac_val=$`echo $ac_var`
637  case $ac_val in
638    [\\/$]* | ?:[\\/]* ) ;;
639    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640   { (exit 1); exit 1; }; };;
641  esac
642done
643
644# There might be people who depend on the old broken behavior: `$host'
645# used to hold the argument of --host etc.
646# FIXME: To remove some day.
647build=$build_alias
648host=$host_alias
649target=$target_alias
650
651# FIXME: To remove some day.
652if test "x$host_alias" != x; then
653  if test "x$build_alias" = x; then
654    cross_compiling=maybe
655    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656    If a cross compiler is detected then cross compile mode will be used." >&2
657  elif test "x$build_alias" != "x$host_alias"; then
658    cross_compiling=yes
659  fi
660fi
661
662ac_tool_prefix=
663test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
665test "$silent" = yes && exec 6>/dev/null
666
667
668# Find the source files, if location was not specified.
669if test -z "$srcdir"; then
670  ac_srcdir_defaulted=yes
671  # Try the directory containing this script, then its parent.
672  ac_confdir=`(dirname "$0") 2>/dev/null ||
673$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674         X"$0" : 'X\(//\)[^/]' \| \
675         X"$0" : 'X\(//\)$' \| \
676         X"$0" : 'X\(/\)' \| \
677         .     : '\(.\)' 2>/dev/null ||
678echo X"$0" |
679    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681          /^X\(\/\/\)$/{ s//\1/; q; }
682          /^X\(\/\).*/{ s//\1/; q; }
683          s/.*/./; q'`
684  srcdir=$ac_confdir
685  if test ! -r $srcdir/$ac_unique_file; then
686    srcdir=..
687  fi
688else
689  ac_srcdir_defaulted=no
690fi
691if test ! -r $srcdir/$ac_unique_file; then
692  if test "$ac_srcdir_defaulted" = yes; then
693    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694   { (exit 1); exit 1; }; }
695  else
696    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697   { (exit 1); exit 1; }; }
698  fi
699fi
700(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702   { (exit 1); exit 1; }; }
703srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704ac_env_build_alias_set=${build_alias+set}
705ac_env_build_alias_value=$build_alias
706ac_cv_env_build_alias_set=${build_alias+set}
707ac_cv_env_build_alias_value=$build_alias
708ac_env_host_alias_set=${host_alias+set}
709ac_env_host_alias_value=$host_alias
710ac_cv_env_host_alias_set=${host_alias+set}
711ac_cv_env_host_alias_value=$host_alias
712ac_env_target_alias_set=${target_alias+set}
713ac_env_target_alias_value=$target_alias
714ac_cv_env_target_alias_set=${target_alias+set}
715ac_cv_env_target_alias_value=$target_alias
716ac_env_CC_set=${CC+set}
717ac_env_CC_value=$CC
718ac_cv_env_CC_set=${CC+set}
719ac_cv_env_CC_value=$CC
720ac_env_CFLAGS_set=${CFLAGS+set}
721ac_env_CFLAGS_value=$CFLAGS
722ac_cv_env_CFLAGS_set=${CFLAGS+set}
723ac_cv_env_CFLAGS_value=$CFLAGS
724ac_env_LDFLAGS_set=${LDFLAGS+set}
725ac_env_LDFLAGS_value=$LDFLAGS
726ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727ac_cv_env_LDFLAGS_value=$LDFLAGS
728ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729ac_env_CPPFLAGS_value=$CPPFLAGS
730ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731ac_cv_env_CPPFLAGS_value=$CPPFLAGS
732
733#
734# Report the --help message.
735#
736if test "$ac_init_help" = "long"; then
737  # Omit some internal or obsolete options to make the list less imposing.
738  # This message is too long to be a string in the A/UX 3.1 sh.
739  cat <<_ACEOF
740\`configure' configures mod_gnutls 0.2.0 to adapt to many kinds of systems.
741
742Usage: $0 [OPTION]... [VAR=VALUE]...
743
744To assign environment variables (e.g., CC, CFLAGS...), specify them as
745VAR=VALUE.  See below for descriptions of some of the useful variables.
746
747Defaults for the options are specified in brackets.
748
749Configuration:
750  -h, --help              display this help and exit
751      --help=short        display options specific to this package
752      --help=recursive    display the short help of all the included packages
753  -V, --version           display version information and exit
754  -q, --quiet, --silent   do not print \`checking...' messages
755      --cache-file=FILE   cache test results in FILE [disabled]
756  -C, --config-cache      alias for \`--cache-file=config.cache'
757  -n, --no-create         do not create output files
758      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
759
760_ACEOF
761
762  cat <<_ACEOF
763Installation directories:
764  --prefix=PREFIX         install architecture-independent files in PREFIX
765                          [$ac_default_prefix]
766  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
767                          [PREFIX]
768
769By default, \`make install' will install all the files in
770\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
771an installation prefix other than \`$ac_default_prefix' using \`--prefix',
772for instance \`--prefix=\$HOME'.
773
774For better control, use the options below.
775
776Fine tuning of the installation directories:
777  --bindir=DIR           user executables [EPREFIX/bin]
778  --sbindir=DIR          system admin executables [EPREFIX/sbin]
779  --libexecdir=DIR       program executables [EPREFIX/libexec]
780  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
781  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
782  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
783  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
784  --libdir=DIR           object code libraries [EPREFIX/lib]
785  --includedir=DIR       C header files [PREFIX/include]
786  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
787  --infodir=DIR          info documentation [PREFIX/info]
788  --mandir=DIR           man documentation [PREFIX/man]
789_ACEOF
790
791  cat <<\_ACEOF
792
793Program names:
794  --program-prefix=PREFIX            prepend PREFIX to installed program names
795  --program-suffix=SUFFIX            append SUFFIX to installed program names
796  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
797
798System types:
799  --build=BUILD     configure for building on BUILD [guessed]
800  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
801  --target=TARGET   configure for building compilers for TARGET [HOST]
802_ACEOF
803fi
804
805if test -n "$ac_init_help"; then
806  case $ac_init_help in
807     short | recursive ) echo "Configuration of mod_gnutls 0.2.0:";;
808   esac
809  cat <<\_ACEOF
810
811Optional Features:
812  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
813  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
814  --enable-maintainer     Enable maintainer mode for this project
815  --enable-maintainer-mode  enable make rules and dependencies not useful
816                          (and sometimes confusing) to the casual installer
817  --disable-dependency-tracking  speeds up one-time build
818  --enable-dependency-tracking   do not reject slow dependency extractors
819  --disable-apxstest      Do not try to compile and run apache version test
820                          program
821
822Optional Packages:
823  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
824  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
825  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
826  --with-apxs=PATH        Path to apxs
827  --with-libgnutls=PATH   Path to libgnutls
828  --with-apr-memcache=PATH
829                          Path to apr_memcache prefix
830
831Some influential environment variables:
832  CC          C compiler command
833  CFLAGS      C compiler flags
834  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
835              nonstandard directory <lib dir>
836  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
837              headers in a nonstandard directory <include dir>
838
839Use these variables to override the choices made by `configure' or to help
840it to find libraries and programs with nonstandard names/locations.
841
842_ACEOF
843fi
844
845if test "$ac_init_help" = "recursive"; then
846  # If there are subdirs, report their specific --help.
847  ac_popdir=`pwd`
848  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
849    test -d $ac_dir || continue
850    ac_builddir=.
851
852if test "$ac_dir" != .; then
853  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
854  # A "../" for each directory in $ac_dir_suffix.
855  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
856else
857  ac_dir_suffix= ac_top_builddir=
858fi
859
860case $srcdir in
861  .)  # No --srcdir option.  We are building in place.
862    ac_srcdir=.
863    if test -z "$ac_top_builddir"; then
864       ac_top_srcdir=.
865    else
866       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
867    fi ;;
868  [\\/]* | ?:[\\/]* )  # Absolute path.
869    ac_srcdir=$srcdir$ac_dir_suffix;
870    ac_top_srcdir=$srcdir ;;
871  *) # Relative path.
872    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
873    ac_top_srcdir=$ac_top_builddir$srcdir ;;
874esac
875
876# Do not use `cd foo && pwd` to compute absolute paths, because
877# the directories may not exist.
878case `pwd` in
879.) ac_abs_builddir="$ac_dir";;
880*)
881  case "$ac_dir" in
882  .) ac_abs_builddir=`pwd`;;
883  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
884  *) ac_abs_builddir=`pwd`/"$ac_dir";;
885  esac;;
886esac
887case $ac_abs_builddir in
888.) ac_abs_top_builddir=${ac_top_builddir}.;;
889*)
890  case ${ac_top_builddir}. in
891  .) ac_abs_top_builddir=$ac_abs_builddir;;
892  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
893  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
894  esac;;
895esac
896case $ac_abs_builddir in
897.) ac_abs_srcdir=$ac_srcdir;;
898*)
899  case $ac_srcdir in
900  .) ac_abs_srcdir=$ac_abs_builddir;;
901  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
902  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
903  esac;;
904esac
905case $ac_abs_builddir in
906.) ac_abs_top_srcdir=$ac_top_srcdir;;
907*)
908  case $ac_top_srcdir in
909  .) ac_abs_top_srcdir=$ac_abs_builddir;;
910  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
911  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
912  esac;;
913esac
914
915    cd $ac_dir
916    # Check for guested configure; otherwise get Cygnus style configure.
917    if test -f $ac_srcdir/configure.gnu; then
918      echo
919      $SHELL $ac_srcdir/configure.gnu  --help=recursive
920    elif test -f $ac_srcdir/configure; then
921      echo
922      $SHELL $ac_srcdir/configure  --help=recursive
923    elif test -f $ac_srcdir/configure.ac ||
924           test -f $ac_srcdir/configure.in; then
925      echo
926      $ac_configure --help
927    else
928      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
929    fi
930    cd "$ac_popdir"
931  done
932fi
933
934test -n "$ac_init_help" && exit 0
935if $ac_init_version; then
936  cat <<\_ACEOF
937mod_gnutls configure 0.2.0
938generated by GNU Autoconf 2.59
939
940Copyright (C) 2003 Free Software Foundation, Inc.
941This configure script is free software; the Free Software Foundation
942gives unlimited permission to copy, distribute and modify it.
943_ACEOF
944  exit 0
945fi
946exec 5>config.log
947cat >&5 <<_ACEOF
948This file contains any messages produced by compilers while
949running configure, to aid debugging if configure makes a mistake.
950
951It was created by mod_gnutls $as_me 0.2.0, which was
952generated by GNU Autoconf 2.59.  Invocation command line was
953
954  $ $0 $@
955
956_ACEOF
957{
958cat <<_ASUNAME
959## --------- ##
960## Platform. ##
961## --------- ##
962
963hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
964uname -m = `(uname -m) 2>/dev/null || echo unknown`
965uname -r = `(uname -r) 2>/dev/null || echo unknown`
966uname -s = `(uname -s) 2>/dev/null || echo unknown`
967uname -v = `(uname -v) 2>/dev/null || echo unknown`
968
969/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
970/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
971
972/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
973/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
974/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
975hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
976/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
977/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
978/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
979
980_ASUNAME
981
982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
983for as_dir in $PATH
984do
985  IFS=$as_save_IFS
986  test -z "$as_dir" && as_dir=.
987  echo "PATH: $as_dir"
988done
989
990} >&5
991
992cat >&5 <<_ACEOF
993
994
995## ----------- ##
996## Core tests. ##
997## ----------- ##
998
999_ACEOF
1000
1001
1002# Keep a trace of the command line.
1003# Strip out --no-create and --no-recursion so they do not pile up.
1004# Strip out --silent because we don't want to record it for future runs.
1005# Also quote any args containing shell meta-characters.
1006# Make two passes to allow for proper duplicate-argument suppression.
1007ac_configure_args=
1008ac_configure_args0=
1009ac_configure_args1=
1010ac_sep=
1011ac_must_keep_next=false
1012for ac_pass in 1 2
1013do
1014  for ac_arg
1015  do
1016    case $ac_arg in
1017    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1018    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1019    | -silent | --silent | --silen | --sile | --sil)
1020      continue ;;
1021    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1022      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1023    esac
1024    case $ac_pass in
1025    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1026    2)
1027      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1028      if test $ac_must_keep_next = true; then
1029        ac_must_keep_next=false # Got value, back to normal.
1030      else
1031        case $ac_arg in
1032          *=* | --config-cache | -C | -disable-* | --disable-* \
1033          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1034          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1035          | -with-* | --with-* | -without-* | --without-* | --x)
1036            case "$ac_configure_args0 " in
1037              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1038            esac
1039            ;;
1040          -* ) ac_must_keep_next=true ;;
1041        esac
1042      fi
1043      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1044      # Get rid of the leading space.
1045      ac_sep=" "
1046      ;;
1047    esac
1048  done
1049done
1050$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1051$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1052
1053# When interrupted or exit'd, cleanup temporary files, and complete
1054# config.log.  We remove comments because anyway the quotes in there
1055# would cause problems or look ugly.
1056# WARNING: Be sure not to use single quotes in there, as some shells,
1057# such as our DU 5.0 friend, will then `close' the trap.
1058trap 'exit_status=$?
1059  # Save into config.log some information that might help in debugging.
1060  {
1061    echo
1062
1063    cat <<\_ASBOX
1064## ---------------- ##
1065## Cache variables. ##
1066## ---------------- ##
1067_ASBOX
1068    echo
1069    # The following way of writing the cache mishandles newlines in values,
1070{
1071  (set) 2>&1 |
1072    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1073    *ac_space=\ *)
1074      sed -n \
1075        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1076          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1077      ;;
1078    *)
1079      sed -n \
1080        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1081      ;;
1082    esac;
1083}
1084    echo
1085
1086    cat <<\_ASBOX
1087## ----------------- ##
1088## Output variables. ##
1089## ----------------- ##
1090_ASBOX
1091    echo
1092    for ac_var in $ac_subst_vars
1093    do
1094      eval ac_val=$`echo $ac_var`
1095      echo "$ac_var='"'"'$ac_val'"'"'"
1096    done | sort
1097    echo
1098
1099    if test -n "$ac_subst_files"; then
1100      cat <<\_ASBOX
1101## ------------- ##
1102## Output files. ##
1103## ------------- ##
1104_ASBOX
1105      echo
1106      for ac_var in $ac_subst_files
1107      do
1108        eval ac_val=$`echo $ac_var`
1109        echo "$ac_var='"'"'$ac_val'"'"'"
1110      done | sort
1111      echo
1112    fi
1113
1114    if test -s confdefs.h; then
1115      cat <<\_ASBOX
1116## ----------- ##
1117## confdefs.h. ##
1118## ----------- ##
1119_ASBOX
1120      echo
1121      sed "/^$/d" confdefs.h | sort
1122      echo
1123    fi
1124    test "$ac_signal" != 0 &&
1125      echo "$as_me: caught signal $ac_signal"
1126    echo "$as_me: exit $exit_status"
1127  } >&5
1128  rm -f core *.core &&
1129  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1130    exit $exit_status
1131     ' 0
1132for ac_signal in 1 2 13 15; do
1133  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1134done
1135ac_signal=0
1136
1137# confdefs.h avoids OS command line length limits that DEFS can exceed.
1138rm -rf conftest* confdefs.h
1139# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1140echo >confdefs.h
1141
1142# Predefined preprocessor variables.
1143
1144cat >>confdefs.h <<_ACEOF
1145#define PACKAGE_NAME "$PACKAGE_NAME"
1146_ACEOF
1147
1148
1149cat >>confdefs.h <<_ACEOF
1150#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1151_ACEOF
1152
1153
1154cat >>confdefs.h <<_ACEOF
1155#define PACKAGE_VERSION "$PACKAGE_VERSION"
1156_ACEOF
1157
1158
1159cat >>confdefs.h <<_ACEOF
1160#define PACKAGE_STRING "$PACKAGE_STRING"
1161_ACEOF
1162
1163
1164cat >>confdefs.h <<_ACEOF
1165#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1166_ACEOF
1167
1168
1169# Let the site file select an alternate cache file if it wants to.
1170# Prefer explicitly selected file to automatically selected ones.
1171if test -z "$CONFIG_SITE"; then
1172  if test "x$prefix" != xNONE; then
1173    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1174  else
1175    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1176  fi
1177fi
1178for ac_site_file in $CONFIG_SITE; do
1179  if test -r "$ac_site_file"; then
1180    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1181echo "$as_me: loading site script $ac_site_file" >&6;}
1182    sed 's/^/| /' "$ac_site_file" >&5
1183    . "$ac_site_file"
1184  fi
1185done
1186
1187if test -r "$cache_file"; then
1188  # Some versions of bash will fail to source /dev/null (special
1189  # files actually), so we avoid doing that.
1190  if test -f "$cache_file"; then
1191    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1192echo "$as_me: loading cache $cache_file" >&6;}
1193    case $cache_file in
1194      [\\/]* | ?:[\\/]* ) . $cache_file;;
1195      *)                      . ./$cache_file;;
1196    esac
1197  fi
1198else
1199  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1200echo "$as_me: creating cache $cache_file" >&6;}
1201  >$cache_file
1202fi
1203
1204# Check that the precious variables saved in the cache have kept the same
1205# value.
1206ac_cache_corrupted=false
1207for ac_var in `(set) 2>&1 |
1208               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1209  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1210  eval ac_new_set=\$ac_env_${ac_var}_set
1211  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1212  eval ac_new_val="\$ac_env_${ac_var}_value"
1213  case $ac_old_set,$ac_new_set in
1214    set,)
1215      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1216echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1217      ac_cache_corrupted=: ;;
1218    ,set)
1219      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1220echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1221      ac_cache_corrupted=: ;;
1222    ,);;
1223    *)
1224      if test "x$ac_old_val" != "x$ac_new_val"; then
1225        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1226echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1227        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1228echo "$as_me:   former value:  $ac_old_val" >&2;}
1229        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1230echo "$as_me:   current value: $ac_new_val" >&2;}
1231        ac_cache_corrupted=:
1232      fi;;
1233  esac
1234  # Pass precious variables to config.status.
1235  if test "$ac_new_set" = set; then
1236    case $ac_new_val in
1237    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1238      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1239    *) ac_arg=$ac_var=$ac_new_val ;;
1240    esac
1241    case " $ac_configure_args " in
1242      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1243      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1244    esac
1245  fi
1246done
1247if $ac_cache_corrupted; then
1248  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1249echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1250  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1251echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1252   { (exit 1); exit 1; }; }
1253fi
1254
1255ac_ext=c
1256ac_cpp='$CPP $CPPFLAGS'
1257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1259ac_compiler_gnu=$ac_cv_c_compiler_gnu
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288  echo configure: creating config.nice
1289  rm -f config.nice
1290  cat >config.nice<<EOF
1291#! /bin/sh
1292#
1293# Created by configure
1294
1295EOF
1296
1297  for arg in $0 "$@"; do
1298    if test "$arg" != "--no-create" -a "$arg" != "--no-recursion"; then
1299        echo "\"$arg\" \\" >> config.nice
1300    fi
1301  done
1302  echo '"$@"' >> config.nice
1303  chmod +x config.nice
1304
1305MOD_GNUTLS_VERSION=0.2.0
1306
1307
1308ac_aux_dir=
1309for ac_dir in config $srcdir/config; do
1310  if test -f $ac_dir/install-sh; then
1311    ac_aux_dir=$ac_dir
1312    ac_install_sh="$ac_aux_dir/install-sh -c"
1313    break
1314  elif test -f $ac_dir/install.sh; then
1315    ac_aux_dir=$ac_dir
1316    ac_install_sh="$ac_aux_dir/install.sh -c"
1317    break
1318  elif test -f $ac_dir/shtool; then
1319    ac_aux_dir=$ac_dir
1320    ac_install_sh="$ac_aux_dir/shtool install -c"
1321    break
1322  fi
1323done
1324if test -z "$ac_aux_dir"; then
1325  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1326echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1327   { (exit 1); exit 1; }; }
1328fi
1329ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1330ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1331ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1332
1333
1334  # Check whether --enable-maintainer or --disable-maintainer was given.
1335if test "${enable_maintainer+set}" = set; then
1336  enableval="$enable_maintainer"
1337  echo "$as_me:$LINENO: result: Enabling Maintainer Mode!!" >&5
1338echo "${ECHO_T}Enabling Maintainer Mode!!" >&6
1339        OOO_MAINTAIN=1
1340else
1341  OOO_MAINTAIN=0
1342fi;
1343
1344
1345echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1346echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1347    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1348if test "${enable_maintainer_mode+set}" = set; then
1349  enableval="$enable_maintainer_mode"
1350  USE_MAINTAINER_MODE=$enableval
1351else
1352  USE_MAINTAINER_MODE=no
1353fi;
1354  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1355echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1356
1357
1358if test $USE_MAINTAINER_MODE = yes; then
1359  MAINTAINER_MODE_TRUE=
1360  MAINTAINER_MODE_FALSE='#'
1361else
1362  MAINTAINER_MODE_TRUE='#'
1363  MAINTAINER_MODE_FALSE=
1364fi
1365
1366  MAINT=$MAINTAINER_MODE_TRUE
1367
1368
1369# Make sure we can run config.sub.
1370$ac_config_sub sun4 >/dev/null 2>&1 ||
1371  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1372echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1373   { (exit 1); exit 1; }; }
1374
1375echo "$as_me:$LINENO: checking build system type" >&5
1376echo $ECHO_N "checking build system type... $ECHO_C" >&6
1377if test "${ac_cv_build+set}" = set; then
1378  echo $ECHO_N "(cached) $ECHO_C" >&6
1379else
1380  ac_cv_build_alias=$build_alias
1381test -z "$ac_cv_build_alias" &&
1382  ac_cv_build_alias=`$ac_config_guess`
1383test -z "$ac_cv_build_alias" &&
1384  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1385echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1386   { (exit 1); exit 1; }; }
1387ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1388  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1389echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1390   { (exit 1); exit 1; }; }
1391
1392fi
1393echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1394echo "${ECHO_T}$ac_cv_build" >&6
1395build=$ac_cv_build
1396build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1397build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1398build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1399
1400
1401echo "$as_me:$LINENO: checking host system type" >&5
1402echo $ECHO_N "checking host system type... $ECHO_C" >&6
1403if test "${ac_cv_host+set}" = set; then
1404  echo $ECHO_N "(cached) $ECHO_C" >&6
1405else
1406  ac_cv_host_alias=$host_alias
1407test -z "$ac_cv_host_alias" &&
1408  ac_cv_host_alias=$ac_cv_build_alias
1409ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1410  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1411echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1412   { (exit 1); exit 1; }; }
1413
1414fi
1415echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1416echo "${ECHO_T}$ac_cv_host" >&6
1417host=$ac_cv_host
1418host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1419host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1420host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1421
1422
1423echo "$as_me:$LINENO: checking target system type" >&5
1424echo $ECHO_N "checking target system type... $ECHO_C" >&6
1425if test "${ac_cv_target+set}" = set; then
1426  echo $ECHO_N "(cached) $ECHO_C" >&6
1427else
1428  ac_cv_target_alias=$target_alias
1429test "x$ac_cv_target_alias" = "x" &&
1430  ac_cv_target_alias=$ac_cv_host_alias
1431ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1432  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1433echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1434   { (exit 1); exit 1; }; }
1435
1436fi
1437echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1438echo "${ECHO_T}$ac_cv_target" >&6
1439target=$ac_cv_target
1440target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1441target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1442target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1443
1444
1445# The aliases save the names the user supplied, while $host etc.
1446# will get canonicalized.
1447test -n "$target_alias" &&
1448  test "$program_prefix$program_suffix$program_transform_name" = \
1449    NONENONEs,x,x, &&
1450  program_prefix=${target_alias}-
1451am__api_version="1.9"
1452# Find a good install program.  We prefer a C program (faster),
1453# so one script is as good as another.  But avoid the broken or
1454# incompatible versions:
1455# SysV /etc/install, /usr/sbin/install
1456# SunOS /usr/etc/install
1457# IRIX /sbin/install
1458# AIX /bin/install
1459# AmigaOS /C/install, which installs bootblocks on floppy discs
1460# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1461# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1462# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1463# OS/2's system install, which has a completely different semantic
1464# ./install, which can be erroneously created by make from ./install.sh.
1465echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1466echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1467if test -z "$INSTALL"; then
1468if test "${ac_cv_path_install+set}" = set; then
1469  echo $ECHO_N "(cached) $ECHO_C" >&6
1470else
1471  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1472for as_dir in $PATH
1473do
1474  IFS=$as_save_IFS
1475  test -z "$as_dir" && as_dir=.
1476  # Account for people who put trailing slashes in PATH elements.
1477case $as_dir/ in
1478  ./ | .// | /cC/* | \
1479  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1480  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1481  /usr/ucb/* ) ;;
1482  *)
1483    # OSF1 and SCO ODT 3.0 have their own names for install.
1484    # Don't use installbsd from OSF since it installs stuff as root
1485    # by default.
1486    for ac_prog in ginstall scoinst install; do
1487      for ac_exec_ext in '' $ac_executable_extensions; do
1488        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1489          if test $ac_prog = install &&
1490            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1491            # AIX install.  It has an incompatible calling convention.
1492            :
1493          elif test $ac_prog = install &&
1494            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1495            # program-specific install script used by HP pwplus--don't use.
1496            :
1497          else
1498            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1499            break 3
1500          fi
1501        fi
1502      done
1503    done
1504    ;;
1505esac
1506done
1507
1508
1509fi
1510  if test "${ac_cv_path_install+set}" = set; then
1511    INSTALL=$ac_cv_path_install
1512  else
1513    # As a last resort, use the slow shell script.  We don't cache a
1514    # path for INSTALL within a source directory, because that will
1515    # break other packages using the cache if that directory is
1516    # removed, or if the path is relative.
1517    INSTALL=$ac_install_sh
1518  fi
1519fi
1520echo "$as_me:$LINENO: result: $INSTALL" >&5
1521echo "${ECHO_T}$INSTALL" >&6
1522
1523# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1524# It thinks the first close brace ends the variable substitution.
1525test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1526
1527test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1528
1529test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1530
1531echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1532echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1533# Just in case
1534sleep 1
1535echo timestamp > conftest.file
1536# Do `set' in a subshell so we don't clobber the current shell's
1537# arguments.  Must try -L first in case configure is actually a
1538# symlink; some systems play weird games with the mod time of symlinks
1539# (eg FreeBSD returns the mod time of the symlink's containing
1540# directory).
1541if (
1542   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1543   if test "$*" = "X"; then
1544      # -L didn't work.
1545      set X `ls -t $srcdir/configure conftest.file`
1546   fi
1547   rm -f conftest.file
1548   if test "$*" != "X $srcdir/configure conftest.file" \
1549      && test "$*" != "X conftest.file $srcdir/configure"; then
1550
1551      # If neither matched, then we have a broken ls.  This can happen
1552      # if, for instance, CONFIG_SHELL is bash and it inherits a
1553      # broken ls alias from the environment.  This has actually
1554      # happened.  Such a system could not be considered "sane".
1555      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1556alias in your environment" >&5
1557echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1558alias in your environment" >&2;}
1559   { (exit 1); exit 1; }; }
1560   fi
1561
1562   test "$2" = conftest.file
1563   )
1564then
1565   # Ok.
1566   :
1567else
1568   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1569Check your system clock" >&5
1570echo "$as_me: error: newly created file is older than distributed files!
1571Check your system clock" >&2;}
1572   { (exit 1); exit 1; }; }
1573fi
1574echo "$as_me:$LINENO: result: yes" >&5
1575echo "${ECHO_T}yes" >&6
1576test "$program_prefix" != NONE &&
1577  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1578# Use a double $ so make ignores it.
1579test "$program_suffix" != NONE &&
1580  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1581# Double any \ or $.  echo might interpret backslashes.
1582# By default was `s,x,x', remove it if useless.
1583cat <<\_ACEOF >conftest.sed
1584s/[\\$]/&&/g;s/;s,x,x,$//
1585_ACEOF
1586program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1587rm conftest.sed
1588
1589# expand $ac_aux_dir to an absolute path
1590am_aux_dir=`cd $ac_aux_dir && pwd`
1591
1592test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1593# Use eval to expand $SHELL
1594if eval "$MISSING --run true"; then
1595  am_missing_run="$MISSING --run "
1596else
1597  am_missing_run=
1598  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1599echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1600fi
1601
1602if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1603  # We used to keeping the `.' as first argument, in order to
1604  # allow $(mkdir_p) to be used without argument.  As in
1605  #   $(mkdir_p) $(somedir)
1606  # where $(somedir) is conditionally defined.  However this is wrong
1607  # for two reasons:
1608  #  1. if the package is installed by a user who cannot write `.'
1609  #     make install will fail,
1610  #  2. the above comment should most certainly read
1611  #     $(mkdir_p) $(DESTDIR)$(somedir)
1612  #     so it does not work when $(somedir) is undefined and
1613  #     $(DESTDIR) is not.
1614  #  To support the latter case, we have to write
1615  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1616  #  so the `.' trick is pointless.
1617  mkdir_p='mkdir -p --'
1618else
1619  # On NextStep and OpenStep, the `mkdir' command does not
1620  # recognize any option.  It will interpret all options as
1621  # directories to create, and then abort because `.' already
1622  # exists.
1623  for d in ./-p ./--version;
1624  do
1625    test -d $d && rmdir $d
1626  done
1627  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1628  if test -f "$ac_aux_dir/mkinstalldirs"; then
1629    mkdir_p='$(mkinstalldirs)'
1630  else
1631    mkdir_p='$(install_sh) -d'
1632  fi
1633fi
1634
1635for ac_prog in gawk mawk nawk awk
1636do
1637  # Extract the first word of "$ac_prog", so it can be a program name with args.
1638set dummy $ac_prog; ac_word=$2
1639echo "$as_me:$LINENO: checking for $ac_word" >&5
1640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1641if test "${ac_cv_prog_AWK+set}" = set; then
1642  echo $ECHO_N "(cached) $ECHO_C" >&6
1643else
1644  if test -n "$AWK"; then
1645  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1646else
1647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648for as_dir in $PATH
1649do
1650  IFS=$as_save_IFS
1651  test -z "$as_dir" && as_dir=.
1652  for ac_exec_ext in '' $ac_executable_extensions; do
1653  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1654    ac_cv_prog_AWK="$ac_prog"
1655    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1656    break 2
1657  fi
1658done
1659done
1660
1661fi
1662fi
1663AWK=$ac_cv_prog_AWK
1664if test -n "$AWK"; then
1665  echo "$as_me:$LINENO: result: $AWK" >&5
1666echo "${ECHO_T}$AWK" >&6
1667else
1668  echo "$as_me:$LINENO: result: no" >&5
1669echo "${ECHO_T}no" >&6
1670fi
1671
1672  test -n "$AWK" && break
1673done
1674
1675echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1676echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1677set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1678if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1679  echo $ECHO_N "(cached) $ECHO_C" >&6
1680else
1681  cat >conftest.make <<\_ACEOF
1682all:
1683        @echo 'ac_maketemp="$(MAKE)"'
1684_ACEOF
1685# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1686eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1687if test -n "$ac_maketemp"; then
1688  eval ac_cv_prog_make_${ac_make}_set=yes
1689else
1690  eval ac_cv_prog_make_${ac_make}_set=no
1691fi
1692rm -f conftest.make
1693fi
1694if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1695  echo "$as_me:$LINENO: result: yes" >&5
1696echo "${ECHO_T}yes" >&6
1697  SET_MAKE=
1698else
1699  echo "$as_me:$LINENO: result: no" >&5
1700echo "${ECHO_T}no" >&6
1701  SET_MAKE="MAKE=${MAKE-make}"
1702fi
1703
1704rm -rf .tst 2>/dev/null
1705mkdir .tst 2>/dev/null
1706if test -d .tst; then
1707  am__leading_dot=.
1708else
1709  am__leading_dot=_
1710fi
1711rmdir .tst 2>/dev/null
1712
1713# test to see if srcdir already configured
1714if test "`cd $srcdir && pwd`" != "`pwd`" &&
1715   test -f $srcdir/config.status; then
1716  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1717echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1718   { (exit 1); exit 1; }; }
1719fi
1720
1721# test whether we have cygpath
1722if test -z "$CYGPATH_W"; then
1723  if (cygpath --version) >/dev/null 2>/dev/null; then
1724    CYGPATH_W='cygpath -w'
1725  else
1726    CYGPATH_W=echo
1727  fi
1728fi
1729
1730
1731# Define the identity of the package.
1732 PACKAGE=mod_gnutls
1733 VERSION=0.2.0
1734
1735
1736cat >>confdefs.h <<_ACEOF
1737#define PACKAGE "$PACKAGE"
1738_ACEOF
1739
1740
1741cat >>confdefs.h <<_ACEOF
1742#define VERSION "$VERSION"
1743_ACEOF
1744
1745# Some tools Automake needs.
1746
1747ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1748
1749
1750AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1751
1752
1753AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1754
1755
1756AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1757
1758
1759MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1760
1761install_sh=${install_sh-"$am_aux_dir/install-sh"}
1762
1763# Installed binaries are usually stripped using `strip' when the user
1764# run `make install-strip'.  However `strip' might not be the right
1765# tool to use in cross-compilation environments, therefore Automake
1766# will honor the `STRIP' environment variable to overrule this program.
1767if test "$cross_compiling" != no; then
1768  if test -n "$ac_tool_prefix"; then
1769  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1770set dummy ${ac_tool_prefix}strip; ac_word=$2
1771echo "$as_me:$LINENO: checking for $ac_word" >&5
1772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1773if test "${ac_cv_prog_STRIP+set}" = set; then
1774  echo $ECHO_N "(cached) $ECHO_C" >&6
1775else
1776  if test -n "$STRIP"; then
1777  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1778else
1779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780for as_dir in $PATH
1781do
1782  IFS=$as_save_IFS
1783  test -z "$as_dir" && as_dir=.
1784  for ac_exec_ext in '' $ac_executable_extensions; do
1785  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1786    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1787    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1788    break 2
1789  fi
1790done
1791done
1792
1793fi
1794fi
1795STRIP=$ac_cv_prog_STRIP
1796if test -n "$STRIP"; then
1797  echo "$as_me:$LINENO: result: $STRIP" >&5
1798echo "${ECHO_T}$STRIP" >&6
1799else
1800  echo "$as_me:$LINENO: result: no" >&5
1801echo "${ECHO_T}no" >&6
1802fi
1803
1804fi
1805if test -z "$ac_cv_prog_STRIP"; then
1806  ac_ct_STRIP=$STRIP
1807  # Extract the first word of "strip", so it can be a program name with args.
1808set dummy strip; ac_word=$2
1809echo "$as_me:$LINENO: checking for $ac_word" >&5
1810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1811if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1812  echo $ECHO_N "(cached) $ECHO_C" >&6
1813else
1814  if test -n "$ac_ct_STRIP"; then
1815  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1816else
1817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818for as_dir in $PATH
1819do
1820  IFS=$as_save_IFS
1821  test -z "$as_dir" && as_dir=.
1822  for ac_exec_ext in '' $ac_executable_extensions; do
1823  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1824    ac_cv_prog_ac_ct_STRIP="strip"
1825    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1826    break 2
1827  fi
1828done
1829done
1830
1831  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1832fi
1833fi
1834ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1835if test -n "$ac_ct_STRIP"; then
1836  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1837echo "${ECHO_T}$ac_ct_STRIP" >&6
1838else
1839  echo "$as_me:$LINENO: result: no" >&5
1840echo "${ECHO_T}no" >&6
1841fi
1842
1843  STRIP=$ac_ct_STRIP
1844else
1845  STRIP="$ac_cv_prog_STRIP"
1846fi
1847
1848fi
1849INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1850
1851# We need awk for the "check" target.  The system "awk" is bad on
1852# some platforms.
1853# Always define AMTAR for backward compatibility.
1854
1855AMTAR=${AMTAR-"${am_missing_run}tar"}
1856
1857am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1858
1859
1860
1861
1862
1863          ac_config_headers="$ac_config_headers include/mod_gnutls_config.h:config.in"
1864
1865
1866
1867
1868ac_ext=c
1869ac_cpp='$CPP $CPPFLAGS'
1870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1872ac_compiler_gnu=$ac_cv_c_compiler_gnu
1873if test -n "$ac_tool_prefix"; then
1874  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1875set dummy ${ac_tool_prefix}gcc; ac_word=$2
1876echo "$as_me:$LINENO: checking for $ac_word" >&5
1877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1878if test "${ac_cv_prog_CC+set}" = set; then
1879  echo $ECHO_N "(cached) $ECHO_C" >&6
1880else
1881  if test -n "$CC"; then
1882  ac_cv_prog_CC="$CC" # Let the user override the test.
1883else
1884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885for as_dir in $PATH
1886do
1887  IFS=$as_save_IFS
1888  test -z "$as_dir" && as_dir=.
1889  for ac_exec_ext in '' $ac_executable_extensions; do
1890  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1892    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1893    break 2
1894  fi
1895done
1896done
1897
1898fi
1899fi
1900CC=$ac_cv_prog_CC
1901if test -n "$CC"; then
1902  echo "$as_me:$LINENO: result: $CC" >&5
1903echo "${ECHO_T}$CC" >&6
1904else
1905  echo "$as_me:$LINENO: result: no" >&5
1906echo "${ECHO_T}no" >&6
1907fi
1908
1909fi
1910if test -z "$ac_cv_prog_CC"; then
1911  ac_ct_CC=$CC
1912  # Extract the first word of "gcc", so it can be a program name with args.
1913set dummy gcc; ac_word=$2
1914echo "$as_me:$LINENO: checking for $ac_word" >&5
1915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1916if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1917  echo $ECHO_N "(cached) $ECHO_C" >&6
1918else
1919  if test -n "$ac_ct_CC"; then
1920  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1921else
1922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923for as_dir in $PATH
1924do
1925  IFS=$as_save_IFS
1926  test -z "$as_dir" && as_dir=.
1927  for ac_exec_ext in '' $ac_executable_extensions; do
1928  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1929    ac_cv_prog_ac_ct_CC="gcc"
1930    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1931    break 2
1932  fi
1933done
1934done
1935
1936fi
1937fi
1938ac_ct_CC=$ac_cv_prog_ac_ct_CC
1939if test -n "$ac_ct_CC"; then
1940  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1941echo "${ECHO_T}$ac_ct_CC" >&6
1942else
1943  echo "$as_me:$LINENO: result: no" >&5
1944echo "${ECHO_T}no" >&6
1945fi
1946
1947  CC=$ac_ct_CC
1948else
1949  CC="$ac_cv_prog_CC"
1950fi
1951
1952if test -z "$CC"; then
1953  if test -n "$ac_tool_prefix"; then
1954  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1955set dummy ${ac_tool_prefix}cc; ac_word=$2
1956echo "$as_me:$LINENO: checking for $ac_word" >&5
1957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958if test "${ac_cv_prog_CC+set}" = set; then
1959  echo $ECHO_N "(cached) $ECHO_C" >&6
1960else
1961  if test -n "$CC"; then
1962  ac_cv_prog_CC="$CC" # Let the user override the test.
1963else
1964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965for as_dir in $PATH
1966do
1967  IFS=$as_save_IFS
1968  test -z "$as_dir" && as_dir=.
1969  for ac_exec_ext in '' $ac_executable_extensions; do
1970  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971    ac_cv_prog_CC="${ac_tool_prefix}cc"
1972    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973    break 2
1974  fi
1975done
1976done
1977
1978fi
1979fi
1980CC=$ac_cv_prog_CC
1981if test -n "$CC"; then
1982  echo "$as_me:$LINENO: result: $CC" >&5
1983echo "${ECHO_T}$CC" >&6
1984else
1985  echo "$as_me:$LINENO: result: no" >&5
1986echo "${ECHO_T}no" >&6
1987fi
1988
1989fi
1990if test -z "$ac_cv_prog_CC"; then
1991  ac_ct_CC=$CC
1992  # Extract the first word of "cc", so it can be a program name with args.
1993set dummy cc; ac_word=$2
1994echo "$as_me:$LINENO: checking for $ac_word" >&5
1995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1996if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1997  echo $ECHO_N "(cached) $ECHO_C" >&6
1998else
1999  if test -n "$ac_ct_CC"; then
2000  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2001else
2002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003for as_dir in $PATH
2004do
2005  IFS=$as_save_IFS
2006  test -z "$as_dir" && as_dir=.
2007  for ac_exec_ext in '' $ac_executable_extensions; do
2008  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2009    ac_cv_prog_ac_ct_CC="cc"
2010    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2011    break 2
2012  fi
2013done
2014done
2015
2016fi
2017fi
2018ac_ct_CC=$ac_cv_prog_ac_ct_CC
2019if test -n "$ac_ct_CC"; then
2020  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2021echo "${ECHO_T}$ac_ct_CC" >&6
2022else
2023  echo "$as_me:$LINENO: result: no" >&5
2024echo "${ECHO_T}no" >&6
2025fi
2026
2027  CC=$ac_ct_CC
2028else
2029  CC="$ac_cv_prog_CC"
2030fi
2031
2032fi
2033if test -z "$CC"; then
2034  # Extract the first word of "cc", so it can be a program name with args.
2035set dummy cc; ac_word=$2
2036echo "$as_me:$LINENO: checking for $ac_word" >&5
2037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2038if test "${ac_cv_prog_CC+set}" = set; then
2039  echo $ECHO_N "(cached) $ECHO_C" >&6
2040else
2041  if test -n "$CC"; then
2042  ac_cv_prog_CC="$CC" # Let the user override the test.
2043else
2044  ac_prog_rejected=no
2045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046for as_dir in $PATH
2047do
2048  IFS=$as_save_IFS
2049  test -z "$as_dir" && as_dir=.
2050  for ac_exec_ext in '' $ac_executable_extensions; do
2051  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2052    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2053       ac_prog_rejected=yes
2054       continue
2055     fi
2056    ac_cv_prog_CC="cc"
2057    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2058    break 2
2059  fi
2060done
2061done
2062
2063if test $ac_prog_rejected = yes; then
2064  # We found a bogon in the path, so make sure we never use it.
2065  set dummy $ac_cv_prog_CC
2066  shift
2067  if test $# != 0; then
2068    # We chose a different compiler from the bogus one.
2069    # However, it has the same basename, so the bogon will be chosen
2070    # first if we set CC to just the basename; use the full file name.
2071    shift
2072    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2073  fi
2074fi
2075fi
2076fi
2077CC=$ac_cv_prog_CC
2078if test -n "$CC"; then
2079  echo "$as_me:$LINENO: result: $CC" >&5
2080echo "${ECHO_T}$CC" >&6
2081else
2082  echo "$as_me:$LINENO: result: no" >&5
2083echo "${ECHO_T}no" >&6
2084fi
2085
2086fi
2087if test -z "$CC"; then
2088  if test -n "$ac_tool_prefix"; then
2089  for ac_prog in cl
2090  do
2091    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2092set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2093echo "$as_me:$LINENO: checking for $ac_word" >&5
2094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2095if test "${ac_cv_prog_CC+set}" = set; then
2096  echo $ECHO_N "(cached) $ECHO_C" >&6
2097else
2098  if test -n "$CC"; then
2099  ac_cv_prog_CC="$CC" # Let the user override the test.
2100else
2101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102for as_dir in $PATH
2103do
2104  IFS=$as_save_IFS
2105  test -z "$as_dir" && as_dir=.
2106  for ac_exec_ext in '' $ac_executable_extensions; do
2107  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2108    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2109    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2110    break 2
2111  fi
2112done
2113done
2114
2115fi
2116fi
2117CC=$ac_cv_prog_CC
2118if test -n "$CC"; then
2119  echo "$as_me:$LINENO: result: $CC" >&5
2120echo "${ECHO_T}$CC" >&6
2121else
2122  echo "$as_me:$LINENO: result: no" >&5
2123echo "${ECHO_T}no" >&6
2124fi
2125
2126    test -n "$CC" && break
2127  done
2128fi
2129if test -z "$CC"; then
2130  ac_ct_CC=$CC
2131  for ac_prog in cl
2132do
2133  # Extract the first word of "$ac_prog", so it can be a program name with args.
2134set dummy $ac_prog; ac_word=$2
2135echo "$as_me:$LINENO: checking for $ac_word" >&5
2136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2137if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2138  echo $ECHO_N "(cached) $ECHO_C" >&6
2139else
2140  if test -n "$ac_ct_CC"; then
2141  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2142else
2143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144for as_dir in $PATH
2145do
2146  IFS=$as_save_IFS
2147  test -z "$as_dir" && as_dir=.
2148  for ac_exec_ext in '' $ac_executable_extensions; do
2149  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2150    ac_cv_prog_ac_ct_CC="$ac_prog"
2151    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2152    break 2
2153  fi
2154done
2155done
2156
2157fi
2158fi
2159ac_ct_CC=$ac_cv_prog_ac_ct_CC
2160if test -n "$ac_ct_CC"; then
2161  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2162echo "${ECHO_T}$ac_ct_CC" >&6
2163else
2164  echo "$as_me:$LINENO: result: no" >&5
2165echo "${ECHO_T}no" >&6
2166fi
2167
2168  test -n "$ac_ct_CC" && break
2169done
2170
2171  CC=$ac_ct_CC
2172fi
2173
2174fi
2175
2176
2177test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2178See \`config.log' for more details." >&5
2179echo "$as_me: error: no acceptable C compiler found in \$PATH
2180See \`config.log' for more details." >&2;}
2181   { (exit 1); exit 1; }; }
2182
2183# Provide some information about the compiler.
2184echo "$as_me:$LINENO:" \
2185     "checking for C compiler version" >&5
2186ac_compiler=`set X $ac_compile; echo $2`
2187{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2188  (eval $ac_compiler --version </dev/null >&5) 2>&5
2189  ac_status=$?
2190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191  (exit $ac_status); }
2192{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2193  (eval $ac_compiler -v </dev/null >&5) 2>&5
2194  ac_status=$?
2195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196  (exit $ac_status); }
2197{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2198  (eval $ac_compiler -V </dev/null >&5) 2>&5
2199  ac_status=$?
2200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201  (exit $ac_status); }
2202
2203cat >conftest.$ac_ext <<_ACEOF
2204/* confdefs.h.  */
2205_ACEOF
2206cat confdefs.h >>conftest.$ac_ext
2207cat >>conftest.$ac_ext <<_ACEOF
2208/* end confdefs.h.  */
2209
2210int
2211main ()
2212{
2213
2214  ;
2215  return 0;
2216}
2217_ACEOF
2218ac_clean_files_save=$ac_clean_files
2219ac_clean_files="$ac_clean_files a.out a.exe b.out"
2220# Try to create an executable without -o first, disregard a.out.
2221# It will help us diagnose broken compilers, and finding out an intuition
2222# of exeext.
2223echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2224echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2225ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2226if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2227  (eval $ac_link_default) 2>&5
2228  ac_status=$?
2229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230  (exit $ac_status); }; then
2231  # Find the output, starting from the most likely.  This scheme is
2232# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2233# resort.
2234
2235# Be careful to initialize this variable, since it used to be cached.
2236# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2237ac_cv_exeext=
2238# b.out is created by i960 compilers.
2239for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2240do
2241  test -f "$ac_file" || continue
2242  case $ac_file in
2243    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2244        ;;
2245    conftest.$ac_ext )
2246        # This is the source file.
2247        ;;
2248    [ab].out )
2249        # We found the default executable, but exeext='' is most
2250        # certainly right.
2251        break;;
2252    *.* )
2253        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2254        # FIXME: I believe we export ac_cv_exeext for Libtool,
2255        # but it would be cool to find out if it's true.  Does anybody
2256        # maintain Libtool? --akim.
2257        export ac_cv_exeext
2258        break;;
2259    * )
2260        break;;
2261  esac
2262done
2263else
2264  echo "$as_me: failed program was:" >&5
2265sed 's/^/| /' conftest.$ac_ext >&5
2266
2267{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2268See \`config.log' for more details." >&5
2269echo "$as_me: error: C compiler cannot create executables
2270See \`config.log' for more details." >&2;}
2271   { (exit 77); exit 77; }; }
2272fi
2273
2274ac_exeext=$ac_cv_exeext
2275echo "$as_me:$LINENO: result: $ac_file" >&5
2276echo "${ECHO_T}$ac_file" >&6
2277
2278# Check the compiler produces executables we can run.  If not, either
2279# the compiler is broken, or we cross compile.
2280echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2281echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2282# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2283# If not cross compiling, check that we can run a simple program.
2284if test "$cross_compiling" != yes; then
2285  if { ac_try='./$ac_file'
2286  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2287  (eval $ac_try) 2>&5
2288  ac_status=$?
2289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290  (exit $ac_status); }; }; then
2291    cross_compiling=no
2292  else
2293    if test "$cross_compiling" = maybe; then
2294        cross_compiling=yes
2295    else
2296        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2297If you meant to cross compile, use \`--host'.
2298See \`config.log' for more details." >&5
2299echo "$as_me: error: cannot run C compiled programs.
2300If you meant to cross compile, use \`--host'.
2301See \`config.log' for more details." >&2;}
2302   { (exit 1); exit 1; }; }
2303    fi
2304  fi
2305fi
2306echo "$as_me:$LINENO: result: yes" >&5
2307echo "${ECHO_T}yes" >&6
2308
2309rm -f a.out a.exe conftest$ac_cv_exeext b.out
2310ac_clean_files=$ac_clean_files_save
2311# Check the compiler produces executables we can run.  If not, either
2312# the compiler is broken, or we cross compile.
2313echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2314echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2315echo "$as_me:$LINENO: result: $cross_compiling" >&5
2316echo "${ECHO_T}$cross_compiling" >&6
2317
2318echo "$as_me:$LINENO: checking for suffix of executables" >&5
2319echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2321  (eval $ac_link) 2>&5
2322  ac_status=$?
2323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324  (exit $ac_status); }; then
2325  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2326# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2327# work properly (i.e., refer to `conftest.exe'), while it won't with
2328# `rm'.
2329for ac_file in conftest.exe conftest conftest.*; do
2330  test -f "$ac_file" || continue
2331  case $ac_file in
2332    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2333    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2334          export ac_cv_exeext
2335          break;;
2336    * ) break;;
2337  esac
2338done
2339else
2340  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2341See \`config.log' for more details." >&5
2342echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2343See \`config.log' for more details." >&2;}
2344   { (exit 1); exit 1; }; }
2345fi
2346
2347rm -f conftest$ac_cv_exeext
2348echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2349echo "${ECHO_T}$ac_cv_exeext" >&6
2350
2351rm -f conftest.$ac_ext
2352EXEEXT=$ac_cv_exeext
2353ac_exeext=$EXEEXT
2354echo "$as_me:$LINENO: checking for suffix of object files" >&5
2355echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2356if test "${ac_cv_objext+set}" = set; then
2357  echo $ECHO_N "(cached) $ECHO_C" >&6
2358else
2359  cat >conftest.$ac_ext <<_ACEOF
2360/* confdefs.h.  */
2361_ACEOF
2362cat confdefs.h >>conftest.$ac_ext
2363cat >>conftest.$ac_ext <<_ACEOF
2364/* end confdefs.h.  */
2365
2366int
2367main ()
2368{
2369
2370  ;
2371  return 0;
2372}
2373_ACEOF
2374rm -f conftest.o conftest.obj
2375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2376  (eval $ac_compile) 2>&5
2377  ac_status=$?
2378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379  (exit $ac_status); }; then
2380  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2381  case $ac_file in
2382    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2383    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2384       break;;
2385  esac
2386done
2387else
2388  echo "$as_me: failed program was:" >&5
2389sed 's/^/| /' conftest.$ac_ext >&5
2390
2391{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2392See \`config.log' for more details." >&5
2393echo "$as_me: error: cannot compute suffix of object files: cannot compile
2394See \`config.log' for more details." >&2;}
2395   { (exit 1); exit 1; }; }
2396fi
2397
2398rm -f conftest.$ac_cv_objext conftest.$ac_ext
2399fi
2400echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2401echo "${ECHO_T}$ac_cv_objext" >&6
2402OBJEXT=$ac_cv_objext
2403ac_objext=$OBJEXT
2404echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2405echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2406if test "${ac_cv_c_compiler_gnu+set}" = set; then
2407  echo $ECHO_N "(cached) $ECHO_C" >&6
2408else
2409  cat >conftest.$ac_ext <<_ACEOF
2410/* confdefs.h.  */
2411_ACEOF
2412cat confdefs.h >>conftest.$ac_ext
2413cat >>conftest.$ac_ext <<_ACEOF
2414/* end confdefs.h.  */
2415
2416int
2417main ()
2418{
2419#ifndef __GNUC__
2420       choke me
2421#endif
2422
2423  ;
2424  return 0;
2425}
2426_ACEOF
2427rm -f conftest.$ac_objext
2428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2429  (eval $ac_compile) 2>conftest.er1
2430  ac_status=$?
2431  grep -v '^ *+' conftest.er1 >conftest.err
2432  rm -f conftest.er1
2433  cat conftest.err >&5
2434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435  (exit $ac_status); } &&
2436         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438  (eval $ac_try) 2>&5
2439  ac_status=$?
2440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441  (exit $ac_status); }; } &&
2442         { ac_try='test -s conftest.$ac_objext'
2443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444  (eval $ac_try) 2>&5
2445  ac_status=$?
2446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447  (exit $ac_status); }; }; then
2448  ac_compiler_gnu=yes
2449else
2450  echo "$as_me: failed program was:" >&5
2451sed 's/^/| /' conftest.$ac_ext >&5
2452
2453ac_compiler_gnu=no
2454fi
2455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2456ac_cv_c_compiler_gnu=$ac_compiler_gnu
2457
2458fi
2459echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2460echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2461GCC=`test $ac_compiler_gnu = yes && echo yes`
2462ac_test_CFLAGS=${CFLAGS+set}
2463ac_save_CFLAGS=$CFLAGS
2464CFLAGS="-g"
2465echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2466echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2467if test "${ac_cv_prog_cc_g+set}" = set; then
2468  echo $ECHO_N "(cached) $ECHO_C" >&6
2469else
2470  cat >conftest.$ac_ext <<_ACEOF
2471/* confdefs.h.  */
2472_ACEOF
2473cat confdefs.h >>conftest.$ac_ext
2474cat >>conftest.$ac_ext <<_ACEOF
2475/* end confdefs.h.  */
2476
2477int
2478main ()
2479{
2480
2481  ;
2482  return 0;
2483}
2484_ACEOF
2485rm -f conftest.$ac_objext
2486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2487  (eval $ac_compile) 2>conftest.er1
2488  ac_status=$?
2489  grep -v '^ *+' conftest.er1 >conftest.err
2490  rm -f conftest.er1
2491  cat conftest.err >&5
2492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493  (exit $ac_status); } &&
2494         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2496  (eval $ac_try) 2>&5
2497  ac_status=$?
2498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499  (exit $ac_status); }; } &&
2500         { ac_try='test -s conftest.$ac_objext'
2501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2502  (eval $ac_try) 2>&5
2503  ac_status=$?
2504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505  (exit $ac_status); }; }; then
2506  ac_cv_prog_cc_g=yes
2507else
2508  echo "$as_me: failed program was:" >&5
2509sed 's/^/| /' conftest.$ac_ext >&5
2510
2511ac_cv_prog_cc_g=no
2512fi
2513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2514fi
2515echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2516echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2517if test "$ac_test_CFLAGS" = set; then
2518  CFLAGS=$ac_save_CFLAGS
2519elif test $ac_cv_prog_cc_g = yes; then
2520  if test "$GCC" = yes; then
2521    CFLAGS="-g -O2"
2522  else
2523    CFLAGS="-g"
2524  fi
2525else
2526  if test "$GCC" = yes; then
2527    CFLAGS="-O2"
2528  else
2529    CFLAGS=
2530  fi
2531fi
2532echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2533echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2534if test "${ac_cv_prog_cc_stdc+set}" = set; then
2535  echo $ECHO_N "(cached) $ECHO_C" >&6
2536else
2537  ac_cv_prog_cc_stdc=no
2538ac_save_CC=$CC
2539cat >conftest.$ac_ext <<_ACEOF
2540/* confdefs.h.  */
2541_ACEOF
2542cat confdefs.h >>conftest.$ac_ext
2543cat >>conftest.$ac_ext <<_ACEOF
2544/* end confdefs.h.  */
2545#include <stdarg.h>
2546#include <stdio.h>
2547#include <sys/types.h>
2548#include <sys/stat.h>
2549/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2550struct buf { int x; };
2551FILE * (*rcsopen) (struct buf *, struct stat *, int);
2552static char *e (p, i)
2553     char **p;
2554     int i;
2555{
2556  return p[i];
2557}
2558static char *f (char * (*g) (char **, int), char **p, ...)
2559{
2560  char *s;
2561  va_list v;
2562  va_start (v,p);
2563  s = g (p, va_arg (v,int));
2564  va_end (v);
2565  return s;
2566}
2567
2568/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2569   function prototypes and stuff, but not '\xHH' hex character constants.
2570   These don't provoke an error unfortunately, instead are silently treated
2571   as 'x'.  The following induces an error, until -std1 is added to get
2572   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2573   array size at least.  It's necessary to write '\x00'==0 to get something
2574   that's true only with -std1.  */
2575int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2576
2577int test (int i, double x);
2578struct s1 {int (*f) (int a);};
2579struct s2 {int (*f) (double a);};
2580int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2581int argc;
2582char **argv;
2583int
2584main ()
2585{
2586return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2587  ;
2588  return 0;
2589}
2590_ACEOF
2591# Don't try gcc -ansi; that turns off useful extensions and
2592# breaks some systems' header files.
2593# AIX                   -qlanglvl=ansi
2594# Ultrix and OSF/1      -std1
2595# HP-UX 10.20 and later -Ae
2596# HP-UX older versions  -Aa -D_HPUX_SOURCE
2597# SVR4                  -Xc -D__EXTENSIONS__
2598for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2599do
2600  CC="$ac_save_CC $ac_arg"
2601  rm -f conftest.$ac_objext
2602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2603  (eval $ac_compile) 2>conftest.er1
2604  ac_status=$?
2605  grep -v '^ *+' conftest.er1 >conftest.err
2606  rm -f conftest.er1
2607  cat conftest.err >&5
2608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609  (exit $ac_status); } &&
2610         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612  (eval $ac_try) 2>&5
2613  ac_status=$?
2614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615  (exit $ac_status); }; } &&
2616         { ac_try='test -s conftest.$ac_objext'
2617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618  (eval $ac_try) 2>&5
2619  ac_status=$?
2620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621  (exit $ac_status); }; }; then
2622  ac_cv_prog_cc_stdc=$ac_arg
2623break
2624else
2625  echo "$as_me: failed program was:" >&5
2626sed 's/^/| /' conftest.$ac_ext >&5
2627
2628fi
2629rm -f conftest.err conftest.$ac_objext
2630done
2631rm -f conftest.$ac_ext conftest.$ac_objext
2632CC=$ac_save_CC
2633
2634fi
2635
2636case "x$ac_cv_prog_cc_stdc" in
2637  x|xno)
2638    echo "$as_me:$LINENO: result: none needed" >&5
2639echo "${ECHO_T}none needed" >&6 ;;
2640  *)
2641    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2642echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2643    CC="$CC $ac_cv_prog_cc_stdc" ;;
2644esac
2645
2646# Some people use a C++ compiler to compile C.  Since we use `exit',
2647# in C++ we need to declare it.  In case someone uses the same compiler
2648# for both compiling C and C++ we need to have the C++ compiler decide
2649# the declaration of exit, since it's the most demanding environment.
2650cat >conftest.$ac_ext <<_ACEOF
2651#ifndef __cplusplus
2652  choke me
2653#endif
2654_ACEOF
2655rm -f conftest.$ac_objext
2656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2657  (eval $ac_compile) 2>conftest.er1
2658  ac_status=$?
2659  grep -v '^ *+' conftest.er1 >conftest.err
2660  rm -f conftest.er1
2661  cat conftest.err >&5
2662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663  (exit $ac_status); } &&
2664         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666  (eval $ac_try) 2>&5
2667  ac_status=$?
2668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669  (exit $ac_status); }; } &&
2670         { ac_try='test -s conftest.$ac_objext'
2671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672  (eval $ac_try) 2>&5
2673  ac_status=$?
2674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675  (exit $ac_status); }; }; then
2676  for ac_declaration in \
2677   '' \
2678   'extern "C" void std::exit (int) throw (); using std::exit;' \
2679   'extern "C" void std::exit (int); using std::exit;' \
2680   'extern "C" void exit (int) throw ();' \
2681   'extern "C" void exit (int);' \
2682   'void exit (int);'
2683do
2684  cat >conftest.$ac_ext <<_ACEOF
2685/* confdefs.h.  */
2686_ACEOF
2687cat confdefs.h >>conftest.$ac_ext
2688cat >>conftest.$ac_ext <<_ACEOF
2689/* end confdefs.h.  */
2690$ac_declaration
2691#include <stdlib.h>
2692int
2693main ()
2694{
2695exit (42);
2696  ;
2697  return 0;
2698}
2699_ACEOF
2700rm -f conftest.$ac_objext
2701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2702  (eval $ac_compile) 2>conftest.er1
2703  ac_status=$?
2704  grep -v '^ *+' conftest.er1 >conftest.err
2705  rm -f conftest.er1
2706  cat conftest.err >&5
2707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708  (exit $ac_status); } &&
2709         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711  (eval $ac_try) 2>&5
2712  ac_status=$?
2713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714  (exit $ac_status); }; } &&
2715         { ac_try='test -s conftest.$ac_objext'
2716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717  (eval $ac_try) 2>&5
2718  ac_status=$?
2719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720  (exit $ac_status); }; }; then
2721  :
2722else
2723  echo "$as_me: failed program was:" >&5
2724sed 's/^/| /' conftest.$ac_ext >&5
2725
2726continue
2727fi
2728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2729  cat >conftest.$ac_ext <<_ACEOF
2730/* confdefs.h.  */
2731_ACEOF
2732cat confdefs.h >>conftest.$ac_ext
2733cat >>conftest.$ac_ext <<_ACEOF
2734/* end confdefs.h.  */
2735$ac_declaration
2736int
2737main ()
2738{
2739exit (42);
2740  ;
2741  return 0;
2742}
2743_ACEOF
2744rm -f conftest.$ac_objext
2745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2746  (eval $ac_compile) 2>conftest.er1
2747  ac_status=$?
2748  grep -v '^ *+' conftest.er1 >conftest.err
2749  rm -f conftest.er1
2750  cat conftest.err >&5
2751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752  (exit $ac_status); } &&
2753         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2754  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755  (eval $ac_try) 2>&5
2756  ac_status=$?
2757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758  (exit $ac_status); }; } &&
2759         { ac_try='test -s conftest.$ac_objext'
2760  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761  (eval $ac_try) 2>&5
2762  ac_status=$?
2763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764  (exit $ac_status); }; }; then
2765  break
2766else
2767  echo "$as_me: failed program was:" >&5
2768sed 's/^/| /' conftest.$ac_ext >&5
2769
2770fi
2771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2772done
2773rm -f conftest*
2774if test -n "$ac_declaration"; then
2775  echo '#ifdef __cplusplus' >>confdefs.h
2776  echo $ac_declaration      >>confdefs.h
2777  echo '#endif'             >>confdefs.h
2778fi
2779
2780else
2781  echo "$as_me: failed program was:" >&5
2782sed 's/^/| /' conftest.$ac_ext >&5
2783
2784fi
2785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2786ac_ext=c
2787ac_cpp='$CPP $CPPFLAGS'
2788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2790ac_compiler_gnu=$ac_cv_c_compiler_gnu
2791DEPDIR="${am__leading_dot}deps"
2792
2793          ac_config_commands="$ac_config_commands depfiles"
2794
2795
2796am_make=${MAKE-make}
2797cat > confinc << 'END'
2798am__doit:
2799        @echo done
2800.PHONY: am__doit
2801END
2802# If we don't find an include directive, just comment out the code.
2803echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2804echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2805am__include="#"
2806am__quote=
2807_am_result=none
2808# First try GNU make style include.
2809echo "include confinc" > confmf
2810# We grep out `Entering directory' and `Leaving directory'
2811# messages which can occur if `w' ends up in MAKEFLAGS.
2812# In particular we don't look at `^make:' because GNU make might
2813# be invoked under some other name (usually "gmake"), in which
2814# case it prints its new name instead of `make'.
2815if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2816   am__include=include
2817   am__quote=
2818   _am_result=GNU
2819fi
2820# Now try BSD make style include.
2821if test "$am__include" = "#"; then
2822   echo '.include "confinc"' > confmf
2823   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2824      am__include=.include
2825      am__quote="\""
2826      _am_result=BSD
2827   fi
2828fi
2829
2830
2831echo "$as_me:$LINENO: result: $_am_result" >&5
2832echo "${ECHO_T}$_am_result" >&6
2833rm -f confinc confmf
2834
2835# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2836if test "${enable_dependency_tracking+set}" = set; then
2837  enableval="$enable_dependency_tracking"
2838
2839fi;
2840if test "x$enable_dependency_tracking" != xno; then
2841  am_depcomp="$ac_aux_dir/depcomp"
2842  AMDEPBACKSLASH='\'
2843fi
2844
2845
2846if test "x$enable_dependency_tracking" != xno; then
2847  AMDEP_TRUE=
2848  AMDEP_FALSE='#'
2849else
2850  AMDEP_TRUE='#'
2851  AMDEP_FALSE=
2852fi
2853
2854
2855
2856
2857depcc="$CC"   am_compiler_list=
2858
2859echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2860echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2861if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2862  echo $ECHO_N "(cached) $ECHO_C" >&6
2863else
2864  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2865  # We make a subdir and do the tests there.  Otherwise we can end up
2866  # making bogus files that we don't know about and never remove.  For
2867  # instance it was reported that on HP-UX the gcc test will end up
2868  # making a dummy file named `D' -- because `-MD' means `put the output
2869  # in D'.
2870  mkdir conftest.dir
2871  # Copy depcomp to subdir because otherwise we won't find it if we're
2872  # using a relative directory.
2873  cp "$am_depcomp" conftest.dir
2874  cd conftest.dir
2875  # We will build objects and dependencies in a subdirectory because
2876  # it helps to detect inapplicable dependency modes.  For instance
2877  # both Tru64's cc and ICC support -MD to output dependencies as a
2878  # side effect of compilation, but ICC will put the dependencies in
2879  # the current directory while Tru64 will put them in the object
2880  # directory.
2881  mkdir sub
2882
2883  am_cv_CC_dependencies_compiler_type=none
2884  if test "$am_compiler_list" = ""; then
2885     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2886  fi
2887  for depmode in $am_compiler_list; do
2888    # Setup a source with many dependencies, because some compilers
2889    # like to wrap large dependency lists on column 80 (with \), and
2890    # we should not choose a depcomp mode which is confused by this.
2891    #
2892    # We need to recreate these files for each test, as the compiler may
2893    # overwrite some of them when testing with obscure command lines.
2894    # This happens at least with the AIX C compiler.
2895    : > sub/conftest.c
2896    for i in 1 2 3 4 5 6; do
2897      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2898      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2899      # Solaris 8's {/usr,}/bin/sh.
2900      touch sub/conftst$i.h
2901    done
2902    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2903
2904    case $depmode in
2905    nosideeffect)
2906      # after this tag, mechanisms are not by side-effect, so they'll
2907      # only be used when explicitly requested
2908      if test "x$enable_dependency_tracking" = xyes; then
2909        continue
2910      else
2911        break
2912      fi
2913      ;;
2914    none) break ;;
2915    esac
2916    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2917    # mode.  It turns out that the SunPro C++ compiler does not properly
2918    # handle `-M -o', and we need to detect this.
2919    if depmode=$depmode \
2920       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2921       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2922       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2923         >/dev/null 2>conftest.err &&
2924       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2925       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2926       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2927      # icc doesn't choke on unknown options, it will just issue warnings
2928      # or remarks (even with -Werror).  So we grep stderr for any message
2929      # that says an option was ignored or not supported.
2930      # When given -MP, icc 7.0 and 7.1 complain thusly:
2931      #   icc: Command line warning: ignoring option '-M'; no argument required
2932      # The diagnosis changed in icc 8.0:
2933      #   icc: Command line remark: option '-MP' not supported
2934      if (grep 'ignoring option' conftest.err ||
2935          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2936        am_cv_CC_dependencies_compiler_type=$depmode
2937        break
2938      fi
2939    fi
2940  done
2941
2942  cd ..
2943  rm -rf conftest.dir
2944else
2945  am_cv_CC_dependencies_compiler_type=none
2946fi
2947
2948fi
2949echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2950echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2951CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2952
2953
2954
2955if
2956  test "x$enable_dependency_tracking" != xno \
2957  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2958  am__fastdepCC_TRUE=
2959  am__fastdepCC_FALSE='#'
2960else
2961  am__fastdepCC_TRUE='#'
2962  am__fastdepCC_FALSE=
2963fi
2964
2965
2966echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2967echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2968if test "${lt_cv_path_SED+set}" = set; then
2969  echo $ECHO_N "(cached) $ECHO_C" >&6
2970else
2971  # Loop through the user's path and test for sed and gsed.
2972# Then use that list of sed's as ones to test for truncation.
2973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974for as_dir in $PATH
2975do
2976  IFS=$as_save_IFS
2977  test -z "$as_dir" && as_dir=.
2978  for lt_ac_prog in sed gsed; do
2979    for ac_exec_ext in '' $ac_executable_extensions; do
2980      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2981        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2982      fi
2983    done
2984  done
2985done
2986lt_ac_max=0
2987lt_ac_count=0
2988# Add /usr/xpg4/bin/sed as it is typically found on Solaris
2989# along with /bin/sed that truncates output.
2990for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2991  test ! -f $lt_ac_sed && break
2992  cat /dev/null > conftest.in
2993  lt_ac_count=0
2994  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2995  # Check for GNU sed and select it if it is found.
2996  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
2997    lt_cv_path_SED=$lt_ac_sed
2998    break
2999  fi
3000  while true; do
3001    cat conftest.in conftest.in >conftest.tmp
3002    mv conftest.tmp conftest.in
3003    cp conftest.in conftest.nl
3004    echo >>conftest.nl
3005    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3006    cmp -s conftest.out conftest.nl || break
3007    # 10000 chars as input seems more than enough
3008    test $lt_ac_count -gt 10 && break
3009    lt_ac_count=`expr $lt_ac_count + 1`
3010    if test $lt_ac_count -gt $lt_ac_max; then
3011      lt_ac_max=$lt_ac_count
3012      lt_cv_path_SED=$lt_ac_sed
3013    fi
3014  done
3015done
3016SED=$lt_cv_path_SED
3017
3018fi
3019
3020echo "$as_me:$LINENO: result: $SED" >&5
3021echo "${ECHO_T}$SED" >&6
3022
3023echo "$as_me:$LINENO: checking for egrep" >&5
3024echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3025if test "${ac_cv_prog_egrep+set}" = set; then
3026  echo $ECHO_N "(cached) $ECHO_C" >&6
3027else
3028  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3029    then ac_cv_prog_egrep='grep -E'
3030    else ac_cv_prog_egrep='egrep'
3031    fi
3032fi
3033echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3034echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3035 EGREP=$ac_cv_prog_egrep
3036
3037
3038
3039# Check whether --with-gnu-ld or --without-gnu-ld was given.
3040if test "${with_gnu_ld+set}" = set; then
3041  withval="$with_gnu_ld"
3042  test "$withval" = no || with_gnu_ld=yes
3043else
3044  with_gnu_ld=no
3045fi;
3046ac_prog=ld
3047if test "$GCC" = yes; then
3048  # Check if gcc -print-prog-name=ld gives a path.
3049  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3050echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3051  case $host in
3052  *-*-mingw*)
3053    # gcc leaves a trailing carriage return which upsets mingw
3054    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3055  *)
3056    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3057  esac
3058  case $ac_prog in
3059    # Accept absolute paths.
3060    [\\/]* | ?:[\\/]*)
3061      re_direlt='/[^/][^/]*/\.\./'
3062      # Canonicalize the pathname of ld
3063      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3064      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3065        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3066      done
3067      test -z "$LD" && LD="$ac_prog"
3068      ;;
3069  "")
3070    # If it fails, then pretend we aren't using GCC.
3071    ac_prog=ld
3072    ;;
3073  *)
3074    # If it is relative, then search for the first ld in PATH.
3075    with_gnu_ld=unknown
3076    ;;
3077  esac
3078elif test "$with_gnu_ld" = yes; then
3079  echo "$as_me:$LINENO: checking for GNU ld" >&5
3080echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3081else
3082  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3083echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3084fi
3085if test "${lt_cv_path_LD+set}" = set; then
3086  echo $ECHO_N "(cached) $ECHO_C" >&6
3087else
3088  if test -z "$LD"; then
3089  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3090  for ac_dir in $PATH; do
3091    IFS="$lt_save_ifs"
3092    test -z "$ac_dir" && ac_dir=.
3093    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3094      lt_cv_path_LD="$ac_dir/$ac_prog"
3095      # Check to see if the program is GNU ld.  I'd rather use --version,
3096      # but apparently some GNU ld's only accept -v.
3097      # Break only if it was the GNU/non-GNU ld that we prefer.
3098      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3099      *GNU* | *'with BFD'*)
3100        test "$with_gnu_ld" != no && break
3101        ;;
3102      *)
3103        test "$with_gnu_ld" != yes && break
3104        ;;
3105      esac
3106    fi
3107  done
3108  IFS="$lt_save_ifs"
3109else
3110  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3111fi
3112fi
3113
3114LD="$lt_cv_path_LD"
3115if test -n "$LD"; then
3116  echo "$as_me:$LINENO: result: $LD" >&5
3117echo "${ECHO_T}$LD" >&6
3118else
3119  echo "$as_me:$LINENO: result: no" >&5
3120echo "${ECHO_T}no" >&6
3121fi
3122test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3123echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3124   { (exit 1); exit 1; }; }
3125echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3126echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3127if test "${lt_cv_prog_gnu_ld+set}" = set; then
3128  echo $ECHO_N "(cached) $ECHO_C" >&6
3129else
3130  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3131case `$LD -v 2>&1 </dev/null` in
3132*GNU* | *'with BFD'*)
3133  lt_cv_prog_gnu_ld=yes
3134  ;;
3135*)
3136  lt_cv_prog_gnu_ld=no
3137  ;;
3138esac
3139fi
3140echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3141echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3142with_gnu_ld=$lt_cv_prog_gnu_ld
3143
3144
3145# Find a good install program.  We prefer a C program (faster),
3146# so one script is as good as another.  But avoid the broken or
3147# incompatible versions:
3148# SysV /etc/install, /usr/sbin/install
3149# SunOS /usr/etc/install
3150# IRIX /sbin/install
3151# AIX /bin/install
3152# AmigaOS /C/install, which installs bootblocks on floppy discs
3153# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3154# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3155# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3156# OS/2's system install, which has a completely different semantic
3157# ./install, which can be erroneously created by make from ./install.sh.
3158echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3159echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3160if test -z "$INSTALL"; then
3161if test "${ac_cv_path_install+set}" = set; then
3162  echo $ECHO_N "(cached) $ECHO_C" >&6
3163else
3164  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165for as_dir in $PATH
3166do
3167  IFS=$as_save_IFS
3168  test -z "$as_dir" && as_dir=.
3169  # Account for people who put trailing slashes in PATH elements.
3170case $as_dir/ in
3171  ./ | .// | /cC/* | \
3172  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3173  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3174  /usr/ucb/* ) ;;
3175  *)
3176    # OSF1 and SCO ODT 3.0 have their own names for install.
3177    # Don't use installbsd from OSF since it installs stuff as root
3178    # by default.
3179    for ac_prog in ginstall scoinst install; do
3180      for ac_exec_ext in '' $ac_executable_extensions; do
3181        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3182          if test $ac_prog = install &&
3183            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3184            # AIX install.  It has an incompatible calling convention.
3185            :
3186          elif test $ac_prog = install &&
3187            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3188            # program-specific install script used by HP pwplus--don't use.
3189            :
3190          else
3191            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3192            break 3
3193          fi
3194        fi
3195      done
3196    done
3197    ;;
3198esac
3199done
3200
3201
3202fi
3203  if test "${ac_cv_path_install+set}" = set; then
3204    INSTALL=$ac_cv_path_install
3205  else
3206    # As a last resort, use the slow shell script.  We don't cache a
3207    # path for INSTALL within a source directory, because that will
3208    # break other packages using the cache if that directory is
3209    # removed, or if the path is relative.
3210    INSTALL=$ac_install_sh
3211  fi
3212fi
3213echo "$as_me:$LINENO: result: $INSTALL" >&5
3214echo "${ECHO_T}$INSTALL" >&6
3215
3216# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3217# It thinks the first close brace ends the variable substitution.
3218test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3219
3220test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3221
3222test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3223
3224
3225
3226AP_VERSION=2.0.40
3227
3228
3229# Check whether --with-apxs or --without-apxs was given.
3230if test "${with_apxs+set}" = set; then
3231  withval="$with_apxs"
3232  apxs_prefix="$withval"
3233else
3234  apxs_prefix="/usr"
3235
3236fi;
3237
3238# Check whether --enable-apachetest or --disable-apachetest was given.
3239if test "${enable_apachetest+set}" = set; then
3240  enableval="$enable_apachetest"
3241
3242else
3243  enable_apachetest=yes
3244
3245fi;
3246
3247    if test -x $apxs_prefix -a ! -d $apxs_prefix; then
3248        APXS_BIN=$apxs_prefix
3249    else
3250        test_paths="$apxs_prefix:$apxs_prefix/bin:$apxs_prefix/sbin"
3251        test_paths="${test_paths}:/usr/bin:/usr/sbin"
3252        test_paths="${test_paths}:/usr/local/bin:/usr/local/sbin:/usr/local/apache2/bin"
3253        # Extract the first word of "apxs", so it can be a program name with args.
3254set dummy apxs; ac_word=$2
3255echo "$as_me:$LINENO: checking for $ac_word" >&5
3256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3257if test "${ac_cv_path_APXS_BIN+set}" = set; then
3258  echo $ECHO_N "(cached) $ECHO_C" >&6
3259else
3260  case $APXS_BIN in
3261  [\\/]* | ?:[\\/]*)
3262  ac_cv_path_APXS_BIN="$APXS_BIN" # Let the user override the test with a path.
3263  ;;
3264  *)
3265  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266for as_dir in $test_paths
3267do
3268  IFS=$as_save_IFS
3269  test -z "$as_dir" && as_dir=.
3270  for ac_exec_ext in '' $ac_executable_extensions; do
3271  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3272    ac_cv_path_APXS_BIN="$as_dir/$ac_word$ac_exec_ext"
3273    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3274    break 2
3275  fi
3276done
3277done
3278
3279  test -z "$ac_cv_path_APXS_BIN" && ac_cv_path_APXS_BIN="no"
3280  ;;
3281esac
3282fi
3283APXS_BIN=$ac_cv_path_APXS_BIN
3284
3285if test -n "$APXS_BIN"; then
3286  echo "$as_me:$LINENO: result: $APXS_BIN" >&5
3287echo "${ECHO_T}$APXS_BIN" >&6
3288else
3289  echo "$as_me:$LINENO: result: no" >&5
3290echo "${ECHO_T}no" >&6
3291fi
3292
3293    fi
3294    min_apache13_version=no
3295    min_apache20_version=$AP_VERSION
3296    no_apxs=""
3297    if test "$APXS_BIN" = "no"; then
3298        { { echo "$as_me:$LINENO: error: *** The apxs binary installed by apache could not be found!" >&5
3299echo "$as_me: error: *** The apxs binary installed by apache could not be found!" >&2;}
3300   { (exit 1); exit 1; }; }
3301        { { echo "$as_me:$LINENO: error: *** Use the --with-apxs option with the full path to apxs" >&5
3302echo "$as_me: error: *** Use the --with-apxs option with the full path to apxs" >&2;}
3303   { (exit 1); exit 1; }; }
3304    else
3305        AP_INCLUDES="-I`$APXS_BIN -q INCLUDEDIR 2>/dev/null`"
3306        AP_INCLUDEDIR="`$APXS_BIN -q INCLUDEDIR 2>/dev/null`"
3307
3308        AP_PREFIX="`$APXS_BIN -q prefix 2>/dev/null`"
3309
3310        AP_BINDIR="`$APXS_BIN -q bindir 2>/dev/null`"
3311        AP_SBINDIR="`$APXS_BIN -q sbindir 2>/dev/null`"
3312        AP_SYSCONFDIR="`$APXS_BIN -q sysconfdir 2>/dev/null`"
3313
3314        APXS_CFLAGS=""
3315        for flag in CFLAGS EXTRA_CFLAGS EXTRA_CPPFLAGS NOTEST_CFLAGS; do
3316            APXS_CFLAGS="$APXS_CFLAGS `$APXS_BIN -q $flag 2>/dev/null`"
3317        done
3318
3319        AP_CPPFLAGS="$APXS_CPPFLAGS $AP_INCLUDES"
3320        AP_CFLAGS="$APXS_CFLAGS $AP_INCLUDES"
3321
3322        AP_LIBEXECDIR=`$APXS_BIN -q LIBEXECDIR 2>/dev/null`
3323
3324        if test "x$enable_apachetest" = "xyes" ; then
3325            if test "$min_apache20_version" != "no"; then
3326                APR_CONFIG="`$APXS_BIN -q APR_BINDIR 2>/dev/null`/apr-1-config"
3327                if test ! -x $APR_CONFIG; then
3328                    APR_CONFIG="`$APXS_BIN -q APR_BINDIR 2>/dev/null`/apr-config"
3329                fi
3330                APR_INCLUDES=`$APR_CONFIG --includes 2>/dev/null`
3331                APR_VERSION=`$APR_CONFIG --version 2>/dev/null`
3332                APU_CONFIG="`$APXS_BIN -q APU_BINDIR 2>/dev/null`/apu-1-config"
3333                if test ! -x $APU_CONFIG; then
3334                    APU_CONFIG="`$APXS_BIN -q APU_BINDIR 2>/dev/null`/apu-config"
3335                fi
3336                APU_INCLUDES=`$APU_CONFIG --includes 2>/dev/null`
3337                APU_VERSION=`$APU_CONFIG --version 2>/dev/null`
3338
3339                echo "$as_me:$LINENO: checking for Apache 2.0 version >= $min_apache20_version" >&5
3340echo $ECHO_N "checking for Apache 2.0 version >= $min_apache20_version... $ECHO_C" >&6
3341
3342    releasetest=20
3343    min_apache_version="$min_apache20_version"
3344    no_apache=""
3345    ac_save_CFLAGS="$CFLAGS"
3346    CFLAGS="$CFLAGS $AP_CFLAGS"
3347    if test $releasetest -eq 20; then
3348        CFLAGS="$CFLAGS $APU_INCLUDES $APR_INCLUDES"
3349    fi
3350    if test "$cross_compiling" = yes; then
3351  echo $ac_n "cross compiling; assumed OK... $ac_c"
3352else
3353  cat >conftest.$ac_ext <<_ACEOF
3354/* confdefs.h.  */
3355_ACEOF
3356cat confdefs.h >>conftest.$ac_ext
3357cat >>conftest.$ac_ext <<_ACEOF
3358/* end confdefs.h.  */
3359
3360#include <stdio.h>
3361#include <stdlib.h>
3362#include <string.h>
3363#include "httpd.h"
3364
3365#ifndef AP_SERVER_BASEREVISION
3366    #define AP_SERVER_BASEREVISION SERVER_BASEREVISION
3367#endif
3368
3369char* my_strdup (char *str)
3370{
3371    char *new_str;
3372
3373    if (str) {
3374        new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
3375        strcpy (new_str, str);
3376    } else
3377        new_str = NULL;
3378
3379    return new_str;
3380}
3381
3382int main (int argc, char *argv[])
3383{
3384    int major1, minor1, micro1;
3385    int major2, minor2, micro2;
3386    char *tmp_version;
3387
3388    { FILE *fp = fopen("conf.apachetest", "a"); if ( fp ) fclose(fp); }
3389
3390    tmp_version = my_strdup("$min_apache_version");
3391    if (sscanf(tmp_version, "%d.%d.%d", &major1, &minor1, &micro1) != 3) {
3392        printf("%s, bad version string\n", "$min_apache_version");
3393        exit(1);
3394    }
3395    tmp_version = my_strdup(AP_SERVER_BASEREVISION);
3396    if (sscanf(tmp_version, "%d.%d.%d", &major2, &minor2, &micro2) != 3) {
3397        printf("%s, bad version string\n", AP_SERVER_BASEREVISION);
3398        exit(1);
3399    }
3400
3401    if ( (major2 == major1) &&
3402        ( (minor2 > minor1) ||
3403        ((minor2 == minor1) && (micro2 >= micro1)) ) ) {
3404        exit(0);
3405    } else {
3406        exit(1);
3407    }
3408}
3409
3410
3411_ACEOF
3412rm -f conftest$ac_exeext
3413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3414  (eval $ac_link) 2>&5
3415  ac_status=$?
3416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3419  (eval $ac_try) 2>&5
3420  ac_status=$?
3421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422  (exit $ac_status); }; }; then
3423  :
3424else
3425  echo "$as_me: program exited with status $ac_status" >&5
3426echo "$as_me: failed program was:" >&5
3427sed 's/^/| /' conftest.$ac_ext >&5
3428
3429( exit $ac_status )
3430no_apache=yes
3431fi
3432rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3433fi
3434    CFLAGS="$ac_save_CFLAGS"
3435
3436    if test "x$no_apache" = x ; then
3437        echo "$as_me:$LINENO: result: yes" >&5
3438echo "${ECHO_T}yes" >&6
3439
3440cat >>confdefs.h <<\_ACEOF
3441#define WITH_APACHE20 1
3442_ACEOF
3443
3444                    AP_VERSION="2.0"
3445                    APXS_EXTENSION=.la
3446                    if test -f `$APXS_BIN -q INCLUDEDIR`/mod_status.h; then
3447
3448cat >>confdefs.h <<\_ACEOF
3449#define HAVE_MOD_STATUS_H 1
3450_ACEOF
3451
3452                    fi
3453                    AP_CFLAGS="$AP_CFLAGS $APU_INCLUDES $APR_INCLUDES"
3454                    AP_CPPFLAGS="$AP_CPPFLAGS $APU_INCLUDES $APR_INCLUDES"
3455                    AP_DEFS="-DWITH_APACHE20"
3456                    :
3457       else
3458        if test -f conf.apachetest ; then
3459            :
3460        else
3461            echo "*** Could not run Apache test program, checking why..."
3462            CFLAGS="$CFLAGS $AP_CFLAGS"
3463            if test $releasetest -eq 20; then
3464                CFLAGS="$CFLAGS $APU_INCLUDES $APR_INCLUDES"
3465            fi
3466            cat >conftest.$ac_ext <<_ACEOF
3467/* confdefs.h.  */
3468_ACEOF
3469cat confdefs.h >>conftest.$ac_ext
3470cat >>conftest.$ac_ext <<_ACEOF
3471/* end confdefs.h.  */
3472
3473#include <stdio.h>
3474#include "httpd.h"
3475
3476int main(int argc, char *argv[])
3477{ return 0; }
3478#undef main
3479#define main K_and_R_C_main
3480
3481int
3482main ()
3483{
3484 return 0;
3485  ;
3486  return 0;
3487}
3488_ACEOF
3489rm -f conftest.$ac_objext conftest$ac_exeext
3490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3491  (eval $ac_link) 2>conftest.er1
3492  ac_status=$?
3493  grep -v '^ *+' conftest.er1 >conftest.err
3494  rm -f conftest.er1
3495  cat conftest.err >&5
3496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497  (exit $ac_status); } &&
3498         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3499  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3500  (eval $ac_try) 2>&5
3501  ac_status=$?
3502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503  (exit $ac_status); }; } &&
3504         { ac_try='test -s conftest$ac_exeext'
3505  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506  (eval $ac_try) 2>&5
3507  ac_status=$?
3508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509  (exit $ac_status); }; }; then
3510   echo "*** The test program compiled, but failed to run. Check config.log"
3511else
3512  echo "$as_me: failed program was:" >&5
3513sed 's/^/| /' conftest.$ac_ext >&5
3514
3515 echo "*** The test program failed to compile or link. Check config.log"
3516fi
3517rm -f conftest.err conftest.$ac_objext \
3518      conftest$ac_exeext conftest.$ac_ext
3519            CFLAGS="$ac_save_CFLAGS"
3520        fi
3521         echo "$as_me:$LINENO: result: no" >&5
3522echo "${ECHO_T}no" >&6
3523                    if test "x$min_apache13_version" = "xno"; then
3524                        { { echo "$as_me:$LINENO: error: *** Apache version $AP_VERSION not found!" >&5
3525echo "$as_me: error: *** Apache version $AP_VERSION not found!" >&2;}
3526   { (exit 1); exit 1; }; }
3527
3528                    fi
3529
3530      fi
3531      rm -f conf.apachetest
3532
3533            fi
3534            if test "$min_apache13_version" != "no" -a "x$AP_VERSION" = "x"; then
3535                APR_INCLUDES=""
3536                APR_VERSION=""
3537                APU_INCLUDES=""
3538                APU_VERSION=""
3539                echo "$as_me:$LINENO: checking for Apache 1.3 version >= $min_apache13_version" >&5
3540echo $ECHO_N "checking for Apache 1.3 version >= $min_apache13_version... $ECHO_C" >&6
3541
3542    releasetest=13
3543    min_apache_version="$min_apache13_version"
3544    no_apache=""
3545    ac_save_CFLAGS="$CFLAGS"
3546    CFLAGS="$CFLAGS $AP_CFLAGS"
3547    if test $releasetest -eq 20; then
3548        CFLAGS="$CFLAGS $APU_INCLUDES $APR_INCLUDES"
3549    fi
3550    if test "$cross_compiling" = yes; then
3551  echo $ac_n "cross compiling; assumed OK... $ac_c"
3552else
3553  cat >conftest.$ac_ext <<_ACEOF
3554/* confdefs.h.  */
3555_ACEOF
3556cat confdefs.h >>conftest.$ac_ext
3557cat >>conftest.$ac_ext <<_ACEOF
3558/* end confdefs.h.  */
3559
3560#include <stdio.h>
3561#include <stdlib.h>
3562#include <string.h>
3563#include "httpd.h"
3564
3565#ifndef AP_SERVER_BASEREVISION
3566    #define AP_SERVER_BASEREVISION SERVER_BASEREVISION
3567#endif
3568
3569char* my_strdup (char *str)
3570{
3571    char *new_str;
3572
3573    if (str) {
3574        new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
3575        strcpy (new_str, str);
3576    } else
3577        new_str = NULL;
3578
3579    return new_str;
3580}
3581
3582int main (int argc, char *argv[])
3583{
3584    int major1, minor1, micro1;
3585    int major2, minor2, micro2;
3586    char *tmp_version;
3587
3588    { FILE *fp = fopen("conf.apachetest", "a"); if ( fp ) fclose(fp); }
3589
3590    tmp_version = my_strdup("$min_apache_version");
3591    if (sscanf(tmp_version, "%d.%d.%d", &major1, &minor1, &micro1) != 3) {
3592        printf("%s, bad version string\n", "$min_apache_version");
3593        exit(1);
3594    }
3595    tmp_version = my_strdup(AP_SERVER_BASEREVISION);
3596    if (sscanf(tmp_version, "%d.%d.%d", &major2, &minor2, &micro2) != 3) {
3597        printf("%s, bad version string\n", AP_SERVER_BASEREVISION);
3598        exit(1);
3599    }
3600
3601    if ( (major2 == major1) &&
3602        ( (minor2 > minor1) ||
3603        ((minor2 == minor1) && (micro2 >= micro1)) ) ) {
3604        exit(0);
3605    } else {
3606        exit(1);
3607    }
3608}
3609
3610
3611_ACEOF
3612rm -f conftest$ac_exeext
3613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3614  (eval $ac_link) 2>&5
3615  ac_status=$?
3616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619  (eval $ac_try) 2>&5
3620  ac_status=$?
3621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622  (exit $ac_status); }; }; then
3623  :
3624else
3625  echo "$as_me: program exited with status $ac_status" >&5
3626echo "$as_me: failed program was:" >&5
3627sed 's/^/| /' conftest.$ac_ext >&5
3628
3629( exit $ac_status )
3630no_apache=yes
3631fi
3632rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3633fi
3634    CFLAGS="$ac_save_CFLAGS"
3635
3636    if test "x$no_apache" = x ; then
3637        echo "$as_me:$LINENO: result: yes" >&5
3638echo "${ECHO_T}yes" >&6
3639
3640cat >>confdefs.h <<\_ACEOF
3641#define WITH_APACHE13 1
3642_ACEOF
3643
3644                    AP_VERSION="1.3"
3645                    APXS_EXTENSION=.so
3646                    AP_CFLAGS="-g $AP_CFLAGS"
3647                    AP_DEFS="-DWITH_APACHE13"
3648                    :
3649       else
3650        if test -f conf.apachetest ; then
3651            :
3652        else
3653            echo "*** Could not run Apache test program, checking why..."
3654            CFLAGS="$CFLAGS $AP_CFLAGS"
3655            if test $releasetest -eq 20; then
3656                CFLAGS="$CFLAGS $APU_INCLUDES $APR_INCLUDES"
3657            fi
3658            cat >conftest.$ac_ext <<_ACEOF
3659/* confdefs.h.  */
3660_ACEOF
3661cat confdefs.h >>conftest.$ac_ext
3662cat >>conftest.$ac_ext <<_ACEOF
3663/* end confdefs.h.  */
3664
3665#include <stdio.h>
3666#include "httpd.h"
3667
3668int main(int argc, char *argv[])
3669{ return 0; }
3670#undef main
3671#define main K_and_R_C_main
3672
3673int
3674main ()
3675{
3676 return 0;
3677  ;
3678  return 0;
3679}
3680_ACEOF
3681rm -f conftest.$ac_objext conftest$ac_exeext
3682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3683  (eval $ac_link) 2>conftest.er1
3684  ac_status=$?
3685  grep -v '^ *+' conftest.er1 >conftest.err
3686  rm -f conftest.er1
3687  cat conftest.err >&5
3688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689  (exit $ac_status); } &&
3690         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3692  (eval $ac_try) 2>&5
3693  ac_status=$?
3694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695  (exit $ac_status); }; } &&
3696         { ac_try='test -s conftest$ac_exeext'
3697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3698  (eval $ac_try) 2>&5
3699  ac_status=$?
3700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701  (exit $ac_status); }; }; then
3702   echo "*** The test program compiled, but failed to run. Check config.log"
3703else
3704  echo "$as_me: failed program was:" >&5
3705sed 's/^/| /' conftest.$ac_ext >&5
3706
3707 echo "*** The test program failed to compile or link. Check config.log"
3708fi
3709rm -f conftest.err conftest.$ac_objext \
3710      conftest$ac_exeext conftest.$ac_ext
3711            CFLAGS="$ac_save_CFLAGS"
3712        fi
3713         echo "$as_me:$LINENO: result: no" >&5
3714echo "${ECHO_T}no" >&6
3715                    { { echo "$as_me:$LINENO: error: *** Apache version $AP_VERSION not found!" >&5
3716echo "$as_me: error: *** Apache version $AP_VERSION not found!" >&2;}
3717   { (exit 1); exit 1; }; }
3718
3719
3720      fi
3721      rm -f conf.apachetest
3722
3723            fi
3724        fi
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741    fi
3742
3743
3744LIBTOOL="`${APR_CONFIG} --apr-libtool`"
3745
3746
3747MIN_TLS_VERSION=1.2.0
3748
3749
3750# Check whether --with-libgnutls or --without-libgnutls was given.
3751if test "${with_libgnutls+set}" = set; then
3752  withval="$with_libgnutls"
3753  tls_prefix="$withval"
3754else
3755  tls_prefix="/usr"
3756
3757fi;
3758
3759    if test -x $tls_prefix -a ! -d $tls_prefix; then
3760        GTLS_BIN=$tls_prefix
3761    else
3762        test_paths="$tls_prefix:$tls_prefix/bin:$tls_prefix/sbin"
3763        test_paths="${test_paths}:/usr/bin:/usr/sbin"
3764        test_paths="${test_paths}:/usr/local/bin:/usr/local/sbin"
3765        # Extract the first word of "libgnutls-config", so it can be a program name with args.
3766set dummy libgnutls-config; ac_word=$2
3767echo "$as_me:$LINENO: checking for $ac_word" >&5
3768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3769if test "${ac_cv_path_GTLS_BIN+set}" = set; then
3770  echo $ECHO_N "(cached) $ECHO_C" >&6
3771else
3772  case $GTLS_BIN in
3773  [\\/]* | ?:[\\/]*)
3774  ac_cv_path_GTLS_BIN="$GTLS_BIN" # Let the user override the test with a path.
3775  ;;
3776  *)
3777  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778for as_dir in $test_paths
3779do
3780  IFS=$as_save_IFS
3781  test -z "$as_dir" && as_dir=.
3782  for ac_exec_ext in '' $ac_executable_extensions; do
3783  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3784    ac_cv_path_GTLS_BIN="$as_dir/$ac_word$ac_exec_ext"
3785    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3786    break 2
3787  fi
3788done
3789done
3790
3791  test -z "$ac_cv_path_GTLS_BIN" && ac_cv_path_GTLS_BIN="no"
3792  ;;
3793esac
3794fi
3795GTLS_BIN=$ac_cv_path_GTLS_BIN
3796
3797if test -n "$GTLS_BIN"; then
3798  echo "$as_me:$LINENO: result: $GTLS_BIN" >&5
3799echo "${ECHO_T}$GTLS_BIN" >&6
3800else
3801  echo "$as_me:$LINENO: result: no" >&5
3802echo "${ECHO_T}no" >&6
3803fi
3804
3805    fi
3806
3807    if test "$GTLS_BIN" = "no"; then
3808        { { echo "$as_me:$LINENO: error: *** The libgnutls-config binary installed by GnuTLS could not be found!" >&5
3809echo "$as_me: error: *** The libgnutls-config binary installed by GnuTLS could not be found!" >&2;}
3810   { (exit 1); exit 1; }; }
3811        { { echo "$as_me:$LINENO: error: *** Use the --with-libgnutls option with the full path to libgnutls-config" >&5
3812echo "$as_me: error: *** Use the --with-libgnutls option with the full path to libgnutls-config" >&2;}
3813   { (exit 1); exit 1; }; }
3814    else
3815                LIBGNUTLS_LIBS="`$GTLS_BIN --libs`"
3816        LIBGNUTLS_CFLAGS="`$GTLS_BIN --cflags`"
3817        LIBGNUTLS_VERSION="`$GTLS_BIN --version`"
3818        LIBGNUTLS_PREFIX="`$GTLS_BIN --prefix`"
3819        GNUTLS_CERTTOOL="${LIBGNUTLS_PREFIX}/bin/certtool"
3820
3821
3822
3823
3824
3825    fi
3826
3827
3828have_apr_memcache=0
3829
3830
3831# Check whether --with-apr-memcache or --without-apr-memcache was given.
3832if test "${with_apr_memcache+set}" = set; then
3833  withval="$with_apr_memcache"
3834  mc_path="$withval"
3835else
3836  :
3837fi;
3838
3839if test -z $mc_path; then
3840    test_paths="/usr/local /usr /usr/local/apache2"
3841else
3842    test_paths="${mc_path}"
3843fi
3844
3845if test -n ${AP_PREFIX}; then
3846    test_paths="${AP_PREFIX} ${test_paths}"
3847fi
3848
3849for x in $test_paths ; do
3850    echo "$as_me:$LINENO: checking for apr_memcache library in ${x}/lib" >&5
3851echo $ECHO_N "checking for apr_memcache library in ${x}/lib... $ECHO_C" >&6
3852    if test -f ${x}/lib/libapr_memcache.so; then
3853        echo "$as_me:$LINENO: result: yes" >&5
3854echo "${ECHO_T}yes" >&6
3855        save_CFLAGS=$CFLAGS
3856        save_LDFLAGS=$LDFLAGS
3857        CFLAGS="$CFLAGS"
3858        LDFLAGS="-L$x/lib $LDFLAGS"
3859        echo "$as_me:$LINENO: checking for apr_memcache_create in -lapr_memcache" >&5
3860echo $ECHO_N "checking for apr_memcache_create in -lapr_memcache... $ECHO_C" >&6
3861if test "${ac_cv_lib_apr_memcache_apr_memcache_create+set}" = set; then
3862  echo $ECHO_N "(cached) $ECHO_C" >&6
3863else
3864  ac_check_lib_save_LIBS=$LIBS
3865LIBS="-lapr_memcache  $LIBS"
3866cat >conftest.$ac_ext <<_ACEOF
3867/* confdefs.h.  */
3868_ACEOF
3869cat confdefs.h >>conftest.$ac_ext
3870cat >>conftest.$ac_ext <<_ACEOF
3871/* end confdefs.h.  */
3872
3873/* Override any gcc2 internal prototype to avoid an error.  */
3874#ifdef __cplusplus
3875extern "C"
3876#endif
3877/* We use char because int might match the return type of a gcc2
3878   builtin and then its argument prototype would still apply.  */
3879char apr_memcache_create ();
3880int
3881main ()
3882{
3883apr_memcache_create ();
3884  ;
3885  return 0;
3886}
3887_ACEOF
3888rm -f conftest.$ac_objext conftest$ac_exeext
3889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3890  (eval $ac_link) 2>conftest.er1
3891  ac_status=$?
3892  grep -v '^ *+' conftest.er1 >conftest.err
3893  rm -f conftest.er1
3894  cat conftest.err >&5
3895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896  (exit $ac_status); } &&
3897         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3898  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3899  (eval $ac_try) 2>&5
3900  ac_status=$?
3901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902  (exit $ac_status); }; } &&
3903         { ac_try='test -s conftest$ac_exeext'
3904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3905  (eval $ac_try) 2>&5
3906  ac_status=$?
3907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908  (exit $ac_status); }; }; then
3909  ac_cv_lib_apr_memcache_apr_memcache_create=yes
3910else
3911  echo "$as_me: failed program was:" >&5
3912sed 's/^/| /' conftest.$ac_ext >&5
3913
3914ac_cv_lib_apr_memcache_apr_memcache_create=no
3915fi
3916rm -f conftest.err conftest.$ac_objext \
3917      conftest$ac_exeext conftest.$ac_ext
3918LIBS=$ac_check_lib_save_LIBS
3919fi
3920echo "$as_me:$LINENO: result: $ac_cv_lib_apr_memcache_apr_memcache_create" >&5
3921echo "${ECHO_T}$ac_cv_lib_apr_memcache_apr_memcache_create" >&6
3922if test $ac_cv_lib_apr_memcache_apr_memcache_create = yes; then
3923
3924            APR_MEMCACHE_LIBS="-L$x/lib -lapr_memcache"
3925            APR_MEMCACHE_CFLAGS="-I$x/include/apr_memcache-0"
3926
3927fi
3928
3929        CFLAGS=$save_CFLAGS
3930        LDFLAGS=$save_LDFLAGS
3931        break
3932    else
3933        echo "$as_me:$LINENO: result: no" >&5
3934echo "${ECHO_T}no" >&6
3935    fi
3936done
3937
3938
3939
3940
3941if test -z "${APR_MEMCACHE_LIBS}"; then
3942  { echo "$as_me:$LINENO: *** memcache library not found." >&5
3943echo "$as_me: *** memcache library not found." >&6;}
3944  have_apr_memcache=0
3945else
3946  { echo "$as_me:$LINENO: using '${APR_MEMCACHE_LIBS}' for memcache" >&5
3947echo "$as_me: using '${APR_MEMCACHE_LIBS}' for memcache" >&6;}
3948  have_apr_memcache=1
3949fi
3950
3951
3952
3953MODULE_CFLAGS="${LIBGNUTLS_CFLAGS} ${APR_MEMCACHE_CFLAGS} ${APXS_CFLAGS} ${AP_INCLUDES} ${APR_INCLUDES} ${APU_INCLUDES}"
3954MODULE_LIBS="${APR_MEMCACHE_LIBS} ${LIBGNUTLS_LIBS}"
3955
3956
3957
3958
3959                                        ac_config_files="$ac_config_files Makefile src/Makefile include/mod_gnutls.h data/Makefile"
3960
3961cat >confcache <<\_ACEOF
3962# This file is a shell script that caches the results of configure
3963# tests run on this system so they can be shared between configure
3964# scripts and configure runs, see configure's option --config-cache.
3965# It is not useful on other systems.  If it contains results you don't
3966# want to keep, you may remove or edit it.
3967#
3968# config.status only pays attention to the cache file if you give it
3969# the --recheck option to rerun configure.
3970#
3971# `ac_cv_env_foo' variables (set or unset) will be overridden when
3972# loading this file, other *unset* `ac_cv_foo' will be assigned the
3973# following values.
3974
3975_ACEOF
3976
3977# The following way of writing the cache mishandles newlines in values,
3978# but we know of no workaround that is simple, portable, and efficient.
3979# So, don't put newlines in cache variables' values.
3980# Ultrix sh set writes to stderr and can't be redirected directly,
3981# and sets the high bit in the cache file unless we assign to the vars.
3982{
3983  (set) 2>&1 |
3984    case `(ac_space=' '; set | grep ac_space) 2>&1` in
3985    *ac_space=\ *)
3986      # `set' does not quote correctly, so add quotes (double-quote
3987      # substitution turns \\\\ into \\, and sed turns \\ into \).
3988      sed -n \
3989        "s/'/'\\\\''/g;
3990          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3991      ;;
3992    *)
3993      # `set' quotes correctly as required by POSIX, so do not add quotes.
3994      sed -n \
3995        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3996      ;;
3997    esac;
3998} |
3999  sed '
4000     t clear
4001     : clear
4002     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4003     t end
4004     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4005     : end' >>confcache
4006if diff $cache_file confcache >/dev/null 2>&1; then :; else
4007  if test -w $cache_file; then
4008    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4009    cat confcache >$cache_file
4010  else
4011    echo "not updating unwritable cache $cache_file"
4012  fi
4013fi
4014rm -f confcache
4015
4016test "x$prefix" = xNONE && prefix=$ac_default_prefix
4017# Let make expand exec_prefix.
4018test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4019
4020# VPATH may cause trouble with some makes, so we remove $(srcdir),
4021# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4022# trailing colons and then remove the whole line if VPATH becomes empty
4023# (actually we leave an empty line to preserve line numbers).
4024if test "x$srcdir" = x.; then
4025  ac_vpsub='/^[  ]*VPATH[        ]*=/{
4026s/:*\$(srcdir):*/:/;
4027s/:*\${srcdir}:*/:/;
4028s/:*@srcdir@:*/:/;
4029s/^\([^=]*=[     ]*\):*/\1/;
4030s/:*$//;
4031s/^[^=]*=[       ]*$//;
4032}'
4033fi
4034
4035DEFS=-DHAVE_CONFIG_H
4036
4037ac_libobjs=
4038ac_ltlibobjs=
4039for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4040  # 1. Remove the extension, and $U if already installed.
4041  ac_i=`echo "$ac_i" |
4042         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4043  # 2. Add them.
4044  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4045  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4046done
4047LIBOBJS=$ac_libobjs
4048
4049LTLIBOBJS=$ac_ltlibobjs
4050
4051
4052if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
4053  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
4054Usually this means the macro was only invoked conditionally." >&5
4055echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
4056Usually this means the macro was only invoked conditionally." >&2;}
4057   { (exit 1); exit 1; }; }
4058fi
4059if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4060  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
4061Usually this means the macro was only invoked conditionally." >&5
4062echo "$as_me: error: conditional \"AMDEP\" was never defined.
4063Usually this means the macro was only invoked conditionally." >&2;}
4064   { (exit 1); exit 1; }; }
4065fi
4066if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4067  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
4068Usually this means the macro was only invoked conditionally." >&5
4069echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
4070Usually this means the macro was only invoked conditionally." >&2;}
4071   { (exit 1); exit 1; }; }
4072fi
4073
4074: ${CONFIG_STATUS=./config.status}
4075ac_clean_files_save=$ac_clean_files
4076ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4077{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4078echo "$as_me: creating $CONFIG_STATUS" >&6;}
4079cat >$CONFIG_STATUS <<_ACEOF
4080#! $SHELL
4081# Generated by $as_me.
4082# Run this file to recreate the current configuration.
4083# Compiler output produced by configure, useful for debugging
4084# configure, is in config.log if it exists.
4085
4086debug=false
4087ac_cs_recheck=false
4088ac_cs_silent=false
4089SHELL=\${CONFIG_SHELL-$SHELL}
4090_ACEOF
4091
4092cat >>$CONFIG_STATUS <<\_ACEOF
4093## --------------------- ##
4094## M4sh Initialization.  ##
4095## --------------------- ##
4096
4097# Be Bourne compatible
4098if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4099  emulate sh
4100  NULLCMD=:
4101  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4102  # is contrary to our usage.  Disable this feature.
4103  alias -g '${1+"$@"}'='"$@"'
4104elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4105  set -o posix
4106fi
4107DUALCASE=1; export DUALCASE # for MKS sh
4108
4109# Support unset when possible.
4110if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4111  as_unset=unset
4112else
4113  as_unset=false
4114fi
4115
4116
4117# Work around bugs in pre-3.0 UWIN ksh.
4118$as_unset ENV MAIL MAILPATH
4119PS1='$ '
4120PS2='> '
4121PS4='+ '
4122
4123# NLS nuisances.
4124for as_var in \
4125  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4126  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4127  LC_TELEPHONE LC_TIME
4128do
4129  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4130    eval $as_var=C; export $as_var
4131  else
4132    $as_unset $as_var
4133  fi
4134done
4135
4136# Required to use basename.
4137if expr a : '\(a\)' >/dev/null 2>&1; then
4138  as_expr=expr
4139else
4140  as_expr=false
4141fi
4142
4143if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4144  as_basename=basename
4145else
4146  as_basename=false
4147fi
4148
4149
4150# Name of the executable.
4151as_me=`$as_basename "$0" ||
4152$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4153         X"$0" : 'X\(//\)$' \| \
4154         X"$0" : 'X\(/\)$' \| \
4155         .     : '\(.\)' 2>/dev/null ||
4156echo X/"$0" |
4157    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4158          /^X\/\(\/\/\)$/{ s//\1/; q; }
4159          /^X\/\(\/\).*/{ s//\1/; q; }
4160          s/.*/./; q'`
4161
4162
4163# PATH needs CR, and LINENO needs CR and PATH.
4164# Avoid depending upon Character Ranges.
4165as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4166as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4167as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4168as_cr_digits='0123456789'
4169as_cr_alnum=$as_cr_Letters$as_cr_digits
4170
4171# The user is always right.
4172if test "${PATH_SEPARATOR+set}" != set; then
4173  echo "#! /bin/sh" >conf$$.sh
4174  echo  "exit 0"   >>conf$$.sh
4175  chmod +x conf$$.sh
4176  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4177    PATH_SEPARATOR=';'
4178  else
4179    PATH_SEPARATOR=:
4180  fi
4181  rm -f conf$$.sh
4182fi
4183
4184
4185  as_lineno_1=$LINENO
4186  as_lineno_2=$LINENO
4187  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4188  test "x$as_lineno_1" != "x$as_lineno_2" &&
4189  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
4190  # Find who we are.  Look in the path if we contain no path at all
4191  # relative or not.
4192  case $0 in
4193    *[\\/]* ) as_myself=$0 ;;
4194    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195for as_dir in $PATH
4196do
4197  IFS=$as_save_IFS
4198  test -z "$as_dir" && as_dir=.
4199  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4200done
4201
4202       ;;
4203  esac
4204  # We did not find ourselves, most probably we were run as `sh COMMAND'
4205  # in which case we are not to be found in the path.
4206  if test "x$as_myself" = x; then
4207    as_myself=$0
4208  fi
4209  if test ! -f "$as_myself"; then
4210    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4211echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4212   { (exit 1); exit 1; }; }
4213  fi
4214  case $CONFIG_SHELL in
4215  '')
4216    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4218do
4219  IFS=$as_save_IFS
4220  test -z "$as_dir" && as_dir=.
4221  for as_base in sh bash ksh sh5; do
4222         case $as_dir in
4223         /*)
4224           if ("$as_dir/$as_base" -c '
4225  as_lineno_1=$LINENO
4226  as_lineno_2=$LINENO
4227  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4228  test "x$as_lineno_1" != "x$as_lineno_2" &&
4229  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
4230             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4231             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4232             CONFIG_SHELL=$as_dir/$as_base
4233             export CONFIG_SHELL
4234             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4235           fi;;
4236         esac
4237       done
4238done
4239;;
4240  esac
4241
4242  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4243  # uniformly replaced by the line number.  The first 'sed' inserts a
4244  # line-number line before each line; the second 'sed' does the real
4245  # work.  The second script uses 'N' to pair each line-number line
4246  # with the numbered line, and appends trailing '-' during
4247  # substitution so that $LINENO is not a special case at line end.
4248  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4249  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
4250  sed '=' <$as_myself |
4251    sed '
4252      N
4253      s,$,-,
4254      : loop
4255      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4256      t loop
4257      s,-$,,
4258      s,^['$as_cr_digits']*\n,,
4259    ' >$as_me.lineno &&
4260  chmod +x $as_me.lineno ||
4261    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4262echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4263   { (exit 1); exit 1; }; }
4264
4265  # Don't try to exec as it changes $[0], causing all sort of problems
4266  # (the dirname of $[0] is not the place where we might find the
4267  # original and so on.  Autoconf is especially sensible to this).
4268  . ./$as_me.lineno
4269  # Exit status is that of the last command.
4270  exit
4271}
4272
4273
4274case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4275  *c*,-n*) ECHO_N= ECHO_C='
4276' ECHO_T='      ' ;;
4277  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4278  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
4279esac
4280
4281if expr a : '\(a\)' >/dev/null 2>&1; then
4282  as_expr=expr
4283else
4284  as_expr=false
4285fi
4286
4287rm -f conf$$ conf$$.exe conf$$.file
4288echo >conf$$.file
4289if ln -s conf$$.file conf$$ 2>/dev/null; then
4290  # We could just check for DJGPP; but this test a) works b) is more generic
4291  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4292  if test -f conf$$.exe; then
4293    # Don't use ln at all; we don't have any links
4294    as_ln_s='cp -p'
4295  else
4296    as_ln_s='ln -s'
4297  fi
4298elif ln conf$$.file conf$$ 2>/dev/null; then
4299  as_ln_s=ln
4300else
4301  as_ln_s='cp -p'
4302fi
4303rm -f conf$$ conf$$.exe conf$$.file
4304
4305if mkdir -p . 2>/dev/null; then
4306  as_mkdir_p=:
4307else
4308  test -d ./-p && rmdir ./-p
4309  as_mkdir_p=false
4310fi
4311
4312as_executable_p="test -f"
4313
4314# Sed expression to map a string onto a valid CPP name.
4315as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4316
4317# Sed expression to map a string onto a valid variable name.
4318as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4319
4320
4321# IFS
4322# We need space, tab and new line, in precisely that order.
4323as_nl='
4324'
4325IFS="   $as_nl"
4326
4327# CDPATH.
4328$as_unset CDPATH
4329
4330exec 6>&1
4331
4332# Open the log real soon, to keep \$[0] and so on meaningful, and to
4333# report actual input values of CONFIG_FILES etc. instead of their
4334# values after options handling.  Logging --version etc. is OK.
4335exec 5>>config.log
4336{
4337  echo
4338  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4339## Running $as_me. ##
4340_ASBOX
4341} >&5
4342cat >&5 <<_CSEOF
4343
4344This file was extended by mod_gnutls $as_me 0.2.0, which was
4345generated by GNU Autoconf 2.59.  Invocation command line was
4346
4347  CONFIG_FILES    = $CONFIG_FILES
4348  CONFIG_HEADERS  = $CONFIG_HEADERS
4349  CONFIG_LINKS    = $CONFIG_LINKS
4350  CONFIG_COMMANDS = $CONFIG_COMMANDS
4351  $ $0 $@
4352
4353_CSEOF
4354echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4355echo >&5
4356_ACEOF
4357
4358# Files that config.status was made for.
4359if test -n "$ac_config_files"; then
4360  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4361fi
4362
4363if test -n "$ac_config_headers"; then
4364  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4365fi
4366
4367if test -n "$ac_config_links"; then
4368  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4369fi
4370
4371if test -n "$ac_config_commands"; then
4372  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4373fi
4374
4375cat >>$CONFIG_STATUS <<\_ACEOF
4376
4377ac_cs_usage="\
4378\`$as_me' instantiates files from templates according to the
4379current configuration.
4380
4381Usage: $0 [OPTIONS] [FILE]...
4382
4383  -h, --help       print this help, then exit
4384  -V, --version    print version number, then exit
4385  -q, --quiet      do not print progress messages
4386  -d, --debug      don't remove temporary files
4387      --recheck    update $as_me by reconfiguring in the same conditions
4388  --file=FILE[:TEMPLATE]
4389                   instantiate the configuration file FILE
4390  --header=FILE[:TEMPLATE]
4391                   instantiate the configuration header FILE
4392
4393Configuration files:
4394$config_files
4395
4396Configuration headers:
4397$config_headers
4398
4399Configuration commands:
4400$config_commands
4401
4402Report bugs to <bug-autoconf@gnu.org>."
4403_ACEOF
4404
4405cat >>$CONFIG_STATUS <<_ACEOF
4406ac_cs_version="\\
4407mod_gnutls config.status 0.2.0
4408configured by $0, generated by GNU Autoconf 2.59,
4409  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4410
4411Copyright (C) 2003 Free Software Foundation, Inc.
4412This config.status script is free software; the Free Software Foundation
4413gives unlimited permission to copy, distribute and modify it."
4414srcdir=$srcdir
4415INSTALL="$INSTALL"
4416_ACEOF
4417
4418cat >>$CONFIG_STATUS <<\_ACEOF
4419# If no file are specified by the user, then we need to provide default
4420# value.  By we need to know if files were specified by the user.
4421ac_need_defaults=:
4422while test $# != 0
4423do
4424  case $1 in
4425  --*=*)
4426    ac_option=`expr "x$1" : 'x\([^=]*\)='`
4427    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4428    ac_shift=:
4429    ;;
4430  -*)
4431    ac_option=$1
4432    ac_optarg=$2
4433    ac_shift=shift
4434    ;;
4435  *) # This is not an option, so the user has probably given explicit
4436     # arguments.
4437     ac_option=$1
4438     ac_need_defaults=false;;
4439  esac
4440
4441  case $ac_option in
4442  # Handling of the options.
4443_ACEOF
4444cat >>$CONFIG_STATUS <<\_ACEOF
4445  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4446    ac_cs_recheck=: ;;
4447  --version | --vers* | -V )
4448    echo "$ac_cs_version"; exit 0 ;;
4449  --he | --h)
4450    # Conflict between --help and --header
4451    { { echo "$as_me:$LINENO: error: ambiguous option: $1
4452Try \`$0 --help' for more information." >&5
4453echo "$as_me: error: ambiguous option: $1
4454Try \`$0 --help' for more information." >&2;}
4455   { (exit 1); exit 1; }; };;
4456  --help | --hel | -h )
4457    echo "$ac_cs_usage"; exit 0 ;;
4458  --debug | --d* | -d )
4459    debug=: ;;
4460  --file | --fil | --fi | --f )
4461    $ac_shift
4462    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4463    ac_need_defaults=false;;
4464  --header | --heade | --head | --hea )
4465    $ac_shift
4466    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4467    ac_need_defaults=false;;
4468  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4469  | -silent | --silent | --silen | --sile | --sil | --si | --s)
4470    ac_cs_silent=: ;;
4471
4472  # This is an error.
4473  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4474Try \`$0 --help' for more information." >&5
4475echo "$as_me: error: unrecognized option: $1
4476Try \`$0 --help' for more information." >&2;}
4477   { (exit 1); exit 1; }; } ;;
4478
4479  *) ac_config_targets="$ac_config_targets $1" ;;
4480
4481  esac
4482  shift
4483done
4484
4485ac_configure_extra_args=
4486
4487if $ac_cs_silent; then
4488  exec 6>/dev/null
4489  ac_configure_extra_args="$ac_configure_extra_args --silent"
4490fi
4491
4492_ACEOF
4493cat >>$CONFIG_STATUS <<_ACEOF
4494if \$ac_cs_recheck; then
4495  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4496  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4497fi
4498
4499_ACEOF
4500
4501cat >>$CONFIG_STATUS <<_ACEOF
4502#
4503# INIT-COMMANDS section.
4504#
4505
4506AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
4507
4508_ACEOF
4509
4510
4511
4512cat >>$CONFIG_STATUS <<\_ACEOF
4513for ac_config_target in $ac_config_targets
4514do
4515  case "$ac_config_target" in
4516  # Handling of arguments.
4517  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4518  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
4519  "include/mod_gnutls.h" ) CONFIG_FILES="$CONFIG_FILES include/mod_gnutls.h" ;;
4520  "data/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
4521  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
4522  "include/mod_gnutls_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/mod_gnutls_config.h:config.in" ;;
4523  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4524echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4525   { (exit 1); exit 1; }; };;
4526  esac
4527done
4528
4529# If the user did not use the arguments to specify the items to instantiate,
4530# then the envvar interface is used.  Set only those that are not.
4531# We use the long form for the default assignment because of an extremely
4532# bizarre bug on SunOS 4.1.3.
4533if $ac_need_defaults; then
4534  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4535  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4536  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4537fi
4538
4539# Have a temporary directory for convenience.  Make it in the build tree
4540# simply because there is no reason to put it here, and in addition,
4541# creating and moving files from /tmp can sometimes cause problems.
4542# Create a temporary directory, and hook for its removal unless debugging.
4543$debug ||
4544{
4545  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4546  trap '{ (exit 1); exit 1; }' 1 2 13 15
4547}
4548
4549# Create a (secure) tmp directory for tmp files.
4550
4551{
4552  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4553  test -n "$tmp" && test -d "$tmp"
4554}  ||
4555{
4556  tmp=./confstat$$-$RANDOM
4557  (umask 077 && mkdir $tmp)
4558} ||
4559{
4560   echo "$me: cannot create a temporary directory in ." >&2
4561   { (exit 1); exit 1; }
4562}
4563
4564_ACEOF
4565
4566cat >>$CONFIG_STATUS <<_ACEOF
4567
4568#
4569# CONFIG_FILES section.
4570#
4571
4572# No need to generate the scripts if there are no CONFIG_FILES.
4573# This happens for instance when ./config.status config.h
4574if test -n "\$CONFIG_FILES"; then
4575  # Protect against being on the right side of a sed subst in config.status.
4576  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4577   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4578s,@SHELL@,$SHELL,;t t
4579s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4580s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4581s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4582s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4583s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4584s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4585s,@exec_prefix@,$exec_prefix,;t t
4586s,@prefix@,$prefix,;t t
4587s,@program_transform_name@,$program_transform_name,;t t
4588s,@bindir@,$bindir,;t t
4589s,@sbindir@,$sbindir,;t t
4590s,@libexecdir@,$libexecdir,;t t
4591s,@datadir@,$datadir,;t t
4592s,@sysconfdir@,$sysconfdir,;t t
4593s,@sharedstatedir@,$sharedstatedir,;t t
4594s,@localstatedir@,$localstatedir,;t t
4595s,@libdir@,$libdir,;t t
4596s,@includedir@,$includedir,;t t
4597s,@oldincludedir@,$oldincludedir,;t t
4598s,@infodir@,$infodir,;t t
4599s,@mandir@,$mandir,;t t
4600s,@build_alias@,$build_alias,;t t
4601s,@host_alias@,$host_alias,;t t
4602s,@target_alias@,$target_alias,;t t
4603s,@DEFS@,$DEFS,;t t
4604s,@ECHO_C@,$ECHO_C,;t t
4605s,@ECHO_N@,$ECHO_N,;t t
4606s,@ECHO_T@,$ECHO_T,;t t
4607s,@LIBS@,$LIBS,;t t
4608s,@OOO_MAINTAIN@,$OOO_MAINTAIN,;t t
4609s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
4610s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
4611s,@MAINT@,$MAINT,;t t
4612s,@build@,$build,;t t
4613s,@build_cpu@,$build_cpu,;t t
4614s,@build_vendor@,$build_vendor,;t t
4615s,@build_os@,$build_os,;t t
4616s,@host@,$host,;t t
4617s,@host_cpu@,$host_cpu,;t t
4618s,@host_vendor@,$host_vendor,;t t
4619s,@host_os@,$host_os,;t t
4620s,@target@,$target,;t t
4621s,@target_cpu@,$target_cpu,;t t
4622s,@target_vendor@,$target_vendor,;t t
4623s,@target_os@,$target_os,;t t
4624s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4625s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4626s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4627s,@CYGPATH_W@,$CYGPATH_W,;t t
4628s,@PACKAGE@,$PACKAGE,;t t
4629s,@VERSION@,$VERSION,;t t
4630s,@ACLOCAL@,$ACLOCAL,;t t
4631s,@AUTOCONF@,$AUTOCONF,;t t
4632s,@AUTOMAKE@,$AUTOMAKE,;t t
4633s,@AUTOHEADER@,$AUTOHEADER,;t t
4634s,@MAKEINFO@,$MAKEINFO,;t t
4635s,@install_sh@,$install_sh,;t t
4636s,@STRIP@,$STRIP,;t t
4637s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
4638s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
4639s,@mkdir_p@,$mkdir_p,;t t
4640s,@AWK@,$AWK,;t t
4641s,@SET_MAKE@,$SET_MAKE,;t t
4642s,@am__leading_dot@,$am__leading_dot,;t t
4643s,@AMTAR@,$AMTAR,;t t
4644s,@am__tar@,$am__tar,;t t
4645s,@am__untar@,$am__untar,;t t
4646s,@MOD_GNUTLS_VERSION@,$MOD_GNUTLS_VERSION,;t t
4647s,@CC@,$CC,;t t
4648s,@CFLAGS@,$CFLAGS,;t t
4649s,@LDFLAGS@,$LDFLAGS,;t t
4650s,@CPPFLAGS@,$CPPFLAGS,;t t
4651s,@ac_ct_CC@,$ac_ct_CC,;t t
4652s,@EXEEXT@,$EXEEXT,;t t
4653s,@OBJEXT@,$OBJEXT,;t t
4654s,@DEPDIR@,$DEPDIR,;t t
4655s,@am__include@,$am__include,;t t
4656s,@am__quote@,$am__quote,;t t
4657s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
4658s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
4659s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
4660s,@CCDEPMODE@,$CCDEPMODE,;t t
4661s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
4662s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
4663s,@EGREP@,$EGREP,;t t
4664s,@APXS_BIN@,$APXS_BIN,;t t
4665s,@AP_DEFS@,$AP_DEFS,;t t
4666s,@AP_PREFIX@,$AP_PREFIX,;t t
4667s,@AP_CFLAGS@,$AP_CFLAGS,;t t
4668s,@AP_CPPFLAGS@,$AP_CPPFLAGS,;t t
4669s,@AP_INCLUDES@,$AP_INCLUDES,;t t
4670s,@AP_INCLUDEDIR@,$AP_INCLUDEDIR,;t t
4671s,@AP_LIBEXECDIR@,$AP_LIBEXECDIR,;t t
4672s,@AP_VERSION@,$AP_VERSION,;t t
4673s,@AP_SYSCONFDIR@,$AP_SYSCONFDIR,;t t
4674s,@AP_BINDIR@,$AP_BINDIR,;t t
4675s,@AP_SBINDIR@,$AP_SBINDIR,;t t
4676s,@APR_INCLUDES@,$APR_INCLUDES,;t t
4677s,@APU_INCLUDES@,$APU_INCLUDES,;t t
4678s,@APXS_EXTENSION@,$APXS_EXTENSION,;t t
4679s,@APXS_CFLAGS@,$APXS_CFLAGS,;t t
4680s,@LIBTOOL@,$LIBTOOL,;t t
4681s,@GTLS_BIN@,$GTLS_BIN,;t t
4682s,@LIBGNUTLS_LIBS@,$LIBGNUTLS_LIBS,;t t
4683s,@LIBGNUTLS_CFLAGS@,$LIBGNUTLS_CFLAGS,;t t
4684s,@LIBGNUTLS_VERSION@,$LIBGNUTLS_VERSION,;t t
4685s,@GNUTLS_CERTTOOL@,$GNUTLS_CERTTOOL,;t t
4686s,@LIBGNUTLS_PREFIX@,$LIBGNUTLS_PREFIX,;t t
4687s,@APR_MEMCACHE_LIBS@,$APR_MEMCACHE_LIBS,;t t
4688s,@APR_MEMCACHE_CFLAGS@,$APR_MEMCACHE_CFLAGS,;t t
4689s,@have_apr_memcache@,$have_apr_memcache,;t t
4690s,@MODULE_CFLAGS@,$MODULE_CFLAGS,;t t
4691s,@MODULE_LIBS@,$MODULE_LIBS,;t t
4692s,@LIBOBJS@,$LIBOBJS,;t t
4693s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4694CEOF
4695
4696_ACEOF
4697
4698  cat >>$CONFIG_STATUS <<\_ACEOF
4699  # Split the substitutions into bite-sized pieces for seds with
4700  # small command number limits, like on Digital OSF/1 and HP-UX.
4701  ac_max_sed_lines=48
4702  ac_sed_frag=1 # Number of current file.
4703  ac_beg=1 # First line for current file.
4704  ac_end=$ac_max_sed_lines # Line after last line for current file.
4705  ac_more_lines=:
4706  ac_sed_cmds=
4707  while $ac_more_lines; do
4708    if test $ac_beg -gt 1; then
4709      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4710    else
4711      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4712    fi
4713    if test ! -s $tmp/subs.frag; then
4714      ac_more_lines=false
4715    else
4716      # The purpose of the label and of the branching condition is to
4717      # speed up the sed processing (if there are no `@' at all, there
4718      # is no need to browse any of the substitutions).
4719      # These are the two extra sed commands mentioned above.
4720      (echo ':t
4721  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4722      if test -z "$ac_sed_cmds"; then
4723        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4724      else
4725        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4726      fi
4727      ac_sed_frag=`expr $ac_sed_frag + 1`
4728      ac_beg=$ac_end
4729      ac_end=`expr $ac_end + $ac_max_sed_lines`
4730    fi
4731  done
4732  if test -z "$ac_sed_cmds"; then
4733    ac_sed_cmds=cat
4734  fi
4735fi # test -n "$CONFIG_FILES"
4736
4737_ACEOF
4738cat >>$CONFIG_STATUS <<\_ACEOF
4739for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4740  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4741  case $ac_file in
4742  - | *:- | *:-:* ) # input from stdin
4743        cat >$tmp/stdin
4744        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4745        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4746  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4747        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4748  * )   ac_file_in=$ac_file.in ;;
4749  esac
4750
4751  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4752  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4753$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4754         X"$ac_file" : 'X\(//\)[^/]' \| \
4755         X"$ac_file" : 'X\(//\)$' \| \
4756         X"$ac_file" : 'X\(/\)' \| \
4757         .     : '\(.\)' 2>/dev/null ||
4758echo X"$ac_file" |
4759    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4760          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4761          /^X\(\/\/\)$/{ s//\1/; q; }
4762          /^X\(\/\).*/{ s//\1/; q; }
4763          s/.*/./; q'`
4764  { if $as_mkdir_p; then
4765    mkdir -p "$ac_dir"
4766  else
4767    as_dir="$ac_dir"
4768    as_dirs=
4769    while test ! -d "$as_dir"; do
4770      as_dirs="$as_dir $as_dirs"
4771      as_dir=`(dirname "$as_dir") 2>/dev/null ||
4772$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4773         X"$as_dir" : 'X\(//\)[^/]' \| \
4774         X"$as_dir" : 'X\(//\)$' \| \
4775         X"$as_dir" : 'X\(/\)' \| \
4776         .     : '\(.\)' 2>/dev/null ||
4777echo X"$as_dir" |
4778    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4779          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4780          /^X\(\/\/\)$/{ s//\1/; q; }
4781          /^X\(\/\).*/{ s//\1/; q; }
4782          s/.*/./; q'`
4783    done
4784    test ! -n "$as_dirs" || mkdir $as_dirs
4785  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4786echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4787   { (exit 1); exit 1; }; }; }
4788
4789  ac_builddir=.
4790
4791if test "$ac_dir" != .; then
4792  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4793  # A "../" for each directory in $ac_dir_suffix.
4794  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4795else
4796  ac_dir_suffix= ac_top_builddir=
4797fi
4798
4799case $srcdir in
4800  .)  # No --srcdir option.  We are building in place.
4801    ac_srcdir=.
4802    if test -z "$ac_top_builddir"; then
4803       ac_top_srcdir=.
4804    else
4805       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4806    fi ;;
4807  [\\/]* | ?:[\\/]* )  # Absolute path.
4808    ac_srcdir=$srcdir$ac_dir_suffix;
4809    ac_top_srcdir=$srcdir ;;
4810  *) # Relative path.
4811    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4812    ac_top_srcdir=$ac_top_builddir$srcdir ;;
4813esac
4814
4815# Do not use `cd foo && pwd` to compute absolute paths, because
4816# the directories may not exist.
4817case `pwd` in
4818.) ac_abs_builddir="$ac_dir";;
4819*)
4820  case "$ac_dir" in
4821  .) ac_abs_builddir=`pwd`;;
4822  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4823  *) ac_abs_builddir=`pwd`/"$ac_dir";;
4824  esac;;
4825esac
4826case $ac_abs_builddir in
4827.) ac_abs_top_builddir=${ac_top_builddir}.;;
4828*)
4829  case ${ac_top_builddir}. in
4830  .) ac_abs_top_builddir=$ac_abs_builddir;;
4831  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4832  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4833  esac;;
4834esac
4835case $ac_abs_builddir in
4836.) ac_abs_srcdir=$ac_srcdir;;
4837*)
4838  case $ac_srcdir in
4839  .) ac_abs_srcdir=$ac_abs_builddir;;
4840  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4841  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4842  esac;;
4843esac
4844case $ac_abs_builddir in
4845.) ac_abs_top_srcdir=$ac_top_srcdir;;
4846*)
4847  case $ac_top_srcdir in
4848  .) ac_abs_top_srcdir=$ac_abs_builddir;;
4849  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4850  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4851  esac;;
4852esac
4853
4854
4855  case $INSTALL in
4856  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4857  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4858  esac
4859
4860  # Let's still pretend it is `configure' which instantiates (i.e., don't
4861  # use $as_me), people would be surprised to read:
4862  #    /* config.h.  Generated by config.status.  */
4863  if test x"$ac_file" = x-; then
4864    configure_input=
4865  else
4866    configure_input="$ac_file.  "
4867  fi
4868  configure_input=$configure_input"Generated from `echo $ac_file_in |
4869                                     sed 's,.*/,,'` by configure."
4870
4871  # First look for the input files in the build tree, otherwise in the
4872  # src tree.
4873  ac_file_inputs=`IFS=:
4874    for f in $ac_file_in; do
4875      case $f in
4876      -) echo $tmp/stdin ;;
4877      [\\/$]*)
4878         # Absolute (can't be DOS-style, as IFS=:)
4879         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4880echo "$as_me: error: cannot find input file: $f" >&2;}
4881   { (exit 1); exit 1; }; }
4882         echo "$f";;
4883      *) # Relative
4884         if test -f "$f"; then
4885           # Build tree
4886           echo "$f"
4887         elif test -f "$srcdir/$f"; then
4888           # Source tree
4889           echo "$srcdir/$f"
4890         else
4891           # /dev/null tree
4892           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4893echo "$as_me: error: cannot find input file: $f" >&2;}
4894   { (exit 1); exit 1; }; }
4895         fi;;
4896      esac
4897    done` || { (exit 1); exit 1; }
4898
4899  if test x"$ac_file" != x-; then
4900    { echo "$as_me:$LINENO: creating $ac_file" >&5
4901echo "$as_me: creating $ac_file" >&6;}
4902    rm -f "$ac_file"
4903  fi
4904_ACEOF
4905cat >>$CONFIG_STATUS <<_ACEOF
4906  sed "$ac_vpsub
4907$extrasub
4908_ACEOF
4909cat >>$CONFIG_STATUS <<\_ACEOF
4910:t
4911/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4912s,@configure_input@,$configure_input,;t t
4913s,@srcdir@,$ac_srcdir,;t t
4914s,@abs_srcdir@,$ac_abs_srcdir,;t t
4915s,@top_srcdir@,$ac_top_srcdir,;t t
4916s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4917s,@builddir@,$ac_builddir,;t t
4918s,@abs_builddir@,$ac_abs_builddir,;t t
4919s,@top_builddir@,$ac_top_builddir,;t t
4920s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4921s,@INSTALL@,$ac_INSTALL,;t t
4922" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4923  rm -f $tmp/stdin
4924  if test x"$ac_file" != x-; then
4925    mv $tmp/out $ac_file
4926  else
4927    cat $tmp/out
4928    rm -f $tmp/out
4929  fi
4930
4931done
4932_ACEOF
4933cat >>$CONFIG_STATUS <<\_ACEOF
4934
4935#
4936# CONFIG_HEADER section.
4937#
4938
4939# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4940# NAME is the cpp macro being defined and VALUE is the value it is being given.
4941#
4942# ac_d sets the value in "#define NAME VALUE" lines.
4943ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
4944ac_dB='[         ].*$,\1#\2'
4945ac_dC=' '
4946ac_dD=',;t'
4947# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4948ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4949ac_uB='$,\1#\2define\3'
4950ac_uC=' '
4951ac_uD=',;t'
4952
4953for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4954  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4955  case $ac_file in
4956  - | *:- | *:-:* ) # input from stdin
4957        cat >$tmp/stdin
4958        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4959        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4960  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4961        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4962  * )   ac_file_in=$ac_file.in ;;
4963  esac
4964
4965  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4966echo "$as_me: creating $ac_file" >&6;}
4967
4968  # First look for the input files in the build tree, otherwise in the
4969  # src tree.
4970  ac_file_inputs=`IFS=:
4971    for f in $ac_file_in; do
4972      case $f in
4973      -) echo $tmp/stdin ;;
4974      [\\/$]*)
4975         # Absolute (can't be DOS-style, as IFS=:)
4976         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4977echo "$as_me: error: cannot find input file: $f" >&2;}
4978   { (exit 1); exit 1; }; }
4979         # Do quote $f, to prevent DOS paths from being IFS'd.
4980         echo "$f";;
4981      *) # Relative
4982         if test -f "$f"; then
4983           # Build tree
4984           echo "$f"
4985         elif test -f "$srcdir/$f"; then
4986           # Source tree
4987           echo "$srcdir/$f"
4988         else
4989           # /dev/null tree
4990           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4991echo "$as_me: error: cannot find input file: $f" >&2;}
4992   { (exit 1); exit 1; }; }
4993         fi;;
4994      esac
4995    done` || { (exit 1); exit 1; }
4996  # Remove the trailing spaces.
4997  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
4998
4999_ACEOF
5000
5001# Transform confdefs.h into two sed scripts, `conftest.defines' and
5002# `conftest.undefs', that substitutes the proper values into
5003# config.h.in to produce config.h.  The first handles `#define'
5004# templates, and the second `#undef' templates.
5005# And first: Protect against being on the right side of a sed subst in
5006# config.status.  Protect against being in an unquoted here document
5007# in config.status.
5008rm -f conftest.defines conftest.undefs
5009# Using a here document instead of a string reduces the quoting nightmare.
5010# Putting comments in sed scripts is not portable.
5011#
5012# `end' is used to avoid that the second main sed command (meant for
5013# 0-ary CPP macros) applies to n-ary macro definitions.
5014# See the Autoconf documentation for `clear'.
5015cat >confdef2sed.sed <<\_ACEOF
5016s/[\\&,]/\\&/g
5017s,[\\$`],\\&,g
5018t clear
5019: clear
5020s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5021t end
5022s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5023: end
5024_ACEOF
5025# If some macros were called several times there might be several times
5026# the same #defines, which is useless.  Nevertheless, we may not want to
5027# sort them, since we want the *last* AC-DEFINE to be honored.
5028uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5029sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5030rm -f confdef2sed.sed
5031
5032# This sed command replaces #undef with comments.  This is necessary, for
5033# example, in the case of _POSIX_SOURCE, which is predefined and required
5034# on some systems where configure will not decide to define it.
5035cat >>conftest.undefs <<\_ACEOF
5036s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5037_ACEOF
5038
5039# Break up conftest.defines because some shells have a limit on the size
5040# of here documents, and old seds have small limits too (100 cmds).
5041echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5042echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5043echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5044echo '  :' >>$CONFIG_STATUS
5045rm -f conftest.tail
5046while grep . conftest.defines >/dev/null
5047do
5048  # Write a limited-size here document to $tmp/defines.sed.
5049  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5050  # Speed up: don't consider the non `#define' lines.
5051  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
5052  # Work around the forget-to-reset-the-flag bug.
5053  echo 't clr' >>$CONFIG_STATUS
5054  echo ': clr' >>$CONFIG_STATUS
5055  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5056  echo 'CEOF
5057  sed -f $tmp/defines.sed $tmp/in >$tmp/out
5058  rm -f $tmp/in
5059  mv $tmp/out $tmp/in
5060' >>$CONFIG_STATUS
5061  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5062  rm -f conftest.defines
5063  mv conftest.tail conftest.defines
5064done
5065rm -f conftest.defines
5066echo '  fi # grep' >>$CONFIG_STATUS
5067echo >>$CONFIG_STATUS
5068
5069# Break up conftest.undefs because some shells have a limit on the size
5070# of here documents, and old seds have small limits too (100 cmds).
5071echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
5072rm -f conftest.tail
5073while grep . conftest.undefs >/dev/null
5074do
5075  # Write a limited-size here document to $tmp/undefs.sed.
5076  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5077  # Speed up: don't consider the non `#undef'
5078  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
5079  # Work around the forget-to-reset-the-flag bug.
5080  echo 't clr' >>$CONFIG_STATUS
5081  echo ': clr' >>$CONFIG_STATUS
5082  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5083  echo 'CEOF
5084  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5085  rm -f $tmp/in
5086  mv $tmp/out $tmp/in
5087' >>$CONFIG_STATUS
5088  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5089  rm -f conftest.undefs
5090  mv conftest.tail conftest.undefs
5091done
5092rm -f conftest.undefs
5093
5094cat >>$CONFIG_STATUS <<\_ACEOF
5095  # Let's still pretend it is `configure' which instantiates (i.e., don't
5096  # use $as_me), people would be surprised to read:
5097  #    /* config.h.  Generated by config.status.  */
5098  if test x"$ac_file" = x-; then
5099    echo "/* Generated by configure.  */" >$tmp/config.h
5100  else
5101    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
5102  fi
5103  cat $tmp/in >>$tmp/config.h
5104  rm -f $tmp/in
5105  if test x"$ac_file" != x-; then
5106    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5107      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5108echo "$as_me: $ac_file is unchanged" >&6;}
5109    else
5110      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5111$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5112         X"$ac_file" : 'X\(//\)[^/]' \| \
5113         X"$ac_file" : 'X\(//\)$' \| \
5114         X"$ac_file" : 'X\(/\)' \| \
5115         .     : '\(.\)' 2>/dev/null ||
5116echo X"$ac_file" |
5117    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5118          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5119          /^X\(\/\/\)$/{ s//\1/; q; }
5120          /^X\(\/\).*/{ s//\1/; q; }
5121          s/.*/./; q'`
5122      { if $as_mkdir_p; then
5123    mkdir -p "$ac_dir"
5124  else
5125    as_dir="$ac_dir"
5126    as_dirs=
5127    while test ! -d "$as_dir"; do
5128      as_dirs="$as_dir $as_dirs"
5129      as_dir=`(dirname "$as_dir") 2>/dev/null ||
5130$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5131         X"$as_dir" : 'X\(//\)[^/]' \| \
5132         X"$as_dir" : 'X\(//\)$' \| \
5133         X"$as_dir" : 'X\(/\)' \| \
5134         .     : '\(.\)' 2>/dev/null ||
5135echo X"$as_dir" |
5136    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5137          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5138          /^X\(\/\/\)$/{ s//\1/; q; }
5139          /^X\(\/\).*/{ s//\1/; q; }
5140          s/.*/./; q'`
5141    done
5142    test ! -n "$as_dirs" || mkdir $as_dirs
5143  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5144echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5145   { (exit 1); exit 1; }; }; }
5146
5147      rm -f $ac_file
5148      mv $tmp/config.h $ac_file
5149    fi
5150  else
5151    cat $tmp/config.h
5152    rm -f $tmp/config.h
5153  fi
5154# Compute $ac_file's index in $config_headers.
5155_am_stamp_count=1
5156for _am_header in $config_headers :; do
5157  case $_am_header in
5158    $ac_file | $ac_file:* )
5159      break ;;
5160    * )
5161      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
5162  esac
5163done
5164echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
5165$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5166         X$ac_file : 'X\(//\)[^/]' \| \
5167         X$ac_file : 'X\(//\)$' \| \
5168         X$ac_file : 'X\(/\)' \| \
5169         .     : '\(.\)' 2>/dev/null ||
5170echo X$ac_file |
5171    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5172          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5173          /^X\(\/\/\)$/{ s//\1/; q; }
5174          /^X\(\/\).*/{ s//\1/; q; }
5175          s/.*/./; q'`/stamp-h$_am_stamp_count
5176done
5177_ACEOF
5178cat >>$CONFIG_STATUS <<\_ACEOF
5179
5180#
5181# CONFIG_COMMANDS section.
5182#
5183for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5184  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5185  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5186  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5187$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5188         X"$ac_dest" : 'X\(//\)[^/]' \| \
5189         X"$ac_dest" : 'X\(//\)$' \| \
5190         X"$ac_dest" : 'X\(/\)' \| \
5191         .     : '\(.\)' 2>/dev/null ||
5192echo X"$ac_dest" |
5193    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5194          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5195          /^X\(\/\/\)$/{ s//\1/; q; }
5196          /^X\(\/\).*/{ s//\1/; q; }
5197          s/.*/./; q'`
5198  { if $as_mkdir_p; then
5199    mkdir -p "$ac_dir"
5200  else
5201    as_dir="$ac_dir"
5202    as_dirs=
5203    while test ! -d "$as_dir"; do
5204      as_dirs="$as_dir $as_dirs"
5205      as_dir=`(dirname "$as_dir") 2>/dev/null ||
5206$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5207         X"$as_dir" : 'X\(//\)[^/]' \| \
5208         X"$as_dir" : 'X\(//\)$' \| \
5209         X"$as_dir" : 'X\(/\)' \| \
5210         .     : '\(.\)' 2>/dev/null ||
5211echo X"$as_dir" |
5212    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5213          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5214          /^X\(\/\/\)$/{ s//\1/; q; }
5215          /^X\(\/\).*/{ s//\1/; q; }
5216          s/.*/./; q'`
5217    done
5218    test ! -n "$as_dirs" || mkdir $as_dirs
5219  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5220echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5221   { (exit 1); exit 1; }; }; }
5222
5223  ac_builddir=.
5224
5225if test "$ac_dir" != .; then
5226  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5227  # A "../" for each directory in $ac_dir_suffix.
5228  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5229else
5230  ac_dir_suffix= ac_top_builddir=
5231fi
5232
5233case $srcdir in
5234  .)  # No --srcdir option.  We are building in place.
5235    ac_srcdir=.
5236    if test -z "$ac_top_builddir"; then
5237       ac_top_srcdir=.
5238    else
5239       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5240    fi ;;
5241  [\\/]* | ?:[\\/]* )  # Absolute path.
5242    ac_srcdir=$srcdir$ac_dir_suffix;
5243    ac_top_srcdir=$srcdir ;;
5244  *) # Relative path.
5245    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5246    ac_top_srcdir=$ac_top_builddir$srcdir ;;
5247esac
5248
5249# Do not use `cd foo && pwd` to compute absolute paths, because
5250# the directories may not exist.
5251case `pwd` in
5252.) ac_abs_builddir="$ac_dir";;
5253*)
5254  case "$ac_dir" in
5255  .) ac_abs_builddir=`pwd`;;
5256  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5257  *) ac_abs_builddir=`pwd`/"$ac_dir";;
5258  esac;;
5259esac
5260case $ac_abs_builddir in
5261.) ac_abs_top_builddir=${ac_top_builddir}.;;
5262*)
5263  case ${ac_top_builddir}. in
5264  .) ac_abs_top_builddir=$ac_abs_builddir;;
5265  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5266  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5267  esac;;
5268esac
5269case $ac_abs_builddir in
5270.) ac_abs_srcdir=$ac_srcdir;;
5271*)
5272  case $ac_srcdir in
5273  .) ac_abs_srcdir=$ac_abs_builddir;;
5274  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5275  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5276  esac;;
5277esac
5278case $ac_abs_builddir in
5279.) ac_abs_top_srcdir=$ac_top_srcdir;;
5280*)
5281  case $ac_top_srcdir in
5282  .) ac_abs_top_srcdir=$ac_abs_builddir;;
5283  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5284  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5285  esac;;
5286esac
5287
5288
5289  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5290echo "$as_me: executing $ac_dest commands" >&6;}
5291  case $ac_dest in
5292    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
5293  # Strip MF so we end up with the name of the file.
5294  mf=`echo "$mf" | sed -e 's/:.*$//'`
5295  # Check whether this is an Automake generated Makefile or not.
5296  # We used to match only the files named `Makefile.in', but
5297  # some people rename them; so instead we look at the file content.
5298  # Grep'ing the first line is not enough: some people post-process
5299  # each Makefile.in and add a new line on top of each file to say so.
5300  # So let's grep whole file.
5301  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
5302    dirpart=`(dirname "$mf") 2>/dev/null ||
5303$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5304         X"$mf" : 'X\(//\)[^/]' \| \
5305         X"$mf" : 'X\(//\)$' \| \
5306         X"$mf" : 'X\(/\)' \| \
5307         .     : '\(.\)' 2>/dev/null ||
5308echo X"$mf" |
5309    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5310          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5311          /^X\(\/\/\)$/{ s//\1/; q; }
5312          /^X\(\/\).*/{ s//\1/; q; }
5313          s/.*/./; q'`
5314  else
5315    continue
5316  fi
5317  # Extract the definition of DEPDIR, am__include, and am__quote
5318  # from the Makefile without running `make'.
5319  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
5320  test -z "$DEPDIR" && continue
5321  am__include=`sed -n 's/^am__include = //p' < "$mf"`
5322  test -z "am__include" && continue
5323  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
5324  # When using ansi2knr, U may be empty or an underscore; expand it
5325  U=`sed -n 's/^U = //p' < "$mf"`
5326  # Find all dependency output files, they are included files with
5327  # $(DEPDIR) in their names.  We invoke sed twice because it is the
5328  # simplest approach to changing $(DEPDIR) to its actual value in the
5329  # expansion.
5330  for file in `sed -n "
5331    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
5332       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5333    # Make sure the directory exists.
5334    test -f "$dirpart/$file" && continue
5335    fdir=`(dirname "$file") 2>/dev/null ||
5336$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5337         X"$file" : 'X\(//\)[^/]' \| \
5338         X"$file" : 'X\(//\)$' \| \
5339         X"$file" : 'X\(/\)' \| \
5340         .     : '\(.\)' 2>/dev/null ||
5341echo X"$file" |
5342    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5343          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5344          /^X\(\/\/\)$/{ s//\1/; q; }
5345          /^X\(\/\).*/{ s//\1/; q; }
5346          s/.*/./; q'`
5347    { if $as_mkdir_p; then
5348    mkdir -p $dirpart/$fdir
5349  else
5350    as_dir=$dirpart/$fdir
5351    as_dirs=
5352    while test ! -d "$as_dir"; do
5353      as_dirs="$as_dir $as_dirs"
5354      as_dir=`(dirname "$as_dir") 2>/dev/null ||
5355$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5356         X"$as_dir" : 'X\(//\)[^/]' \| \
5357         X"$as_dir" : 'X\(//\)$' \| \
5358         X"$as_dir" : 'X\(/\)' \| \
5359         .     : '\(.\)' 2>/dev/null ||
5360echo X"$as_dir" |
5361    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5362          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5363          /^X\(\/\/\)$/{ s//\1/; q; }
5364          /^X\(\/\).*/{ s//\1/; q; }
5365          s/.*/./; q'`
5366    done
5367    test ! -n "$as_dirs" || mkdir $as_dirs
5368  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
5369echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
5370   { (exit 1); exit 1; }; }; }
5371
5372    # echo "creating $dirpart/$file"
5373    echo '# dummy' > "$dirpart/$file"
5374  done
5375done
5376 ;;
5377  esac
5378done
5379_ACEOF
5380
5381cat >>$CONFIG_STATUS <<\_ACEOF
5382
5383{ (exit 0); exit 0; }
5384_ACEOF
5385chmod +x $CONFIG_STATUS
5386ac_clean_files=$ac_clean_files_save
5387
5388
5389# configure is writing to config.log, and then calls config.status.
5390# config.status does its own redirection, appending to config.log.
5391# Unfortunately, on DOS this fails, as config.log is still kept open
5392# by configure, so config.status won't be able to write to it; its
5393# output is simply discarded.  So we exec the FD to /dev/null,
5394# effectively closing config.log, so it can be properly (re)opened and
5395# appended to by config.status.  When coming back to configure, we
5396# need to make the FD available again.
5397if test "$no_create" != yes; then
5398  ac_cs_success=:
5399  ac_config_status_args=
5400  test "$silent" = yes &&
5401    ac_config_status_args="$ac_config_status_args --quiet"
5402  exec 5>/dev/null
5403  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5404  exec 5>>config.log
5405  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5406  # would make configure fail if this is the last instruction.
5407  $ac_cs_success || { (exit 1); exit 1; }
5408fi
5409
5410
5411echo "---"
5412echo "Configuration summary for mod_gnutls:"
5413echo ""
5414echo "   * mod_gnutls version:  ${MOD_GNUTLS_VERSION}"
5415echo "   * Apache Modules directory:    ${AP_LIBEXECDIR}"
5416echo "   * GnuTLS Library version:      ${LIBGNUTLS_VERSION}"
5417echo ""
5418echo "---"
Note: See TracBrowser for help on using the repository browser.