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
201  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    PATH=/empty FPATH=/empty; export PATH FPATH
206    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208  if (eval "$as_required") 2>/dev/null; then :
209  as_have_required=yes
210else
211  as_have_required=no
212fi
213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  as_found=:
223  case $as_dir in #(
224	 /*)
225	   for as_base in sh bash ksh sh5; do
226	     # Try only shells that exist, to save several forks.
227	     as_shell=$as_dir/$as_base
228	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230  CONFIG_SHELL=$as_shell as_have_required=yes
231		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  break 2
233fi
234fi
235	   done;;
236       esac
237  as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241  CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246      if test "x$CONFIG_SHELL" != x; then :
247  export CONFIG_SHELL
248             # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256  *v*x* | *x*v* ) as_opts=-vx ;;
257  *v* ) as_opts=-v ;;
258  *x* ) as_opts=-x ;;
259  * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno; then :
269  $as_echo "$0: This script requires a shell more modern than all"
270  $as_echo "$0: the shells that I found on your system."
271  if test x${ZSH_VERSION+set} = xset ; then
272    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307  return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315  set +e
316  as_fn_set_status $1
317  exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326  case $as_dir in #(
327  -*) as_dir=./$as_dir;;
328  esac
329  test -d "$as_dir" || eval $as_mkdir_p || {
330    as_dirs=
331    while :; do
332      case $as_dir in #(
333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334      *) as_qdir=$as_dir;;
335      esac
336      as_dirs="'$as_qdir' $as_dirs"
337      as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339	 X"$as_dir" : 'X\(//\)[^/]' \| \
340	 X"$as_dir" : 'X\(//\)$' \| \
341	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)[^/].*/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)$/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\).*/{
356	    s//\1/
357	    q
358	  }
359	  s/.*/./; q'`
360      test -d "$as_dir" && break
361    done
362    test -z "$as_dirs" || eval "mkdir $as_dirs"
363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373  test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382  eval 'as_fn_append ()
383  {
384    eval $1+=\$2
385  }'
386else
387  as_fn_append ()
388  {
389    eval $1=\$$1\$2
390  }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399  eval 'as_fn_arith ()
400  {
401    as_val=$(( $* ))
402  }'
403else
404  as_fn_arith ()
405  {
406    as_val=`expr "$@" || test $? -eq 1`
407  }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418  as_status=$1; test $as_status -eq 0 && as_status=1
419  if test "$4"; then
420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422  fi
423  $as_echo "$as_me: error: $2" >&2
424  as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429  as_expr=expr
430else
431  as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435  as_basename=basename
436else
437  as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441  as_dirname=dirname
442else
443  as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448	 X"$0" : 'X\(//\)$' \| \
449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451    sed '/^.*\/\([^/][^/]*\)\/*$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\/\)$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\).*/{
460	    s//\1/
461	    q
462	  }
463	  s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478  sed -n '
479    p
480    /[$]LINENO/=
481  ' <$as_myself |
482    sed '
483      s/[$]LINENO.*/&-/
484      t lineno
485      b
486      :lineno
487      N
488      :loop
489      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490      t loop
491      s/-\n.*//
492    ' >$as_me.lineno &&
493  chmod +x "$as_me.lineno" ||
494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497  # already done that, so ensure we don't try to do so again and fall
498  # in an infinite loop.  This has already happened in practice.
499  _as_can_reexec=no; export _as_can_reexec
500  # Don't try to exec as it changes $[0], causing all sort of problems
501  # (the dirname of $[0] is not the place where we might find the
502  # original and so on.  Autoconf is especially sensitive to this).
503  . "./$as_me.lineno"
504  # Exit status is that of the last command.
505  exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511  case `echo 'xy\c'` in
512  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513  xy)  ECHO_C='\c';;
514  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515       ECHO_T='	';;
516  esac;;
517*)
518  ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523  rm -f conf$$.dir/conf$$.file
524else
525  rm -f conf$$.dir
526  mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529  if ln -s conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s='ln -s'
531    # ... but there are two gotchas:
532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534    # In both cases, we have to default to `cp -pR'.
535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536      as_ln_s='cp -pR'
537  elif ln conf$$.file conf$$ 2>/dev/null; then
538    as_ln_s=ln
539  else
540    as_ln_s='cp -pR'
541  fi
542else
543  as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549  as_mkdir_p='mkdir -p "$as_dir"'
550else
551  test -d ./-p && rmdir ./-p
552  as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME=
589PACKAGE_TARNAME=
590PACKAGE_VERSION=
591PACKAGE_STRING=
592PACKAGE_BUGREPORT=
593PACKAGE_URL=
594
595ac_unique_file="build/apr_common.m4"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610#  include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615#  include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='LTLIBOBJS
633LIBOBJS
634INCLUDE_OUTPUTS
635INCLUDE_RULES
636LT_NO_INSTALL
637LIBTOOL_LIBS
638DEFAULT_OSDIR
639OSDIR
640INCLUDES
641LDLIBS
642INTERNAL_CPPFLAGS
643NOTEST_INCLUDES
644NOTEST_LIBS
645NOTEST_LDFLAGS
646NOTEST_CFLAGS
647NOTEST_CPPFLAGS
648EXTRA_INCLUDES
649EXTRA_LIBS
650EXTRA_LDFLAGS
651EXTRA_CFLAGS
652EXTRA_CPPFLAGS
653apr_has_user
654apr_thread_func
655apr_procattr_user_set_requires_password
656apr_has_xthread_files
657have_unicode_fs
658apr_has_timedlocks
659have_ipv6
660have_sockaddr_un
661have_sa_storage
662have_sctp
663acceptfilter
664have_corkable_tcp
665apr_tcp_nopush_flag
666file_as_socket
667have_in_addr
668osuuid
669rand
670proclockglobal
671pthreadser
672procpthreadser
673fcntlser
674posixser
675sysvser
676flockser
677hasprocpthreadser
678hasfcntlser
679hasposixser
680hassysvser
681hasflockser
682have_pthread_condattr_setpshared
683have_pthread_mutex_timedlock
684have_union_semun
685struct_rlimit
686have_proc_invoked
687oc
688aprdso
689have_memchr
690have_strstr
691have_strdup
692have_strcasecmp
693have_stricmp
694have_strncasecmp
695have_strnicmp
696ino_t_value
697have_iovec
698aprlfs
699bigendian
700stdint
701uint64_literal
702int64_literal
703pid_t_fmt
704off_t_fmt
705size_t_fmt
706ssize_t_fmt
707uint64_t_hex_fmt
708uint64_t_fmt
709int64_t_fmt
710socklen_t_value
711ssize_t_value
712size_t_value
713off_t_value
714uint64_value
715int64_value
716int_value
717short_value
718voidp_size
719winsock2h
720windowsh
721semaphoreh
722pthreadh
723processh
724sys_waith
725signalh
726unistdh
727timeh
728sys_unh
729sys_uioh
730sys_timeh
731sys_typesh
732sys_sockioh
733sys_socketh
734sys_signalh
735sys_sendfileh
736sys_ioctlh
737stringsh
738stringh
739stdlibh
740stdioh
741stdargh
742netinet_tcph
743netinet_sctp_uioh
744netinet_sctph
745netinet_inh
746sys_syslimitsh
747netdbh
748limitsh
749ioh
750inttypesh
751fcntlh
752direnth
753errnoh
754crypth
755ctypeh
756conioh
757arpa_ineth
758have_memmove
759mmap
760have_getrlimit
761have_setrlimit
762have_sigaction
763have_inet_network
764o_nonblock_inherited
765tcp_nodelay_inherited
766have_inet_addr
767fork
768apr_inaddr_none
769sendfile
770ALLOCA
771sharedmem
772havewin32shm
773haveos2shm
774havebeosarea
775haveshmget
776havemmapshm
777havemmaptmp
778usewin32shm
779useos2shm
780usebeosarea
781useshmget
782usemmapshm
783usemmaptmp
784havemmapanon
785havemmapzero
786haveshmgetanon
787usemmapanon
788usemmapzero
789useshmgetanon
790have_sigwait
791have_sigsuspend
792threads
793INSTALL_SUBDIRS
794eolstr
795proc_mutex_is_global
796OBJECTS_PLATFORM
797MKDEP
798LT_VERSION
799LT_LDFLAGS
800LTFLAGS
801shlibpath_var
802export_lib_target
803lib_target
804so_ext
805link
806lt_compile
807installbuilddir
808LT_SYS_LIBRARY_PATH
809OTOOL64
810OTOOL
811LIPO
812NMEDIT
813DSYMUTIL
814MANIFEST_TOOL
815STRIP
816ac_ct_AR
817NM
818ac_ct_DUMPBIN
819DUMPBIN
820LD
821FGREP
822LIBTOOL
823OBJDUMP
824DLLTOOL
825APR_LIBNAME
826apr_charset_ebcdic
827EGREP
828GREP
829AR
830ASCPP
831AS
832RM
833INSTALL_DATA
834INSTALL_SCRIPT
835INSTALL_PROGRAM
836RANLIB
837LN_S
838AWK
839CPP
840SET_MAKE
841SED
842OBJEXT
843EXEEXT
844ac_ct_CC
845CPPFLAGS
846LDFLAGS
847CFLAGS
848CC
849APR_MAJOR_VERSION
850APR_DOTTED_VERSION
851apr_builders
852top_builddir
853APR_CONFIG_LOCATION
854apr_builddir
855apr_srcdir
856target_os
857target_vendor
858target_cpu
859target
860host_os
861host_vendor
862host_cpu
863host
864build_os
865build_vendor
866build_cpu
867build
868target_alias
869host_alias
870build_alias
871LIBS
872ECHO_T
873ECHO_N
874ECHO_C
875DEFS
876mandir
877localedir
878libdir
879psdir
880pdfdir
881dvidir
882htmldir
883infodir
884docdir
885oldincludedir
886includedir
887localstatedir
888sharedstatedir
889sysconfdir
890datadir
891datarootdir
892libexecdir
893sbindir
894bindir
895program_transform_name
896prefix
897exec_prefix
898PACKAGE_URL
899PACKAGE_BUGREPORT
900PACKAGE_STRING
901PACKAGE_VERSION
902PACKAGE_TARNAME
903PACKAGE_NAME
904PATH_SEPARATOR
905SHELL'
906ac_subst_files=''
907ac_user_opts='
908enable_option_checking
909enable_layout
910enable_experimental_libtool
911enable_shared
912enable_static
913with_pic
914enable_fast_install
915with_aix_soname
916with_gnu_ld
917with_sysroot
918enable_libtool_lock
919with_installbuilddir
920with_libtool
921enable_debug
922enable_maintainer_mode
923enable_profile
924enable_pool_debug
925enable_malloc_debug
926enable_lfs
927enable_nonportable_atomics
928enable_threads
929with_efence
930with_valgrind
931enable_posix_shm
932with_sendfile
933enable_allocator_uses_mmap
934enable_allocator_guard_pages
935enable_pool_concurrency_check
936enable_dso
937enable_other_child
938with_egd
939with_devrandom
940enable_ipv6
941enable_timedlocks
942'
943      ac_precious_vars='build_alias
944host_alias
945target_alias
946CC
947CFLAGS
948LDFLAGS
949LIBS
950CPPFLAGS
951CPP
952LT_SYS_LIBRARY_PATH'
953
954
955# Initialize some variables set by options.
956ac_init_help=
957ac_init_version=false
958ac_unrecognized_opts=
959ac_unrecognized_sep=
960# The variables have the same names as the options, with
961# dashes changed to underlines.
962cache_file=/dev/null
963exec_prefix=NONE
964no_create=
965no_recursion=
966prefix=NONE
967program_prefix=NONE
968program_suffix=NONE
969program_transform_name=s,x,x,
970silent=
971site=
972srcdir=
973verbose=
974x_includes=NONE
975x_libraries=NONE
976
977# Installation directory options.
978# These are left unexpanded so users can "make install exec_prefix=/foo"
979# and all the variables that are supposed to be based on exec_prefix
980# by default will actually change.
981# Use braces instead of parens because sh, perl, etc. also accept them.
982# (The list follows the same order as the GNU Coding Standards.)
983bindir='${exec_prefix}/bin'
984sbindir='${exec_prefix}/sbin'
985libexecdir='${exec_prefix}/libexec'
986datarootdir='${prefix}/share'
987datadir='${datarootdir}'
988sysconfdir='${prefix}/etc'
989sharedstatedir='${prefix}/com'
990localstatedir='${prefix}/var'
991includedir='${prefix}/include'
992oldincludedir='/usr/include'
993docdir='${datarootdir}/doc/${PACKAGE}'
994infodir='${datarootdir}/info'
995htmldir='${docdir}'
996dvidir='${docdir}'
997pdfdir='${docdir}'
998psdir='${docdir}'
999libdir='${exec_prefix}/lib'
1000localedir='${datarootdir}/locale'
1001mandir='${datarootdir}/man'
1002
1003ac_prev=
1004ac_dashdash=
1005for ac_option
1006do
1007  # If the previous option needs an argument, assign it.
1008  if test -n "$ac_prev"; then
1009    eval $ac_prev=\$ac_option
1010    ac_prev=
1011    continue
1012  fi
1013
1014  case $ac_option in
1015  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1016  *=)   ac_optarg= ;;
1017  *)    ac_optarg=yes ;;
1018  esac
1019
1020  # Accept the important Cygnus configure options, so we can diagnose typos.
1021
1022  case $ac_dashdash$ac_option in
1023  --)
1024    ac_dashdash=yes ;;
1025
1026  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1027    ac_prev=bindir ;;
1028  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1029    bindir=$ac_optarg ;;
1030
1031  -build | --build | --buil | --bui | --bu)
1032    ac_prev=build_alias ;;
1033  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1034    build_alias=$ac_optarg ;;
1035
1036  -cache-file | --cache-file | --cache-fil | --cache-fi \
1037  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1038    ac_prev=cache_file ;;
1039  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1040  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1041    cache_file=$ac_optarg ;;
1042
1043  --config-cache | -C)
1044    cache_file=config.cache ;;
1045
1046  -datadir | --datadir | --datadi | --datad)
1047    ac_prev=datadir ;;
1048  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1049    datadir=$ac_optarg ;;
1050
1051  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1052  | --dataroo | --dataro | --datar)
1053    ac_prev=datarootdir ;;
1054  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1055  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1056    datarootdir=$ac_optarg ;;
1057
1058  -disable-* | --disable-*)
1059    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1060    # Reject names that are not valid shell variable names.
1061    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1062      as_fn_error $? "invalid feature name: $ac_useropt"
1063    ac_useropt_orig=$ac_useropt
1064    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1065    case $ac_user_opts in
1066      *"
1067"enable_$ac_useropt"
1068"*) ;;
1069      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1070	 ac_unrecognized_sep=', ';;
1071    esac
1072    eval enable_$ac_useropt=no ;;
1073
1074  -docdir | --docdir | --docdi | --doc | --do)
1075    ac_prev=docdir ;;
1076  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1077    docdir=$ac_optarg ;;
1078
1079  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1080    ac_prev=dvidir ;;
1081  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1082    dvidir=$ac_optarg ;;
1083
1084  -enable-* | --enable-*)
1085    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1086    # Reject names that are not valid shell variable names.
1087    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088      as_fn_error $? "invalid feature name: $ac_useropt"
1089    ac_useropt_orig=$ac_useropt
1090    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091    case $ac_user_opts in
1092      *"
1093"enable_$ac_useropt"
1094"*) ;;
1095      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1096	 ac_unrecognized_sep=', ';;
1097    esac
1098    eval enable_$ac_useropt=\$ac_optarg ;;
1099
1100  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1101  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1102  | --exec | --exe | --ex)
1103    ac_prev=exec_prefix ;;
1104  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1105  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1106  | --exec=* | --exe=* | --ex=*)
1107    exec_prefix=$ac_optarg ;;
1108
1109  -gas | --gas | --ga | --g)
1110    # Obsolete; use --with-gas.
1111    with_gas=yes ;;
1112
1113  -help | --help | --hel | --he | -h)
1114    ac_init_help=long ;;
1115  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1116    ac_init_help=recursive ;;
1117  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1118    ac_init_help=short ;;
1119
1120  -host | --host | --hos | --ho)
1121    ac_prev=host_alias ;;
1122  -host=* | --host=* | --hos=* | --ho=*)
1123    host_alias=$ac_optarg ;;
1124
1125  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1126    ac_prev=htmldir ;;
1127  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1128  | --ht=*)
1129    htmldir=$ac_optarg ;;
1130
1131  -includedir | --includedir | --includedi | --included | --include \
1132  | --includ | --inclu | --incl | --inc)
1133    ac_prev=includedir ;;
1134  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1135  | --includ=* | --inclu=* | --incl=* | --inc=*)
1136    includedir=$ac_optarg ;;
1137
1138  -infodir | --infodir | --infodi | --infod | --info | --inf)
1139    ac_prev=infodir ;;
1140  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1141    infodir=$ac_optarg ;;
1142
1143  -libdir | --libdir | --libdi | --libd)
1144    ac_prev=libdir ;;
1145  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1146    libdir=$ac_optarg ;;
1147
1148  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1149  | --libexe | --libex | --libe)
1150    ac_prev=libexecdir ;;
1151  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1152  | --libexe=* | --libex=* | --libe=*)
1153    libexecdir=$ac_optarg ;;
1154
1155  -localedir | --localedir | --localedi | --localed | --locale)
1156    ac_prev=localedir ;;
1157  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1158    localedir=$ac_optarg ;;
1159
1160  -localstatedir | --localstatedir | --localstatedi | --localstated \
1161  | --localstate | --localstat | --localsta | --localst | --locals)
1162    ac_prev=localstatedir ;;
1163  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1164  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1165    localstatedir=$ac_optarg ;;
1166
1167  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1168    ac_prev=mandir ;;
1169  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1170    mandir=$ac_optarg ;;
1171
1172  -nfp | --nfp | --nf)
1173    # Obsolete; use --without-fp.
1174    with_fp=no ;;
1175
1176  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1177  | --no-cr | --no-c | -n)
1178    no_create=yes ;;
1179
1180  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1181  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1182    no_recursion=yes ;;
1183
1184  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1185  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1186  | --oldin | --oldi | --old | --ol | --o)
1187    ac_prev=oldincludedir ;;
1188  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1189  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1190  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1191    oldincludedir=$ac_optarg ;;
1192
1193  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1194    ac_prev=prefix ;;
1195  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1196    prefix=$ac_optarg ;;
1197
1198  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1199  | --program-pre | --program-pr | --program-p)
1200    ac_prev=program_prefix ;;
1201  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1202  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1203    program_prefix=$ac_optarg ;;
1204
1205  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1206  | --program-suf | --program-su | --program-s)
1207    ac_prev=program_suffix ;;
1208  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1209  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1210    program_suffix=$ac_optarg ;;
1211
1212  -program-transform-name | --program-transform-name \
1213  | --program-transform-nam | --program-transform-na \
1214  | --program-transform-n | --program-transform- \
1215  | --program-transform | --program-transfor \
1216  | --program-transfo | --program-transf \
1217  | --program-trans | --program-tran \
1218  | --progr-tra | --program-tr | --program-t)
1219    ac_prev=program_transform_name ;;
1220  -program-transform-name=* | --program-transform-name=* \
1221  | --program-transform-nam=* | --program-transform-na=* \
1222  | --program-transform-n=* | --program-transform-=* \
1223  | --program-transform=* | --program-transfor=* \
1224  | --program-transfo=* | --program-transf=* \
1225  | --program-trans=* | --program-tran=* \
1226  | --progr-tra=* | --program-tr=* | --program-t=*)
1227    program_transform_name=$ac_optarg ;;
1228
1229  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1230    ac_prev=pdfdir ;;
1231  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1232    pdfdir=$ac_optarg ;;
1233
1234  -psdir | --psdir | --psdi | --psd | --ps)
1235    ac_prev=psdir ;;
1236  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1237    psdir=$ac_optarg ;;
1238
1239  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1240  | -silent | --silent | --silen | --sile | --sil)
1241    silent=yes ;;
1242
1243  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1244    ac_prev=sbindir ;;
1245  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1246  | --sbi=* | --sb=*)
1247    sbindir=$ac_optarg ;;
1248
1249  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1250  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1251  | --sharedst | --shareds | --shared | --share | --shar \
1252  | --sha | --sh)
1253    ac_prev=sharedstatedir ;;
1254  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1255  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1256  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1257  | --sha=* | --sh=*)
1258    sharedstatedir=$ac_optarg ;;
1259
1260  -site | --site | --sit)
1261    ac_prev=site ;;
1262  -site=* | --site=* | --sit=*)
1263    site=$ac_optarg ;;
1264
1265  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1266    ac_prev=srcdir ;;
1267  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1268    srcdir=$ac_optarg ;;
1269
1270  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1271  | --syscon | --sysco | --sysc | --sys | --sy)
1272    ac_prev=sysconfdir ;;
1273  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1274  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1275    sysconfdir=$ac_optarg ;;
1276
1277  -target | --target | --targe | --targ | --tar | --ta | --t)
1278    ac_prev=target_alias ;;
1279  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1280    target_alias=$ac_optarg ;;
1281
1282  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1283    verbose=yes ;;
1284
1285  -version | --version | --versio | --versi | --vers | -V)
1286    ac_init_version=: ;;
1287
1288  -with-* | --with-*)
1289    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1290    # Reject names that are not valid shell variable names.
1291    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1292      as_fn_error $? "invalid package name: $ac_useropt"
1293    ac_useropt_orig=$ac_useropt
1294    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1295    case $ac_user_opts in
1296      *"
1297"with_$ac_useropt"
1298"*) ;;
1299      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1300	 ac_unrecognized_sep=', ';;
1301    esac
1302    eval with_$ac_useropt=\$ac_optarg ;;
1303
1304  -without-* | --without-*)
1305    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1306    # Reject names that are not valid shell variable names.
1307    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1308      as_fn_error $? "invalid package name: $ac_useropt"
1309    ac_useropt_orig=$ac_useropt
1310    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1311    case $ac_user_opts in
1312      *"
1313"with_$ac_useropt"
1314"*) ;;
1315      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1316	 ac_unrecognized_sep=', ';;
1317    esac
1318    eval with_$ac_useropt=no ;;
1319
1320  --x)
1321    # Obsolete; use --with-x.
1322    with_x=yes ;;
1323
1324  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1325  | --x-incl | --x-inc | --x-in | --x-i)
1326    ac_prev=x_includes ;;
1327  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1328  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1329    x_includes=$ac_optarg ;;
1330
1331  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1332  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1333    ac_prev=x_libraries ;;
1334  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1335  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1336    x_libraries=$ac_optarg ;;
1337
1338  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1339Try \`$0 --help' for more information"
1340    ;;
1341
1342  *=*)
1343    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1344    # Reject names that are not valid shell variable names.
1345    case $ac_envvar in #(
1346      '' | [0-9]* | *[!_$as_cr_alnum]* )
1347      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1348    esac
1349    eval $ac_envvar=\$ac_optarg
1350    export $ac_envvar ;;
1351
1352  *)
1353    # FIXME: should be removed in autoconf 3.0.
1354    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1355    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1356      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1357    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1358    ;;
1359
1360  esac
1361done
1362
1363if test -n "$ac_prev"; then
1364  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1365  as_fn_error $? "missing argument to $ac_option"
1366fi
1367
1368if test -n "$ac_unrecognized_opts"; then
1369  case $enable_option_checking in
1370    no) ;;
1371    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1372    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1373  esac
1374fi
1375
1376# Check all directory arguments for consistency.
1377for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1378		datadir sysconfdir sharedstatedir localstatedir includedir \
1379		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1380		libdir localedir mandir
1381do
1382  eval ac_val=\$$ac_var
1383  # Remove trailing slashes.
1384  case $ac_val in
1385    */ )
1386      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1387      eval $ac_var=\$ac_val;;
1388  esac
1389  # Be sure to have absolute directory names.
1390  case $ac_val in
1391    [\\/$]* | ?:[\\/]* )  continue;;
1392    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1393  esac
1394  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1395done
1396
1397# There might be people who depend on the old broken behavior: `$host'
1398# used to hold the argument of --host etc.
1399# FIXME: To remove some day.
1400build=$build_alias
1401host=$host_alias
1402target=$target_alias
1403
1404# FIXME: To remove some day.
1405if test "x$host_alias" != x; then
1406  if test "x$build_alias" = x; then
1407    cross_compiling=maybe
1408  elif test "x$build_alias" != "x$host_alias"; then
1409    cross_compiling=yes
1410  fi
1411fi
1412
1413ac_tool_prefix=
1414test -n "$host_alias" && ac_tool_prefix=$host_alias-
1415
1416test "$silent" = yes && exec 6>/dev/null
1417
1418
1419ac_pwd=`pwd` && test -n "$ac_pwd" &&
1420ac_ls_di=`ls -di .` &&
1421ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1422  as_fn_error $? "working directory cannot be determined"
1423test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1424  as_fn_error $? "pwd does not report name of working directory"
1425
1426
1427# Find the source files, if location was not specified.
1428if test -z "$srcdir"; then
1429  ac_srcdir_defaulted=yes
1430  # Try the directory containing this script, then the parent directory.
1431  ac_confdir=`$as_dirname -- "$as_myself" ||
1432$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1433	 X"$as_myself" : 'X\(//\)[^/]' \| \
1434	 X"$as_myself" : 'X\(//\)$' \| \
1435	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1436$as_echo X"$as_myself" |
1437    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1438	    s//\1/
1439	    q
1440	  }
1441	  /^X\(\/\/\)[^/].*/{
1442	    s//\1/
1443	    q
1444	  }
1445	  /^X\(\/\/\)$/{
1446	    s//\1/
1447	    q
1448	  }
1449	  /^X\(\/\).*/{
1450	    s//\1/
1451	    q
1452	  }
1453	  s/.*/./; q'`
1454  srcdir=$ac_confdir
1455  if test ! -r "$srcdir/$ac_unique_file"; then
1456    srcdir=..
1457  fi
1458else
1459  ac_srcdir_defaulted=no
1460fi
1461if test ! -r "$srcdir/$ac_unique_file"; then
1462  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1463  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1464fi
1465ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1466ac_abs_confdir=`(
1467	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1468	pwd)`
1469# When building in place, set srcdir=.
1470if test "$ac_abs_confdir" = "$ac_pwd"; then
1471  srcdir=.
1472fi
1473# Remove unnecessary trailing slashes from srcdir.
1474# Double slashes in file names in object file debugging info
1475# mess up M-x gdb in Emacs.
1476case $srcdir in
1477*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1478esac
1479for ac_var in $ac_precious_vars; do
1480  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1481  eval ac_env_${ac_var}_value=\$${ac_var}
1482  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1483  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1484done
1485
1486#
1487# Report the --help message.
1488#
1489if test "$ac_init_help" = "long"; then
1490  # Omit some internal or obsolete options to make the list less imposing.
1491  # This message is too long to be a string in the A/UX 3.1 sh.
1492  cat <<_ACEOF
1493\`configure' configures this package to adapt to many kinds of systems.
1494
1495Usage: $0 [OPTION]... [VAR=VALUE]...
1496
1497To assign environment variables (e.g., CC, CFLAGS...), specify them as
1498VAR=VALUE.  See below for descriptions of some of the useful variables.
1499
1500Defaults for the options are specified in brackets.
1501
1502Configuration:
1503  -h, --help              display this help and exit
1504      --help=short        display options specific to this package
1505      --help=recursive    display the short help of all the included packages
1506  -V, --version           display version information and exit
1507  -q, --quiet, --silent   do not print \`checking ...' messages
1508      --cache-file=FILE   cache test results in FILE [disabled]
1509  -C, --config-cache      alias for \`--cache-file=config.cache'
1510  -n, --no-create         do not create output files
1511      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1512
1513Installation directories:
1514  --prefix=PREFIX         install architecture-independent files in PREFIX
1515                          [$ac_default_prefix]
1516  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1517                          [PREFIX]
1518
1519By default, \`make install' will install all the files in
1520\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1521an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1522for instance \`--prefix=\$HOME'.
1523
1524For better control, use the options below.
1525
1526Fine tuning of the installation directories:
1527  --bindir=DIR            user executables [EPREFIX/bin]
1528  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1529  --libexecdir=DIR        program executables [EPREFIX/libexec]
1530  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1531  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1532  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1533  --libdir=DIR            object code libraries [EPREFIX/lib]
1534  --includedir=DIR        C header files [PREFIX/include]
1535  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1536  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1537  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1538  --infodir=DIR           info documentation [DATAROOTDIR/info]
1539  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1540  --mandir=DIR            man documentation [DATAROOTDIR/man]
1541  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1542  --htmldir=DIR           html documentation [DOCDIR]
1543  --dvidir=DIR            dvi documentation [DOCDIR]
1544  --pdfdir=DIR            pdf documentation [DOCDIR]
1545  --psdir=DIR             ps documentation [DOCDIR]
1546_ACEOF
1547
1548  cat <<\_ACEOF
1549
1550System types:
1551  --build=BUILD     configure for building on BUILD [guessed]
1552  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1553  --target=TARGET   configure for building compilers for TARGET [HOST]
1554_ACEOF
1555fi
1556
1557if test -n "$ac_init_help"; then
1558
1559  cat <<\_ACEOF
1560
1561Optional Features:
1562  --disable-option-checking  ignore unrecognized --enable/--with options
1563  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1564  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1565  --enable-layout=LAYOUT
1566  --enable-experimental-libtool Use experimental custom libtool
1567  --enable-shared[=PKGS]  build shared libraries [default=yes]
1568  --enable-static[=PKGS]  build static libraries [default=yes]
1569  --enable-fast-install[=PKGS]
1570                          optimize for fast installation [default=yes]
1571  --disable-libtool-lock  avoid locking (might break parallel builds)
1572  --enable-debug          Turn on debugging and compile time warnings
1573  --enable-maintainer-mode  Turn on debugging and compile time warnings
1574  --enable-profile        Turn on profiling for the build (GCC)
1575  --enable-pool-debug[=yes|no|verbose|verbose-alloc|lifetime|owner|all]    Turn on pools debugging
1576  --enable-malloc-debug   Switch on malloc_debug for BeOS
1577  --disable-lfs           Disable large file support on 32-bit platforms
1578  --enable-nonportable-atomics  Use optimized atomic code which may produce nonportable binaries
1579  --enable-threads        Enable threading support in APR.
1580  --enable-posix-shm      Use POSIX shared memory (shm_open) if available
1581  --enable-allocator-uses-mmap    Use mmap in apr_allocator instead of malloc
1582  --enable-allocator-guard-pages  Use guard pages in apr_allocator
1583                                  (implies --enable-allocator-uses-mmap)
1584  --enable-pool-concurrency-check Check for concurrent usage of memory pools
1585  --disable-dso           Disable DSO support
1586  --enable-other-child    Enable reliable child processes
1587  --disable-ipv6          Disable IPv6 support in APR.
1588  --disable-timedlocks	  Disable timed locks
1589
1590Optional Packages:
1591  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1592  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1593  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1594                          both]
1595  --with-aix-soname=aix|svr4|both
1596                          shared library versioning (aka "SONAME") variant to
1597                          provide on AIX, [default=aix].
1598  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1599  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1600                          compiler's sysroot if not specified).
1601  --with-installbuilddir=DIR location to store APR build files
1602  --without-libtool       avoid using libtool to link the library
1603  --with-efence[=DIR]     path to Electric Fence installation
1604  --with-valgrind[=DIR]   Enable code to teach valgrind about apr pools
1605                          (optionally: set path to valgrind headers)
1606  --with-sendfile         Override decision to use sendfile
1607  --with-egd[=DIR]        use EGD-compatible socket
1608  --with-devrandom[=DEV]  use /dev/random or compatible [searches by default]
1609
1610Some influential environment variables:
1611  CC          C compiler command
1612  CFLAGS      C compiler flags
1613  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1614              nonstandard directory <lib dir>
1615  LIBS        libraries to pass to the linker, e.g. -l<library>
1616  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1617              you have headers in a nonstandard directory <include dir>
1618  CPP         C preprocessor
1619  LT_SYS_LIBRARY_PATH
1620              User-defined run-time library search path.
1621
1622Use these variables to override the choices made by `configure' or to help
1623it to find libraries and programs with nonstandard names/locations.
1624
1625Report bugs to the package provider.
1626_ACEOF
1627ac_status=$?
1628fi
1629
1630if test "$ac_init_help" = "recursive"; then
1631  # If there are subdirs, report their specific --help.
1632  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1633    test -d "$ac_dir" ||
1634      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1635      continue
1636    ac_builddir=.
1637
1638case "$ac_dir" in
1639.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1640*)
1641  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1642  # A ".." for each directory in $ac_dir_suffix.
1643  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1644  case $ac_top_builddir_sub in
1645  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1646  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1647  esac ;;
1648esac
1649ac_abs_top_builddir=$ac_pwd
1650ac_abs_builddir=$ac_pwd$ac_dir_suffix
1651# for backward compatibility:
1652ac_top_builddir=$ac_top_build_prefix
1653
1654case $srcdir in
1655  .)  # We are building in place.
1656    ac_srcdir=.
1657    ac_top_srcdir=$ac_top_builddir_sub
1658    ac_abs_top_srcdir=$ac_pwd ;;
1659  [\\/]* | ?:[\\/]* )  # Absolute name.
1660    ac_srcdir=$srcdir$ac_dir_suffix;
1661    ac_top_srcdir=$srcdir
1662    ac_abs_top_srcdir=$srcdir ;;
1663  *) # Relative name.
1664    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1665    ac_top_srcdir=$ac_top_build_prefix$srcdir
1666    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1667esac
1668ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1669
1670    cd "$ac_dir" || { ac_status=$?; continue; }
1671    # Check for guested configure.
1672    if test -f "$ac_srcdir/configure.gnu"; then
1673      echo &&
1674      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1675    elif test -f "$ac_srcdir/configure"; then
1676      echo &&
1677      $SHELL "$ac_srcdir/configure" --help=recursive
1678    else
1679      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1680    fi || ac_status=$?
1681    cd "$ac_pwd" || { ac_status=$?; break; }
1682  done
1683fi
1684
1685test -n "$ac_init_help" && exit $ac_status
1686if $ac_init_version; then
1687  cat <<\_ACEOF
1688configure
1689generated by GNU Autoconf 2.69
1690
1691Copyright (C) 2012 Free Software Foundation, Inc.
1692This configure script is free software; the Free Software Foundation
1693gives unlimited permission to copy, distribute and modify it.
1694_ACEOF
1695  exit
1696fi
1697
1698## ------------------------ ##
1699## Autoconf initialization. ##
1700## ------------------------ ##
1701
1702# ac_fn_c_try_compile LINENO
1703# --------------------------
1704# Try to compile conftest.$ac_ext, and return whether this succeeded.
1705ac_fn_c_try_compile ()
1706{
1707  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708  rm -f conftest.$ac_objext
1709  if { { ac_try="$ac_compile"
1710case "(($ac_try" in
1711  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712  *) ac_try_echo=$ac_try;;
1713esac
1714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715$as_echo "$ac_try_echo"; } >&5
1716  (eval "$ac_compile") 2>conftest.err
1717  ac_status=$?
1718  if test -s conftest.err; then
1719    grep -v '^ *+' conftest.err >conftest.er1
1720    cat conftest.er1 >&5
1721    mv -f conftest.er1 conftest.err
1722  fi
1723  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724  test $ac_status = 0; } && {
1725	 test -z "$ac_c_werror_flag" ||
1726	 test ! -s conftest.err
1727       } && test -s conftest.$ac_objext; then :
1728  ac_retval=0
1729else
1730  $as_echo "$as_me: failed program was:" >&5
1731sed 's/^/| /' conftest.$ac_ext >&5
1732
1733	ac_retval=1
1734fi
1735  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736  as_fn_set_status $ac_retval
1737
1738} # ac_fn_c_try_compile
1739
1740# ac_fn_c_try_cpp LINENO
1741# ----------------------
1742# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1743ac_fn_c_try_cpp ()
1744{
1745  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746  if { { ac_try="$ac_cpp conftest.$ac_ext"
1747case "(($ac_try" in
1748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749  *) ac_try_echo=$ac_try;;
1750esac
1751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752$as_echo "$ac_try_echo"; } >&5
1753  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1754  ac_status=$?
1755  if test -s conftest.err; then
1756    grep -v '^ *+' conftest.err >conftest.er1
1757    cat conftest.er1 >&5
1758    mv -f conftest.er1 conftest.err
1759  fi
1760  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761  test $ac_status = 0; } > conftest.i && {
1762	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1763	 test ! -s conftest.err
1764       }; then :
1765  ac_retval=0
1766else
1767  $as_echo "$as_me: failed program was:" >&5
1768sed 's/^/| /' conftest.$ac_ext >&5
1769
1770    ac_retval=1
1771fi
1772  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773  as_fn_set_status $ac_retval
1774
1775} # ac_fn_c_try_cpp
1776
1777# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1778# -------------------------------------------------------
1779# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1780# the include files in INCLUDES and setting the cache variable VAR
1781# accordingly.
1782ac_fn_c_check_header_mongrel ()
1783{
1784  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785  if eval \${$3+:} false; then :
1786  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787$as_echo_n "checking for $2... " >&6; }
1788if eval \${$3+:} false; then :
1789  $as_echo_n "(cached) " >&6
1790fi
1791eval ac_res=\$$3
1792	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793$as_echo "$ac_res" >&6; }
1794else
1795  # Is the header compilable?
1796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1797$as_echo_n "checking $2 usability... " >&6; }
1798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799/* end confdefs.h.  */
1800$4
1801#include <$2>
1802_ACEOF
1803if ac_fn_c_try_compile "$LINENO"; then :
1804  ac_header_compiler=yes
1805else
1806  ac_header_compiler=no
1807fi
1808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1810$as_echo "$ac_header_compiler" >&6; }
1811
1812# Is the header present?
1813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1814$as_echo_n "checking $2 presence... " >&6; }
1815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816/* end confdefs.h.  */
1817#include <$2>
1818_ACEOF
1819if ac_fn_c_try_cpp "$LINENO"; then :
1820  ac_header_preproc=yes
1821else
1822  ac_header_preproc=no
1823fi
1824rm -f conftest.err conftest.i conftest.$ac_ext
1825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1826$as_echo "$ac_header_preproc" >&6; }
1827
1828# So?  What about this header?
1829case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1830  yes:no: )
1831    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1832$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1833    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1834$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1835    ;;
1836  no:yes:* )
1837    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1838$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1839    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1840$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1841    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1842$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1843    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1844$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1845    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1846$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1847    ;;
1848esac
1849  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850$as_echo_n "checking for $2... " >&6; }
1851if eval \${$3+:} false; then :
1852  $as_echo_n "(cached) " >&6
1853else
1854  eval "$3=\$ac_header_compiler"
1855fi
1856eval ac_res=\$$3
1857	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858$as_echo "$ac_res" >&6; }
1859fi
1860  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861
1862} # ac_fn_c_check_header_mongrel
1863
1864# ac_fn_c_try_run LINENO
1865# ----------------------
1866# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1867# that executables *can* be run.
1868ac_fn_c_try_run ()
1869{
1870  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871  if { { ac_try="$ac_link"
1872case "(($ac_try" in
1873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874  *) ac_try_echo=$ac_try;;
1875esac
1876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877$as_echo "$ac_try_echo"; } >&5
1878  (eval "$ac_link") 2>&5
1879  ac_status=$?
1880  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1882  { { case "(($ac_try" in
1883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884  *) ac_try_echo=$ac_try;;
1885esac
1886eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887$as_echo "$ac_try_echo"; } >&5
1888  (eval "$ac_try") 2>&5
1889  ac_status=$?
1890  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1891  test $ac_status = 0; }; }; then :
1892  ac_retval=0
1893else
1894  $as_echo "$as_me: program exited with status $ac_status" >&5
1895       $as_echo "$as_me: failed program was:" >&5
1896sed 's/^/| /' conftest.$ac_ext >&5
1897
1898       ac_retval=$ac_status
1899fi
1900  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1901  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902  as_fn_set_status $ac_retval
1903
1904} # ac_fn_c_try_run
1905
1906# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1907# -------------------------------------------------------
1908# Tests whether HEADER exists and can be compiled using the include files in
1909# INCLUDES, setting the cache variable VAR accordingly.
1910ac_fn_c_check_header_compile ()
1911{
1912  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914$as_echo_n "checking for $2... " >&6; }
1915if eval \${$3+:} false; then :
1916  $as_echo_n "(cached) " >&6
1917else
1918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919/* end confdefs.h.  */
1920$4
1921#include <$2>
1922_ACEOF
1923if ac_fn_c_try_compile "$LINENO"; then :
1924  eval "$3=yes"
1925else
1926  eval "$3=no"
1927fi
1928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1929fi
1930eval ac_res=\$$3
1931	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932$as_echo "$ac_res" >&6; }
1933  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934
1935} # ac_fn_c_check_header_compile
1936
1937# ac_fn_c_try_link LINENO
1938# -----------------------
1939# Try to link conftest.$ac_ext, and return whether this succeeded.
1940ac_fn_c_try_link ()
1941{
1942  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943  rm -f conftest.$ac_objext conftest$ac_exeext
1944  if { { ac_try="$ac_link"
1945case "(($ac_try" in
1946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1947  *) ac_try_echo=$ac_try;;
1948esac
1949eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1950$as_echo "$ac_try_echo"; } >&5
1951  (eval "$ac_link") 2>conftest.err
1952  ac_status=$?
1953  if test -s conftest.err; then
1954    grep -v '^ *+' conftest.err >conftest.er1
1955    cat conftest.er1 >&5
1956    mv -f conftest.er1 conftest.err
1957  fi
1958  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959  test $ac_status = 0; } && {
1960	 test -z "$ac_c_werror_flag" ||
1961	 test ! -s conftest.err
1962       } && test -s conftest$ac_exeext && {
1963	 test "$cross_compiling" = yes ||
1964	 test -x conftest$ac_exeext
1965       }; then :
1966  ac_retval=0
1967else
1968  $as_echo "$as_me: failed program was:" >&5
1969sed 's/^/| /' conftest.$ac_ext >&5
1970
1971	ac_retval=1
1972fi
1973  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1974  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1975  # interfere with the next link command; also delete a directory that is
1976  # left behind by Apple's compiler.  We do this before executing the actions.
1977  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1978  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979  as_fn_set_status $ac_retval
1980
1981} # ac_fn_c_try_link
1982
1983# ac_fn_c_check_func LINENO FUNC VAR
1984# ----------------------------------
1985# Tests whether FUNC exists, setting the cache variable VAR accordingly
1986ac_fn_c_check_func ()
1987{
1988  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1989  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1990$as_echo_n "checking for $2... " >&6; }
1991if eval \${$3+:} false; then :
1992  $as_echo_n "(cached) " >&6
1993else
1994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995/* end confdefs.h.  */
1996/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1997   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1998#define $2 innocuous_$2
1999
2000/* System header to define __stub macros and hopefully few prototypes,
2001    which can conflict with char $2 (); below.
2002    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2003    <limits.h> exists even on freestanding compilers.  */
2004
2005#ifdef __STDC__
2006# include <limits.h>
2007#else
2008# include <assert.h>
2009#endif
2010
2011#undef $2
2012
2013/* Override any GCC internal prototype to avoid an error.
2014   Use char because int might match the return type of a GCC
2015   builtin and then its argument prototype would still apply.  */
2016#ifdef __cplusplus
2017extern "C"
2018#endif
2019char $2 ();
2020/* The GNU C library defines this for functions which it implements
2021    to always fail with ENOSYS.  Some functions are actually named
2022    something starting with __ and the normal name is an alias.  */
2023#if defined __stub_$2 || defined __stub___$2
2024choke me
2025#endif
2026
2027int
2028main ()
2029{
2030return $2 ();
2031  ;
2032  return 0;
2033}
2034_ACEOF
2035if ac_fn_c_try_link "$LINENO"; then :
2036  eval "$3=yes"
2037else
2038  eval "$3=no"
2039fi
2040rm -f core conftest.err conftest.$ac_objext \
2041    conftest$ac_exeext conftest.$ac_ext
2042fi
2043eval ac_res=\$$3
2044	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2045$as_echo "$ac_res" >&6; }
2046  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2047
2048} # ac_fn_c_check_func
2049
2050# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2051# -------------------------------------------
2052# Tests whether TYPE exists after having included INCLUDES, setting cache
2053# variable VAR accordingly.
2054ac_fn_c_check_type ()
2055{
2056  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2057  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2058$as_echo_n "checking for $2... " >&6; }
2059if eval \${$3+:} false; then :
2060  $as_echo_n "(cached) " >&6
2061else
2062  eval "$3=no"
2063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064/* end confdefs.h.  */
2065$4
2066int
2067main ()
2068{
2069if (sizeof ($2))
2070	 return 0;
2071  ;
2072  return 0;
2073}
2074_ACEOF
2075if ac_fn_c_try_compile "$LINENO"; then :
2076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077/* end confdefs.h.  */
2078$4
2079int
2080main ()
2081{
2082if (sizeof (($2)))
2083	    return 0;
2084  ;
2085  return 0;
2086}
2087_ACEOF
2088if ac_fn_c_try_compile "$LINENO"; then :
2089
2090else
2091  eval "$3=yes"
2092fi
2093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2094fi
2095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096fi
2097eval ac_res=\$$3
2098	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2099$as_echo "$ac_res" >&6; }
2100  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2101
2102} # ac_fn_c_check_type
2103
2104# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2105# --------------------------------------------
2106# Tries to find the compile-time value of EXPR in a program that includes
2107# INCLUDES, setting VAR accordingly. Returns whether the value could be
2108# computed
2109ac_fn_c_compute_int ()
2110{
2111  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2112  if test "$cross_compiling" = yes; then
2113    # Depending upon the size, compute the lo and hi bounds.
2114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115/* end confdefs.h.  */
2116$4
2117int
2118main ()
2119{
2120static int test_array [1 - 2 * !(($2) >= 0)];
2121test_array [0] = 0;
2122return test_array [0];
2123
2124  ;
2125  return 0;
2126}
2127_ACEOF
2128if ac_fn_c_try_compile "$LINENO"; then :
2129  ac_lo=0 ac_mid=0
2130  while :; do
2131    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132/* end confdefs.h.  */
2133$4
2134int
2135main ()
2136{
2137static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2138test_array [0] = 0;
2139return test_array [0];
2140
2141  ;
2142  return 0;
2143}
2144_ACEOF
2145if ac_fn_c_try_compile "$LINENO"; then :
2146  ac_hi=$ac_mid; break
2147else
2148  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2149			if test $ac_lo -le $ac_mid; then
2150			  ac_lo= ac_hi=
2151			  break
2152			fi
2153			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2154fi
2155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2156  done
2157else
2158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159/* end confdefs.h.  */
2160$4
2161int
2162main ()
2163{
2164static int test_array [1 - 2 * !(($2) < 0)];
2165test_array [0] = 0;
2166return test_array [0];
2167
2168  ;
2169  return 0;
2170}
2171_ACEOF
2172if ac_fn_c_try_compile "$LINENO"; then :
2173  ac_hi=-1 ac_mid=-1
2174  while :; do
2175    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176/* end confdefs.h.  */
2177$4
2178int
2179main ()
2180{
2181static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2182test_array [0] = 0;
2183return test_array [0];
2184
2185  ;
2186  return 0;
2187}
2188_ACEOF
2189if ac_fn_c_try_compile "$LINENO"; then :
2190  ac_lo=$ac_mid; break
2191else
2192  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2193			if test $ac_mid -le $ac_hi; then
2194			  ac_lo= ac_hi=
2195			  break
2196			fi
2197			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2198fi
2199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2200  done
2201else
2202  ac_lo= ac_hi=
2203fi
2204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205fi
2206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2207# Binary search between lo and hi bounds.
2208while test "x$ac_lo" != "x$ac_hi"; do
2209  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2211/* end confdefs.h.  */
2212$4
2213int
2214main ()
2215{
2216static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2217test_array [0] = 0;
2218return test_array [0];
2219
2220  ;
2221  return 0;
2222}
2223_ACEOF
2224if ac_fn_c_try_compile "$LINENO"; then :
2225  ac_hi=$ac_mid
2226else
2227  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2228fi
2229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2230done
2231case $ac_lo in #((
2232?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2233'') ac_retval=1 ;;
2234esac
2235  else
2236    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237/* end confdefs.h.  */
2238$4
2239static long int longval () { return $2; }
2240static unsigned long int ulongval () { return $2; }
2241#include <stdio.h>
2242#include <stdlib.h>
2243int
2244main ()
2245{
2246
2247  FILE *f = fopen ("conftest.val", "w");
2248  if (! f)
2249    return 1;
2250  if (($2) < 0)
2251    {
2252      long int i = longval ();
2253      if (i != ($2))
2254	return 1;
2255      fprintf (f, "%ld", i);
2256    }
2257  else
2258    {
2259      unsigned long int i = ulongval ();
2260      if (i != ($2))
2261	return 1;
2262      fprintf (f, "%lu", i);
2263    }
2264  /* Do not output a trailing newline, as this causes \r\n confusion
2265     on some platforms.  */
2266  return ferror (f) || fclose (f) != 0;
2267
2268  ;
2269  return 0;
2270}
2271_ACEOF
2272if ac_fn_c_try_run "$LINENO"; then :
2273  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2274else
2275  ac_retval=1
2276fi
2277rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2278  conftest.$ac_objext conftest.beam conftest.$ac_ext
2279rm -f conftest.val
2280
2281  fi
2282  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2283  as_fn_set_status $ac_retval
2284
2285} # ac_fn_c_compute_int
2286
2287# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2288# ---------------------------------------------
2289# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2290# accordingly.
2291ac_fn_c_check_decl ()
2292{
2293  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2294  as_decl_name=`echo $2|sed 's/ *(.*//'`
2295  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2296  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2297$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2298if eval \${$3+:} false; then :
2299  $as_echo_n "(cached) " >&6
2300else
2301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302/* end confdefs.h.  */
2303$4
2304int
2305main ()
2306{
2307#ifndef $as_decl_name
2308#ifdef __cplusplus
2309  (void) $as_decl_use;
2310#else
2311  (void) $as_decl_name;
2312#endif
2313#endif
2314
2315  ;
2316  return 0;
2317}
2318_ACEOF
2319if ac_fn_c_try_compile "$LINENO"; then :
2320  eval "$3=yes"
2321else
2322  eval "$3=no"
2323fi
2324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2325fi
2326eval ac_res=\$$3
2327	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2328$as_echo "$ac_res" >&6; }
2329  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2330
2331} # ac_fn_c_check_decl
2332
2333# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2334# ----------------------------------------------------
2335# Tries to find if the field MEMBER exists in type AGGR, after including
2336# INCLUDES, setting cache variable VAR accordingly.
2337ac_fn_c_check_member ()
2338{
2339  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2340  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2341$as_echo_n "checking for $2.$3... " >&6; }
2342if eval \${$4+:} false; then :
2343  $as_echo_n "(cached) " >&6
2344else
2345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346/* end confdefs.h.  */
2347$5
2348int
2349main ()
2350{
2351static $2 ac_aggr;
2352if (ac_aggr.$3)
2353return 0;
2354  ;
2355  return 0;
2356}
2357_ACEOF
2358if ac_fn_c_try_compile "$LINENO"; then :
2359  eval "$4=yes"
2360else
2361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2362/* end confdefs.h.  */
2363$5
2364int
2365main ()
2366{
2367static $2 ac_aggr;
2368if (sizeof ac_aggr.$3)
2369return 0;
2370  ;
2371  return 0;
2372}
2373_ACEOF
2374if ac_fn_c_try_compile "$LINENO"; then :
2375  eval "$4=yes"
2376else
2377  eval "$4=no"
2378fi
2379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2380fi
2381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2382fi
2383eval ac_res=\$$4
2384	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2385$as_echo "$ac_res" >&6; }
2386  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2387
2388} # ac_fn_c_check_member
2389cat >config.log <<_ACEOF
2390This file contains any messages produced by compilers while
2391running configure, to aid debugging if configure makes a mistake.
2392
2393It was created by $as_me, which was
2394generated by GNU Autoconf 2.69.  Invocation command line was
2395
2396  $ $0 $@
2397
2398_ACEOF
2399exec 5>>config.log
2400{
2401cat <<_ASUNAME
2402## --------- ##
2403## Platform. ##
2404## --------- ##
2405
2406hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2407uname -m = `(uname -m) 2>/dev/null || echo unknown`
2408uname -r = `(uname -r) 2>/dev/null || echo unknown`
2409uname -s = `(uname -s) 2>/dev/null || echo unknown`
2410uname -v = `(uname -v) 2>/dev/null || echo unknown`
2411
2412/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2413/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2414
2415/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2416/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2417/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2418/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2419/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2420/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2421/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2422
2423_ASUNAME
2424
2425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426for as_dir in $PATH
2427do
2428  IFS=$as_save_IFS
2429  test -z "$as_dir" && as_dir=.
2430    $as_echo "PATH: $as_dir"
2431  done
2432IFS=$as_save_IFS
2433
2434} >&5
2435
2436cat >&5 <<_ACEOF
2437
2438
2439## ----------- ##
2440## Core tests. ##
2441## ----------- ##
2442
2443_ACEOF
2444
2445
2446# Keep a trace of the command line.
2447# Strip out --no-create and --no-recursion so they do not pile up.
2448# Strip out --silent because we don't want to record it for future runs.
2449# Also quote any args containing shell meta-characters.
2450# Make two passes to allow for proper duplicate-argument suppression.
2451ac_configure_args=
2452ac_configure_args0=
2453ac_configure_args1=
2454ac_must_keep_next=false
2455for ac_pass in 1 2
2456do
2457  for ac_arg
2458  do
2459    case $ac_arg in
2460    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2461    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2462    | -silent | --silent | --silen | --sile | --sil)
2463      continue ;;
2464    *\'*)
2465      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2466    esac
2467    case $ac_pass in
2468    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2469    2)
2470      as_fn_append ac_configure_args1 " '$ac_arg'"
2471      if test $ac_must_keep_next = true; then
2472	ac_must_keep_next=false # Got value, back to normal.
2473      else
2474	case $ac_arg in
2475	  *=* | --config-cache | -C | -disable-* | --disable-* \
2476	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2477	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2478	  | -with-* | --with-* | -without-* | --without-* | --x)
2479	    case "$ac_configure_args0 " in
2480	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2481	    esac
2482	    ;;
2483	  -* ) ac_must_keep_next=true ;;
2484	esac
2485      fi
2486      as_fn_append ac_configure_args " '$ac_arg'"
2487      ;;
2488    esac
2489  done
2490done
2491{ ac_configure_args0=; unset ac_configure_args0;}
2492{ ac_configure_args1=; unset ac_configure_args1;}
2493
2494# When interrupted or exit'd, cleanup temporary files, and complete
2495# config.log.  We remove comments because anyway the quotes in there
2496# would cause problems or look ugly.
2497# WARNING: Use '\'' to represent an apostrophe within the trap.
2498# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2499trap 'exit_status=$?
2500  # Save into config.log some information that might help in debugging.
2501  {
2502    echo
2503
2504    $as_echo "## ---------------- ##
2505## Cache variables. ##
2506## ---------------- ##"
2507    echo
2508    # The following way of writing the cache mishandles newlines in values,
2509(
2510  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2511    eval ac_val=\$$ac_var
2512    case $ac_val in #(
2513    *${as_nl}*)
2514      case $ac_var in #(
2515      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2516$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2517      esac
2518      case $ac_var in #(
2519      _ | IFS | as_nl) ;; #(
2520      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2521      *) { eval $ac_var=; unset $ac_var;} ;;
2522      esac ;;
2523    esac
2524  done
2525  (set) 2>&1 |
2526    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2527    *${as_nl}ac_space=\ *)
2528      sed -n \
2529	"s/'\''/'\''\\\\'\'''\''/g;
2530	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2531      ;; #(
2532    *)
2533      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2534      ;;
2535    esac |
2536    sort
2537)
2538    echo
2539
2540    $as_echo "## ----------------- ##
2541## Output variables. ##
2542## ----------------- ##"
2543    echo
2544    for ac_var in $ac_subst_vars
2545    do
2546      eval ac_val=\$$ac_var
2547      case $ac_val in
2548      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2549      esac
2550      $as_echo "$ac_var='\''$ac_val'\''"
2551    done | sort
2552    echo
2553
2554    if test -n "$ac_subst_files"; then
2555      $as_echo "## ------------------- ##
2556## File substitutions. ##
2557## ------------------- ##"
2558      echo
2559      for ac_var in $ac_subst_files
2560      do
2561	eval ac_val=\$$ac_var
2562	case $ac_val in
2563	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2564	esac
2565	$as_echo "$ac_var='\''$ac_val'\''"
2566      done | sort
2567      echo
2568    fi
2569
2570    if test -s confdefs.h; then
2571      $as_echo "## ----------- ##
2572## confdefs.h. ##
2573## ----------- ##"
2574      echo
2575      cat confdefs.h
2576      echo
2577    fi
2578    test "$ac_signal" != 0 &&
2579      $as_echo "$as_me: caught signal $ac_signal"
2580    $as_echo "$as_me: exit $exit_status"
2581  } >&5
2582  rm -f core *.core core.conftest.* &&
2583    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2584    exit $exit_status
2585' 0
2586for ac_signal in 1 2 13 15; do
2587  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2588done
2589ac_signal=0
2590
2591# confdefs.h avoids OS command line length limits that DEFS can exceed.
2592rm -f -r conftest* confdefs.h
2593
2594$as_echo "/* confdefs.h */" > confdefs.h
2595
2596# Predefined preprocessor variables.
2597
2598cat >>confdefs.h <<_ACEOF
2599#define PACKAGE_NAME "$PACKAGE_NAME"
2600_ACEOF
2601
2602cat >>confdefs.h <<_ACEOF
2603#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2604_ACEOF
2605
2606cat >>confdefs.h <<_ACEOF
2607#define PACKAGE_VERSION "$PACKAGE_VERSION"
2608_ACEOF
2609
2610cat >>confdefs.h <<_ACEOF
2611#define PACKAGE_STRING "$PACKAGE_STRING"
2612_ACEOF
2613
2614cat >>confdefs.h <<_ACEOF
2615#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2616_ACEOF
2617
2618cat >>confdefs.h <<_ACEOF
2619#define PACKAGE_URL "$PACKAGE_URL"
2620_ACEOF
2621
2622
2623# Let the site file select an alternate cache file if it wants to.
2624# Prefer an explicitly selected file to automatically selected ones.
2625ac_site_file1=NONE
2626ac_site_file2=NONE
2627if test -n "$CONFIG_SITE"; then
2628  # We do not want a PATH search for config.site.
2629  case $CONFIG_SITE in #((
2630    -*)  ac_site_file1=./$CONFIG_SITE;;
2631    */*) ac_site_file1=$CONFIG_SITE;;
2632    *)   ac_site_file1=./$CONFIG_SITE;;
2633  esac
2634elif test "x$prefix" != xNONE; then
2635  ac_site_file1=$prefix/share/config.site
2636  ac_site_file2=$prefix/etc/config.site
2637else
2638  ac_site_file1=$ac_default_prefix/share/config.site
2639  ac_site_file2=$ac_default_prefix/etc/config.site
2640fi
2641for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2642do
2643  test "x$ac_site_file" = xNONE && continue
2644  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2645    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2646$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2647    sed 's/^/| /' "$ac_site_file" >&5
2648    . "$ac_site_file" \
2649      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2650$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2651as_fn_error $? "failed to load site script $ac_site_file
2652See \`config.log' for more details" "$LINENO" 5; }
2653  fi
2654done
2655
2656if test -r "$cache_file"; then
2657  # Some versions of bash will fail to source /dev/null (special files
2658  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2659  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2660    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2661$as_echo "$as_me: loading cache $cache_file" >&6;}
2662    case $cache_file in
2663      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2664      *)                      . "./$cache_file";;
2665    esac
2666  fi
2667else
2668  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2669$as_echo "$as_me: creating cache $cache_file" >&6;}
2670  >$cache_file
2671fi
2672
2673# Check that the precious variables saved in the cache have kept the same
2674# value.
2675ac_cache_corrupted=false
2676for ac_var in $ac_precious_vars; do
2677  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2678  eval ac_new_set=\$ac_env_${ac_var}_set
2679  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2680  eval ac_new_val=\$ac_env_${ac_var}_value
2681  case $ac_old_set,$ac_new_set in
2682    set,)
2683      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2684$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2685      ac_cache_corrupted=: ;;
2686    ,set)
2687      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2688$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2689      ac_cache_corrupted=: ;;
2690    ,);;
2691    *)
2692      if test "x$ac_old_val" != "x$ac_new_val"; then
2693	# differences in whitespace do not lead to failure.
2694	ac_old_val_w=`echo x $ac_old_val`
2695	ac_new_val_w=`echo x $ac_new_val`
2696	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2697	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2698$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2699	  ac_cache_corrupted=:
2700	else
2701	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2702$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2703	  eval $ac_var=\$ac_old_val
2704	fi
2705	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2706$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2707	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2708$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2709      fi;;
2710  esac
2711  # Pass precious variables to config.status.
2712  if test "$ac_new_set" = set; then
2713    case $ac_new_val in
2714    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2715    *) ac_arg=$ac_var=$ac_new_val ;;
2716    esac
2717    case " $ac_configure_args " in
2718      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2719      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2720    esac
2721  fi
2722done
2723if $ac_cache_corrupted; then
2724  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2725$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2726  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2727$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2728  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2729fi
2730## -------------------- ##
2731## Main body of script. ##
2732## -------------------- ##
2733
2734ac_ext=c
2735ac_cpp='$CPP $CPPFLAGS'
2736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2738ac_compiler_gnu=$ac_cv_c_compiler_gnu
2739
2740
2741ac_config_headers="$ac_config_headers include/arch/unix/apr_private.h"
2742
2743ac_aux_dir=
2744for ac_dir in build "$srcdir"/build; do
2745  if test -f "$ac_dir/install-sh"; then
2746    ac_aux_dir=$ac_dir
2747    ac_install_sh="$ac_aux_dir/install-sh -c"
2748    break
2749  elif test -f "$ac_dir/install.sh"; then
2750    ac_aux_dir=$ac_dir
2751    ac_install_sh="$ac_aux_dir/install.sh -c"
2752    break
2753  elif test -f "$ac_dir/shtool"; then
2754    ac_aux_dir=$ac_dir
2755    ac_install_sh="$ac_aux_dir/shtool install -c"
2756    break
2757  fi
2758done
2759if test -z "$ac_aux_dir"; then
2760  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2761fi
2762
2763# These three variables are undocumented and unsupported,
2764# and are intended to be withdrawn in a future Autoconf release.
2765# They can cause serious problems if a builder's source tree is in a directory
2766# whose full name contains unusual characters.
2767ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2768ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2769ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2932#
2933#   Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc.
2934#   Written by Gordon Matzigkeit, 1996
2935#
2936# This file is free software; the Free Software Foundation gives
2937# unlimited permission to copy and/or distribute it, with or without
2938# modifications, as long as this notice is preserved.
2939
2940
2941
2942# serial 58 LT_INIT
2943
2944
2945# LT_PREREQ(VERSION)
2946# ------------------
2947# Complain and exit if this libtool version is less that VERSION.
2948
2949
2950
2951# _LT_CHECK_BUILDDIR
2952# ------------------
2953# Complain if the absolute build directory name contains unusual characters
2954
2955
2956
2957# LT_INIT([OPTIONS])
2958# ------------------
2959# LT_INIT
2960
2961# Old names:
2962# This is what autoupdate's m4 run will expand.  It fires
2963# the warning (with _au_warn_XXX), outputs it into the
2964# updated configure.ac (with AC_DIAGNOSE), and then outputs
2965# the replacement expansion.
2966
2967
2968# This is an auxiliary macro that is also run when
2969# autoupdate runs m4.  It simply calls m4_warning, but
2970# we need a wrapper so that each warning is emitted only
2971# once.  We break the quoting in m4_warning's argument in
2972# order to expand this macro's arguments, not AU_DEFUN's.
2973
2974
2975# Finally, this is the expansion that is picked up by
2976# autoconf.  It tells the user to run autoupdate, and
2977# then outputs the replacement expansion.  We do not care
2978# about autoupdate's warning because that contains
2979# information on what to do *after* running autoupdate.
2980
2981# This is what autoupdate's m4 run will expand.  It fires
2982# the warning (with _au_warn_XXX), outputs it into the
2983# updated configure.ac (with AC_DIAGNOSE), and then outputs
2984# the replacement expansion.
2985
2986
2987# This is an auxiliary macro that is also run when
2988# autoupdate runs m4.  It simply calls m4_warning, but
2989# we need a wrapper so that each warning is emitted only
2990# once.  We break the quoting in m4_warning's argument in
2991# order to expand this macro's arguments, not AU_DEFUN's.
2992
2993
2994# Finally, this is the expansion that is picked up by
2995# autoconf.  It tells the user to run autoupdate, and
2996# then outputs the replacement expansion.  We do not care
2997# about autoupdate's warning because that contains
2998# information on what to do *after* running autoupdate.
2999
3000
3001
3002# _LT_PREPARE_CC_BASENAME
3003# -----------------------
3004# _LT_PREPARE_CC_BASENAME
3005
3006
3007# _LT_CC_BASENAME(CC)
3008# -------------------
3009# It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME,
3010# but that macro is also expanded into generated libtool script, which
3011# arranges for $SED and $ECHO to be set by different means.
3012
3013
3014
3015# _LT_FILEUTILS_DEFAULTS
3016# ----------------------
3017# It is okay to use these file commands and assume they have been set
3018# sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'.
3019# _LT_FILEUTILS_DEFAULTS
3020
3021
3022# _LT_SETUP
3023# ---------
3024# _LT_SETUP
3025
3026
3027# _LT_PREPARE_SED_QUOTE_VARS
3028# --------------------------
3029# Define a few sed substitution that help us do robust quoting.
3030
3031
3032# _LT_PROG_LTMAIN
3033# ---------------
3034# Note that this code is called both from 'configure', and 'config.status'
3035# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
3036# 'config.status' has no value for ac_aux_dir unless we are using Automake,
3037# so we pass a copy along to make sure it has a sensible value anyway.
3038# _LT_PROG_LTMAIN
3039
3040
3041## ------------------------------------- ##
3042## Accumulate code for creating libtool. ##
3043## ------------------------------------- ##
3044
3045# So that we can recreate a full libtool script including additional
3046# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
3047# in macros and then make a single call at the end using the 'libtool'
3048# label.
3049
3050
3051# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
3052# ----------------------------------------
3053# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
3054
3055
3056# Initialize.
3057
3058
3059
3060# _LT_CONFIG_LIBTOOL([COMMANDS])
3061# ------------------------------
3062# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
3063
3064
3065# Initialize.
3066
3067
3068
3069# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
3070# -----------------------------------------------------
3071
3072
3073
3074# _LT_FORMAT_COMMENT([COMMENT])
3075# -----------------------------
3076# Add leading comment marks to the start of each line, and a trailing
3077# full-stop to the whole comment if one is not present already.
3078
3079
3080
3081
3082## ------------------------ ##
3083## FIXME: Eliminate VARNAME ##
3084## ------------------------ ##
3085
3086
3087# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
3088# -------------------------------------------------------------------
3089# CONFIGNAME is the name given to the value in the libtool script.
3090# VARNAME is the (base) name used in the configure script.
3091# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
3092# VARNAME.  Any other value will be used directly.
3093
3094
3095
3096# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
3097# --------------------------------------------------------
3098
3099
3100
3101# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
3102# ------------------------------------------------
3103
3104
3105
3106# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
3107# ---------------------------------------------------------
3108
3109
3110
3111# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
3112# --------------------------------------------------
3113
3114
3115
3116# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
3117# ---------------------------------------------------
3118
3119
3120
3121# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
3122# ---------------------------------------------------
3123
3124
3125
3126
3127# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
3128# ------------------------------------------------
3129
3130
3131
3132
3133# _LT_CONFIG_STATUS_DECLARE([VARNAME])
3134# ------------------------------------
3135# Quote a variable value, and forward it to 'config.status' so that its
3136# declaration there will have the same value as in 'configure'.  VARNAME
3137# must have a single quote delimited value for this to work.
3138
3139
3140
3141# _LT_CONFIG_STATUS_DECLARATIONS
3142# ------------------------------
3143# We delimit libtool config variables with single quotes, so when
3144# we write them to config.status, we have to be sure to quote all
3145# embedded single quotes properly.  In configure, this macro expands
3146# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
3147#
3148#    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
3149
3150
3151
3152# _LT_LIBTOOL_TAGS
3153# ----------------
3154# Output comment and list of tags supported by the script
3155
3156
3157
3158# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
3159# -----------------------------------
3160# Extract the dictionary values for VARNAME (optionally with TAG) and
3161# expand to a commented shell variable setting:
3162#
3163#    # Some comment about what VAR is for.
3164#    visible_name=$lt_internal_name
3165
3166
3167
3168# _LT_LIBTOOL_CONFIG_VARS
3169# -----------------------
3170# Produce commented declarations of non-tagged libtool config variables
3171# suitable for insertion in the LIBTOOL CONFIG section of the 'libtool'
3172# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
3173# section) are produced by _LT_LIBTOOL_TAG_VARS.
3174
3175
3176
3177# _LT_LIBTOOL_TAG_VARS(TAG)
3178# -------------------------
3179
3180
3181
3182# _LT_TAGVAR(VARNAME, [TAGNAME])
3183# ------------------------------
3184
3185
3186
3187# _LT_CONFIG_COMMANDS
3188# -------------------
3189# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
3190# variables for single and double quote escaping we saved from calls
3191# to _LT_DECL, we can put quote escaped variables declarations
3192# into 'config.status', and then the shell code to quote escape them in
3193# for loops in 'config.status'.  Finally, any additional code accumulated
3194# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
3195#_LT_CONFIG_COMMANDS
3196
3197
3198# Initialize.
3199
3200
3201# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
3202# ------------------------------------
3203# Generate a child script FILE with all initialization necessary to
3204# reuse the environment learned by the parent script, and make the
3205# file executable.  If COMMENT is supplied, it is inserted after the
3206# '#!' sequence but before initialization text begins.  After this
3207# macro, additional text can be appended to FILE to form the body of
3208# the child script.  The macro ends with non-zero status if the
3209# file could not be fully written (such as if the disk is full).
3210# _LT_GENERATED_FILE_INIT
3211
3212# LT_OUTPUT
3213# ---------
3214# This macro allows early generation of the libtool script (before
3215# AC_OUTPUT is called), incase it is used in configure for compilation
3216# tests.
3217# LT_OUTPUT
3218
3219
3220# _LT_CONFIG(TAG)
3221# ---------------
3222# If TAG is the built-in tag, create an initial libtool script with a
3223# default configuration from the untagged config vars.  Otherwise add code
3224# to config.status for appending the configuration named by TAG from the
3225# matching tagged config vars.
3226# _LT_CONFIG
3227
3228
3229# LT_SUPPORTED_TAG(TAG)
3230# ---------------------
3231# Trace this macro to discover what tags are supported by the libtool
3232# --tag option, using:
3233#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
3234
3235
3236
3237# C support is built-in for now
3238
3239
3240
3241
3242# LT_LANG(LANG)
3243# -------------
3244# Enable libtool support for the given language if not already enabled.
3245# LT_LANG
3246
3247
3248# _LT_LANG(LANGNAME)
3249# ------------------
3250# _LT_LANG
3251
3252
3253#m4_ifndef
3254
3255
3256# _LT_LANG_DEFAULT_CONFIG
3257# -----------------------
3258# _LT_LANG_DEFAULT_CONFIG
3259
3260# Obsolete macros:
3261# This is what autoupdate's m4 run will expand.  It fires
3262# the warning (with _au_warn_XXX), outputs it into the
3263# updated configure.ac (with AC_DIAGNOSE), and then outputs
3264# the replacement expansion.
3265
3266
3267# This is an auxiliary macro that is also run when
3268# autoupdate runs m4.  It simply calls m4_warning, but
3269# we need a wrapper so that each warning is emitted only
3270# once.  We break the quoting in m4_warning's argument in
3271# order to expand this macro's arguments, not AU_DEFUN's.
3272
3273
3274# Finally, this is the expansion that is picked up by
3275# autoconf.  It tells the user to run autoupdate, and
3276# then outputs the replacement expansion.  We do not care
3277# about autoupdate's warning because that contains
3278# information on what to do *after* running autoupdate.
3279
3280# This is what autoupdate's m4 run will expand.  It fires
3281# the warning (with _au_warn_XXX), outputs it into the
3282# updated configure.ac (with AC_DIAGNOSE), and then outputs
3283# the replacement expansion.
3284
3285
3286# This is an auxiliary macro that is also run when
3287# autoupdate runs m4.  It simply calls m4_warning, but
3288# we need a wrapper so that each warning is emitted only
3289# once.  We break the quoting in m4_warning's argument in
3290# order to expand this macro's arguments, not AU_DEFUN's.
3291
3292
3293# Finally, this is the expansion that is picked up by
3294# autoconf.  It tells the user to run autoupdate, and
3295# then outputs the replacement expansion.  We do not care
3296# about autoupdate's warning because that contains
3297# information on what to do *after* running autoupdate.
3298
3299# This is what autoupdate's m4 run will expand.  It fires
3300# the warning (with _au_warn_XXX), outputs it into the
3301# updated configure.ac (with AC_DIAGNOSE), and then outputs
3302# the replacement expansion.
3303
3304
3305# This is an auxiliary macro that is also run when
3306# autoupdate runs m4.  It simply calls m4_warning, but
3307# we need a wrapper so that each warning is emitted only
3308# once.  We break the quoting in m4_warning's argument in
3309# order to expand this macro's arguments, not AU_DEFUN's.
3310
3311
3312# Finally, this is the expansion that is picked up by
3313# autoconf.  It tells the user to run autoupdate, and
3314# then outputs the replacement expansion.  We do not care
3315# about autoupdate's warning because that contains
3316# information on what to do *after* running autoupdate.
3317
3318# This is what autoupdate's m4 run will expand.  It fires
3319# the warning (with _au_warn_XXX), outputs it into the
3320# updated configure.ac (with AC_DIAGNOSE), and then outputs
3321# the replacement expansion.
3322
3323
3324# This is an auxiliary macro that is also run when
3325# autoupdate runs m4.  It simply calls m4_warning, but
3326# we need a wrapper so that each warning is emitted only
3327# once.  We break the quoting in m4_warning's argument in
3328# order to expand this macro's arguments, not AU_DEFUN's.
3329
3330
3331# Finally, this is the expansion that is picked up by
3332# autoconf.  It tells the user to run autoupdate, and
3333# then outputs the replacement expansion.  We do not care
3334# about autoupdate's warning because that contains
3335# information on what to do *after* running autoupdate.
3336
3337# This is what autoupdate's m4 run will expand.  It fires
3338# the warning (with _au_warn_XXX), outputs it into the
3339# updated configure.ac (with AC_DIAGNOSE), and then outputs
3340# the replacement expansion.
3341
3342
3343# This is an auxiliary macro that is also run when
3344# autoupdate runs m4.  It simply calls m4_warning, but
3345# we need a wrapper so that each warning is emitted only
3346# once.  We break the quoting in m4_warning's argument in
3347# order to expand this macro's arguments, not AU_DEFUN's.
3348
3349
3350# Finally, this is the expansion that is picked up by
3351# autoconf.  It tells the user to run autoupdate, and
3352# then outputs the replacement expansion.  We do not care
3353# about autoupdate's warning because that contains
3354# information on what to do *after* running autoupdate.
3355
3356
3357
3358# _LT_TAG_COMPILER
3359# ----------------
3360# _LT_TAG_COMPILER
3361
3362
3363# _LT_COMPILER_BOILERPLATE
3364# ------------------------
3365# Check for compiler boilerplate output or warnings with
3366# the simple compiler test code.
3367# _LT_COMPILER_BOILERPLATE
3368
3369
3370# _LT_LINKER_BOILERPLATE
3371# ----------------------
3372# Check for linker boilerplate output or warnings with
3373# the simple link test code.
3374# _LT_LINKER_BOILERPLATE
3375
3376# _LT_REQUIRED_DARWIN_CHECKS
3377# -------------------------
3378
3379
3380
3381# _LT_DARWIN_LINKER_FEATURES([TAG])
3382# ---------------------------------
3383# Checks for linker and compiler features on darwin
3384
3385
3386# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
3387# ----------------------------------
3388# Links a minimal program and checks the executable
3389# for the system default hardcoded library path. In most cases,
3390# this is /usr/lib:/lib, but when the MPI compilers are used
3391# the location of the communication and MPI libs are included too.
3392# If we don't find anything, use the default library path according
3393# to the aix ld manual.
3394# Store the results from the different compilers for each TAGNAME.
3395# Allow to override them for all tags through lt_cv_aix_libpath.
3396# _LT_SYS_MODULE_PATH_AIX
3397
3398
3399# _LT_SHELL_INIT(ARG)
3400# -------------------
3401# _LT_SHELL_INIT
3402
3403
3404
3405# _LT_PROG_ECHO_BACKSLASH
3406# -----------------------
3407# Find how we can fake an echo command that does not interpret backslash.
3408# In particular, with Autoconf 2.60 or later we add some code to the start
3409# of the generated configure script that will find a shell with a builtin
3410# printf (that we can use as an echo command).
3411# _LT_PROG_ECHO_BACKSLASH
3412
3413
3414# _LT_WITH_SYSROOT
3415# ----------------
3416
3417
3418# _LT_ENABLE_LOCK
3419# ---------------
3420# _LT_ENABLE_LOCK
3421
3422
3423# _LT_PROG_AR
3424# -----------
3425# _LT_PROG_AR
3426
3427
3428# _LT_CMD_OLD_ARCHIVE
3429# -------------------
3430# _LT_CMD_OLD_ARCHIVE
3431
3432
3433# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3434#		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
3435# ----------------------------------------------------------------
3436# Check whether the given compiler option works
3437# _LT_COMPILER_OPTION
3438
3439# Old name:
3440# This is what autoupdate's m4 run will expand.  It fires
3441# the warning (with _au_warn_XXX), outputs it into the
3442# updated configure.ac (with AC_DIAGNOSE), and then outputs
3443# the replacement expansion.
3444
3445
3446# This is an auxiliary macro that is also run when
3447# autoupdate runs m4.  It simply calls m4_warning, but
3448# we need a wrapper so that each warning is emitted only
3449# once.  We break the quoting in m4_warning's argument in
3450# order to expand this macro's arguments, not AU_DEFUN's.
3451
3452
3453# Finally, this is the expansion that is picked up by
3454# autoconf.  It tells the user to run autoupdate, and
3455# then outputs the replacement expansion.  We do not care
3456# about autoupdate's warning because that contains
3457# information on what to do *after* running autoupdate.
3458
3459
3460
3461# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3462#                  [ACTION-SUCCESS], [ACTION-FAILURE])
3463# ----------------------------------------------------
3464# Check whether the given linker option works
3465# _LT_LINKER_OPTION
3466
3467# Old name:
3468# This is what autoupdate's m4 run will expand.  It fires
3469# the warning (with _au_warn_XXX), outputs it into the
3470# updated configure.ac (with AC_DIAGNOSE), and then outputs
3471# the replacement expansion.
3472
3473
3474# This is an auxiliary macro that is also run when
3475# autoupdate runs m4.  It simply calls m4_warning, but
3476# we need a wrapper so that each warning is emitted only
3477# once.  We break the quoting in m4_warning's argument in
3478# order to expand this macro's arguments, not AU_DEFUN's.
3479
3480
3481# Finally, this is the expansion that is picked up by
3482# autoconf.  It tells the user to run autoupdate, and
3483# then outputs the replacement expansion.  We do not care
3484# about autoupdate's warning because that contains
3485# information on what to do *after* running autoupdate.
3486
3487
3488
3489# LT_CMD_MAX_LEN
3490#---------------
3491# LT_CMD_MAX_LEN
3492
3493# Old name:
3494# This is what autoupdate's m4 run will expand.  It fires
3495# the warning (with _au_warn_XXX), outputs it into the
3496# updated configure.ac (with AC_DIAGNOSE), and then outputs
3497# the replacement expansion.
3498
3499
3500# This is an auxiliary macro that is also run when
3501# autoupdate runs m4.  It simply calls m4_warning, but
3502# we need a wrapper so that each warning is emitted only
3503# once.  We break the quoting in m4_warning's argument in
3504# order to expand this macro's arguments, not AU_DEFUN's.
3505
3506
3507# Finally, this is the expansion that is picked up by
3508# autoconf.  It tells the user to run autoupdate, and
3509# then outputs the replacement expansion.  We do not care
3510# about autoupdate's warning because that contains
3511# information on what to do *after* running autoupdate.
3512
3513
3514
3515# _LT_HEADER_DLFCN
3516# ----------------
3517# _LT_HEADER_DLFCN
3518
3519
3520# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3521#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3522# ----------------------------------------------------------------
3523# _LT_TRY_DLOPEN_SELF
3524
3525
3526# LT_SYS_DLOPEN_SELF
3527# ------------------
3528# LT_SYS_DLOPEN_SELF
3529
3530# Old name:
3531# This is what autoupdate's m4 run will expand.  It fires
3532# the warning (with _au_warn_XXX), outputs it into the
3533# updated configure.ac (with AC_DIAGNOSE), and then outputs
3534# the replacement expansion.
3535
3536
3537# This is an auxiliary macro that is also run when
3538# autoupdate runs m4.  It simply calls m4_warning, but
3539# we need a wrapper so that each warning is emitted only
3540# once.  We break the quoting in m4_warning's argument in
3541# order to expand this macro's arguments, not AU_DEFUN's.
3542
3543
3544# Finally, this is the expansion that is picked up by
3545# autoconf.  It tells the user to run autoupdate, and
3546# then outputs the replacement expansion.  We do not care
3547# about autoupdate's warning because that contains
3548# information on what to do *after* running autoupdate.
3549
3550
3551
3552# _LT_COMPILER_C_O([TAGNAME])
3553# ---------------------------
3554# Check to see if options -c and -o are simultaneously supported by compiler.
3555# This macro does not hard code the compiler like AC_PROG_CC_C_O.
3556# _LT_COMPILER_C_O
3557
3558
3559# _LT_COMPILER_FILE_LOCKS([TAGNAME])
3560# ----------------------------------
3561# Check to see if we can do hard links to lock some files if needed
3562# _LT_COMPILER_FILE_LOCKS
3563
3564
3565# _LT_CHECK_OBJDIR
3566# ----------------
3567# _LT_CHECK_OBJDIR
3568
3569
3570# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
3571# --------------------------------------
3572# Check hardcoding attributes.
3573# _LT_LINKER_HARDCODE_LIBPATH
3574
3575
3576# _LT_CMD_STRIPLIB
3577# ----------------
3578# _LT_CMD_STRIPLIB
3579
3580
3581# _LT_PREPARE_MUNGE_PATH_LIST
3582# ---------------------------
3583# Make sure func_munge_path_list() is defined correctly.
3584# _LT_PREPARE_PATH_LIST
3585
3586
3587# _LT_SYS_DYNAMIC_LINKER([TAG])
3588# -----------------------------
3589# PORTME Fill in your ld.so characteristics
3590# _LT_SYS_DYNAMIC_LINKER
3591
3592
3593# _LT_PATH_TOOL_PREFIX(TOOL)
3594# --------------------------
3595# find a file program that can recognize shared library
3596# _LT_PATH_TOOL_PREFIX
3597
3598# Old name:
3599# This is what autoupdate's m4 run will expand.  It fires
3600# the warning (with _au_warn_XXX), outputs it into the
3601# updated configure.ac (with AC_DIAGNOSE), and then outputs
3602# the replacement expansion.
3603
3604
3605# This is an auxiliary macro that is also run when
3606# autoupdate runs m4.  It simply calls m4_warning, but
3607# we need a wrapper so that each warning is emitted only
3608# once.  We break the quoting in m4_warning's argument in
3609# order to expand this macro's arguments, not AU_DEFUN's.
3610
3611
3612# Finally, this is the expansion that is picked up by
3613# autoconf.  It tells the user to run autoupdate, and
3614# then outputs the replacement expansion.  We do not care
3615# about autoupdate's warning because that contains
3616# information on what to do *after* running autoupdate.
3617
3618
3619
3620# _LT_PATH_MAGIC
3621# --------------
3622# find a file program that can recognize a shared library
3623# _LT_PATH_MAGIC
3624
3625
3626# LT_PATH_LD
3627# ----------
3628# find the pathname to the GNU or non-GNU linker
3629# LT_PATH_LD
3630
3631# Old names:
3632# This is what autoupdate's m4 run will expand.  It fires
3633# the warning (with _au_warn_XXX), outputs it into the
3634# updated configure.ac (with AC_DIAGNOSE), and then outputs
3635# the replacement expansion.
3636
3637
3638# This is an auxiliary macro that is also run when
3639# autoupdate runs m4.  It simply calls m4_warning, but
3640# we need a wrapper so that each warning is emitted only
3641# once.  We break the quoting in m4_warning's argument in
3642# order to expand this macro's arguments, not AU_DEFUN's.
3643
3644
3645# Finally, this is the expansion that is picked up by
3646# autoconf.  It tells the user to run autoupdate, and
3647# then outputs the replacement expansion.  We do not care
3648# about autoupdate's warning because that contains
3649# information on what to do *after* running autoupdate.
3650
3651# This is what autoupdate's m4 run will expand.  It fires
3652# the warning (with _au_warn_XXX), outputs it into the
3653# updated configure.ac (with AC_DIAGNOSE), and then outputs
3654# the replacement expansion.
3655
3656
3657# This is an auxiliary macro that is also run when
3658# autoupdate runs m4.  It simply calls m4_warning, but
3659# we need a wrapper so that each warning is emitted only
3660# once.  We break the quoting in m4_warning's argument in
3661# order to expand this macro's arguments, not AU_DEFUN's.
3662
3663
3664# Finally, this is the expansion that is picked up by
3665# autoconf.  It tells the user to run autoupdate, and
3666# then outputs the replacement expansion.  We do not care
3667# about autoupdate's warning because that contains
3668# information on what to do *after* running autoupdate.
3669
3670
3671
3672# _LT_PATH_LD_GNU
3673#- --------------
3674# _LT_PATH_LD_GNU
3675
3676
3677# _LT_CMD_RELOAD
3678# --------------
3679# find reload flag for linker
3680#   -- PORTME Some linkers may need a different reload flag.
3681# _LT_CMD_RELOAD
3682
3683
3684# _LT_PATH_DD
3685# -----------
3686# find a working dd
3687# _LT_PATH_DD
3688
3689
3690# _LT_CMD_TRUNCATE
3691# ----------------
3692# find command to truncate a binary pipe
3693# _LT_CMD_TRUNCATE
3694
3695
3696# _LT_CHECK_MAGIC_METHOD
3697# ----------------------
3698# how to check for library dependencies
3699#  -- PORTME fill in with the dynamic library characteristics
3700# _LT_CHECK_MAGIC_METHOD
3701
3702
3703# LT_PATH_NM
3704# ----------
3705# find the pathname to a BSD- or MS-compatible name lister
3706# LT_PATH_NM
3707
3708# Old names:
3709# This is what autoupdate's m4 run will expand.  It fires
3710# the warning (with _au_warn_XXX), outputs it into the
3711# updated configure.ac (with AC_DIAGNOSE), and then outputs
3712# the replacement expansion.
3713
3714
3715# This is an auxiliary macro that is also run when
3716# autoupdate runs m4.  It simply calls m4_warning, but
3717# we need a wrapper so that each warning is emitted only
3718# once.  We break the quoting in m4_warning's argument in
3719# order to expand this macro's arguments, not AU_DEFUN's.
3720
3721
3722# Finally, this is the expansion that is picked up by
3723# autoconf.  It tells the user to run autoupdate, and
3724# then outputs the replacement expansion.  We do not care
3725# about autoupdate's warning because that contains
3726# information on what to do *after* running autoupdate.
3727
3728# This is what autoupdate's m4 run will expand.  It fires
3729# the warning (with _au_warn_XXX), outputs it into the
3730# updated configure.ac (with AC_DIAGNOSE), and then outputs
3731# the replacement expansion.
3732
3733
3734# This is an auxiliary macro that is also run when
3735# autoupdate runs m4.  It simply calls m4_warning, but
3736# we need a wrapper so that each warning is emitted only
3737# once.  We break the quoting in m4_warning's argument in
3738# order to expand this macro's arguments, not AU_DEFUN's.
3739
3740
3741# Finally, this is the expansion that is picked up by
3742# autoconf.  It tells the user to run autoupdate, and
3743# then outputs the replacement expansion.  We do not care
3744# about autoupdate's warning because that contains
3745# information on what to do *after* running autoupdate.
3746
3747
3748# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3749# --------------------------------
3750# how to determine the name of the shared library
3751# associated with a specific link library.
3752#  -- PORTME fill in with the dynamic library characteristics
3753# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3754
3755
3756# _LT_PATH_MANIFEST_TOOL
3757# ----------------------
3758# locate the manifest tool
3759# _LT_PATH_MANIFEST_TOOL
3760
3761
3762# _LT_DLL_DEF_P([FILE])
3763# ---------------------
3764# True iff FILE is a Windows DLL '.def' file.
3765# Keep in sync with func_dll_def_p in the libtool script
3766# _LT_DLL_DEF_P
3767
3768
3769# LT_LIB_M
3770# --------
3771# check for math library
3772# LT_LIB_M
3773
3774# Old name:
3775# This is what autoupdate's m4 run will expand.  It fires
3776# the warning (with _au_warn_XXX), outputs it into the
3777# updated configure.ac (with AC_DIAGNOSE), and then outputs
3778# the replacement expansion.
3779
3780
3781# This is an auxiliary macro that is also run when
3782# autoupdate runs m4.  It simply calls m4_warning, but
3783# we need a wrapper so that each warning is emitted only
3784# once.  We break the quoting in m4_warning's argument in
3785# order to expand this macro's arguments, not AU_DEFUN's.
3786
3787
3788# Finally, this is the expansion that is picked up by
3789# autoconf.  It tells the user to run autoupdate, and
3790# then outputs the replacement expansion.  We do not care
3791# about autoupdate's warning because that contains
3792# information on what to do *after* running autoupdate.
3793
3794
3795
3796# _LT_COMPILER_NO_RTTI([TAGNAME])
3797# -------------------------------
3798# _LT_COMPILER_NO_RTTI
3799
3800
3801# _LT_CMD_GLOBAL_SYMBOLS
3802# ----------------------
3803 # _LT_CMD_GLOBAL_SYMBOLS
3804
3805
3806# _LT_COMPILER_PIC([TAGNAME])
3807# ---------------------------
3808# _LT_COMPILER_PIC
3809
3810
3811# _LT_LINKER_SHLIBS([TAGNAME])
3812# ----------------------------
3813# See if the linker supports building shared libraries.
3814# _LT_LINKER_SHLIBS
3815
3816
3817# _LT_LANG_C_CONFIG([TAG])
3818# ------------------------
3819# Ensure that the configuration variables for a C compiler are suitably
3820# defined.  These variables are subsequently used by _LT_CONFIG to write
3821# the compiler configuration to 'libtool'.
3822# _LT_LANG_C_CONFIG
3823
3824
3825# _LT_LANG_CXX_CONFIG([TAG])
3826# --------------------------
3827# Ensure that the configuration variables for a C++ compiler are suitably
3828# defined.  These variables are subsequently used by _LT_CONFIG to write
3829# the compiler configuration to 'libtool'.
3830# _LT_LANG_CXX_CONFIG
3831
3832
3833# _LT_FUNC_STRIPNAME_CNF
3834# ----------------------
3835# func_stripname_cnf prefix suffix name
3836# strip PREFIX and SUFFIX off of NAME.
3837# PREFIX and SUFFIX must not contain globbing or regex special
3838# characters, hashes, percent signs, but SUFFIX may contain a leading
3839# dot (in which case that matches only a dot).
3840#
3841# This function is identical to the (non-XSI) version of func_stripname,
3842# except this one can be used by m4 code that may be executed by configure,
3843# rather than the libtool script.
3844# _LT_FUNC_STRIPNAME_CNF
3845
3846
3847# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
3848# ---------------------------------
3849# Figure out "hidden" library dependencies from verbose
3850# compiler output when linking a shared library.
3851# Parse the compiler output and extract the necessary
3852# objects, libraries and library flags.
3853# _LT_SYS_HIDDEN_LIBDEPS
3854
3855
3856# _LT_LANG_F77_CONFIG([TAG])
3857# --------------------------
3858# Ensure that the configuration variables for a Fortran 77 compiler are
3859# suitably defined.  These variables are subsequently used by _LT_CONFIG
3860# to write the compiler configuration to 'libtool'.
3861# _LT_LANG_F77_CONFIG
3862
3863
3864# _LT_LANG_FC_CONFIG([TAG])
3865# -------------------------
3866# Ensure that the configuration variables for a Fortran compiler are
3867# suitably defined.  These variables are subsequently used by _LT_CONFIG
3868# to write the compiler configuration to 'libtool'.
3869# _LT_LANG_FC_CONFIG
3870
3871
3872# _LT_LANG_GCJ_CONFIG([TAG])
3873# --------------------------
3874# Ensure that the configuration variables for the GNU Java Compiler compiler
3875# are suitably defined.  These variables are subsequently used by _LT_CONFIG
3876# to write the compiler configuration to 'libtool'.
3877# _LT_LANG_GCJ_CONFIG
3878
3879
3880# _LT_LANG_GO_CONFIG([TAG])
3881# --------------------------
3882# Ensure that the configuration variables for the GNU Go compiler
3883# are suitably defined.  These variables are subsequently used by _LT_CONFIG
3884# to write the compiler configuration to 'libtool'.
3885# _LT_LANG_GO_CONFIG
3886
3887
3888# _LT_LANG_RC_CONFIG([TAG])
3889# -------------------------
3890# Ensure that the configuration variables for the Windows resource compiler
3891# are suitably defined.  These variables are subsequently used by _LT_CONFIG
3892# to write the compiler configuration to 'libtool'.
3893# _LT_LANG_RC_CONFIG
3894
3895
3896# LT_PROG_GCJ
3897# -----------
3898
3899
3900# Old name:
3901# This is what autoupdate's m4 run will expand.  It fires
3902# the warning (with _au_warn_XXX), outputs it into the
3903# updated configure.ac (with AC_DIAGNOSE), and then outputs
3904# the replacement expansion.
3905
3906
3907# This is an auxiliary macro that is also run when
3908# autoupdate runs m4.  It simply calls m4_warning, but
3909# we need a wrapper so that each warning is emitted only
3910# once.  We break the quoting in m4_warning's argument in
3911# order to expand this macro's arguments, not AU_DEFUN's.
3912
3913
3914# Finally, this is the expansion that is picked up by
3915# autoconf.  It tells the user to run autoupdate, and
3916# then outputs the replacement expansion.  We do not care
3917# about autoupdate's warning because that contains
3918# information on what to do *after* running autoupdate.
3919
3920
3921
3922# LT_PROG_GO
3923# ----------
3924
3925
3926
3927# LT_PROG_RC
3928# ----------
3929
3930
3931# Old name:
3932# This is what autoupdate's m4 run will expand.  It fires
3933# the warning (with _au_warn_XXX), outputs it into the
3934# updated configure.ac (with AC_DIAGNOSE), and then outputs
3935# the replacement expansion.
3936
3937
3938# This is an auxiliary macro that is also run when
3939# autoupdate runs m4.  It simply calls m4_warning, but
3940# we need a wrapper so that each warning is emitted only
3941# once.  We break the quoting in m4_warning's argument in
3942# order to expand this macro's arguments, not AU_DEFUN's.
3943
3944
3945# Finally, this is the expansion that is picked up by
3946# autoconf.  It tells the user to run autoupdate, and
3947# then outputs the replacement expansion.  We do not care
3948# about autoupdate's warning because that contains
3949# information on what to do *after* running autoupdate.
3950
3951
3952
3953# _LT_DECL_EGREP
3954# --------------
3955# If we don't have a new enough Autoconf to choose the best grep
3956# available, choose the one first in the user's PATH.
3957
3958
3959
3960# _LT_DECL_OBJDUMP
3961# --------------
3962# If we don't have a new enough Autoconf to choose the best objdump
3963# available, choose the one first in the user's PATH.
3964
3965
3966# _LT_DECL_DLLTOOL
3967# ----------------
3968# Ensure DLLTOOL variable is set.
3969
3970
3971# _LT_DECL_SED
3972# ------------
3973# Check for a fully-functional sed program, that truncates
3974# as few characters as possible.  Prefer GNU sed if found.
3975# _LT_DECL_SED
3976
3977#m4_ifndef
3978
3979# Old name:
3980# This is what autoupdate's m4 run will expand.  It fires
3981# the warning (with _au_warn_XXX), outputs it into the
3982# updated configure.ac (with AC_DIAGNOSE), and then outputs
3983# the replacement expansion.
3984
3985
3986# This is an auxiliary macro that is also run when
3987# autoupdate runs m4.  It simply calls m4_warning, but
3988# we need a wrapper so that each warning is emitted only
3989# once.  We break the quoting in m4_warning's argument in
3990# order to expand this macro's arguments, not AU_DEFUN's.
3991
3992
3993# Finally, this is the expansion that is picked up by
3994# autoconf.  It tells the user to run autoupdate, and
3995# then outputs the replacement expansion.  We do not care
3996# about autoupdate's warning because that contains
3997# information on what to do *after* running autoupdate.
3998
3999
4000
4001# _LT_CHECK_SHELL_FEATURES
4002# ------------------------
4003# Find out whether the shell is Bourne or XSI compatible,
4004# or has some other useful features.
4005# _LT_CHECK_SHELL_FEATURES
4006
4007
4008# _LT_PATH_CONVERSION_FUNCTIONS
4009# -----------------------------
4010# Determine what file name conversion functions should be used by
4011# func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
4012# for certain cross-compile configurations and native mingw.
4013# _LT_PATH_CONVERSION_FUNCTIONS
4014
4015# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
4016#
4017# Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software
4018# Foundation, Inc.
4019# Written by Gary V. Vaughan, 2004
4020#
4021# This file is free software; the Free Software Foundation gives
4022# unlimited permission to copy and/or distribute it, with or without
4023# modifications, as long as this notice is preserved.
4024
4025# serial 6 ltsugar.m4
4026
4027# This is to help aclocal find these macros, as it can't see m4_define.
4028
4029
4030
4031# lt_join(SEP, ARG1, [ARG2...])
4032# -----------------------------
4033# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
4034# associated separator.
4035# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
4036# versions in m4sugar had bugs.
4037
4038
4039
4040
4041# lt_car(LIST)
4042# lt_cdr(LIST)
4043# ------------
4044# Manipulate m4 lists.
4045# These macros are necessary as long as will still need to support
4046# Autoconf-2.59, which quotes differently.
4047
4048
4049
4050
4051
4052# lt_append(MACRO-NAME, STRING, [SEPARATOR])
4053# ------------------------------------------
4054# Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'.
4055# Note that neither SEPARATOR nor STRING are expanded; they are appended
4056# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
4057# No SEPARATOR is output if MACRO-NAME was previously undefined (different
4058# than defined and empty).
4059#
4060# This macro is needed until we can rely on Autoconf 2.62, since earlier
4061# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
4062
4063
4064
4065
4066# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
4067# ----------------------------------------------------------
4068# Produce a SEP delimited list of all paired combinations of elements of
4069# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
4070# has the form PREFIXmINFIXSUFFIXn.
4071# Needed until we can rely on m4_combine added in Autoconf 2.62.
4072
4073
4074
4075# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
4076# -----------------------------------------------------------------------
4077# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
4078# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
4079
4080
4081
4082# lt_dict_add(DICT, KEY, VALUE)
4083# -----------------------------
4084
4085
4086
4087# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
4088# --------------------------------------------
4089
4090
4091
4092# lt_dict_fetch(DICT, KEY, [SUBKEY])
4093# ----------------------------------
4094
4095
4096
4097# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
4098# -----------------------------------------------------------------
4099
4100
4101
4102# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
4103# --------------------------------------------------------------
4104
4105
4106
4107# Helper functions for option handling.                    -*- Autoconf -*-
4108#
4109#   Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software
4110#   Foundation, Inc.
4111#   Written by Gary V. Vaughan, 2004
4112#
4113# This file is free software; the Free Software Foundation gives
4114# unlimited permission to copy and/or distribute it, with or without
4115# modifications, as long as this notice is preserved.
4116
4117# serial 8 ltoptions.m4
4118
4119# This is to help aclocal find these macros, as it can't see m4_define.
4120
4121
4122
4123# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
4124# ------------------------------------------
4125
4126
4127
4128# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
4129# ---------------------------------------
4130# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
4131# matching handler defined, dispatch to it.  Other OPTION-NAMEs are
4132# saved as a flag.
4133
4134
4135
4136# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
4137# ------------------------------------------------------------
4138# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
4139
4140
4141
4142# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
4143# -------------------------------------------------------
4144# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
4145# are set.
4146
4147
4148
4149# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
4150# ----------------------------------------
4151# OPTION-LIST is a space-separated list of Libtool options associated
4152# with MACRO-NAME.  If any OPTION has a matching handler declared with
4153# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
4154# the unknown option and exit.
4155# _LT_SET_OPTIONS
4156
4157
4158## --------------------------------- ##
4159## Macros to handle LT_INIT options. ##
4160## --------------------------------- ##
4161
4162# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
4163# -----------------------------------------
4164
4165
4166
4167# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
4168# -----------------------------------------------
4169# LT_OPTION_DEFINE
4170
4171
4172# dlopen
4173# ------
4174
4175
4176# This is what autoupdate's m4 run will expand.  It fires
4177# the warning (with _au_warn_XXX), outputs it into the
4178# updated configure.ac (with AC_DIAGNOSE), and then outputs
4179# the replacement expansion.
4180
4181
4182# This is an auxiliary macro that is also run when
4183# autoupdate runs m4.  It simply calls m4_warning, but
4184# we need a wrapper so that each warning is emitted only
4185# once.  We break the quoting in m4_warning's argument in
4186# order to expand this macro's arguments, not AU_DEFUN's.
4187
4188
4189# Finally, this is the expansion that is picked up by
4190# autoconf.  It tells the user to run autoupdate, and
4191# then outputs the replacement expansion.  We do not care
4192# about autoupdate's warning because that contains
4193# information on what to do *after* running autoupdate.
4194
4195
4196
4197
4198# win32-dll
4199# ---------
4200# Declare package support for building win32 dll's.
4201# win32-dll
4202
4203# This is what autoupdate's m4 run will expand.  It fires
4204# the warning (with _au_warn_XXX), outputs it into the
4205# updated configure.ac (with AC_DIAGNOSE), and then outputs
4206# the replacement expansion.
4207
4208
4209# This is an auxiliary macro that is also run when
4210# autoupdate runs m4.  It simply calls m4_warning, but
4211# we need a wrapper so that each warning is emitted only
4212# once.  We break the quoting in m4_warning's argument in
4213# order to expand this macro's arguments, not AU_DEFUN's.
4214
4215
4216# Finally, this is the expansion that is picked up by
4217# autoconf.  It tells the user to run autoupdate, and
4218# then outputs the replacement expansion.  We do not care
4219# about autoupdate's warning because that contains
4220# information on what to do *after* running autoupdate.
4221
4222
4223
4224
4225# _LT_ENABLE_SHARED([DEFAULT])
4226# ----------------------------
4227# implement the --enable-shared flag, and supports the 'shared' and
4228# 'disable-shared' LT_INIT options.
4229# DEFAULT is either 'yes' or 'no'.  If omitted, it defaults to 'yes'.
4230# _LT_ENABLE_SHARED
4231
4232
4233
4234
4235# Old names:
4236
4237
4238
4239
4240# This is what autoupdate's m4 run will expand.  It fires
4241# the warning (with _au_warn_XXX), outputs it into the
4242# updated configure.ac (with AC_DIAGNOSE), and then outputs
4243# the replacement expansion.
4244
4245
4246# This is an auxiliary macro that is also run when
4247# autoupdate runs m4.  It simply calls m4_warning, but
4248# we need a wrapper so that each warning is emitted only
4249# once.  We break the quoting in m4_warning's argument in
4250# order to expand this macro's arguments, not AU_DEFUN's.
4251
4252
4253# Finally, this is the expansion that is picked up by
4254# autoconf.  It tells the user to run autoupdate, and
4255# then outputs the replacement expansion.  We do not care
4256# about autoupdate's warning because that contains
4257# information on what to do *after* running autoupdate.
4258
4259# This is what autoupdate's m4 run will expand.  It fires
4260# the warning (with _au_warn_XXX), outputs it into the
4261# updated configure.ac (with AC_DIAGNOSE), and then outputs
4262# the replacement expansion.
4263
4264
4265# This is an auxiliary macro that is also run when
4266# autoupdate runs m4.  It simply calls m4_warning, but
4267# we need a wrapper so that each warning is emitted only
4268# once.  We break the quoting in m4_warning's argument in
4269# order to expand this macro's arguments, not AU_DEFUN's.
4270
4271
4272# Finally, this is the expansion that is picked up by
4273# autoconf.  It tells the user to run autoupdate, and
4274# then outputs the replacement expansion.  We do not care
4275# about autoupdate's warning because that contains
4276# information on what to do *after* running autoupdate.
4277
4278
4279
4280
4281
4282# _LT_ENABLE_STATIC([DEFAULT])
4283# ----------------------------
4284# implement the --enable-static flag, and support the 'static' and
4285# 'disable-static' LT_INIT options.
4286# DEFAULT is either 'yes' or 'no'.  If omitted, it defaults to 'yes'.
4287# _LT_ENABLE_STATIC
4288
4289
4290
4291
4292# Old names:
4293
4294
4295
4296
4297# This is what autoupdate's m4 run will expand.  It fires
4298# the warning (with _au_warn_XXX), outputs it into the
4299# updated configure.ac (with AC_DIAGNOSE), and then outputs
4300# the replacement expansion.
4301
4302
4303# This is an auxiliary macro that is also run when
4304# autoupdate runs m4.  It simply calls m4_warning, but
4305# we need a wrapper so that each warning is emitted only
4306# once.  We break the quoting in m4_warning's argument in
4307# order to expand this macro's arguments, not AU_DEFUN's.
4308
4309
4310# Finally, this is the expansion that is picked up by
4311# autoconf.  It tells the user to run autoupdate, and
4312# then outputs the replacement expansion.  We do not care
4313# about autoupdate's warning because that contains
4314# information on what to do *after* running autoupdate.
4315
4316# This is what autoupdate's m4 run will expand.  It fires
4317# the warning (with _au_warn_XXX), outputs it into the
4318# updated configure.ac (with AC_DIAGNOSE), and then outputs
4319# the replacement expansion.
4320
4321
4322# This is an auxiliary macro that is also run when
4323# autoupdate runs m4.  It simply calls m4_warning, but
4324# we need a wrapper so that each warning is emitted only
4325# once.  We break the quoting in m4_warning's argument in
4326# order to expand this macro's arguments, not AU_DEFUN's.
4327
4328
4329# Finally, this is the expansion that is picked up by
4330# autoconf.  It tells the user to run autoupdate, and
4331# then outputs the replacement expansion.  We do not care
4332# about autoupdate's warning because that contains
4333# information on what to do *after* running autoupdate.
4334
4335
4336
4337
4338
4339# _LT_ENABLE_FAST_INSTALL([DEFAULT])
4340# ----------------------------------
4341# implement the --enable-fast-install flag, and support the 'fast-install'
4342# and 'disable-fast-install' LT_INIT options.
4343# DEFAULT is either 'yes' or 'no'.  If omitted, it defaults to 'yes'.
4344# _LT_ENABLE_FAST_INSTALL
4345
4346
4347
4348
4349# Old names:
4350# This is what autoupdate's m4 run will expand.  It fires
4351# the warning (with _au_warn_XXX), outputs it into the
4352# updated configure.ac (with AC_DIAGNOSE), and then outputs
4353# the replacement expansion.
4354
4355
4356# This is an auxiliary macro that is also run when
4357# autoupdate runs m4.  It simply calls m4_warning, but
4358# we need a wrapper so that each warning is emitted only
4359# once.  We break the quoting in m4_warning's argument in
4360# order to expand this macro's arguments, not AU_DEFUN's.
4361
4362
4363# Finally, this is the expansion that is picked up by
4364# autoconf.  It tells the user to run autoupdate, and
4365# then outputs the replacement expansion.  We do not care
4366# about autoupdate's warning because that contains
4367# information on what to do *after* running autoupdate.
4368
4369
4370# This is what autoupdate's m4 run will expand.  It fires
4371# the warning (with _au_warn_XXX), outputs it into the
4372# updated configure.ac (with AC_DIAGNOSE), and then outputs
4373# the replacement expansion.
4374
4375
4376# This is an auxiliary macro that is also run when
4377# autoupdate runs m4.  It simply calls m4_warning, but
4378# we need a wrapper so that each warning is emitted only
4379# once.  We break the quoting in m4_warning's argument in
4380# order to expand this macro's arguments, not AU_DEFUN's.
4381
4382
4383# Finally, this is the expansion that is picked up by
4384# autoconf.  It tells the user to run autoupdate, and
4385# then outputs the replacement expansion.  We do not care
4386# about autoupdate's warning because that contains
4387# information on what to do *after* running autoupdate.
4388
4389
4390
4391
4392# _LT_WITH_AIX_SONAME([DEFAULT])
4393# ----------------------------------
4394# implement the --with-aix-soname flag, and support the `aix-soname=aix'
4395# and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT
4396# is either `aix', `both' or `svr4'.  If omitted, it defaults to `aix'.
4397# _LT_WITH_AIX_SONAME
4398
4399
4400
4401
4402
4403
4404# _LT_WITH_PIC([MODE])
4405# --------------------
4406# implement the --with-pic flag, and support the 'pic-only' and 'no-pic'
4407# LT_INIT options.
4408# MODE is either 'yes' or 'no'.  If omitted, it defaults to 'both'.
4409# _LT_WITH_PIC
4410
4411
4412
4413
4414# Old name:
4415# This is what autoupdate's m4 run will expand.  It fires
4416# the warning (with _au_warn_XXX), outputs it into the
4417# updated configure.ac (with AC_DIAGNOSE), and then outputs
4418# the replacement expansion.
4419
4420
4421# This is an auxiliary macro that is also run when
4422# autoupdate runs m4.  It simply calls m4_warning, but
4423# we need a wrapper so that each warning is emitted only
4424# once.  We break the quoting in m4_warning's argument in
4425# order to expand this macro's arguments, not AU_DEFUN's.
4426
4427
4428# Finally, this is the expansion that is picked up by
4429# autoconf.  It tells the user to run autoupdate, and
4430# then outputs the replacement expansion.  We do not care
4431# about autoupdate's warning because that contains
4432# information on what to do *after* running autoupdate.
4433
4434
4435
4436## ----------------- ##
4437## LTDL_INIT Options ##
4438## ----------------- ##
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449# ltversion.m4 -- version numbers			-*- Autoconf -*-
4450#
4451#   Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc.
4452#   Written by Scott James Remnant, 2004
4453#
4454# This file is free software; the Free Software Foundation gives
4455# unlimited permission to copy and/or distribute it, with or without
4456# modifications, as long as this notice is preserved.
4457
4458# @configure_input@
4459
4460# serial 4179 ltversion.m4
4461# This file is part of GNU Libtool
4462
4463
4464
4465
4466
4467
4468# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
4469#
4470#   Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software
4471#   Foundation, Inc.
4472#   Written by Scott James Remnant, 2004.
4473#
4474# This file is free software; the Free Software Foundation gives
4475# unlimited permission to copy and/or distribute it, with or without
4476# modifications, as long as this notice is preserved.
4477
4478# serial 5 lt~obsolete.m4
4479
4480# These exist entirely to fool aclocal when bootstrapping libtool.
4481#
4482# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN),
4483# which have later been changed to m4_define as they aren't part of the
4484# exported API, or moved to Autoconf or Automake where they belong.
4485#
4486# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
4487# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
4488# using a macro with the same name in our local m4/libtool.m4 it'll
4489# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
4490# and doesn't know about Autoconf macros at all.)
4491#
4492# So we provide this file, which has a silly filename so it's always
4493# included after everything else.  This provides aclocal with the
4494# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
4495# because those macros already exist, or will be overwritten later.
4496# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
4497#
4498# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
4499# Yes, that means every name once taken will need to remain here until
4500# we give up compatibility with versions before 1.7, at which point
4501# we need to keep only those names which we still refer to.
4502
4503# This is to help aclocal find these macros, as it can't see m4_define.
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574  apr_ste_save_CPPFLAGS="$CPPFLAGS"
4575
4576
4577  apr_ste_save_CFLAGS="$CFLAGS"
4578
4579
4580  apr_ste_save_LDFLAGS="$LDFLAGS"
4581
4582
4583  apr_ste_save_LIBS="$LIBS"
4584
4585
4586  apr_ste_save_INCLUDES="$INCLUDES"
4587
4588
4589
4590  rm -f config.nice
4591  cat >config.nice<<EOF
4592#! /bin/sh
4593#
4594# Created by configure
4595
4596EOF
4597  if test -n "$CC"; then
4598    echo "CC=\"$CC\"; export CC" >> config.nice
4599  fi
4600  if test -n "$CFLAGS"; then
4601    echo "CFLAGS=\"$CFLAGS\"; export CFLAGS" >> config.nice
4602  fi
4603  if test -n "$CPPFLAGS"; then
4604    echo "CPPFLAGS=\"$CPPFLAGS\"; export CPPFLAGS" >> config.nice
4605  fi
4606  if test -n "$LDFLAGS"; then
4607    echo "LDFLAGS=\"$LDFLAGS\"; export LDFLAGS" >> config.nice
4608  fi
4609  if test -n "$LTFLAGS"; then
4610    echo "LTFLAGS=\"$LTFLAGS\"; export LTFLAGS" >> config.nice
4611  fi
4612  if test -n "$LIBS"; then
4613    echo "LIBS=\"$LIBS\"; export LIBS" >> config.nice
4614  fi
4615  if test -n "$INCLUDES"; then
4616    echo "INCLUDES=\"$INCLUDES\"; export INCLUDES" >> config.nice
4617  fi
4618  if test -n "$NOTEST_CFLAGS"; then
4619    echo "NOTEST_CFLAGS=\"$NOTEST_CFLAGS\"; export NOTEST_CFLAGS" >> config.nice
4620  fi
4621  if test -n "$NOTEST_CPPFLAGS"; then
4622    echo "NOTEST_CPPFLAGS=\"$NOTEST_CPPFLAGS\"; export NOTEST_CPPFLAGS" >> config.nice
4623  fi
4624  if test -n "$NOTEST_LDFLAGS"; then
4625    echo "NOTEST_LDFLAGS=\"$NOTEST_LDFLAGS\"; export NOTEST_LDFLAGS" >> config.nice
4626  fi
4627  if test -n "$NOTEST_LIBS"; then
4628    echo "NOTEST_LIBS=\"$NOTEST_LIBS\"; export NOTEST_LIBS" >> config.nice
4629  fi
4630
4631  # Retrieve command-line arguments.
4632  eval "set x $0 $ac_configure_args"
4633  shift
4634
4635  for arg
4636  do
4637
4638ap_last=
4639ap_cur="$arg"
4640while test "x${ap_cur}" != "x${ap_last}";
4641do
4642  ap_last="${ap_cur}"
4643  ap_cur=`eval "echo ${ap_cur}"`
4644done
4645arg="${ap_cur}"
4646
4647    echo "\"$arg\" \\" >> config.nice
4648  done
4649  echo '"$@"' >> config.nice
4650  chmod +x config.nice
4651
4652
4653# Make sure we can run config.sub.
4654$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4655  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4656
4657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4658$as_echo_n "checking build system type... " >&6; }
4659if ${ac_cv_build+:} false; then :
4660  $as_echo_n "(cached) " >&6
4661else
4662  ac_build_alias=$build_alias
4663test "x$ac_build_alias" = x &&
4664  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4665test "x$ac_build_alias" = x &&
4666  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4667ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4668  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4669
4670fi
4671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4672$as_echo "$ac_cv_build" >&6; }
4673case $ac_cv_build in
4674*-*-*) ;;
4675*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4676esac
4677build=$ac_cv_build
4678ac_save_IFS=$IFS; IFS='-'
4679set x $ac_cv_build
4680shift
4681build_cpu=$1
4682build_vendor=$2
4683shift; shift
4684# Remember, the first character of IFS is used to create $*,
4685# except with old shells:
4686build_os=$*
4687IFS=$ac_save_IFS
4688case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4689
4690
4691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4692$as_echo_n "checking host system type... " >&6; }
4693if ${ac_cv_host+:} false; then :
4694  $as_echo_n "(cached) " >&6
4695else
4696  if test "x$host_alias" = x; then
4697  ac_cv_host=$ac_cv_build
4698else
4699  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4700    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4701fi
4702
4703fi
4704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4705$as_echo "$ac_cv_host" >&6; }
4706case $ac_cv_host in
4707*-*-*) ;;
4708*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4709esac
4710host=$ac_cv_host
4711ac_save_IFS=$IFS; IFS='-'
4712set x $ac_cv_host
4713shift
4714host_cpu=$1
4715host_vendor=$2
4716shift; shift
4717# Remember, the first character of IFS is used to create $*,
4718# except with old shells:
4719host_os=$*
4720IFS=$ac_save_IFS
4721case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4722
4723
4724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4725$as_echo_n "checking target system type... " >&6; }
4726if ${ac_cv_target+:} false; then :
4727  $as_echo_n "(cached) " >&6
4728else
4729  if test "x$target_alias" = x; then
4730  ac_cv_target=$ac_cv_host
4731else
4732  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4733    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4734fi
4735
4736fi
4737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4738$as_echo "$ac_cv_target" >&6; }
4739case $ac_cv_target in
4740*-*-*) ;;
4741*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4742esac
4743target=$ac_cv_target
4744ac_save_IFS=$IFS; IFS='-'
4745set x $ac_cv_target
4746shift
4747target_cpu=$1
4748target_vendor=$2
4749shift; shift
4750# Remember, the first character of IFS is used to create $*,
4751# except with old shells:
4752target_os=$*
4753IFS=$ac_save_IFS
4754case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4755
4756
4757# The aliases save the names the user supplied, while $host etc.
4758# will get canonicalized.
4759test -n "$target_alias" &&
4760  test "$program_prefix$program_suffix$program_transform_name" = \
4761    NONENONEs,x,x, &&
4762  program_prefix=${target_alias}-
4763
4764echo "Configuring APR library"
4765echo "Platform: $host"
4766
4767
4768
4769# Absolute source/build directory
4770apr_srcdir=`(cd $srcdir && pwd)`
4771apr_builddir=`pwd`
4772
4773
4774
4775if test "$apr_builddir" != "$apr_srcdir"; then
4776  USE_VPATH=1
4777  APR_CONFIG_LOCATION=build
4778else
4779  APR_CONFIG_LOCATION=source
4780fi
4781
4782
4783
4784# Libtool might need this symbol -- it must point to the location of
4785# the generated libtool script (not necessarily the "top" build dir).
4786#
4787top_builddir="$apr_builddir"
4788
4789
4790# Directory containing apr build macros, helpers, and make rules
4791# NOTE: make rules (apr_rules.mk) will be in the builddir for vpath
4792#
4793apr_buildout=$apr_builddir/build
4794apr_builders=$apr_srcdir/build
4795
4796
4797MKDIR=$apr_builders/mkdir.sh
4798
4799
4800  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mkdir -p" >&5
4801$as_echo_n "checking for working mkdir -p... " >&6; }
4802if ${ac_cv_mkdir_p+:} false; then :
4803  $as_echo_n "(cached) " >&6
4804else
4805
4806    test -d conftestdir && rm -rf conftestdir
4807    mkdir -p conftestdir/somedir >/dev/null 2>&1
4808    if test -d conftestdir/somedir; then
4809      ac_cv_mkdir_p=yes
4810    else
4811      ac_cv_mkdir_p=no
4812    fi
4813    rm -rf conftestdir
4814
4815fi
4816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mkdir_p" >&5
4817$as_echo "$ac_cv_mkdir_p" >&6; }
4818  if test "$ac_cv_mkdir_p" = "yes"; then
4819      mkdir_p="mkdir -p"
4820  else
4821      mkdir_p="$apr_builders/mkdir.sh"
4822  fi
4823
4824
4825# get our version information
4826get_version="$apr_builders/get-version.sh"
4827version_hdr="$apr_srcdir/include/apr_version.h"
4828APR_MAJOR_VERSION="`$get_version major $version_hdr APR`"
4829APR_DOTTED_VERSION="`$get_version all $version_hdr APR`"
4830
4831
4832
4833
4834echo "APR Version: ${APR_DOTTED_VERSION}"
4835
4836
4837# Check whether --enable-layout was given.
4838if test "${enable_layout+set}" = set; then :
4839  enableval=$enable_layout;
4840  LAYOUT=$enableval
4841
4842fi
4843
4844
4845if test -z "$LAYOUT"; then
4846  LAYOUT="apr"
4847fi
4848
4849  if test ! -f $srcdir/config.layout; then
4850    echo "** Error: Layout file $srcdir/config.layout not found"
4851    echo "** Error: Cannot use undefined layout '$LAYOUT'"
4852    exit 1
4853  fi
4854  # Catch layout names including a slash which will otherwise
4855  # confuse the heck out of the sed script.
4856  case $LAYOUT in
4857  */*)
4858    echo "** Error: $LAYOUT is not a valid layout name"
4859    exit 1 ;;
4860  esac
4861  pldconf=./config.pld
4862
4863  sed -e "1s/[ 	]*<[lL]ayout[ 	]*$LAYOUT[ 	]*>[ 	]*//;1t" \
4864      -e "1,/[ 	]*<[lL]ayout[ 	]*$LAYOUT[ 	]*>[ 	]*/d" \
4865      -e '/[ 	]*<\/Layout>[ 	]*/,$d' \
4866      -e "s/^[ 	]*//g" \
4867      -e "s/:[ 	]*/=\'/g" \
4868      -e "s/[ 	]*$/'/g" \
4869      $srcdir/config.layout > $pldconf
4870  layout_name=$LAYOUT
4871  if test ! -s $pldconf; then
4872    echo "** Error: unable to find layout $layout_name"
4873    exit 1
4874  fi
4875  . $pldconf
4876  rm $pldconf
4877  for var in prefix exec_prefix bindir sbindir libexecdir mandir \
4878             sysconfdir datadir includedir localstatedir runtimedir \
4879             logfiledir libdir installbuilddir libsuffix ; do
4880    eval "val=\"\$$var\""
4881    case $val in
4882      *+)
4883        val=`echo $val | sed -e 's;\+$;;'`
4884        eval "$var=\"\$val\""
4885        autosuffix=yes
4886        ;;
4887      *)
4888        autosuffix=no
4889        ;;
4890    esac
4891    val=`echo $val | sed -e 's:\(.\)/*$:\1:'`
4892    val=`echo $val | sed -e 's:[\$]\([a-z_]*\):$\1:g'`
4893    if test "$autosuffix" = "yes"; then
4894      if echo $val | grep apache >/dev/null; then
4895        addtarget=no
4896      else
4897        addtarget=yes
4898      fi
4899      if test "$addtarget" = "yes"; then
4900        val="$val/apache2"
4901      fi
4902    fi
4903    eval "$var='$val'"
4904  done
4905
4906
4907
4908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chosen layout" >&5
4909$as_echo_n "checking for chosen layout... " >&6; }
4910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $layout_name" >&5
4911$as_echo "$layout_name" >&6; }
4912
4913
4914ac_prev=
4915# Retrieve the command-line arguments.  The eval is needed because
4916# the arguments are quoted to preserve accuracy.
4917eval "set x $ac_configure_args"
4918shift
4919for ac_option
4920do
4921  # If the previous option needs an argument, assign it.
4922  if test -n "$ac_prev"; then
4923    eval "$ac_prev=\$ac_option"
4924    ac_prev=
4925    continue
4926  fi
4927
4928  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
4929
4930  case $ac_option in
4931
4932  -bindir | --bindir | --bindi | --bind | --bin | --bi)
4933    ac_prev=bindir ;;
4934  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
4935    bindir="$ac_optarg" ;;
4936
4937  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
4938    ac_prev=datadir ;;
4939  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
4940  | --da=*)
4941    datadir="$ac_optarg" ;;
4942
4943  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
4944  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
4945  | --exec | --exe | --ex)
4946    ac_prev=exec_prefix ;;
4947  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
4948  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
4949  | --exec=* | --exe=* | --ex=*)
4950    exec_prefix="$ac_optarg" ;;
4951
4952  -includedir | --includedir | --includedi | --included | --include \
4953  | --includ | --inclu | --incl | --inc)
4954    ac_prev=includedir ;;
4955  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
4956  | --includ=* | --inclu=* | --incl=* | --inc=*)
4957    includedir="$ac_optarg" ;;
4958
4959  -infodir | --infodir | --infodi | --infod | --info | --inf)
4960    ac_prev=infodir ;;
4961  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
4962    infodir="$ac_optarg" ;;
4963
4964  -libdir | --libdir | --libdi | --libd)
4965    ac_prev=libdir ;;
4966  -libdir=* | --libdir=* | --libdi=* | --libd=*)
4967    libdir="$ac_optarg" ;;
4968
4969  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
4970  | --libexe | --libex | --libe)
4971    ac_prev=libexecdir ;;
4972  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
4973  | --libexe=* | --libex=* | --libe=*)
4974    libexecdir="$ac_optarg" ;;
4975
4976  -localstatedir | --localstatedir | --localstatedi | --localstated \
4977  | --localstate | --localstat | --localsta | --localst \
4978  | --locals | --local | --loca | --loc | --lo)
4979    ac_prev=localstatedir ;;
4980  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
4981  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
4982  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
4983    localstatedir="$ac_optarg" ;;
4984
4985  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
4986    ac_prev=mandir ;;
4987  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
4988    mandir="$ac_optarg" ;;
4989
4990  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4991    ac_prev=prefix ;;
4992  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4993    prefix="$ac_optarg" ;;
4994
4995  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
4996    ac_prev=sbindir ;;
4997  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
4998  | --sbi=* | --sb=*)
4999    sbindir="$ac_optarg" ;;
5000
5001  -sharedstatedir | --sharedstatedir | --sharedstatedi \
5002  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
5003  | --sharedst | --shareds | --shared | --share | --shar \
5004  | --sha | --sh)
5005    ac_prev=sharedstatedir ;;
5006  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
5007  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
5008  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
5009  | --sha=* | --sh=*)
5010    sharedstatedir="$ac_optarg" ;;
5011
5012  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
5013  | --syscon | --sysco | --sysc | --sys | --sy)
5014    ac_prev=sysconfdir ;;
5015  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
5016  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
5017    sysconfdir="$ac_optarg" ;;
5018
5019  esac
5020done
5021
5022# Be sure to have absolute paths.
5023for ac_var in exec_prefix prefix
5024do
5025  eval ac_val=$`echo $ac_var`
5026  case $ac_val in
5027    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
5028    *)  as_fn_error $? "expected an absolute path for --$ac_var: $ac_val" "$LINENO" 5;;
5029  esac
5030done
5031
5032
5033
5034
5035case "$host" in
5036  *-apple-aux3*)
5037
5038  if test -z "$CC"; then
5039    test "x$silent" != "xyes" && echo "  setting CC to \"gcc\""
5040    CC="gcc"
5041  fi
5042
5043      ;;
5044  bs2000*-siemens-sysv*)
5045
5046  if test -z "$CC"; then
5047    test "x$silent" != "xyes" && echo "  setting CC to \"c89 -XLLML -XLLMK -XL -Kno_integer_overflow\""
5048    CC="c89 -XLLML -XLLMK -XL -Kno_integer_overflow"
5049  fi
5050
5051      ;;
5052  *convex-v11*)
5053
5054  if test -z "$CC"; then
5055    test "x$silent" != "xyes" && echo "  setting CC to \"cc\""
5056    CC="cc"
5057  fi
5058
5059      ;;
5060  *-ibm-os390)
5061
5062  if test -z "$CC"; then
5063    test "x$silent" != "xyes" && echo "  setting CC to \"cc\""
5064    CC="cc"
5065  fi
5066
5067      ;;
5068  *-ibm-as400)
5069
5070  if test -z "$CC"; then
5071    test "x$silent" != "xyes" && echo "  setting CC to \"icc\""
5072    CC="icc"
5073  fi
5074
5075      ;;
5076  *-isc4*)
5077
5078  if test -z "$CC"; then
5079    test "x$silent" != "xyes" && echo "  setting CC to \"gcc\""
5080    CC="gcc"
5081  fi
5082
5083      ;;
5084  m88k-*-CX/SX|CYBER)
5085
5086  if test -z "$CC"; then
5087    test "x$silent" != "xyes" && echo "  setting CC to \"cc\""
5088    CC="cc"
5089  fi
5090
5091      ;;
5092  *-next-openstep*)
5093
5094  if test -z "$CC"; then
5095    test "x$silent" != "xyes" && echo "  setting CC to \"cc\""
5096    CC="cc"
5097  fi
5098
5099      ;;
5100  *-qnx32)
5101
5102  if test -z "$CC"; then
5103    test "x$silent" != "xyes" && echo "  setting CC to \"cc -F\""
5104    CC="cc -F"
5105  fi
5106
5107      ;;
5108  *-tandem-oss)
5109
5110  if test -z "$CC"; then
5111    test "x$silent" != "xyes" && echo "  setting CC to \"c89\""
5112    CC="c89"
5113  fi
5114
5115      ;;
5116  TPF)
5117
5118  if test -z "$CC"; then
5119    test "x$silent" != "xyes" && echo "  setting CC to \"c89\""
5120    CC="c89"
5121  fi
5122
5123      ;;
5124esac
5125
5126
5127ac_ext=c
5128ac_cpp='$CPP $CPPFLAGS'
5129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5131ac_compiler_gnu=$ac_cv_c_compiler_gnu
5132if test -n "$ac_tool_prefix"; then
5133  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5134set dummy ${ac_tool_prefix}gcc; ac_word=$2
5135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5136$as_echo_n "checking for $ac_word... " >&6; }
5137if ${ac_cv_prog_CC+:} false; then :
5138  $as_echo_n "(cached) " >&6
5139else
5140  if test -n "$CC"; then
5141  ac_cv_prog_CC="$CC" # Let the user override the test.
5142else
5143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144for as_dir in $PATH
5145do
5146  IFS=$as_save_IFS
5147  test -z "$as_dir" && as_dir=.
5148    for ac_exec_ext in '' $ac_executable_extensions; do
5149  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5150    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5151    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5152    break 2
5153  fi
5154done
5155  done
5156IFS=$as_save_IFS
5157
5158fi
5159fi
5160CC=$ac_cv_prog_CC
5161if test -n "$CC"; then
5162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5163$as_echo "$CC" >&6; }
5164else
5165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5166$as_echo "no" >&6; }
5167fi
5168
5169
5170fi
5171if test -z "$ac_cv_prog_CC"; then
5172  ac_ct_CC=$CC
5173  # Extract the first word of "gcc", so it can be a program name with args.
5174set dummy gcc; ac_word=$2
5175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5176$as_echo_n "checking for $ac_word... " >&6; }
5177if ${ac_cv_prog_ac_ct_CC+:} false; then :
5178  $as_echo_n "(cached) " >&6
5179else
5180  if test -n "$ac_ct_CC"; then
5181  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5182else
5183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184for as_dir in $PATH
5185do
5186  IFS=$as_save_IFS
5187  test -z "$as_dir" && as_dir=.
5188    for ac_exec_ext in '' $ac_executable_extensions; do
5189  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5190    ac_cv_prog_ac_ct_CC="gcc"
5191    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5192    break 2
5193  fi
5194done
5195  done
5196IFS=$as_save_IFS
5197
5198fi
5199fi
5200ac_ct_CC=$ac_cv_prog_ac_ct_CC
5201if test -n "$ac_ct_CC"; then
5202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5203$as_echo "$ac_ct_CC" >&6; }
5204else
5205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5206$as_echo "no" >&6; }
5207fi
5208
5209  if test "x$ac_ct_CC" = x; then
5210    CC=""
5211  else
5212    case $cross_compiling:$ac_tool_warned in
5213yes:)
5214{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5215$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5216ac_tool_warned=yes ;;
5217esac
5218    CC=$ac_ct_CC
5219  fi
5220else
5221  CC="$ac_cv_prog_CC"
5222fi
5223
5224if test -z "$CC"; then
5225          if test -n "$ac_tool_prefix"; then
5226    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5227set dummy ${ac_tool_prefix}cc; ac_word=$2
5228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5229$as_echo_n "checking for $ac_word... " >&6; }
5230if ${ac_cv_prog_CC+:} false; then :
5231  $as_echo_n "(cached) " >&6
5232else
5233  if test -n "$CC"; then
5234  ac_cv_prog_CC="$CC" # Let the user override the test.
5235else
5236as_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_prog_CC="${ac_tool_prefix}cc"
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
5251fi
5252fi
5253CC=$ac_cv_prog_CC
5254if test -n "$CC"; then
5255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5256$as_echo "$CC" >&6; }
5257else
5258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5259$as_echo "no" >&6; }
5260fi
5261
5262
5263  fi
5264fi
5265if test -z "$CC"; then
5266  # Extract the first word of "cc", so it can be a program name with args.
5267set dummy cc; ac_word=$2
5268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5269$as_echo_n "checking for $ac_word... " >&6; }
5270if ${ac_cv_prog_CC+:} false; then :
5271  $as_echo_n "(cached) " >&6
5272else
5273  if test -n "$CC"; then
5274  ac_cv_prog_CC="$CC" # Let the user override the test.
5275else
5276  ac_prog_rejected=no
5277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278for as_dir in $PATH
5279do
5280  IFS=$as_save_IFS
5281  test -z "$as_dir" && as_dir=.
5282    for ac_exec_ext in '' $ac_executable_extensions; do
5283  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5284    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5285       ac_prog_rejected=yes
5286       continue
5287     fi
5288    ac_cv_prog_CC="cc"
5289    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5290    break 2
5291  fi
5292done
5293  done
5294IFS=$as_save_IFS
5295
5296if test $ac_prog_rejected = yes; then
5297  # We found a bogon in the path, so make sure we never use it.
5298  set dummy $ac_cv_prog_CC
5299  shift
5300  if test $# != 0; then
5301    # We chose a different compiler from the bogus one.
5302    # However, it has the same basename, so the bogon will be chosen
5303    # first if we set CC to just the basename; use the full file name.
5304    shift
5305    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5306  fi
5307fi
5308fi
5309fi
5310CC=$ac_cv_prog_CC
5311if test -n "$CC"; then
5312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5313$as_echo "$CC" >&6; }
5314else
5315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5316$as_echo "no" >&6; }
5317fi
5318
5319
5320fi
5321if test -z "$CC"; then
5322  if test -n "$ac_tool_prefix"; then
5323  for ac_prog in cl.exe
5324  do
5325    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5326set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5328$as_echo_n "checking for $ac_word... " >&6; }
5329if ${ac_cv_prog_CC+:} false; then :
5330  $as_echo_n "(cached) " >&6
5331else
5332  if test -n "$CC"; then
5333  ac_cv_prog_CC="$CC" # Let the user override the test.
5334else
5335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336for as_dir in $PATH
5337do
5338  IFS=$as_save_IFS
5339  test -z "$as_dir" && as_dir=.
5340    for ac_exec_ext in '' $ac_executable_extensions; do
5341  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5342    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5343    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5344    break 2
5345  fi
5346done
5347  done
5348IFS=$as_save_IFS
5349
5350fi
5351fi
5352CC=$ac_cv_prog_CC
5353if test -n "$CC"; then
5354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5355$as_echo "$CC" >&6; }
5356else
5357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358$as_echo "no" >&6; }
5359fi
5360
5361
5362    test -n "$CC" && break
5363  done
5364fi
5365if test -z "$CC"; then
5366  ac_ct_CC=$CC
5367  for ac_prog in cl.exe
5368do
5369  # Extract the first word of "$ac_prog", so it can be a program name with args.
5370set dummy $ac_prog; ac_word=$2
5371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5372$as_echo_n "checking for $ac_word... " >&6; }
5373if ${ac_cv_prog_ac_ct_CC+:} false; then :
5374  $as_echo_n "(cached) " >&6
5375else
5376  if test -n "$ac_ct_CC"; then
5377  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5378else
5379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380for as_dir in $PATH
5381do
5382  IFS=$as_save_IFS
5383  test -z "$as_dir" && as_dir=.
5384    for ac_exec_ext in '' $ac_executable_extensions; do
5385  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5386    ac_cv_prog_ac_ct_CC="$ac_prog"
5387    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5388    break 2
5389  fi
5390done
5391  done
5392IFS=$as_save_IFS
5393
5394fi
5395fi
5396ac_ct_CC=$ac_cv_prog_ac_ct_CC
5397if test -n "$ac_ct_CC"; then
5398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5399$as_echo "$ac_ct_CC" >&6; }
5400else
5401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5402$as_echo "no" >&6; }
5403fi
5404
5405
5406  test -n "$ac_ct_CC" && break
5407done
5408
5409  if test "x$ac_ct_CC" = x; then
5410    CC=""
5411  else
5412    case $cross_compiling:$ac_tool_warned in
5413yes:)
5414{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5415$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5416ac_tool_warned=yes ;;
5417esac
5418    CC=$ac_ct_CC
5419  fi
5420fi
5421
5422fi
5423
5424
5425test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5426$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5427as_fn_error $? "no acceptable C compiler found in \$PATH
5428See \`config.log' for more details" "$LINENO" 5; }
5429
5430# Provide some information about the compiler.
5431$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5432set X $ac_compile
5433ac_compiler=$2
5434for ac_option in --version -v -V -qversion; do
5435  { { ac_try="$ac_compiler $ac_option >&5"
5436case "(($ac_try" in
5437  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5438  *) ac_try_echo=$ac_try;;
5439esac
5440eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5441$as_echo "$ac_try_echo"; } >&5
5442  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5443  ac_status=$?
5444  if test -s conftest.err; then
5445    sed '10a\
5446... rest of stderr output deleted ...
5447         10q' conftest.err >conftest.er1
5448    cat conftest.er1 >&5
5449  fi
5450  rm -f conftest.er1 conftest.err
5451  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5452  test $ac_status = 0; }
5453done
5454
5455cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456/* end confdefs.h.  */
5457
5458int
5459main ()
5460{
5461
5462  ;
5463  return 0;
5464}
5465_ACEOF
5466ac_clean_files_save=$ac_clean_files
5467ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5468# Try to create an executable without -o first, disregard a.out.
5469# It will help us diagnose broken compilers, and finding out an intuition
5470# of exeext.
5471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5472$as_echo_n "checking whether the C compiler works... " >&6; }
5473ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5474
5475# The possible output files:
5476ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5477
5478ac_rmfiles=
5479for ac_file in $ac_files
5480do
5481  case $ac_file in
5482    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5483    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5484  esac
5485done
5486rm -f $ac_rmfiles
5487
5488if { { ac_try="$ac_link_default"
5489case "(($ac_try" in
5490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5491  *) ac_try_echo=$ac_try;;
5492esac
5493eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5494$as_echo "$ac_try_echo"; } >&5
5495  (eval "$ac_link_default") 2>&5
5496  ac_status=$?
5497  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5498  test $ac_status = 0; }; then :
5499  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5500# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5501# in a Makefile.  We should not override ac_cv_exeext if it was cached,
5502# so that the user can short-circuit this test for compilers unknown to
5503# Autoconf.
5504for ac_file in $ac_files ''
5505do
5506  test -f "$ac_file" || continue
5507  case $ac_file in
5508    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5509	;;
5510    [ab].out )
5511	# We found the default executable, but exeext='' is most
5512	# certainly right.
5513	break;;
5514    *.* )
5515	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5516	then :; else
5517	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5518	fi
5519	# We set ac_cv_exeext here because the later test for it is not
5520	# safe: cross compilers may not add the suffix if given an `-o'
5521	# argument, so we may need to know it at that point already.
5522	# Even if this section looks crufty: it has the advantage of
5523	# actually working.
5524	break;;
5525    * )
5526	break;;
5527  esac
5528done
5529test "$ac_cv_exeext" = no && ac_cv_exeext=
5530
5531else
5532  ac_file=''
5533fi
5534if test -z "$ac_file"; then :
5535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536$as_echo "no" >&6; }
5537$as_echo "$as_me: failed program was:" >&5
5538sed 's/^/| /' conftest.$ac_ext >&5
5539
5540{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5542as_fn_error 77 "C compiler cannot create executables
5543See \`config.log' for more details" "$LINENO" 5; }
5544else
5545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5546$as_echo "yes" >&6; }
5547fi
5548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5549$as_echo_n "checking for C compiler default output file name... " >&6; }
5550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5551$as_echo "$ac_file" >&6; }
5552ac_exeext=$ac_cv_exeext
5553
5554rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5555ac_clean_files=$ac_clean_files_save
5556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5557$as_echo_n "checking for suffix of executables... " >&6; }
5558if { { ac_try="$ac_link"
5559case "(($ac_try" in
5560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561  *) ac_try_echo=$ac_try;;
5562esac
5563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5564$as_echo "$ac_try_echo"; } >&5
5565  (eval "$ac_link") 2>&5
5566  ac_status=$?
5567  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5568  test $ac_status = 0; }; then :
5569  # If both `conftest.exe' and `conftest' are `present' (well, observable)
5570# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5571# work properly (i.e., refer to `conftest.exe'), while it won't with
5572# `rm'.
5573for ac_file in conftest.exe conftest conftest.*; do
5574  test -f "$ac_file" || continue
5575  case $ac_file in
5576    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5577    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5578	  break;;
5579    * ) break;;
5580  esac
5581done
5582else
5583  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5585as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5586See \`config.log' for more details" "$LINENO" 5; }
5587fi
5588rm -f conftest conftest$ac_cv_exeext
5589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5590$as_echo "$ac_cv_exeext" >&6; }
5591
5592rm -f conftest.$ac_ext
5593EXEEXT=$ac_cv_exeext
5594ac_exeext=$EXEEXT
5595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5596/* end confdefs.h.  */
5597#include <stdio.h>
5598int
5599main ()
5600{
5601FILE *f = fopen ("conftest.out", "w");
5602 return ferror (f) || fclose (f) != 0;
5603
5604  ;
5605  return 0;
5606}
5607_ACEOF
5608ac_clean_files="$ac_clean_files conftest.out"
5609# Check that the compiler produces executables we can run.  If not, either
5610# the compiler is broken, or we cross compile.
5611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5612$as_echo_n "checking whether we are cross compiling... " >&6; }
5613if test "$cross_compiling" != yes; then
5614  { { ac_try="$ac_link"
5615case "(($ac_try" in
5616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617  *) ac_try_echo=$ac_try;;
5618esac
5619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5620$as_echo "$ac_try_echo"; } >&5
5621  (eval "$ac_link") 2>&5
5622  ac_status=$?
5623  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5624  test $ac_status = 0; }
5625  if { ac_try='./conftest$ac_cv_exeext'
5626  { { case "(($ac_try" in
5627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5628  *) ac_try_echo=$ac_try;;
5629esac
5630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5631$as_echo "$ac_try_echo"; } >&5
5632  (eval "$ac_try") 2>&5
5633  ac_status=$?
5634  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5635  test $ac_status = 0; }; }; then
5636    cross_compiling=no
5637  else
5638    if test "$cross_compiling" = maybe; then
5639	cross_compiling=yes
5640    else
5641	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5642$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5643as_fn_error $? "cannot run C compiled programs.
5644If you meant to cross compile, use \`--host'.
5645See \`config.log' for more details" "$LINENO" 5; }
5646    fi
5647  fi
5648fi
5649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5650$as_echo "$cross_compiling" >&6; }
5651
5652rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5653ac_clean_files=$ac_clean_files_save
5654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5655$as_echo_n "checking for suffix of object files... " >&6; }
5656if ${ac_cv_objext+:} false; then :
5657  $as_echo_n "(cached) " >&6
5658else
5659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660/* end confdefs.h.  */
5661
5662int
5663main ()
5664{
5665
5666  ;
5667  return 0;
5668}
5669_ACEOF
5670rm -f conftest.o conftest.obj
5671if { { ac_try="$ac_compile"
5672case "(($ac_try" in
5673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5674  *) ac_try_echo=$ac_try;;
5675esac
5676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5677$as_echo "$ac_try_echo"; } >&5
5678  (eval "$ac_compile") 2>&5
5679  ac_status=$?
5680  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5681  test $ac_status = 0; }; then :
5682  for ac_file in conftest.o conftest.obj conftest.*; do
5683  test -f "$ac_file" || continue;
5684  case $ac_file in
5685    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5686    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5687       break;;
5688  esac
5689done
5690else
5691  $as_echo "$as_me: failed program was:" >&5
5692sed 's/^/| /' conftest.$ac_ext >&5
5693
5694{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5695$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5696as_fn_error $? "cannot compute suffix of object files: cannot compile
5697See \`config.log' for more details" "$LINENO" 5; }
5698fi
5699rm -f conftest.$ac_cv_objext conftest.$ac_ext
5700fi
5701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5702$as_echo "$ac_cv_objext" >&6; }
5703OBJEXT=$ac_cv_objext
5704ac_objext=$OBJEXT
5705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5706$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5707if ${ac_cv_c_compiler_gnu+:} false; then :
5708  $as_echo_n "(cached) " >&6
5709else
5710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5711/* end confdefs.h.  */
5712
5713int
5714main ()
5715{
5716#ifndef __GNUC__
5717       choke me
5718#endif
5719
5720  ;
5721  return 0;
5722}
5723_ACEOF
5724if ac_fn_c_try_compile "$LINENO"; then :
5725  ac_compiler_gnu=yes
5726else
5727  ac_compiler_gnu=no
5728fi
5729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5730ac_cv_c_compiler_gnu=$ac_compiler_gnu
5731
5732fi
5733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5734$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5735if test $ac_compiler_gnu = yes; then
5736  GCC=yes
5737else
5738  GCC=
5739fi
5740ac_test_CFLAGS=${CFLAGS+set}
5741ac_save_CFLAGS=$CFLAGS
5742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5743$as_echo_n "checking whether $CC accepts -g... " >&6; }
5744if ${ac_cv_prog_cc_g+:} false; then :
5745  $as_echo_n "(cached) " >&6
5746else
5747  ac_save_c_werror_flag=$ac_c_werror_flag
5748   ac_c_werror_flag=yes
5749   ac_cv_prog_cc_g=no
5750   CFLAGS="-g"
5751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752/* end confdefs.h.  */
5753
5754int
5755main ()
5756{
5757
5758  ;
5759  return 0;
5760}
5761_ACEOF
5762if ac_fn_c_try_compile "$LINENO"; then :
5763  ac_cv_prog_cc_g=yes
5764else
5765  CFLAGS=""
5766      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5767/* end confdefs.h.  */
5768
5769int
5770main ()
5771{
5772
5773  ;
5774  return 0;
5775}
5776_ACEOF
5777if ac_fn_c_try_compile "$LINENO"; then :
5778
5779else
5780  ac_c_werror_flag=$ac_save_c_werror_flag
5781	 CFLAGS="-g"
5782	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5783/* end confdefs.h.  */
5784
5785int
5786main ()
5787{
5788
5789  ;
5790  return 0;
5791}
5792_ACEOF
5793if ac_fn_c_try_compile "$LINENO"; then :
5794  ac_cv_prog_cc_g=yes
5795fi
5796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5797fi
5798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5799fi
5800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5801   ac_c_werror_flag=$ac_save_c_werror_flag
5802fi
5803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5804$as_echo "$ac_cv_prog_cc_g" >&6; }
5805if test "$ac_test_CFLAGS" = set; then
5806  CFLAGS=$ac_save_CFLAGS
5807elif test $ac_cv_prog_cc_g = yes; then
5808  if test "$GCC" = yes; then
5809    CFLAGS="-g -O2"
5810  else
5811    CFLAGS="-g"
5812  fi
5813else
5814  if test "$GCC" = yes; then
5815    CFLAGS="-O2"
5816  else
5817    CFLAGS=
5818  fi
5819fi
5820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5821$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5822if ${ac_cv_prog_cc_c89+:} false; then :
5823  $as_echo_n "(cached) " >&6
5824else
5825  ac_cv_prog_cc_c89=no
5826ac_save_CC=$CC
5827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5828/* end confdefs.h.  */
5829#include <stdarg.h>
5830#include <stdio.h>
5831struct stat;
5832/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5833struct buf { int x; };
5834FILE * (*rcsopen) (struct buf *, struct stat *, int);
5835static char *e (p, i)
5836     char **p;
5837     int i;
5838{
5839  return p[i];
5840}
5841static char *f (char * (*g) (char **, int), char **p, ...)
5842{
5843  char *s;
5844  va_list v;
5845  va_start (v,p);
5846  s = g (p, va_arg (v,int));
5847  va_end (v);
5848  return s;
5849}
5850
5851/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5852   function prototypes and stuff, but not '\xHH' hex character constants.
5853   These don't provoke an error unfortunately, instead are silently treated
5854   as 'x'.  The following induces an error, until -std is added to get
5855   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5856   array size at least.  It's necessary to write '\x00'==0 to get something
5857   that's true only with -std.  */
5858int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5859
5860/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5861   inside strings and character constants.  */
5862#define FOO(x) 'x'
5863int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5864
5865int test (int i, double x);
5866struct s1 {int (*f) (int a);};
5867struct s2 {int (*f) (double a);};
5868int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5869int argc;
5870char **argv;
5871int
5872main ()
5873{
5874return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5875  ;
5876  return 0;
5877}
5878_ACEOF
5879for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5880	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5881do
5882  CC="$ac_save_CC $ac_arg"
5883  if ac_fn_c_try_compile "$LINENO"; then :
5884  ac_cv_prog_cc_c89=$ac_arg
5885fi
5886rm -f core conftest.err conftest.$ac_objext
5887  test "x$ac_cv_prog_cc_c89" != "xno" && break
5888done
5889rm -f conftest.$ac_ext
5890CC=$ac_save_CC
5891
5892fi
5893# AC_CACHE_VAL
5894case "x$ac_cv_prog_cc_c89" in
5895  x)
5896    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5897$as_echo "none needed" >&6; } ;;
5898  xno)
5899    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5900$as_echo "unsupported" >&6; } ;;
5901  *)
5902    CC="$CC $ac_cv_prog_cc_c89"
5903    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5904$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5905esac
5906if test "x$ac_cv_prog_cc_c89" != xno; then :
5907
5908fi
5909
5910ac_ext=c
5911ac_cpp='$CPP $CPPFLAGS'
5912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5914ac_compiler_gnu=$ac_cv_c_compiler_gnu
5915
5916
5917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5918$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5919if ${ac_cv_path_SED+:} false; then :
5920  $as_echo_n "(cached) " >&6
5921else
5922            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5923     for ac_i in 1 2 3 4 5 6 7; do
5924       ac_script="$ac_script$as_nl$ac_script"
5925     done
5926     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5927     { ac_script=; unset ac_script;}
5928     if test -z "$SED"; then
5929  ac_path_SED_found=false
5930  # Loop through the user's path and test for each of PROGNAME-LIST
5931  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932for as_dir in $PATH
5933do
5934  IFS=$as_save_IFS
5935  test -z "$as_dir" && as_dir=.
5936    for ac_prog in sed gsed; do
5937    for ac_exec_ext in '' $ac_executable_extensions; do
5938      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5939      as_fn_executable_p "$ac_path_SED" || continue
5940# Check for GNU ac_path_SED and select it if it is found.
5941  # Check for GNU $ac_path_SED
5942case `"$ac_path_SED" --version 2>&1` in
5943*GNU*)
5944  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5945*)
5946  ac_count=0
5947  $as_echo_n 0123456789 >"conftest.in"
5948  while :
5949  do
5950    cat "conftest.in" "conftest.in" >"conftest.tmp"
5951    mv "conftest.tmp" "conftest.in"
5952    cp "conftest.in" "conftest.nl"
5953    $as_echo '' >> "conftest.nl"
5954    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5955    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5956    as_fn_arith $ac_count + 1 && ac_count=$as_val
5957    if test $ac_count -gt ${ac_path_SED_max-0}; then
5958      # Best one so far, save it but keep looking for a better one
5959      ac_cv_path_SED="$ac_path_SED"
5960      ac_path_SED_max=$ac_count
5961    fi
5962    # 10*(2^10) chars as input seems more than enough
5963    test $ac_count -gt 10 && break
5964  done
5965  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5966esac
5967
5968      $ac_path_SED_found && break 3
5969    done
5970  done
5971  done
5972IFS=$as_save_IFS
5973  if test -z "$ac_cv_path_SED"; then
5974    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5975  fi
5976else
5977  ac_cv_path_SED=$SED
5978fi
5979
5980fi
5981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5982$as_echo "$ac_cv_path_SED" >&6; }
5983 SED="$ac_cv_path_SED"
5984  rm -f conftest.sed
5985
5986
5987
5988if test "x$apr_preload_done" != "xyes" ; then
5989
5990  apr_preload_done="yes"
5991
5992  echo "Applying APR hints file rules for $host"
5993
5994  case "$host" in
5995    *mint)
5996
5997  if test "x$CPPFLAGS" = "x"; then
5998    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DMINT -D_GNU_SOURCE\""
5999    CPPFLAGS="-DMINT -D_GNU_SOURCE"
6000  else
6001    apr_addto_bugger="-DMINT -D_GNU_SOURCE"
6002    for i in $apr_addto_bugger; do
6003      apr_addto_duplicate="0"
6004      for j in $CPPFLAGS; do
6005        if test "x$i" = "x$j"; then
6006          apr_addto_duplicate="1"
6007          break
6008        fi
6009      done
6010      if test $apr_addto_duplicate = "0"; then
6011        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6012        CPPFLAGS="$CPPFLAGS $i"
6013      fi
6014    done
6015  fi
6016
6017	;;
6018    *MPE/iX*)
6019
6020  if test "x$CPPFLAGS" = "x"; then
6021    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE\""
6022    CPPFLAGS="-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE"
6023  else
6024    apr_addto_bugger="-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE"
6025    for i in $apr_addto_bugger; do
6026      apr_addto_duplicate="0"
6027      for j in $CPPFLAGS; do
6028        if test "x$i" = "x$j"; then
6029          apr_addto_duplicate="1"
6030          break
6031        fi
6032      done
6033      if test $apr_addto_duplicate = "0"; then
6034        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6035        CPPFLAGS="$CPPFLAGS $i"
6036      fi
6037    done
6038  fi
6039
6040
6041  if test "x$LIBS" = "x"; then
6042    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lsvipc -lcurses\""
6043    LIBS="-lsvipc -lcurses"
6044  else
6045    apr_addto_bugger="-lsvipc -lcurses"
6046    for i in $apr_addto_bugger; do
6047      apr_addto_duplicate="0"
6048      for j in $LIBS; do
6049        if test "x$i" = "x$j"; then
6050          apr_addto_duplicate="1"
6051          break
6052        fi
6053      done
6054      if test $apr_addto_duplicate = "0"; then
6055        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
6056        LIBS="$LIBS $i"
6057      fi
6058    done
6059  fi
6060
6061
6062  if test "x$LDFLAGS" = "x"; then
6063    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\"\""
6064    LDFLAGS="-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\""
6065  else
6066    apr_addto_bugger="-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\""
6067    for i in $apr_addto_bugger; do
6068      apr_addto_duplicate="0"
6069      for j in $LDFLAGS; do
6070        if test "x$i" = "x$j"; then
6071          apr_addto_duplicate="1"
6072          break
6073        fi
6074      done
6075      if test $apr_addto_duplicate = "0"; then
6076        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
6077        LDFLAGS="$LDFLAGS $i"
6078      fi
6079    done
6080  fi
6081
6082	;;
6083    *-apple-aux3*)
6084
6085  if test "x$CPPFLAGS" = "x"; then
6086    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DAUX3 -D_POSIX_SOURCE\""
6087    CPPFLAGS="-DAUX3 -D_POSIX_SOURCE"
6088  else
6089    apr_addto_bugger="-DAUX3 -D_POSIX_SOURCE"
6090    for i in $apr_addto_bugger; do
6091      apr_addto_duplicate="0"
6092      for j in $CPPFLAGS; 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 CPPFLAGS"
6100        CPPFLAGS="$CPPFLAGS $i"
6101      fi
6102    done
6103  fi
6104
6105
6106  if test "x$LIBS" = "x"; then
6107    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lposix -lbsd\""
6108    LIBS="-lposix -lbsd"
6109  else
6110    apr_addto_bugger="-lposix -lbsd"
6111    for i in $apr_addto_bugger; do
6112      apr_addto_duplicate="0"
6113      for j in $LIBS; do
6114        if test "x$i" = "x$j"; then
6115          apr_addto_duplicate="1"
6116          break
6117        fi
6118      done
6119      if test $apr_addto_duplicate = "0"; then
6120        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
6121        LIBS="$LIBS $i"
6122      fi
6123    done
6124  fi
6125
6126
6127  if test "x$LDFLAGS" = "x"; then
6128    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-s\""
6129    LDFLAGS="-s"
6130  else
6131    apr_addto_bugger="-s"
6132    for i in $apr_addto_bugger; do
6133      apr_addto_duplicate="0"
6134      for j in $LDFLAGS; do
6135        if test "x$i" = "x$j"; then
6136          apr_addto_duplicate="1"
6137          break
6138        fi
6139      done
6140      if test $apr_addto_duplicate = "0"; then
6141        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
6142        LDFLAGS="$LDFLAGS $i"
6143      fi
6144    done
6145  fi
6146
6147
6148  test "x$silent" != "xyes" && echo "  forcing SHELL to \"/bin/ksh\""
6149  SHELL="/bin/ksh"
6150
6151	;;
6152    *-ibm-aix*)
6153
6154  if test "x$CPPFLAGS" = "x"; then
6155    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-U__STR__ -D_THREAD_SAFE\""
6156    CPPFLAGS="-U__STR__ -D_THREAD_SAFE"
6157  else
6158    apr_addto_bugger="-U__STR__ -D_THREAD_SAFE"
6159    for i in $apr_addto_bugger; do
6160      apr_addto_duplicate="0"
6161      for j in $CPPFLAGS; do
6162        if test "x$i" = "x$j"; then
6163          apr_addto_duplicate="1"
6164          break
6165        fi
6166      done
6167      if test $apr_addto_duplicate = "0"; then
6168        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6169        CPPFLAGS="$CPPFLAGS $i"
6170      fi
6171    done
6172  fi
6173
6174                case $host in
6175            *-ibm-aix4.3)
6176
6177  if test "x$CPPFLAGS" = "x"; then
6178    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_USE_IRS\""
6179    CPPFLAGS="-D_USE_IRS"
6180  else
6181    apr_addto_bugger="-D_USE_IRS"
6182    for i in $apr_addto_bugger; do
6183      apr_addto_duplicate="0"
6184      for j in $CPPFLAGS; do
6185        if test "x$i" = "x$j"; then
6186          apr_addto_duplicate="1"
6187          break
6188        fi
6189      done
6190      if test $apr_addto_duplicate = "0"; then
6191        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6192        CPPFLAGS="$CPPFLAGS $i"
6193      fi
6194    done
6195  fi
6196
6197	        ;;
6198            *-ibm-aix5*)
6199
6200  if test "x$CPPFLAGS" = "x"; then
6201    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_USE_IRS\""
6202    CPPFLAGS="-D_USE_IRS"
6203  else
6204    apr_addto_bugger="-D_USE_IRS"
6205    for i in $apr_addto_bugger; do
6206      apr_addto_duplicate="0"
6207      for j in $CPPFLAGS; do
6208        if test "x$i" = "x$j"; then
6209          apr_addto_duplicate="1"
6210          break
6211        fi
6212      done
6213      if test $apr_addto_duplicate = "0"; then
6214        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6215        CPPFLAGS="$CPPFLAGS $i"
6216      fi
6217    done
6218  fi
6219
6220	        ;;
6221            *-ibm-aix4.3.*)
6222
6223  if test "x$CPPFLAGS" = "x"; then
6224    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_USE_IRS\""
6225    CPPFLAGS="-D_USE_IRS"
6226  else
6227    apr_addto_bugger="-D_USE_IRS"
6228    for i in $apr_addto_bugger; do
6229      apr_addto_duplicate="0"
6230      for j in $CPPFLAGS; do
6231        if test "x$i" = "x$j"; then
6232          apr_addto_duplicate="1"
6233          break
6234        fi
6235      done
6236      if test $apr_addto_duplicate = "0"; then
6237        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6238        CPPFLAGS="$CPPFLAGS $i"
6239      fi
6240    done
6241  fi
6242
6243                ;;
6244        esac
6245                if $CC 2>&1 | grep 'xlc' > /dev/null; then
6246
6247  if test -z "$AIX_XLC"; then
6248    test "x$silent" != "xyes" && echo "  setting AIX_XLC to \"yes\""
6249    AIX_XLC="yes"
6250  fi
6251
6252
6253  if test "x$CFLAGS" = "x"; then
6254    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-qHALT=E\""
6255    CFLAGS="-qHALT=E"
6256  else
6257    apr_addto_bugger="-qHALT=E"
6258    for i in $apr_addto_bugger; do
6259      apr_addto_duplicate="0"
6260      for j in $CFLAGS; do
6261        if test "x$i" = "x$j"; then
6262          apr_addto_duplicate="1"
6263          break
6264        fi
6265      done
6266      if test $apr_addto_duplicate = "0"; then
6267        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
6268        CFLAGS="$CFLAGS $i"
6269      fi
6270    done
6271  fi
6272
6273        fi
6274
6275  if test -z "$apr_sysvsem_is_global"; then
6276    test "x$silent" != "xyes" && echo "  setting apr_sysvsem_is_global to \"yes\""
6277    apr_sysvsem_is_global="yes"
6278  fi
6279
6280
6281  if test -z "$apr_lock_method"; then
6282    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\""
6283    apr_lock_method="USE_SYSVSEM_SERIALIZE"
6284  fi
6285
6286        case $host in
6287            *-ibm-aix3* | *-ibm-aix4.1.*)
6288                ;;
6289            *)
6290
6291  if test "x$LDFLAGS" = "x"; then
6292    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-Wl,-brtl\""
6293    LDFLAGS="-Wl,-brtl"
6294  else
6295    apr_addto_bugger="-Wl,-brtl"
6296    for i in $apr_addto_bugger; do
6297      apr_addto_duplicate="0"
6298      for j in $LDFLAGS; do
6299        if test "x$i" = "x$j"; then
6300          apr_addto_duplicate="1"
6301          break
6302        fi
6303      done
6304      if test $apr_addto_duplicate = "0"; then
6305        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
6306        LDFLAGS="$LDFLAGS $i"
6307      fi
6308    done
6309  fi
6310
6311                ;;
6312	esac
6313        ;;
6314    *-apollo-*)
6315
6316  if test "x$CPPFLAGS" = "x"; then
6317    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DAPOLLO\""
6318    CPPFLAGS="-DAPOLLO"
6319  else
6320    apr_addto_bugger="-DAPOLLO"
6321    for i in $apr_addto_bugger; do
6322      apr_addto_duplicate="0"
6323      for j in $CPPFLAGS; do
6324        if test "x$i" = "x$j"; then
6325          apr_addto_duplicate="1"
6326          break
6327        fi
6328      done
6329      if test $apr_addto_duplicate = "0"; then
6330        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6331        CPPFLAGS="$CPPFLAGS $i"
6332      fi
6333    done
6334  fi
6335
6336	;;
6337    *-dg-dgux*)
6338
6339  if test "x$CPPFLAGS" = "x"; then
6340    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DDGUX\""
6341    CPPFLAGS="-DDGUX"
6342  else
6343    apr_addto_bugger="-DDGUX"
6344    for i in $apr_addto_bugger; do
6345      apr_addto_duplicate="0"
6346      for j in $CPPFLAGS; do
6347        if test "x$i" = "x$j"; then
6348          apr_addto_duplicate="1"
6349          break
6350        fi
6351      done
6352      if test $apr_addto_duplicate = "0"; then
6353        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6354        CPPFLAGS="$CPPFLAGS $i"
6355      fi
6356    done
6357  fi
6358
6359	;;
6360    *-os2*)
6361
6362  test "x$silent" != "xyes" && echo "  forcing SHELL to \"sh\""
6363  SHELL="sh"
6364
6365
6366  if test -z "$apr_gethostbyname_is_thread_safe"; then
6367    test "x$silent" != "xyes" && echo "  setting apr_gethostbyname_is_thread_safe to \"yes\""
6368    apr_gethostbyname_is_thread_safe="yes"
6369  fi
6370
6371
6372  if test -z "$apr_gethostbyaddr_is_thread_safe"; then
6373    test "x$silent" != "xyes" && echo "  setting apr_gethostbyaddr_is_thread_safe to \"yes\""
6374    apr_gethostbyaddr_is_thread_safe="yes"
6375  fi
6376
6377
6378  if test -z "$apr_getservbyname_is_thread_safe"; then
6379    test "x$silent" != "xyes" && echo "  setting apr_getservbyname_is_thread_safe to \"yes\""
6380    apr_getservbyname_is_thread_safe="yes"
6381  fi
6382
6383	;;
6384    *-hi-hiux)
6385
6386  if test "x$CPPFLAGS" = "x"; then
6387    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DHIUX\""
6388    CPPFLAGS="-DHIUX"
6389  else
6390    apr_addto_bugger="-DHIUX"
6391    for i in $apr_addto_bugger; do
6392      apr_addto_duplicate="0"
6393      for j in $CPPFLAGS; do
6394        if test "x$i" = "x$j"; then
6395          apr_addto_duplicate="1"
6396          break
6397        fi
6398      done
6399      if test $apr_addto_duplicate = "0"; then
6400        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6401        CPPFLAGS="$CPPFLAGS $i"
6402      fi
6403    done
6404  fi
6405
6406	;;
6407    *-hp-hpux11.*)
6408
6409  if test "x$CPPFLAGS" = "x"; then
6410    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DHPUX11 -D_REENTRANT -D_HPUX_SOURCE\""
6411    CPPFLAGS="-DHPUX11 -D_REENTRANT -D_HPUX_SOURCE"
6412  else
6413    apr_addto_bugger="-DHPUX11 -D_REENTRANT -D_HPUX_SOURCE"
6414    for i in $apr_addto_bugger; do
6415      apr_addto_duplicate="0"
6416      for j in $CPPFLAGS; do
6417        if test "x$i" = "x$j"; then
6418          apr_addto_duplicate="1"
6419          break
6420        fi
6421      done
6422      if test $apr_addto_duplicate = "0"; then
6423        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6424        CPPFLAGS="$CPPFLAGS $i"
6425      fi
6426    done
6427  fi
6428
6429	;;
6430    *-hp-hpux10.*)
6431 	case $host in
6432 	  *-hp-hpux10.01)
6433
6434  if test "x$CPPFLAGS" = "x"; then
6435    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSELECT_NEEDS_CAST\""
6436    CPPFLAGS="-DSELECT_NEEDS_CAST"
6437  else
6438    apr_addto_bugger="-DSELECT_NEEDS_CAST"
6439    for i in $apr_addto_bugger; do
6440      apr_addto_duplicate="0"
6441      for j in $CPPFLAGS; do
6442        if test "x$i" = "x$j"; then
6443          apr_addto_duplicate="1"
6444          break
6445        fi
6446      done
6447      if test $apr_addto_duplicate = "0"; then
6448        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6449        CPPFLAGS="$CPPFLAGS $i"
6450      fi
6451    done
6452  fi
6453
6454	       ;;
6455 	esac
6456
6457  if test "x$CPPFLAGS" = "x"; then
6458    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_REENTRANT\""
6459    CPPFLAGS="-D_REENTRANT"
6460  else
6461    apr_addto_bugger="-D_REENTRANT"
6462    for i in $apr_addto_bugger; do
6463      apr_addto_duplicate="0"
6464      for j in $CPPFLAGS; do
6465        if test "x$i" = "x$j"; then
6466          apr_addto_duplicate="1"
6467          break
6468        fi
6469      done
6470      if test $apr_addto_duplicate = "0"; then
6471        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6472        CPPFLAGS="$CPPFLAGS $i"
6473      fi
6474    done
6475  fi
6476
6477	;;
6478    *-hp-hpux*)
6479
6480  if test "x$CPPFLAGS" = "x"; then
6481    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DHPUX -D_REENTRANT\""
6482    CPPFLAGS="-DHPUX -D_REENTRANT"
6483  else
6484    apr_addto_bugger="-DHPUX -D_REENTRANT"
6485    for i in $apr_addto_bugger; do
6486      apr_addto_duplicate="0"
6487      for j in $CPPFLAGS; do
6488        if test "x$i" = "x$j"; then
6489          apr_addto_duplicate="1"
6490          break
6491        fi
6492      done
6493      if test $apr_addto_duplicate = "0"; then
6494        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6495        CPPFLAGS="$CPPFLAGS $i"
6496      fi
6497    done
6498  fi
6499
6500	;;
6501    *-linux*)
6502
6503  if test "x$CPPFLAGS" = "x"; then
6504    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DLINUX -D_REENTRANT -D_GNU_SOURCE\""
6505    CPPFLAGS="-DLINUX -D_REENTRANT -D_GNU_SOURCE"
6506  else
6507    apr_addto_bugger="-DLINUX -D_REENTRANT -D_GNU_SOURCE"
6508    for i in $apr_addto_bugger; do
6509      apr_addto_duplicate="0"
6510      for j in $CPPFLAGS; do
6511        if test "x$i" = "x$j"; then
6512          apr_addto_duplicate="1"
6513          break
6514        fi
6515      done
6516      if test $apr_addto_duplicate = "0"; then
6517        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6518        CPPFLAGS="$CPPFLAGS $i"
6519      fi
6520    done
6521  fi
6522
6523	;;
6524    *-lynx-lynxos)
6525
6526  if test "x$CPPFLAGS" = "x"; then
6527    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D__NO_INCLUDE_WARN__ -DLYNXOS\""
6528    CPPFLAGS="-D__NO_INCLUDE_WARN__ -DLYNXOS"
6529  else
6530    apr_addto_bugger="-D__NO_INCLUDE_WARN__ -DLYNXOS"
6531    for i in $apr_addto_bugger; do
6532      apr_addto_duplicate="0"
6533      for j in $CPPFLAGS; do
6534        if test "x$i" = "x$j"; then
6535          apr_addto_duplicate="1"
6536          break
6537        fi
6538      done
6539      if test $apr_addto_duplicate = "0"; then
6540        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6541        CPPFLAGS="$CPPFLAGS $i"
6542      fi
6543    done
6544  fi
6545
6546
6547  if test "x$LIBS" = "x"; then
6548    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lbsd\""
6549    LIBS="-lbsd"
6550  else
6551    apr_addto_bugger="-lbsd"
6552    for i in $apr_addto_bugger; do
6553      apr_addto_duplicate="0"
6554      for j in $LIBS; do
6555        if test "x$i" = "x$j"; then
6556          apr_addto_duplicate="1"
6557          break
6558        fi
6559      done
6560      if test $apr_addto_duplicate = "0"; then
6561        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
6562        LIBS="$LIBS $i"
6563      fi
6564    done
6565  fi
6566
6567	;;
6568    *486-*-bsdi*)
6569
6570  if test "x$CFLAGS" = "x"; then
6571    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-m486\""
6572    CFLAGS="-m486"
6573  else
6574    apr_addto_bugger="-m486"
6575    for i in $apr_addto_bugger; do
6576      apr_addto_duplicate="0"
6577      for j in $CFLAGS; do
6578        if test "x$i" = "x$j"; then
6579          apr_addto_duplicate="1"
6580          break
6581        fi
6582      done
6583      if test $apr_addto_duplicate = "0"; then
6584        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
6585        CFLAGS="$CFLAGS $i"
6586      fi
6587    done
6588  fi
6589
6590	;;
6591    *-*-bsdi*)
6592        case $host in
6593            *bsdi4.1)
6594
6595  if test "x$CFLAGS" = "x"; then
6596    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-D_REENTRANT\""
6597    CFLAGS="-D_REENTRANT"
6598  else
6599    apr_addto_bugger="-D_REENTRANT"
6600    for i in $apr_addto_bugger; do
6601      apr_addto_duplicate="0"
6602      for j in $CFLAGS; do
6603        if test "x$i" = "x$j"; then
6604          apr_addto_duplicate="1"
6605          break
6606        fi
6607      done
6608      if test $apr_addto_duplicate = "0"; then
6609        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
6610        CFLAGS="$CFLAGS $i"
6611      fi
6612    done
6613  fi
6614
6615                ;;
6616        esac
6617        ;;
6618    *-openbsd*)
6619
6620  if test "x$CPPFLAGS" = "x"; then
6621    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_POSIX_THREADS\""
6622    CPPFLAGS="-D_POSIX_THREADS"
6623  else
6624    apr_addto_bugger="-D_POSIX_THREADS"
6625    for i in $apr_addto_bugger; do
6626      apr_addto_duplicate="0"
6627      for j in $CPPFLAGS; do
6628        if test "x$i" = "x$j"; then
6629          apr_addto_duplicate="1"
6630          break
6631        fi
6632      done
6633      if test $apr_addto_duplicate = "0"; then
6634        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6635        CPPFLAGS="$CPPFLAGS $i"
6636      fi
6637    done
6638  fi
6639
6640        # binding to an ephemeral port fails on OpenBSD so override
6641        # the test for O_NONBLOCK inheritance across accept().
6642
6643  if test -z "$ac_cv_o_nonblock_inherited"; then
6644    test "x$silent" != "xyes" && echo "  setting ac_cv_o_nonblock_inherited to \"yes\""
6645    ac_cv_o_nonblock_inherited="yes"
6646  fi
6647
6648	;;
6649    *-netbsd*)
6650
6651  if test "x$CPPFLAGS" = "x"; then
6652    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DNETBSD\""
6653    CPPFLAGS="-DNETBSD"
6654  else
6655    apr_addto_bugger="-DNETBSD"
6656    for i in $apr_addto_bugger; do
6657      apr_addto_duplicate="0"
6658      for j in $CPPFLAGS; do
6659        if test "x$i" = "x$j"; then
6660          apr_addto_duplicate="1"
6661          break
6662        fi
6663      done
6664      if test $apr_addto_duplicate = "0"; then
6665        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6666        CPPFLAGS="$CPPFLAGS $i"
6667      fi
6668    done
6669  fi
6670
6671        # fcntl() lies about O_NONBLOCK on an accept()ed socket (PR kern/26950)
6672
6673  if test -z "$ac_cv_o_nonblock_inherited"; then
6674    test "x$silent" != "xyes" && echo "  setting ac_cv_o_nonblock_inherited to \"yes\""
6675    ac_cv_o_nonblock_inherited="yes"
6676  fi
6677
6678	;;
6679    *-freebsd*)
6680
6681  if test -z "$apr_lock_method"; then
6682    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"USE_FLOCK_SERIALIZE\""
6683    apr_lock_method="USE_FLOCK_SERIALIZE"
6684  fi
6685
6686        if test -x /sbin/sysctl; then
6687            os_version=`/sbin/sysctl -n kern.osreldate`
6688        else
6689            os_version=000000
6690        fi
6691        # 502102 is when libc_r switched to libpthread (aka libkse).
6692        if test $os_version -ge "502102"; then
6693          apr_cv_pthreads_cflags="none"
6694          apr_cv_pthreads_lib="-lpthread"
6695        else
6696
6697  if test "x$CPPFLAGS" = "x"; then
6698    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_THREAD_SAFE -D_REENTRANT\""
6699    CPPFLAGS="-D_THREAD_SAFE -D_REENTRANT"
6700  else
6701    apr_addto_bugger="-D_THREAD_SAFE -D_REENTRANT"
6702    for i in $apr_addto_bugger; do
6703      apr_addto_duplicate="0"
6704      for j in $CPPFLAGS; do
6705        if test "x$i" = "x$j"; then
6706          apr_addto_duplicate="1"
6707          break
6708        fi
6709      done
6710      if test $apr_addto_duplicate = "0"; then
6711        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6712        CPPFLAGS="$CPPFLAGS $i"
6713      fi
6714    done
6715  fi
6716
6717
6718  if test -z "$enable_threads"; then
6719    test "x$silent" != "xyes" && echo "  setting enable_threads to \"no\""
6720    enable_threads="no"
6721  fi
6722
6723        fi
6724        # prevent use of KQueue before FreeBSD 4.8
6725        if test $os_version -lt "480000"; then
6726
6727  if test -z "$ac_cv_func_kqueue"; then
6728    test "x$silent" != "xyes" && echo "  setting ac_cv_func_kqueue to \"no\""
6729    ac_cv_func_kqueue="no"
6730  fi
6731
6732        fi
6733	;;
6734    *-k*bsd*-gnu)
6735
6736  if test "x$CPPFLAGS" = "x"; then
6737    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_REENTRANT -D_GNU_SOURCE\""
6738    CPPFLAGS="-D_REENTRANT -D_GNU_SOURCE"
6739  else
6740    apr_addto_bugger="-D_REENTRANT -D_GNU_SOURCE"
6741    for i in $apr_addto_bugger; do
6742      apr_addto_duplicate="0"
6743      for j in $CPPFLAGS; do
6744        if test "x$i" = "x$j"; then
6745          apr_addto_duplicate="1"
6746          break
6747        fi
6748      done
6749      if test $apr_addto_duplicate = "0"; then
6750        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6751        CPPFLAGS="$CPPFLAGS $i"
6752      fi
6753    done
6754  fi
6755
6756        ;;
6757    *-gnu*|*-GNU*)
6758
6759  if test "x$CPPFLAGS" = "x"; then
6760    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_REENTRANT -D_GNU_SOURCE -DHURD\""
6761    CPPFLAGS="-D_REENTRANT -D_GNU_SOURCE -DHURD"
6762  else
6763    apr_addto_bugger="-D_REENTRANT -D_GNU_SOURCE -DHURD"
6764    for i in $apr_addto_bugger; do
6765      apr_addto_duplicate="0"
6766      for j in $CPPFLAGS; do
6767        if test "x$i" = "x$j"; then
6768          apr_addto_duplicate="1"
6769          break
6770        fi
6771      done
6772      if test $apr_addto_duplicate = "0"; then
6773        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6774        CPPFLAGS="$CPPFLAGS $i"
6775      fi
6776    done
6777  fi
6778
6779        ;;
6780    *-next-nextstep*)
6781
6782  if test -z "$CFLAGS"; then
6783    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-O\""
6784    CFLAGS="-O"
6785  fi
6786
6787
6788  if test "x$CPPFLAGS" = "x"; then
6789    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DNEXT\""
6790    CPPFLAGS="-DNEXT"
6791  else
6792    apr_addto_bugger="-DNEXT"
6793    for i in $apr_addto_bugger; do
6794      apr_addto_duplicate="0"
6795      for j in $CPPFLAGS; do
6796        if test "x$i" = "x$j"; then
6797          apr_addto_duplicate="1"
6798          break
6799        fi
6800      done
6801      if test $apr_addto_duplicate = "0"; then
6802        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6803        CPPFLAGS="$CPPFLAGS $i"
6804      fi
6805    done
6806  fi
6807
6808	;;
6809    *-next-openstep*)
6810
6811  if test -z "$CFLAGS"; then
6812    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-O\""
6813    CFLAGS="-O"
6814  fi
6815
6816
6817  if test "x$CPPFLAGS" = "x"; then
6818    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DNEXT\""
6819    CPPFLAGS="-DNEXT"
6820  else
6821    apr_addto_bugger="-DNEXT"
6822    for i in $apr_addto_bugger; do
6823      apr_addto_duplicate="0"
6824      for j in $CPPFLAGS; do
6825        if test "x$i" = "x$j"; then
6826          apr_addto_duplicate="1"
6827          break
6828        fi
6829      done
6830      if test $apr_addto_duplicate = "0"; then
6831        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6832        CPPFLAGS="$CPPFLAGS $i"
6833      fi
6834    done
6835  fi
6836
6837	;;
6838    *-apple-rhapsody*)
6839
6840  if test "x$CPPFLAGS" = "x"; then
6841    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DRHAPSODY\""
6842    CPPFLAGS="-DRHAPSODY"
6843  else
6844    apr_addto_bugger="-DRHAPSODY"
6845    for i in $apr_addto_bugger; do
6846      apr_addto_duplicate="0"
6847      for j in $CPPFLAGS; do
6848        if test "x$i" = "x$j"; then
6849          apr_addto_duplicate="1"
6850          break
6851        fi
6852      done
6853      if test $apr_addto_duplicate = "0"; then
6854        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6855        CPPFLAGS="$CPPFLAGS $i"
6856      fi
6857    done
6858  fi
6859
6860	;;
6861    *-apple-darwin*)
6862
6863  if test "x$CPPFLAGS" = "x"; then
6864    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK\""
6865    CPPFLAGS="-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK"
6866  else
6867    apr_addto_bugger="-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK"
6868    for i in $apr_addto_bugger; do
6869      apr_addto_duplicate="0"
6870      for j in $CPPFLAGS; do
6871        if test "x$i" = "x$j"; then
6872          apr_addto_duplicate="1"
6873          break
6874        fi
6875      done
6876      if test $apr_addto_duplicate = "0"; then
6877        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6878        CPPFLAGS="$CPPFLAGS $i"
6879      fi
6880    done
6881  fi
6882
6883
6884  if test -z "$apr_posixsem_is_global"; then
6885    test "x$silent" != "xyes" && echo "  setting apr_posixsem_is_global to \"yes\""
6886    apr_posixsem_is_global="yes"
6887  fi
6888
6889        case $host in
6890            *-apple-darwin[1-9].*)
6891                # APR's use of kqueue has triggered kernel panics for some
6892                # 10.5.x (Darwin 9.x) users when running the entire test suite.
6893                # In 10.4.x, use of kqueue would cause the socket tests to hang.
6894                # 10.6+ (Darwin 10.x is supposed to fix the KQueue issues
6895
6896  if test -z "$ac_cv_func_kqueue"; then
6897    test "x$silent" != "xyes" && echo "  setting ac_cv_func_kqueue to \"no\""
6898    ac_cv_func_kqueue="no"
6899  fi
6900
6901
6902  if test -z "$ac_cv_func_poll"; then
6903    test "x$silent" != "xyes" && echo "  setting ac_cv_func_poll to \"no\""
6904    ac_cv_func_poll="no"
6905  fi
6906 # See issue 34332
6907            ;;
6908            *-apple-darwin1?.*)
6909
6910  if test "x$CPPFLAGS" = "x"; then
6911    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DDARWIN_10\""
6912    CPPFLAGS="-DDARWIN_10"
6913  else
6914    apr_addto_bugger="-DDARWIN_10"
6915    for i in $apr_addto_bugger; do
6916      apr_addto_duplicate="0"
6917      for j in $CPPFLAGS; do
6918        if test "x$i" = "x$j"; then
6919          apr_addto_duplicate="1"
6920          break
6921        fi
6922      done
6923      if test $apr_addto_duplicate = "0"; then
6924        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6925        CPPFLAGS="$CPPFLAGS $i"
6926      fi
6927    done
6928  fi
6929
6930            ;;
6931        esac
6932	;;
6933    *-dec-osf*)
6934
6935  if test "x$CPPFLAGS" = "x"; then
6936    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DOSF1\""
6937    CPPFLAGS="-DOSF1"
6938  else
6939    apr_addto_bugger="-DOSF1"
6940    for i in $apr_addto_bugger; do
6941      apr_addto_duplicate="0"
6942      for j in $CPPFLAGS; do
6943        if test "x$i" = "x$j"; then
6944          apr_addto_duplicate="1"
6945          break
6946        fi
6947      done
6948      if test $apr_addto_duplicate = "0"; then
6949        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6950        CPPFLAGS="$CPPFLAGS $i"
6951      fi
6952    done
6953  fi
6954
6955        # process-shared mutexes don't seem to work in Tru64 5.0
6956
6957  if test -z "$apr_cv_process_shared_works"; then
6958    test "x$silent" != "xyes" && echo "  setting apr_cv_process_shared_works to \"no\""
6959    apr_cv_process_shared_works="no"
6960  fi
6961
6962	;;
6963    *-nto-qnx*)
6964	;;
6965    *-qnx)
6966
6967  if test "x$CPPFLAGS" = "x"; then
6968    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DQNX\""
6969    CPPFLAGS="-DQNX"
6970  else
6971    apr_addto_bugger="-DQNX"
6972    for i in $apr_addto_bugger; do
6973      apr_addto_duplicate="0"
6974      for j in $CPPFLAGS; do
6975        if test "x$i" = "x$j"; then
6976          apr_addto_duplicate="1"
6977          break
6978        fi
6979      done
6980      if test $apr_addto_duplicate = "0"; then
6981        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6982        CPPFLAGS="$CPPFLAGS $i"
6983      fi
6984    done
6985  fi
6986
6987
6988  if test "x$LIBS" = "x"; then
6989    test "x$silent" != "xyes" && echo "  setting LIBS to \"-N128k -lunix\""
6990    LIBS="-N128k -lunix"
6991  else
6992    apr_addto_bugger="-N128k -lunix"
6993    for i in $apr_addto_bugger; do
6994      apr_addto_duplicate="0"
6995      for j in $LIBS; do
6996        if test "x$i" = "x$j"; then
6997          apr_addto_duplicate="1"
6998          break
6999        fi
7000      done
7001      if test $apr_addto_duplicate = "0"; then
7002        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7003        LIBS="$LIBS $i"
7004      fi
7005    done
7006  fi
7007
7008	;;
7009    *-qnx32)
7010
7011  if test "x$CPPFLAGS" = "x"; then
7012    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DQNX\""
7013    CPPFLAGS="-DQNX"
7014  else
7015    apr_addto_bugger="-DQNX"
7016    for i in $apr_addto_bugger; do
7017      apr_addto_duplicate="0"
7018      for j in $CPPFLAGS; do
7019        if test "x$i" = "x$j"; then
7020          apr_addto_duplicate="1"
7021          break
7022        fi
7023      done
7024      if test $apr_addto_duplicate = "0"; then
7025        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7026        CPPFLAGS="$CPPFLAGS $i"
7027      fi
7028    done
7029  fi
7030
7031
7032  if test "x$CFLAGS" = "x"; then
7033    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-mf -3\""
7034    CFLAGS="-mf -3"
7035  else
7036    apr_addto_bugger="-mf -3"
7037    for i in $apr_addto_bugger; do
7038      apr_addto_duplicate="0"
7039      for j in $CFLAGS; do
7040        if test "x$i" = "x$j"; then
7041          apr_addto_duplicate="1"
7042          break
7043        fi
7044      done
7045      if test $apr_addto_duplicate = "0"; then
7046        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
7047        CFLAGS="$CFLAGS $i"
7048      fi
7049    done
7050  fi
7051
7052
7053  if test "x$LIBS" = "x"; then
7054    test "x$silent" != "xyes" && echo "  setting LIBS to \"-N128k -lunix\""
7055    LIBS="-N128k -lunix"
7056  else
7057    apr_addto_bugger="-N128k -lunix"
7058    for i in $apr_addto_bugger; do
7059      apr_addto_duplicate="0"
7060      for j in $LIBS; do
7061        if test "x$i" = "x$j"; then
7062          apr_addto_duplicate="1"
7063          break
7064        fi
7065      done
7066      if test $apr_addto_duplicate = "0"; then
7067        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7068        LIBS="$LIBS $i"
7069      fi
7070    done
7071  fi
7072
7073	;;
7074    *-isc4*)
7075
7076  if test "x$CPPFLAGS" = "x"; then
7077    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-posix -DISC\""
7078    CPPFLAGS="-posix -DISC"
7079  else
7080    apr_addto_bugger="-posix -DISC"
7081    for i in $apr_addto_bugger; do
7082      apr_addto_duplicate="0"
7083      for j in $CPPFLAGS; do
7084        if test "x$i" = "x$j"; then
7085          apr_addto_duplicate="1"
7086          break
7087        fi
7088      done
7089      if test $apr_addto_duplicate = "0"; then
7090        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7091        CPPFLAGS="$CPPFLAGS $i"
7092      fi
7093    done
7094  fi
7095
7096
7097  if test "x$LDFLAGS" = "x"; then
7098    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-posix\""
7099    LDFLAGS="-posix"
7100  else
7101    apr_addto_bugger="-posix"
7102    for i in $apr_addto_bugger; do
7103      apr_addto_duplicate="0"
7104      for j in $LDFLAGS; do
7105        if test "x$i" = "x$j"; then
7106          apr_addto_duplicate="1"
7107          break
7108        fi
7109      done
7110      if test $apr_addto_duplicate = "0"; then
7111        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
7112        LDFLAGS="$LDFLAGS $i"
7113      fi
7114    done
7115  fi
7116
7117
7118  if test "x$LIBS" = "x"; then
7119    test "x$silent" != "xyes" && echo "  setting LIBS to \"-linet\""
7120    LIBS="-linet"
7121  else
7122    apr_addto_bugger="-linet"
7123    for i in $apr_addto_bugger; do
7124      apr_addto_duplicate="0"
7125      for j in $LIBS; do
7126        if test "x$i" = "x$j"; then
7127          apr_addto_duplicate="1"
7128          break
7129        fi
7130      done
7131      if test $apr_addto_duplicate = "0"; then
7132        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7133        LIBS="$LIBS $i"
7134      fi
7135    done
7136  fi
7137
7138	;;
7139    *-sco3.2v[234]*)
7140
7141  if test "x$CPPFLAGS" = "x"; then
7142    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSCO -D_REENTRANT\""
7143    CPPFLAGS="-DSCO -D_REENTRANT"
7144  else
7145    apr_addto_bugger="-DSCO -D_REENTRANT"
7146    for i in $apr_addto_bugger; do
7147      apr_addto_duplicate="0"
7148      for j in $CPPFLAGS; do
7149        if test "x$i" = "x$j"; then
7150          apr_addto_duplicate="1"
7151          break
7152        fi
7153      done
7154      if test $apr_addto_duplicate = "0"; then
7155        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7156        CPPFLAGS="$CPPFLAGS $i"
7157      fi
7158    done
7159  fi
7160
7161	if test "$GCC" = "no"; then
7162
7163  if test "x$CFLAGS" = "x"; then
7164    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Oacgiltz\""
7165    CFLAGS="-Oacgiltz"
7166  else
7167    apr_addto_bugger="-Oacgiltz"
7168    for i in $apr_addto_bugger; do
7169      apr_addto_duplicate="0"
7170      for j in $CFLAGS; do
7171        if test "x$i" = "x$j"; then
7172          apr_addto_duplicate="1"
7173          break
7174        fi
7175      done
7176      if test $apr_addto_duplicate = "0"; then
7177        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
7178        CFLAGS="$CFLAGS $i"
7179      fi
7180    done
7181  fi
7182
7183	fi
7184
7185  if test "x$LIBS" = "x"; then
7186    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lPW -lmalloc\""
7187    LIBS="-lPW -lmalloc"
7188  else
7189    apr_addto_bugger="-lPW -lmalloc"
7190    for i in $apr_addto_bugger; do
7191      apr_addto_duplicate="0"
7192      for j in $LIBS; do
7193        if test "x$i" = "x$j"; then
7194          apr_addto_duplicate="1"
7195          break
7196        fi
7197      done
7198      if test $apr_addto_duplicate = "0"; then
7199        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7200        LIBS="$LIBS $i"
7201      fi
7202    done
7203  fi
7204
7205	;;
7206    *-sco3.2v5*)
7207
7208  if test "x$CPPFLAGS" = "x"; then
7209    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSCO5 -D_REENTRANT\""
7210    CPPFLAGS="-DSCO5 -D_REENTRANT"
7211  else
7212    apr_addto_bugger="-DSCO5 -D_REENTRANT"
7213    for i in $apr_addto_bugger; do
7214      apr_addto_duplicate="0"
7215      for j in $CPPFLAGS; do
7216        if test "x$i" = "x$j"; then
7217          apr_addto_duplicate="1"
7218          break
7219        fi
7220      done
7221      if test $apr_addto_duplicate = "0"; then
7222        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7223        CPPFLAGS="$CPPFLAGS $i"
7224      fi
7225    done
7226  fi
7227
7228	;;
7229    *-sco_sv*|*-SCO_SV*)
7230
7231  if test "x$CPPFLAGS" = "x"; then
7232    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSCO -D_REENTRANT\""
7233    CPPFLAGS="-DSCO -D_REENTRANT"
7234  else
7235    apr_addto_bugger="-DSCO -D_REENTRANT"
7236    for i in $apr_addto_bugger; do
7237      apr_addto_duplicate="0"
7238      for j in $CPPFLAGS; do
7239        if test "x$i" = "x$j"; then
7240          apr_addto_duplicate="1"
7241          break
7242        fi
7243      done
7244      if test $apr_addto_duplicate = "0"; then
7245        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7246        CPPFLAGS="$CPPFLAGS $i"
7247      fi
7248    done
7249  fi
7250
7251
7252  if test "x$LIBS" = "x"; then
7253    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lPW -lmalloc\""
7254    LIBS="-lPW -lmalloc"
7255  else
7256    apr_addto_bugger="-lPW -lmalloc"
7257    for i in $apr_addto_bugger; do
7258      apr_addto_duplicate="0"
7259      for j in $LIBS; do
7260        if test "x$i" = "x$j"; then
7261          apr_addto_duplicate="1"
7262          break
7263        fi
7264      done
7265      if test $apr_addto_duplicate = "0"; then
7266        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7267        LIBS="$LIBS $i"
7268      fi
7269    done
7270  fi
7271
7272	;;
7273    *-solaris2*)
7274    	PLATOSVERS=`echo $host | sed 's/^.*solaris2.//'`
7275
7276  if test "x$CPPFLAGS" = "x"; then
7277    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT\""
7278    CPPFLAGS="-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT"
7279  else
7280    apr_addto_bugger="-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT"
7281    for i in $apr_addto_bugger; do
7282      apr_addto_duplicate="0"
7283      for j in $CPPFLAGS; do
7284        if test "x$i" = "x$j"; then
7285          apr_addto_duplicate="1"
7286          break
7287        fi
7288      done
7289      if test $apr_addto_duplicate = "0"; then
7290        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7291        CPPFLAGS="$CPPFLAGS $i"
7292      fi
7293    done
7294  fi
7295
7296        if test $PLATOSVERS -eq 10; then
7297            # pthread_mutex_timedlock is broken on Solaris 10.
7298            # It can block without timeout in case of EDEADLK.
7299
7300  if test -z "$ac_cv_func_pthread_mutex_timedlock"; then
7301    test "x$silent" != "xyes" && echo "  setting ac_cv_func_pthread_mutex_timedlock to \"no\""
7302    ac_cv_func_pthread_mutex_timedlock="no"
7303  fi
7304
7305        fi
7306        if test $PLATOSVERS -ge 10; then
7307
7308  if test -z "$apr_lock_method"; then
7309    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"USE_PROC_PTHREAD_SERIALIZE\""
7310    apr_lock_method="USE_PROC_PTHREAD_SERIALIZE"
7311  fi
7312
7313        else
7314
7315  if test -z "$apr_lock_method"; then
7316    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"USE_FCNTL_SERIALIZE\""
7317    apr_lock_method="USE_FCNTL_SERIALIZE"
7318  fi
7319
7320        fi
7321        # readdir64_r error handling seems broken on Solaris (at least
7322        # up till 2.8) -- it will return -1 at end-of-directory.
7323
7324  if test -z "$ac_cv_func_readdir64_r"; then
7325    test "x$silent" != "xyes" && echo "  setting ac_cv_func_readdir64_r to \"no\""
7326    ac_cv_func_readdir64_r="no"
7327  fi
7328
7329	;;
7330    *-sunos4*)
7331
7332  if test "x$CPPFLAGS" = "x"; then
7333    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSUNOS4\""
7334    CPPFLAGS="-DSUNOS4"
7335  else
7336    apr_addto_bugger="-DSUNOS4"
7337    for i in $apr_addto_bugger; do
7338      apr_addto_duplicate="0"
7339      for j in $CPPFLAGS; do
7340        if test "x$i" = "x$j"