1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200  if (eval "$as_required") 2>/dev/null; then :
201  as_have_required=yes
202else
203  as_have_required=no
204fi
205  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212  IFS=$as_save_IFS
213  test -z "$as_dir" && as_dir=.
214  as_found=:
215  case $as_dir in #(
216	 /*)
217	   for as_base in sh bash ksh sh5; do
218	     # Try only shells that exist, to save several forks.
219	     as_shell=$as_dir/$as_base
220	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222  CONFIG_SHELL=$as_shell as_have_required=yes
223		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  break 2
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233  CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238      if test "x$CONFIG_SHELL" != x; then :
239  export CONFIG_SHELL
240             # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248  *v*x* | *x*v* ) as_opts=-vx ;;
249  *v* ) as_opts=-v ;;
250  *x* ) as_opts=-x ;;
251  * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260    if test x$as_have_required = xno; then :
261  $as_echo "$0: This script requires a shell more modern than all"
262  $as_echo "$0: the shells that I found on your system."
263  if test x${ZSH_VERSION+set} = xset ; then
264    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266  else
267    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271  fi
272  exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290  { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299  return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307  set +e
308  as_fn_set_status $1
309  exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318  case $as_dir in #(
319  -*) as_dir=./$as_dir;;
320  esac
321  test -d "$as_dir" || eval $as_mkdir_p || {
322    as_dirs=
323    while :; do
324      case $as_dir in #(
325      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326      *) as_qdir=$as_dir;;
327      esac
328      as_dirs="'$as_qdir' $as_dirs"
329      as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331	 X"$as_dir" : 'X\(//\)[^/]' \| \
332	 X"$as_dir" : 'X\(//\)$' \| \
333	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336	    s//\1/
337	    q
338	  }
339	  /^X\(\/\/\)[^/].*/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\).*/{
348	    s//\1/
349	    q
350	  }
351	  s/.*/./; q'`
352      test -d "$as_dir" && break
353    done
354    test -z "$as_dirs" || eval "mkdir $as_dirs"
355  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365  test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374  eval 'as_fn_append ()
375  {
376    eval $1+=\$2
377  }'
378else
379  as_fn_append ()
380  {
381    eval $1=\$$1\$2
382  }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391  eval 'as_fn_arith ()
392  {
393    as_val=$(( $* ))
394  }'
395else
396  as_fn_arith ()
397  {
398    as_val=`expr "$@" || test $? -eq 1`
399  }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410  as_status=$1; test $as_status -eq 0 && as_status=1
411  if test "$4"; then
412    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414  fi
415  $as_echo "$as_me: error: $2" >&2
416  as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421  as_expr=expr
422else
423  as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427  as_basename=basename
428else
429  as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433  as_dirname=dirname
434else
435  as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440	 X"$0" : 'X\(//\)$' \| \
441	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443    sed '/^.*\/\([^/][^/]*\)\/*$/{
444	    s//\1/
445	    q
446	  }
447	  /^X\/\(\/\/\)$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\).*/{
452	    s//\1/
453	    q
454	  }
455	  s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465  as_lineno_1=$LINENO as_lineno_1a=$LINENO
466  as_lineno_2=$LINENO as_lineno_2a=$LINENO
467  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470  sed -n '
471    p
472    /[$]LINENO/=
473  ' <$as_myself |
474    sed '
475      s/[$]LINENO.*/&-/
476      t lineno
477      b
478      :lineno
479      N
480      :loop
481      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482      t loop
483      s/-\n.*//
484    ' >$as_me.lineno &&
485  chmod +x "$as_me.lineno" ||
486    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489  # already done that, so ensure we don't try to do so again and fall
490  # in an infinite loop.  This has already happened in practice.
491  _as_can_reexec=no; export _as_can_reexec
492  # Don't try to exec as it changes $[0], causing all sort of problems
493  # (the dirname of $[0] is not the place where we might find the
494  # original and so on.  Autoconf is especially sensitive to this).
495  . "./$as_me.lineno"
496  # Exit status is that of the last command.
497  exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503  case `echo 'xy\c'` in
504  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
505  xy)  ECHO_C='\c';;
506  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507       ECHO_T='	';;
508  esac;;
509*)
510  ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515  rm -f conf$$.dir/conf$$.file
516else
517  rm -f conf$$.dir
518  mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521  if ln -s conf$$.file conf$$ 2>/dev/null; then
522    as_ln_s='ln -s'
523    # ... but there are two gotchas:
524    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526    # In both cases, we have to default to `cp -pR'.
527    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528      as_ln_s='cp -pR'
529  elif ln conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s=ln
531  else
532    as_ln_s='cp -pR'
533  fi
534else
535  as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541  as_mkdir_p='mkdir -p "$as_dir"'
542else
543  test -d ./-p && rmdir ./-p
544  as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
559
560# Name of the host.
561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
583PACKAGE_URL=
584
585ac_unique_file="export_vars.sh.in"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
589#ifdef HAVE_SYS_TYPES_H
590# include <sys/types.h>
591#endif
592#ifdef HAVE_SYS_STAT_H
593# include <sys/stat.h>
594#endif
595#ifdef STDC_HEADERS
596# include <stdlib.h>
597# include <stddef.h>
598#else
599# ifdef HAVE_STDLIB_H
600#  include <stdlib.h>
601# endif
602#endif
603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605#  include <memory.h>
606# endif
607# include <string.h>
608#endif
609#ifdef HAVE_STRINGS_H
610# include <strings.h>
611#endif
612#ifdef HAVE_INTTYPES_H
613# include <inttypes.h>
614#endif
615#ifdef HAVE_STDINT_H
616# include <stdint.h>
617#endif
618#ifdef HAVE_UNISTD_H
619# include <unistd.h>
620#endif"
621
622ac_subst_vars='LTLIBOBJS
623LIBOBJS
624INCLUDE_OUTPUTS
625INCLUDE_RULES
626APRUTIL_LIBS
627APRUTIL_LDFLAGS
628APRUTIL_INCLUDES
629APRUTIL_PRIV_INCLUDES
630APRUTIL_EXPORT_LIBS
631EXTRA_OBJECTS
632APU_MODULES
633APU_DSO_LIBDIR
634APU_HAVE_MODULES
635APRUTIL_LIBNAME
636lib_target
637so_ext
638have_apr_iconv
639have_iconv
640apu_dbd_tests
641LDADD_dbd_odbc
642apu_have_odbc
643ODBC_CONFIG
644LDADD_dbd_oracle
645apu_have_oracle
646LDADD_dbd_sqlite2
647apu_have_sqlite2
648LDADD_dbd_sqlite3
649apu_have_sqlite3
650LDADD_dbd_mysql
651apu_have_mysql
652MYSQL_CONFIG
653LDADD_dbd_pgsql
654apu_have_pgsql
655PGSQL_CONFIG
656LDADD_dbm_ndbm
657LDADD_dbm_gdbm
658LDADD_dbm_db
659apu_db_version
660apu_db_header
661apu_have_db
662apu_have_ndbm
663apu_have_gdbm
664apu_have_sdbm
665apu_use_db
666apu_use_ndbm
667apu_use_gdbm
668apu_use_sdbm
669LDADD_ldap
670apu_has_ldap_other
671apu_has_ldap_zos
672apu_has_ldap_tivoli
673apu_has_ldap_mozilla
674apu_has_ldap_netscape
675apu_has_ldap_microsoft
676apu_has_ldap_novell
677apu_has_ldap_solaris
678apu_has_ldap_openldap
679apu_has_ldap
680apu_has_ldapssl_install_routines
681apu_has_ldap_sslinit
682apu_has_ldapssl_init
683apu_has_ldap_start_tls_s
684apu_has_ldapssl_add_trusted_cert
685apu_has_ldapssl_client_deinit
686apu_has_ldapssl_client_init
687ldap_ssl_h
688lber_h
689ldap_h
690LDADD_crypto_commoncrypto
691apu_have_commoncrypto
692LDADD_crypto_nss
693apu_have_nss
694PKG_CONFIG
695apu_have_crypto
696LDADD_crypto_openssl
697apu_have_openssl
698EGREP
699GREP
700CPP
701APR_ICONV_DIR
702apr_shlibpath_var
703APR_BUILD_DIR
704APR_LIBS
705APR_INCLUDES
706OBJEXT
707EXEEXT
708ac_ct_CC
709CPPFLAGS
710LDFLAGS
711CFLAGS
712CC
713APU_LTVERSION
714APRUTIL_MAJOR_VERSION
715APRUTIL_DOTTED_VERSION
716abs_builddir
717abs_srcdir
718top_builddir
719LT_NO_INSTALL
720INSTALL_DATA
721INSTALL_SCRIPT
722INSTALL_PROGRAM
723target_os
724target_vendor
725target_cpu
726target
727host_os
728host_vendor
729host_cpu
730host
731build_os
732build_vendor
733build_cpu
734build
735APU_CONFIG_LOCATION
736target_alias
737host_alias
738build_alias
739LIBS
740ECHO_T
741ECHO_N
742ECHO_C
743DEFS
744mandir
745localedir
746libdir
747psdir
748pdfdir
749dvidir
750htmldir
751infodir
752docdir
753oldincludedir
754includedir
755localstatedir
756sharedstatedir
757sysconfdir
758datadir
759datarootdir
760libexecdir
761sbindir
762bindir
763program_transform_name
764prefix
765exec_prefix
766PACKAGE_URL
767PACKAGE_BUGREPORT
768PACKAGE_STRING
769PACKAGE_VERSION
770PACKAGE_TARNAME
771PACKAGE_NAME
772PATH_SEPARATOR
773SHELL'
774ac_subst_files=''
775ac_user_opts='
776enable_option_checking
777enable_layout
778with_apr
779with_apr_iconv
780with_crypto
781with_openssl
782with_nss
783with_commoncrypto
784with_lber
785with_ldap_include
786with_ldap_lib
787with_ldap
788with_dbm
789with_gdbm
790with_ndbm
791with_berkeley_db
792with_pgsql
793with_mysql
794with_sqlite3
795with_sqlite2
796with_oracle_include
797with_oracle
798with_odbc
799with_expat
800with_iconv
801enable_util_dso
802'
803      ac_precious_vars='build_alias
804host_alias
805target_alias
806CC
807CFLAGS
808LDFLAGS
809LIBS
810CPPFLAGS
811CPP'
812
813
814# Initialize some variables set by options.
815ac_init_help=
816ac_init_version=false
817ac_unrecognized_opts=
818ac_unrecognized_sep=
819# The variables have the same names as the options, with
820# dashes changed to underlines.
821cache_file=/dev/null
822exec_prefix=NONE
823no_create=
824no_recursion=
825prefix=NONE
826program_prefix=NONE
827program_suffix=NONE
828program_transform_name=s,x,x,
829silent=
830site=
831srcdir=
832verbose=
833x_includes=NONE
834x_libraries=NONE
835
836# Installation directory options.
837# These are left unexpanded so users can "make install exec_prefix=/foo"
838# and all the variables that are supposed to be based on exec_prefix
839# by default will actually change.
840# Use braces instead of parens because sh, perl, etc. also accept them.
841# (The list follows the same order as the GNU Coding Standards.)
842bindir='${exec_prefix}/bin'
843sbindir='${exec_prefix}/sbin'
844libexecdir='${exec_prefix}/libexec'
845datarootdir='${prefix}/share'
846datadir='${datarootdir}'
847sysconfdir='${prefix}/etc'
848sharedstatedir='${prefix}/com'
849localstatedir='${prefix}/var'
850includedir='${prefix}/include'
851oldincludedir='/usr/include'
852docdir='${datarootdir}/doc/${PACKAGE}'
853infodir='${datarootdir}/info'
854htmldir='${docdir}'
855dvidir='${docdir}'
856pdfdir='${docdir}'
857psdir='${docdir}'
858libdir='${exec_prefix}/lib'
859localedir='${datarootdir}/locale'
860mandir='${datarootdir}/man'
861
862ac_prev=
863ac_dashdash=
864for ac_option
865do
866  # If the previous option needs an argument, assign it.
867  if test -n "$ac_prev"; then
868    eval $ac_prev=\$ac_option
869    ac_prev=
870    continue
871  fi
872
873  case $ac_option in
874  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
875  *=)   ac_optarg= ;;
876  *)    ac_optarg=yes ;;
877  esac
878
879  # Accept the important Cygnus configure options, so we can diagnose typos.
880
881  case $ac_dashdash$ac_option in
882  --)
883    ac_dashdash=yes ;;
884
885  -bindir | --bindir | --bindi | --bind | --bin | --bi)
886    ac_prev=bindir ;;
887  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
888    bindir=$ac_optarg ;;
889
890  -build | --build | --buil | --bui | --bu)
891    ac_prev=build_alias ;;
892  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893    build_alias=$ac_optarg ;;
894
895  -cache-file | --cache-file | --cache-fil | --cache-fi \
896  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897    ac_prev=cache_file ;;
898  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900    cache_file=$ac_optarg ;;
901
902  --config-cache | -C)
903    cache_file=config.cache ;;
904
905  -datadir | --datadir | --datadi | --datad)
906    ac_prev=datadir ;;
907  -datadir=* | --datadir=* | --datadi=* | --datad=*)
908    datadir=$ac_optarg ;;
909
910  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911  | --dataroo | --dataro | --datar)
912    ac_prev=datarootdir ;;
913  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915    datarootdir=$ac_optarg ;;
916
917  -disable-* | --disable-*)
918    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
919    # Reject names that are not valid shell variable names.
920    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921      as_fn_error $? "invalid feature name: $ac_useropt"
922    ac_useropt_orig=$ac_useropt
923    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924    case $ac_user_opts in
925      *"
926"enable_$ac_useropt"
927"*) ;;
928      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
929	 ac_unrecognized_sep=', ';;
930    esac
931    eval enable_$ac_useropt=no ;;
932
933  -docdir | --docdir | --docdi | --doc | --do)
934    ac_prev=docdir ;;
935  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936    docdir=$ac_optarg ;;
937
938  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939    ac_prev=dvidir ;;
940  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941    dvidir=$ac_optarg ;;
942
943  -enable-* | --enable-*)
944    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
945    # Reject names that are not valid shell variable names.
946    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947      as_fn_error $? "invalid feature name: $ac_useropt"
948    ac_useropt_orig=$ac_useropt
949    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950    case $ac_user_opts in
951      *"
952"enable_$ac_useropt"
953"*) ;;
954      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
955	 ac_unrecognized_sep=', ';;
956    esac
957    eval enable_$ac_useropt=\$ac_optarg ;;
958
959  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961  | --exec | --exe | --ex)
962    ac_prev=exec_prefix ;;
963  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965  | --exec=* | --exe=* | --ex=*)
966    exec_prefix=$ac_optarg ;;
967
968  -gas | --gas | --ga | --g)
969    # Obsolete; use --with-gas.
970    with_gas=yes ;;
971
972  -help | --help | --hel | --he | -h)
973    ac_init_help=long ;;
974  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975    ac_init_help=recursive ;;
976  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977    ac_init_help=short ;;
978
979  -host | --host | --hos | --ho)
980    ac_prev=host_alias ;;
981  -host=* | --host=* | --hos=* | --ho=*)
982    host_alias=$ac_optarg ;;
983
984  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985    ac_prev=htmldir ;;
986  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987  | --ht=*)
988    htmldir=$ac_optarg ;;
989
990  -includedir | --includedir | --includedi | --included | --include \
991  | --includ | --inclu | --incl | --inc)
992    ac_prev=includedir ;;
993  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994  | --includ=* | --inclu=* | --incl=* | --inc=*)
995    includedir=$ac_optarg ;;
996
997  -infodir | --infodir | --infodi | --infod | --info | --inf)
998    ac_prev=infodir ;;
999  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1000    infodir=$ac_optarg ;;
1001
1002  -libdir | --libdir | --libdi | --libd)
1003    ac_prev=libdir ;;
1004  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1005    libdir=$ac_optarg ;;
1006
1007  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008  | --libexe | --libex | --libe)
1009    ac_prev=libexecdir ;;
1010  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011  | --libexe=* | --libex=* | --libe=*)
1012    libexecdir=$ac_optarg ;;
1013
1014  -localedir | --localedir | --localedi | --localed | --locale)
1015    ac_prev=localedir ;;
1016  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017    localedir=$ac_optarg ;;
1018
1019  -localstatedir | --localstatedir | --localstatedi | --localstated \
1020  | --localstate | --localstat | --localsta | --localst | --locals)
1021    ac_prev=localstatedir ;;
1022  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1023  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1024    localstatedir=$ac_optarg ;;
1025
1026  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027    ac_prev=mandir ;;
1028  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1029    mandir=$ac_optarg ;;
1030
1031  -nfp | --nfp | --nf)
1032    # Obsolete; use --without-fp.
1033    with_fp=no ;;
1034
1035  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036  | --no-cr | --no-c | -n)
1037    no_create=yes ;;
1038
1039  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041    no_recursion=yes ;;
1042
1043  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045  | --oldin | --oldi | --old | --ol | --o)
1046    ac_prev=oldincludedir ;;
1047  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1050    oldincludedir=$ac_optarg ;;
1051
1052  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053    ac_prev=prefix ;;
1054  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1055    prefix=$ac_optarg ;;
1056
1057  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058  | --program-pre | --program-pr | --program-p)
1059    ac_prev=program_prefix ;;
1060  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1062    program_prefix=$ac_optarg ;;
1063
1064  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065  | --program-suf | --program-su | --program-s)
1066    ac_prev=program_suffix ;;
1067  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1069    program_suffix=$ac_optarg ;;
1070
1071  -program-transform-name | --program-transform-name \
1072  | --program-transform-nam | --program-transform-na \
1073  | --program-transform-n | --program-transform- \
1074  | --program-transform | --program-transfor \
1075  | --program-transfo | --program-transf \
1076  | --program-trans | --program-tran \
1077  | --progr-tra | --program-tr | --program-t)
1078    ac_prev=program_transform_name ;;
1079  -program-transform-name=* | --program-transform-name=* \
1080  | --program-transform-nam=* | --program-transform-na=* \
1081  | --program-transform-n=* | --program-transform-=* \
1082  | --program-transform=* | --program-transfor=* \
1083  | --program-transfo=* | --program-transf=* \
1084  | --program-trans=* | --program-tran=* \
1085  | --progr-tra=* | --program-tr=* | --program-t=*)
1086    program_transform_name=$ac_optarg ;;
1087
1088  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089    ac_prev=pdfdir ;;
1090  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091    pdfdir=$ac_optarg ;;
1092
1093  -psdir | --psdir | --psdi | --psd | --ps)
1094    ac_prev=psdir ;;
1095  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096    psdir=$ac_optarg ;;
1097
1098  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099  | -silent | --silent | --silen | --sile | --sil)
1100    silent=yes ;;
1101
1102  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103    ac_prev=sbindir ;;
1104  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105  | --sbi=* | --sb=*)
1106    sbindir=$ac_optarg ;;
1107
1108  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110  | --sharedst | --shareds | --shared | --share | --shar \
1111  | --sha | --sh)
1112    ac_prev=sharedstatedir ;;
1113  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116  | --sha=* | --sh=*)
1117    sharedstatedir=$ac_optarg ;;
1118
1119  -site | --site | --sit)
1120    ac_prev=site ;;
1121  -site=* | --site=* | --sit=*)
1122    site=$ac_optarg ;;
1123
1124  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125    ac_prev=srcdir ;;
1126  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127    srcdir=$ac_optarg ;;
1128
1129  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130  | --syscon | --sysco | --sysc | --sys | --sy)
1131    ac_prev=sysconfdir ;;
1132  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134    sysconfdir=$ac_optarg ;;
1135
1136  -target | --target | --targe | --targ | --tar | --ta | --t)
1137    ac_prev=target_alias ;;
1138  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139    target_alias=$ac_optarg ;;
1140
1141  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142    verbose=yes ;;
1143
1144  -version | --version | --versio | --versi | --vers | -V)
1145    ac_init_version=: ;;
1146
1147  -with-* | --with-*)
1148    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149    # Reject names that are not valid shell variable names.
1150    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151      as_fn_error $? "invalid package name: $ac_useropt"
1152    ac_useropt_orig=$ac_useropt
1153    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154    case $ac_user_opts in
1155      *"
1156"with_$ac_useropt"
1157"*) ;;
1158      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1159	 ac_unrecognized_sep=', ';;
1160    esac
1161    eval with_$ac_useropt=\$ac_optarg ;;
1162
1163  -without-* | --without-*)
1164    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1165    # Reject names that are not valid shell variable names.
1166    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167      as_fn_error $? "invalid package name: $ac_useropt"
1168    ac_useropt_orig=$ac_useropt
1169    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170    case $ac_user_opts in
1171      *"
1172"with_$ac_useropt"
1173"*) ;;
1174      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1175	 ac_unrecognized_sep=', ';;
1176    esac
1177    eval with_$ac_useropt=no ;;
1178
1179  --x)
1180    # Obsolete; use --with-x.
1181    with_x=yes ;;
1182
1183  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1184  | --x-incl | --x-inc | --x-in | --x-i)
1185    ac_prev=x_includes ;;
1186  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1187  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1188    x_includes=$ac_optarg ;;
1189
1190  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1191  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1192    ac_prev=x_libraries ;;
1193  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1194  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1195    x_libraries=$ac_optarg ;;
1196
1197  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1198Try \`$0 --help' for more information"
1199    ;;
1200
1201  *=*)
1202    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1203    # Reject names that are not valid shell variable names.
1204    case $ac_envvar in #(
1205      '' | [0-9]* | *[!_$as_cr_alnum]* )
1206      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1207    esac
1208    eval $ac_envvar=\$ac_optarg
1209    export $ac_envvar ;;
1210
1211  *)
1212    # FIXME: should be removed in autoconf 3.0.
1213    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1214    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1216    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1217    ;;
1218
1219  esac
1220done
1221
1222if test -n "$ac_prev"; then
1223  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1224  as_fn_error $? "missing argument to $ac_option"
1225fi
1226
1227if test -n "$ac_unrecognized_opts"; then
1228  case $enable_option_checking in
1229    no) ;;
1230    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1231    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1232  esac
1233fi
1234
1235# Check all directory arguments for consistency.
1236for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1237		datadir sysconfdir sharedstatedir localstatedir includedir \
1238		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1239		libdir localedir mandir
1240do
1241  eval ac_val=\$$ac_var
1242  # Remove trailing slashes.
1243  case $ac_val in
1244    */ )
1245      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1246      eval $ac_var=\$ac_val;;
1247  esac
1248  # Be sure to have absolute directory names.
1249  case $ac_val in
1250    [\\/$]* | ?:[\\/]* )  continue;;
1251    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1252  esac
1253  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1254done
1255
1256# There might be people who depend on the old broken behavior: `$host'
1257# used to hold the argument of --host etc.
1258# FIXME: To remove some day.
1259build=$build_alias
1260host=$host_alias
1261target=$target_alias
1262
1263# FIXME: To remove some day.
1264if test "x$host_alias" != x; then
1265  if test "x$build_alias" = x; then
1266    cross_compiling=maybe
1267  elif test "x$build_alias" != "x$host_alias"; then
1268    cross_compiling=yes
1269  fi
1270fi
1271
1272ac_tool_prefix=
1273test -n "$host_alias" && ac_tool_prefix=$host_alias-
1274
1275test "$silent" = yes && exec 6>/dev/null
1276
1277
1278ac_pwd=`pwd` && test -n "$ac_pwd" &&
1279ac_ls_di=`ls -di .` &&
1280ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1281  as_fn_error $? "working directory cannot be determined"
1282test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1283  as_fn_error $? "pwd does not report name of working directory"
1284
1285
1286# Find the source files, if location was not specified.
1287if test -z "$srcdir"; then
1288  ac_srcdir_defaulted=yes
1289  # Try the directory containing this script, then the parent directory.
1290  ac_confdir=`$as_dirname -- "$as_myself" ||
1291$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292	 X"$as_myself" : 'X\(//\)[^/]' \| \
1293	 X"$as_myself" : 'X\(//\)$' \| \
1294	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1295$as_echo X"$as_myself" |
1296    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297	    s//\1/
1298	    q
1299	  }
1300	  /^X\(\/\/\)[^/].*/{
1301	    s//\1/
1302	    q
1303	  }
1304	  /^X\(\/\/\)$/{
1305	    s//\1/
1306	    q
1307	  }
1308	  /^X\(\/\).*/{
1309	    s//\1/
1310	    q
1311	  }
1312	  s/.*/./; q'`
1313  srcdir=$ac_confdir
1314  if test ! -r "$srcdir/$ac_unique_file"; then
1315    srcdir=..
1316  fi
1317else
1318  ac_srcdir_defaulted=no
1319fi
1320if test ! -r "$srcdir/$ac_unique_file"; then
1321  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1322  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1323fi
1324ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1325ac_abs_confdir=`(
1326	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1327	pwd)`
1328# When building in place, set srcdir=.
1329if test "$ac_abs_confdir" = "$ac_pwd"; then
1330  srcdir=.
1331fi
1332# Remove unnecessary trailing slashes from srcdir.
1333# Double slashes in file names in object file debugging info
1334# mess up M-x gdb in Emacs.
1335case $srcdir in
1336*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1337esac
1338for ac_var in $ac_precious_vars; do
1339  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1340  eval ac_env_${ac_var}_value=\$${ac_var}
1341  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1342  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1343done
1344
1345#
1346# Report the --help message.
1347#
1348if test "$ac_init_help" = "long"; then
1349  # Omit some internal or obsolete options to make the list less imposing.
1350  # This message is too long to be a string in the A/UX 3.1 sh.
1351  cat <<_ACEOF
1352\`configure' configures this package to adapt to many kinds of systems.
1353
1354Usage: $0 [OPTION]... [VAR=VALUE]...
1355
1356To assign environment variables (e.g., CC, CFLAGS...), specify them as
1357VAR=VALUE.  See below for descriptions of some of the useful variables.
1358
1359Defaults for the options are specified in brackets.
1360
1361Configuration:
1362  -h, --help              display this help and exit
1363      --help=short        display options specific to this package
1364      --help=recursive    display the short help of all the included packages
1365  -V, --version           display version information and exit
1366  -q, --quiet, --silent   do not print \`checking ...' messages
1367      --cache-file=FILE   cache test results in FILE [disabled]
1368  -C, --config-cache      alias for \`--cache-file=config.cache'
1369  -n, --no-create         do not create output files
1370      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1371
1372Installation directories:
1373  --prefix=PREFIX         install architecture-independent files in PREFIX
1374                          [$ac_default_prefix]
1375  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1376                          [PREFIX]
1377
1378By default, \`make install' will install all the files in
1379\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1380an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1381for instance \`--prefix=\$HOME'.
1382
1383For better control, use the options below.
1384
1385Fine tuning of the installation directories:
1386  --bindir=DIR            user executables [EPREFIX/bin]
1387  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1388  --libexecdir=DIR        program executables [EPREFIX/libexec]
1389  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1390  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1391  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1392  --libdir=DIR            object code libraries [EPREFIX/lib]
1393  --includedir=DIR        C header files [PREFIX/include]
1394  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1395  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1396  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1397  --infodir=DIR           info documentation [DATAROOTDIR/info]
1398  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1399  --mandir=DIR            man documentation [DATAROOTDIR/man]
1400  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1401  --htmldir=DIR           html documentation [DOCDIR]
1402  --dvidir=DIR            dvi documentation [DOCDIR]
1403  --pdfdir=DIR            pdf documentation [DOCDIR]
1404  --psdir=DIR             ps documentation [DOCDIR]
1405_ACEOF
1406
1407  cat <<\_ACEOF
1408
1409System types:
1410  --build=BUILD     configure for building on BUILD [guessed]
1411  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1412  --target=TARGET   configure for building compilers for TARGET [HOST]
1413_ACEOF
1414fi
1415
1416if test -n "$ac_init_help"; then
1417
1418  cat <<\_ACEOF
1419
1420Optional Features:
1421  --disable-option-checking  ignore unrecognized --enable/--with options
1422  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1423  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1424  --enable-layout=LAYOUT
1425  --disable-util-dso      disable DSO build of modular components (crypto,
1426                          dbd, dbm, ldap)
1427
1428Optional Packages:
1429  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1430  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1431  --with-apr=PATH         prefix for installed APR or the full path to
1432                             apr-config
1433  --with-apr-iconv=DIR    relative path to apr-iconv source
1434  --with-crypto           enable crypto support
1435  --with-openssl=DIR      specify location of OpenSSL
1436  --with-nss=DIR          specify location of NSS
1437  --with-commoncrypto=DIR specify location of CommonCrypto
1438  --with-lber=library     lber library to use
1439  --with-ldap-include=path  path to ldap include files with trailing slash
1440  --with-ldap-lib=path    path to ldap lib file
1441  --with-ldap=library     ldap library to use
1442  --with-dbm=DBM          choose the DBM type to use.
1443                          DBM={sdbm,gdbm,ndbm,db,db1,db185,db2,db3,db4,db4X,db5X,db6X}
1444                          for some X=0,...,9
1445  --with-gdbm=DIR         enable GDBM support
1446  --with-ndbm=PATH        Find the NDBM header and library in `PATH/include'
1447                          and `PATH/lib'. If PATH is of the form `HEADER:LIB',
1448                          then search for header files in HEADER, and the
1449                          library in LIB. If you omit the `=PATH' part
1450                          completely, the configure script will search for
1451                          NDBM in a number of standard places.
1452  --with-berkeley-db=PATH Find the Berkeley DB header and library in
1453                          `PATH/include' and `PATH/lib'. If PATH is of the
1454                          form `HEADER:LIB', then search for header files in
1455                          HEADER, and the library in LIB. If you omit the
1456                          `=PATH' part completely, the configure script will
1457                          search for Berkeley DB in a number of standard
1458                          places.
1459  --with-pgsql=DIR        specify PostgreSQL location
1460  --with-mysql=DIR        enable MySQL DBD driver
1461  --with-sqlite3=DIR      enable sqlite3 DBD driver
1462  --with-sqlite2=DIR      enable sqlite2 DBD driver
1463  --with-oracle-include=DIR
1464                          path to Oracle include files
1465  --with-oracle=DIR       enable Oracle DBD driver; giving ORACLE_HOME as DIR
1466  --with-odbc=DIR         specify ODBC location
1467  --with-expat=DIR        specify Expat location
1468  --with-iconv=DIR        path to iconv installation
1469
1470Some influential environment variables:
1471  CC          C compiler command
1472  CFLAGS      C compiler flags
1473  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1474              nonstandard directory <lib dir>
1475  LIBS        libraries to pass to the linker, e.g. -l<library>
1476  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1477              you have headers in a nonstandard directory <include dir>
1478  CPP         C preprocessor
1479
1480Use these variables to override the choices made by `configure' or to help
1481it to find libraries and programs with nonstandard names/locations.
1482
1483Report bugs to the package provider.
1484_ACEOF
1485ac_status=$?
1486fi
1487
1488if test "$ac_init_help" = "recursive"; then
1489  # If there are subdirs, report their specific --help.
1490  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1491    test -d "$ac_dir" ||
1492      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1493      continue
1494    ac_builddir=.
1495
1496case "$ac_dir" in
1497.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498*)
1499  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1500  # A ".." for each directory in $ac_dir_suffix.
1501  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1502  case $ac_top_builddir_sub in
1503  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1505  esac ;;
1506esac
1507ac_abs_top_builddir=$ac_pwd
1508ac_abs_builddir=$ac_pwd$ac_dir_suffix
1509# for backward compatibility:
1510ac_top_builddir=$ac_top_build_prefix
1511
1512case $srcdir in
1513  .)  # We are building in place.
1514    ac_srcdir=.
1515    ac_top_srcdir=$ac_top_builddir_sub
1516    ac_abs_top_srcdir=$ac_pwd ;;
1517  [\\/]* | ?:[\\/]* )  # Absolute name.
1518    ac_srcdir=$srcdir$ac_dir_suffix;
1519    ac_top_srcdir=$srcdir
1520    ac_abs_top_srcdir=$srcdir ;;
1521  *) # Relative name.
1522    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1523    ac_top_srcdir=$ac_top_build_prefix$srcdir
1524    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1525esac
1526ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1527
1528    cd "$ac_dir" || { ac_status=$?; continue; }
1529    # Check for guested configure.
1530    if test -f "$ac_srcdir/configure.gnu"; then
1531      echo &&
1532      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1533    elif test -f "$ac_srcdir/configure"; then
1534      echo &&
1535      $SHELL "$ac_srcdir/configure" --help=recursive
1536    else
1537      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1538    fi || ac_status=$?
1539    cd "$ac_pwd" || { ac_status=$?; break; }
1540  done
1541fi
1542
1543test -n "$ac_init_help" && exit $ac_status
1544if $ac_init_version; then
1545  cat <<\_ACEOF
1546configure
1547generated by GNU Autoconf 2.69
1548
1549Copyright (C) 2012 Free Software Foundation, Inc.
1550This configure script is free software; the Free Software Foundation
1551gives unlimited permission to copy, distribute and modify it.
1552_ACEOF
1553  exit
1554fi
1555
1556## ------------------------ ##
1557## Autoconf initialization. ##
1558## ------------------------ ##
1559
1560# ac_fn_c_try_compile LINENO
1561# --------------------------
1562# Try to compile conftest.$ac_ext, and return whether this succeeded.
1563ac_fn_c_try_compile ()
1564{
1565  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566  rm -f conftest.$ac_objext
1567  if { { ac_try="$ac_compile"
1568case "(($ac_try" in
1569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570  *) ac_try_echo=$ac_try;;
1571esac
1572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573$as_echo "$ac_try_echo"; } >&5
1574  (eval "$ac_compile") 2>conftest.err
1575  ac_status=$?
1576  if test -s conftest.err; then
1577    grep -v '^ *+' conftest.err >conftest.er1
1578    cat conftest.er1 >&5
1579    mv -f conftest.er1 conftest.err
1580  fi
1581  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582  test $ac_status = 0; } && {
1583	 test -z "$ac_c_werror_flag" ||
1584	 test ! -s conftest.err
1585       } && test -s conftest.$ac_objext; then :
1586  ac_retval=0
1587else
1588  $as_echo "$as_me: failed program was:" >&5
1589sed 's/^/| /' conftest.$ac_ext >&5
1590
1591	ac_retval=1
1592fi
1593  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594  as_fn_set_status $ac_retval
1595
1596} # ac_fn_c_try_compile
1597
1598# ac_fn_c_try_link LINENO
1599# -----------------------
1600# Try to link conftest.$ac_ext, and return whether this succeeded.
1601ac_fn_c_try_link ()
1602{
1603  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604  rm -f conftest.$ac_objext conftest$ac_exeext
1605  if { { ac_try="$ac_link"
1606case "(($ac_try" in
1607  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608  *) ac_try_echo=$ac_try;;
1609esac
1610eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611$as_echo "$ac_try_echo"; } >&5
1612  (eval "$ac_link") 2>conftest.err
1613  ac_status=$?
1614  if test -s conftest.err; then
1615    grep -v '^ *+' conftest.err >conftest.er1
1616    cat conftest.er1 >&5
1617    mv -f conftest.er1 conftest.err
1618  fi
1619  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620  test $ac_status = 0; } && {
1621	 test -z "$ac_c_werror_flag" ||
1622	 test ! -s conftest.err
1623       } && test -s conftest$ac_exeext && {
1624	 test "$cross_compiling" = yes ||
1625	 test -x conftest$ac_exeext
1626       }; then :
1627  ac_retval=0
1628else
1629  $as_echo "$as_me: failed program was:" >&5
1630sed 's/^/| /' conftest.$ac_ext >&5
1631
1632	ac_retval=1
1633fi
1634  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1635  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1636  # interfere with the next link command; also delete a directory that is
1637  # left behind by Apple's compiler.  We do this before executing the actions.
1638  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1639  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640  as_fn_set_status $ac_retval
1641
1642} # ac_fn_c_try_link
1643
1644# ac_fn_c_try_cpp LINENO
1645# ----------------------
1646# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1647ac_fn_c_try_cpp ()
1648{
1649  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650  if { { ac_try="$ac_cpp conftest.$ac_ext"
1651case "(($ac_try" in
1652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653  *) ac_try_echo=$ac_try;;
1654esac
1655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656$as_echo "$ac_try_echo"; } >&5
1657  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1658  ac_status=$?
1659  if test -s conftest.err; then
1660    grep -v '^ *+' conftest.err >conftest.er1
1661    cat conftest.er1 >&5
1662    mv -f conftest.er1 conftest.err
1663  fi
1664  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665  test $ac_status = 0; } > conftest.i && {
1666	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1667	 test ! -s conftest.err
1668       }; then :
1669  ac_retval=0
1670else
1671  $as_echo "$as_me: failed program was:" >&5
1672sed 's/^/| /' conftest.$ac_ext >&5
1673
1674    ac_retval=1
1675fi
1676  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677  as_fn_set_status $ac_retval
1678
1679} # ac_fn_c_try_cpp
1680
1681# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1682# -------------------------------------------------------
1683# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1684# the include files in INCLUDES and setting the cache variable VAR
1685# accordingly.
1686ac_fn_c_check_header_mongrel ()
1687{
1688  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689  if eval \${$3+:} false; then :
1690  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1691$as_echo_n "checking for $2... " >&6; }
1692if eval \${$3+:} false; then :
1693  $as_echo_n "(cached) " >&6
1694fi
1695eval ac_res=\$$3
1696	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1697$as_echo "$ac_res" >&6; }
1698else
1699  # Is the header compilable?
1700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1701$as_echo_n "checking $2 usability... " >&6; }
1702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1703/* end confdefs.h.  */
1704$4
1705#include <$2>
1706_ACEOF
1707if ac_fn_c_try_compile "$LINENO"; then :
1708  ac_header_compiler=yes
1709else
1710  ac_header_compiler=no
1711fi
1712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1714$as_echo "$ac_header_compiler" >&6; }
1715
1716# Is the header present?
1717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1718$as_echo_n "checking $2 presence... " >&6; }
1719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720/* end confdefs.h.  */
1721#include <$2>
1722_ACEOF
1723if ac_fn_c_try_cpp "$LINENO"; then :
1724  ac_header_preproc=yes
1725else
1726  ac_header_preproc=no
1727fi
1728rm -f conftest.err conftest.i conftest.$ac_ext
1729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1730$as_echo "$ac_header_preproc" >&6; }
1731
1732# So?  What about this header?
1733case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1734  yes:no: )
1735    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1736$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1737    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1738$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1739    ;;
1740  no:yes:* )
1741    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1742$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1743    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1744$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1745    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1746$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1747    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1748$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1749    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1750$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1751    ;;
1752esac
1753  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1754$as_echo_n "checking for $2... " >&6; }
1755if eval \${$3+:} false; then :
1756  $as_echo_n "(cached) " >&6
1757else
1758  eval "$3=\$ac_header_compiler"
1759fi
1760eval ac_res=\$$3
1761	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762$as_echo "$ac_res" >&6; }
1763fi
1764  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765
1766} # ac_fn_c_check_header_mongrel
1767
1768# ac_fn_c_try_run LINENO
1769# ----------------------
1770# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1771# that executables *can* be run.
1772ac_fn_c_try_run ()
1773{
1774  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775  if { { ac_try="$ac_link"
1776case "(($ac_try" in
1777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778  *) ac_try_echo=$ac_try;;
1779esac
1780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781$as_echo "$ac_try_echo"; } >&5
1782  (eval "$ac_link") 2>&5
1783  ac_status=$?
1784  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1786  { { case "(($ac_try" in
1787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788  *) ac_try_echo=$ac_try;;
1789esac
1790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791$as_echo "$ac_try_echo"; } >&5
1792  (eval "$ac_try") 2>&5
1793  ac_status=$?
1794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795  test $ac_status = 0; }; }; then :
1796  ac_retval=0
1797else
1798  $as_echo "$as_me: program exited with status $ac_status" >&5
1799       $as_echo "$as_me: failed program was:" >&5
1800sed 's/^/| /' conftest.$ac_ext >&5
1801
1802       ac_retval=$ac_status
1803fi
1804  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1805  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806  as_fn_set_status $ac_retval
1807
1808} # ac_fn_c_try_run
1809
1810# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1811# -------------------------------------------------------
1812# Tests whether HEADER exists and can be compiled using the include files in
1813# INCLUDES, setting the cache variable VAR accordingly.
1814ac_fn_c_check_header_compile ()
1815{
1816  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1818$as_echo_n "checking for $2... " >&6; }
1819if eval \${$3+:} false; then :
1820  $as_echo_n "(cached) " >&6
1821else
1822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823/* end confdefs.h.  */
1824$4
1825#include <$2>
1826_ACEOF
1827if ac_fn_c_try_compile "$LINENO"; then :
1828  eval "$3=yes"
1829else
1830  eval "$3=no"
1831fi
1832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1833fi
1834eval ac_res=\$$3
1835	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836$as_echo "$ac_res" >&6; }
1837  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838
1839} # ac_fn_c_check_header_compile
1840
1841# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1842# ---------------------------------------------
1843# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1844# accordingly.
1845ac_fn_c_check_decl ()
1846{
1847  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848  as_decl_name=`echo $2|sed 's/ *(.*//'`
1849  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1850  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1851$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1852if eval \${$3+:} false; then :
1853  $as_echo_n "(cached) " >&6
1854else
1855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856/* end confdefs.h.  */
1857$4
1858int
1859main ()
1860{
1861#ifndef $as_decl_name
1862#ifdef __cplusplus
1863  (void) $as_decl_use;
1864#else
1865  (void) $as_decl_name;
1866#endif
1867#endif
1868
1869  ;
1870  return 0;
1871}
1872_ACEOF
1873if ac_fn_c_try_compile "$LINENO"; then :
1874  eval "$3=yes"
1875else
1876  eval "$3=no"
1877fi
1878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1879fi
1880eval ac_res=\$$3
1881	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882$as_echo "$ac_res" >&6; }
1883  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884
1885} # ac_fn_c_check_decl
1886
1887# ac_fn_c_check_func LINENO FUNC VAR
1888# ----------------------------------
1889# Tests whether FUNC exists, setting the cache variable VAR accordingly
1890ac_fn_c_check_func ()
1891{
1892  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894$as_echo_n "checking for $2... " >&6; }
1895if eval \${$3+:} false; then :
1896  $as_echo_n "(cached) " >&6
1897else
1898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899/* end confdefs.h.  */
1900/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1901   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1902#define $2 innocuous_$2
1903
1904/* System header to define __stub macros and hopefully few prototypes,
1905    which can conflict with char $2 (); below.
1906    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1907    <limits.h> exists even on freestanding compilers.  */
1908
1909#ifdef __STDC__
1910# include <limits.h>
1911#else
1912# include <assert.h>
1913#endif
1914
1915#undef $2
1916
1917/* Override any GCC internal prototype to avoid an error.
1918   Use char because int might match the return type of a GCC
1919   builtin and then its argument prototype would still apply.  */
1920#ifdef __cplusplus
1921extern "C"
1922#endif
1923char $2 ();
1924/* The GNU C library defines this for functions which it implements
1925    to always fail with ENOSYS.  Some functions are actually named
1926    something starting with __ and the normal name is an alias.  */
1927#if defined __stub_$2 || defined __stub___$2
1928choke me
1929#endif
1930
1931int
1932main ()
1933{
1934return $2 ();
1935  ;
1936  return 0;
1937}
1938_ACEOF
1939if ac_fn_c_try_link "$LINENO"; then :
1940  eval "$3=yes"
1941else
1942  eval "$3=no"
1943fi
1944rm -f core conftest.err conftest.$ac_objext \
1945    conftest$ac_exeext conftest.$ac_ext
1946fi
1947eval ac_res=\$$3
1948	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949$as_echo "$ac_res" >&6; }
1950  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951
1952} # ac_fn_c_check_func
1953cat >config.log <<_ACEOF
1954This file contains any messages produced by compilers while
1955running configure, to aid debugging if configure makes a mistake.
1956
1957It was created by $as_me, which was
1958generated by GNU Autoconf 2.69.  Invocation command line was
1959
1960  $ $0 $@
1961
1962_ACEOF
1963exec 5>>config.log
1964{
1965cat <<_ASUNAME
1966## --------- ##
1967## Platform. ##
1968## --------- ##
1969
1970hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1971uname -m = `(uname -m) 2>/dev/null || echo unknown`
1972uname -r = `(uname -r) 2>/dev/null || echo unknown`
1973uname -s = `(uname -s) 2>/dev/null || echo unknown`
1974uname -v = `(uname -v) 2>/dev/null || echo unknown`
1975
1976/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1977/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1978
1979/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1980/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1981/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1982/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1983/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1984/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1985/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1986
1987_ASUNAME
1988
1989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990for as_dir in $PATH
1991do
1992  IFS=$as_save_IFS
1993  test -z "$as_dir" && as_dir=.
1994    $as_echo "PATH: $as_dir"
1995  done
1996IFS=$as_save_IFS
1997
1998} >&5
1999
2000cat >&5 <<_ACEOF
2001
2002
2003## ----------- ##
2004## Core tests. ##
2005## ----------- ##
2006
2007_ACEOF
2008
2009
2010# Keep a trace of the command line.
2011# Strip out --no-create and --no-recursion so they do not pile up.
2012# Strip out --silent because we don't want to record it for future runs.
2013# Also quote any args containing shell meta-characters.
2014# Make two passes to allow for proper duplicate-argument suppression.
2015ac_configure_args=
2016ac_configure_args0=
2017ac_configure_args1=
2018ac_must_keep_next=false
2019for ac_pass in 1 2
2020do
2021  for ac_arg
2022  do
2023    case $ac_arg in
2024    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2025    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2026    | -silent | --silent | --silen | --sile | --sil)
2027      continue ;;
2028    *\'*)
2029      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2030    esac
2031    case $ac_pass in
2032    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2033    2)
2034      as_fn_append ac_configure_args1 " '$ac_arg'"
2035      if test $ac_must_keep_next = true; then
2036	ac_must_keep_next=false # Got value, back to normal.
2037      else
2038	case $ac_arg in
2039	  *=* | --config-cache | -C | -disable-* | --disable-* \
2040	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2041	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2042	  | -with-* | --with-* | -without-* | --without-* | --x)
2043	    case "$ac_configure_args0 " in
2044	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2045	    esac
2046	    ;;
2047	  -* ) ac_must_keep_next=true ;;
2048	esac
2049      fi
2050      as_fn_append ac_configure_args " '$ac_arg'"
2051      ;;
2052    esac
2053  done
2054done
2055{ ac_configure_args0=; unset ac_configure_args0;}
2056{ ac_configure_args1=; unset ac_configure_args1;}
2057
2058# When interrupted or exit'd, cleanup temporary files, and complete
2059# config.log.  We remove comments because anyway the quotes in there
2060# would cause problems or look ugly.
2061# WARNING: Use '\'' to represent an apostrophe within the trap.
2062# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2063trap 'exit_status=$?
2064  # Save into config.log some information that might help in debugging.
2065  {
2066    echo
2067
2068    $as_echo "## ---------------- ##
2069## Cache variables. ##
2070## ---------------- ##"
2071    echo
2072    # The following way of writing the cache mishandles newlines in values,
2073(
2074  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2075    eval ac_val=\$$ac_var
2076    case $ac_val in #(
2077    *${as_nl}*)
2078      case $ac_var in #(
2079      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2080$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2081      esac
2082      case $ac_var in #(
2083      _ | IFS | as_nl) ;; #(
2084      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2085      *) { eval $ac_var=; unset $ac_var;} ;;
2086      esac ;;
2087    esac
2088  done
2089  (set) 2>&1 |
2090    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2091    *${as_nl}ac_space=\ *)
2092      sed -n \
2093	"s/'\''/'\''\\\\'\'''\''/g;
2094	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2095      ;; #(
2096    *)
2097      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2098      ;;
2099    esac |
2100    sort
2101)
2102    echo
2103
2104    $as_echo "## ----------------- ##
2105## Output variables. ##
2106## ----------------- ##"
2107    echo
2108    for ac_var in $ac_subst_vars
2109    do
2110      eval ac_val=\$$ac_var
2111      case $ac_val in
2112      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2113      esac
2114      $as_echo "$ac_var='\''$ac_val'\''"
2115    done | sort
2116    echo
2117
2118    if test -n "$ac_subst_files"; then
2119      $as_echo "## ------------------- ##
2120## File substitutions. ##
2121## ------------------- ##"
2122      echo
2123      for ac_var in $ac_subst_files
2124      do
2125	eval ac_val=\$$ac_var
2126	case $ac_val in
2127	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2128	esac
2129	$as_echo "$ac_var='\''$ac_val'\''"
2130      done | sort
2131      echo
2132    fi
2133
2134    if test -s confdefs.h; then
2135      $as_echo "## ----------- ##
2136## confdefs.h. ##
2137## ----------- ##"
2138      echo
2139      cat confdefs.h
2140      echo
2141    fi
2142    test "$ac_signal" != 0 &&
2143      $as_echo "$as_me: caught signal $ac_signal"
2144    $as_echo "$as_me: exit $exit_status"
2145  } >&5
2146  rm -f core *.core core.conftest.* &&
2147    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2148    exit $exit_status
2149' 0
2150for ac_signal in 1 2 13 15; do
2151  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2152done
2153ac_signal=0
2154
2155# confdefs.h avoids OS command line length limits that DEFS can exceed.
2156rm -f -r conftest* confdefs.h
2157
2158$as_echo "/* confdefs.h */" > confdefs.h
2159
2160# Predefined preprocessor variables.
2161
2162cat >>confdefs.h <<_ACEOF
2163#define PACKAGE_NAME "$PACKAGE_NAME"
2164_ACEOF
2165
2166cat >>confdefs.h <<_ACEOF
2167#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2168_ACEOF
2169
2170cat >>confdefs.h <<_ACEOF
2171#define PACKAGE_VERSION "$PACKAGE_VERSION"
2172_ACEOF
2173
2174cat >>confdefs.h <<_ACEOF
2175#define PACKAGE_STRING "$PACKAGE_STRING"
2176_ACEOF
2177
2178cat >>confdefs.h <<_ACEOF
2179#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2180_ACEOF
2181
2182cat >>confdefs.h <<_ACEOF
2183#define PACKAGE_URL "$PACKAGE_URL"
2184_ACEOF
2185
2186
2187# Let the site file select an alternate cache file if it wants to.
2188# Prefer an explicitly selected file to automatically selected ones.
2189ac_site_file1=NONE
2190ac_site_file2=NONE
2191if test -n "$CONFIG_SITE"; then
2192  # We do not want a PATH search for config.site.
2193  case $CONFIG_SITE in #((
2194    -*)  ac_site_file1=./$CONFIG_SITE;;
2195    */*) ac_site_file1=$CONFIG_SITE;;
2196    *)   ac_site_file1=./$CONFIG_SITE;;
2197  esac
2198elif test "x$prefix" != xNONE; then
2199  ac_site_file1=$prefix/share/config.site
2200  ac_site_file2=$prefix/etc/config.site
2201else
2202  ac_site_file1=$ac_default_prefix/share/config.site
2203  ac_site_file2=$ac_default_prefix/etc/config.site
2204fi
2205for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2206do
2207  test "x$ac_site_file" = xNONE && continue
2208  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2209    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2210$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2211    sed 's/^/| /' "$ac_site_file" >&5
2212    . "$ac_site_file" \
2213      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2215as_fn_error $? "failed to load site script $ac_site_file
2216See \`config.log' for more details" "$LINENO" 5; }
2217  fi
2218done
2219
2220if test -r "$cache_file"; then
2221  # Some versions of bash will fail to source /dev/null (special files
2222  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2223  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2224    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2225$as_echo "$as_me: loading cache $cache_file" >&6;}
2226    case $cache_file in
2227      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2228      *)                      . "./$cache_file";;
2229    esac
2230  fi
2231else
2232  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2233$as_echo "$as_me: creating cache $cache_file" >&6;}
2234  >$cache_file
2235fi
2236
2237# Check that the precious variables saved in the cache have kept the same
2238# value.
2239ac_cache_corrupted=false
2240for ac_var in $ac_precious_vars; do
2241  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2242  eval ac_new_set=\$ac_env_${ac_var}_set
2243  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2244  eval ac_new_val=\$ac_env_${ac_var}_value
2245  case $ac_old_set,$ac_new_set in
2246    set,)
2247      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2248$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2249      ac_cache_corrupted=: ;;
2250    ,set)
2251      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2252$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2253      ac_cache_corrupted=: ;;
2254    ,);;
2255    *)
2256      if test "x$ac_old_val" != "x$ac_new_val"; then
2257	# differences in whitespace do not lead to failure.
2258	ac_old_val_w=`echo x $ac_old_val`
2259	ac_new_val_w=`echo x $ac_new_val`
2260	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2261	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2262$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2263	  ac_cache_corrupted=:
2264	else
2265	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2266$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2267	  eval $ac_var=\$ac_old_val
2268	fi
2269	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2270$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2271	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2272$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2273      fi;;
2274  esac
2275  # Pass precious variables to config.status.
2276  if test "$ac_new_set" = set; then
2277    case $ac_new_val in
2278    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2279    *) ac_arg=$ac_var=$ac_new_val ;;
2280    esac
2281    case " $ac_configure_args " in
2282      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2283      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2284    esac
2285  fi
2286done
2287if $ac_cache_corrupted; then
2288  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2289$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2290  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2291$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2292  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2293fi
2294## -------------------- ##
2295## Main body of script. ##
2296## -------------------- ##
2297
2298ac_ext=c
2299ac_cpp='$CPP $CPPFLAGS'
2300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2302ac_compiler_gnu=$ac_cv_c_compiler_gnu
2303
2304
2305
2306ac_config_headers="$ac_config_headers include/private/apu_config.h"
2307
2308ac_aux_dir=
2309for ac_dir in build "$srcdir"/build; do
2310  if test -f "$ac_dir/install-sh"; then
2311    ac_aux_dir=$ac_dir
2312    ac_install_sh="$ac_aux_dir/install-sh -c"
2313    break
2314  elif test -f "$ac_dir/install.sh"; then
2315    ac_aux_dir=$ac_dir
2316    ac_install_sh="$ac_aux_dir/install.sh -c"
2317    break
2318  elif test -f "$ac_dir/shtool"; then
2319    ac_aux_dir=$ac_dir
2320    ac_install_sh="$ac_aux_dir/shtool install -c"
2321    break
2322  fi
2323done
2324if test -z "$ac_aux_dir"; then
2325  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2326fi
2327
2328# These three variables are undocumented and unsupported,
2329# and are intended to be withdrawn in a future Autoconf release.
2330# They can cause serious problems if a builder's source tree is in a directory
2331# whose full name contains unusual characters.
2332ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2333ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2334ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514  rm -f config.nice
2515  cat >config.nice<<EOF
2516#! /bin/sh
2517#
2518# Created by configure
2519
2520EOF
2521  if test -n "$CC"; then
2522    echo "CC=\"$CC\"; export CC" >> config.nice
2523  fi
2524  if test -n "$CFLAGS"; then
2525    echo "CFLAGS=\"$CFLAGS\"; export CFLAGS" >> config.nice
2526  fi
2527  if test -n "$CPPFLAGS"; then
2528    echo "CPPFLAGS=\"$CPPFLAGS\"; export CPPFLAGS" >> config.nice
2529  fi
2530  if test -n "$LDFLAGS"; then
2531    echo "LDFLAGS=\"$LDFLAGS\"; export LDFLAGS" >> config.nice
2532  fi
2533  if test -n "$LTFLAGS"; then
2534    echo "LTFLAGS=\"$LTFLAGS\"; export LTFLAGS" >> config.nice
2535  fi
2536  if test -n "$LIBS"; then
2537    echo "LIBS=\"$LIBS\"; export LIBS" >> config.nice
2538  fi
2539  if test -n "$INCLUDES"; then
2540    echo "INCLUDES=\"$INCLUDES\"; export INCLUDES" >> config.nice
2541  fi
2542  if test -n "$NOTEST_CFLAGS"; then
2543    echo "NOTEST_CFLAGS=\"$NOTEST_CFLAGS\"; export NOTEST_CFLAGS" >> config.nice
2544  fi
2545  if test -n "$NOTEST_CPPFLAGS"; then
2546    echo "NOTEST_CPPFLAGS=\"$NOTEST_CPPFLAGS\"; export NOTEST_CPPFLAGS" >> config.nice
2547  fi
2548  if test -n "$NOTEST_LDFLAGS"; then
2549    echo "NOTEST_LDFLAGS=\"$NOTEST_LDFLAGS\"; export NOTEST_LDFLAGS" >> config.nice
2550  fi
2551  if test -n "$NOTEST_LIBS"; then
2552    echo "NOTEST_LIBS=\"$NOTEST_LIBS\"; export NOTEST_LIBS" >> config.nice
2553  fi
2554
2555  # Retrieve command-line arguments.
2556  eval "set x $0 $ac_configure_args"
2557  shift
2558
2559  for arg
2560  do
2561
2562ap_last=
2563ap_cur="$arg"
2564while test "x${ap_cur}" != "x${ap_last}";
2565do
2566  ap_last="${ap_cur}"
2567  ap_cur=`eval "echo ${ap_cur}"`
2568done
2569arg="${ap_cur}"
2570
2571    echo "\"$arg\" \\" >> config.nice
2572  done
2573  echo '"$@"' >> config.nice
2574  chmod +x config.nice
2575
2576
2577
2578abs_srcdir=`(cd $srcdir && pwd)`
2579abs_builddir=`pwd`
2580
2581if test "$abs_builddir" != "$abs_srcdir"; then
2582  USE_VPATH=1
2583  APU_CONFIG_LOCATION=build
2584else
2585  APU_CONFIG_LOCATION=source
2586fi
2587
2588
2589
2590# Make sure we can run config.sub.
2591$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2592  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2593
2594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2595$as_echo_n "checking build system type... " >&6; }
2596if ${ac_cv_build+:} false; then :
2597  $as_echo_n "(cached) " >&6
2598else
2599  ac_build_alias=$build_alias
2600test "x$ac_build_alias" = x &&
2601  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2602test "x$ac_build_alias" = x &&
2603  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2604ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2605  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2606
2607fi
2608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2609$as_echo "$ac_cv_build" >&6; }
2610case $ac_cv_build in
2611*-*-*) ;;
2612*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2613esac
2614build=$ac_cv_build
2615ac_save_IFS=$IFS; IFS='-'
2616set x $ac_cv_build
2617shift
2618build_cpu=$1
2619build_vendor=$2
2620shift; shift
2621# Remember, the first character of IFS is used to create $*,
2622# except with old shells:
2623build_os=$*
2624IFS=$ac_save_IFS
2625case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2626
2627
2628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2629$as_echo_n "checking host system type... " >&6; }
2630if ${ac_cv_host+:} false; then :
2631  $as_echo_n "(cached) " >&6
2632else
2633  if test "x$host_alias" = x; then
2634  ac_cv_host=$ac_cv_build
2635else
2636  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2637    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2638fi
2639
2640fi
2641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2642$as_echo "$ac_cv_host" >&6; }
2643case $ac_cv_host in
2644*-*-*) ;;
2645*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2646esac
2647host=$ac_cv_host
2648ac_save_IFS=$IFS; IFS='-'
2649set x $ac_cv_host
2650shift
2651host_cpu=$1
2652host_vendor=$2
2653shift; shift
2654# Remember, the first character of IFS is used to create $*,
2655# except with old shells:
2656host_os=$*
2657IFS=$ac_save_IFS
2658case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2659
2660
2661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2662$as_echo_n "checking target system type... " >&6; }
2663if ${ac_cv_target+:} false; then :
2664  $as_echo_n "(cached) " >&6
2665else
2666  if test "x$target_alias" = x; then
2667  ac_cv_target=$ac_cv_host
2668else
2669  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2670    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2671fi
2672
2673fi
2674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2675$as_echo "$ac_cv_target" >&6; }
2676case $ac_cv_target in
2677*-*-*) ;;
2678*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2679esac
2680target=$ac_cv_target
2681ac_save_IFS=$IFS; IFS='-'
2682set x $ac_cv_target
2683shift
2684target_cpu=$1
2685target_vendor=$2
2686shift; shift
2687# Remember, the first character of IFS is used to create $*,
2688# except with old shells:
2689target_os=$*
2690IFS=$ac_save_IFS
2691case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2692
2693
2694# The aliases save the names the user supplied, while $host etc.
2695# will get canonicalized.
2696test -n "$target_alias" &&
2697  test "$program_prefix$program_suffix$program_transform_name" = \
2698    NONENONEs,x,x, &&
2699  program_prefix=${target_alias}-
2700
2701
2702# Find a good install program.  We prefer a C program (faster),
2703# so one script is as good as another.  But avoid the broken or
2704# incompatible versions:
2705# SysV /etc/install, /usr/sbin/install
2706# SunOS /usr/etc/install
2707# IRIX /sbin/install
2708# AIX /bin/install
2709# AmigaOS /C/install, which installs bootblocks on floppy discs
2710# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2711# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2712# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2713# OS/2's system install, which has a completely different semantic
2714# ./install, which can be erroneously created by make from ./install.sh.
2715# Reject install programs that cannot install multiple files.
2716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2717$as_echo_n "checking for a BSD-compatible install... " >&6; }
2718if test -z "$INSTALL"; then
2719if ${ac_cv_path_install+:} false; then :
2720  $as_echo_n "(cached) " >&6
2721else
2722  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723for as_dir in $PATH
2724do
2725  IFS=$as_save_IFS
2726  test -z "$as_dir" && as_dir=.
2727    # Account for people who put trailing slashes in PATH elements.
2728case $as_dir/ in #((
2729  ./ | .// | /[cC]/* | \
2730  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2731  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2732  /usr/ucb/* ) ;;
2733  *)
2734    # OSF1 and SCO ODT 3.0 have their own names for install.
2735    # Don't use installbsd from OSF since it installs stuff as root
2736    # by default.
2737    for ac_prog in ginstall scoinst install; do
2738      for ac_exec_ext in '' $ac_executable_extensions; do
2739	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2740	  if test $ac_prog = install &&
2741	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2742	    # AIX install.  It has an incompatible calling convention.
2743	    :
2744	  elif test $ac_prog = install &&
2745	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2746	    # program-specific install script used by HP pwplus--don't use.
2747	    :
2748	  else
2749	    rm -rf conftest.one conftest.two conftest.dir
2750	    echo one > conftest.one
2751	    echo two > conftest.two
2752	    mkdir conftest.dir
2753	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2754	      test -s conftest.one && test -s conftest.two &&
2755	      test -s conftest.dir/conftest.one &&
2756	      test -s conftest.dir/conftest.two
2757	    then
2758	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2759	      break 3
2760	    fi
2761	  fi
2762	fi
2763      done
2764    done
2765    ;;
2766esac
2767
2768  done
2769IFS=$as_save_IFS
2770
2771rm -rf conftest.one conftest.two conftest.dir
2772
2773fi
2774  if test "${ac_cv_path_install+set}" = set; then
2775    INSTALL=$ac_cv_path_install
2776  else
2777    # As a last resort, use the slow shell script.  Don't cache a
2778    # value for INSTALL within a source directory, because that will
2779    # break other packages using the cache if that directory is
2780    # removed, or if the value is a relative name.
2781    INSTALL=$ac_install_sh
2782  fi
2783fi
2784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2785$as_echo "$INSTALL" >&6; }
2786
2787# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2788# It thinks the first close brace ends the variable substitution.
2789test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2790
2791test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2792
2793test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2794
2795
2796# Use -no-install or -no-fast-install to link the test
2797# programs on all platforms but Darwin, where it would cause
2798# the programs to be linked against installed versions of
2799# libapr instead of those just built.
2800case $host in
2801    *-apple-darwin*)
2802        LT_NO_INSTALL=""
2803        ;;
2804    *-mingw*)
2805        LT_NO_INSTALL="-no-fast-install"
2806        ;;
2807    *)
2808        LT_NO_INSTALL="-no-install"
2809        ;;
2810esac
2811
2812
2813top_builddir="$abs_builddir"
2814
2815
2816
2817
2818
2819  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mkdir -p" >&5
2820$as_echo_n "checking for working mkdir -p... " >&6; }
2821if ${ac_cv_mkdir_p+:} false; then :
2822  $as_echo_n "(cached) " >&6
2823else
2824
2825    test -d conftestdir && rm -rf conftestdir
2826    mkdir -p conftestdir/somedir >/dev/null 2>&1
2827    if test -d conftestdir/somedir; then
2828      ac_cv_mkdir_p=yes
2829    else
2830      ac_cv_mkdir_p=no
2831    fi
2832    rm -rf conftestdir
2833
2834fi
2835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mkdir_p" >&5
2836$as_echo "$ac_cv_mkdir_p" >&6; }
2837  if test "$ac_cv_mkdir_p" = "yes"; then
2838      mkdir_p="mkdir -p"
2839  else
2840      mkdir_p="$abs_srcdir/build/mkdir.sh"
2841  fi
2842
2843
2844get_version="$abs_srcdir/build/get-version.sh"
2845version_hdr="$abs_srcdir/include/apu_version.h"
2846APRUTIL_MAJOR_VERSION="`$get_version major $version_hdr APU`"
2847APRUTIL_DOTTED_VERSION="`$get_version all $version_hdr APU`"
2848
2849APU_LTVERSION="-version-info `$get_version libtool $version_hdr APU`"
2850
2851
2852
2853
2854
2855echo "APR-util Version: ${APRUTIL_DOTTED_VERSION}"
2856
2857
2858# Check whether --enable-layout was given.
2859if test "${enable_layout+set}" = set; then :
2860  enableval=$enable_layout;
2861  LAYOUT=$enableval
2862
2863fi
2864
2865
2866if test -z "$LAYOUT"; then
2867  LAYOUT="apr-util"
2868fi
2869
2870  if test ! -f $srcdir/config.layout; then
2871    echo "** Error: Layout file $srcdir/config.layout not found"
2872    echo "** Error: Cannot use undefined layout '$LAYOUT'"
2873    exit 1
2874  fi
2875  # Catch layout names including a slash which will otherwise
2876  # confuse the heck out of the sed script.
2877  case $LAYOUT in
2878  */*)
2879    echo "** Error: $LAYOUT is not a valid layout name"
2880    exit 1 ;;
2881  esac
2882  pldconf=./config.pld
2883
2884  sed -e "1s/[ 	]*<[lL]ayout[ 	]*$LAYOUT[ 	]*>[ 	]*//;1t" \
2885      -e "1,/[ 	]*<[lL]ayout[ 	]*$LAYOUT[ 	]*>[ 	]*/d" \
2886      -e '/[ 	]*<\/Layout>[ 	]*/,$d' \
2887      -e "s/^[ 	]*//g" \
2888      -e "s/:[ 	]*/=\'/g" \
2889      -e "s/[ 	]*$/'/g" \
2890      $srcdir/config.layout > $pldconf
2891  layout_name=$LAYOUT
2892  if test ! -s $pldconf; then
2893    echo "** Error: unable to find layout $layout_name"
2894    exit 1
2895  fi
2896  . $pldconf
2897  rm $pldconf
2898  for var in prefix exec_prefix bindir sbindir libexecdir mandir \
2899             sysconfdir datadir includedir localstatedir runtimedir \
2900             logfiledir libdir installbuilddir libsuffix ; do
2901    eval "val=\"\$$var\""
2902    case $val in
2903      *+)
2904        val=`echo $val | sed -e 's;\+$;;'`
2905        eval "$var=\"\$val\""
2906        autosuffix=yes
2907        ;;
2908      *)
2909        autosuffix=no
2910        ;;
2911    esac
2912    val=`echo $val | sed -e 's:\(.\)/*$:\1:'`
2913    val=`echo $val | sed -e 's:[\$]\([a-z_]*\):$\1:g'`
2914    if test "$autosuffix" = "yes"; then
2915      if echo $val | grep apache >/dev/null; then
2916        addtarget=no
2917      else
2918        addtarget=yes
2919      fi
2920      if test "$addtarget" = "yes"; then
2921        val="$val/apache2"
2922      fi
2923    fi
2924    eval "$var='$val'"
2925  done
2926
2927
2928
2929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chosen layout" >&5
2930$as_echo_n "checking for chosen layout... " >&6; }
2931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $layout_name" >&5
2932$as_echo "$layout_name" >&6; }
2933
2934
2935ac_prev=
2936# Retrieve the command-line arguments.  The eval is needed because
2937# the arguments are quoted to preserve accuracy.
2938eval "set x $ac_configure_args"
2939shift
2940for ac_option
2941do
2942  # If the previous option needs an argument, assign it.
2943  if test -n "$ac_prev"; then
2944    eval "$ac_prev=\$ac_option"
2945    ac_prev=
2946    continue
2947  fi
2948
2949  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
2950
2951  case $ac_option in
2952
2953  -bindir | --bindir | --bindi | --bind | --bin | --bi)
2954    ac_prev=bindir ;;
2955  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
2956    bindir="$ac_optarg" ;;
2957
2958  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
2959    ac_prev=datadir ;;
2960  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
2961  | --da=*)
2962    datadir="$ac_optarg" ;;
2963
2964  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
2965  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
2966  | --exec | --exe | --ex)
2967    ac_prev=exec_prefix ;;
2968  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
2969  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
2970  | --exec=* | --exe=* | --ex=*)
2971    exec_prefix="$ac_optarg" ;;
2972
2973  -includedir | --includedir | --includedi | --included | --include \
2974  | --includ | --inclu | --incl | --inc)
2975    ac_prev=includedir ;;
2976  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
2977  | --includ=* | --inclu=* | --incl=* | --inc=*)
2978    includedir="$ac_optarg" ;;
2979
2980  -infodir | --infodir | --infodi | --infod | --info | --inf)
2981    ac_prev=infodir ;;
2982  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
2983    infodir="$ac_optarg" ;;
2984
2985  -libdir | --libdir | --libdi | --libd)
2986    ac_prev=libdir ;;
2987  -libdir=* | --libdir=* | --libdi=* | --libd=*)
2988    libdir="$ac_optarg" ;;
2989
2990  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
2991  | --libexe | --libex | --libe)
2992    ac_prev=libexecdir ;;
2993  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
2994  | --libexe=* | --libex=* | --libe=*)
2995    libexecdir="$ac_optarg" ;;
2996
2997  -localstatedir | --localstatedir | --localstatedi | --localstated \
2998  | --localstate | --localstat | --localsta | --localst \
2999  | --locals | --local | --loca | --loc | --lo)
3000    ac_prev=localstatedir ;;
3001  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
3002  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
3003  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
3004    localstatedir="$ac_optarg" ;;
3005
3006  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
3007    ac_prev=mandir ;;
3008  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
3009    mandir="$ac_optarg" ;;
3010
3011  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
3012    ac_prev=prefix ;;
3013  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
3014    prefix="$ac_optarg" ;;
3015
3016  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
3017    ac_prev=sbindir ;;
3018  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
3019  | --sbi=* | --sb=*)
3020    sbindir="$ac_optarg" ;;
3021
3022  -sharedstatedir | --sharedstatedir | --sharedstatedi \
3023  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
3024  | --sharedst | --shareds | --shared | --share | --shar \
3025  | --sha | --sh)
3026    ac_prev=sharedstatedir ;;
3027  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
3028  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
3029  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
3030  | --sha=* | --sh=*)
3031    sharedstatedir="$ac_optarg" ;;
3032
3033  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
3034  | --syscon | --sysco | --sysc | --sys | --sy)
3035    ac_prev=sysconfdir ;;
3036  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
3037  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
3038    sysconfdir="$ac_optarg" ;;
3039
3040  esac
3041done
3042
3043# Be sure to have absolute paths.
3044for ac_var in exec_prefix prefix
3045do
3046  eval ac_val=$`echo $ac_var`
3047  case $ac_val in
3048    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
3049    *)  as_fn_error $? "expected an absolute path for --$ac_var: $ac_val" "$LINENO" 5;;
3050  esac
3051done
3052
3053
3054
3055ac_ext=c
3056ac_cpp='$CPP $CPPFLAGS'
3057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3059ac_compiler_gnu=$ac_cv_c_compiler_gnu
3060if test -n "$ac_tool_prefix"; then
3061  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3062set dummy ${ac_tool_prefix}gcc; ac_word=$2
3063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064$as_echo_n "checking for $ac_word... " >&6; }
3065if ${ac_cv_prog_CC+:} false; then :
3066  $as_echo_n "(cached) " >&6
3067else
3068  if test -n "$CC"; then
3069  ac_cv_prog_CC="$CC" # Let the user override the test.
3070else
3071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072for as_dir in $PATH
3073do
3074  IFS=$as_save_IFS
3075  test -z "$as_dir" && as_dir=.
3076    for ac_exec_ext in '' $ac_executable_extensions; do
3077  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3079    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080    break 2
3081  fi
3082done
3083  done
3084IFS=$as_save_IFS
3085
3086fi
3087fi
3088CC=$ac_cv_prog_CC
3089if test -n "$CC"; then
3090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3091$as_echo "$CC" >&6; }
3092else
3093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094$as_echo "no" >&6; }
3095fi
3096
3097
3098fi
3099if test -z "$ac_cv_prog_CC"; then
3100  ac_ct_CC=$CC
3101  # Extract the first word of "gcc", so it can be a program name with args.
3102set dummy gcc; ac_word=$2
3103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3104$as_echo_n "checking for $ac_word... " >&6; }
3105if ${ac_cv_prog_ac_ct_CC+:} false; then :
3106  $as_echo_n "(cached) " >&6
3107else
3108  if test -n "$ac_ct_CC"; then
3109  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3110else
3111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112for as_dir in $PATH
3113do
3114  IFS=$as_save_IFS
3115  test -z "$as_dir" && as_dir=.
3116    for ac_exec_ext in '' $ac_executable_extensions; do
3117  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3118    ac_cv_prog_ac_ct_CC="gcc"
3119    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3120    break 2
3121  fi
3122done
3123  done
3124IFS=$as_save_IFS
3125
3126fi
3127fi
3128ac_ct_CC=$ac_cv_prog_ac_ct_CC
3129if test -n "$ac_ct_CC"; then
3130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3131$as_echo "$ac_ct_CC" >&6; }
3132else
3133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134$as_echo "no" >&6; }
3135fi
3136
3137  if test "x$ac_ct_CC" = x; then
3138    CC=""
3139  else
3140    case $cross_compiling:$ac_tool_warned in
3141yes:)
3142{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3143$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3144ac_tool_warned=yes ;;
3145esac
3146    CC=$ac_ct_CC
3147  fi
3148else
3149  CC="$ac_cv_prog_CC"
3150fi
3151
3152if test -z "$CC"; then
3153          if test -n "$ac_tool_prefix"; then
3154    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3155set dummy ${ac_tool_prefix}cc; ac_word=$2
3156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157$as_echo_n "checking for $ac_word... " >&6; }
3158if ${ac_cv_prog_CC+:} false; then :
3159  $as_echo_n "(cached) " >&6
3160else
3161  if test -n "$CC"; then
3162  ac_cv_prog_CC="$CC" # Let the user override the test.
3163else
3164as_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    for ac_exec_ext in '' $ac_executable_extensions; do
3170  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3171    ac_cv_prog_CC="${ac_tool_prefix}cc"
3172    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3173    break 2
3174  fi
3175done
3176  done
3177IFS=$as_save_IFS
3178
3179fi
3180fi
3181CC=$ac_cv_prog_CC
3182if test -n "$CC"; then
3183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3184$as_echo "$CC" >&6; }
3185else
3186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187$as_echo "no" >&6; }
3188fi
3189
3190
3191  fi
3192fi
3193if test -z "$CC"; then
3194  # Extract the first word of "cc", so it can be a program name with args.
3195set dummy cc; ac_word=$2
3196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197$as_echo_n "checking for $ac_word... " >&6; }
3198if ${ac_cv_prog_CC+:} false; then :
3199  $as_echo_n "(cached) " >&6
3200else
3201  if test -n "$CC"; then
3202  ac_cv_prog_CC="$CC" # Let the user override the test.
3203else
3204  ac_prog_rejected=no
3205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206for as_dir in $PATH
3207do
3208  IFS=$as_save_IFS
3209  test -z "$as_dir" && as_dir=.
3210    for ac_exec_ext in '' $ac_executable_extensions; do
3211  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3212    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3213       ac_prog_rejected=yes
3214       continue
3215     fi
3216    ac_cv_prog_CC="cc"
3217    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3218    break 2
3219  fi
3220done
3221  done
3222IFS=$as_save_IFS
3223
3224if test $ac_prog_rejected = yes; then
3225  # We found a bogon in the path, so make sure we never use it.
3226  set dummy $ac_cv_prog_CC
3227  shift
3228  if test $# != 0; then
3229    # We chose a different compiler from the bogus one.
3230    # However, it has the same basename, so the bogon will be chosen
3231    # first if we set CC to just the basename; use the full file name.
3232    shift
3233    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3234  fi
3235fi
3236fi
3237fi
3238CC=$ac_cv_prog_CC
3239if test -n "$CC"; then
3240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3241$as_echo "$CC" >&6; }
3242else
3243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244$as_echo "no" >&6; }
3245fi
3246
3247
3248fi
3249if test -z "$CC"; then
3250  if test -n "$ac_tool_prefix"; then
3251  for ac_prog in cl.exe
3252  do
3253    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3254set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3256$as_echo_n "checking for $ac_word... " >&6; }
3257if ${ac_cv_prog_CC+:} false; then :
3258  $as_echo_n "(cached) " >&6
3259else
3260  if test -n "$CC"; then
3261  ac_cv_prog_CC="$CC" # Let the user override the test.
3262else
3263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264for as_dir in $PATH
3265do
3266  IFS=$as_save_IFS
3267  test -z "$as_dir" && as_dir=.
3268    for ac_exec_ext in '' $ac_executable_extensions; do
3269  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3270    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3271    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3272    break 2
3273  fi
3274done
3275  done
3276IFS=$as_save_IFS
3277
3278fi
3279fi
3280CC=$ac_cv_prog_CC
3281if test -n "$CC"; then
3282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3283$as_echo "$CC" >&6; }
3284else
3285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286$as_echo "no" >&6; }
3287fi
3288
3289
3290    test -n "$CC" && break
3291  done
3292fi
3293if test -z "$CC"; then
3294  ac_ct_CC=$CC
3295  for ac_prog in cl.exe
3296do
3297  # Extract the first word of "$ac_prog", so it can be a program name with args.
3298set dummy $ac_prog; ac_word=$2
3299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3300$as_echo_n "checking for $ac_word... " >&6; }
3301if ${ac_cv_prog_ac_ct_CC+:} false; then :
3302  $as_echo_n "(cached) " >&6
3303else
3304  if test -n "$ac_ct_CC"; then
3305  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3306else
3307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308for as_dir in $PATH
3309do
3310  IFS=$as_save_IFS
3311  test -z "$as_dir" && as_dir=.
3312    for ac_exec_ext in '' $ac_executable_extensions; do
3313  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3314    ac_cv_prog_ac_ct_CC="$ac_prog"
3315    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3316    break 2
3317  fi
3318done
3319  done
3320IFS=$as_save_IFS
3321
3322fi
3323fi
3324ac_ct_CC=$ac_cv_prog_ac_ct_CC
3325if test -n "$ac_ct_CC"; then
3326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3327$as_echo "$ac_ct_CC" >&6; }
3328else
3329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330$as_echo "no" >&6; }
3331fi
3332
3333
3334  test -n "$ac_ct_CC" && break
3335done
3336
3337  if test "x$ac_ct_CC" = x; then
3338    CC=""
3339  else
3340    case $cross_compiling:$ac_tool_warned in
3341yes:)
3342{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3343$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3344ac_tool_warned=yes ;;
3345esac
3346    CC=$ac_ct_CC
3347  fi
3348fi
3349
3350fi
3351
3352
3353test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3354$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3355as_fn_error $? "no acceptable C compiler found in \$PATH
3356See \`config.log' for more details" "$LINENO" 5; }
3357
3358# Provide some information about the compiler.
3359$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3360set X $ac_compile
3361ac_compiler=$2
3362for ac_option in --version -v -V -qversion; do
3363  { { ac_try="$ac_compiler $ac_option >&5"
3364case "(($ac_try" in
3365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366  *) ac_try_echo=$ac_try;;
3367esac
3368eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3369$as_echo "$ac_try_echo"; } >&5
3370  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3371  ac_status=$?
3372  if test -s conftest.err; then
3373    sed '10a\
3374... rest of stderr output deleted ...
3375         10q' conftest.err >conftest.er1
3376    cat conftest.er1 >&5
3377  fi
3378  rm -f conftest.er1 conftest.err
3379  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3380  test $ac_status = 0; }
3381done
3382
3383cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384/* end confdefs.h.  */
3385
3386int
3387main ()
3388{
3389
3390  ;
3391  return 0;
3392}
3393_ACEOF
3394ac_clean_files_save=$ac_clean_files
3395ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3396# Try to create an executable without -o first, disregard a.out.
3397# It will help us diagnose broken compilers, and finding out an intuition
3398# of exeext.
3399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3400$as_echo_n "checking whether the C compiler works... " >&6; }
3401ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3402
3403# The possible output files:
3404ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3405
3406ac_rmfiles=
3407for ac_file in $ac_files
3408do
3409  case $ac_file in
3410    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3411    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3412  esac
3413done
3414rm -f $ac_rmfiles
3415
3416if { { ac_try="$ac_link_default"
3417case "(($ac_try" in
3418  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419  *) ac_try_echo=$ac_try;;
3420esac
3421eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3422$as_echo "$ac_try_echo"; } >&5
3423  (eval "$ac_link_default") 2>&5
3424  ac_status=$?
3425  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3426  test $ac_status = 0; }; then :
3427  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3428# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3429# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3430# so that the user can short-circuit this test for compilers unknown to
3431# Autoconf.
3432for ac_file in $ac_files ''
3433do
3434  test -f "$ac_file" || continue
3435  case $ac_file in
3436    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3437	;;
3438    [ab].out )
3439	# We found the default executable, but exeext='' is most
3440	# certainly right.
3441	break;;
3442    *.* )
3443	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3444	then :; else
3445	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3446	fi
3447	# We set ac_cv_exeext here because the later test for it is not
3448	# safe: cross compilers may not add the suffix if given an `-o'
3449	# argument, so we may need to know it at that point already.
3450	# Even if this section looks crufty: it has the advantage of
3451	# actually working.
3452	break;;
3453    * )
3454	break;;
3455  esac
3456done
3457test "$ac_cv_exeext" = no && ac_cv_exeext=
3458
3459else
3460  ac_file=''
3461fi
3462if test -z "$ac_file"; then :
3463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3464$as_echo "no" >&6; }
3465$as_echo "$as_me: failed program was:" >&5
3466sed 's/^/| /' conftest.$ac_ext >&5
3467
3468{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3470as_fn_error 77 "C compiler cannot create executables
3471See \`config.log' for more details" "$LINENO" 5; }
3472else
3473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3474$as_echo "yes" >&6; }
3475fi
3476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3477$as_echo_n "checking for C compiler default output file name... " >&6; }
3478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3479$as_echo "$ac_file" >&6; }
3480ac_exeext=$ac_cv_exeext
3481
3482rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3483ac_clean_files=$ac_clean_files_save
3484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3485$as_echo_n "checking for suffix of executables... " >&6; }
3486if { { ac_try="$ac_link"
3487case "(($ac_try" in
3488  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489  *) ac_try_echo=$ac_try;;
3490esac
3491eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3492$as_echo "$ac_try_echo"; } >&5
3493  (eval "$ac_link") 2>&5
3494  ac_status=$?
3495  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3496  test $ac_status = 0; }; then :
3497  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3498# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3499# work properly (i.e., refer to `conftest.exe'), while it won't with
3500# `rm'.
3501for ac_file in conftest.exe conftest conftest.*; do
3502  test -f "$ac_file" || continue
3503  case $ac_file in
3504    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3505    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3506	  break;;
3507    * ) break;;
3508  esac
3509done
3510else
3511  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3512$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3513as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3514See \`config.log' for more details" "$LINENO" 5; }
3515fi
3516rm -f conftest conftest$ac_cv_exeext
3517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3518$as_echo "$ac_cv_exeext" >&6; }
3519
3520rm -f conftest.$ac_ext
3521EXEEXT=$ac_cv_exeext
3522ac_exeext=$EXEEXT
3523cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524/* end confdefs.h.  */
3525#include <stdio.h>
3526int
3527main ()
3528{
3529FILE *f = fopen ("conftest.out", "w");
3530 return ferror (f) || fclose (f) != 0;
3531
3532  ;
3533  return 0;
3534}
3535_ACEOF
3536ac_clean_files="$ac_clean_files conftest.out"
3537# Check that the compiler produces executables we can run.  If not, either
3538# the compiler is broken, or we cross compile.
3539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3540$as_echo_n "checking whether we are cross compiling... " >&6; }
3541if test "$cross_compiling" != yes; then
3542  { { ac_try="$ac_link"
3543case "(($ac_try" in
3544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545  *) ac_try_echo=$ac_try;;
3546esac
3547eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3548$as_echo "$ac_try_echo"; } >&5
3549  (eval "$ac_link") 2>&5
3550  ac_status=$?
3551  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3552  test $ac_status = 0; }
3553  if { ac_try='./conftest$ac_cv_exeext'
3554  { { case "(($ac_try" in
3555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556  *) ac_try_echo=$ac_try;;
3557esac
3558eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3559$as_echo "$ac_try_echo"; } >&5
3560  (eval "$ac_try") 2>&5
3561  ac_status=$?
3562  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3563  test $ac_status = 0; }; }; then
3564    cross_compiling=no
3565  else
3566    if test "$cross_compiling" = maybe; then
3567	cross_compiling=yes
3568    else
3569	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3570$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3571as_fn_error $? "cannot run C compiled programs.
3572If you meant to cross compile, use \`--host'.
3573See \`config.log' for more details" "$LINENO" 5; }
3574    fi
3575  fi
3576fi
3577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3578$as_echo "$cross_compiling" >&6; }
3579
3580rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3581ac_clean_files=$ac_clean_files_save
3582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3583$as_echo_n "checking for suffix of object files... " >&6; }
3584if ${ac_cv_objext+:} false; then :
3585  $as_echo_n "(cached) " >&6
3586else
3587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588/* end confdefs.h.  */
3589
3590int
3591main ()
3592{
3593
3594  ;
3595  return 0;
3596}
3597_ACEOF
3598rm -f conftest.o conftest.obj
3599if { { ac_try="$ac_compile"
3600case "(($ac_try" in
3601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602  *) ac_try_echo=$ac_try;;
3603esac
3604eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3605$as_echo "$ac_try_echo"; } >&5
3606  (eval "$ac_compile") 2>&5
3607  ac_status=$?
3608  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3609  test $ac_status = 0; }; then :
3610  for ac_file in conftest.o conftest.obj conftest.*; do
3611  test -f "$ac_file" || continue;
3612  case $ac_file in
3613    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3614    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3615       break;;
3616  esac
3617done
3618else
3619  $as_echo "$as_me: failed program was:" >&5
3620sed 's/^/| /' conftest.$ac_ext >&5
3621
3622{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3623$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3624as_fn_error $? "cannot compute suffix of object files: cannot compile
3625See \`config.log' for more details" "$LINENO" 5; }
3626fi
3627rm -f conftest.$ac_cv_objext conftest.$ac_ext
3628fi
3629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3630$as_echo "$ac_cv_objext" >&6; }
3631OBJEXT=$ac_cv_objext
3632ac_objext=$OBJEXT
3633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3634$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3635if ${ac_cv_c_compiler_gnu+:} false; then :
3636  $as_echo_n "(cached) " >&6
3637else
3638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639/* end confdefs.h.  */
3640
3641int
3642main ()
3643{
3644#ifndef __GNUC__
3645       choke me
3646#endif
3647
3648  ;
3649  return 0;
3650}
3651_ACEOF
3652if ac_fn_c_try_compile "$LINENO"; then :
3653  ac_compiler_gnu=yes
3654else
3655  ac_compiler_gnu=no
3656fi
3657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3658ac_cv_c_compiler_gnu=$ac_compiler_gnu
3659
3660fi
3661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3662$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3663if test $ac_compiler_gnu = yes; then
3664  GCC=yes
3665else
3666  GCC=
3667fi
3668ac_test_CFLAGS=${CFLAGS+set}
3669ac_save_CFLAGS=$CFLAGS
3670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3671$as_echo_n "checking whether $CC accepts -g... " >&6; }
3672if ${ac_cv_prog_cc_g+:} false; then :
3673  $as_echo_n "(cached) " >&6
3674else
3675  ac_save_c_werror_flag=$ac_c_werror_flag
3676   ac_c_werror_flag=yes
3677   ac_cv_prog_cc_g=no
3678   CFLAGS="-g"
3679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680/* end confdefs.h.  */
3681
3682int
3683main ()
3684{
3685
3686  ;
3687  return 0;
3688}
3689_ACEOF
3690if ac_fn_c_try_compile "$LINENO"; then :
3691  ac_cv_prog_cc_g=yes
3692else
3693  CFLAGS=""
3694      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3695/* end confdefs.h.  */
3696
3697int
3698main ()
3699{
3700
3701  ;
3702  return 0;
3703}
3704_ACEOF
3705if ac_fn_c_try_compile "$LINENO"; then :
3706
3707else
3708  ac_c_werror_flag=$ac_save_c_werror_flag
3709	 CFLAGS="-g"
3710	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711/* end confdefs.h.  */
3712
3713int
3714main ()
3715{
3716
3717  ;
3718  return 0;
3719}
3720_ACEOF
3721if ac_fn_c_try_compile "$LINENO"; then :
3722  ac_cv_prog_cc_g=yes
3723fi
3724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725fi
3726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3727fi
3728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3729   ac_c_werror_flag=$ac_save_c_werror_flag
3730fi
3731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3732$as_echo "$ac_cv_prog_cc_g" >&6; }
3733if test "$ac_test_CFLAGS" = set; then
3734  CFLAGS=$ac_save_CFLAGS
3735elif test $ac_cv_prog_cc_g = yes; then
3736  if test "$GCC" = yes; then
3737    CFLAGS="-g -O2"
3738  else
3739    CFLAGS="-g"
3740  fi
3741else
3742  if test "$GCC" = yes; then
3743    CFLAGS="-O2"
3744  else
3745    CFLAGS=
3746  fi
3747fi
3748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3749$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3750if ${ac_cv_prog_cc_c89+:} false; then :
3751  $as_echo_n "(cached) " >&6
3752else
3753  ac_cv_prog_cc_c89=no
3754ac_save_CC=$CC
3755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756/* end confdefs.h.  */
3757#include <stdarg.h>
3758#include <stdio.h>
3759struct stat;
3760/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3761struct buf { int x; };
3762FILE * (*rcsopen) (struct buf *, struct stat *, int);
3763static char *e (p, i)
3764     char **p;
3765     int i;
3766{
3767  return p[i];
3768}
3769static char *f (char * (*g) (char **, int), char **p, ...)
3770{
3771  char *s;
3772  va_list v;
3773  va_start (v,p);
3774  s = g (p, va_arg (v,int));
3775  va_end (v);
3776  return s;
3777}
3778
3779/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3780   function prototypes and stuff, but not '\xHH' hex character constants.
3781   These don't provoke an error unfortunately, instead are silently treated
3782   as 'x'.  The following induces an error, until -std is added to get
3783   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3784   array size at least.  It's necessary to write '\x00'==0 to get something
3785   that's true only with -std.  */
3786int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3787
3788/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3789   inside strings and character constants.  */
3790#define FOO(x) 'x'
3791int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3792
3793int test (int i, double x);
3794struct s1 {int (*f) (int a);};
3795struct s2 {int (*f) (double a);};
3796int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3797int argc;
3798char **argv;
3799int
3800main ()
3801{
3802return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3803  ;
3804  return 0;
3805}
3806_ACEOF
3807for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3808	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3809do
3810  CC="$ac_save_CC $ac_arg"
3811  if ac_fn_c_try_compile "$LINENO"; then :
3812  ac_cv_prog_cc_c89=$ac_arg
3813fi
3814rm -f core conftest.err conftest.$ac_objext
3815  test "x$ac_cv_prog_cc_c89" != "xno" && break
3816done
3817rm -f conftest.$ac_ext
3818CC=$ac_save_CC
3819
3820fi
3821# AC_CACHE_VAL
3822case "x$ac_cv_prog_cc_c89" in
3823  x)
3824    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3825$as_echo "none needed" >&6; } ;;
3826  xno)
3827    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3828$as_echo "unsupported" >&6; } ;;
3829  *)
3830    CC="$CC $ac_cv_prog_cc_c89"
3831    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3832$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3833esac
3834if test "x$ac_cv_prog_cc_c89" != xno; then :
3835
3836fi
3837
3838ac_ext=c
3839ac_cpp='$CPP $CPPFLAGS'
3840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3842ac_compiler_gnu=$ac_cv_c_compiler_gnu
3843
3844
3845
3846if test "x$apu_preload_done" != "xyes" ; then
3847    apu_preload_done="yes"
3848
3849    echo "Applying apr-util hints file rules for $host"
3850
3851    case "$host" in
3852    *-dec-osf*)
3853
3854  if test -z "$apu_crypt_threadsafe"; then
3855    test "x$silent" != "xyes" && echo "  setting apu_crypt_threadsafe to \"1\""
3856    apu_crypt_threadsafe="1"
3857  fi
3858
3859        ;;
3860    *-hp-hpux11.*)
3861
3862  if test -z "$apu_crypt_threadsafe"; then
3863    test "x$silent" != "xyes" && echo "  setting apu_crypt_threadsafe to \"1\""
3864    apu_crypt_threadsafe="1"
3865  fi
3866
3867        ;;
3868    *-ibm-aix4*|*-ibm-aix5.1*)
3869
3870  if test -z "$apu_iconv_inbuf_const"; then
3871    test "x$silent" != "xyes" && echo "  setting apu_iconv_inbuf_const to \"1\""
3872    apu_iconv_inbuf_const="1"
3873  fi
3874
3875        ;;
3876    *-ibm-os390)
3877
3878  if test -z "$apu_crypt_threadsafe"; then
3879    test "x$silent" != "xyes" && echo "  setting apu_crypt_threadsafe to \"1\""
3880    apu_crypt_threadsafe="1"
3881  fi
3882
3883        ;;
3884    *-solaris2*)
3885
3886  if test -z "$apu_iconv_inbuf_const"; then
3887    test "x$silent" != "xyes" && echo "  setting apu_iconv_inbuf_const to \"1\""
3888    apu_iconv_inbuf_const="1"
3889  fi
3890
3891
3892  if test -z "$apu_crypt_threadsafe"; then
3893    test "x$silent" != "xyes" && echo "  setting apu_crypt_threadsafe to \"1\""
3894    apu_crypt_threadsafe="1"
3895  fi
3896
3897        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
3898$as_echo_n "checking for library containing fdatasync... " >&6; }
3899if ${ac_cv_search_fdatasync+:} false; then :
3900  $as_echo_n "(cached) " >&6
3901else
3902  ac_func_search_save_LIBS=$LIBS
3903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904/* end confdefs.h.  */
3905
3906/* Override any GCC internal prototype to avoid an error.
3907   Use char because int might match the return type of a GCC
3908   builtin and then its argument prototype would still apply.  */
3909#ifdef __cplusplus
3910extern "C"
3911#endif
3912char fdatasync ();
3913int
3914main ()
3915{
3916return fdatasync ();
3917  ;
3918  return 0;
3919}
3920_ACEOF
3921for ac_lib in '' rt posix4; do
3922  if test -z "$ac_lib"; then
3923    ac_res="none required"
3924  else
3925    ac_res=-l$ac_lib
3926    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3927  fi
3928  if ac_fn_c_try_link "$LINENO"; then :
3929  ac_cv_search_fdatasync=$ac_res
3930fi
3931rm -f core conftest.err conftest.$ac_objext \
3932    conftest$ac_exeext
3933  if ${ac_cv_search_fdatasync+:} false; then :
3934  break
3935fi
3936done
3937if ${ac_cv_search_fdatasync+:} false; then :
3938
3939else
3940  ac_cv_search_fdatasync=no
3941fi
3942rm conftest.$ac_ext
3943LIBS=$ac_func_search_save_LIBS
3944fi
3945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
3946$as_echo "$ac_cv_search_fdatasync" >&6; }
3947ac_res=$ac_cv_search_fdatasync
3948if test "$ac_res" != no; then :
3949  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3950
3951fi
3952
3953        ;;
3954    *-sco3.2v5*)
3955
3956  if test -z "$apu_db_xtra_libs"; then
3957    test "x$silent" != "xyes" && echo "  setting apu_db_xtra_libs to \"-lsocket\""
3958    apu_db_xtra_libs="-lsocket"
3959  fi
3960
3961	;;
3962    esac
3963
3964fi
3965
3966
3967
3968APRUTIL_INCLUDES=""
3969APRUTIL_PRIV_INCLUDES="-I$top_builddir/include -I$top_builddir/include/private"
3970if test -n "$USE_VPATH"; then
3971    APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES -I$abs_srcdir/include/private -I$abs_srcdir/include"
3972fi
3973
3974
3975
3976
3977  apr_found="no"
3978
3979  if test "$target_os" = "os2-emx"; then
3980    # Scripts don't pass test -x on OS/2
3981    TEST_X="test -f"
3982  else
3983    TEST_X="test -x"
3984  fi
3985
3986  acceptable_majors="1"
3987
3988  apr_temp_acceptable_apr_config=""
3989  for apr_temp_major in $acceptable_majors
3990  do
3991    case $apr_temp_major in
3992      0)
3993      apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
3994      ;;
3995      *)
3996      apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
3997      ;;
3998    esac
3999  done
4000
4001  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
4002$as_echo_n "checking for APR... " >&6; }
4003
4004# Check whether --with-apr was given.
4005if test "${with_apr+set}" = set; then :
4006  withval=$with_apr;
4007    if test "$withval" = "no" || test "$withval" = "yes"; then
4008      as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
4009    fi
4010
4011    for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
4012    do
4013      for lookdir in "$withval/bin" "$withval"
4014      do
4015        if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
4016          apr_config="$lookdir/$apr_temp_apr_config_file"
4017
4018          apr_found="yes"
4019          break 2
4020        fi
4021      done
4022    done
4023
4024    if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
4025      apr_config="$withval"
4026      apr_found="yes"
4027    fi
4028
4029            if test "$apr_found" != "yes"; then
4030      as_fn_error $? "the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file." "$LINENO" 5
4031    fi
4032
4033else
4034
4035        if test -n "" && test "" = "1"; then
4036      for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
4037      do
4038        if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
4039          apr_config="$apr_temp_apr_config_file"
4040
4041          apr_found="yes"
4042          break
4043        else
4044                    for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
4045            if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
4046              apr_config="$lookdir/bin/$apr_temp_apr_config_file"
4047
4048              apr_found="yes"
4049              break 2
4050            fi
4051          done
4052        fi
4053      done
4054    fi
4055        if test "$apr_found" = "no" && test -d ""; then
4056      apr_temp_abs_srcdir="`cd \"\" && pwd`"
4057      apr_found="reconfig"
4058      apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`"
4059      case $apr_bundled_major in
4060        "")
4061          as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5
4062        ;;
4063        0)
4064          apr_temp_apr_config_file="apr-config"
4065        ;;
4066        *)
4067          apr_temp_apr_config_file="apr-$apr_bundled_major-config"
4068        ;;
4069      esac
4070      if test -n ""; then
4071        apr_config="/$apr_temp_apr_config_file"
4072      else
4073        apr_config="/$apr_temp_apr_config_file"
4074      fi
4075    fi
4076
4077fi
4078
4079
4080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
4081$as_echo "$apr_found" >&6; }
4082
4083  if test "$apr_found" = "no"; then
4084    as_fn_error $? "APR could not be located. Please use the --with-apr option." "$LINENO" 5
4085  fi
4086
4087  APR_BUILD_DIR="`$apr_config --installbuilddir`"
4088
4089      APR_BUILD_DIR="`cd $APR_BUILD_DIR && pwd`"
4090
4091  APR_INCLUDES="`$apr_config --includes`"
4092  APR_LIBS="`$apr_config --link-libtool --libs`"
4093  APR_SO_EXT="`$apr_config --apr-so-ext`"
4094  APR_LIB_TARGET="`$apr_config --apr-lib-target`"
4095
4096
4097
4098
4099
4100
4101
4102  if test -z "$CC"; then
4103    test "x$silent" != "xyes" && echo "  setting CC to \"`$apr_config --cc`\""
4104    CC="`$apr_config --cc`"
4105  fi
4106
4107
4108  if test -z "$CPP"; then
4109    test "x$silent" != "xyes" && echo "  setting CPP to \"`$apr_config --cpp`\""
4110    CPP="`$apr_config --cpp`"
4111  fi
4112
4113
4114  if test "x$CFLAGS" = "x"; then
4115    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"`$apr_config --cflags`\""
4116    CFLAGS="`$apr_config --cflags`"
4117  else
4118    apr_addto_bugger="`$apr_config --cflags`"
4119    for i in $apr_addto_bugger; do
4120      apr_addto_duplicate="0"
4121      for j in $CFLAGS; do
4122        if test "x$i" = "x$j"; then
4123          apr_addto_duplicate="1"
4124          break
4125        fi
4126      done
4127      if test $apr_addto_duplicate = "0"; then
4128        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
4129        CFLAGS="$CFLAGS $i"
4130      fi
4131    done
4132  fi
4133
4134
4135  if test "x$CPPFLAGS" = "x"; then
4136    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"`$apr_config --cppflags`\""
4137    CPPFLAGS="`$apr_config --cppflags`"
4138  else
4139    apr_addto_bugger="`$apr_config --cppflags`"
4140    for i in $apr_addto_bugger; do
4141      apr_addto_duplicate="0"
4142      for j in $CPPFLAGS; do
4143        if test "x$i" = "x$j"; then
4144          apr_addto_duplicate="1"
4145          break
4146        fi
4147      done
4148      if test $apr_addto_duplicate = "0"; then
4149        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
4150        CPPFLAGS="$CPPFLAGS $i"
4151      fi
4152    done
4153  fi
4154
4155apr_shlibpath_var=`$apr_config --shlib-path-var`
4156
4157
4158
4159# Check whether --with-apr-iconv was given.
4160if test "${with_apr_iconv+set}" = set; then :
4161  withval=$with_apr_iconv;  apu_apriconv_dir="$withval"
4162    if test "$apu_apriconv_dir" != "no"; then
4163      if test -d "$apu_apriconv_dir"; then
4164
4165  # save our work to this point; this allows the sub-package to use it
4166  cat >confcache <<\_ACEOF
4167# This file is a shell script that caches the results of configure
4168# tests run on this system so they can be shared between configure
4169# scripts and configure runs, see configure's option --config-cache.
4170# It is not useful on other systems.  If it contains results you don't
4171# want to keep, you may remove or edit it.
4172#
4173# config.status only pays attention to the cache file if you give it
4174# the --recheck option to rerun configure.
4175#
4176# `ac_cv_env_foo' variables (set or unset) will be overridden when
4177# loading this file, other *unset* `ac_cv_foo' will be assigned the
4178# following values.
4179
4180_ACEOF
4181
4182# The following way of writing the cache mishandles newlines in values,
4183# but we know of no workaround that is simple, portable, and efficient.
4184# So, we kill variables containing newlines.
4185# Ultrix sh set writes to stderr and can't be redirected directly,
4186# and sets the high bit in the cache file unless we assign to the vars.
4187(
4188  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4189    eval ac_val=\$$ac_var
4190    case $ac_val in #(
4191    *${as_nl}*)
4192      case $ac_var in #(
4193      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4194$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4195      esac
4196      case $ac_var in #(
4197      _ | IFS | as_nl) ;; #(
4198      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4199      *) { eval $ac_var=; unset $ac_var;} ;;
4200      esac ;;
4201    esac
4202  done
4203
4204  (set) 2>&1 |
4205    case $as_nl`(ac_space=' '; set) 2>&1` in #(
4206    *${as_nl}ac_space=\ *)
4207      # `set' does not quote correctly, so add quotes: double-quote
4208      # substitution turns \\\\ into \\, and sed turns \\ into \.
4209      sed -n \
4210	"s/'/'\\\\''/g;
4211	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4212      ;; #(
4213    *)
4214      # `set' quotes correctly as required by POSIX, so do not add quotes.
4215      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4216      ;;
4217    esac |
4218    sort
4219) |
4220  sed '
4221     /^ac_cv_env_/b end
4222     t clear
4223     :clear
4224     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4225     t end
4226     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4227     :end' >>confcache
4228if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4229  if test -w "$cache_file"; then
4230    if test "x$cache_file" != "x/dev/null"; then
4231      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4232$as_echo "$as_me: updating cache $cache_file" >&6;}
4233      if test ! -f "$cache_file" || test -h "$cache_file"; then
4234	cat confcache >"$cache_file"
4235      else
4236        case $cache_file in #(
4237        */* | ?:*)
4238	  mv -f confcache "$cache_file"$$ &&
4239	  mv -f "$cache_file"$$ "$cache_file" ;; #(
4240        *)
4241	  mv -f confcache "$cache_file" ;;
4242	esac
4243      fi
4244    fi
4245  else
4246    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4247$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4248  fi
4249fi
4250rm -f confcache
4251
4252  echo "configuring package in "$apu_apriconv_dir" now"
4253  ac_popdir=`pwd`
4254  apr_config_subdirs=""$apu_apriconv_dir""
4255  test -d "$apu_apriconv_dir" || $mkdir_p "$apu_apriconv_dir"
4256  ac_abs_srcdir=`(cd $srcdir/"$apu_apriconv_dir" && pwd)`
4257  cd "$apu_apriconv_dir"
4258
4259      # A "../" for each directory in /$config_subdirs.
4260      ac_dots=`echo $apr_config_subdirs|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
4261
4262  # Make the cache file pathname absolute for the subdirs
4263  # required to correctly handle subdirs that might actually
4264  # be symlinks
4265  case "$cache_file" in
4266  /*) # already absolute
4267    ac_sub_cache_file=$cache_file ;;
4268  *)  # Was relative path.
4269    ac_sub_cache_file="$ac_popdir/$cache_file" ;;
4270  esac
4271
4272
4273  apr_configure_args=
4274  apr_sep=
4275  for apr_configure_arg in $ac_configure_args
4276  do
4277    case "$apr_configure_arg" in
4278      --enable-layout=*|\'--enable-layout=*)
4279        continue ;;
4280    esac
4281    apr_configure_args="$apr_configure_args$apr_sep'$apr_configure_arg'"
4282    apr_sep=" "
4283  done
4284
4285
4286    test "x$silent" = "xyes" && apr_configure_args="$apr_configure_args --silent"
4287
4288    apr_configure_args="--disable-option-checking $apr_configure_args"
4289
4290              if eval $SHELL $ac_abs_srcdir/configure $apr_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_abs_srcdir $apache_apr_flags \
4291                             --prefix=$prefix \
4292                             --exec-prefix=$exec_prefix \
4293                             --libdir=$libdir \
4294                             --includedir=$includedir \
4295                             --bindir=$bindir \
4296                             --datadir=$datadir \
4297                             --with-installbuilddir=$installbuilddir
4298  then :
4299    echo ""$apu_apriconv_dir" configured properly"
4300  else
4301    echo "configure failed for "$apu_apriconv_dir""
4302    exit 1
4303  fi
4304
4305  cd $ac_popdir
4306
4307  # grab any updates from the sub-package
4308  if test -r "$cache_file"; then
4309  # Some versions of bash will fail to source /dev/null (special files
4310  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
4311  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
4312    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
4313$as_echo "$as_me: loading cache $cache_file" >&6;}
4314    case $cache_file in
4315      [\\/]* | ?:[\\/]* ) . "$cache_file";;
4316      *)                      . "./$cache_file";;
4317    esac
4318  fi
4319else
4320  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
4321$as_echo "$as_me: creating cache $cache_file" >&6;}
4322  >$cache_file
4323fi
4324
4325
4326        APRUTIL_EXPORT_LIBS="$abs_srcdir/$apu_apriconv_dir/lib/libapriconv.la \
4327                             $APRUTIL_EXPORT_LIBS"
4328        APRUTIL_INCLUDES="-I$abs_srcdir/$apu_apriconv_dir/include \
4329                          $APRUTIL_INCLUDES"
4330        APR_ICONV_DIR="$apu_apriconv_dir"
4331      else
4332       APR_ICONV_DIR=""
4333      fi
4334    else
4335      APR_ICONV_DIR=""
4336    fi
4337
4338fi
4339
4340
4341
4342ac_ext=c
4343ac_cpp='$CPP $CPPFLAGS'
4344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4346ac_compiler_gnu=$ac_cv_c_compiler_gnu
4347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4348$as_echo_n "checking how to run the C preprocessor... " >&6; }
4349# On Suns, sometimes $CPP names a directory.
4350if test -n "$CPP" && test -d "$CPP"; then
4351  CPP=
4352fi
4353if test -z "$CPP"; then
4354  if ${ac_cv_prog_CPP+:} false; then :
4355  $as_echo_n "(cached) " >&6
4356else
4357      # Double quotes because CPP needs to be expanded
4358    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4359    do
4360      ac_preproc_ok=false
4361for ac_c_preproc_warn_flag in '' yes
4362do
4363  # Use a header file that comes with gcc, so configuring glibc
4364  # with a fresh cross-compiler works.
4365  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4366  # <limits.h> exists even on freestanding compilers.
4367  # On the NeXT, cc -E runs the code through the compiler's parser,
4368  # not just through cpp. "Syntax error" is here to catch this case.
4369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4370/* end confdefs.h.  */
4371#ifdef __STDC__
4372# include <limits.h>
4373#else
4374# include <assert.h>
4375#endif
4376		     Syntax error
4377_ACEOF
4378if ac_fn_c_try_cpp "$LINENO"; then :
4379
4380else
4381  # Broken: fails on valid input.
4382continue
4383fi
4384rm -f conftest.err conftest.i conftest.$ac_ext
4385
4386  # OK, works on sane cases.  Now check whether nonexistent headers
4387  # can be detected and how.
4388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389/* end confdefs.h.  */
4390#include <ac_nonexistent.h>
4391_ACEOF
4392if ac_fn_c_try_cpp "$LINENO"; then :
4393  # Broken: success on invalid input.
4394continue
4395else
4396  # Passes both tests.
4397ac_preproc_ok=:
4398break
4399fi
4400rm -f conftest.err conftest.i conftest.$ac_ext
4401
4402done
4403# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4404rm -f conftest.i conftest.err conftest.$ac_ext
4405if $ac_preproc_ok; then :
4406  break
4407fi
4408
4409    done
4410    ac_cv_prog_CPP=$CPP
4411
4412fi
4413  CPP=$ac_cv_prog_CPP
4414else
4415  ac_cv_prog_CPP=$CPP
4416fi
4417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4418$as_echo "$CPP" >&6; }
4419ac_preproc_ok=false
4420for ac_c_preproc_warn_flag in '' yes
4421do
4422  # Use a header file that comes with gcc, so configuring glibc
4423  # with a fresh cross-compiler works.
4424  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4425  # <limits.h> exists even on freestanding compilers.
4426  # On the NeXT, cc -E runs the code through the compiler's parser,
4427  # not just through cpp. "Syntax error" is here to catch this case.
4428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4429/* end confdefs.h.  */
4430#ifdef __STDC__
4431# include <limits.h>
4432#else
4433# include <assert.h>
4434#endif
4435		     Syntax error
4436_ACEOF
4437if ac_fn_c_try_cpp "$LINENO"; then :
4438
4439else
4440  # Broken: fails on valid input.
4441continue
4442fi
4443rm -f conftest.err conftest.i conftest.$ac_ext
4444
4445  # OK, works on sane cases.  Now check whether nonexistent headers
4446  # can be detected and how.
4447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448/* end confdefs.h.  */
4449#include <ac_nonexistent.h>
4450_ACEOF
4451if ac_fn_c_try_cpp "$LINENO"; then :
4452  # Broken: success on invalid input.
4453continue
4454else
4455  # Passes both tests.
4456ac_preproc_ok=:
4457break
4458fi
4459rm -f conftest.err conftest.i conftest.$ac_ext
4460
4461done
4462# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4463rm -f conftest.i conftest.err conftest.$ac_ext
4464if $ac_preproc_ok; then :
4465
4466else
4467  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4468$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4469as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4470See \`config.log' for more details" "$LINENO" 5; }
4471fi
4472
4473ac_ext=c
4474ac_cpp='$CPP $CPPFLAGS'
4475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4477ac_compiler_gnu=$ac_cv_c_compiler_gnu
4478
4479
4480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4481$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4482if ${ac_cv_path_GREP+:} false; then :
4483  $as_echo_n "(cached) " >&6
4484else
4485  if test -z "$GREP"; then
4486  ac_path_GREP_found=false
4487  # Loop through the user's path and test for each of PROGNAME-LIST
4488  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4490do
4491  IFS=$as_save_IFS
4492  test -z "$as_dir" && as_dir=.
4493    for ac_prog in grep ggrep; do
4494    for ac_exec_ext in '' $ac_executable_extensions; do
4495      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4496      as_fn_executable_p "$ac_path_GREP" || continue
4497# Check for GNU ac_path_GREP and select it if it is found.
4498  # Check for GNU $ac_path_GREP
4499case `"$ac_path_GREP" --version 2>&1` in
4500*GNU*)
4501  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4502*)
4503  ac_count=0
4504  $as_echo_n 0123456789 >"conftest.in"
4505  while :
4506  do
4507    cat "conftest.in" "conftest.in" >"conftest.tmp"
4508    mv "conftest.tmp" "conftest.in"
4509    cp "conftest.in" "conftest.nl"
4510    $as_echo 'GREP' >> "conftest.nl"
4511    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4512    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4513    as_fn_arith $ac_count + 1 && ac_count=$as_val
4514    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4515      # Best one so far, save it but keep looking for a better one
4516      ac_cv_path_GREP="$ac_path_GREP"
4517      ac_path_GREP_max=$ac_count
4518    fi
4519    # 10*(2^10) chars as input seems more than enough
4520    test $ac_count -gt 10 && break
4521  done
4522  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4523esac
4524
4525      $ac_path_GREP_found && break 3
4526    done
4527  done
4528  done
4529IFS=$as_save_IFS
4530  if test -z "$ac_cv_path_GREP"; then
4531    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4532  fi
4533else
4534  ac_cv_path_GREP=$GREP
4535fi
4536
4537fi
4538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4539$as_echo "$ac_cv_path_GREP" >&6; }
4540 GREP="$ac_cv_path_GREP"
4541
4542
4543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4544$as_echo_n "checking for egrep... " >&6; }
4545if ${ac_cv_path_EGREP+:} false; then :
4546  $as_echo_n "(cached) " >&6
4547else
4548  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4549   then ac_cv_path_EGREP="$GREP -E"
4550   else
4551     if test -z "$EGREP"; then
4552  ac_path_EGREP_found=false
4553  # Loop through the user's path and test for each of PROGNAME-LIST
4554  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4556do
4557  IFS=$as_save_IFS
4558  test -z "$as_dir" && as_dir=.
4559    for ac_prog in egrep; do
4560    for ac_exec_ext in '' $ac_executable_extensions; do
4561      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4562      as_fn_executable_p "$ac_path_EGREP" || continue
4563# Check for GNU ac_path_EGREP and select it if it is found.
4564  # Check for GNU $ac_path_EGREP
4565case `"$ac_path_EGREP" --version 2>&1` in
4566*GNU*)
4567  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4568*)
4569  ac_count=0
4570  $as_echo_n 0123456789 >"conftest.in"
4571  while :
4572  do
4573    cat "conftest.in" "conftest.in" >"conftest.tmp"
4574    mv "conftest.tmp" "conftest.in"
4575    cp "conftest.in" "conftest.nl"
4576    $as_echo 'EGREP' >> "conftest.nl"
4577    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4578    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4579    as_fn_arith $ac_count + 1 && ac_count=$as_val
4580    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4581      # Best one so far, save it but keep looking for a better one
4582      ac_cv_path_EGREP="$ac_path_EGREP"
4583      ac_path_EGREP_max=$ac_count
4584    fi
4585    # 10*(2^10) chars as input seems more than enough
4586    test $ac_count -gt 10 && break
4587  done
4588  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4589esac
4590
4591      $ac_path_EGREP_found && break 3
4592    done
4593  done
4594  done
4595IFS=$as_save_IFS
4596  if test -z "$ac_cv_path_EGREP"; then
4597    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4598  fi
4599else
4600  ac_cv_path_EGREP=$EGREP
4601fi
4602
4603   fi
4604fi
4605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4606$as_echo "$ac_cv_path_EGREP" >&6; }
4607 EGREP="$ac_cv_path_EGREP"
4608
4609
4610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4611$as_echo_n "checking for ANSI C header files... " >&6; }
4612if ${ac_cv_header_stdc+:} false; then :
4613  $as_echo_n "(cached) " >&6
4614else
4615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616/* end confdefs.h.  */
4617#include <stdlib.h>
4618#include <stdarg.h>
4619#include <string.h>
4620#include <float.h>
4621
4622int
4623main ()
4624{
4625
4626  ;
4627  return 0;
4628}
4629_ACEOF
4630if ac_fn_c_try_compile "$LINENO"; then :
4631  ac_cv_header_stdc=yes
4632else
4633  ac_cv_header_stdc=no
4634fi
4635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4636
4637if test $ac_cv_header_stdc = yes; then
4638  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4640/* end confdefs.h.  */
4641#include <string.h>
4642
4643_ACEOF
4644if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4645  $EGREP "memchr" >/dev/null 2>&1; then :
4646
4647else
4648  ac_cv_header_stdc=no
4649fi
4650rm -f conftest*
4651
4652fi
4653
4654if test $ac_cv_header_stdc = yes; then
4655  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657/* end confdefs.h.  */
4658#include <stdlib.h>
4659
4660_ACEOF
4661if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4662  $EGREP "free" >/dev/null 2>&1; then :
4663
4664else
4665  ac_cv_header_stdc=no
4666fi
4667rm -f conftest*
4668
4669fi
4670
4671if test $ac_cv_header_stdc = yes; then
4672  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4673  if test "$cross_compiling" = yes; then :
4674  :
4675else
4676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677/* end confdefs.h.  */
4678#include <ctype.h>
4679#include <stdlib.h>
4680#if ((' ' & 0x0FF) == 0x020)
4681# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4682# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4683#else
4684# define ISLOWER(c) \
4685		   (('a' <= (c) && (c) <= 'i') \
4686		     || ('j' <= (c) && (c) <= 'r') \
4687		     || ('s' <= (c) && (c) <= 'z'))
4688# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4689#endif
4690
4691#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4692int
4693main ()
4694{
4695  int i;
4696  for (i = 0; i < 256; i++)
4697    if (XOR (islower (i), ISLOWER (i))
4698	|| toupper (i) != TOUPPER (i))
4699      return 2;
4700  return 0;
4701}
4702_ACEOF
4703if ac_fn_c_try_run "$LINENO"; then :
4704
4705else
4706  ac_cv_header_stdc=no
4707fi
4708rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4709  conftest.$ac_objext conftest.beam conftest.$ac_ext
4710fi
4711
4712fi
4713fi
4714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4715$as_echo "$ac_cv_header_stdc" >&6; }
4716if test $ac_cv_header_stdc = yes; then
4717
4718$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4719
4720fi
4721
4722# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4723for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4724		  inttypes.h stdint.h unistd.h
4725do :
4726  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4727ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4728"
4729if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4730  cat >>confdefs.h <<_ACEOF
4731#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4732_ACEOF
4733
4734fi
4735
4736done
4737
4738
4739
4740  apu_have_crypto=0
4741  apu_have_openssl=0
4742  apu_have_nss=0
4743  apu_have_commoncrypto=0
4744
4745  old_libs="$LIBS"
4746  old_cppflags="$CPPFLAGS"
4747  old_ldflags="$LDFLAGS"
4748
4749
4750# Check whether --with-crypto was given.
4751if test "${with_crypto+set}" = set; then :
4752  withval=$with_crypto;
4753    cryptolibs="openssl nss commoncrypto"
4754
4755    if test "$withval" = "yes"; then
4756
4757      crypto_library_enabled=0
4758      for cryptolib in $cryptolibs; do
4759        eval v=\$with_$cryptolib
4760        if test "$v" != "" -a "$v" != "no"; then
4761          crypto_library_enabled=1
4762        fi
4763      done
4764
4765      if test "$crypto_library_enabled" = "0"; then
4766        for cryptolib in $cryptolibs; do
4767          eval v=\$with_$cryptolib
4768          if test "$v" != "no"; then
4769            eval with_$cryptolib=yes
4770            crypto_library_enabled=1
4771          fi
4772        done
4773	if test "$crypto_library_enabled" = "1"; then
4774          { $as_echo "$as_me:${as_lineno-$LINENO}: Crypto was requested but no crypto library was found; autodetecting possible libraries" >&5
4775$as_echo "$as_me: Crypto was requested but no crypto library was found; autodetecting possible libraries" >&6;}
4776        else
4777          as_fn_error $? "Crypto was requested but all possible crypto libraries were disabled." "$LINENO" 5
4778	fi
4779      fi
4780
4781
4782  openssl_have_headers=0
4783  openssl_have_libs=0
4784
4785  old_libs="$LIBS"
4786  old_cppflags="$CPPFLAGS"
4787  old_ldflags="$LDFLAGS"
4788
4789
4790# Check whether --with-openssl was given.
4791if test "${with_openssl+set}" = set; then :
4792  withval=$with_openssl;
4793    if test "$withval" = "yes"; then
4794      for ac_header in openssl/x509.h
4795do :
4796  ac_fn_c_check_header_mongrel "$LINENO" "openssl/x509.h" "ac_cv_header_openssl_x509_h" "$ac_includes_default"
4797if test "x$ac_cv_header_openssl_x509_h" = xyes; then :
4798  cat >>confdefs.h <<_ACEOF
4799#define HAVE_OPENSSL_X509_H 1
4800_ACEOF
4801 openssl_have_headers=1
4802fi
4803
4804done
4805
4806      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_CIPHER_CTX_new in -lcrypto" >&5
4807$as_echo_n "checking for EVP_CIPHER_CTX_new in -lcrypto... " >&6; }
4808if ${ac_cv_lib_crypto_EVP_CIPHER_CTX_new+:} false; then :
4809  $as_echo_n "(cached) " >&6
4810else
4811  ac_check_lib_save_LIBS=$LIBS
4812LIBS="-lcrypto  $LIBS"
4813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814/* end confdefs.h.  */
4815
4816/* Override any GCC internal prototype to avoid an error.
4817   Use char because int might match the return type of a GCC
4818   builtin and then its argument prototype would still apply.  */
4819#ifdef __cplusplus
4820extern "C"
4821#endif
4822char EVP_CIPHER_CTX_new ();
4823int
4824main ()
4825{
4826return EVP_CIPHER_CTX_new ();
4827  ;
4828  return 0;
4829}
4830_ACEOF
4831if ac_fn_c_try_link "$LINENO"; then :
4832  ac_cv_lib_crypto_EVP_CIPHER_CTX_new=yes
4833else
4834  ac_cv_lib_crypto_EVP_CIPHER_CTX_new=no
4835fi
4836rm -f core conftest.err conftest.$ac_objext \
4837    conftest$ac_exeext conftest.$ac_ext
4838LIBS=$ac_check_lib_save_LIBS
4839fi
4840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_CIPHER_CTX_new" >&5
4841$as_echo "$ac_cv_lib_crypto_EVP_CIPHER_CTX_new" >&6; }
4842if test "x$ac_cv_lib_crypto_EVP_CIPHER_CTX_new" = xyes; then :
4843  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_accept in -lssl" >&5
4844$as_echo_n "checking for SSL_accept in -lssl... " >&6; }
4845if ${ac_cv_lib_ssl_SSL_accept+:} false; then :
4846  $as_echo_n "(cached) " >&6
4847else
4848  ac_check_lib_save_LIBS=$LIBS
4849LIBS="-lssl -lcrypto $LIBS"
4850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4851/* end confdefs.h.  */
4852
4853/* Override any GCC internal prototype to avoid an error.
4854   Use char because int might match the return type of a GCC
4855   builtin and then its argument prototype would still apply.  */
4856#ifdef __cplusplus
4857extern "C"
4858#endif
4859char SSL_accept ();
4860int
4861main ()
4862{
4863return SSL_accept ();
4864  ;
4865  return 0;
4866}
4867_ACEOF
4868if ac_fn_c_try_link "$LINENO"; then :
4869  ac_cv_lib_ssl_SSL_accept=yes
4870else
4871  ac_cv_lib_ssl_SSL_accept=no
4872fi
4873rm -f core conftest.err conftest.$ac_objext \
4874    conftest$ac_exeext conftest.$ac_ext
4875LIBS=$ac_check_lib_save_LIBS
4876fi
4877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_accept" >&5
4878$as_echo "$ac_cv_lib_ssl_SSL_accept" >&6; }
4879if test "x$ac_cv_lib_ssl_SSL_accept" = xyes; then :
4880  openssl_have_libs=1
4881fi
4882
4883fi
4884
4885      if test "$openssl_have_headers" != "0" && test "$openssl_have_libs" != "0"; then
4886        apu_have_openssl=1
4887      fi
4888    elif test "$withval" = "no"; then
4889      apu_have_openssl=0
4890    else
4891
4892      openssl_CPPFLAGS="-I$withval/include"
4893      openssl_LDFLAGS="-L$withval/lib "
4894
4895
4896  if test "x$CPPFLAGS" = "x"; then
4897    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"$openssl_CPPFLAGS\""
4898    CPPFLAGS="$openssl_CPPFLAGS"
4899  else
4900    apr_addto_bugger="$openssl_CPPFLAGS"
4901    for i in $apr_addto_bugger; do
4902      apr_addto_duplicate="0"
4903      for j in $CPPFLAGS; do
4904        if test "x$i" = "x$j"; then
4905          apr_addto_duplicate="1"
4906          break
4907        fi
4908      done
4909      if test $apr_addto_duplicate = "0"; then
4910        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
4911        CPPFLAGS="$CPPFLAGS $i"
4912      fi
4913    done
4914  fi
4915
4916
4917  if test "x$LDFLAGS" = "x"; then
4918    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$openssl_LDFLAGS\""
4919    LDFLAGS="$openssl_LDFLAGS"
4920  else
4921    apr_addto_bugger="$openssl_LDFLAGS"
4922    for i in $apr_addto_bugger; do
4923      apr_addto_duplicate="0"
4924      for j in $LDFLAGS; do
4925        if test "x$i" = "x$j"; then
4926          apr_addto_duplicate="1"
4927          break
4928        fi
4929      done
4930      if test $apr_addto_duplicate = "0"; then
4931        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
4932        LDFLAGS="$LDFLAGS $i"
4933      fi
4934    done
4935  fi
4936
4937
4938      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl in $withval" >&5
4939$as_echo "$as_me: checking for openssl in $withval" >&6;}
4940      for ac_header in openssl/x509.h
4941do :
4942  ac_fn_c_check_header_mongrel "$LINENO" "openssl/x509.h" "ac_cv_header_openssl_x509_h" "$ac_includes_default"
4943if test "x$ac_cv_header_openssl_x509_h" = xyes; then :
4944  cat >>confdefs.h <<_ACEOF
4945#define HAVE_OPENSSL_X509_H 1
4946_ACEOF
4947 openssl_have_headers=1
4948fi
4949
4950done
4951
4952      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_CIPHER_CTX_new in -lcrypto" >&5
4953$as_echo_n "checking for EVP_CIPHER_CTX_new in -lcrypto... " >&6; }
4954if ${ac_cv_lib_crypto_EVP_CIPHER_CTX_new+:} false; then :
4955  $as_echo_n "(cached) " >&6
4956else
4957  ac_check_lib_save_LIBS=$LIBS
4958LIBS="-lcrypto  $LIBS"
4959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4960/* end confdefs.h.  */
4961
4962/* Override any GCC internal prototype to avoid an error.
4963   Use char because int might match the return type of a GCC
4964   builtin and then its argument prototype would still apply.  */
4965#ifdef __cplusplus
4966extern "C"
4967#endif
4968char EVP_CIPHER_CTX_new ();
4969int
4970main ()
4971{
4972return EVP_CIPHER_CTX_new ();
4973  ;
4974  return 0;
4975}
4976_ACEOF
4977if ac_fn_c_try_link "$LINENO"; then :
4978  ac_cv_lib_crypto_EVP_CIPHER_CTX_new=yes
4979else
4980  ac_cv_lib_crypto_EVP_CIPHER_CTX_new=no
4981fi
4982rm -f core conftest.err conftest.$ac_objext \
4983    conftest$ac_exeext conftest.$ac_ext
4984LIBS=$ac_check_lib_save_LIBS
4985fi
4986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_CIPHER_CTX_new" >&5
4987$as_echo "$ac_cv_lib_crypto_EVP_CIPHER_CTX_new" >&6; }
4988if test "x$ac_cv_lib_crypto_EVP_CIPHER_CTX_new" = xyes; then :
4989  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_accept in -lssl" >&5
4990$as_echo_n "checking for SSL_accept in -lssl... " >&6; }
4991if ${ac_cv_lib_ssl_SSL_accept+:} false; then :
4992  $as_echo_n "(cached) " >&6
4993else
4994  ac_check_lib_save_LIBS=$LIBS
4995LIBS="-lssl -lcrypto $LIBS"
4996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4997/* end confdefs.h.  */
4998
4999/* Override any GCC internal prototype to avoid an error.
5000   Use char because int might match the return type of a GCC
5001   builtin and then its argument prototype would still apply.  */
5002#ifdef __cplusplus
5003extern "C"
5004#endif
5005char SSL_accept ();
5006int
5007main ()
5008{
5009return SSL_accept ();
5010  ;
5011  return 0;
5012}
5013_ACEOF
5014if ac_fn_c_try_link "$LINENO"; then :
5015  ac_cv_lib_ssl_SSL_accept=yes
5016else
5017  ac_cv_lib_ssl_SSL_accept=no
5018fi
5019rm -f core conftest.err conftest.$ac_objext \
5020    conftest$ac_exeext conftest.$ac_ext
5021LIBS=$ac_check_lib_save_LIBS
5022fi
5023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_accept" >&5
5024$as_echo "$ac_cv_lib_ssl_SSL_accept" >&6; }
5025if test "x$ac_cv_lib_ssl_SSL_accept" = xyes; then :
5026  openssl_have_libs=1
5027fi
5028
5029fi
5030
5031      if test "$openssl_have_headers" != "0" && test "$openssl_have_libs" != "0"; then
5032        apu_have_openssl=1
5033
5034  if test "x$APRUTIL_LDFLAGS" = "x"; then
5035    test "x$silent" != "xyes" && echo "  setting APRUTIL_LDFLAGS to \"-L$withval/lib\""
5036    APRUTIL_LDFLAGS="-L$withval/lib"
5037  else
5038    apr_addto_bugger="-L$withval/lib"
5039    for i in $apr_addto_bugger; do
5040      apr_addto_duplicate="0"
5041      for j in $APRUTIL_LDFLAGS; do
5042        if test "x$i" = "x$j"; then
5043          apr_addto_duplicate="1"
5044          break
5045        fi
5046      done
5047      if test $apr_addto_duplicate = "0"; then
5048        test "x$silent" != "xyes" && echo "  adding \"$i\" to APRUTIL_LDFLAGS"
5049        APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
5050      fi
5051    done
5052  fi
5053
5054
5055  if test "x$APRUTIL_INCLUDES" = "x"; then
5056    test "x$silent" != "xyes" && echo "  setting APRUTIL_INCLUDES to \"-I$withval/include\""
5057    APRUTIL_INCLUDES="-I$withval/include"
5058  else
5059    apr_addto_bugger="-I$withval/include"
5060    for i in $apr_addto_bugger; do
5061      apr_addto_duplicate="0"
5062      for j in $APRUTIL_INCLUDES; do
5063        if test "x$i" = "x$j"; then
5064          apr_addto_duplicate="1"
5065          break
5066        fi
5067      done
5068      if test $apr_addto_duplicate = "0"; then
5069        test "x$silent" != "xyes" && echo "  adding \"$i\" to APRUTIL_INCLUDES"
5070        APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
5071      fi
5072    done
5073  fi
5074
5075      fi
5076
5077      ac_fn_c_check_decl "$LINENO" "EVP_PKEY_CTX_new" "ac_cv_have_decl_EVP_PKEY_CTX_new" "#include <openssl/evp.h>
5078"
5079if test "x$ac_cv_have_decl_EVP_PKEY_CTX_new" = xyes; then :
5080  ac_have_decl=1
5081else
5082  ac_have_decl=0
5083fi
5084
5085cat >>confdefs.h <<_ACEOF
5086#define HAVE_DECL_EVP_PKEY_CTX_NEW $ac_have_decl
5087_ACEOF
5088
5089
5090    fi
5091
5092else
5093
5094    apu_have_openssl=0
5095
5096fi
5097
5098
5099
5100
5101      if test "$apu_have_openssl" = "1"; then
5102
5103  if test "x$LDADD_crypto_openssl" = "x"; then
5104    test "x$silent" != "xyes" && echo "  setting LDADD_crypto_openssl to \"$openssl_LDFLAGS -lssl -lcrypto\""
5105    LDADD_crypto_openssl="$openssl_LDFLAGS -lssl -lcrypto"
5106  else
5107    apr_addto_bugger="$openssl_LDFLAGS -lssl -lcrypto"
5108    for i in $apr_addto_bugger; do
5109      apr_addto_duplicate="0"
5110      for j in $LDADD_crypto_openssl; do
5111        if test "x$i" = "x$j"; then
5112          apr_addto_duplicate="1"
5113          break
5114        fi
5115      done
5116      if test $apr_addto_duplicate = "0"; then
5117        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDADD_crypto_openssl"
5118        LDADD_crypto_openssl="$LDADD_crypto_openssl $i"
5119      fi
5120    done
5121  fi
5122
5123    apu_have_crypto=1
5124
5125    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const input buffers in OpenSSL" >&5
5126$as_echo_n "checking for const input buffers in OpenSSL... " >&6; }
5127    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128/* end confdefs.h.  */
5129#include <openssl/rsa.h>
5130int
5131main ()
5132{
5133 const unsigned char * buf;
5134          unsigned char * outbuf;
5135          RSA rsa;
5136
5137                RSA_private_decrypt(1,
5138                                                        buf,
5139                                                        outbuf,
5140                                                        &rsa,
5141                                                        RSA_PKCS1_PADDING);
5142
5143
5144  ;
5145  return 0;
5146}
5147_ACEOF
5148if ac_fn_c_try_compile "$LINENO"; then :
5149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5150$as_echo "yes" >&6; }
5151
5152$as_echo "#define CRYPTO_OPENSSL_CONST_BUFFERS 1" >>confdefs.h
5153
5154else
5155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5156$as_echo "no" >&6; }
5157fi
5158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5159
5160  fi
5161
5162
5163
5164  LIBS="$old_libs"
5165  CPPFLAGS="$old_cppflags"
5166  LDFLAGS="$old_ldflags"
5167
5168
5169  nss_have_libs=0
5170
5171  old_libs="$LIBS"
5172  old_cppflags="$CPPFLAGS"
5173  old_ldflags="$LDFLAGS"
5174
5175
5176# Check whether --with-nss was given.
5177if test "${with_nss+set}" = set; then :
5178  withval=$with_nss;
5179    if test "$withval" = "yes"; then
5180      if test -n "$ac_tool_prefix"; then
5181  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5182set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5184$as_echo_n "checking for $ac_word... " >&6; }
5185if ${ac_cv_path_PKG_CONFIG+:} false; then :
5186  $as_echo_n "(cached) " >&6
5187else
5188  case $PKG_CONFIG in
5189  [\\/]* | ?:[\\/]*)
5190  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5191  ;;
5192  *)
5193  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194for as_dir in $PATH
5195do
5196  IFS=$as_save_IFS
5197  test -z "$as_dir" && as_dir=.
5198    for ac_exec_ext in '' $ac_executable_extensions; do
5199  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5200    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5201    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5202    break 2
5203  fi
5204done
5205  done
5206IFS=$as_save_IFS
5207
5208  ;;
5209esac
5210fi
5211PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5212if test -n "$PKG_CONFIG"; then
5213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5214$as_echo "$PKG_CONFIG" >&6; }
5215else
5216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217$as_echo "no" >&6; }
5218fi
5219
5220
5221fi
5222if test -z "$ac_cv_path_PKG_CONFIG"; then
5223  ac_pt_PKG_CONFIG=$PKG_CONFIG
5224  # Extract the first word of "pkg-config", so it can be a program name with args.
5225set dummy pkg-config; ac_word=$2
5226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5227$as_echo_n "checking for $ac_word... " >&6; }
5228if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5229  $as_echo_n "(cached) " >&6
5230else
5231  case $ac_pt_PKG_CONFIG in
5232  [\\/]* | ?:[\\/]*)
5233  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5234  ;;
5235  *)
5236  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237for as_dir in $PATH
5238do
5239  IFS=$as_save_IFS
5240  test -z "$as_dir" && as_dir=.
5241    for ac_exec_ext in '' $ac_executable_extensions; do
5242  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5243    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5244    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5245    break 2
5246  fi
5247done
5248  done
5249IFS=$as_save_IFS
5250
5251  ;;
5252esac
5253fi
5254ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5255if test -n "$ac_pt_PKG_CONFIG"; then
5256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5257$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5258else
5259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5260$as_echo "no" >&6; }
5261fi
5262
5263  if test "x$ac_pt_PKG_CONFIG" = x; then
5264    PKG_CONFIG=""
5265  else
5266    case $cross_compiling:$ac_tool_warned in
5267yes:)
5268{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5269$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5270ac_tool_warned=yes ;;
5271esac
5272    PKG_CONFIG=$ac_pt_PKG_CONFIG
5273  fi
5274else
5275  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5276fi
5277
5278      if test -n "$PKG_CONFIG"; then
5279        nss_CPPFLAGS=`$PKG_CONFIG --cflags-only-I nss`
5280        nss_LDFLAGS=`$PKG_CONFIG --libs nss`
5281
5282  if test "x$CPPFLAGS" = "x"; then
5283    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"$nss_CPPFLAGS\""
5284    CPPFLAGS="$nss_CPPFLAGS"
5285  else
5286    apr_addto_bugger="$nss_CPPFLAGS"
5287    for i in $apr_addto_bugger; do
5288      apr_addto_duplicate="0"
5289      for j in $CPPFLAGS; do
5290        if test "x$i" = "x$j"; then
5291          apr_addto_duplicate="1"
5292          break
5293        fi
5294      done
5295      if test $apr_addto_duplicate = "0"; then
5296        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
5297        CPPFLAGS="$CPPFLAGS $i"
5298      fi
5299    done
5300  fi
5301
5302
5303  if test "x$LDFLAGS" = "x"; then
5304    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$nss_LDFLAGS\""
5305    LDFLAGS="$nss_LDFLAGS"
5306  else
5307    apr_addto_bugger="$nss_LDFLAGS"
5308    for i in $apr_addto_bugger; do
5309      apr_addto_duplicate="0"
5310      for j in $LDFLAGS; do
5311        if test "x$i" = "x$j"; then
5312          apr_addto_duplicate="1"
5313          break
5314        fi
5315      done
5316      if test $apr_addto_duplicate = "0"; then
5317        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
5318        LDFLAGS="$LDFLAGS $i"
5319      fi
5320    done
5321  fi
5322
5323      fi
5324      nss_have_prerrorh=0
5325      nss_have_nssh=0
5326      nss_have_pk11pubh=0
5327      for ac_header in prerror.h
5328do :
5329  ac_fn_c_check_header_mongrel "$LINENO" "prerror.h" "ac_cv_header_prerror_h" "$ac_includes_default"
5330if test "x$ac_cv_header_prerror_h" = xyes; then :
5331  cat >>confdefs.h <<_ACEOF
5332#define HAVE_PRERROR_H 1
5333_ACEOF
5334 nss_have_prerrorh=1
5335fi
5336
5337done
5338
5339      for ac_header in nss/nss.h nss.h
5340do :
5341  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5342ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5343if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5344  cat >>confdefs.h <<_ACEOF
5345#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5346_ACEOF
5347 nss_have_nssh=1
5348fi
5349
5350done
5351
5352      for ac_header in nss/pk11pub.h pk11pub.h
5353do :
5354  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5355ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5356if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5357  cat >>confdefs.h <<_ACEOF
5358#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5359_ACEOF
5360 nss_have_pk11pubh=1
5361fi
5362
5363done
5364
5365      nss_have_headers=${nss_have_prerrorh}${nss_have_nssh}${nss_have_pk11pubh}
5366      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Initialize in -lnspr4" >&5
5367$as_echo_n "checking for PR_Initialize in -lnspr4... " >&6; }
5368if ${ac_cv_lib_nspr4_PR_Initialize+:} false; then :
5369  $as_echo_n "(cached) " >&6
5370else
5371  ac_check_lib_save_LIBS=$LIBS
5372LIBS="-lnspr4  $LIBS"
5373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374/* end confdefs.h.  */
5375
5376/* Override any GCC internal prototype to avoid an error.
5377   Use char because int might match the return type of a GCC
5378   builtin and then its argument prototype would still apply.  */
5379#ifdef __cplusplus
5380extern "C"
5381#endif
5382char PR_Initialize ();
5383int
5384main ()
5385{
5386return PR_Initialize ();
5387  ;
5388  return 0;
5389}
5390_ACEOF
5391if ac_fn_c_try_link "$LINENO"; then :
5392  ac_cv_lib_nspr4_PR_Initialize=yes
5393else
5394  ac_cv_lib_nspr4_PR_Initialize=no
5395fi
5396rm -f core conftest.err conftest.$ac_objext \
5397    conftest$ac_exeext conftest.$ac_ext
5398LIBS=$ac_check_lib_save_LIBS
5399fi
5400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr4_PR_Initialize" >&5
5401$as_echo "$ac_cv_lib_nspr4_PR_Initialize" >&6; }
5402if test "x$ac_cv_lib_nspr4_PR_Initialize" = xyes; then :
5403  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PK11_CreatePBEV2AlgorithmID in -lnss3" >&5
5404$as_echo_n "checking for PK11_CreatePBEV2AlgorithmID in -lnss3... " >&6; }
5405if ${ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID+:} false; then :
5406  $as_echo_n "(cached) " >&6
5407else
5408  ac_check_lib_save_LIBS=$LIBS
5409LIBS="-lnss3 -lnspr4 $LIBS"
5410cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5411/* end confdefs.h.  */
5412
5413/* Override any GCC internal prototype to avoid an error.
5414   Use char because int might match the return type of a GCC
5415   builtin and then its argument prototype would still apply.  */
5416#ifdef __cplusplus
5417extern "C"
5418#endif
5419char PK11_CreatePBEV2AlgorithmID ();
5420int
5421main ()
5422{
5423return PK11_CreatePBEV2AlgorithmID ();
5424  ;
5425  return 0;
5426}
5427_ACEOF
5428if ac_fn_c_try_link "$LINENO"; then :
5429  ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID=yes
5430else
5431  ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID=no
5432fi
5433rm -f core conftest.err conftest.$ac_objext \
5434    conftest$ac_exeext conftest.$ac_ext
5435LIBS=$ac_check_lib_save_LIBS
5436fi
5437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID" >&5
5438$as_echo "$ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID" >&6; }
5439if test "x$ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID" = xyes; then :
5440  nss_have_libs=1
5441fi
5442
5443fi
5444
5445      if test "$nss_have_headers" = "111" && test "$nss_have_libs" != "0"; then
5446        apu_have_nss=1
5447      fi
5448    elif test "$withval" = "no"; then
5449      apu_have_nss=0
5450    elif test "x$withval" != "x"; then
5451
5452      nss_CPPFLAGS="-I$withval/include/nss -I$withval/include/nss3 -I$withval/include/nspr -I$withval/include/nspr4 -I$withval/include -I$withval/../public"
5453      nss_LDFLAGS="-L$withval/lib "
5454
5455
5456  if test "x$CPPFLAGS" = "x"; then
5457    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"$nss_CPPFLAGS\""
5458    CPPFLAGS="$nss_CPPFLAGS"
5459  else
5460    apr_addto_bugger="$nss_CPPFLAGS"
5461    for i in $apr_addto_bugger; do
5462      apr_addto_duplicate="0"
5463      for j in $CPPFLAGS; do
5464        if test "x$i" = "x$j"; then
5465          apr_addto_duplicate="1"
5466          break
5467        fi
5468      done
5469      if test $apr_addto_duplicate = "0"; then
5470        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
5471        CPPFLAGS="$CPPFLAGS $i"
5472      fi
5473    done
5474  fi
5475
5476
5477  if test "x$LDFLAGS" = "x"; then
5478    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$nss_LDFLAGS\""
5479    LDFLAGS="$nss_LDFLAGS"
5480  else
5481    apr_addto_bugger="$nss_LDFLAGS"
5482    for i in $apr_addto_bugger; do
5483      apr_addto_duplicate="0"
5484      for j in $LDFLAGS; do
5485        if test "x$i" = "x$j"; then
5486          apr_addto_duplicate="1"
5487          break
5488        fi
5489      done
5490      if test $apr_addto_duplicate = "0"; then
5491        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
5492        LDFLAGS="$LDFLAGS $i"
5493      fi
5494    done
5495  fi
5496
5497
5498      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss in $withval" >&5
5499$as_echo "$as_me: checking for nss in $withval" >&6;}
5500      nss_have_prerrorh=0
5501      nss_have_nssh=0
5502      nss_have_pk11pubh=0
5503      for ac_header in prerror.h
5504do :
5505  ac_fn_c_check_header_mongrel "$LINENO" "prerror.h" "ac_cv_header_prerror_h" "$ac_includes_default"
5506if test "x$ac_cv_header_prerror_h" = xyes; then :
5507  cat >>confdefs.h <<_ACEOF
5508#define HAVE_PRERROR_H 1
5509_ACEOF
5510 nss_have_prerrorh=1
5511fi
5512
5513done
5514
5515      for ac_header in nss/nss.h nss.h
5516do :
5517  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5518ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5519if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5520  cat >>confdefs.h <<_ACEOF
5521#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5522_ACEOF
5523 nss_have_nssh=1
5524fi
5525
5526done
5527
5528      for ac_header in nss/pk11pub.h pk11pub.h
5529do :
5530  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5531ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5532if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5533  cat >>confdefs.h <<_ACEOF
5534#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5535_ACEOF
5536 nss_have_pk11pubh=1
5537fi
5538
5539done
5540
5541      nss_have_headers=${nss_have_prerrorh}${nss_have_nssh}${nss_have_pk11pubh}
5542      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Initialize in -lnspr4" >&5
5543$as_echo_n "checking for PR_Initialize in -lnspr4... " >&6; }
5544if ${ac_cv_lib_nspr4_PR_Initialize+:} false; then :
5545  $as_echo_n "(cached) " >&6
5546else
5547  ac_check_lib_save_LIBS=$LIBS
5548LIBS="-lnspr4  $LIBS"
5549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5550/* end confdefs.h.  */
5551
5552/* Override any GCC internal prototype to avoid an error.
5553   Use char because int might match the return type of a GCC
5554   builtin and then its argument prototype would still apply.  */
5555#ifdef __cplusplus
5556extern "C"
5557#endif
5558char PR_Initialize ();
5559int
5560main ()
5561{
5562return PR_Initialize ();
5563  ;
5564  return 0;
5565}
5566_ACEOF
5567if ac_fn_c_try_link "$LINENO"; then :
5568  ac_cv_lib_nspr4_PR_Initialize=yes
5569else
5570  ac_cv_lib_nspr4_PR_Initialize=no
5571fi
5572rm -f core conftest.err conftest.$ac_objext \
5573    conftest$ac_exeext conftest.$ac_ext
5574LIBS=$ac_check_lib_save_LIBS
5575fi
5576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr4_PR_Initialize" >&5
5577$as_echo "$ac_cv_lib_nspr4_PR_Initialize" >&6; }
5578if test "x$ac_cv_lib_nspr4_PR_Initialize" = xyes; then :
5579  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PK11_CreatePBEV2AlgorithmID in -lnss3" >&5
5580$as_echo_n "checking for PK11_CreatePBEV2AlgorithmID in -lnss3... " >&6; }
5581if ${ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID+:} false; then :
5582  $as_echo_n "(cached) " >&6
5583else
5584  ac_check_lib_save_LIBS=$LIBS
5585LIBS="-lnss3 -lnspr4 $LIBS"
5586cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5587/* end confdefs.h.  */
5588
5589/* Override any GCC internal prototype to avoid an error.
5590   Use char because int might match the return type of a GCC
5591   builtin and then its argument prototype would still apply.  */
5592#ifdef __cplusplus
5593extern "C"
5594#endif
5595char PK11_CreatePBEV2AlgorithmID ();
5596int
5597main ()
5598{
5599return PK11_CreatePBEV2AlgorithmID ();
5600  ;
5601  return 0;
5602}
5603_ACEOF
5604if ac_fn_c_try_link "$LINENO"; then :
5605  ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID=yes
5606else
5607  ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID=no
5608fi
5609rm -f core conftest.err conftest.$ac_objext \
5610    conftest$ac_exeext conftest.$ac_ext
5611LIBS=$ac_check_lib_save_LIBS
5612fi
5613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID" >&5
5614$as_echo "$ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID" >&6; }
5615if test "x$ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID" = xyes; then :
5616  nss_have_libs=1
5617fi
5618
5619fi
5620
5621      if test "$nss_have_headers" = "111" && test "$nss_have_libs" != "0"; then
5622        apu_have_nss=1
5623      fi
5624
5625    fi
5626    if test "$apu_have_nss" != "0"; then
5627
5628  if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then
5629    test "x$silent" != "xyes" && echo "  setting APRUTIL_PRIV_INCLUDES to \"$nss_CPPFLAGS\""
5630    APRUTIL_PRIV_INCLUDES="$nss_CPPFLAGS"
5631  else
5632    apr_addto_bugger="$nss_CPPFLAGS"
5633    for i in $apr_addto_bugger; do
5634      apr_addto_duplicate="0"
5635      for j in $APRUTIL_PRIV_INCLUDES; do
5636        if test "x$i" = "x$j"; then
5637          apr_addto_duplicate="1"
5638          break
5639        fi
5640      done
5641      if test $apr_addto_duplicate = "0"; then
5642        test "x$silent" != "xyes" && echo "  adding \"$i\" to APRUTIL_PRIV_INCLUDES"
5643        APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i"
5644      fi
5645    done
5646  fi
5647
5648    fi
5649
5650else
5651
5652    apu_have_nss=0
5653
5654fi
5655
5656
5657
5658
5659      if test "$apu_have_nss" = "1"; then
5660
5661  if test "x$LDADD_crypto_nss" = "x"; then
5662    test "x$silent" != "xyes" && echo "  setting LDADD_crypto_nss to \"$nss_LDFLAGS -lnspr4 -lnss3\""
5663    LDADD_crypto_nss="$nss_LDFLAGS -lnspr4 -lnss3"
5664  else
5665    apr_addto_bugger="$nss_LDFLAGS -lnspr4 -lnss3"
5666    for i in $apr_addto_bugger; do
5667      apr_addto_duplicate="0"
5668      for j in $LDADD_crypto_nss; do
5669        if test "x$i" = "x$j"; then
5670          apr_addto_duplicate="1"
5671          break
5672        fi
5673      done
5674      if test $apr_addto_duplicate = "0"; then
5675        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDADD_crypto_nss"
5676        LDADD_crypto_nss="$LDADD_crypto_nss $i"
5677      fi
5678    done
5679  fi
5680
5681    apu_have_crypto=1
5682  fi
5683
5684
5685
5686  LIBS="$old_libs"
5687  CPPFLAGS="$old_cppflags"
5688  LDFLAGS="$old_ldflags"
5689
5690
5691  apu_have_commoncrypto=0
5692  commoncrypto_have_headers=0
5693  commoncrypto_have_libs=0
5694
5695  old_libs="$LIBS"
5696  old_cppflags="$CPPFLAGS"
5697  old_ldflags="$LDFLAGS"
5698
5699
5700# Check whether --with-commoncrypto was given.
5701if test "${with_commoncrypto+set}" = set; then :
5702  withval=$with_commoncrypto;
5703    if test "$withval" = "yes"; then
5704      for ac_header in CommonCrypto/CommonKeyDerivation.h
5705do :
5706  ac_fn_c_check_header_mongrel "$LINENO" "CommonCrypto/CommonKeyDerivation.h" "ac_cv_header_CommonCrypto_CommonKeyDerivation_h" "$ac_includes_default"
5707if test "x$ac_cv_header_CommonCrypto_CommonKeyDerivation_h" = xyes; then :
5708  cat >>confdefs.h <<_ACEOF
5709#define HAVE_COMMONCRYPTO_COMMONKEYDERIVATION_H 1
5710_ACEOF
5711 commoncrypto_have_headers=1
5712fi
5713
5714done
5715
5716      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCKeyDerivationPBKDF in -lSystem" >&5
5717$as_echo_n "checking for CCKeyDerivationPBKDF in -lSystem... " >&6; }
5718if ${ac_cv_lib_System_CCKeyDerivationPBKDF+:} false; then :
5719  $as_echo_n "(cached) " >&6
5720else
5721  ac_check_lib_save_LIBS=$LIBS
5722LIBS="-lSystem  $LIBS"
5723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724/* end confdefs.h.  */
5725
5726/* Override any GCC internal prototype to avoid an error.
5727   Use char because int might match the return type of a GCC
5728   builtin and then its argument prototype would still apply.  */
5729#ifdef __cplusplus
5730extern "C"
5731#endif
5732char CCKeyDerivationPBKDF ();
5733int
5734main ()
5735{
5736return CCKeyDerivationPBKDF ();
5737  ;
5738  return 0;
5739}
5740_ACEOF
5741if ac_fn_c_try_link "$LINENO"; then :
5742  ac_cv_lib_System_CCKeyDerivationPBKDF=yes
5743else
5744  ac_cv_lib_System_CCKeyDerivationPBKDF=no
5745fi
5746rm -f core conftest.err conftest.$ac_objext \
5747    conftest$ac_exeext conftest.$ac_ext
5748LIBS=$ac_check_lib_save_LIBS
5749fi
5750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_System_CCKeyDerivationPBKDF" >&5
5751$as_echo "$ac_cv_lib_System_CCKeyDerivationPBKDF" >&6; }
5752if test "x$ac_cv_lib_System_CCKeyDerivationPBKDF" = xyes; then :
5753  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCCryptorCreate in -lSystem" >&5
5754$as_echo_n "checking for CCCryptorCreate in -lSystem... " >&6; }
5755if ${ac_cv_lib_System_CCCryptorCreate+:} false; then :
5756  $as_echo_n "(cached) " >&6
5757else
5758  ac_check_lib_save_LIBS=$LIBS
5759LIBS="-lSystem -lcrypto $LIBS"
5760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761/* end confdefs.h.  */
5762
5763/* Override any GCC internal prototype to avoid an error.
5764   Use char because int might match the return type of a GCC
5765   builtin and then its argument prototype would still apply.  */
5766#ifdef __cplusplus
5767extern "C"
5768#endif
5769char CCCryptorCreate ();
5770int
5771main ()
5772{
5773return CCCryptorCreate ();
5774  ;
5775  return 0;
5776}
5777_ACEOF
5778if ac_fn_c_try_link "$LINENO"; then :
5779  ac_cv_lib_System_CCCryptorCreate=yes
5780else
5781  ac_cv_lib_System_CCCryptorCreate=no
5782fi
5783rm -f core conftest.err conftest.$ac_objext \
5784    conftest$ac_exeext conftest.$ac_ext
5785LIBS=$ac_check_lib_save_LIBS
5786fi
5787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_System_CCCryptorCreate" >&5
5788$as_echo "$ac_cv_lib_System_CCCryptorCreate" >&6; }
5789if test "x$ac_cv_lib_System_CCCryptorCreate" = xyes; then :
5790  commoncrypto_have_libs=1
5791fi
5792
5793fi
5794
5795      if test "$commoncrypto_have_headers" != "0" && test "$commoncrypto_have_libs" != "0"; then
5796        apu_have_commoncrypto=1
5797      fi
5798    elif test "$withval" = "no"; then
5799      apu_have_commoncrypto=0
5800    else
5801
5802      commoncrypto_CPPFLAGS="-I$withval/include"
5803      commoncrypto_LDFLAGS="-L$withval/lib "
5804
5805
5806  if test "x$CPPFLAGS" = "x"; then
5807    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"$commoncrypto_CPPFLAGS\""
5808    CPPFLAGS="$commoncrypto_CPPFLAGS"
5809  else
5810    apr_addto_bugger="$commoncrypto_CPPFLAGS"
5811    for i in $apr_addto_bugger; do
5812      apr_addto_duplicate="0"
5813      for j in $CPPFLAGS; do
5814        if test "x$i" = "x$j"; then
5815          apr_addto_duplicate="1"
5816          break
5817        fi
5818      done
5819      if test $apr_addto_duplicate = "0"; then
5820        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
5821        CPPFLAGS="$CPPFLAGS $i"
5822      fi
5823    done
5824  fi
5825
5826
5827  if test "x$LDFLAGS" = "x"; then
5828    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$commoncrypto_LDFLAGS\""
5829    LDFLAGS="$commoncrypto_LDFLAGS"
5830  else
5831    apr_addto_bugger="$commoncrypto_LDFLAGS"
5832    for i in $apr_addto_bugger; do
5833      apr_addto_duplicate="0"
5834      for j in $LDFLAGS; do
5835        if test "x$i" = "x$j"; then
5836          apr_addto_duplicate="1"
5837          break
5838        fi
5839      done
5840      if test $apr_addto_duplicate = "0"; then
5841        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
5842        LDFLAGS="$LDFLAGS $i"
5843      fi
5844    done
5845  fi
5846
5847
5848      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for commoncrypto in $withval" >&5
5849$as_echo "$as_me: checking for commoncrypto in $withval" >&6;}
5850      for ac_header in CommonCrypto/CommonKeyDerivation.h
5851do :
5852  ac_fn_c_check_header_mongrel "$LINENO" "CommonCrypto/CommonKeyDerivation.h" "ac_cv_header_CommonCrypto_CommonKeyDerivation_h" "$ac_includes_default"
5853if test "x$ac_cv_header_CommonCrypto_CommonKeyDerivation_h" = xyes; then :
5854  cat >>confdefs.h <<_ACEOF
5855#define HAVE_COMMONCRYPTO_COMMONKEYDERIVATION_H 1
5856_ACEOF
5857 commoncrypto_have_headers=1
5858fi
5859
5860done
5861
5862      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCKeyDerivationPBKDF in -lSystem" >&5
5863$as_echo_n "checking for CCKeyDerivationPBKDF in -lSystem... " >&6; }
5864if ${ac_cv_lib_System_CCKeyDerivationPBKDF+:} false; then :
5865  $as_echo_n "(cached) " >&6
5866else
5867  ac_check_lib_save_LIBS=$LIBS
5868LIBS="-lSystem  $LIBS"
5869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5870/* end confdefs.h.  */
5871
5872/* Override any GCC internal prototype to avoid an error.
5873   Use char because int might match the return type of a GCC
5874   builtin and then its argument prototype would still apply.  */
5875#ifdef __cplusplus
5876extern "C"
5877#endif
5878char CCKeyDerivationPBKDF ();
5879int
5880main ()
5881{
5882return CCKeyDerivationPBKDF ();
5883  ;
5884  return 0;
5885}
5886_ACEOF
5887if ac_fn_c_try_link "$LINENO"; then :
5888  ac_cv_lib_System_CCKeyDerivationPBKDF=yes
5889else
5890  ac_cv_lib_System_CCKeyDerivationPBKDF=no
5891fi
5892rm -f core conftest.err conftest.$ac_objext \
5893    conftest$ac_exeext conftest.$ac_ext
5894LIBS=$ac_check_lib_save_LIBS
5895fi
5896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_System_CCKeyDerivationPBKDF" >&5
5897$as_echo "$ac_cv_lib_System_CCKeyDerivationPBKDF" >&6; }
5898if test "x$ac_cv_lib_System_CCKeyDerivationPBKDF" = xyes; then :
5899  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCCryptorCreate in -lSystem" >&5
5900$as_echo_n "checking for CCCryptorCreate in -lSystem... " >&6; }
5901if ${ac_cv_lib_System_CCCryptorCreate+:} false; then :
5902  $as_echo_n "(cached) " >&6
5903else
5904  ac_check_lib_save_LIBS=$LIBS
5905LIBS="-lSystem -lcrypto $LIBS"
5906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5907/* end confdefs.h.  */
5908
5909/* Override any GCC internal prototype to avoid an error.
5910   Use char because int might match the return type of a GCC
5911   builtin and then its argument prototype would still apply.  */
5912#ifdef __cplusplus
5913extern "C"
5914#endif
5915char CCCryptorCreate ();
5916int
5917main ()
5918{
5919return CCCryptorCreate ();
5920  ;
5921  return 0;
5922}
5923_ACEOF
5924if ac_fn_c_try_link "$LINENO"; then :
5925  ac_cv_lib_System_CCCryptorCreate=yes
5926else
5927  ac_cv_lib_System_CCCryptorCreate=no
5928fi
5929rm -f core conftest.err conftest.$ac_objext \
5930    conftest$ac_exeext conftest.$ac_ext
5931LIBS=$ac_check_lib_save_LIBS
5932fi
5933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_System_CCCryptorCreate" >&5
5934$as_echo "$ac_cv_lib_System_CCCryptorCreate" >&6; }
5935if test "x$ac_cv_lib_System_CCCryptorCreate" = xyes; then :
5936  commoncrypto_have_libs=1
5937fi
5938
5939fi
5940
5941      if test "$commoncrypto_have_headers" != "0" && test "$commoncrypto_have_libs" != "0"; then
5942        apu_have_commoncrypto=1
5943
5944  if test "x$LDFLAGS" = "x"; then
5945    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-L$withval/lib\""
5946    LDFLAGS="-L$withval/lib"
5947  else
5948    apr_addto_bugger="-L$withval/lib"
5949    for i in $apr_addto_bugger; do
5950      apr_addto_duplicate="0"
5951      for j in $LDFLAGS; do
5952        if test "x$i" = "x$j"; then
5953          apr_addto_duplicate="1"
5954          break
5955        fi
5956      done
5957      if test $apr_addto_duplicate = "0"; then
5958        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
5959        LDFLAGS="$LDFLAGS $i"
5960      fi
5961    done
5962  fi
5963
5964
5965  if test "x$INCLUDES" = "x"; then
5966    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I$withval/include\""
5967    INCLUDES="-I$withval/include"
5968  else
5969    apr_addto_bugger="-I$withval/include"
5970    for i in $apr_addto_bugger; do
5971      apr_addto_duplicate="0"
5972      for j in $INCLUDES; do
5973        if test "x$i" = "x$j"; then
5974          apr_addto_duplicate="1"
5975          break
5976        fi
5977      done
5978      if test $apr_addto_duplicate = "0"; then
5979        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
5980        INCLUDES="$INCLUDES $i"
5981      fi
5982    done
5983  fi
5984
5985      fi
5986
5987    fi
5988
5989else
5990
5991    apu_have_commoncrypto=0
5992
5993fi
5994
5995
5996      if test "$apu_have_commoncrypto" = "1"; then
5997    apu_have_crypto=1
5998  fi
5999
6000
6001
6002
6003  LIBS="$old_libs"
6004  CPPFLAGS="$old_cppflags"
6005  LDFLAGS="$old_ldflags"
6006
6007            if test "$apu_have_crypto" = "0"; then
6008        as_fn_error $? "Crypto was requested but no crypto library could be enabled; specify the location of a crypto library using --with-openssl, --with-nss, and/or --with-commoncrypto." "$LINENO" 5
6009      fi
6010    fi
6011
6012else
6013
6014      apu_have_crypto=0
6015
6016fi
6017
6018
6019
6020
6021
6022
6023
6024echo $ac_n "${nl}checking for ldap support..."
6025
6026apu_has_ldap="0";
6027apu_has_ldapssl_client_init="0"
6028apu_has_ldapssl_client_deinit="0"
6029apu_has_ldapssl_add_trusted_cert="0"
6030apu_has_ldap_start_tls_s="0"
6031apu_has_ldapssl_init="0"
6032apu_has_ldap_sslinit="0"
6033apu_has_ldapssl_install_routines="0"
6034apu_has_ldap_openldap="0"
6035apu_has_ldap_solaris="0"
6036apu_has_ldap_novell="0"
6037apu_has_ldap_microsoft="0"
6038apu_has_ldap_netscape="0"
6039apu_has_ldap_mozilla="0"
6040apu_has_ldap_tivoli="0"
6041apu_has_ldap_zos="0"
6042apu_has_ldap_other="0"
6043LDADD_ldap_found=""
6044
6045
6046# Check whether --with-lber was given.
6047if test "${with_lber+set}" = set; then :
6048  withval=$with_lber;
6049    if test "$withval" = "yes"; then
6050      apu_liblber_name="lber"
6051    else
6052      apu_liblber_name="$withval"
6053    fi
6054
6055else
6056
6057    apu_liblber_name="lber"
6058
6059fi
6060
6061
6062
6063# Check whether --with-ldap-include was given.
6064if test "${with_ldap_include+set}" = set; then :
6065  withval=$with_ldap_include;
6066fi
6067
6068
6069# Check whether --with-ldap-lib was given.
6070if test "${with_ldap_lib+set}" = set; then :
6071  withval=$with_ldap_lib;
6072fi
6073
6074
6075# Check whether --with-ldap was given.
6076if test "${with_ldap+set}" = set; then :
6077  withval=$with_ldap;
6078    if test "$with_ldap" != "no"; then
6079      save_cppflags="$CPPFLAGS"
6080      save_ldflags="$LDFLAGS"
6081      save_libs="$LIBS"
6082      if test -n "$with_ldap_include"; then
6083        CPPFLAGS="$CPPFLAGS -I$with_ldap_include"
6084
6085  if test "x$APRUTIL_INCLUDES" = "x"; then
6086    test "x$silent" != "xyes" && echo "  setting APRUTIL_INCLUDES to \"-I$with_ldap_include\""
6087    APRUTIL_INCLUDES="-I$with_ldap_include"
6088  else
6089    apr_addto_bugger="-I$with_ldap_include"
6090    for i in $apr_addto_bugger; do
6091      apr_addto_duplicate="0"
6092      for j in $APRUTIL_INCLUDES; do
6093        if test "x$i" = "x$j"; then
6094          apr_addto_duplicate="1"
6095          break
6096        fi
6097      done
6098      if test $apr_addto_duplicate = "0"; then
6099        test "x$silent" != "xyes" && echo "  adding \"$i\" to APRUTIL_INCLUDES"
6100        APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
6101      fi
6102    done
6103  fi
6104
6105      fi
6106      if test -n "$with_ldap_lib"; then
6107        LDFLAGS="$LDFLAGS -L$with_ldap_lib"
6108
6109  if test "x$APRUTIL_LDFLAGS" = "x"; then
6110    test "x$silent" != "xyes" && echo "  setting APRUTIL_LDFLAGS to \"-L$with_ldap_lib\""
6111    APRUTIL_LDFLAGS="-L$with_ldap_lib"
6112  else
6113    apr_addto_bugger="-L$with_ldap_lib"
6114    for i in $apr_addto_bugger; do
6115      apr_addto_duplicate="0"
6116      for j in $APRUTIL_LDFLAGS; do
6117        if test "x$i" = "x$j"; then
6118          apr_addto_duplicate="1"
6119          break
6120        fi
6121      done
6122      if test $apr_addto_duplicate = "0"; then
6123        test "x$silent" != "xyes" && echo "  adding \"$i\" to APRUTIL_LDFLAGS"
6124        APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
6125      fi
6126    done
6127  fi
6128
6129      fi
6130
6131      LIBLDAP="$withval"
6132      if test "$LIBLDAP" = "yes"; then
6133
6134  if test ${apu_has_ldap} != "1"; then
6135    ldaplib="ldap50"
6136    extralib="-lnspr4 -lplc4 -lplds4 -liutil50 -llber50 -lldif50 -lnss3 -lprldap50 -lssl3 -lssldap50"
6137    # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations.
6138
6139    ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
6140
6141    unset ac_cv_lib_${ldaplib_cache_id}_ldap_init
6142    unset ac_cv_lib_${ldaplib_cache_id}___ldap_init
6143    as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
6144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5
6145$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; }
6146if eval \${$as_ac_Lib+:} false; then :
6147  $as_echo_n "(cached) " >&6
6148else
6149  ac_check_lib_save_LIBS=$LIBS
6150LIBS="-l${ldaplib} ${extralib} $LIBS"
6151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152/* end confdefs.h.  */
6153
6154/* Override any GCC internal prototype to avoid an error.
6155   Use char because int might match the return type of a GCC
6156   builtin and then its argument prototype would still apply.  */
6157#ifdef __cplusplus
6158extern "C"
6159#endif
6160char ldap_init ();
6161int
6162main ()
6163{
6164return ldap_init ();
6165  ;
6166  return 0;
6167}
6168_ACEOF
6169if ac_fn_c_try_link "$LINENO"; then :
6170  eval "$as_ac_Lib=yes"
6171else
6172  eval "$as_ac_Lib=no"
6173fi
6174rm -f core conftest.err conftest.$ac_objext \
6175    conftest$ac_exeext conftest.$ac_ext
6176LIBS=$ac_check_lib_save_LIBS
6177fi
6178eval ac_res=\$$as_ac_Lib
6179	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6180$as_echo "$ac_res" >&6; }
6181if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6182
6183        LDADD_ldap_found="-l${ldaplib} ${extralib}"
6184        as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh`
6185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5
6186$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; }
6187if eval \${$as_ac_Lib+:} false; then :
6188  $as_echo_n "(cached) " >&6
6189else
6190  ac_check_lib_save_LIBS=$LIBS
6191LIBS="-l${ldaplib} ${extralib} $LIBS"
6192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6193/* end confdefs.h.  */
6194
6195/* Override any GCC internal prototype to avoid an error.
6196   Use char because int might match the return type of a GCC
6197   builtin and then its argument prototype would still apply.  */
6198#ifdef __cplusplus
6199extern "C"
6200#endif
6201char ldapssl_client_init ();
6202int
6203main ()
6204{
6205return ldapssl_client_init ();
6206  ;
6207  return 0;
6208}
6209_ACEOF
6210if ac_fn_c_try_link "$LINENO"; then :
6211  eval "$as_ac_Lib=yes"
6212else
6213  eval "$as_ac_Lib=no"
6214fi
6215rm -f core conftest.err conftest.$ac_objext \
6216    conftest$ac_exeext conftest.$ac_ext
6217LIBS=$ac_check_lib_save_LIBS
6218fi
6219eval ac_res=\$$as_ac_Lib
6220	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6221$as_echo "$ac_res" >&6; }
6222if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6223  apu_has_ldapssl_client_init="1"
6224fi
6225
6226        as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh`
6227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5
6228$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; }
6229if eval \${$as_ac_Lib+:} false; then :
6230  $as_echo_n "(cached) " >&6
6231else
6232  ac_check_lib_save_LIBS=$LIBS
6233LIBS="-l${ldaplib} ${extralib} $LIBS"
6234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6235/* end confdefs.h.  */
6236
6237/* Override any GCC internal prototype to avoid an error.
6238   Use char because int might match the return type of a GCC
6239   builtin and then its argument prototype would still apply.  */
6240#ifdef __cplusplus
6241extern "C"
6242#endif
6243char ldapssl_client_deinit ();
6244int
6245main ()
6246{
6247return ldapssl_client_deinit ();
6248  ;
6249  return 0;
6250}
6251_ACEOF
6252if ac_fn_c_try_link "$LINENO"; then :
6253  eval "$as_ac_Lib=yes"
6254else
6255  eval "$as_ac_Lib=no"
6256fi
6257rm -f core conftest.err conftest.$ac_objext \
6258    conftest$ac_exeext conftest.$ac_ext
6259LIBS=$ac_check_lib_save_LIBS
6260fi
6261eval ac_res=\$$as_ac_Lib
6262	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6263$as_echo "$ac_res" >&6; }
6264if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6265  apu_has_ldapssl_client_deinit="1"
6266fi
6267
6268        as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh`
6269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5
6270$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; }
6271if eval \${$as_ac_Lib+:} false; then :
6272  $as_echo_n "(cached) " >&6
6273else
6274  ac_check_lib_save_LIBS=$LIBS
6275LIBS="-l${ldaplib} ${extralib} $LIBS"
6276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6277/* end confdefs.h.  */
6278
6279/* Override any GCC internal prototype to avoid an error.
6280   Use char because int might match the return type of a GCC
6281   builtin and then its argument prototype would still apply.  */
6282#ifdef __cplusplus
6283extern "C"
6284#endif
6285char ldapssl_add_trusted_cert ();
6286int
6287main ()
6288{
6289return ldapssl_add_trusted_cert ();
6290  ;
6291  return 0;
6292}
6293_ACEOF
6294if ac_fn_c_try_link "$LINENO"; then :
6295  eval "$as_ac_Lib=yes"
6296else
6297  eval "$as_ac_Lib=no"
6298fi
6299rm -f core conftest.err conftest.$ac_objext \
6300    conftest$ac_exeext conftest.$ac_ext
6301LIBS=$ac_check_lib_save_LIBS
6302fi
6303eval ac_res=\$$as_ac_Lib
6304	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6305$as_echo "$ac_res" >&6; }
6306if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6307  apu_has_ldapssl_add_trusted_cert="1"
6308fi
6309
6310        as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
6311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5
6312$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; }
6313if eval \${$as_ac_Lib+:} false; then :
6314  $as_echo_n "(cached) " >&6
6315else
6316  ac_check_lib_save_LIBS=$LIBS
6317LIBS="-l${ldaplib} ${extralib} $LIBS"
6318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319/* end confdefs.h.  */
6320
6321/* Override any GCC internal prototype to avoid an error.
6322   Use char because int might match the return type of a GCC
6323   builtin and then its argument prototype would still apply.  */
6324#ifdef __cplusplus
6325extern "C"
6326#endif
6327char ldap_start_tls_s ();
6328int
6329main ()
6330{
6331return ldap_start_tls_s ();
6332  ;
6333  return 0;
6334}
6335_ACEOF
6336if ac_fn_c_try_link "$LINENO"; then :
6337  eval "$as_ac_Lib=yes"
6338else
6339  eval "$as_ac_Lib=no"
6340fi
6341rm -f core conftest.err conftest.$ac_objext \
6342    conftest$ac_exeext conftest.$ac_ext
6343LIBS=$ac_check_lib_save_LIBS
6344fi
6345eval ac_res=\$$as_ac_Lib
6346	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6347$as_echo "$ac_res" >&6; }
6348if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6349  apu_has_ldap_start_tls_s="1"
6350fi
6351
6352        as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh`
6353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5
6354$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; }
6355if eval \${$as_ac_Lib+:} false; then :
6356  $as_echo_n "(cached) " >&6
6357else
6358  ac_check_lib_save_LIBS=$LIBS
6359LIBS="-l${ldaplib} ${extralib} $LIBS"
6360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361/* end confdefs.h.  */
6362
6363/* Override any GCC internal prototype to avoid an error.
6364   Use char because int might match the return type of a GCC
6365   builtin and then its argument prototype would still apply.  */
6366#ifdef __cplusplus
6367extern "C"
6368#endif
6369char ldap_sslinit ();
6370int
6371main ()
6372{
6373return ldap_sslinit ();
6374  ;
6375  return 0;
6376}
6377_ACEOF
6378if ac_fn_c_try_link "$LINENO"; then :
6379  eval "$as_ac_Lib=yes"
6380else
6381  eval "$as_ac_Lib=no"
6382fi
6383rm -f core conftest.err conftest.$ac_objext \
6384    conftest$ac_exeext conftest.$ac_ext
6385LIBS=$ac_check_lib_save_LIBS
6386fi
6387eval ac_res=\$$as_ac_Lib
6388	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6389$as_echo "$ac_res" >&6; }
6390if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6391  apu_has_ldap_sslinit="1"
6392fi
6393
6394        as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh`
6395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5
6396$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; }
6397if eval \${$as_ac_Lib+:} false; then :
6398  $as_echo_n "(cached) " >&6
6399else
6400  ac_check_lib_save_LIBS=$LIBS
6401LIBS="-l${ldaplib} ${extralib} $LIBS"
6402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6403/* end confdefs.h.  */
6404
6405/* Override any GCC internal prototype to avoid an error.
6406   Use char because int might match the return type of a GCC
6407   builtin and then its argument prototype would still apply.  */
6408#ifdef __cplusplus
6409extern "C"
6410#endif
6411char ldapssl_init ();
6412int
6413main ()
6414{
6415return ldapssl_init ();
6416  ;
6417  return 0;
6418}
6419_ACEOF
6420if ac_fn_c_try_link "$LINENO"; then :
6421  eval "$as_ac_Lib=yes"
6422else
6423  eval "$as_ac_Lib=no"
6424fi
6425rm -f core conftest.err conftest.$ac_objext \
6426    conftest$ac_exeext conftest.$ac_ext
6427LIBS=$ac_check_lib_save_LIBS
6428fi
6429eval ac_res=\$$as_ac_Lib
6430	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6431$as_echo "$ac_res" >&6; }
6432if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6433  apu_has_ldapssl_init="1"
6434fi
6435
6436        as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
6437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5
6438$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; }
6439if eval \${$as_ac_Lib+:} false; then :
6440  $as_echo_n "(cached) " >&6
6441else
6442  ac_check_lib_save_LIBS=$LIBS
6443LIBS="-l${ldaplib} ${extralib} $LIBS"
6444cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6445/* end confdefs.h.  */
6446
6447/* Override any GCC internal prototype to avoid an error.
6448   Use char because int might match the return type of a GCC
6449   builtin and then its argument prototype would still apply.  */
6450#ifdef __cplusplus
6451extern "C"
6452#endif
6453char ldapssl_install_routines ();
6454int
6455main ()
6456{
6457return ldapssl_install_routines ();
6458  ;
6459  return 0;
6460}
6461_ACEOF
6462if ac_fn_c_try_link "$LINENO"; then :
6463  eval "$as_ac_Lib=yes"
6464else
6465  eval "$as_ac_Lib=no"
6466fi
6467rm -f core conftest.err conftest.$ac_objext \
6468    conftest$ac_exeext conftest.$ac_ext
6469LIBS=$ac_check_lib_save_LIBS
6470fi
6471eval ac_res=\$$as_ac_Lib
6472	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6473$as_echo "$ac_res" >&6; }
6474if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6475  apu_has_ldapssl_install_routines="1"
6476fi
6477
6478        apu_has_ldap="1";
6479
6480fi
6481
6482  fi
6483
6484
6485  if test ${apu_has_ldap} != "1"; then
6486    ldaplib="ldapssl41"
6487    extralib="-lnspr3 -lplc3 -lplds3"
6488    # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations.
6489
6490    ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
6491
6492    unset ac_cv_lib_${ldaplib_cache_id}_ldap_init
6493    unset ac_cv_lib_${ldaplib_cache_id}___ldap_init
6494    as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
6495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5
6496$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; }
6497if eval \${$as_ac_Lib+:} false; then :
6498  $as_echo_n "(cached) " >&6
6499else
6500  ac_check_lib_save_LIBS=$LIBS
6501LIBS="-l${ldaplib} ${extralib} $LIBS"
6502cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6503/* end confdefs.h.  */
6504
6505/* Override any GCC internal prototype to avoid an error.
6506   Use char because int might match the return type of a GCC
6507   builtin and then its argument prototype would still apply.  */
6508#ifdef __cplusplus
6509extern "C"
6510#endif
6511char ldap_init ();
6512int
6513main ()
6514{
6515return ldap_init ();
6516  ;
6517  return 0;
6518}
6519_ACEOF
6520if ac_fn_c_try_link "$LINENO"; then :
6521  eval "$as_ac_Lib=yes"
6522else
6523  eval "$as_ac_Lib=no"
6524fi
6525rm -f core conftest.err conftest.$ac_objext \
6526    conftest$ac_exeext conftest.$ac_ext
6527LIBS=$ac_check_lib_save_LIBS
6528fi
6529eval ac_res=\$$as_ac_Lib
6530	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6531$as_echo "$ac_res" >&6; }
6532if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6533
6534        LDADD_ldap_found="-l${ldaplib} ${extralib}"
6535        as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh`
6536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5
6537$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; }
6538if eval \${$as_ac_Lib+:} false; then :
6539  $as_echo_n "(cached) " >&6
6540else
6541  ac_check_lib_save_LIBS=$LIBS
6542LIBS="-l${ldaplib} ${extralib} $LIBS"
6543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6544/* end confdefs.h.  */
6545
6546/* Override any GCC internal prototype to avoid an error.
6547   Use char because int might match the return type of a GCC
6548   builtin and then its argument prototype would still apply.  */
6549#ifdef __cplusplus
6550extern "C"
6551#endif
6552char ldapssl_client_init ();
6553int
6554main ()
6555{
6556return ldapssl_client_init ();
6557  ;
6558  return 0;
6559}
6560_ACEOF
6561if ac_fn_c_try_link "$LINENO"; then :
6562  eval "$as_ac_Lib=yes"
6563else
6564  eval "$as_ac_Lib=no"
6565fi
6566rm -f core conftest.err conftest.$ac_objext \
6567    conftest$ac_exeext conftest.$ac_ext
6568LIBS=$ac_check_lib_save_LIBS
6569fi
6570eval ac_res=\$$as_ac_Lib
6571	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6572$as_echo "$ac_res" >&6; }
6573if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6574  apu_has_ldapssl_client_init="1"
6575fi
6576
6577        as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh`
6578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5
6579$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; }
6580if eval \${$as_ac_Lib+:} false; then :
6581  $as_echo_n "(cached) " >&6
6582else
6583  ac_check_lib_save_LIBS=$LIBS
6584LIBS="-l${ldaplib} ${extralib} $LIBS"
6585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6586/* end confdefs.h.  */
6587
6588/* Override any GCC internal prototype to avoid an error.
6589   Use char because int might match the return type of a GCC
6590   builtin and then its argument prototype would still apply.  */
6591#ifdef __cplusplus
6592extern "C"
6593#endif
6594char ldapssl_client_deinit ();
6595int
6596main ()
6597{
6598return ldapssl_client_deinit ();
6599  ;
6600  return 0;
6601}
6602_ACEOF
6603if ac_fn_c_try_link "$LINENO"; then :
6604  eval "$as_ac_Lib=yes"
6605else
6606  eval "$as_ac_Lib=no"
6607fi
6608rm -f core conftest.err conftest.$ac_objext \
6609    conftest$ac_exeext conftest.$ac_ext
6610LIBS=$ac_check_lib_save_LIBS
6611fi
6612eval ac_res=\$$as_ac_Lib
6613	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6614$as_echo "$ac_res" >&6; }
6615if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6616  apu_has_ldapssl_client_deinit="1"
6617fi
6618
6619        as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh`
6620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5
6621$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; }
6622if eval \${$as_ac_Lib+:} false; then :
6623  $as_echo_n "(cached) " >&6
6624else
6625  ac_check_lib_save_LIBS=$LIBS
6626LIBS="-l${ldaplib} ${extralib} $LIBS"
6627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6628/* end confdefs.h.  */
6629
6630/* Override any GCC internal prototype to avoid an error.
6631   Use char because int might match the return type of a GCC
6632   builtin and then its argument prototype would still apply.  */
6633#ifdef __cplusplus
6634extern "C"
6635#endif
6636char ldapssl_add_trusted_cert ();
6637int
6638main ()
6639{
6640return ldapssl_add_trusted_cert ();
6641  ;
6642  return 0;
6643}
6644_ACEOF
6645if ac_fn_c_try_link "$LINENO"; then :
6646  eval "$as_ac_Lib=yes"
6647else
6648  eval "$as_ac_Lib=no"
6649fi
6650rm -f core conftest.err conftest.$ac_objext \
6651    conftest$ac_exeext conftest.$ac_ext
6652LIBS=$ac_check_lib_save_LIBS
6653fi
6654eval ac_res=\$$as_ac_Lib
6655	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6656$as_echo "$ac_res" >&6; }
6657if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6658  apu_has_ldapssl_add_trusted_cert="1"
6659fi
6660
6661        as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
6662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5
6663$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; }
6664if eval \${$as_ac_Lib+:} false; then :
6665  $as_echo_n "(cached) " >&6
6666else
6667  ac_check_lib_save_LIBS=$LIBS
6668LIBS="-l${ldaplib} ${extralib} $LIBS"
6669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670/* end confdefs.h.  */
6671
6672/* Override any GCC internal prototype to avoid an error.
6673   Use char because int might match the return type of a GCC
6674   builtin and then its argument prototype would still apply.  */
6675#ifdef __cplusplus
6676extern "C"
6677#endif
6678char ldap_start_tls_s ();
6679int
6680main ()
6681{
6682return ldap_start_tls_s ();
6683  ;
6684  return 0;
6685}
6686_ACEOF
6687if ac_fn_c_try_link "$LINENO"; then :
6688  eval "$as_ac_Lib=yes"
6689else
6690  eval "$as_ac_Lib=no"
6691fi
6692rm -f core conftest.err conftest.$ac_objext \
6693    conftest$ac_exeext conftest.$ac_ext
6694LIBS=$ac_check_lib_save_LIBS
6695fi
6696eval ac_res=\$$as_ac_Lib
6697	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6698$as_echo "$ac_res" >&6; }
6699if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6700  apu_has_ldap_start_tls_s="1"
6701fi
6702
6703        as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh`
6704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5
6705$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; }
6706if eval \${$as_ac_Lib+:} false; then :
6707  $as_echo_n "(cached) " >&6
6708else
6709  ac_check_lib_save_LIBS=$LIBS
6710LIBS="-l${ldaplib} ${extralib} $LIBS"
6711cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6712/* end confdefs.h.  */
6713
6714/* Override any GCC internal prototype to avoid an error.
6715   Use char because int might match the return type of a GCC