source: mod_gnutls/configure @ 8eb6ccd

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

Imported Upstream version 0.1.1

  • Property mode set to 100755
File size: 163.3 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.1.1.
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.1.1'
271PACKAGE_STRING='mod_gnutls 0.1.1'
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.1.1 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.1.1:";;
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.1.1
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.1.1, 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.1.1
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.1.1
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                    AP_CFLAGS="$AP_CFLAGS $APU_INCLUDES $APR_INCLUDES"
3447                    AP_CPPFLAGS="$AP_CPPFLAGS $APU_INCLUDES $APR_INCLUDES"
3448                    AP_DEFS="-DWITH_APACHE20"
3449                    :
3450       else
3451        if test -f conf.apachetest ; then
3452            :
3453        else
3454            echo "*** Could not run Apache test program, checking why..."
3455            CFLAGS="$CFLAGS $AP_CFLAGS"
3456            if test $releasetest -eq 20; then
3457                CFLAGS="$CFLAGS $APU_INCLUDES $APR_INCLUDES"
3458            fi
3459            cat >conftest.$ac_ext <<_ACEOF
3460/* confdefs.h.  */
3461_ACEOF
3462cat confdefs.h >>conftest.$ac_ext
3463cat >>conftest.$ac_ext <<_ACEOF
3464/* end confdefs.h.  */
3465
3466#include <stdio.h>
3467#include "httpd.h"
3468
3469int main(int argc, char *argv[])
3470{ return 0; }
3471#undef main
3472#define main K_and_R_C_main
3473
3474int
3475main ()
3476{
3477 return 0;
3478  ;
3479  return 0;
3480}
3481_ACEOF
3482rm -f conftest.$ac_objext conftest$ac_exeext
3483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3484  (eval $ac_link) 2>conftest.er1
3485  ac_status=$?
3486  grep -v '^ *+' conftest.er1 >conftest.err
3487  rm -f conftest.er1
3488  cat conftest.err >&5
3489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490  (exit $ac_status); } &&
3491         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3493  (eval $ac_try) 2>&5
3494  ac_status=$?
3495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496  (exit $ac_status); }; } &&
3497         { ac_try='test -s conftest$ac_exeext'
3498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3499  (eval $ac_try) 2>&5
3500  ac_status=$?
3501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502  (exit $ac_status); }; }; then
3503   echo "*** The test program compiled, but failed to run. Check config.log"
3504else
3505  echo "$as_me: failed program was:" >&5
3506sed 's/^/| /' conftest.$ac_ext >&5
3507
3508 echo "*** The test program failed to compile or link. Check config.log"
3509fi
3510rm -f conftest.err conftest.$ac_objext \
3511      conftest$ac_exeext conftest.$ac_ext
3512            CFLAGS="$ac_save_CFLAGS"
3513        fi
3514         echo "$as_me:$LINENO: result: no" >&5
3515echo "${ECHO_T}no" >&6
3516                    if test "x$min_apache13_version" = "xno"; then
3517                        { { echo "$as_me:$LINENO: error: *** Apache version $AP_VERSION not found!" >&5
3518echo "$as_me: error: *** Apache version $AP_VERSION not found!" >&2;}
3519   { (exit 1); exit 1; }; }
3520
3521                    fi
3522
3523      fi
3524      rm -f conf.apachetest
3525
3526            fi
3527            if test "$min_apache13_version" != "no" -a "x$AP_VERSION" = "x"; then
3528                APR_INCLUDES=""
3529                APR_VERSION=""
3530                APU_INCLUDES=""
3531                APU_VERSION=""
3532                echo "$as_me:$LINENO: checking for Apache 1.3 version >= $min_apache13_version" >&5
3533echo $ECHO_N "checking for Apache 1.3 version >= $min_apache13_version... $ECHO_C" >&6
3534
3535    releasetest=13
3536    min_apache_version="$min_apache13_version"
3537    no_apache=""
3538    ac_save_CFLAGS="$CFLAGS"
3539    CFLAGS="$CFLAGS $AP_CFLAGS"
3540    if test $releasetest -eq 20; then
3541        CFLAGS="$CFLAGS $APU_INCLUDES $APR_INCLUDES"
3542    fi
3543    if test "$cross_compiling" = yes; then
3544  echo $ac_n "cross compiling; assumed OK... $ac_c"
3545else
3546  cat >conftest.$ac_ext <<_ACEOF
3547/* confdefs.h.  */
3548_ACEOF
3549cat confdefs.h >>conftest.$ac_ext
3550cat >>conftest.$ac_ext <<_ACEOF
3551/* end confdefs.h.  */
3552
3553#include <stdio.h>
3554#include <stdlib.h>
3555#include <string.h>
3556#include "httpd.h"
3557
3558#ifndef AP_SERVER_BASEREVISION
3559    #define AP_SERVER_BASEREVISION SERVER_BASEREVISION
3560#endif
3561
3562char* my_strdup (char *str)
3563{
3564    char *new_str;
3565
3566    if (str) {
3567        new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
3568        strcpy (new_str, str);
3569    } else
3570        new_str = NULL;
3571
3572    return new_str;
3573}
3574
3575int main (int argc, char *argv[])
3576{
3577    int major1, minor1, micro1;
3578    int major2, minor2, micro2;
3579    char *tmp_version;
3580
3581    { FILE *fp = fopen("conf.apachetest", "a"); if ( fp ) fclose(fp); }
3582
3583    tmp_version = my_strdup("$min_apache_version");
3584    if (sscanf(tmp_version, "%d.%d.%d", &major1, &minor1, &micro1) != 3) {
3585        printf("%s, bad version string\n", "$min_apache_version");
3586        exit(1);
3587    }
3588    tmp_version = my_strdup(AP_SERVER_BASEREVISION);
3589    if (sscanf(tmp_version, "%d.%d.%d", &major2, &minor2, &micro2) != 3) {
3590        printf("%s, bad version string\n", AP_SERVER_BASEREVISION);
3591        exit(1);
3592    }
3593
3594    if ( (major2 == major1) &&
3595        ( (minor2 > minor1) ||
3596        ((minor2 == minor1) && (micro2 >= micro1)) ) ) {
3597        exit(0);
3598    } else {
3599        exit(1);
3600    }
3601}
3602
3603
3604_ACEOF
3605rm -f conftest$ac_exeext
3606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3607  (eval $ac_link) 2>&5
3608  ac_status=$?
3609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612  (eval $ac_try) 2>&5
3613  ac_status=$?
3614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615  (exit $ac_status); }; }; then
3616  :
3617else
3618  echo "$as_me: program exited with status $ac_status" >&5
3619echo "$as_me: failed program was:" >&5
3620sed 's/^/| /' conftest.$ac_ext >&5
3621
3622( exit $ac_status )
3623no_apache=yes
3624fi
3625rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3626fi
3627    CFLAGS="$ac_save_CFLAGS"
3628
3629    if test "x$no_apache" = x ; then
3630        echo "$as_me:$LINENO: result: yes" >&5
3631echo "${ECHO_T}yes" >&6
3632
3633cat >>confdefs.h <<\_ACEOF
3634#define WITH_APACHE13 1
3635_ACEOF
3636
3637                    AP_VERSION="1.3"
3638                    APXS_EXTENSION=.so
3639                    AP_CFLAGS="-g $AP_CFLAGS"
3640                    AP_DEFS="-DWITH_APACHE13"
3641                    :
3642       else
3643        if test -f conf.apachetest ; then
3644            :
3645        else
3646            echo "*** Could not run Apache test program, checking why..."
3647            CFLAGS="$CFLAGS $AP_CFLAGS"
3648            if test $releasetest -eq 20; then
3649                CFLAGS="$CFLAGS $APU_INCLUDES $APR_INCLUDES"
3650            fi
3651            cat >conftest.$ac_ext <<_ACEOF
3652/* confdefs.h.  */
3653_ACEOF
3654cat confdefs.h >>conftest.$ac_ext
3655cat >>conftest.$ac_ext <<_ACEOF
3656/* end confdefs.h.  */
3657
3658#include <stdio.h>
3659#include "httpd.h"
3660
3661int main(int argc, char *argv[])
3662{ return 0; }
3663#undef main
3664#define main K_and_R_C_main
3665
3666int
3667main ()
3668{
3669 return 0;
3670  ;
3671  return 0;
3672}
3673_ACEOF
3674rm -f conftest.$ac_objext conftest$ac_exeext
3675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3676  (eval $ac_link) 2>conftest.er1
3677  ac_status=$?
3678  grep -v '^ *+' conftest.er1 >conftest.err
3679  rm -f conftest.er1
3680  cat conftest.err >&5
3681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682  (exit $ac_status); } &&
3683         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685  (eval $ac_try) 2>&5
3686  ac_status=$?
3687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688  (exit $ac_status); }; } &&
3689         { ac_try='test -s conftest$ac_exeext'
3690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691  (eval $ac_try) 2>&5
3692  ac_status=$?
3693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694  (exit $ac_status); }; }; then
3695   echo "*** The test program compiled, but failed to run. Check config.log"
3696else
3697  echo "$as_me: failed program was:" >&5
3698sed 's/^/| /' conftest.$ac_ext >&5
3699
3700 echo "*** The test program failed to compile or link. Check config.log"
3701fi
3702rm -f conftest.err conftest.$ac_objext \
3703      conftest$ac_exeext conftest.$ac_ext
3704            CFLAGS="$ac_save_CFLAGS"
3705        fi
3706         echo "$as_me:$LINENO: result: no" >&5
3707echo "${ECHO_T}no" >&6
3708                    { { echo "$as_me:$LINENO: error: *** Apache version $AP_VERSION not found!" >&5
3709echo "$as_me: error: *** Apache version $AP_VERSION not found!" >&2;}
3710   { (exit 1); exit 1; }; }
3711
3712
3713      fi
3714      rm -f conf.apachetest
3715
3716            fi
3717        fi
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734    fi
3735
3736
3737LIBTOOL="`${APR_CONFIG} --apr-libtool`"
3738
3739
3740MIN_TLS_VERSION=1.2.0
3741
3742
3743# Check whether --with-libgnutls or --without-libgnutls was given.
3744if test "${with_libgnutls+set}" = set; then
3745  withval="$with_libgnutls"
3746  tls_prefix="$withval"
3747else
3748  tls_prefix="/usr"
3749
3750fi;
3751
3752    if test -x $tls_prefix -a ! -d $tls_prefix; then
3753        GTLS_BIN=$tls_prefix
3754    else
3755        test_paths="$tls_prefix:$tls_prefix/bin:$tls_prefix/sbin"
3756        test_paths="${test_paths}:/usr/bin:/usr/sbin"
3757        test_paths="${test_paths}:/usr/local/bin:/usr/local/sbin"
3758        # Extract the first word of "libgnutls-config", so it can be a program name with args.
3759set dummy libgnutls-config; ac_word=$2
3760echo "$as_me:$LINENO: checking for $ac_word" >&5
3761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3762if test "${ac_cv_path_GTLS_BIN+set}" = set; then
3763  echo $ECHO_N "(cached) $ECHO_C" >&6
3764else
3765  case $GTLS_BIN in
3766  [\\/]* | ?:[\\/]*)
3767  ac_cv_path_GTLS_BIN="$GTLS_BIN" # Let the user override the test with a path.
3768  ;;
3769  *)
3770  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771for as_dir in $test_paths
3772do
3773  IFS=$as_save_IFS
3774  test -z "$as_dir" && as_dir=.
3775  for ac_exec_ext in '' $ac_executable_extensions; do
3776  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3777    ac_cv_path_GTLS_BIN="$as_dir/$ac_word$ac_exec_ext"
3778    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3779    break 2
3780  fi
3781done
3782done
3783
3784  test -z "$ac_cv_path_GTLS_BIN" && ac_cv_path_GTLS_BIN="no"
3785  ;;
3786esac
3787fi
3788GTLS_BIN=$ac_cv_path_GTLS_BIN
3789
3790if test -n "$GTLS_BIN"; then
3791  echo "$as_me:$LINENO: result: $GTLS_BIN" >&5
3792echo "${ECHO_T}$GTLS_BIN" >&6
3793else
3794  echo "$as_me:$LINENO: result: no" >&5
3795echo "${ECHO_T}no" >&6
3796fi
3797
3798    fi
3799
3800    if test "$GTLS_BIN" = "no"; then
3801        { { echo "$as_me:$LINENO: error: *** The libgnutls-config binary installed by GnuTLS could not be found!" >&5
3802echo "$as_me: error: *** The libgnutls-config binary installed by GnuTLS could not be found!" >&2;}
3803   { (exit 1); exit 1; }; }
3804        { { echo "$as_me:$LINENO: error: *** Use the --with-libgnutls option with the full path to libgnutls-config" >&5
3805echo "$as_me: error: *** Use the --with-libgnutls option with the full path to libgnutls-config" >&2;}
3806   { (exit 1); exit 1; }; }
3807    else
3808                LIBGNUTLS_LIBS="`$GTLS_BIN --libs`"
3809        LIBGNUTLS_CFLAGS="`$GTLS_BIN --cflags`"
3810        LIBGNUTLS_VERSION="`$GTLS_BIN --version`"
3811        LIBGNUTLS_PREFIX="`$GTLS_BIN --prefix`"
3812        GNUTLS_CERTTOOL="${LIBGNUTLS_PREFIX}/bin/certtool"
3813
3814
3815
3816
3817
3818    fi
3819
3820
3821have_apr_memcache=0
3822
3823
3824# Check whether --with-apr-memcache or --without-apr-memcache was given.
3825if test "${with_apr_memcache+set}" = set; then
3826  withval="$with_apr_memcache"
3827  mc_path="$withval"
3828else
3829  :
3830fi;
3831
3832if test -z $mc_path; then
3833    test_paths="/usr/local /usr /usr/local/apache2"
3834else
3835    test_paths="${mc_path}"
3836fi
3837
3838if test -n ${AP_PREFIX}; then
3839    test_paths="${AP_PREFIX} ${test_paths}"
3840fi
3841
3842for x in $test_paths ; do
3843    echo "$as_me:$LINENO: checking for apr_memcache library in ${x}/lib" >&5
3844echo $ECHO_N "checking for apr_memcache library in ${x}/lib... $ECHO_C" >&6
3845    if test -f ${x}/lib/libapr_memcache.so; then
3846        echo "$as_me:$LINENO: result: yes" >&5
3847echo "${ECHO_T}yes" >&6
3848        save_CFLAGS=$CFLAGS
3849        save_LDFLAGS=$LDFLAGS
3850        CFLAGS="$CFLAGS"
3851        LDFLAGS="-L$x/lib $LDFLAGS"
3852        echo "$as_me:$LINENO: checking for apr_memcache_create in -lapr_memcache" >&5
3853echo $ECHO_N "checking for apr_memcache_create in -lapr_memcache... $ECHO_C" >&6
3854if test "${ac_cv_lib_apr_memcache_apr_memcache_create+set}" = set; then
3855  echo $ECHO_N "(cached) $ECHO_C" >&6
3856else
3857  ac_check_lib_save_LIBS=$LIBS
3858LIBS="-lapr_memcache  $LIBS"
3859cat >conftest.$ac_ext <<_ACEOF
3860/* confdefs.h.  */
3861_ACEOF
3862cat confdefs.h >>conftest.$ac_ext
3863cat >>conftest.$ac_ext <<_ACEOF
3864/* end confdefs.h.  */
3865
3866/* Override any gcc2 internal prototype to avoid an error.  */
3867#ifdef __cplusplus
3868extern "C"
3869#endif
3870/* We use char because int might match the return type of a gcc2
3871   builtin and then its argument prototype would still apply.  */
3872char apr_memcache_create ();
3873int
3874main ()
3875{
3876apr_memcache_create ();
3877  ;
3878  return 0;
3879}
3880_ACEOF
3881rm -f conftest.$ac_objext conftest$ac_exeext
3882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3883  (eval $ac_link) 2>conftest.er1
3884  ac_status=$?
3885  grep -v '^ *+' conftest.er1 >conftest.err
3886  rm -f conftest.er1
3887  cat conftest.err >&5
3888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889  (exit $ac_status); } &&
3890         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3892  (eval $ac_try) 2>&5
3893  ac_status=$?
3894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895  (exit $ac_status); }; } &&
3896         { ac_try='test -s conftest$ac_exeext'
3897  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3898  (eval $ac_try) 2>&5
3899  ac_status=$?
3900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901  (exit $ac_status); }; }; then
3902  ac_cv_lib_apr_memcache_apr_memcache_create=yes
3903else
3904  echo "$as_me: failed program was:" >&5
3905sed 's/^/| /' conftest.$ac_ext >&5
3906
3907ac_cv_lib_apr_memcache_apr_memcache_create=no
3908fi
3909rm -f conftest.err conftest.$ac_objext \
3910      conftest$ac_exeext conftest.$ac_ext
3911LIBS=$ac_check_lib_save_LIBS
3912fi
3913echo "$as_me:$LINENO: result: $ac_cv_lib_apr_memcache_apr_memcache_create" >&5
3914echo "${ECHO_T}$ac_cv_lib_apr_memcache_apr_memcache_create" >&6
3915if test $ac_cv_lib_apr_memcache_apr_memcache_create = yes; then
3916
3917            APR_MEMCACHE_LIBS="-L$x/lib -lapr_memcache"
3918            APR_MEMCACHE_CFLAGS="-I$x/include/apr_memcache-0"
3919
3920fi
3921
3922        CFLAGS=$save_CFLAGS
3923        LDFLAGS=$save_LDFLAGS
3924        break
3925    else
3926        echo "$as_me:$LINENO: result: no" >&5
3927echo "${ECHO_T}no" >&6
3928    fi
3929done
3930
3931
3932
3933
3934if test -z "${APR_MEMCACHE_LIBS}"; then
3935  { echo "$as_me:$LINENO: *** memcache library not found." >&5
3936echo "$as_me: *** memcache library not found." >&6;}
3937  have_apr_memcache=0
3938else
3939  { echo "$as_me:$LINENO: using '${APR_MEMCACHE_LIBS}' for memcache" >&5
3940echo "$as_me: using '${APR_MEMCACHE_LIBS}' for memcache" >&6;}
3941  have_apr_memcache=1
3942fi
3943
3944
3945
3946MODULE_CFLAGS="${LIBGNUTLS_CFLAGS} ${APR_MEMCACHE_CFLAGS} ${APXS_CFLAGS} ${AP_INCLUDES} ${APR_INCLUDES} ${APU_INCLUDES}"
3947MODULE_LIBS="${APR_MEMCACHE_LIBS} ${LIBGNUTLS_LIBS}"
3948
3949
3950
3951
3952                                        ac_config_files="$ac_config_files Makefile src/Makefile include/mod_gnutls.h data/Makefile"
3953
3954cat >confcache <<\_ACEOF
3955# This file is a shell script that caches the results of configure
3956# tests run on this system so they can be shared between configure
3957# scripts and configure runs, see configure's option --config-cache.
3958# It is not useful on other systems.  If it contains results you don't
3959# want to keep, you may remove or edit it.
3960#
3961# config.status only pays attention to the cache file if you give it
3962# the --recheck option to rerun configure.
3963#
3964# `ac_cv_env_foo' variables (set or unset) will be overridden when
3965# loading this file, other *unset* `ac_cv_foo' will be assigned the
3966# following values.
3967
3968_ACEOF
3969
3970# The following way of writing the cache mishandles newlines in values,
3971# but we know of no workaround that is simple, portable, and efficient.
3972# So, don't put newlines in cache variables' values.
3973# Ultrix sh set writes to stderr and can't be redirected directly,
3974# and sets the high bit in the cache file unless we assign to the vars.
3975{
3976  (set) 2>&1 |
3977    case `(ac_space=' '; set | grep ac_space) 2>&1` in
3978    *ac_space=\ *)
3979      # `set' does not quote correctly, so add quotes (double-quote
3980      # substitution turns \\\\ into \\, and sed turns \\ into \).
3981      sed -n \
3982        "s/'/'\\\\''/g;
3983          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3984      ;;
3985    *)
3986      # `set' quotes correctly as required by POSIX, so do not add quotes.
3987      sed -n \
3988        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3989      ;;
3990    esac;
3991} |
3992  sed '
3993     t clear
3994     : clear
3995     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3996     t end
3997     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3998     : end' >>confcache
3999if diff $cache_file confcache >/dev/null 2>&1; then :; else
4000  if test -w $cache_file; then
4001    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4002    cat confcache >$cache_file
4003  else
4004    echo "not updating unwritable cache $cache_file"
4005  fi
4006fi
4007rm -f confcache
4008
4009test "x$prefix" = xNONE && prefix=$ac_default_prefix
4010# Let make expand exec_prefix.
4011test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4012
4013# VPATH may cause trouble with some makes, so we remove $(srcdir),
4014# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4015# trailing colons and then remove the whole line if VPATH becomes empty
4016# (actually we leave an empty line to preserve line numbers).
4017if test "x$srcdir" = x.; then
4018  ac_vpsub='/^[  ]*VPATH[        ]*=/{
4019s/:*\$(srcdir):*/:/;
4020s/:*\${srcdir}:*/:/;
4021s/:*@srcdir@:*/:/;
4022s/^\([^=]*=[     ]*\):*/\1/;
4023s/:*$//;
4024s/^[^=]*=[       ]*$//;
4025}'
4026fi
4027
4028DEFS=-DHAVE_CONFIG_H
4029
4030ac_libobjs=
4031ac_ltlibobjs=
4032for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4033  # 1. Remove the extension, and $U if already installed.
4034  ac_i=`echo "$ac_i" |
4035         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4036  # 2. Add them.
4037  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4038  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4039done
4040LIBOBJS=$ac_libobjs
4041
4042LTLIBOBJS=$ac_ltlibobjs
4043
4044
4045if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
4046  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
4047Usually this means the macro was only invoked conditionally." >&5
4048echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
4049Usually this means the macro was only invoked conditionally." >&2;}
4050   { (exit 1); exit 1; }; }
4051fi
4052if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4053  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
4054Usually this means the macro was only invoked conditionally." >&5
4055echo "$as_me: error: conditional \"AMDEP\" was never defined.
4056Usually this means the macro was only invoked conditionally." >&2;}
4057   { (exit 1); exit 1; }; }
4058fi
4059if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4060  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
4061Usually this means the macro was only invoked conditionally." >&5
4062echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
4063Usually this means the macro was only invoked conditionally." >&2;}
4064   { (exit 1); exit 1; }; }
4065fi
4066
4067: ${CONFIG_STATUS=./config.status}
4068ac_clean_files_save=$ac_clean_files
4069ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4070{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4071echo "$as_me: creating $CONFIG_STATUS" >&6;}
4072cat >$CONFIG_STATUS <<_ACEOF
4073#! $SHELL
4074# Generated by $as_me.
4075# Run this file to recreate the current configuration.
4076# Compiler output produced by configure, useful for debugging
4077# configure, is in config.log if it exists.
4078
4079debug=false
4080ac_cs_recheck=false
4081ac_cs_silent=false
4082SHELL=\${CONFIG_SHELL-$SHELL}
4083_ACEOF
4084
4085cat >>$CONFIG_STATUS <<\_ACEOF
4086## --------------------- ##
4087## M4sh Initialization.  ##
4088## --------------------- ##
4089
4090# Be Bourne compatible
4091if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4092  emulate sh
4093  NULLCMD=:
4094  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4095  # is contrary to our usage.  Disable this feature.
4096  alias -g '${1+"$@"}'='"$@"'
4097elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4098  set -o posix
4099fi
4100DUALCASE=1; export DUALCASE # for MKS sh
4101
4102# Support unset when possible.
4103if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4104  as_unset=unset
4105else
4106  as_unset=false
4107fi
4108
4109
4110# Work around bugs in pre-3.0 UWIN ksh.
4111$as_unset ENV MAIL MAILPATH
4112PS1='$ '
4113PS2='> '
4114PS4='+ '
4115
4116# NLS nuisances.
4117for as_var in \
4118  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4119  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4120  LC_TELEPHONE LC_TIME
4121do
4122  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4123    eval $as_var=C; export $as_var
4124  else
4125    $as_unset $as_var
4126  fi
4127done
4128
4129# Required to use basename.
4130if expr a : '\(a\)' >/dev/null 2>&1; then
4131  as_expr=expr
4132else
4133  as_expr=false
4134fi
4135
4136if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4137  as_basename=basename
4138else
4139  as_basename=false
4140fi
4141
4142
4143# Name of the executable.
4144as_me=`$as_basename "$0" ||
4145$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4146         X"$0" : 'X\(//\)$' \| \
4147         X"$0" : 'X\(/\)$' \| \
4148         .     : '\(.\)' 2>/dev/null ||
4149echo X/"$0" |
4150    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4151          /^X\/\(\/\/\)$/{ s//\1/; q; }
4152          /^X\/\(\/\).*/{ s//\1/; q; }
4153          s/.*/./; q'`
4154
4155
4156# PATH needs CR, and LINENO needs CR and PATH.
4157# Avoid depending upon Character Ranges.
4158as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4159as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4160as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4161as_cr_digits='0123456789'
4162as_cr_alnum=$as_cr_Letters$as_cr_digits
4163
4164# The user is always right.
4165if test "${PATH_SEPARATOR+set}" != set; then
4166  echo "#! /bin/sh" >conf$$.sh
4167  echo  "exit 0"   >>conf$$.sh
4168  chmod +x conf$$.sh
4169  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4170    PATH_SEPARATOR=';'
4171  else
4172    PATH_SEPARATOR=:
4173  fi
4174  rm -f conf$$.sh
4175fi
4176
4177
4178  as_lineno_1=$LINENO
4179  as_lineno_2=$LINENO
4180  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4181  test "x$as_lineno_1" != "x$as_lineno_2" &&
4182  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
4183  # Find who we are.  Look in the path if we contain no path at all
4184  # relative or not.
4185  case $0 in
4186    *[\\/]* ) as_myself=$0 ;;
4187    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188for as_dir in $PATH
4189do
4190  IFS=$as_save_IFS
4191  test -z "$as_dir" && as_dir=.
4192  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4193done
4194
4195       ;;
4196  esac
4197  # We did not find ourselves, most probably we were run as `sh COMMAND'
4198  # in which case we are not to be found in the path.
4199  if test "x$as_myself" = x; then
4200    as_myself=$0
4201  fi
4202  if test ! -f "$as_myself"; then
4203    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4204echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4205   { (exit 1); exit 1; }; }
4206  fi
4207  case $CONFIG_SHELL in
4208  '')
4209    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4211do
4212  IFS=$as_save_IFS
4213  test -z "$as_dir" && as_dir=.
4214  for as_base in sh bash ksh sh5; do
4215         case $as_dir in
4216         /*)
4217           if ("$as_dir/$as_base" -c '
4218  as_lineno_1=$LINENO
4219  as_lineno_2=$LINENO
4220  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4221  test "x$as_lineno_1" != "x$as_lineno_2" &&
4222  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
4223             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4224             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4225             CONFIG_SHELL=$as_dir/$as_base
4226             export CONFIG_SHELL
4227             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4228           fi;;
4229         esac
4230       done
4231done
4232;;
4233  esac
4234
4235  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4236  # uniformly replaced by the line number.  The first 'sed' inserts a
4237  # line-number line before each line; the second 'sed' does the real
4238  # work.  The second script uses 'N' to pair each line-number line
4239  # with the numbered line, and appends trailing '-' during
4240  # substitution so that $LINENO is not a special case at line end.
4241  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4242  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
4243  sed '=' <$as_myself |
4244    sed '
4245      N
4246      s,$,-,
4247      : loop
4248      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4249      t loop
4250      s,-$,,
4251      s,^['$as_cr_digits']*\n,,
4252    ' >$as_me.lineno &&
4253  chmod +x $as_me.lineno ||
4254    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4255echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4256   { (exit 1); exit 1; }; }
4257
4258  # Don't try to exec as it changes $[0], causing all sort of problems
4259  # (the dirname of $[0] is not the place where we might find the
4260  # original and so on.  Autoconf is especially sensible to this).
4261  . ./$as_me.lineno
4262  # Exit status is that of the last command.
4263  exit
4264}
4265
4266
4267case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4268  *c*,-n*) ECHO_N= ECHO_C='
4269' ECHO_T='      ' ;;
4270  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4271  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
4272esac
4273
4274if expr a : '\(a\)' >/dev/null 2>&1; then
4275  as_expr=expr
4276else
4277  as_expr=false
4278fi
4279
4280rm -f conf$$ conf$$.exe conf$$.file
4281echo >conf$$.file
4282if ln -s conf$$.file conf$$ 2>/dev/null; then
4283  # We could just check for DJGPP; but this test a) works b) is more generic
4284  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4285  if test -f conf$$.exe; then
4286    # Don't use ln at all; we don't have any links
4287    as_ln_s='cp -p'
4288  else
4289    as_ln_s='ln -s'
4290  fi
4291elif ln conf$$.file conf$$ 2>/dev/null; then
4292  as_ln_s=ln
4293else
4294  as_ln_s='cp -p'
4295fi
4296rm -f conf$$ conf$$.exe conf$$.file
4297
4298if mkdir -p . 2>/dev/null; then
4299  as_mkdir_p=:
4300else
4301  test -d ./-p && rmdir ./-p
4302  as_mkdir_p=false
4303fi
4304
4305as_executable_p="test -f"
4306
4307# Sed expression to map a string onto a valid CPP name.
4308as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4309
4310# Sed expression to map a string onto a valid variable name.
4311as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4312
4313
4314# IFS
4315# We need space, tab and new line, in precisely that order.
4316as_nl='
4317'
4318IFS="   $as_nl"
4319
4320# CDPATH.
4321$as_unset CDPATH
4322
4323exec 6>&1
4324
4325# Open the log real soon, to keep \$[0] and so on meaningful, and to
4326# report actual input values of CONFIG_FILES etc. instead of their
4327# values after options handling.  Logging --version etc. is OK.
4328exec 5>>config.log
4329{
4330  echo
4331  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4332## Running $as_me. ##
4333_ASBOX
4334} >&5
4335cat >&5 <<_CSEOF
4336
4337This file was extended by mod_gnutls $as_me 0.1.1, which was
4338generated by GNU Autoconf 2.59.  Invocation command line was
4339
4340  CONFIG_FILES    = $CONFIG_FILES
4341  CONFIG_HEADERS  = $CONFIG_HEADERS
4342  CONFIG_LINKS    = $CONFIG_LINKS
4343  CONFIG_COMMANDS = $CONFIG_COMMANDS
4344  $ $0 $@
4345
4346_CSEOF
4347echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4348echo >&5
4349_ACEOF
4350
4351# Files that config.status was made for.
4352if test -n "$ac_config_files"; then
4353  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4354fi
4355
4356if test -n "$ac_config_headers"; then
4357  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4358fi
4359
4360if test -n "$ac_config_links"; then
4361  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4362fi
4363
4364if test -n "$ac_config_commands"; then
4365  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4366fi
4367
4368cat >>$CONFIG_STATUS <<\_ACEOF
4369
4370ac_cs_usage="\
4371\`$as_me' instantiates files from templates according to the
4372current configuration.
4373
4374Usage: $0 [OPTIONS] [FILE]...
4375
4376  -h, --help       print this help, then exit
4377  -V, --version    print version number, then exit
4378  -q, --quiet      do not print progress messages
4379  -d, --debug      don't remove temporary files
4380      --recheck    update $as_me by reconfiguring in the same conditions
4381  --file=FILE[:TEMPLATE]
4382                   instantiate the configuration file FILE
4383  --header=FILE[:TEMPLATE]
4384                   instantiate the configuration header FILE
4385
4386Configuration files:
4387$config_files
4388
4389Configuration headers:
4390$config_headers
4391
4392Configuration commands:
4393$config_commands
4394
4395Report bugs to <bug-autoconf@gnu.org>."
4396_ACEOF
4397
4398cat >>$CONFIG_STATUS <<_ACEOF
4399ac_cs_version="\\
4400mod_gnutls config.status 0.1.1
4401configured by $0, generated by GNU Autoconf 2.59,
4402  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4403
4404Copyright (C) 2003 Free Software Foundation, Inc.
4405This config.status script is free software; the Free Software Foundation
4406gives unlimited permission to copy, distribute and modify it."
4407srcdir=$srcdir
4408INSTALL="$INSTALL"
4409_ACEOF
4410
4411cat >>$CONFIG_STATUS <<\_ACEOF
4412# If no file are specified by the user, then we need to provide default
4413# value.  By we need to know if files were specified by the user.
4414ac_need_defaults=:
4415while test $# != 0
4416do
4417  case $1 in
4418  --*=*)
4419    ac_option=`expr "x$1" : 'x\([^=]*\)='`
4420    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4421    ac_shift=:
4422    ;;
4423  -*)
4424    ac_option=$1
4425    ac_optarg=$2
4426    ac_shift=shift
4427    ;;
4428  *) # This is not an option, so the user has probably given explicit
4429     # arguments.
4430     ac_option=$1
4431     ac_need_defaults=false;;
4432  esac
4433
4434  case $ac_option in
4435  # Handling of the options.
4436_ACEOF
4437cat >>$CONFIG_STATUS <<\_ACEOF
4438  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4439    ac_cs_recheck=: ;;
4440  --version | --vers* | -V )
4441    echo "$ac_cs_version"; exit 0 ;;
4442  --he | --h)
4443    # Conflict between --help and --header
4444    { { echo "$as_me:$LINENO: error: ambiguous option: $1
4445Try \`$0 --help' for more information." >&5
4446echo "$as_me: error: ambiguous option: $1
4447Try \`$0 --help' for more information." >&2;}
4448   { (exit 1); exit 1; }; };;
4449  --help | --hel | -h )
4450    echo "$ac_cs_usage"; exit 0 ;;
4451  --debug | --d* | -d )
4452    debug=: ;;
4453  --file | --fil | --fi | --f )
4454    $ac_shift
4455    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4456    ac_need_defaults=false;;
4457  --header | --heade | --head | --hea )
4458    $ac_shift
4459    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4460    ac_need_defaults=false;;
4461  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4462  | -silent | --silent | --silen | --sile | --sil | --si | --s)
4463    ac_cs_silent=: ;;
4464
4465  # This is an error.
4466  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4467Try \`$0 --help' for more information." >&5
4468echo "$as_me: error: unrecognized option: $1
4469Try \`$0 --help' for more information." >&2;}
4470   { (exit 1); exit 1; }; } ;;
4471
4472  *) ac_config_targets="$ac_config_targets $1" ;;
4473
4474  esac
4475  shift
4476done
4477
4478ac_configure_extra_args=
4479
4480if $ac_cs_silent; then
4481  exec 6>/dev/null
4482  ac_configure_extra_args="$ac_configure_extra_args --silent"
4483fi
4484
4485_ACEOF
4486cat >>$CONFIG_STATUS <<_ACEOF
4487if \$ac_cs_recheck; then
4488  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4489  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4490fi
4491
4492_ACEOF
4493
4494cat >>$CONFIG_STATUS <<_ACEOF
4495#
4496# INIT-COMMANDS section.
4497#
4498
4499AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
4500
4501_ACEOF
4502
4503
4504
4505cat >>$CONFIG_STATUS <<\_ACEOF
4506for ac_config_target in $ac_config_targets
4507do
4508  case "$ac_config_target" in
4509  # Handling of arguments.
4510  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4511  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
4512  "include/mod_gnutls.h" ) CONFIG_FILES="$CONFIG_FILES include/mod_gnutls.h" ;;
4513  "data/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
4514  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
4515  "include/mod_gnutls_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/mod_gnutls_config.h:config.in" ;;
4516  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4517echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4518   { (exit 1); exit 1; }; };;
4519  esac
4520done
4521
4522# If the user did not use the arguments to specify the items to instantiate,
4523# then the envvar interface is used.  Set only those that are not.
4524# We use the long form for the default assignment because of an extremely
4525# bizarre bug on SunOS 4.1.3.
4526if $ac_need_defaults; then
4527  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4528  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4529  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4530fi
4531
4532# Have a temporary directory for convenience.  Make it in the build tree
4533# simply because there is no reason to put it here, and in addition,
4534# creating and moving files from /tmp can sometimes cause problems.
4535# Create a temporary directory, and hook for its removal unless debugging.
4536$debug ||
4537{
4538  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4539  trap '{ (exit 1); exit 1; }' 1 2 13 15
4540}
4541
4542# Create a (secure) tmp directory for tmp files.
4543
4544{
4545  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4546  test -n "$tmp" && test -d "$tmp"
4547}  ||
4548{
4549  tmp=./confstat$$-$RANDOM
4550  (umask 077 && mkdir $tmp)
4551} ||
4552{
4553   echo "$me: cannot create a temporary directory in ." >&2
4554   { (exit 1); exit 1; }
4555}
4556
4557_ACEOF
4558
4559cat >>$CONFIG_STATUS <<_ACEOF
4560
4561#
4562# CONFIG_FILES section.
4563#
4564
4565# No need to generate the scripts if there are no CONFIG_FILES.
4566# This happens for instance when ./config.status config.h
4567if test -n "\$CONFIG_FILES"; then
4568  # Protect against being on the right side of a sed subst in config.status.
4569  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4570   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4571s,@SHELL@,$SHELL,;t t
4572s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4573s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4574s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4575s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4576s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4577s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4578s,@exec_prefix@,$exec_prefix,;t t
4579s,@prefix@,$prefix,;t t
4580s,@program_transform_name@,$program_transform_name,;t t
4581s,@bindir@,$bindir,;t t
4582s,@sbindir@,$sbindir,;t t
4583s,@libexecdir@,$libexecdir,;t t
4584s,@datadir@,$datadir,;t t
4585s,@sysconfdir@,$sysconfdir,;t t
4586s,@sharedstatedir@,$sharedstatedir,;t t
4587s,@localstatedir@,$localstatedir,;t t
4588s,@libdir@,$libdir,;t t
4589s,@includedir@,$includedir,;t t
4590s,@oldincludedir@,$oldincludedir,;t t
4591s,@infodir@,$infodir,;t t
4592s,@mandir@,$mandir,;t t
4593s,@build_alias@,$build_alias,;t t
4594s,@host_alias@,$host_alias,;t t
4595s,@target_alias@,$target_alias,;t t
4596s,@DEFS@,$DEFS,;t t
4597s,@ECHO_C@,$ECHO_C,;t t
4598s,@ECHO_N@,$ECHO_N,;t t
4599s,@ECHO_T@,$ECHO_T,;t t
4600s,@LIBS@,$LIBS,;t t
4601s,@OOO_MAINTAIN@,$OOO_MAINTAIN,;t t
4602s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
4603s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
4604s,@MAINT@,$MAINT,;t t
4605s,@build@,$build,;t t
4606s,@build_cpu@,$build_cpu,;t t
4607s,@build_vendor@,$build_vendor,;t t
4608s,@build_os@,$build_os,;t t
4609s,@host@,$host,;t t
4610s,@host_cpu@,$host_cpu,;t t
4611s,@host_vendor@,$host_vendor,;t t
4612s,@host_os@,$host_os,;t t
4613s,@target@,$target,;t t
4614s,@target_cpu@,$target_cpu,;t t
4615s,@target_vendor@,$target_vendor,;t t
4616s,@target_os@,$target_os,;t t
4617s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4618s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4619s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4620s,@CYGPATH_W@,$CYGPATH_W,;t t
4621s,@PACKAGE@,$PACKAGE,;t t
4622s,@VERSION@,$VERSION,;t t
4623s,@ACLOCAL@,$ACLOCAL,;t t
4624s,@AUTOCONF@,$AUTOCONF,;t t
4625s,@AUTOMAKE@,$AUTOMAKE,;t t
4626s,@AUTOHEADER@,$AUTOHEADER,;t t
4627s,@MAKEINFO@,$MAKEINFO,;t t
4628s,@install_sh@,$install_sh,;t t
4629s,@STRIP@,$STRIP,;t t
4630s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
4631s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
4632s,@mkdir_p@,$mkdir_p,;t t
4633s,@AWK@,$AWK,;t t
4634s,@SET_MAKE@,$SET_MAKE,;t t
4635s,@am__leading_dot@,$am__leading_dot,;t t
4636s,@AMTAR@,$AMTAR,;t t
4637s,@am__tar@,$am__tar,;t t
4638s,@am__untar@,$am__untar,;t t
4639s,@MOD_GNUTLS_VERSION@,$MOD_GNUTLS_VERSION,;t t
4640s,@CC@,$CC,;t t
4641s,@CFLAGS@,$CFLAGS,;t t
4642s,@LDFLAGS@,$LDFLAGS,;t t
4643s,@CPPFLAGS@,$CPPFLAGS,;t t
4644s,@ac_ct_CC@,$ac_ct_CC,;t t
4645s,@EXEEXT@,$EXEEXT,;t t
4646s,@OBJEXT@,$OBJEXT,;t t
4647s,@DEPDIR@,$DEPDIR,;t t
4648s,@am__include@,$am__include,;t t
4649s,@am__quote@,$am__quote,;t t
4650s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
4651s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
4652s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
4653s,@CCDEPMODE@,$CCDEPMODE,;t t
4654s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
4655s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
4656s,@EGREP@,$EGREP,;t t
4657s,@APXS_BIN@,$APXS_BIN,;t t
4658s,@AP_DEFS@,$AP_DEFS,;t t
4659s,@AP_PREFIX@,$AP_PREFIX,;t t
4660s,@AP_CFLAGS@,$AP_CFLAGS,;t t
4661s,@AP_CPPFLAGS@,$AP_CPPFLAGS,;t t
4662s,@AP_INCLUDES@,$AP_INCLUDES,;t t
4663s,@AP_INCLUDEDIR@,$AP_INCLUDEDIR,;t t
4664s,@AP_LIBEXECDIR@,$AP_LIBEXECDIR,;t t
4665s,@AP_VERSION@,$AP_VERSION,;t t
4666s,@AP_SYSCONFDIR@,$AP_SYSCONFDIR,;t t
4667s,@AP_BINDIR@,$AP_BINDIR,;t t
4668s,@AP_SBINDIR@,$AP_SBINDIR,;t t
4669s,@APR_INCLUDES@,$APR_INCLUDES,;t t
4670s,@APU_INCLUDES@,$APU_INCLUDES,;t t
4671s,@APXS_EXTENSION@,$APXS_EXTENSION,;t t
4672s,@APXS_CFLAGS@,$APXS_CFLAGS,;t t
4673s,@LIBTOOL@,$LIBTOOL,;t t
4674s,@GTLS_BIN@,$GTLS_BIN,;t t
4675s,@LIBGNUTLS_LIBS@,$LIBGNUTLS_LIBS,;t t
4676s,@LIBGNUTLS_CFLAGS@,$LIBGNUTLS_CFLAGS,;t t
4677s,@LIBGNUTLS_VERSION@,$LIBGNUTLS_VERSION,;t t
4678s,@GNUTLS_CERTTOOL@,$GNUTLS_CERTTOOL,;t t
4679s,@LIBGNUTLS_PREFIX@,$LIBGNUTLS_PREFIX,;t t
4680s,@APR_MEMCACHE_LIBS@,$APR_MEMCACHE_LIBS,;t t
4681s,@APR_MEMCACHE_CFLAGS@,$APR_MEMCACHE_CFLAGS,;t t
4682s,@have_apr_memcache@,$have_apr_memcache,;t t
4683s,@MODULE_CFLAGS@,$MODULE_CFLAGS,;t t
4684s,@MODULE_LIBS@,$MODULE_LIBS,;t t
4685s,@LIBOBJS@,$LIBOBJS,;t t
4686s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4687CEOF
4688
4689_ACEOF
4690
4691  cat >>$CONFIG_STATUS <<\_ACEOF
4692  # Split the substitutions into bite-sized pieces for seds with
4693  # small command number limits, like on Digital OSF/1 and HP-UX.
4694  ac_max_sed_lines=48
4695  ac_sed_frag=1 # Number of current file.
4696  ac_beg=1 # First line for current file.
4697  ac_end=$ac_max_sed_lines # Line after last line for current file.
4698  ac_more_lines=:
4699  ac_sed_cmds=
4700  while $ac_more_lines; do
4701    if test $ac_beg -gt 1; then
4702      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4703    else
4704      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4705    fi
4706    if test ! -s $tmp/subs.frag; then
4707      ac_more_lines=false
4708    else
4709      # The purpose of the label and of the branching condition is to
4710      # speed up the sed processing (if there are no `@' at all, there
4711      # is no need to browse any of the substitutions).
4712      # These are the two extra sed commands mentioned above.
4713      (echo ':t
4714  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4715      if test -z "$ac_sed_cmds"; then
4716        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4717      else
4718        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4719      fi
4720      ac_sed_frag=`expr $ac_sed_frag + 1`
4721      ac_beg=$ac_end
4722      ac_end=`expr $ac_end + $ac_max_sed_lines`
4723    fi
4724  done
4725  if test -z "$ac_sed_cmds"; then
4726    ac_sed_cmds=cat
4727  fi
4728fi # test -n "$CONFIG_FILES"
4729
4730_ACEOF
4731cat >>$CONFIG_STATUS <<\_ACEOF
4732for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4733  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4734  case $ac_file in
4735  - | *:- | *:-:* ) # input from stdin
4736        cat >$tmp/stdin
4737        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4738        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4739  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4740        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4741  * )   ac_file_in=$ac_file.in ;;
4742  esac
4743
4744  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4745  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4746$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4747         X"$ac_file" : 'X\(//\)[^/]' \| \
4748         X"$ac_file" : 'X\(//\)$' \| \
4749         X"$ac_file" : 'X\(/\)' \| \
4750         .     : '\(.\)' 2>/dev/null ||
4751echo X"$ac_file" |
4752    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4753          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4754          /^X\(\/\/\)$/{ s//\1/; q; }
4755          /^X\(\/\).*/{ s//\1/; q; }
4756          s/.*/./; q'`
4757  { if $as_mkdir_p; then
4758    mkdir -p "$ac_dir"
4759  else
4760    as_dir="$ac_dir"
4761    as_dirs=
4762    while test ! -d "$as_dir"; do
4763      as_dirs="$as_dir $as_dirs"
4764      as_dir=`(dirname "$as_dir") 2>/dev/null ||
4765$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4766         X"$as_dir" : 'X\(//\)[^/]' \| \
4767         X"$as_dir" : 'X\(//\)$' \| \
4768         X"$as_dir" : 'X\(/\)' \| \
4769         .     : '\(.\)' 2>/dev/null ||
4770echo X"$as_dir" |
4771    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4772          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4773          /^X\(\/\/\)$/{ s//\1/; q; }
4774          /^X\(\/\).*/{ s//\1/; q; }
4775          s/.*/./; q'`
4776    done
4777    test ! -n "$as_dirs" || mkdir $as_dirs
4778  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4779echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4780   { (exit 1); exit 1; }; }; }
4781
4782  ac_builddir=.
4783
4784if test "$ac_dir" != .; then
4785  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4786  # A "../" for each directory in $ac_dir_suffix.
4787  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4788else
4789  ac_dir_suffix= ac_top_builddir=
4790fi
4791
4792case $srcdir in
4793  .)  # No --srcdir option.  We are building in place.
4794    ac_srcdir=.
4795    if test -z "$ac_top_builddir"; then
4796       ac_top_srcdir=.
4797    else
4798       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4799    fi ;;
4800  [\\/]* | ?:[\\/]* )  # Absolute path.
4801    ac_srcdir=$srcdir$ac_dir_suffix;
4802    ac_top_srcdir=$srcdir ;;
4803  *) # Relative path.
4804    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4805    ac_top_srcdir=$ac_top_builddir$srcdir ;;
4806esac
4807
4808# Do not use `cd foo && pwd` to compute absolute paths, because
4809# the directories may not exist.
4810case `pwd` in
4811.) ac_abs_builddir="$ac_dir";;
4812*)
4813  case "$ac_dir" in
4814  .) ac_abs_builddir=`pwd`;;
4815  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4816  *) ac_abs_builddir=`pwd`/"$ac_dir";;
4817  esac;;
4818esac
4819case $ac_abs_builddir in
4820.) ac_abs_top_builddir=${ac_top_builddir}.;;
4821*)
4822  case ${ac_top_builddir}. in
4823  .) ac_abs_top_builddir=$ac_abs_builddir;;
4824  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4825  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4826  esac;;
4827esac
4828case $ac_abs_builddir in
4829.) ac_abs_srcdir=$ac_srcdir;;
4830*)
4831  case $ac_srcdir in
4832  .) ac_abs_srcdir=$ac_abs_builddir;;
4833  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4834  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4835  esac;;
4836esac
4837case $ac_abs_builddir in
4838.) ac_abs_top_srcdir=$ac_top_srcdir;;
4839*)
4840  case $ac_top_srcdir in
4841  .) ac_abs_top_srcdir=$ac_abs_builddir;;
4842  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4843  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4844  esac;;
4845esac
4846
4847
4848  case $INSTALL in
4849  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4850  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4851  esac
4852
4853  # Let's still pretend it is `configure' which instantiates (i.e., don't
4854  # use $as_me), people would be surprised to read:
4855  #    /* config.h.  Generated by config.status.  */
4856  if test x"$ac_file" = x-; then
4857    configure_input=
4858  else
4859    configure_input="$ac_file.  "
4860  fi
4861  configure_input=$configure_input"Generated from `echo $ac_file_in |
4862                                     sed 's,.*/,,'` by configure."
4863
4864  # First look for the input files in the build tree, otherwise in the
4865  # src tree.
4866  ac_file_inputs=`IFS=:
4867    for f in $ac_file_in; do
4868      case $f in
4869      -) echo $tmp/stdin ;;
4870      [\\/$]*)
4871         # Absolute (can't be DOS-style, as IFS=:)
4872         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4873echo "$as_me: error: cannot find input file: $f" >&2;}
4874   { (exit 1); exit 1; }; }
4875         echo "$f";;
4876      *) # Relative
4877         if test -f "$f"; then
4878           # Build tree
4879           echo "$f"
4880         elif test -f "$srcdir/$f"; then
4881           # Source tree
4882           echo "$srcdir/$f"
4883         else
4884           # /dev/null tree
4885           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4886echo "$as_me: error: cannot find input file: $f" >&2;}
4887   { (exit 1); exit 1; }; }
4888         fi;;
4889      esac
4890    done` || { (exit 1); exit 1; }
4891
4892  if test x"$ac_file" != x-; then
4893    { echo "$as_me:$LINENO: creating $ac_file" >&5
4894echo "$as_me: creating $ac_file" >&6;}
4895    rm -f "$ac_file"
4896  fi
4897_ACEOF
4898cat >>$CONFIG_STATUS <<_ACEOF
4899  sed "$ac_vpsub
4900$extrasub
4901_ACEOF
4902cat >>$CONFIG_STATUS <<\_ACEOF
4903:t
4904/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4905s,@configure_input@,$configure_input,;t t
4906s,@srcdir@,$ac_srcdir,;t t
4907s,@abs_srcdir@,$ac_abs_srcdir,;t t
4908s,@top_srcdir@,$ac_top_srcdir,;t t
4909s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4910s,@builddir@,$ac_builddir,;t t
4911s,@abs_builddir@,$ac_abs_builddir,;t t
4912s,@top_builddir@,$ac_top_builddir,;t t
4913s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4914s,@INSTALL@,$ac_INSTALL,;t t
4915" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4916  rm -f $tmp/stdin
4917  if test x"$ac_file" != x-; then
4918    mv $tmp/out $ac_file
4919  else
4920    cat $tmp/out
4921    rm -f $tmp/out
4922  fi
4923
4924done
4925_ACEOF
4926cat >>$CONFIG_STATUS <<\_ACEOF
4927
4928#
4929# CONFIG_HEADER section.
4930#
4931
4932# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4933# NAME is the cpp macro being defined and VALUE is the value it is being given.
4934#
4935# ac_d sets the value in "#define NAME VALUE" lines.
4936ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
4937ac_dB='[         ].*$,\1#\2'
4938ac_dC=' '
4939ac_dD=',;t'
4940# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4941ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4942ac_uB='$,\1#\2define\3'
4943ac_uC=' '
4944ac_uD=',;t'
4945
4946for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4947  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4948  case $ac_file in
4949  - | *:- | *:-:* ) # input from stdin
4950        cat >$tmp/stdin
4951        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4952        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4953  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4954        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4955  * )   ac_file_in=$ac_file.in ;;
4956  esac
4957
4958  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4959echo "$as_me: creating $ac_file" >&6;}
4960
4961  # First look for the input files in the build tree, otherwise in the
4962  # src tree.
4963  ac_file_inputs=`IFS=:
4964    for f in $ac_file_in; do
4965      case $f in
4966      -) echo $tmp/stdin ;;
4967      [\\/$]*)
4968         # Absolute (can't be DOS-style, as IFS=:)
4969         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4970echo "$as_me: error: cannot find input file: $f" >&2;}
4971   { (exit 1); exit 1; }; }
4972         # Do quote $f, to prevent DOS paths from being IFS'd.
4973         echo "$f";;
4974      *) # Relative
4975         if test -f "$f"; then
4976           # Build tree
4977           echo "$f"
4978         elif test -f "$srcdir/$f"; then
4979           # Source tree
4980           echo "$srcdir/$f"
4981         else
4982           # /dev/null tree
4983           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4984echo "$as_me: error: cannot find input file: $f" >&2;}
4985   { (exit 1); exit 1; }; }
4986         fi;;
4987      esac
4988    done` || { (exit 1); exit 1; }
4989  # Remove the trailing spaces.
4990  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
4991
4992_ACEOF
4993
4994# Transform confdefs.h into two sed scripts, `conftest.defines' and
4995# `conftest.undefs', that substitutes the proper values into
4996# config.h.in to produce config.h.  The first handles `#define'
4997# templates, and the second `#undef' templates.
4998# And first: Protect against being on the right side of a sed subst in
4999# config.status.  Protect against being in an unquoted here document
5000# in config.status.
5001rm -f conftest.defines conftest.undefs
5002# Using a here document instead of a string reduces the quoting nightmare.
5003# Putting comments in sed scripts is not portable.
5004#
5005# `end' is used to avoid that the second main sed command (meant for
5006# 0-ary CPP macros) applies to n-ary macro definitions.
5007# See the Autoconf documentation for `clear'.
5008cat >confdef2sed.sed <<\_ACEOF
5009s/[\\&,]/\\&/g
5010s,[\\$`],\\&,g
5011t clear
5012: clear
5013s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5014t end
5015s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5016: end
5017_ACEOF
5018# If some macros were called several times there might be several times
5019# the same #defines, which is useless.  Nevertheless, we may not want to
5020# sort them, since we want the *last* AC-DEFINE to be honored.
5021uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5022sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5023rm -f confdef2sed.sed
5024
5025# This sed command replaces #undef with comments.  This is necessary, for
5026# example, in the case of _POSIX_SOURCE, which is predefined and required
5027# on some systems where configure will not decide to define it.
5028cat >>conftest.undefs <<\_ACEOF
5029s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5030_ACEOF
5031
5032# Break up conftest.defines because some shells have a limit on the size
5033# of here documents, and old seds have small limits too (100 cmds).
5034echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5035echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5036echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5037echo '  :' >>$CONFIG_STATUS
5038rm -f conftest.tail
5039while grep . conftest.defines >/dev/null
5040do
5041  # Write a limited-size here document to $tmp/defines.sed.
5042  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5043  # Speed up: don't consider the non `#define' lines.
5044  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
5045  # Work around the forget-to-reset-the-flag bug.
5046  echo 't clr' >>$CONFIG_STATUS
5047  echo ': clr' >>$CONFIG_STATUS
5048  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5049  echo 'CEOF
5050  sed -f $tmp/defines.sed $tmp/in >$tmp/out
5051  rm -f $tmp/in
5052  mv $tmp/out $tmp/in
5053' >>$CONFIG_STATUS
5054  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5055  rm -f conftest.defines
5056  mv conftest.tail conftest.defines
5057done
5058rm -f conftest.defines
5059echo '  fi # grep' >>$CONFIG_STATUS
5060echo >>$CONFIG_STATUS
5061
5062# Break up conftest.undefs because some shells have a limit on the size
5063# of here documents, and old seds have small limits too (100 cmds).
5064echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
5065rm -f conftest.tail
5066while grep . conftest.undefs >/dev/null
5067do
5068  # Write a limited-size here document to $tmp/undefs.sed.
5069  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5070  # Speed up: don't consider the non `#undef'
5071  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
5072  # Work around the forget-to-reset-the-flag bug.
5073  echo 't clr' >>$CONFIG_STATUS
5074  echo ': clr' >>$CONFIG_STATUS
5075  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5076  echo 'CEOF
5077  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5078  rm -f $tmp/in
5079  mv $tmp/out $tmp/in
5080' >>$CONFIG_STATUS
5081  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5082  rm -f conftest.undefs
5083  mv conftest.tail conftest.undefs
5084done
5085rm -f conftest.undefs
5086
5087cat >>$CONFIG_STATUS <<\_ACEOF
5088  # Let's still pretend it is `configure' which instantiates (i.e., don't
5089  # use $as_me), people would be surprised to read:
5090  #    /* config.h.  Generated by config.status.  */
5091  if test x"$ac_file" = x-; then
5092    echo "/* Generated by configure.  */" >$tmp/config.h
5093  else
5094    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
5095  fi
5096  cat $tmp/in >>$tmp/config.h
5097  rm -f $tmp/in
5098  if test x"$ac_file" != x-; then
5099    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5100      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5101echo "$as_me: $ac_file is unchanged" >&6;}
5102    else
5103      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5104$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5105         X"$ac_file" : 'X\(//\)[^/]' \| \
5106         X"$ac_file" : 'X\(//\)$' \| \
5107         X"$ac_file" : 'X\(/\)' \| \
5108         .     : '\(.\)' 2>/dev/null ||
5109echo X"$ac_file" |
5110    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5111          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5112          /^X\(\/\/\)$/{ s//\1/; q; }
5113          /^X\(\/\).*/{ s//\1/; q; }
5114          s/.*/./; q'`
5115      { if $as_mkdir_p; then
5116    mkdir -p "$ac_dir"
5117  else
5118    as_dir="$ac_dir"
5119    as_dirs=
5120    while test ! -d "$as_dir"; do
5121      as_dirs="$as_dir $as_dirs"
5122      as_dir=`(dirname "$as_dir") 2>/dev/null ||
5123$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5124         X"$as_dir" : 'X\(//\)[^/]' \| \
5125         X"$as_dir" : 'X\(//\)$' \| \
5126         X"$as_dir" : 'X\(/\)' \| \
5127         .     : '\(.\)' 2>/dev/null ||
5128echo X"$as_dir" |
5129    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5130          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5131          /^X\(\/\/\)$/{ s//\1/; q; }
5132          /^X\(\/\).*/{ s//\1/; q; }
5133          s/.*/./; q'`
5134    done
5135    test ! -n "$as_dirs" || mkdir $as_dirs
5136  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5137echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5138   { (exit 1); exit 1; }; }; }
5139
5140      rm -f $ac_file
5141      mv $tmp/config.h $ac_file
5142    fi
5143  else
5144    cat $tmp/config.h
5145    rm -f $tmp/config.h
5146  fi
5147# Compute $ac_file's index in $config_headers.
5148_am_stamp_count=1
5149for _am_header in $config_headers :; do
5150  case $_am_header in
5151    $ac_file | $ac_file:* )
5152      break ;;
5153    * )
5154      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
5155  esac
5156done
5157echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
5158$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5159         X$ac_file : 'X\(//\)[^/]' \| \
5160         X$ac_file : 'X\(//\)$' \| \
5161         X$ac_file : 'X\(/\)' \| \
5162         .     : '\(.\)' 2>/dev/null ||
5163echo X$ac_file |
5164    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5165          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5166          /^X\(\/\/\)$/{ s//\1/; q; }
5167          /^X\(\/\).*/{ s//\1/; q; }
5168          s/.*/./; q'`/stamp-h$_am_stamp_count
5169done
5170_ACEOF
5171cat >>$CONFIG_STATUS <<\_ACEOF
5172
5173#
5174# CONFIG_COMMANDS section.
5175#
5176for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5177  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5178  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5179  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5180$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5181         X"$ac_dest" : 'X\(//\)[^/]' \| \
5182         X"$ac_dest" : 'X\(//\)$' \| \
5183         X"$ac_dest" : 'X\(/\)' \| \
5184         .     : '\(.\)' 2>/dev/null ||
5185echo X"$ac_dest" |
5186    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5187          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5188          /^X\(\/\/\)$/{ s//\1/; q; }
5189          /^X\(\/\).*/{ s//\1/; q; }
5190          s/.*/./; q'`
5191  { if $as_mkdir_p; then
5192    mkdir -p "$ac_dir"
5193  else
5194    as_dir="$ac_dir"
5195    as_dirs=
5196    while test ! -d "$as_dir"; do
5197      as_dirs="$as_dir $as_dirs"
5198      as_dir=`(dirname "$as_dir") 2>/dev/null ||
5199$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5200         X"$as_dir" : 'X\(//\)[^/]' \| \
5201         X"$as_dir" : 'X\(//\)$' \| \
5202         X"$as_dir" : 'X\(/\)' \| \
5203         .     : '\(.\)' 2>/dev/null ||
5204echo X"$as_dir" |
5205    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5206          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5207          /^X\(\/\/\)$/{ s//\1/; q; }
5208          /^X\(\/\).*/{ s//\1/; q; }
5209          s/.*/./; q'`
5210    done
5211    test ! -n "$as_dirs" || mkdir $as_dirs
5212  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5213echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5214   { (exit 1); exit 1; }; }; }
5215
5216  ac_builddir=.
5217
5218if test "$ac_dir" != .; then
5219  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5220  # A "../" for each directory in $ac_dir_suffix.
5221  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5222else
5223  ac_dir_suffix= ac_top_builddir=
5224fi
5225
5226case $srcdir in
5227  .)  # No --srcdir option.  We are building in place.
5228    ac_srcdir=.
5229    if test -z "$ac_top_builddir"; then
5230       ac_top_srcdir=.
5231    else
5232       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5233    fi ;;
5234  [\\/]* | ?:[\\/]* )  # Absolute path.
5235    ac_srcdir=$srcdir$ac_dir_suffix;
5236    ac_top_srcdir=$srcdir ;;
5237  *) # Relative path.
5238    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5239    ac_top_srcdir=$ac_top_builddir$srcdir ;;
5240esac
5241
5242# Do not use `cd foo && pwd` to compute absolute paths, because
5243# the directories may not exist.
5244case `pwd` in
5245.) ac_abs_builddir="$ac_dir";;
5246*)
5247  case "$ac_dir" in
5248  .) ac_abs_builddir=`pwd`;;
5249  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5250  *) ac_abs_builddir=`pwd`/"$ac_dir";;
5251  esac;;
5252esac
5253case $ac_abs_builddir in
5254.) ac_abs_top_builddir=${ac_top_builddir}.;;
5255*)
5256  case ${ac_top_builddir}. in
5257  .) ac_abs_top_builddir=$ac_abs_builddir;;
5258  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5259  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5260  esac;;
5261esac
5262case $ac_abs_builddir in
5263.) ac_abs_srcdir=$ac_srcdir;;
5264*)
5265  case $ac_srcdir in
5266  .) ac_abs_srcdir=$ac_abs_builddir;;
5267  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5268  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5269  esac;;
5270esac
5271case $ac_abs_builddir in
5272.) ac_abs_top_srcdir=$ac_top_srcdir;;
5273*)
5274  case $ac_top_srcdir in
5275  .) ac_abs_top_srcdir=$ac_abs_builddir;;
5276  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5277  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5278  esac;;
5279esac
5280
5281
5282  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5283echo "$as_me: executing $ac_dest commands" >&6;}
5284  case $ac_dest in
5285    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
5286  # Strip MF so we end up with the name of the file.
5287  mf=`echo "$mf" | sed -e 's/:.*$//'`
5288  # Check whether this is an Automake generated Makefile or not.
5289  # We used to match only the files named `Makefile.in', but
5290  # some people rename them; so instead we look at the file content.
5291  # Grep'ing the first line is not enough: some people post-process
5292  # each Makefile.in and add a new line on top of each file to say so.
5293  # So let's grep whole file.
5294  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
5295    dirpart=`(dirname "$mf") 2>/dev/null ||
5296$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5297         X"$mf" : 'X\(//\)[^/]' \| \
5298         X"$mf" : 'X\(//\)$' \| \
5299         X"$mf" : 'X\(/\)' \| \
5300         .     : '\(.\)' 2>/dev/null ||
5301echo X"$mf" |
5302    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5303          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5304          /^X\(\/\/\)$/{ s//\1/; q; }
5305          /^X\(\/\).*/{ s//\1/; q; }
5306          s/.*/./; q'`
5307  else
5308    continue
5309  fi
5310  # Extract the definition of DEPDIR, am__include, and am__quote
5311  # from the Makefile without running `make'.
5312  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
5313  test -z "$DEPDIR" && continue
5314  am__include=`sed -n 's/^am__include = //p' < "$mf"`
5315  test -z "am__include" && continue
5316  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
5317  # When using ansi2knr, U may be empty or an underscore; expand it
5318  U=`sed -n 's/^U = //p' < "$mf"`
5319  # Find all dependency output files, they are included files with
5320  # $(DEPDIR) in their names.  We invoke sed twice because it is the
5321  # simplest approach to changing $(DEPDIR) to its actual value in the
5322  # expansion.
5323  for file in `sed -n "
5324    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
5325       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5326    # Make sure the directory exists.
5327    test -f "$dirpart/$file" && continue
5328    fdir=`(dirname "$file") 2>/dev/null ||
5329$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5330         X"$file" : 'X\(//\)[^/]' \| \
5331         X"$file" : 'X\(//\)$' \| \
5332         X"$file" : 'X\(/\)' \| \
5333         .     : '\(.\)' 2>/dev/null ||
5334echo X"$file" |
5335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5336          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5337          /^X\(\/\/\)$/{ s//\1/; q; }
5338          /^X\(\/\).*/{ s//\1/; q; }
5339          s/.*/./; q'`
5340    { if $as_mkdir_p; then
5341    mkdir -p $dirpart/$fdir
5342  else
5343    as_dir=$dirpart/$fdir
5344    as_dirs=
5345    while test ! -d "$as_dir"; do
5346      as_dirs="$as_dir $as_dirs"
5347      as_dir=`(dirname "$as_dir") 2>/dev/null ||
5348$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5349         X"$as_dir" : 'X\(//\)[^/]' \| \
5350         X"$as_dir" : 'X\(//\)$' \| \
5351         X"$as_dir" : 'X\(/\)' \| \
5352         .     : '\(.\)' 2>/dev/null ||
5353echo X"$as_dir" |
5354    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5355          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5356          /^X\(\/\/\)$/{ s//\1/; q; }
5357          /^X\(\/\).*/{ s//\1/; q; }
5358          s/.*/./; q'`
5359    done
5360    test ! -n "$as_dirs" || mkdir $as_dirs
5361  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
5362echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
5363   { (exit 1); exit 1; }; }; }
5364
5365    # echo "creating $dirpart/$file"
5366    echo '# dummy' > "$dirpart/$file"
5367  done
5368done
5369 ;;
5370  esac
5371done
5372_ACEOF
5373
5374cat >>$CONFIG_STATUS <<\_ACEOF
5375
5376{ (exit 0); exit 0; }
5377_ACEOF
5378chmod +x $CONFIG_STATUS
5379ac_clean_files=$ac_clean_files_save
5380
5381
5382# configure is writing to config.log, and then calls config.status.
5383# config.status does its own redirection, appending to config.log.
5384# Unfortunately, on DOS this fails, as config.log is still kept open
5385# by configure, so config.status won't be able to write to it; its
5386# output is simply discarded.  So we exec the FD to /dev/null,
5387# effectively closing config.log, so it can be properly (re)opened and
5388# appended to by config.status.  When coming back to configure, we
5389# need to make the FD available again.
5390if test "$no_create" != yes; then
5391  ac_cs_success=:
5392  ac_config_status_args=
5393  test "$silent" = yes &&
5394    ac_config_status_args="$ac_config_status_args --quiet"
5395  exec 5>/dev/null
5396  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5397  exec 5>>config.log
5398  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5399  # would make configure fail if this is the last instruction.
5400  $ac_cs_success || { (exit 1); exit 1; }
5401fi
5402
5403
5404echo "---"
5405echo "Configuration summary for mod_gnutls:"
5406echo ""
5407echo "   * mod_gnutls version:  ${MOD_GNUTLS_VERSION}"
5408echo "   * Apache Modules directory:    ${AP_LIBEXECDIR}"
5409echo "   * GnuTLS Library version:      ${LIBGNUTLS_VERSION}"
5410echo ""
5411echo "---"
Note: See TracBrowser for help on using the repository browser.