1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for lighttpd 1.4.32.
4#
5# Report bugs to <[email protected]>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell [email protected] and
278$0: [email protected] about your system, including any
279$0: error possibly output before this message. Then install
280$0: a modern shell, or manually run the script under such a
281$0: shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='lighttpd'
592PACKAGE_TARNAME='lighttpd'
593PACKAGE_VERSION='1.4.32'
594PACKAGE_STRING='lighttpd 1.4.32'
595PACKAGE_BUGREPORT='[email protected]'
596PACKAGE_URL=''
597
598ac_unique_file="src/server.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBDPDK_LIBS
639LIBDPDK_CFLAGS
640LIBPSIO_LIBS
641LIBPSIO_CFLAGS
642LIBMTCP_LIBS
643LIBMTCP_CFLAGS
644CHECK_WITH_FASTCGI_FALSE
645CHECK_WITH_FASTCGI_TRUE
646CROSS_COMPILING_FALSE
647CROSS_COMPILING_TRUE
648SENDFILE_LIB
649CRYPT_LIB
650LUA_LIBS
651LUA_CFLAGS
652MEMCACHE_LIB
653GDBM_LIB
654UUID_LIBS
655SQLITE_LIBS
656SQLITE_CFLAGS
657XML_LIBS
658XML_CFLAGS
659FAM_LIBS
660FAM_CFLAGS
661BZ_LIB
662Z_LIB
663PCRE_LIB
664PCRECONFIG
665SSL_LIB
666DL_LIB
667ATTR_LIB
668LBER_LIB
669LDAP_LIB
670MYSQL_INCLUDE
671MYSQL_LIBS
672MYSQL_CONFIG
673LIBEV_LIBS
674LIBEV_CFLAGS
675PKG_CONFIG_LIBDIR
676PKG_CONFIG_PATH
677PKG_CONFIG
678LIBOBJS
679OTOOL64
680OTOOL
681LIPO
682NMEDIT
683DSYMUTIL
684MANIFEST_TOOL
685RANLIB
686DLLTOOL
687OBJDUMP
688NM
689ac_ct_DUMPBIN
690DUMPBIN
691LIBTOOL
692NO_RDYNAMIC_FALSE
693NO_RDYNAMIC_TRUE
694ac_ct_AR
695AR
696LN_S
697CPP
698LD
699FGREP
700EGREP
701GREP
702SED
703am__fastdepCC_FALSE
704am__fastdepCC_TRUE
705CCDEPMODE
706am__nodep
707AMDEPBACKSLASH
708AMDEP_FALSE
709AMDEP_TRUE
710am__quote
711am__include
712DEPDIR
713OBJEXT
714EXEEXT
715ac_ct_CC
716CPPFLAGS
717LDFLAGS
718CFLAGS
719CC
720AM_BACKSLASH
721AM_DEFAULT_VERBOSITY
722AM_DEFAULT_V
723AM_V
724am__untar
725am__tar
726AMTAR
727am__leading_dot
728SET_MAKE
729AWK
730mkdir_p
731MKDIR_P
732INSTALL_STRIP_PROGRAM
733STRIP
734install_sh
735MAKEINFO
736AUTOHEADER
737AUTOMAKE
738AUTOCONF
739ACLOCAL
740VERSION
741PACKAGE
742CYGPATH_W
743am__isrc
744INSTALL_DATA
745INSTALL_SCRIPT
746INSTALL_PROGRAM
747target_os
748target_vendor
749target_cpu
750target
751host_os
752host_vendor
753host_cpu
754host
755build_os
756build_vendor
757build_cpu
758build
759target_alias
760host_alias
761build_alias
762LIBS
763ECHO_T
764ECHO_N
765ECHO_C
766DEFS
767mandir
768localedir
769libdir
770psdir
771pdfdir
772dvidir
773htmldir
774infodir
775docdir
776oldincludedir
777includedir
778localstatedir
779sharedstatedir
780sysconfdir
781datadir
782datarootdir
783libexecdir
784sbindir
785bindir
786program_transform_name
787prefix
788exec_prefix
789PACKAGE_URL
790PACKAGE_BUGREPORT
791PACKAGE_STRING
792PACKAGE_VERSION
793PACKAGE_TARNAME
794PACKAGE_NAME
795PATH_SEPARATOR
796SHELL'
797ac_subst_files=''
798ac_user_opts='
799enable_option_checking
800enable_silent_rules
801enable_dependency_tracking
802with_gnu_ld
803enable_static
804enable_shared
805with_pic
806enable_fast_install
807with_sysroot
808enable_libtool_lock
809with_libev
810with_mysql
811with_ldap
812with_attr
813with_valgrind
814with_openssl
815with_openssl_includes
816with_openssl_libs
817with_kerberos5
818with_pcre
819with_zlib
820with_bzip2
821with_fam
822with_webdav_props
823with_webdav_locks
824with_gdbm
825with_memcache
826with_lua
827enable_lfs
828enable_ipv6
829enable_mmap
830enable_extra_warnings
831enable_multithreading
832with_libmtcp
833with_libpsio
834with_libdpdk
835enable_netmap
836'
837      ac_precious_vars='build_alias
838host_alias
839target_alias
840CC
841CFLAGS
842LDFLAGS
843LIBS
844CPPFLAGS
845CPP
846PKG_CONFIG
847PKG_CONFIG_PATH
848PKG_CONFIG_LIBDIR
849LIBEV_CFLAGS
850LIBEV_LIBS
851FAM_CFLAGS
852FAM_LIBS
853XML_CFLAGS
854XML_LIBS
855SQLITE_CFLAGS
856SQLITE_LIBS
857LUA_CFLAGS
858LUA_LIBS'
859
860
861# Initialize some variables set by options.
862ac_init_help=
863ac_init_version=false
864ac_unrecognized_opts=
865ac_unrecognized_sep=
866# The variables have the same names as the options, with
867# dashes changed to underlines.
868cache_file=/dev/null
869exec_prefix=NONE
870no_create=
871no_recursion=
872prefix=NONE
873program_prefix=NONE
874program_suffix=NONE
875program_transform_name=s,x,x,
876silent=
877site=
878srcdir=
879verbose=
880x_includes=NONE
881x_libraries=NONE
882
883# Installation directory options.
884# These are left unexpanded so users can "make install exec_prefix=/foo"
885# and all the variables that are supposed to be based on exec_prefix
886# by default will actually change.
887# Use braces instead of parens because sh, perl, etc. also accept them.
888# (The list follows the same order as the GNU Coding Standards.)
889bindir='${exec_prefix}/bin'
890sbindir='${exec_prefix}/sbin'
891libexecdir='${exec_prefix}/libexec'
892datarootdir='${prefix}/share'
893datadir='${datarootdir}'
894sysconfdir='${prefix}/etc'
895sharedstatedir='${prefix}/com'
896localstatedir='${prefix}/var'
897includedir='${prefix}/include'
898oldincludedir='/usr/include'
899docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
900infodir='${datarootdir}/info'
901htmldir='${docdir}'
902dvidir='${docdir}'
903pdfdir='${docdir}'
904psdir='${docdir}'
905libdir='${exec_prefix}/lib'
906localedir='${datarootdir}/locale'
907mandir='${datarootdir}/man'
908
909ac_prev=
910ac_dashdash=
911for ac_option
912do
913  # If the previous option needs an argument, assign it.
914  if test -n "$ac_prev"; then
915    eval $ac_prev=\$ac_option
916    ac_prev=
917    continue
918  fi
919
920  case $ac_option in
921  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
922  *=)   ac_optarg= ;;
923  *)    ac_optarg=yes ;;
924  esac
925
926  # Accept the important Cygnus configure options, so we can diagnose typos.
927
928  case $ac_dashdash$ac_option in
929  --)
930    ac_dashdash=yes ;;
931
932  -bindir | --bindir | --bindi | --bind | --bin | --bi)
933    ac_prev=bindir ;;
934  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
935    bindir=$ac_optarg ;;
936
937  -build | --build | --buil | --bui | --bu)
938    ac_prev=build_alias ;;
939  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
940    build_alias=$ac_optarg ;;
941
942  -cache-file | --cache-file | --cache-fil | --cache-fi \
943  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
944    ac_prev=cache_file ;;
945  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
946  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
947    cache_file=$ac_optarg ;;
948
949  --config-cache | -C)
950    cache_file=config.cache ;;
951
952  -datadir | --datadir | --datadi | --datad)
953    ac_prev=datadir ;;
954  -datadir=* | --datadir=* | --datadi=* | --datad=*)
955    datadir=$ac_optarg ;;
956
957  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
958  | --dataroo | --dataro | --datar)
959    ac_prev=datarootdir ;;
960  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
961  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
962    datarootdir=$ac_optarg ;;
963
964  -disable-* | --disable-*)
965    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
966    # Reject names that are not valid shell variable names.
967    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968      as_fn_error $? "invalid feature name: $ac_useropt"
969    ac_useropt_orig=$ac_useropt
970    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
971    case $ac_user_opts in
972      *"
973"enable_$ac_useropt"
974"*) ;;
975      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
976	 ac_unrecognized_sep=', ';;
977    esac
978    eval enable_$ac_useropt=no ;;
979
980  -docdir | --docdir | --docdi | --doc | --do)
981    ac_prev=docdir ;;
982  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
983    docdir=$ac_optarg ;;
984
985  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
986    ac_prev=dvidir ;;
987  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
988    dvidir=$ac_optarg ;;
989
990  -enable-* | --enable-*)
991    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
992    # Reject names that are not valid shell variable names.
993    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
994      as_fn_error $? "invalid feature name: $ac_useropt"
995    ac_useropt_orig=$ac_useropt
996    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
997    case $ac_user_opts in
998      *"
999"enable_$ac_useropt"
1000"*) ;;
1001      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1002	 ac_unrecognized_sep=', ';;
1003    esac
1004    eval enable_$ac_useropt=\$ac_optarg ;;
1005
1006  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1007  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1008  | --exec | --exe | --ex)
1009    ac_prev=exec_prefix ;;
1010  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1011  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1012  | --exec=* | --exe=* | --ex=*)
1013    exec_prefix=$ac_optarg ;;
1014
1015  -gas | --gas | --ga | --g)
1016    # Obsolete; use --with-gas.
1017    with_gas=yes ;;
1018
1019  -help | --help | --hel | --he | -h)
1020    ac_init_help=long ;;
1021  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1022    ac_init_help=recursive ;;
1023  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1024    ac_init_help=short ;;
1025
1026  -host | --host | --hos | --ho)
1027    ac_prev=host_alias ;;
1028  -host=* | --host=* | --hos=* | --ho=*)
1029    host_alias=$ac_optarg ;;
1030
1031  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1032    ac_prev=htmldir ;;
1033  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1034  | --ht=*)
1035    htmldir=$ac_optarg ;;
1036
1037  -includedir | --includedir | --includedi | --included | --include \
1038  | --includ | --inclu | --incl | --inc)
1039    ac_prev=includedir ;;
1040  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1041  | --includ=* | --inclu=* | --incl=* | --inc=*)
1042    includedir=$ac_optarg ;;
1043
1044  -infodir | --infodir | --infodi | --infod | --info | --inf)
1045    ac_prev=infodir ;;
1046  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1047    infodir=$ac_optarg ;;
1048
1049  -libdir | --libdir | --libdi | --libd)
1050    ac_prev=libdir ;;
1051  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1052    libdir=$ac_optarg ;;
1053
1054  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1055  | --libexe | --libex | --libe)
1056    ac_prev=libexecdir ;;
1057  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1058  | --libexe=* | --libex=* | --libe=*)
1059    libexecdir=$ac_optarg ;;
1060
1061  -localedir | --localedir | --localedi | --localed | --locale)
1062    ac_prev=localedir ;;
1063  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1064    localedir=$ac_optarg ;;
1065
1066  -localstatedir | --localstatedir | --localstatedi | --localstated \
1067  | --localstate | --localstat | --localsta | --localst | --locals)
1068    ac_prev=localstatedir ;;
1069  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1070  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1071    localstatedir=$ac_optarg ;;
1072
1073  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1074    ac_prev=mandir ;;
1075  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1076    mandir=$ac_optarg ;;
1077
1078  -nfp | --nfp | --nf)
1079    # Obsolete; use --without-fp.
1080    with_fp=no ;;
1081
1082  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1083  | --no-cr | --no-c | -n)
1084    no_create=yes ;;
1085
1086  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1087  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1088    no_recursion=yes ;;
1089
1090  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1091  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1092  | --oldin | --oldi | --old | --ol | --o)
1093    ac_prev=oldincludedir ;;
1094  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1095  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1096  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1097    oldincludedir=$ac_optarg ;;
1098
1099  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1100    ac_prev=prefix ;;
1101  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1102    prefix=$ac_optarg ;;
1103
1104  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1105  | --program-pre | --program-pr | --program-p)
1106    ac_prev=program_prefix ;;
1107  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1108  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1109    program_prefix=$ac_optarg ;;
1110
1111  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1112  | --program-suf | --program-su | --program-s)
1113    ac_prev=program_suffix ;;
1114  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1115  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1116    program_suffix=$ac_optarg ;;
1117
1118  -program-transform-name | --program-transform-name \
1119  | --program-transform-nam | --program-transform-na \
1120  | --program-transform-n | --program-transform- \
1121  | --program-transform | --program-transfor \
1122  | --program-transfo | --program-transf \
1123  | --program-trans | --program-tran \
1124  | --progr-tra | --program-tr | --program-t)
1125    ac_prev=program_transform_name ;;
1126  -program-transform-name=* | --program-transform-name=* \
1127  | --program-transform-nam=* | --program-transform-na=* \
1128  | --program-transform-n=* | --program-transform-=* \
1129  | --program-transform=* | --program-transfor=* \
1130  | --program-transfo=* | --program-transf=* \
1131  | --program-trans=* | --program-tran=* \
1132  | --progr-tra=* | --program-tr=* | --program-t=*)
1133    program_transform_name=$ac_optarg ;;
1134
1135  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1136    ac_prev=pdfdir ;;
1137  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1138    pdfdir=$ac_optarg ;;
1139
1140  -psdir | --psdir | --psdi | --psd | --ps)
1141    ac_prev=psdir ;;
1142  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1143    psdir=$ac_optarg ;;
1144
1145  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1146  | -silent | --silent | --silen | --sile | --sil)
1147    silent=yes ;;
1148
1149  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1150    ac_prev=sbindir ;;
1151  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1152  | --sbi=* | --sb=*)
1153    sbindir=$ac_optarg ;;
1154
1155  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1156  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1157  | --sharedst | --shareds | --shared | --share | --shar \
1158  | --sha | --sh)
1159    ac_prev=sharedstatedir ;;
1160  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1161  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1162  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1163  | --sha=* | --sh=*)
1164    sharedstatedir=$ac_optarg ;;
1165
1166  -site | --site | --sit)
1167    ac_prev=site ;;
1168  -site=* | --site=* | --sit=*)
1169    site=$ac_optarg ;;
1170
1171  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1172    ac_prev=srcdir ;;
1173  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1174    srcdir=$ac_optarg ;;
1175
1176  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1177  | --syscon | --sysco | --sysc | --sys | --sy)
1178    ac_prev=sysconfdir ;;
1179  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1180  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1181    sysconfdir=$ac_optarg ;;
1182
1183  -target | --target | --targe | --targ | --tar | --ta | --t)
1184    ac_prev=target_alias ;;
1185  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1186    target_alias=$ac_optarg ;;
1187
1188  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1189    verbose=yes ;;
1190
1191  -version | --version | --versio | --versi | --vers | -V)
1192    ac_init_version=: ;;
1193
1194  -with-* | --with-*)
1195    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1196    # Reject names that are not valid shell variable names.
1197    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1198      as_fn_error $? "invalid package name: $ac_useropt"
1199    ac_useropt_orig=$ac_useropt
1200    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201    case $ac_user_opts in
1202      *"
1203"with_$ac_useropt"
1204"*) ;;
1205      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1206	 ac_unrecognized_sep=', ';;
1207    esac
1208    eval with_$ac_useropt=\$ac_optarg ;;
1209
1210  -without-* | --without-*)
1211    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1212    # Reject names that are not valid shell variable names.
1213    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1214      as_fn_error $? "invalid package name: $ac_useropt"
1215    ac_useropt_orig=$ac_useropt
1216    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1217    case $ac_user_opts in
1218      *"
1219"with_$ac_useropt"
1220"*) ;;
1221      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1222	 ac_unrecognized_sep=', ';;
1223    esac
1224    eval with_$ac_useropt=no ;;
1225
1226  --x)
1227    # Obsolete; use --with-x.
1228    with_x=yes ;;
1229
1230  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1231  | --x-incl | --x-inc | --x-in | --x-i)
1232    ac_prev=x_includes ;;
1233  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1234  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1235    x_includes=$ac_optarg ;;
1236
1237  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1238  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1239    ac_prev=x_libraries ;;
1240  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1241  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1242    x_libraries=$ac_optarg ;;
1243
1244  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1245Try \`$0 --help' for more information"
1246    ;;
1247
1248  *=*)
1249    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1250    # Reject names that are not valid shell variable names.
1251    case $ac_envvar in #(
1252      '' | [0-9]* | *[!_$as_cr_alnum]* )
1253      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1254    esac
1255    eval $ac_envvar=\$ac_optarg
1256    export $ac_envvar ;;
1257
1258  *)
1259    # FIXME: should be removed in autoconf 3.0.
1260    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1261    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1262      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1263    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1264    ;;
1265
1266  esac
1267done
1268
1269if test -n "$ac_prev"; then
1270  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1271  as_fn_error $? "missing argument to $ac_option"
1272fi
1273
1274if test -n "$ac_unrecognized_opts"; then
1275  case $enable_option_checking in
1276    no) ;;
1277    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1278    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1279  esac
1280fi
1281
1282# Check all directory arguments for consistency.
1283for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1284		datadir sysconfdir sharedstatedir localstatedir includedir \
1285		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1286		libdir localedir mandir
1287do
1288  eval ac_val=\$$ac_var
1289  # Remove trailing slashes.
1290  case $ac_val in
1291    */ )
1292      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1293      eval $ac_var=\$ac_val;;
1294  esac
1295  # Be sure to have absolute directory names.
1296  case $ac_val in
1297    [\\/$]* | ?:[\\/]* )  continue;;
1298    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1299  esac
1300  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1301done
1302
1303# There might be people who depend on the old broken behavior: `$host'
1304# used to hold the argument of --host etc.
1305# FIXME: To remove some day.
1306build=$build_alias
1307host=$host_alias
1308target=$target_alias
1309
1310# FIXME: To remove some day.
1311if test "x$host_alias" != x; then
1312  if test "x$build_alias" = x; then
1313    cross_compiling=maybe
1314  elif test "x$build_alias" != "x$host_alias"; then
1315    cross_compiling=yes
1316  fi
1317fi
1318
1319ac_tool_prefix=
1320test -n "$host_alias" && ac_tool_prefix=$host_alias-
1321
1322test "$silent" = yes && exec 6>/dev/null
1323
1324
1325ac_pwd=`pwd` && test -n "$ac_pwd" &&
1326ac_ls_di=`ls -di .` &&
1327ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1328  as_fn_error $? "working directory cannot be determined"
1329test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1330  as_fn_error $? "pwd does not report name of working directory"
1331
1332
1333# Find the source files, if location was not specified.
1334if test -z "$srcdir"; then
1335  ac_srcdir_defaulted=yes
1336  # Try the directory containing this script, then the parent directory.
1337  ac_confdir=`$as_dirname -- "$as_myself" ||
1338$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1339	 X"$as_myself" : 'X\(//\)[^/]' \| \
1340	 X"$as_myself" : 'X\(//\)$' \| \
1341	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1342$as_echo X"$as_myself" |
1343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1344	    s//\1/
1345	    q
1346	  }
1347	  /^X\(\/\/\)[^/].*/{
1348	    s//\1/
1349	    q
1350	  }
1351	  /^X\(\/\/\)$/{
1352	    s//\1/
1353	    q
1354	  }
1355	  /^X\(\/\).*/{
1356	    s//\1/
1357	    q
1358	  }
1359	  s/.*/./; q'`
1360  srcdir=$ac_confdir
1361  if test ! -r "$srcdir/$ac_unique_file"; then
1362    srcdir=..
1363  fi
1364else
1365  ac_srcdir_defaulted=no
1366fi
1367if test ! -r "$srcdir/$ac_unique_file"; then
1368  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1369  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1370fi
1371ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1372ac_abs_confdir=`(
1373	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1374	pwd)`
1375# When building in place, set srcdir=.
1376if test "$ac_abs_confdir" = "$ac_pwd"; then
1377  srcdir=.
1378fi
1379# Remove unnecessary trailing slashes from srcdir.
1380# Double slashes in file names in object file debugging info
1381# mess up M-x gdb in Emacs.
1382case $srcdir in
1383*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1384esac
1385for ac_var in $ac_precious_vars; do
1386  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1387  eval ac_env_${ac_var}_value=\$${ac_var}
1388  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1389  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1390done
1391
1392#
1393# Report the --help message.
1394#
1395if test "$ac_init_help" = "long"; then
1396  # Omit some internal or obsolete options to make the list less imposing.
1397  # This message is too long to be a string in the A/UX 3.1 sh.
1398  cat <<_ACEOF
1399\`configure' configures lighttpd 1.4.32 to adapt to many kinds of systems.
1400
1401Usage: $0 [OPTION]... [VAR=VALUE]...
1402
1403To assign environment variables (e.g., CC, CFLAGS...), specify them as
1404VAR=VALUE.  See below for descriptions of some of the useful variables.
1405
1406Defaults for the options are specified in brackets.
1407
1408Configuration:
1409  -h, --help              display this help and exit
1410      --help=short        display options specific to this package
1411      --help=recursive    display the short help of all the included packages
1412  -V, --version           display version information and exit
1413  -q, --quiet, --silent   do not print \`checking ...' messages
1414      --cache-file=FILE   cache test results in FILE [disabled]
1415  -C, --config-cache      alias for \`--cache-file=config.cache'
1416  -n, --no-create         do not create output files
1417      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1418
1419Installation directories:
1420  --prefix=PREFIX         install architecture-independent files in PREFIX
1421                          [$ac_default_prefix]
1422  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1423                          [PREFIX]
1424
1425By default, \`make install' will install all the files in
1426\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1427an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1428for instance \`--prefix=\$HOME'.
1429
1430For better control, use the options below.
1431
1432Fine tuning of the installation directories:
1433  --bindir=DIR            user executables [EPREFIX/bin]
1434  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1435  --libexecdir=DIR        program executables [EPREFIX/libexec]
1436  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1437  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1438  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1439  --libdir=DIR            object code libraries [EPREFIX/lib]
1440  --includedir=DIR        C header files [PREFIX/include]
1441  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1442  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1443  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1444  --infodir=DIR           info documentation [DATAROOTDIR/info]
1445  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1446  --mandir=DIR            man documentation [DATAROOTDIR/man]
1447  --docdir=DIR            documentation root [DATAROOTDIR/doc/lighttpd]
1448  --htmldir=DIR           html documentation [DOCDIR]
1449  --dvidir=DIR            dvi documentation [DOCDIR]
1450  --pdfdir=DIR            pdf documentation [DOCDIR]
1451  --psdir=DIR             ps documentation [DOCDIR]
1452_ACEOF
1453
1454  cat <<\_ACEOF
1455
1456Program names:
1457  --program-prefix=PREFIX            prepend PREFIX to installed program names
1458  --program-suffix=SUFFIX            append SUFFIX to installed program names
1459  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1460
1461System types:
1462  --build=BUILD     configure for building on BUILD [guessed]
1463  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1464  --target=TARGET   configure for building compilers for TARGET [HOST]
1465_ACEOF
1466fi
1467
1468if test -n "$ac_init_help"; then
1469  case $ac_init_help in
1470     short | recursive ) echo "Configuration of lighttpd 1.4.32:";;
1471   esac
1472  cat <<\_ACEOF
1473
1474Optional Features:
1475  --disable-option-checking  ignore unrecognized --enable/--with options
1476  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1477  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1478  --enable-silent-rules   less verbose build output (undo: "make V=1")
1479  --disable-silent-rules  verbose build output (undo: "make V=0")
1480  --enable-dependency-tracking
1481                          do not reject slow dependency extractors
1482  --disable-dependency-tracking
1483                          speeds up one-time build
1484  --enable-static[=PKGS]  build static libraries [default=no]
1485  --enable-shared[=PKGS]  build shared libraries [default=yes]
1486  --enable-fast-install[=PKGS]
1487                          optimize for fast installation [default=yes]
1488  --disable-libtool-lock  avoid locking (might break parallel builds)
1489  --enable-lfs            Turn on Large File System (default)
1490  --disable-ipv6          disable IPv6 support
1491  --enable-mmap           use mmap if available (DANGEROUS, allows local users
1492                          to trigger SIGBUS crashes)
1493  --enable-extra-warnings enable extra warnings (gcc specific)
1494  --enable-multithreading enable posix multi-threading support
1495  --enable-netmap         Turn on Netmap support
1496
1497Optional Packages:
1498  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1499  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1500  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1501  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1502                          both]
1503  --with-sysroot=DIR Search for dependent libraries within DIR
1504                        (or the compiler's sysroot if not specified).
1505  --with-libev[=PATH]     Include libev support for fdevent handlers in
1506                          PATH/include and PATH/lib
1507  --with-mysql[=PATH]     Include MySQL support. PATH is the path to
1508                          'mysql_config'
1509  --with-ldap             enable LDAP support
1510  --with-attr             enable extended attribute support
1511  --with-valgrind         enable internal support for valgrind
1512  --with-openssl[=DIR]    Include openssl support (default no)
1513  --with-openssl-includes=DIR
1514                          OpenSSL includes
1515  --with-openssl-libs=DIR OpenSSL libraries
1516  --with-kerberos5        use Kerberos5 support with OpenSSL
1517  --with-pcre             Enable pcre support (default yes)
1518  --with-zlib             Enable zlib support for mod_compress
1519  --with-bzip2            Enable bzip2 support for mod_compress
1520  --with-fam              fam/gamin for reducing number of stat() calls
1521  --with-webdav-props     properties in mod_webdav
1522  --with-webdav-locks     locks in mod_webdav
1523  --with-gdbm             gdbm storage for mod_trigger_b4_dl
1524  --with-memcache         memcached storage for mod_trigger_b4_dl
1525  --with-lua              lua engine for mod_cml
1526  --with-libmtcp[=PATH]   Include libmtcp support in PATH/include and PATH/lib
1527  --with-libpsio[=PATH]   Include libpsio support in PATH/include and PATH/lib
1528  --with-libdpdk[=PATH]   Include libdpdk support in PATH/include and PATH/lib
1529
1530Some influential environment variables:
1531  CC          C compiler command
1532  CFLAGS      C compiler flags
1533  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1534              nonstandard directory <lib dir>
1535  LIBS        libraries to pass to the linker, e.g. -l<library>
1536  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1537              you have headers in a nonstandard directory <include dir>
1538  CPP         C preprocessor
1539  PKG_CONFIG  path to pkg-config utility
1540  PKG_CONFIG_PATH
1541              directories to add to pkg-config's search path
1542  PKG_CONFIG_LIBDIR
1543              path overriding pkg-config's built-in search path
1544  LIBEV_CFLAGS
1545              C compiler flags for LIBEV, overriding pkg-config
1546  LIBEV_LIBS  linker flags for LIBEV, overriding pkg-config
1547  FAM_CFLAGS  C compiler flags for FAM, overriding pkg-config
1548  FAM_LIBS    linker flags for FAM, overriding pkg-config
1549  XML_CFLAGS  C compiler flags for XML, overriding pkg-config
1550  XML_LIBS    linker flags for XML, overriding pkg-config
1551  SQLITE_CFLAGS
1552              C compiler flags for SQLITE, overriding pkg-config
1553  SQLITE_LIBS linker flags for SQLITE, overriding pkg-config
1554  LUA_CFLAGS  C compiler flags for LUA, overriding pkg-config
1555  LUA_LIBS    linker flags for LUA, overriding pkg-config
1556
1557Use these variables to override the choices made by `configure' or to help
1558it to find libraries and programs with nonstandard names/locations.
1559
1560Report bugs to <contact@lighttpd.net>.
1561_ACEOF
1562ac_status=$?
1563fi
1564
1565if test "$ac_init_help" = "recursive"; then
1566  # If there are subdirs, report their specific --help.
1567  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1568    test -d "$ac_dir" ||
1569      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1570      continue
1571    ac_builddir=.
1572
1573case "$ac_dir" in
1574.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1575*)
1576  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1577  # A ".." for each directory in $ac_dir_suffix.
1578  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1579  case $ac_top_builddir_sub in
1580  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1581  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1582  esac ;;
1583esac
1584ac_abs_top_builddir=$ac_pwd
1585ac_abs_builddir=$ac_pwd$ac_dir_suffix
1586# for backward compatibility:
1587ac_top_builddir=$ac_top_build_prefix
1588
1589case $srcdir in
1590  .)  # We are building in place.
1591    ac_srcdir=.
1592    ac_top_srcdir=$ac_top_builddir_sub
1593    ac_abs_top_srcdir=$ac_pwd ;;
1594  [\\/]* | ?:[\\/]* )  # Absolute name.
1595    ac_srcdir=$srcdir$ac_dir_suffix;
1596    ac_top_srcdir=$srcdir
1597    ac_abs_top_srcdir=$srcdir ;;
1598  *) # Relative name.
1599    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1600    ac_top_srcdir=$ac_top_build_prefix$srcdir
1601    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1602esac
1603ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1604
1605    cd "$ac_dir" || { ac_status=$?; continue; }
1606    # Check for guested configure.
1607    if test -f "$ac_srcdir/configure.gnu"; then
1608      echo &&
1609      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1610    elif test -f "$ac_srcdir/configure"; then
1611      echo &&
1612      $SHELL "$ac_srcdir/configure" --help=recursive
1613    else
1614      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1615    fi || ac_status=$?
1616    cd "$ac_pwd" || { ac_status=$?; break; }
1617  done
1618fi
1619
1620test -n "$ac_init_help" && exit $ac_status
1621if $ac_init_version; then
1622  cat <<\_ACEOF
1623lighttpd configure 1.4.32
1624generated by GNU Autoconf 2.69
1625
1626Copyright (C) 2012 Free Software Foundation, Inc.
1627This configure script is free software; the Free Software Foundation
1628gives unlimited permission to copy, distribute and modify it.
1629_ACEOF
1630  exit
1631fi
1632
1633## ------------------------ ##
1634## Autoconf initialization. ##
1635## ------------------------ ##
1636
1637# ac_fn_c_try_compile LINENO
1638# --------------------------
1639# Try to compile conftest.$ac_ext, and return whether this succeeded.
1640ac_fn_c_try_compile ()
1641{
1642  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643  rm -f conftest.$ac_objext
1644  if { { ac_try="$ac_compile"
1645case "(($ac_try" in
1646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647  *) ac_try_echo=$ac_try;;
1648esac
1649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650$as_echo "$ac_try_echo"; } >&5
1651  (eval "$ac_compile") 2>conftest.err
1652  ac_status=$?
1653  if test -s conftest.err; then
1654    grep -v '^ *+' conftest.err >conftest.er1
1655    cat conftest.er1 >&5
1656    mv -f conftest.er1 conftest.err
1657  fi
1658  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659  test $ac_status = 0; } && {
1660	 test -z "$ac_c_werror_flag" ||
1661	 test ! -s conftest.err
1662       } && test -s conftest.$ac_objext; then :
1663  ac_retval=0
1664else
1665  $as_echo "$as_me: failed program was:" >&5
1666sed 's/^/| /' conftest.$ac_ext >&5
1667
1668	ac_retval=1
1669fi
1670  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671  as_fn_set_status $ac_retval
1672
1673} # ac_fn_c_try_compile
1674
1675# ac_fn_c_try_cpp LINENO
1676# ----------------------
1677# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1678ac_fn_c_try_cpp ()
1679{
1680  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681  if { { ac_try="$ac_cpp conftest.$ac_ext"
1682case "(($ac_try" in
1683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684  *) ac_try_echo=$ac_try;;
1685esac
1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687$as_echo "$ac_try_echo"; } >&5
1688  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1689  ac_status=$?
1690  if test -s conftest.err; then
1691    grep -v '^ *+' conftest.err >conftest.er1
1692    cat conftest.er1 >&5
1693    mv -f conftest.er1 conftest.err
1694  fi
1695  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696  test $ac_status = 0; } > conftest.i && {
1697	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1698	 test ! -s conftest.err
1699       }; then :
1700  ac_retval=0
1701else
1702  $as_echo "$as_me: failed program was:" >&5
1703sed 's/^/| /' conftest.$ac_ext >&5
1704
1705    ac_retval=1
1706fi
1707  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708  as_fn_set_status $ac_retval
1709
1710} # ac_fn_c_try_cpp
1711
1712# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1713# -------------------------------------------------------
1714# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1715# the include files in INCLUDES and setting the cache variable VAR
1716# accordingly.
1717ac_fn_c_check_header_mongrel ()
1718{
1719  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720  if eval \${$3+:} false; then :
1721  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1722$as_echo_n "checking for $2... " >&6; }
1723if eval \${$3+:} false; then :
1724  $as_echo_n "(cached) " >&6
1725fi
1726eval ac_res=\$$3
1727	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1728$as_echo "$ac_res" >&6; }
1729else
1730  # Is the header compilable?
1731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1732$as_echo_n "checking $2 usability... " >&6; }
1733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734/* end confdefs.h.  */
1735$4
1736#include <$2>
1737_ACEOF
1738if ac_fn_c_try_compile "$LINENO"; then :
1739  ac_header_compiler=yes
1740else
1741  ac_header_compiler=no
1742fi
1743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1745$as_echo "$ac_header_compiler" >&6; }
1746
1747# Is the header present?
1748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1749$as_echo_n "checking $2 presence... " >&6; }
1750cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1751/* end confdefs.h.  */
1752#include <$2>
1753_ACEOF
1754if ac_fn_c_try_cpp "$LINENO"; then :
1755  ac_header_preproc=yes
1756else
1757  ac_header_preproc=no
1758fi
1759rm -f conftest.err conftest.i conftest.$ac_ext
1760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1761$as_echo "$ac_header_preproc" >&6; }
1762
1763# So?  What about this header?
1764case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1765  yes:no: )
1766    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1767$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1768    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1769$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1770    ;;
1771  no:yes:* )
1772    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1773$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1774    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1775$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1776    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1777$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1778    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1779$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1780    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1781$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1782( $as_echo "## ----------------------------------- ##
1783## Report this to [email protected] ##
1784## ----------------------------------- ##"
1785     ) | sed "s/^/$as_me: WARNING:     /" >&2
1786    ;;
1787esac
1788  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1789$as_echo_n "checking for $2... " >&6; }
1790if eval \${$3+:} false; then :
1791  $as_echo_n "(cached) " >&6
1792else
1793  eval "$3=\$ac_header_compiler"
1794fi
1795eval ac_res=\$$3
1796	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797$as_echo "$ac_res" >&6; }
1798fi
1799  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800
1801} # ac_fn_c_check_header_mongrel
1802
1803# ac_fn_c_try_run LINENO
1804# ----------------------
1805# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1806# that executables *can* be run.
1807ac_fn_c_try_run ()
1808{
1809  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810  if { { ac_try="$ac_link"
1811case "(($ac_try" in
1812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813  *) ac_try_echo=$ac_try;;
1814esac
1815eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816$as_echo "$ac_try_echo"; } >&5
1817  (eval "$ac_link") 2>&5
1818  ac_status=$?
1819  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1821  { { case "(($ac_try" in
1822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823  *) ac_try_echo=$ac_try;;
1824esac
1825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826$as_echo "$ac_try_echo"; } >&5
1827  (eval "$ac_try") 2>&5
1828  ac_status=$?
1829  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830  test $ac_status = 0; }; }; then :
1831  ac_retval=0
1832else
1833  $as_echo "$as_me: program exited with status $ac_status" >&5
1834       $as_echo "$as_me: failed program was:" >&5
1835sed 's/^/| /' conftest.$ac_ext >&5
1836
1837       ac_retval=$ac_status
1838fi
1839  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1840  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841  as_fn_set_status $ac_retval
1842
1843} # ac_fn_c_try_run
1844
1845# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1846# -------------------------------------------------------
1847# Tests whether HEADER exists and can be compiled using the include files in
1848# INCLUDES, setting the cache variable VAR accordingly.
1849ac_fn_c_check_header_compile ()
1850{
1851  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1853$as_echo_n "checking for $2... " >&6; }
1854if eval \${$3+:} false; then :
1855  $as_echo_n "(cached) " >&6
1856else
1857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1858/* end confdefs.h.  */
1859$4
1860#include <$2>
1861_ACEOF
1862if ac_fn_c_try_compile "$LINENO"; then :
1863  eval "$3=yes"
1864else
1865  eval "$3=no"
1866fi
1867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1868fi
1869eval ac_res=\$$3
1870	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871$as_echo "$ac_res" >&6; }
1872  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873
1874} # ac_fn_c_check_header_compile
1875
1876# ac_fn_c_try_link LINENO
1877# -----------------------
1878# Try to link conftest.$ac_ext, and return whether this succeeded.
1879ac_fn_c_try_link ()
1880{
1881  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882  rm -f conftest.$ac_objext conftest$ac_exeext
1883  if { { ac_try="$ac_link"
1884case "(($ac_try" in
1885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1886  *) ac_try_echo=$ac_try;;
1887esac
1888eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889$as_echo "$ac_try_echo"; } >&5
1890  (eval "$ac_link") 2>conftest.err
1891  ac_status=$?
1892  if test -s conftest.err; then
1893    grep -v '^ *+' conftest.err >conftest.er1
1894    cat conftest.er1 >&5
1895    mv -f conftest.er1 conftest.err
1896  fi
1897  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898  test $ac_status = 0; } && {
1899	 test -z "$ac_c_werror_flag" ||
1900	 test ! -s conftest.err
1901       } && test -s conftest$ac_exeext && {
1902	 test "$cross_compiling" = yes ||
1903	 test -x conftest$ac_exeext
1904       }; then :
1905  ac_retval=0
1906else
1907  $as_echo "$as_me: failed program was:" >&5
1908sed 's/^/| /' conftest.$ac_ext >&5
1909
1910	ac_retval=1
1911fi
1912  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1913  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1914  # interfere with the next link command; also delete a directory that is
1915  # left behind by Apple's compiler.  We do this before executing the actions.
1916  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1917  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1918  as_fn_set_status $ac_retval
1919
1920} # ac_fn_c_try_link
1921
1922# ac_fn_c_check_func LINENO FUNC VAR
1923# ----------------------------------
1924# Tests whether FUNC exists, setting the cache variable VAR accordingly
1925ac_fn_c_check_func ()
1926{
1927  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929$as_echo_n "checking for $2... " >&6; }
1930if eval \${$3+:} false; then :
1931  $as_echo_n "(cached) " >&6
1932else
1933  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934/* end confdefs.h.  */
1935/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1936   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1937#define $2 innocuous_$2
1938
1939/* System header to define __stub macros and hopefully few prototypes,
1940    which can conflict with char $2 (); below.
1941    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1942    <limits.h> exists even on freestanding compilers.  */
1943
1944#ifdef __STDC__
1945# include <limits.h>
1946#else
1947# include <assert.h>
1948#endif
1949
1950#undef $2
1951
1952/* Override any GCC internal prototype to avoid an error.
1953   Use char because int might match the return type of a GCC
1954   builtin and then its argument prototype would still apply.  */
1955#ifdef __cplusplus
1956extern "C"
1957#endif
1958char $2 ();
1959/* The GNU C library defines this for functions which it implements
1960    to always fail with ENOSYS.  Some functions are actually named
1961    something starting with __ and the normal name is an alias.  */
1962#if defined __stub_$2 || defined __stub___$2
1963choke me
1964#endif
1965
1966int
1967main ()
1968{
1969return $2 ();
1970  ;
1971  return 0;
1972}
1973_ACEOF
1974if ac_fn_c_try_link "$LINENO"; then :
1975  eval "$3=yes"
1976else
1977  eval "$3=no"
1978fi
1979rm -f core conftest.err conftest.$ac_objext \
1980    conftest$ac_exeext conftest.$ac_ext
1981fi
1982eval ac_res=\$$3
1983	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1984$as_echo "$ac_res" >&6; }
1985  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1986
1987} # ac_fn_c_check_func
1988
1989# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1990# -------------------------------------------
1991# Tests whether TYPE exists after having included INCLUDES, setting cache
1992# variable VAR accordingly.
1993ac_fn_c_check_type ()
1994{
1995  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997$as_echo_n "checking for $2... " >&6; }
1998if eval \${$3+:} false; then :
1999  $as_echo_n "(cached) " >&6
2000else
2001  eval "$3=no"
2002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003/* end confdefs.h.  */
2004$4
2005int
2006main ()
2007{
2008if (sizeof ($2))
2009	 return 0;
2010  ;
2011  return 0;
2012}
2013_ACEOF
2014if ac_fn_c_try_compile "$LINENO"; then :
2015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016/* end confdefs.h.  */
2017$4
2018int
2019main ()
2020{
2021if (sizeof (($2)))
2022	    return 0;
2023  ;
2024  return 0;
2025}
2026_ACEOF
2027if ac_fn_c_try_compile "$LINENO"; then :
2028
2029else
2030  eval "$3=yes"
2031fi
2032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033fi
2034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035fi
2036eval ac_res=\$$3
2037	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2038$as_echo "$ac_res" >&6; }
2039  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2040
2041} # ac_fn_c_check_type
2042
2043# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2044# ----------------------------------------------------
2045# Tries to find if the field MEMBER exists in type AGGR, after including
2046# INCLUDES, setting cache variable VAR accordingly.
2047ac_fn_c_check_member ()
2048{
2049  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2051$as_echo_n "checking for $2.$3... " >&6; }
2052if eval \${$4+:} false; then :
2053  $as_echo_n "(cached) " >&6
2054else
2055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056/* end confdefs.h.  */
2057$5
2058int
2059main ()
2060{
2061static $2 ac_aggr;
2062if (ac_aggr.$3)
2063return 0;
2064  ;
2065  return 0;
2066}
2067_ACEOF
2068if ac_fn_c_try_compile "$LINENO"; then :
2069  eval "$4=yes"
2070else
2071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072/* end confdefs.h.  */
2073$5
2074int
2075main ()
2076{
2077static $2 ac_aggr;
2078if (sizeof ac_aggr.$3)
2079return 0;
2080  ;
2081  return 0;
2082}
2083_ACEOF
2084if ac_fn_c_try_compile "$LINENO"; then :
2085  eval "$4=yes"
2086else
2087  eval "$4=no"
2088fi
2089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090fi
2091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092fi
2093eval ac_res=\$$4
2094	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2095$as_echo "$ac_res" >&6; }
2096  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097
2098} # ac_fn_c_check_member
2099
2100# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2101# --------------------------------------------
2102# Tries to find the compile-time value of EXPR in a program that includes
2103# INCLUDES, setting VAR accordingly. Returns whether the value could be
2104# computed
2105ac_fn_c_compute_int ()
2106{
2107  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108  if test "$cross_compiling" = yes; then
2109    # Depending upon the size, compute the lo and hi bounds.
2110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111/* end confdefs.h.  */
2112$4
2113int
2114main ()
2115{
2116static int test_array [1 - 2 * !(($2) >= 0)];
2117test_array [0] = 0;
2118return test_array [0];
2119
2120  ;
2121  return 0;
2122}
2123_ACEOF
2124if ac_fn_c_try_compile "$LINENO"; then :
2125  ac_lo=0 ac_mid=0
2126  while :; do
2127    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128/* end confdefs.h.  */
2129$4
2130int
2131main ()
2132{
2133static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2134test_array [0] = 0;
2135return test_array [0];
2136
2137  ;
2138  return 0;
2139}
2140_ACEOF
2141if ac_fn_c_try_compile "$LINENO"; then :
2142  ac_hi=$ac_mid; break
2143else
2144  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2145			if test $ac_lo -le $ac_mid; then
2146			  ac_lo= ac_hi=
2147			  break
2148			fi
2149			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2150fi
2151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152  done
2153else
2154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155/* end confdefs.h.  */
2156$4
2157int
2158main ()
2159{
2160static int test_array [1 - 2 * !(($2) < 0)];
2161test_array [0] = 0;
2162return test_array [0];
2163
2164  ;
2165  return 0;
2166}
2167_ACEOF
2168if ac_fn_c_try_compile "$LINENO"; then :
2169  ac_hi=-1 ac_mid=-1
2170  while :; do
2171    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2172/* end confdefs.h.  */
2173$4
2174int
2175main ()
2176{
2177static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2178test_array [0] = 0;
2179return test_array [0];
2180
2181  ;
2182  return 0;
2183}
2184_ACEOF
2185if ac_fn_c_try_compile "$LINENO"; then :
2186  ac_lo=$ac_mid; break
2187else
2188  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2189			if test $ac_mid -le $ac_hi; then
2190			  ac_lo= ac_hi=
2191			  break
2192			fi
2193			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2194fi
2195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196  done
2197else
2198  ac_lo= ac_hi=
2199fi
2200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201fi
2202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2203# Binary search between lo and hi bounds.
2204while test "x$ac_lo" != "x$ac_hi"; do
2205  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207/* end confdefs.h.  */
2208$4
2209int
2210main ()
2211{
2212static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2213test_array [0] = 0;
2214return test_array [0];
2215
2216  ;
2217  return 0;
2218}
2219_ACEOF
2220if ac_fn_c_try_compile "$LINENO"; then :
2221  ac_hi=$ac_mid
2222else
2223  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2224fi
2225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2226done
2227case $ac_lo in #((
2228?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2229'') ac_retval=1 ;;
2230esac
2231  else
2232    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233/* end confdefs.h.  */
2234$4
2235static long int longval () { return $2; }
2236static unsigned long int ulongval () { return $2; }
2237#include <stdio.h>
2238#include <stdlib.h>
2239int
2240main ()
2241{
2242
2243  FILE *f = fopen ("conftest.val", "w");
2244  if (! f)
2245    return 1;
2246  if (($2) < 0)
2247    {
2248      long int i = longval ();
2249      if (i != ($2))
2250	return 1;
2251      fprintf (f, "%ld", i);
2252    }
2253  else
2254    {
2255      unsigned long int i = ulongval ();
2256      if (i != ($2))
2257	return 1;
2258      fprintf (f, "%lu", i);
2259    }
2260  /* Do not output a trailing newline, as this causes \r\n confusion
2261     on some platforms.  */
2262  return ferror (f) || fclose (f) != 0;
2263
2264  ;
2265  return 0;
2266}
2267_ACEOF
2268if ac_fn_c_try_run "$LINENO"; then :
2269  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2270else
2271  ac_retval=1
2272fi
2273rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2274  conftest.$ac_objext conftest.beam conftest.$ac_ext
2275rm -f conftest.val
2276
2277  fi
2278  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2279  as_fn_set_status $ac_retval
2280
2281} # ac_fn_c_compute_int
2282cat >config.log <<_ACEOF
2283This file contains any messages produced by compilers while
2284running configure, to aid debugging if configure makes a mistake.
2285
2286It was created by lighttpd $as_me 1.4.32, which was
2287generated by GNU Autoconf 2.69.  Invocation command line was
2288
2289  $ $0 $@
2290
2291_ACEOF
2292exec 5>>config.log
2293{
2294cat <<_ASUNAME
2295## --------- ##
2296## Platform. ##
2297## --------- ##
2298
2299hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2300uname -m = `(uname -m) 2>/dev/null || echo unknown`
2301uname -r = `(uname -r) 2>/dev/null || echo unknown`
2302uname -s = `(uname -s) 2>/dev/null || echo unknown`
2303uname -v = `(uname -v) 2>/dev/null || echo unknown`
2304
2305/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2306/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2307
2308/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2309/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2310/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2311/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2312/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2313/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2314/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2315
2316_ASUNAME
2317
2318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2319for as_dir in $PATH
2320do
2321  IFS=$as_save_IFS
2322  test -z "$as_dir" && as_dir=.
2323    $as_echo "PATH: $as_dir"
2324  done
2325IFS=$as_save_IFS
2326
2327} >&5
2328
2329cat >&5 <<_ACEOF
2330
2331
2332## ----------- ##
2333## Core tests. ##
2334## ----------- ##
2335
2336_ACEOF
2337
2338
2339# Keep a trace of the command line.
2340# Strip out --no-create and --no-recursion so they do not pile up.
2341# Strip out --silent because we don't want to record it for future runs.
2342# Also quote any args containing shell meta-characters.
2343# Make two passes to allow for proper duplicate-argument suppression.
2344ac_configure_args=
2345ac_configure_args0=
2346ac_configure_args1=
2347ac_must_keep_next=false
2348for ac_pass in 1 2
2349do
2350  for ac_arg
2351  do
2352    case $ac_arg in
2353    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2354    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2355    | -silent | --silent | --silen | --sile | --sil)
2356      continue ;;
2357    *\'*)
2358      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2359    esac
2360    case $ac_pass in
2361    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2362    2)
2363      as_fn_append ac_configure_args1 " '$ac_arg'"
2364      if test $ac_must_keep_next = true; then
2365	ac_must_keep_next=false # Got value, back to normal.
2366      else
2367	case $ac_arg in
2368	  *=* | --config-cache | -C | -disable-* | --disable-* \
2369	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2370	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2371	  | -with-* | --with-* | -without-* | --without-* | --x)
2372	    case "$ac_configure_args0 " in
2373	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2374	    esac
2375	    ;;
2376	  -* ) ac_must_keep_next=true ;;
2377	esac
2378      fi
2379      as_fn_append ac_configure_args " '$ac_arg'"
2380      ;;
2381    esac
2382  done
2383done
2384{ ac_configure_args0=; unset ac_configure_args0;}
2385{ ac_configure_args1=; unset ac_configure_args1;}
2386
2387# When interrupted or exit'd, cleanup temporary files, and complete
2388# config.log.  We remove comments because anyway the quotes in there
2389# would cause problems or look ugly.
2390# WARNING: Use '\'' to represent an apostrophe within the trap.
2391# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2392trap 'exit_status=$?
2393  # Save into config.log some information that might help in debugging.
2394  {
2395    echo
2396
2397    $as_echo "## ---------------- ##
2398## Cache variables. ##
2399## ---------------- ##"
2400    echo
2401    # The following way of writing the cache mishandles newlines in values,
2402(
2403  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2404    eval ac_val=\$$ac_var
2405    case $ac_val in #(
2406    *${as_nl}*)
2407      case $ac_var in #(
2408      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2409$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2410      esac
2411      case $ac_var in #(
2412      _ | IFS | as_nl) ;; #(
2413      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2414      *) { eval $ac_var=; unset $ac_var;} ;;
2415      esac ;;
2416    esac
2417  done
2418  (set) 2>&1 |
2419    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2420    *${as_nl}ac_space=\ *)
2421      sed -n \
2422	"s/'\''/'\''\\\\'\'''\''/g;
2423	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2424      ;; #(
2425    *)
2426      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2427      ;;
2428    esac |
2429    sort
2430)
2431    echo
2432
2433    $as_echo "## ----------------- ##
2434## Output variables. ##
2435## ----------------- ##"
2436    echo
2437    for ac_var in $ac_subst_vars
2438    do
2439      eval ac_val=\$$ac_var
2440      case $ac_val in
2441      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2442      esac
2443      $as_echo "$ac_var='\''$ac_val'\''"
2444    done | sort
2445    echo
2446
2447    if test -n "$ac_subst_files"; then
2448      $as_echo "## ------------------- ##
2449## File substitutions. ##
2450## ------------------- ##"
2451      echo
2452      for ac_var in $ac_subst_files
2453      do
2454	eval ac_val=\$$ac_var
2455	case $ac_val in
2456	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2457	esac
2458	$as_echo "$ac_var='\''$ac_val'\''"
2459      done | sort
2460      echo
2461    fi
2462
2463    if test -s confdefs.h; then
2464      $as_echo "## ----------- ##
2465## confdefs.h. ##
2466## ----------- ##"
2467      echo
2468      cat confdefs.h
2469      echo
2470    fi
2471    test "$ac_signal" != 0 &&
2472      $as_echo "$as_me: caught signal $ac_signal"
2473    $as_echo "$as_me: exit $exit_status"
2474  } >&5
2475  rm -f core *.core core.conftest.* &&
2476    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2477    exit $exit_status
2478' 0
2479for ac_signal in 1 2 13 15; do
2480  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2481done
2482ac_signal=0
2483
2484# confdefs.h avoids OS command line length limits that DEFS can exceed.
2485rm -f -r conftest* confdefs.h
2486
2487$as_echo "/* confdefs.h */" > confdefs.h
2488
2489# Predefined preprocessor variables.
2490
2491cat >>confdefs.h <<_ACEOF
2492#define PACKAGE_NAME "$PACKAGE_NAME"
2493_ACEOF
2494
2495cat >>confdefs.h <<_ACEOF
2496#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2497_ACEOF
2498
2499cat >>confdefs.h <<_ACEOF
2500#define PACKAGE_VERSION "$PACKAGE_VERSION"
2501_ACEOF
2502
2503cat >>confdefs.h <<_ACEOF
2504#define PACKAGE_STRING "$PACKAGE_STRING"
2505_ACEOF
2506
2507cat >>confdefs.h <<_ACEOF
2508#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2509_ACEOF
2510
2511cat >>confdefs.h <<_ACEOF
2512#define PACKAGE_URL "$PACKAGE_URL"
2513_ACEOF
2514
2515
2516# Let the site file select an alternate cache file if it wants to.
2517# Prefer an explicitly selected file to automatically selected ones.
2518ac_site_file1=NONE
2519ac_site_file2=NONE
2520if test -n "$CONFIG_SITE"; then
2521  # We do not want a PATH search for config.site.
2522  case $CONFIG_SITE in #((
2523    -*)  ac_site_file1=./$CONFIG_SITE;;
2524    */*) ac_site_file1=$CONFIG_SITE;;
2525    *)   ac_site_file1=./$CONFIG_SITE;;
2526  esac
2527elif test "x$prefix" != xNONE; then
2528  ac_site_file1=$prefix/share/config.site
2529  ac_site_file2=$prefix/etc/config.site
2530else
2531  ac_site_file1=$ac_default_prefix/share/config.site
2532  ac_site_file2=$ac_default_prefix/etc/config.site
2533fi
2534for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2535do
2536  test "x$ac_site_file" = xNONE && continue
2537  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2538    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2539$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2540    sed 's/^/| /' "$ac_site_file" >&5
2541    . "$ac_site_file" \
2542      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2543$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2544as_fn_error $? "failed to load site script $ac_site_file
2545See \`config.log' for more details" "$LINENO" 5; }
2546  fi
2547done
2548
2549if test -r "$cache_file"; then
2550  # Some versions of bash will fail to source /dev/null (special files
2551  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2552  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2553    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2554$as_echo "$as_me: loading cache $cache_file" >&6;}
2555    case $cache_file in
2556      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2557      *)                      . "./$cache_file";;
2558    esac
2559  fi
2560else
2561  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2562$as_echo "$as_me: creating cache $cache_file" >&6;}
2563  >$cache_file
2564fi
2565
2566# Check that the precious variables saved in the cache have kept the same
2567# value.
2568ac_cache_corrupted=false
2569for ac_var in $ac_precious_vars; do
2570  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2571  eval ac_new_set=\$ac_env_${ac_var}_set
2572  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2573  eval ac_new_val=\$ac_env_${ac_var}_value
2574  case $ac_old_set,$ac_new_set in
2575    set,)
2576      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2577$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2578      ac_cache_corrupted=: ;;
2579    ,set)
2580      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2581$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2582      ac_cache_corrupted=: ;;
2583    ,);;
2584    *)
2585      if test "x$ac_old_val" != "x$ac_new_val"; then
2586	# differences in whitespace do not lead to failure.
2587	ac_old_val_w=`echo x $ac_old_val`
2588	ac_new_val_w=`echo x $ac_new_val`
2589	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2590	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2591$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2592	  ac_cache_corrupted=:
2593	else
2594	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2595$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2596	  eval $ac_var=\$ac_old_val
2597	fi
2598	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2599$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2600	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2601$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2602      fi;;
2603  esac
2604  # Pass precious variables to config.status.
2605  if test "$ac_new_set" = set; then
2606    case $ac_new_val in
2607    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2608    *) ac_arg=$ac_var=$ac_new_val ;;
2609    esac
2610    case " $ac_configure_args " in
2611      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2612      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2613    esac
2614  fi
2615done
2616if $ac_cache_corrupted; then
2617  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2618$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2619  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2620$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2621  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2622fi
2623## -------------------- ##
2624## Main body of script. ##
2625## -------------------- ##
2626
2627ac_ext=c
2628ac_cpp='$CPP $CPPFLAGS'
2629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2631ac_compiler_gnu=$ac_cv_c_compiler_gnu
2632
2633
2634
2635ac_config_headers="$ac_config_headers config.h"
2636
2637
2638
2639ac_aux_dir=
2640for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2641  if test -f "$ac_dir/install-sh"; then
2642    ac_aux_dir=$ac_dir
2643    ac_install_sh="$ac_aux_dir/install-sh -c"
2644    break
2645  elif test -f "$ac_dir/install.sh"; then
2646    ac_aux_dir=$ac_dir
2647    ac_install_sh="$ac_aux_dir/install.sh -c"
2648    break
2649  elif test -f "$ac_dir/shtool"; then
2650    ac_aux_dir=$ac_dir
2651    ac_install_sh="$ac_aux_dir/shtool install -c"
2652    break
2653  fi
2654done
2655if test -z "$ac_aux_dir"; then
2656  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2657fi
2658
2659# These three variables are undocumented and unsupported,
2660# and are intended to be withdrawn in a future Autoconf release.
2661# They can cause serious problems if a builder's source tree is in a directory
2662# whose full name contains unusual characters.
2663ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2664ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2665ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2666
2667
2668# Make sure we can run config.sub.
2669$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2670  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2671
2672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2673$as_echo_n "checking build system type... " >&6; }
2674if ${ac_cv_build+:} false; then :
2675  $as_echo_n "(cached) " >&6
2676else
2677  ac_build_alias=$build_alias
2678test "x$ac_build_alias" = x &&
2679  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2680test "x$ac_build_alias" = x &&
2681  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2682ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2683  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2684
2685fi
2686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2687$as_echo "$ac_cv_build" >&6; }
2688case $ac_cv_build in
2689*-*-*) ;;
2690*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2691esac
2692build=$ac_cv_build
2693ac_save_IFS=$IFS; IFS='-'
2694set x $ac_cv_build
2695shift
2696build_cpu=$1
2697build_vendor=$2
2698shift; shift
2699# Remember, the first character of IFS is used to create $*,
2700# except with old shells:
2701build_os=$*
2702IFS=$ac_save_IFS
2703case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2704
2705
2706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2707$as_echo_n "checking host system type... " >&6; }
2708if ${ac_cv_host+:} false; then :
2709  $as_echo_n "(cached) " >&6
2710else
2711  if test "x$host_alias" = x; then
2712  ac_cv_host=$ac_cv_build
2713else
2714  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2715    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2716fi
2717
2718fi
2719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2720$as_echo "$ac_cv_host" >&6; }
2721case $ac_cv_host in
2722*-*-*) ;;
2723*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2724esac
2725host=$ac_cv_host
2726ac_save_IFS=$IFS; IFS='-'
2727set x $ac_cv_host
2728shift
2729host_cpu=$1
2730host_vendor=$2
2731shift; shift
2732# Remember, the first character of IFS is used to create $*,
2733# except with old shells:
2734host_os=$*
2735IFS=$ac_save_IFS
2736case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2737
2738
2739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2740$as_echo_n "checking target system type... " >&6; }
2741if ${ac_cv_target+:} false; then :
2742  $as_echo_n "(cached) " >&6
2743else
2744  if test "x$target_alias" = x; then
2745  ac_cv_target=$ac_cv_host
2746else
2747  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2748    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2749fi
2750
2751fi
2752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2753$as_echo "$ac_cv_target" >&6; }
2754case $ac_cv_target in
2755*-*-*) ;;
2756*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2757esac
2758target=$ac_cv_target
2759ac_save_IFS=$IFS; IFS='-'
2760set x $ac_cv_target
2761shift
2762target_cpu=$1
2763target_vendor=$2
2764shift; shift
2765# Remember, the first character of IFS is used to create $*,
2766# except with old shells:
2767target_os=$*
2768IFS=$ac_save_IFS
2769case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2770
2771
2772# The aliases save the names the user supplied, while $host etc.
2773# will get canonicalized.
2774test -n "$target_alias" &&
2775  test "$program_prefix$program_suffix$program_transform_name" = \
2776    NONENONEs,x,x, &&
2777  program_prefix=${target_alias}-
2778
2779am__api_version='1.14'
2780
2781# Find a good install program.  We prefer a C program (faster),
2782# so one script is as good as another.  But avoid the broken or
2783# incompatible versions:
2784# SysV /etc/install, /usr/sbin/install
2785# SunOS /usr/etc/install
2786# IRIX /sbin/install
2787# AIX /bin/install
2788# AmigaOS /C/install, which installs bootblocks on floppy discs
2789# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2790# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2791# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2792# OS/2's system install, which has a completely different semantic
2793# ./install, which can be erroneously created by make from ./install.sh.
2794# Reject install programs that cannot install multiple files.
2795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2796$as_echo_n "checking for a BSD-compatible install... " >&6; }
2797if test -z "$INSTALL"; then
2798if ${ac_cv_path_install+:} false; then :
2799  $as_echo_n "(cached) " >&6
2800else
2801  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802for as_dir in $PATH
2803do
2804  IFS=$as_save_IFS
2805  test -z "$as_dir" && as_dir=.
2806    # Account for people who put trailing slashes in PATH elements.
2807case $as_dir/ in #((
2808  ./ | .// | /[cC]/* | \
2809  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2810  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2811  /usr/ucb/* ) ;;
2812  *)
2813    # OSF1 and SCO ODT 3.0 have their own names for install.
2814    # Don't use installbsd from OSF since it installs stuff as root
2815    # by default.
2816    for ac_prog in ginstall scoinst install; do
2817      for ac_exec_ext in '' $ac_executable_extensions; do
2818	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2819	  if test $ac_prog = install &&
2820	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2821	    # AIX install.  It has an incompatible calling convention.
2822	    :
2823	  elif test $ac_prog = install &&
2824	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2825	    # program-specific install script used by HP pwplus--don't use.
2826	    :
2827	  else
2828	    rm -rf conftest.one conftest.two conftest.dir
2829	    echo one > conftest.one
2830	    echo two > conftest.two
2831	    mkdir conftest.dir
2832	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2833	      test -s conftest.one && test -s conftest.two &&
2834	      test -s conftest.dir/conftest.one &&
2835	      test -s conftest.dir/conftest.two
2836	    then
2837	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2838	      break 3
2839	    fi
2840	  fi
2841	fi
2842      done
2843    done
2844    ;;
2845esac
2846
2847  done
2848IFS=$as_save_IFS
2849
2850rm -rf conftest.one conftest.two conftest.dir
2851
2852fi
2853  if test "${ac_cv_path_install+set}" = set; then
2854    INSTALL=$ac_cv_path_install
2855  else
2856    # As a last resort, use the slow shell script.  Don't cache a
2857    # value for INSTALL within a source directory, because that will
2858    # break other packages using the cache if that directory is
2859    # removed, or if the value is a relative name.
2860    INSTALL=$ac_install_sh
2861  fi
2862fi
2863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2864$as_echo "$INSTALL" >&6; }
2865
2866# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2867# It thinks the first close brace ends the variable substitution.
2868test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2869
2870test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2871
2872test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2873
2874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2875$as_echo_n "checking whether build environment is sane... " >&6; }
2876# Reject unsafe characters in $srcdir or the absolute working directory
2877# name.  Accept space and tab only in the latter.
2878am_lf='
2879'
2880case `pwd` in
2881  *[\\\"\#\$\&\'\`$am_lf]*)
2882    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2883esac
2884case $srcdir in
2885  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2886    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2887esac
2888
2889# Do 'set' in a subshell so we don't clobber the current shell's
2890# arguments.  Must try -L first in case configure is actually a
2891# symlink; some systems play weird games with the mod time of symlinks
2892# (eg FreeBSD returns the mod time of the symlink's containing
2893# directory).
2894if (
2895   am_has_slept=no
2896   for am_try in 1 2; do
2897     echo "timestamp, slept: $am_has_slept" > conftest.file
2898     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2899     if test "$*" = "X"; then
2900	# -L didn't work.
2901	set X `ls -t "$srcdir/configure" conftest.file`
2902     fi
2903     if test "$*" != "X $srcdir/configure conftest.file" \
2904	&& test "$*" != "X conftest.file $srcdir/configure"; then
2905
2906	# If neither matched, then we have a broken ls.  This can happen
2907	# if, for instance, CONFIG_SHELL is bash and it inherits a
2908	# broken ls alias from the environment.  This has actually
2909	# happened.  Such a system could not be considered "sane".
2910	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2911  alias in your environment" "$LINENO" 5
2912     fi
2913     if test "$2" = conftest.file || test $am_try -eq 2; then
2914       break
2915     fi
2916     # Just in case.
2917     sleep 1
2918     am_has_slept=yes
2919   done
2920   test "$2" = conftest.file
2921   )
2922then
2923   # Ok.
2924   :
2925else
2926   as_fn_error $? "newly created file is older than distributed files!
2927Check your system clock" "$LINENO" 5
2928fi
2929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2930$as_echo "yes" >&6; }
2931# If we didn't sleep, we still need to ensure time stamps of config.status and
2932# generated files are strictly newer.
2933am_sleep_pid=
2934if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2935  ( sleep 1 ) &
2936  am_sleep_pid=$!
2937fi
2938
2939rm -f conftest.file
2940
2941test "$program_prefix" != NONE &&
2942  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2943# Use a double $ so make ignores it.
2944test "$program_suffix" != NONE &&
2945  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2946# Double any \ or $.
2947# By default was `s,x,x', remove it if useless.
2948ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2949program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2950
2951# expand $ac_aux_dir to an absolute path
2952am_aux_dir=`cd $ac_aux_dir && pwd`
2953
2954if test x"${MISSING+set}" != xset; then
2955  case $am_aux_dir in
2956  *\ * | *\	*)
2957    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2958  *)
2959    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2960  esac
2961fi
2962# Use eval to expand $SHELL
2963if eval "$MISSING --is-lightweight"; then
2964  am_missing_run="$MISSING "
2965else
2966  am_missing_run=
2967  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2968$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2969fi
2970
2971if test x"${install_sh}" != xset; then
2972  case $am_aux_dir in
2973  *\ * | *\	*)
2974    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2975  *)
2976    install_sh="\${SHELL} $am_aux_dir/install-sh"
2977  esac
2978fi
2979
2980# Installed binaries are usually stripped using 'strip' when the user
2981# run "make install-strip".  However 'strip' might not be the right
2982# tool to use in cross-compilation environments, therefore Automake
2983# will honor the 'STRIP' environment variable to overrule this program.
2984if test "$cross_compiling" != no; then
2985  if test -n "$ac_tool_prefix"; then
2986  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2987set dummy ${ac_tool_prefix}strip; ac_word=$2
2988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989$as_echo_n "checking for $ac_word... " >&6; }
2990if ${ac_cv_prog_STRIP+:} false; then :
2991  $as_echo_n "(cached) " >&6
2992else
2993  if test -n "$STRIP"; then
2994  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2995else
2996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997for as_dir in $PATH
2998do
2999  IFS=$as_save_IFS
3000  test -z "$as_dir" && as_dir=.
3001    for ac_exec_ext in '' $ac_executable_extensions; do
3002  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3003    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3004    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3005    break 2
3006  fi
3007done
3008  done
3009IFS=$as_save_IFS
3010
3011fi
3012fi
3013STRIP=$ac_cv_prog_STRIP
3014if test -n "$STRIP"; then
3015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3016$as_echo "$STRIP" >&6; }
3017else
3018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019$as_echo "no" >&6; }
3020fi
3021
3022
3023fi
3024if test -z "$ac_cv_prog_STRIP"; then
3025  ac_ct_STRIP=$STRIP
3026  # Extract the first word of "strip", so it can be a program name with args.
3027set dummy strip; ac_word=$2
3028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3029$as_echo_n "checking for $ac_word... " >&6; }
3030if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3031  $as_echo_n "(cached) " >&6
3032else
3033  if test -n "$ac_ct_STRIP"; then
3034  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3035else
3036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037for as_dir in $PATH
3038do
3039  IFS=$as_save_IFS
3040  test -z "$as_dir" && as_dir=.
3041    for ac_exec_ext in '' $ac_executable_extensions; do
3042  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3043    ac_cv_prog_ac_ct_STRIP="strip"
3044    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3045    break 2
3046  fi
3047done
3048  done
3049IFS=$as_save_IFS
3050
3051fi
3052fi
3053ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3054if test -n "$ac_ct_STRIP"; then
3055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3056$as_echo "$ac_ct_STRIP" >&6; }
3057else
3058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059$as_echo "no" >&6; }
3060fi
3061
3062  if test "x$ac_ct_STRIP" = x; then
3063    STRIP=":"
3064  else
3065    case $cross_compiling:$ac_tool_warned in
3066yes:)
3067{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3068$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3069ac_tool_warned=yes ;;
3070esac
3071    STRIP=$ac_ct_STRIP
3072  fi
3073else
3074  STRIP="$ac_cv_prog_STRIP"
3075fi
3076
3077fi
3078INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3079
3080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3081$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3082if test -z "$MKDIR_P"; then
3083  if ${ac_cv_path_mkdir+:} false; then :
3084  $as_echo_n "(cached) " >&6
3085else
3086  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3088do
3089  IFS=$as_save_IFS
3090  test -z "$as_dir" && as_dir=.
3091    for ac_prog in mkdir gmkdir; do
3092	 for ac_exec_ext in '' $ac_executable_extensions; do
3093	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3094	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3095	     'mkdir (GNU coreutils) '* | \
3096	     'mkdir (coreutils) '* | \
3097	     'mkdir (fileutils) '4.1*)
3098	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3099	       break 3;;
3100	   esac
3101	 done
3102       done
3103  done
3104IFS=$as_save_IFS
3105
3106fi
3107
3108  test -d ./--version && rmdir ./--version
3109  if test "${ac_cv_path_mkdir+set}" = set; then
3110    MKDIR_P="$ac_cv_path_mkdir -p"
3111  else
3112    # As a last resort, use the slow shell script.  Don't cache a
3113    # value for MKDIR_P within a source directory, because that will
3114    # break other packages using the cache if that directory is
3115    # removed, or if the value is a relative name.
3116    MKDIR_P="$ac_install_sh -d"
3117  fi
3118fi
3119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3120$as_echo "$MKDIR_P" >&6; }
3121
3122for ac_prog in gawk mawk nawk awk
3123do
3124  # Extract the first word of "$ac_prog", so it can be a program name with args.
3125set dummy $ac_prog; ac_word=$2
3126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3127$as_echo_n "checking for $ac_word... " >&6; }
3128if ${ac_cv_prog_AWK+:} false; then :
3129  $as_echo_n "(cached) " >&6
3130else
3131  if test -n "$AWK"; then
3132  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3133else
3134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135for as_dir in $PATH
3136do
3137  IFS=$as_save_IFS
3138  test -z "$as_dir" && as_dir=.
3139    for ac_exec_ext in '' $ac_executable_extensions; do
3140  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3141    ac_cv_prog_AWK="$ac_prog"
3142    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3143    break 2
3144  fi
3145done
3146  done
3147IFS=$as_save_IFS
3148
3149fi
3150fi
3151AWK=$ac_cv_prog_AWK
3152if test -n "$AWK"; then
3153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3154$as_echo "$AWK" >&6; }
3155else
3156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3157$as_echo "no" >&6; }
3158fi
3159
3160
3161  test -n "$AWK" && break
3162done
3163
3164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3165$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3166set x ${MAKE-make}
3167ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3168if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3169  $as_echo_n "(cached) " >&6
3170else
3171  cat >conftest.make <<\_ACEOF
3172SHELL = /bin/sh
3173all:
3174	@echo '@@@%%%=$(MAKE)=@@@%%%'
3175_ACEOF
3176# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3177case `${MAKE-make} -f conftest.make 2>/dev/null` in
3178  *@@@%%%=?*=@@@%%%*)
3179    eval ac_cv_prog_make_${ac_make}_set=yes;;
3180  *)
3181    eval ac_cv_prog_make_${ac_make}_set=no;;
3182esac
3183rm -f conftest.make
3184fi
3185if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3187$as_echo "yes" >&6; }
3188  SET_MAKE=
3189else
3190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191$as_echo "no" >&6; }
3192  SET_MAKE="MAKE=${MAKE-make}"
3193fi
3194
3195rm -rf .tst 2>/dev/null
3196mkdir .tst 2>/dev/null
3197if test -d .tst; then
3198  am__leading_dot=.
3199else
3200  am__leading_dot=_
3201fi
3202rmdir .tst 2>/dev/null
3203
3204# Check whether --enable-silent-rules was given.
3205if test "${enable_silent_rules+set}" = set; then :
3206  enableval=$enable_silent_rules;
3207fi
3208
3209case $enable_silent_rules in # (((
3210  yes) AM_DEFAULT_VERBOSITY=0;;
3211   no) AM_DEFAULT_VERBOSITY=1;;
3212    *) AM_DEFAULT_VERBOSITY=1;;
3213esac
3214am_make=${MAKE-make}
3215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3216$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3217if ${am_cv_make_support_nested_variables+:} false; then :
3218  $as_echo_n "(cached) " >&6
3219else
3220  if $as_echo 'TRUE=$(BAR$(V))
3221BAR0=false
3222BAR1=true
3223V=1
3224am__doit:
3225	@$(TRUE)
3226.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3227  am_cv_make_support_nested_variables=yes
3228else
3229  am_cv_make_support_nested_variables=no
3230fi
3231fi
3232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3233$as_echo "$am_cv_make_support_nested_variables" >&6; }
3234if test $am_cv_make_support_nested_variables = yes; then
3235    AM_V='$(V)'
3236  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3237else
3238  AM_V=$AM_DEFAULT_VERBOSITY
3239  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3240fi
3241AM_BACKSLASH='\'
3242
3243if test "`cd $srcdir && pwd`" != "`pwd`"; then
3244  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3245  # is not polluted with repeated "-I."
3246  am__isrc=' -I$(srcdir)'
3247  # test to see if srcdir already configured
3248  if test -f $srcdir/config.status; then
3249    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3250  fi
3251fi
3252
3253# test whether we have cygpath
3254if test -z "$CYGPATH_W"; then
3255  if (cygpath --version) >/dev/null 2>/dev/null; then
3256    CYGPATH_W='cygpath -w'
3257  else
3258    CYGPATH_W=echo
3259  fi
3260fi
3261
3262
3263# Define the identity of the package.
3264 PACKAGE='lighttpd'
3265 VERSION='1.4.32'
3266
3267
3268cat >>confdefs.h <<_ACEOF
3269#define PACKAGE "$PACKAGE"
3270_ACEOF
3271
3272
3273cat >>confdefs.h <<_ACEOF
3274#define VERSION "$VERSION"
3275_ACEOF
3276
3277# Some tools Automake needs.
3278
3279ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3280
3281
3282AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3283
3284
3285AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3286
3287
3288AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3289
3290
3291MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3292
3293# For better backward compatibility.  To be removed once Automake 1.9.x
3294# dies out for good.  For more background, see:
3295# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3296# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3297mkdir_p='$(MKDIR_P)'
3298
3299# We need awk for the "check" target.  The system "awk" is bad on
3300# some platforms.
3301# Always define AMTAR for backward compatibility.  Yes, it's still used
3302# in the wild :-(  We should find a proper way to deprecate it ...
3303AMTAR='$${TAR-tar}'
3304
3305
3306# We'll loop over all known methods to create a tar archive until one works.
3307_am_tools='gnutar plaintar pax cpio none'
3308
3309# The POSIX 1988 'ustar' format is defined with fixed-size fields.
3310      # There is notably a 21 bits limit for the UID and the GID.  In fact,
3311      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3312      # and bug#13588).
3313      am_max_uid=2097151 # 2^21 - 1
3314      am_max_gid=$am_max_uid
3315      # The $UID and $GID variables are not portable, so we need to resort
3316      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
3317      # below are definitely unexpected, so allow the users to see them
3318      # (that is, avoid stderr redirection).
3319      am_uid=`id -u || echo unknown`
3320      am_gid=`id -g || echo unknown`
3321      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3322$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3323      if test $am_uid -le $am_max_uid; then
3324         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3325$as_echo "yes" >&6; }
3326      else
3327         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3328$as_echo "no" >&6; }
3329         _am_tools=none
3330      fi
3331      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3332$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3333      if test $am_gid -le $am_max_gid; then
3334         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3335$as_echo "yes" >&6; }
3336      else
3337        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3338$as_echo "no" >&6; }
3339        _am_tools=none
3340      fi
3341
3342  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3343$as_echo_n "checking how to create a ustar tar archive... " >&6; }
3344
3345  # Go ahead even if we have the value already cached.  We do so because we
3346  # need to set the values for the 'am__tar' and 'am__untar' variables.
3347  _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3348
3349  for _am_tool in $_am_tools; do
3350    case $_am_tool in
3351    gnutar)
3352      for _am_tar in tar gnutar gtar; do
3353        { echo "$as_me:$LINENO: $_am_tar --version" >&5
3354   ($_am_tar --version) >&5 2>&5
3355   ac_status=$?
3356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357   (exit $ac_status); } && break
3358      done
3359      am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3360      am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3361      am__untar="$_am_tar -xf -"
3362      ;;
3363    plaintar)
3364      # Must skip GNU tar: if it does not support --format= it doesn't create
3365      # ustar tarball either.
3366      (tar --version) >/dev/null 2>&1 && continue
3367      am__tar='tar chf - "$$tardir"'
3368      am__tar_='tar chf - "$tardir"'
3369      am__untar='tar xf -'
3370      ;;
3371    pax)
3372      am__tar='pax -L -x ustar -w "$$tardir"'
3373      am__tar_='pax -L -x ustar -w "$tardir"'
3374      am__untar='pax -r'
3375      ;;
3376    cpio)
3377      am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3378      am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3379      am__untar='cpio -i -H ustar -d'
3380      ;;
3381    none)
3382      am__tar=false
3383      am__tar_=false
3384      am__untar=false
3385      ;;
3386    esac
3387
3388    # If the value was cached, stop now.  We just wanted to have am__tar
3389    # and am__untar set.
3390    test -n "${am_cv_prog_tar_ustar}" && break
3391
3392    # tar/untar a dummy directory, and stop if the command works.
3393    rm -rf conftest.dir
3394    mkdir conftest.dir
3395    echo GrepMe > conftest.dir/file
3396    { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3397   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3398   ac_status=$?
3399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400   (exit $ac_status); }
3401    rm -rf conftest.dir
3402    if test -s conftest.tar; then
3403      { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3404   ($am__untar <conftest.tar) >&5 2>&5
3405   ac_status=$?
3406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407   (exit $ac_status); }
3408      { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3409   (cat conftest.dir/file) >&5 2>&5
3410   ac_status=$?
3411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412   (exit $ac_status); }
3413      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3414    fi
3415  done
3416  rm -rf conftest.dir
3417
3418  if ${am_cv_prog_tar_ustar+:} false; then :
3419  $as_echo_n "(cached) " >&6
3420else
3421  am_cv_prog_tar_ustar=$_am_tool
3422fi
3423
3424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3425$as_echo "$am_cv_prog_tar_ustar" >&6; }
3426
3427
3428
3429
3430
3431
3432# POSIX will say in a future version that running "rm -f" with no argument
3433# is OK; and we want to be able to make that assumption in our Makefile
3434# recipes.  So use an aggressive probe to check that the usage we want is
3435# actually supported "in the wild" to an acceptable degree.
3436# See automake bug#10828.
3437# To make any issue more visible, cause the running configure to be aborted
3438# by default if the 'rm' program in use doesn't match our expectations; the
3439# user can still override this though.
3440if rm -f && rm -fr && rm -rf; then : OK; else
3441  cat >&2 <<'END'
3442Oops!
3443
3444Your 'rm' program seems unable to run without file operands specified
3445on the command line, even when the '-f' option is present.  This is contrary
3446to the behaviour of most rm programs out there, and not conforming with
3447the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3448
3449Please tell bug-automake@gnu.org about your system, including the value
3450of your $PATH and any error possibly output before this message.  This
3451can help us improve future automake versions.
3452
3453END
3454  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3455    echo 'Configuration will proceed anyway, since you have set the' >&2
3456    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3457    echo >&2
3458  else
3459    cat >&2 <<'END'
3460Aborting the configuration process, to ensure you take notice of the issue.
3461
3462You can download and install GNU coreutils to get an 'rm' implementation
3463that behaves properly: <http://www.gnu.org/software/coreutils/>.
3464
3465If you want to complete the configuration process using your problematic
3466'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3467to "yes", and re-run configure.
3468
3469END
3470    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3471  fi
3472fi
3473
3474# Check whether --enable-silent-rules was given.
3475if test "${enable_silent_rules+set}" = set; then :
3476  enableval=$enable_silent_rules;
3477fi
3478
3479case $enable_silent_rules in # (((
3480  yes) AM_DEFAULT_VERBOSITY=0;;
3481   no) AM_DEFAULT_VERBOSITY=1;;
3482    *) AM_DEFAULT_VERBOSITY=1;;
3483esac
3484am_make=${MAKE-make}
3485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3486$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3487if ${am_cv_make_support_nested_variables+:} false; then :
3488  $as_echo_n "(cached) " >&6
3489else
3490  if $as_echo 'TRUE=$(BAR$(V))
3491BAR0=false
3492BAR1=true
3493V=1
3494am__doit:
3495	@$(TRUE)
3496.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3497  am_cv_make_support_nested_variables=yes
3498else
3499  am_cv_make_support_nested_variables=no
3500fi
3501fi
3502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3503$as_echo "$am_cv_make_support_nested_variables" >&6; }
3504if test $am_cv_make_support_nested_variables = yes; then
3505    AM_V='$(V)'
3506  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3507else
3508  AM_V=$AM_DEFAULT_VERBOSITY
3509  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3510fi
3511AM_BACKSLASH='\'
3512
3513
3514ac_ext=c
3515ac_cpp='$CPP $CPPFLAGS'
3516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3518ac_compiler_gnu=$ac_cv_c_compiler_gnu
3519if test -n "$ac_tool_prefix"; then
3520  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3521set dummy ${ac_tool_prefix}gcc; ac_word=$2
3522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3523$as_echo_n "checking for $ac_word... " >&6; }
3524if ${ac_cv_prog_CC+:} false; then :
3525  $as_echo_n "(cached) " >&6
3526else
3527  if test -n "$CC"; then
3528  ac_cv_prog_CC="$CC" # Let the user override the test.
3529else
3530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531for as_dir in $PATH
3532do
3533  IFS=$as_save_IFS
3534  test -z "$as_dir" && as_dir=.
3535    for ac_exec_ext in '' $ac_executable_extensions; do
3536  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3537    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3538    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3539    break 2
3540  fi
3541done
3542  done
3543IFS=$as_save_IFS
3544
3545fi
3546fi
3547CC=$ac_cv_prog_CC
3548if test -n "$CC"; then
3549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3550$as_echo "$CC" >&6; }
3551else
3552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3553$as_echo "no" >&6; }
3554fi
3555
3556
3557fi
3558if test -z "$ac_cv_prog_CC"; then
3559  ac_ct_CC=$CC
3560  # Extract the first word of "gcc", so it can be a program name with args.
3561set dummy gcc; ac_word=$2
3562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3563$as_echo_n "checking for $ac_word... " >&6; }
3564if ${ac_cv_prog_ac_ct_CC+:} false; then :
3565  $as_echo_n "(cached) " >&6
3566else
3567  if test -n "$ac_ct_CC"; then
3568  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3569else
3570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3571for as_dir in $PATH
3572do
3573  IFS=$as_save_IFS
3574  test -z "$as_dir" && as_dir=.
3575    for ac_exec_ext in '' $ac_executable_extensions; do
3576  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3577    ac_cv_prog_ac_ct_CC="gcc"
3578    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3579    break 2
3580  fi
3581done
3582  done
3583IFS=$as_save_IFS
3584
3585fi
3586fi
3587ac_ct_CC=$ac_cv_prog_ac_ct_CC
3588if test -n "$ac_ct_CC"; then
3589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3590$as_echo "$ac_ct_CC" >&6; }
3591else
3592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3593$as_echo "no" >&6; }
3594fi
3595
3596  if test "x$ac_ct_CC" = x; then
3597    CC=""
3598  else
3599    case $cross_compiling:$ac_tool_warned in
3600yes:)
3601{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3602$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3603ac_tool_warned=yes ;;
3604esac
3605    CC=$ac_ct_CC
3606  fi
3607else
3608  CC="$ac_cv_prog_CC"
3609fi
3610
3611if test -z "$CC"; then
3612          if test -n "$ac_tool_prefix"; then
3613    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3614set dummy ${ac_tool_prefix}cc; ac_word=$2
3615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3616$as_echo_n "checking for $ac_word... " >&6; }
3617if ${ac_cv_prog_CC+:} false; then :
3618  $as_echo_n "(cached) " >&6
3619else
3620  if test -n "$CC"; then
3621  ac_cv_prog_CC="$CC" # Let the user override the test.
3622else
3623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624for as_dir in $PATH
3625do
3626  IFS=$as_save_IFS
3627  test -z "$as_dir" && as_dir=.
3628    for ac_exec_ext in '' $ac_executable_extensions; do
3629  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3630    ac_cv_prog_CC="${ac_tool_prefix}cc"
3631    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3632    break 2
3633  fi
3634done
3635  done
3636IFS=$as_save_IFS
3637
3638fi
3639fi
3640CC=$ac_cv_prog_CC
3641if test -n "$CC"; then
3642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3643$as_echo "$CC" >&6; }
3644else
3645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3646$as_echo "no" >&6; }
3647fi
3648
3649
3650  fi
3651fi
3652if test -z "$CC"; then
3653  # Extract the first word of "cc", so it can be a program name with args.
3654set dummy cc; ac_word=$2
3655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3656$as_echo_n "checking for $ac_word... " >&6; }
3657if ${ac_cv_prog_CC+:} false; then :
3658  $as_echo_n "(cached) " >&6
3659else
3660  if test -n "$CC"; then
3661  ac_cv_prog_CC="$CC" # Let the user override the test.
3662else
3663  ac_prog_rejected=no
3664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665for as_dir in $PATH
3666do
3667  IFS=$as_save_IFS
3668  test -z "$as_dir" && as_dir=.
3669    for ac_exec_ext in '' $ac_executable_extensions; do
3670  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3671    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3672       ac_prog_rejected=yes
3673       continue
3674     fi
3675    ac_cv_prog_CC="cc"
3676    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3677    break 2
3678  fi
3679done
3680  done
3681IFS=$as_save_IFS
3682
3683if test $ac_prog_rejected = yes; then
3684  # We found a bogon in the path, so make sure we never use it.
3685  set dummy $ac_cv_prog_CC
3686  shift
3687  if test $# != 0; then
3688    # We chose a different compiler from the bogus one.
3689    # However, it has the same basename, so the bogon will be chosen
3690    # first if we set CC to just the basename; use the full file name.
3691    shift
3692    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3693  fi
3694fi
3695fi
3696fi
3697CC=$ac_cv_prog_CC
3698if test -n "$CC"; then
3699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3700$as_echo "$CC" >&6; }
3701else
3702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3703$as_echo "no" >&6; }
3704fi
3705
3706
3707fi
3708if test -z "$CC"; then
3709  if test -n "$ac_tool_prefix"; then
3710  for ac_prog in cl.exe
3711  do
3712    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3713set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3715$as_echo_n "checking for $ac_word... " >&6; }
3716if ${ac_cv_prog_CC+:} false; then :
3717  $as_echo_n "(cached) " >&6
3718else
3719  if test -n "$CC"; then
3720  ac_cv_prog_CC="$CC" # Let the user override the test.
3721else
3722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723for as_dir in $PATH
3724do
3725  IFS=$as_save_IFS
3726  test -z "$as_dir" && as_dir=.
3727    for ac_exec_ext in '' $ac_executable_extensions; do
3728  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3729    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3730    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3731    break 2
3732  fi
3733done
3734  done
3735IFS=$as_save_IFS
3736
3737fi
3738fi
3739CC=$ac_cv_prog_CC
3740if test -n "$CC"; then
3741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3742$as_echo "$CC" >&6; }
3743else
3744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3745$as_echo "no" >&6; }
3746fi
3747
3748
3749    test -n "$CC" && break
3750  done
3751fi
3752if test -z "$CC"; then
3753  ac_ct_CC=$CC
3754  for ac_prog in cl.exe
3755do
3756  # Extract the first word of "$ac_prog", so it can be a program name with args.
3757set dummy $ac_prog; ac_word=$2
3758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3759$as_echo_n "checking for $ac_word... " >&6; }
3760if ${ac_cv_prog_ac_ct_CC+:} false; then :
3761  $as_echo_n "(cached) " >&6
3762else
3763  if test -n "$ac_ct_CC"; then
3764  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3765else
3766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767for as_dir in $PATH
3768do
3769  IFS=$as_save_IFS
3770  test -z "$as_dir" && as_dir=.
3771    for ac_exec_ext in '' $ac_executable_extensions; do
3772  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3773    ac_cv_prog_ac_ct_CC="$ac_prog"
3774    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3775    break 2
3776  fi
3777done
3778  done
3779IFS=$as_save_IFS
3780
3781fi
3782fi
3783ac_ct_CC=$ac_cv_prog_ac_ct_CC
3784if test -n "$ac_ct_CC"; then
3785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3786$as_echo "$ac_ct_CC" >&6; }
3787else
3788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3789$as_echo "no" >&6; }
3790fi
3791
3792
3793  test -n "$ac_ct_CC" && break
3794done
3795
3796  if test "x$ac_ct_CC" = x; then
3797    CC=""
3798  else
3799    case $cross_compiling:$ac_tool_warned in
3800yes:)
3801{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3802$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3803ac_tool_warned=yes ;;
3804esac
3805    CC=$ac_ct_CC
3806  fi
3807fi
3808
3809fi
3810
3811
3812test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3813$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3814as_fn_error $? "no acceptable C compiler found in \$PATH
3815See \`config.log' for more details" "$LINENO" 5; }
3816
3817# Provide some information about the compiler.
3818$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3819set X $ac_compile
3820ac_compiler=$2
3821for ac_option in --version -v -V -qversion; do
3822  { { ac_try="$ac_compiler $ac_option >&5"
3823case "(($ac_try" in
3824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825  *) ac_try_echo=$ac_try;;
3826esac
3827eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3828$as_echo "$ac_try_echo"; } >&5
3829  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3830  ac_status=$?
3831  if test -s conftest.err; then
3832    sed '10a\
3833... rest of stderr output deleted ...
3834         10q' conftest.err >conftest.er1
3835    cat conftest.er1 >&5
3836  fi
3837  rm -f conftest.er1 conftest.err
3838  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3839  test $ac_status = 0; }
3840done
3841
3842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3843/* end confdefs.h.  */
3844
3845int
3846main ()
3847{
3848
3849  ;
3850  return 0;
3851}
3852_ACEOF
3853ac_clean_files_save=$ac_clean_files
3854ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3855# Try to create an executable without -o first, disregard a.out.
3856# It will help us diagnose broken compilers, and finding out an intuition
3857# of exeext.
3858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3859$as_echo_n "checking whether the C compiler works... " >&6; }
3860ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3861
3862# The possible output files:
3863ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3864
3865ac_rmfiles=
3866for ac_file in $ac_files
3867do
3868  case $ac_file in
3869    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3870    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3871  esac
3872done
3873rm -f $ac_rmfiles
3874
3875if { { ac_try="$ac_link_default"
3876case "(($ac_try" in
3877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878  *) ac_try_echo=$ac_try;;
3879esac
3880eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3881$as_echo "$ac_try_echo"; } >&5
3882  (eval "$ac_link_default") 2>&5
3883  ac_status=$?
3884  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3885  test $ac_status = 0; }; then :
3886  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3887# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3888# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3889# so that the user can short-circuit this test for compilers unknown to
3890# Autoconf.
3891for ac_file in $ac_files ''
3892do
3893  test -f "$ac_file" || continue
3894  case $ac_file in
3895    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3896	;;
3897    [ab].out )
3898	# We found the default executable, but exeext='' is most
3899	# certainly right.
3900	break;;
3901    *.* )
3902	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3903	then :; else
3904	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3905	fi
3906	# We set ac_cv_exeext here because the later test for it is not
3907	# safe: cross compilers may not add the suffix if given an `-o'
3908	# argument, so we may need to know it at that point already.
3909	# Even if this section looks crufty: it has the advantage of
3910	# actually working.
3911	break;;
3912    * )
3913	break;;
3914  esac
3915done
3916test "$ac_cv_exeext" = no && ac_cv_exeext=
3917
3918else
3919  ac_file=''
3920fi
3921if test -z "$ac_file"; then :
3922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3923$as_echo "no" >&6; }
3924$as_echo "$as_me: failed program was:" >&5
3925sed 's/^/| /' conftest.$ac_ext >&5
3926
3927{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3928$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3929as_fn_error 77 "C compiler cannot create executables
3930See \`config.log' for more details" "$LINENO" 5; }
3931else
3932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3933$as_echo "yes" >&6; }
3934fi
3935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3936$as_echo_n "checking for C compiler default output file name... " >&6; }
3937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3938$as_echo "$ac_file" >&6; }
3939ac_exeext=$ac_cv_exeext
3940
3941rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3942ac_clean_files=$ac_clean_files_save
3943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3944$as_echo_n "checking for suffix of executables... " >&6; }
3945if { { ac_try="$ac_link"
3946case "(($ac_try" in
3947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948  *) ac_try_echo=$ac_try;;
3949esac
3950eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3951$as_echo "$ac_try_echo"; } >&5
3952  (eval "$ac_link") 2>&5
3953  ac_status=$?
3954  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3955  test $ac_status = 0; }; then :
3956  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3957# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3958# work properly (i.e., refer to `conftest.exe'), while it won't with
3959# `rm'.
3960for ac_file in conftest.exe conftest conftest.*; do
3961  test -f "$ac_file" || continue
3962  case $ac_file in
3963    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3964    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3965	  break;;
3966    * ) break;;
3967  esac
3968done
3969else
3970  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3971$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3972as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3973See \`config.log' for more details" "$LINENO" 5; }
3974fi
3975rm -f conftest conftest$ac_cv_exeext
3976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3977$as_echo "$ac_cv_exeext" >&6; }
3978
3979rm -f conftest.$ac_ext
3980EXEEXT=$ac_cv_exeext
3981ac_exeext=$EXEEXT
3982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983/* end confdefs.h.  */
3984#include <stdio.h>
3985int
3986main ()
3987{
3988FILE *f = fopen ("conftest.out", "w");
3989 return ferror (f) || fclose (f) != 0;
3990
3991  ;
3992  return 0;
3993}
3994_ACEOF
3995ac_clean_files="$ac_clean_files conftest.out"
3996# Check that the compiler produces executables we can run.  If not, either
3997# the compiler is broken, or we cross compile.
3998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3999$as_echo_n "checking whether we are cross compiling... " >&6; }
4000if test "$cross_compiling" != yes; then
4001  { { ac_try="$ac_link"
4002case "(($ac_try" in
4003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4004  *) ac_try_echo=$ac_try;;
4005esac
4006eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4007$as_echo "$ac_try_echo"; } >&5
4008  (eval "$ac_link") 2>&5
4009  ac_status=$?
4010  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4011  test $ac_status = 0; }
4012  if { ac_try='./conftest$ac_cv_exeext'
4013  { { case "(($ac_try" in
4014  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015  *) ac_try_echo=$ac_try;;
4016esac
4017eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4018$as_echo "$ac_try_echo"; } >&5
4019  (eval "$ac_try") 2>&5
4020  ac_status=$?
4021  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4022  test $ac_status = 0; }; }; then
4023    cross_compiling=no
4024  else
4025    if test "$cross_compiling" = maybe; then
4026	cross_compiling=yes
4027    else
4028	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4029$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4030as_fn_error $? "cannot run C compiled programs.
4031If you meant to cross compile, use \`--host'.
4032See \`config.log' for more details" "$LINENO" 5; }
4033    fi
4034  fi
4035fi
4036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4037$as_echo "$cross_compiling" >&6; }
4038
4039rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4040ac_clean_files=$ac_clean_files_save
4041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4042$as_echo_n "checking for suffix of object files... " >&6; }
4043if ${ac_cv_objext+:} false; then :
4044  $as_echo_n "(cached) " >&6
4045else
4046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047/* end confdefs.h.  */
4048
4049int
4050main ()
4051{
4052
4053  ;
4054  return 0;
4055}
4056_ACEOF
4057rm -f conftest.o conftest.obj
4058if { { ac_try="$ac_compile"
4059case "(($ac_try" in
4060  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061  *) ac_try_echo=$ac_try;;
4062esac
4063eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4064$as_echo "$ac_try_echo"; } >&5
4065  (eval "$ac_compile") 2>&5
4066  ac_status=$?
4067  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4068  test $ac_status = 0; }; then :
4069  for ac_file in conftest.o conftest.obj conftest.*; do
4070  test -f "$ac_file" || continue;
4071  case $ac_file in
4072    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4073    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4074       break;;
4075  esac
4076done
4077else
4078  $as_echo "$as_me: failed program was:" >&5
4079sed 's/^/| /' conftest.$ac_ext >&5
4080
4081{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4082$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4083as_fn_error $? "cannot compute suffix of object files: cannot compile
4084See \`config.log' for more details" "$LINENO" 5; }
4085fi
4086rm -f conftest.$ac_cv_objext conftest.$ac_ext
4087fi
4088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4089$as_echo "$ac_cv_objext" >&6; }
4090OBJEXT=$ac_cv_objext
4091ac_objext=$OBJEXT
4092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4093$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4094if ${ac_cv_c_compiler_gnu+:} false; then :
4095  $as_echo_n "(cached) " >&6
4096else
4097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098/* end confdefs.h.  */
4099
4100int
4101main ()
4102{
4103#ifndef __GNUC__
4104       choke me
4105#endif
4106
4107  ;
4108  return 0;
4109}
4110_ACEOF
4111if ac_fn_c_try_compile "$LINENO"; then :
4112  ac_compiler_gnu=yes
4113else
4114  ac_compiler_gnu=no
4115fi
4116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4117ac_cv_c_compiler_gnu=$ac_compiler_gnu
4118
4119fi
4120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4121$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4122if test $ac_compiler_gnu = yes; then
4123  GCC=yes
4124else
4125  GCC=
4126fi
4127ac_test_CFLAGS=${CFLAGS+set}
4128ac_save_CFLAGS=$CFLAGS
4129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4130$as_echo_n "checking whether $CC accepts -g... " >&6; }
4131if ${ac_cv_prog_cc_g+:} false; then :
4132  $as_echo_n "(cached) " >&6
4133else
4134  ac_save_c_werror_flag=$ac_c_werror_flag
4135   ac_c_werror_flag=yes
4136   ac_cv_prog_cc_g=no
4137   CFLAGS="-g"
4138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139/* end confdefs.h.  */
4140
4141int
4142main ()
4143{
4144
4145  ;
4146  return 0;
4147}
4148_ACEOF
4149if ac_fn_c_try_compile "$LINENO"; then :
4150  ac_cv_prog_cc_g=yes
4151else
4152  CFLAGS=""
4153      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154/* end confdefs.h.  */
4155
4156int
4157main ()
4158{
4159
4160  ;
4161  return 0;
4162}
4163_ACEOF
4164if ac_fn_c_try_compile "$LINENO"; then :
4165
4166else
4167  ac_c_werror_flag=$ac_save_c_werror_flag
4168	 CFLAGS="-g"
4169	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170/* end confdefs.h.  */
4171
4172int
4173main ()
4174{
4175
4176  ;
4177  return 0;
4178}
4179_ACEOF
4180if ac_fn_c_try_compile "$LINENO"; then :
4181  ac_cv_prog_cc_g=yes
4182fi
4183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4184fi
4185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4186fi
4187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4188   ac_c_werror_flag=$ac_save_c_werror_flag
4189fi
4190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4191$as_echo "$ac_cv_prog_cc_g" >&6; }
4192if test "$ac_test_CFLAGS" = set; then
4193  CFLAGS=$ac_save_CFLAGS
4194elif test $ac_cv_prog_cc_g = yes; then
4195  if test "$GCC" = yes; then
4196    CFLAGS="-g -O2"
4197  else
4198    CFLAGS="-g"
4199  fi
4200else
4201  if test "$GCC" = yes; then
4202    CFLAGS="-O2"
4203  else
4204    CFLAGS=
4205  fi
4206fi
4207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4208$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4209if ${ac_cv_prog_cc_c89+:} false; then :
4210  $as_echo_n "(cached) " >&6
4211else
4212  ac_cv_prog_cc_c89=no
4213ac_save_CC=$CC
4214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215/* end confdefs.h.  */
4216#include <stdarg.h>
4217#include <stdio.h>
4218struct stat;
4219/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4220struct buf { int x; };
4221FILE * (*rcsopen) (struct buf *, struct stat *, int);
4222static char *e (p, i)
4223     char **p;
4224     int i;
4225{
4226  return p[i];
4227}
4228static char *f (char * (*g) (char **, int), char **p, ...)
4229{
4230  char *s;
4231  va_list v;
4232  va_start (v,p);
4233  s = g (p, va_arg (v,int));
4234  va_end (v);
4235  return s;
4236}
4237
4238/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4239   function prototypes and stuff, but not '\xHH' hex character constants.
4240   These don't provoke an error unfortunately, instead are silently treated
4241   as 'x'.  The following induces an error, until -std is added to get
4242   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4243   array size at least.  It's necessary to write '\x00'==0 to get something
4244   that's true only with -std.  */
4245int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4246
4247/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4248   inside strings and character constants.  */
4249#define FOO(x) 'x'
4250int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4251
4252int test (int i, double x);
4253struct s1 {int (*f) (int a);};
4254struct s2 {int (*f) (double a);};
4255int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4256int argc;
4257char **argv;
4258int
4259main ()
4260{
4261return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4262  ;
4263  return 0;
4264}
4265_ACEOF
4266for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4267	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4268do
4269  CC="$ac_save_CC $ac_arg"
4270  if ac_fn_c_try_compile "$LINENO"; then :
4271  ac_cv_prog_cc_c89=$ac_arg
4272fi
4273rm -f core conftest.err conftest.$ac_objext
4274  test "x$ac_cv_prog_cc_c89" != "xno" && break
4275done
4276rm -f conftest.$ac_ext
4277CC=$ac_save_CC
4278
4279fi
4280# AC_CACHE_VAL
4281case "x$ac_cv_prog_cc_c89" in
4282  x)
4283    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4284$as_echo "none needed" >&6; } ;;
4285  xno)
4286    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4287$as_echo "unsupported" >&6; } ;;
4288  *)
4289    CC="$CC $ac_cv_prog_cc_c89"
4290    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4291$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4292esac
4293if test "x$ac_cv_prog_cc_c89" != xno; then :
4294
4295fi
4296
4297ac_ext=c
4298ac_cpp='$CPP $CPPFLAGS'
4299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4301ac_compiler_gnu=$ac_cv_c_compiler_gnu
4302
4303ac_ext=c
4304ac_cpp='$CPP $CPPFLAGS'
4305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4307ac_compiler_gnu=$ac_cv_c_compiler_gnu
4308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4309$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4310if ${am_cv_prog_cc_c_o+:} false; then :
4311  $as_echo_n "(cached) " >&6
4312else
4313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314/* end confdefs.h.  */
4315
4316int
4317main ()
4318{
4319
4320  ;
4321  return 0;
4322}
4323_ACEOF
4324  # Make sure it works both with $CC and with simple cc.
4325  # Following AC_PROG_CC_C_O, we do the test twice because some
4326  # compilers refuse to overwrite an existing .o file with -o,
4327  # though they will create one.
4328  am_cv_prog_cc_c_o=yes
4329  for am_i in 1 2; do
4330    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4331   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4332   ac_status=$?
4333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334   (exit $ac_status); } \
4335         && test -f conftest2.$ac_objext; then
4336      : OK
4337    else
4338      am_cv_prog_cc_c_o=no
4339      break
4340    fi
4341  done
4342  rm -f core conftest*
4343  unset am_i
4344fi
4345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4346$as_echo "$am_cv_prog_cc_c_o" >&6; }
4347if test "$am_cv_prog_cc_c_o" != yes; then
4348   # Losing compiler, so override with the script.
4349   # FIXME: It is wrong to rewrite CC.
4350   # But if we don't then we get into trouble of one sort or another.
4351   # A longer-term fix would be to have automake use am__CC in this case,
4352   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4353   CC="$am_aux_dir/compile $CC"
4354fi
4355ac_ext=c
4356ac_cpp='$CPP $CPPFLAGS'
4357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4359ac_compiler_gnu=$ac_cv_c_compiler_gnu
4360
4361DEPDIR="${am__leading_dot}deps"
4362
4363ac_config_commands="$ac_config_commands depfiles"
4364
4365
4366am_make=${MAKE-make}
4367cat > confinc << 'END'
4368am__doit:
4369	@echo this is the am__doit target
4370.PHONY: am__doit
4371END
4372# If we don't find an include directive, just comment out the code.
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4374$as_echo_n "checking for style of include used by $am_make... " >&6; }
4375am__include="#"
4376am__quote=
4377_am_result=none
4378# First try GNU make style include.
4379echo "include confinc" > confmf
4380# Ignore all kinds of additional output from 'make'.
4381case `$am_make -s -f confmf 2> /dev/null` in #(
4382*the\ am__doit\ target*)
4383  am__include=include
4384  am__quote=
4385  _am_result=GNU
4386  ;;
4387esac
4388# Now try BSD make style include.
4389if test "$am__include" = "#"; then
4390   echo '.include "confinc"' > confmf
4391   case `$am_make -s -f confmf 2> /dev/null` in #(
4392   *the\ am__doit\ target*)
4393     am__include=.include
4394     am__quote="\""
4395     _am_result=BSD
4396     ;;
4397   esac
4398fi
4399
4400
4401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4402$as_echo "$_am_result" >&6; }
4403rm -f confinc confmf
4404
4405# Check whether --enable-dependency-tracking was given.
4406if test "${enable_dependency_tracking+set}" = set; then :
4407  enableval=$enable_dependency_tracking;
4408fi
4409
4410if test "x$enable_dependency_tracking" != xno; then
4411  am_depcomp="$ac_aux_dir/depcomp"
4412  AMDEPBACKSLASH='\'
4413  am__nodep='_no'
4414fi
4415 if test "x$enable_dependency_tracking" != xno; then
4416  AMDEP_TRUE=
4417  AMDEP_FALSE='#'
4418else
4419  AMDEP_TRUE='#'
4420  AMDEP_FALSE=
4421fi
4422
4423
4424
4425depcc="$CC"   am_compiler_list=
4426
4427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4428$as_echo_n "checking dependency style of $depcc... " >&6; }
4429if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4430  $as_echo_n "(cached) " >&6
4431else
4432  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4433  # We make a subdir and do the tests there.  Otherwise we can end up
4434  # making bogus files that we don't know about and never remove.  For
4435  # instance it was reported that on HP-UX the gcc test will end up
4436  # making a dummy file named 'D' -- because '-MD' means "put the output
4437  # in D".
4438  rm -rf conftest.dir
4439  mkdir conftest.dir
4440  # Copy depcomp to subdir because otherwise we won't find it if we're
4441  # using a relative directory.
4442  cp "$am_depcomp" conftest.dir
4443  cd conftest.dir
4444  # We will build objects and dependencies in a subdirectory because
4445  # it helps to detect inapplicable dependency modes.  For instance
4446  # both Tru64's cc and ICC support -MD to output dependencies as a
4447  # side effect of compilation, but ICC will put the dependencies in
4448  # the current directory while Tru64 will put them in the object
4449  # directory.
4450  mkdir sub
4451
4452  am_cv_CC_dependencies_compiler_type=none
4453  if test "$am_compiler_list" = ""; then
4454     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4455  fi
4456  am__universal=false
4457  case " $depcc " in #(
4458     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4459     esac
4460
4461  for depmode in $am_compiler_list; do
4462    # Setup a source with many dependencies, because some compilers
4463    # like to wrap large dependency lists on column 80 (with \), and
4464    # we should not choose a depcomp mode which is confused by this.
4465    #
4466    # We need to recreate these files for each test, as the compiler may
4467    # overwrite some of them when testing with obscure command lines.
4468    # This happens at least with the AIX C compiler.
4469    : > sub/conftest.c
4470    for i in 1 2 3 4 5 6; do
4471      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4472      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4473      # Solaris 10 /bin/sh.
4474      echo '/* dummy */' > sub/conftst$i.h
4475    done
4476    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4477
4478    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4479    # mode.  It turns out that the SunPro C++ compiler does not properly
4480    # handle '-M -o', and we need to detect this.  Also, some Intel
4481    # versions had trouble with output in subdirs.
4482    am__obj=sub/conftest.${OBJEXT-o}
4483    am__minus_obj="-o $am__obj"
4484    case $depmode in
4485    gcc)
4486      # This depmode causes a compiler race in universal mode.
4487      test "$am__universal" = false || continue
4488      ;;
4489    nosideeffect)
4490      # After this tag, mechanisms are not by side-effect, so they'll
4491      # only be used when explicitly requested.
4492      if test "x$enable_dependency_tracking" = xyes; then
4493	continue
4494      else
4495	break
4496      fi
4497      ;;
4498    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4499      # This compiler won't grok '-c -o', but also, the minuso test has
4500      # not run yet.  These depmodes are late enough in the game, and
4501      # so weak that their functioning should not be impacted.
4502      am__obj=conftest.${OBJEXT-o}
4503      am__minus_obj=
4504      ;;
4505    none) break ;;
4506    esac
4507    if depmode=$depmode \
4508       source=sub/conftest.c object=$am__obj \
4509       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4510       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4511         >/dev/null 2>conftest.err &&
4512       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4513       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4514       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4515       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4516      # icc doesn't choke on unknown options, it will just issue warnings
4517      # or remarks (even with -Werror).  So we grep stderr for any message
4518      # that says an option was ignored or not supported.
4519      # When given -MP, icc 7.0 and 7.1 complain thusly:
4520      #   icc: Command line warning: ignoring option '-M'; no argument required
4521      # The diagnosis changed in icc 8.0:
4522      #   icc: Command line remark: option '-MP' not supported
4523      if (grep 'ignoring option' conftest.err ||
4524          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4525        am_cv_CC_dependencies_compiler_type=$depmode
4526        break
4527      fi
4528    fi
4529  done
4530
4531  cd ..
4532  rm -rf conftest.dir
4533else
4534  am_cv_CC_dependencies_compiler_type=none
4535fi
4536
4537fi
4538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4539$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4540CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4541
4542 if
4543  test "x$enable_dependency_tracking" != xno \
4544  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4545  am__fastdepCC_TRUE=
4546  am__fastdepCC_FALSE='#'
4547else
4548  am__fastdepCC_TRUE='#'
4549  am__fastdepCC_FALSE=
4550fi
4551
4552
4553
4554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4555$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4556if ${ac_cv_path_SED+:} false; then :
4557  $as_echo_n "(cached) " >&6
4558else
4559            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4560     for ac_i in 1 2 3 4 5 6 7; do
4561       ac_script="$ac_script$as_nl$ac_script"
4562     done
4563     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4564     { ac_script=; unset ac_script;}
4565     if test -z "$SED"; then
4566  ac_path_SED_found=false
4567  # Loop through the user's path and test for each of PROGNAME-LIST
4568  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569for as_dir in $PATH
4570do
4571  IFS=$as_save_IFS
4572  test -z "$as_dir" && as_dir=.
4573    for ac_prog in sed gsed; do
4574    for ac_exec_ext in '' $ac_executable_extensions; do
4575      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4576      as_fn_executable_p "$ac_path_SED" || continue
4577# Check for GNU ac_path_SED and select it if it is found.
4578  # Check for GNU $ac_path_SED
4579case `"$ac_path_SED" --version 2>&1` in
4580*GNU*)
4581  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4582*)
4583  ac_count=0
4584  $as_echo_n 0123456789 >"conftest.in"
4585  while :
4586  do
4587    cat "conftest.in" "conftest.in" >"conftest.tmp"
4588    mv "conftest.tmp" "conftest.in"
4589    cp "conftest.in" "conftest.nl"
4590    $as_echo '' >> "conftest.nl"
4591    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4592    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4593    as_fn_arith $ac_count + 1 && ac_count=$as_val
4594    if test $ac_count -gt ${ac_path_SED_max-0}; then
4595      # Best one so far, save it but keep looking for a better one
4596      ac_cv_path_SED="$ac_path_SED"
4597      ac_path_SED_max=$ac_count
4598    fi
4599    # 10*(2^10) chars as input seems more than enough
4600    test $ac_count -gt 10 && break
4601  done
4602  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4603esac
4604
4605      $ac_path_SED_found && break 3
4606    done
4607  done
4608  done
4609IFS=$as_save_IFS
4610  if test -z "$ac_cv_path_SED"; then
4611    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4612  fi
4613else
4614  ac_cv_path_SED=$SED
4615fi
4616
4617fi
4618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4619$as_echo "$ac_cv_path_SED" >&6; }
4620 SED="$ac_cv_path_SED"
4621  rm -f conftest.sed
4622
4623test -z "$SED" && SED=sed
4624Xsed="$SED -e 1s/^X//"
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4637$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4638if ${ac_cv_path_GREP+:} false; then :
4639  $as_echo_n "(cached) " >&6
4640else
4641  if test -z "$GREP"; then
4642  ac_path_GREP_found=false
4643  # Loop through the user's path and test for each of PROGNAME-LIST
4644  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4646do
4647  IFS=$as_save_IFS
4648  test -z "$as_dir" && as_dir=.
4649    for ac_prog in grep ggrep; do
4650    for ac_exec_ext in '' $ac_executable_extensions; do
4651      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4652      as_fn_executable_p "$ac_path_GREP" || continue
4653# Check for GNU ac_path_GREP and select it if it is found.
4654  # Check for GNU $ac_path_GREP
4655case `"$ac_path_GREP" --version 2>&1` in
4656*GNU*)
4657  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4658*)
4659  ac_count=0
4660  $as_echo_n 0123456789 >"conftest.in"
4661  while :
4662  do
4663    cat "conftest.in" "conftest.in" >"conftest.tmp"
4664    mv "conftest.tmp" "conftest.in"
4665    cp "conftest.in" "conftest.nl"
4666    $as_echo 'GREP' >> "conftest.nl"
4667    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4668    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4669    as_fn_arith $ac_count + 1 && ac_count=$as_val
4670    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4671      # Best one so far, save it but keep looking for a better one
4672      ac_cv_path_GREP="$ac_path_GREP"
4673      ac_path_GREP_max=$ac_count
4674    fi
4675    # 10*(2^10) chars as input seems more than enough
4676    test $ac_count -gt 10 && break
4677  done
4678  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4679esac
4680
4681      $ac_path_GREP_found && break 3
4682    done
4683  done
4684  done
4685IFS=$as_save_IFS
4686  if test -z "$ac_cv_path_GREP"; then
4687    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4688  fi
4689else
4690  ac_cv_path_GREP=$GREP
4691fi
4692
4693fi
4694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4695$as_echo "$ac_cv_path_GREP" >&6; }
4696 GREP="$ac_cv_path_GREP"
4697
4698
4699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4700$as_echo_n "checking for egrep... " >&6; }
4701if ${ac_cv_path_EGREP+:} false; then :
4702  $as_echo_n "(cached) " >&6
4703else
4704  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4705   then ac_cv_path_EGREP="$GREP -E"
4706   else
4707     if test -z "$EGREP"; then
4708  ac_path_EGREP_found=false
4709  # Loop through the user's path and test for each of PROGNAME-LIST
4710  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4712do
4713  IFS=$as_save_IFS
4714  test -z "$as_dir" && as_dir=.
4715    for ac_prog in egrep; do
4716    for ac_exec_ext in '' $ac_executable_extensions; do
4717      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4718      as_fn_executable_p "$ac_path_EGREP" || continue
4719# Check for GNU ac_path_EGREP and select it if it is found.
4720  # Check for GNU $ac_path_EGREP
4721case `"$ac_path_EGREP" --version 2>&1` in
4722*GNU*)
4723  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4724*)
4725  ac_count=0
4726  $as_echo_n 0123456789 >"conftest.in"
4727  while :
4728  do
4729    cat "conftest.in" "conftest.in" >"conftest.tmp"
4730    mv "conftest.tmp" "conftest.in"
4731    cp "conftest.in" "conftest.nl"
4732    $as_echo 'EGREP' >> "conftest.nl"
4733    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4734    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4735    as_fn_arith $ac_count + 1 && ac_count=$as_val
4736    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4737      # Best one so far, save it but keep looking for a better one
4738      ac_cv_path_EGREP="$ac_path_EGREP"
4739      ac_path_EGREP_max=$ac_count
4740    fi
4741    # 10*(2^10) chars as input seems more than enough
4742    test $ac_count -gt 10 && break
4743  done
4744  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4745esac
4746
4747      $ac_path_EGREP_found && break 3
4748    done
4749  done
4750  done
4751IFS=$as_save_IFS
4752  if test -z "$ac_cv_path_EGREP"; then
4753    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4754  fi
4755else
4756  ac_cv_path_EGREP=$EGREP
4757fi
4758
4759   fi
4760fi
4761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4762$as_echo "$ac_cv_path_EGREP" >&6; }
4763 EGREP="$ac_cv_path_EGREP"
4764
4765
4766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4767$as_echo_n "checking for fgrep... " >&6; }
4768if ${ac_cv_path_FGREP+:} false; then :
4769  $as_echo_n "(cached) " >&6
4770else
4771  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4772   then ac_cv_path_FGREP="$GREP -F"
4773   else
4774     if test -z "$FGREP"; then
4775  ac_path_FGREP_found=false
4776  # Loop through the user's path and test for each of PROGNAME-LIST
4777  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4779do
4780  IFS=$as_save_IFS
4781  test -z "$as_dir" && as_dir=.
4782    for ac_prog in fgrep; do
4783    for ac_exec_ext in '' $ac_executable_extensions; do
4784      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4785      as_fn_executable_p "$ac_path_FGREP" || continue
4786# Check for GNU ac_path_FGREP and select it if it is found.
4787  # Check for GNU $ac_path_FGREP
4788case `"$ac_path_FGREP" --version 2>&1` in
4789*GNU*)
4790  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4791*)
4792  ac_count=0
4793  $as_echo_n 0123456789 >"conftest.in"
4794  while :
4795  do
4796    cat "conftest.in" "conftest.in" >"conftest.tmp"
4797    mv "conftest.tmp" "conftest.in"
4798    cp "conftest.in" "conftest.nl"
4799    $as_echo 'FGREP' >> "conftest.nl"
4800    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4801    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4802    as_fn_arith $ac_count + 1 && ac_count=$as_val
4803    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4804      # Best one so far, save it but keep looking for a better one
4805      ac_cv_path_FGREP="$ac_path_FGREP"
4806      ac_path_FGREP_max=$ac_count
4807    fi
4808    # 10*(2^10) chars as input seems more than enough
4809    test $ac_count -gt 10 && break
4810  done
4811  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4812esac
4813
4814      $ac_path_FGREP_found && break 3
4815    done
4816  done
4817  done
4818IFS=$as_save_IFS
4819  if test -z "$ac_cv_path_FGREP"; then
4820    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4821  fi
4822else
4823  ac_cv_path_FGREP=$FGREP
4824fi
4825
4826   fi
4827fi
4828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4829$as_echo "$ac_cv_path_FGREP" >&6; }
4830 FGREP="$ac_cv_path_FGREP"
4831
4832
4833test -z "$GREP" && GREP=grep
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4852ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4853ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4854
4855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4856$as_echo_n "checking how to print strings... " >&6; }
4857# Test print first, because it will be a builtin if present.
4858if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4859   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4860  ECHO='print -r --'
4861elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4862  ECHO='printf %s\n'
4863else
4864  # Use this function as a fallback that always works.
4865  func_fallback_echo ()
4866  {
4867    eval 'cat <<_LTECHO_EOF
4868$1
4869_LTECHO_EOF'
4870  }
4871  ECHO='func_fallback_echo'
4872fi
4873
4874# func_echo_all arg...
4875# Invoke $ECHO with all args, space-separated.
4876func_echo_all ()
4877{
4878    $ECHO ""
4879}
4880
4881case "$ECHO" in
4882  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4883$as_echo "printf" >&6; } ;;
4884  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4885$as_echo "print -r" >&6; } ;;
4886  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4887$as_echo "cat" >&6; } ;;
4888esac
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905# Check whether --with-gnu-ld was given.
4906if test "${with_gnu_ld+set}" = set; then :
4907  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4908else
4909  with_gnu_ld=no
4910fi
4911
4912ac_prog=ld
4913if test "$GCC" = yes; then
4914  # Check if gcc -print-prog-name=ld gives a path.
4915  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4916$as_echo_n "checking for ld used by $CC... " >&6; }
4917  case $host in
4918  *-*-mingw*)
4919    # gcc leaves a trailing carriage return which upsets mingw
4920    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4921  *)
4922    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4923  esac
4924  case $ac_prog in
4925    # Accept absolute paths.
4926    [\\/]* | ?:[\\/]*)
4927      re_direlt='/[^/][^/]*/\.\./'
4928      # Canonicalize the pathname of ld
4929      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4930      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4931	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4932      done
4933      test -z "$LD" && LD="$ac_prog"
4934      ;;
4935  "")
4936    # If it fails, then pretend we aren't using GCC.
4937    ac_prog=ld
4938    ;;
4939  *)
4940    # If it is relative, then search for the first ld in PATH.
4941    with_gnu_ld=unknown
4942    ;;
4943  esac
4944elif test "$with_gnu_ld" = yes; then
4945  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4946$as_echo_n "checking for GNU ld... " >&6; }
4947else
4948  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4949$as_echo_n "checking for non-GNU ld... " >&6; }
4950fi
4951if ${lt_cv_path_LD+:} false; then :
4952  $as_echo_n "(cached) " >&6
4953else
4954  if test -z "$LD"; then
4955  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4956  for ac_dir in $PATH; do
4957    IFS="$lt_save_ifs"
4958    test -z "$ac_dir" && ac_dir=.
4959    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4960      lt_cv_path_LD="$ac_dir/$ac_prog"
4961      # Check to see if the program is GNU ld.  I'd rather use --version,
4962      # but apparently some variants of GNU ld only accept -v.
4963      # Break only if it was the GNU/non-GNU ld that we prefer.
4964      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4965      *GNU* | *'with BFD'*)
4966	test "$with_gnu_ld" != no && break
4967	;;
4968      *)
4969	test "$with_gnu_ld" != yes && break
4970	;;
4971      esac
4972    fi
4973  done
4974  IFS="$lt_save_ifs"
4975else
4976  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4977fi
4978fi
4979
4980LD="$lt_cv_path_LD"
4981if test -n "$LD"; then
4982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4983$as_echo "$LD" >&6; }
4984else
4985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986$as_echo "no" >&6; }
4987fi
4988test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4990$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4991if ${lt_cv_prog_gnu_ld+:} false; then :
4992  $as_echo_n "(cached) " >&6
4993else
4994  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4995case `$LD -v 2>&1 </dev/null` in
4996*GNU* | *'with BFD'*)
4997  lt_cv_prog_gnu_ld=yes
4998  ;;
4999*)
5000  lt_cv_prog_gnu_ld=no
5001  ;;
5002esac
5003fi
5004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5005$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5006with_gnu_ld=$lt_cv_prog_gnu_ld
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017for ac_prog in gawk mawk nawk awk
5018do
5019  # Extract the first word of "$ac_prog", so it can be a program name with args.
5020set dummy $ac_prog; ac_word=$2
5021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5022$as_echo_n "checking for $ac_word... " >&6; }
5023if ${ac_cv_prog_AWK+:} false; then :
5024  $as_echo_n "(cached) " >&6
5025else
5026  if test -n "$AWK"; then
5027  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5028else
5029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030for as_dir in $PATH
5031do
5032  IFS=$as_save_IFS
5033  test -z "$as_dir" && as_dir=.
5034    for ac_exec_ext in '' $ac_executable_extensions; do
5035  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5036    ac_cv_prog_AWK="$ac_prog"
5037    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5038    break 2
5039  fi
5040done
5041  done
5042IFS=$as_save_IFS
5043
5044fi
5045fi
5046AWK=$ac_cv_prog_AWK
5047if test -n "$AWK"; then
5048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5049$as_echo "$AWK" >&6; }
5050else
5051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5052$as_echo "no" >&6; }
5053fi
5054
5055
5056  test -n "$AWK" && break
5057done
5058
5059ac_ext=c
5060ac_cpp='$CPP $CPPFLAGS'
5061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5063ac_compiler_gnu=$ac_cv_c_compiler_gnu
5064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5065$as_echo_n "checking how to run the C preprocessor... " >&6; }
5066# On Suns, sometimes $CPP names a directory.
5067if test -n "$CPP" && test -d "$CPP"; then
5068  CPP=
5069fi
5070if test -z "$CPP"; then
5071  if ${ac_cv_prog_CPP+:} false; then :
5072  $as_echo_n "(cached) " >&6
5073else
5074      # Double quotes because CPP needs to be expanded
5075    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5076    do
5077      ac_preproc_ok=false
5078for ac_c_preproc_warn_flag in '' yes
5079do
5080  # Use a header file that comes with gcc, so configuring glibc
5081  # with a fresh cross-compiler works.
5082  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5083  # <limits.h> exists even on freestanding compilers.
5084  # On the NeXT, cc -E runs the code through the compiler's parser,
5085  # not just through cpp. "Syntax error" is here to catch this case.
5086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087/* end confdefs.h.  */
5088#ifdef __STDC__
5089# include <limits.h>
5090#else
5091# include <assert.h>
5092#endif
5093		     Syntax error
5094_ACEOF
5095if ac_fn_c_try_cpp "$LINENO"; then :
5096
5097else
5098  # Broken: fails on valid input.
5099continue
5100fi
5101rm -f conftest.err conftest.i conftest.$ac_ext
5102
5103  # OK, works on sane cases.  Now check whether nonexistent headers
5104  # can be detected and how.
5105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106/* end confdefs.h.  */
5107#include <ac_nonexistent.h>
5108_ACEOF
5109if ac_fn_c_try_cpp "$LINENO"; then :
5110  # Broken: success on invalid input.
5111continue
5112else
5113  # Passes both tests.
5114ac_preproc_ok=:
5115break
5116fi
5117rm -f conftest.err conftest.i conftest.$ac_ext
5118
5119done
5120# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5121rm -f conftest.i conftest.err conftest.$ac_ext
5122if $ac_preproc_ok; then :
5123  break
5124fi
5125
5126    done
5127    ac_cv_prog_CPP=$CPP
5128
5129fi
5130  CPP=$ac_cv_prog_CPP
5131else
5132  ac_cv_prog_CPP=$CPP
5133fi
5134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5135$as_echo "$CPP" >&6; }
5136ac_preproc_ok=false
5137for ac_c_preproc_warn_flag in '' yes
5138do
5139  # Use a header file that comes with gcc, so configuring glibc
5140  # with a fresh cross-compiler works.
5141  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5142  # <limits.h> exists even on freestanding compilers.
5143  # On the NeXT, cc -E runs the code through the compiler's parser,
5144  # not just through cpp. "Syntax error" is here to catch this case.
5145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146/* end confdefs.h.  */
5147#ifdef __STDC__
5148# include <limits.h>
5149#else
5150# include <assert.h>
5151#endif
5152		     Syntax error
5153_ACEOF
5154if ac_fn_c_try_cpp "$LINENO"; then :
5155
5156else
5157  # Broken: fails on valid input.
5158continue
5159fi
5160rm -f conftest.err conftest.i conftest.$ac_ext
5161
5162  # OK, works on sane cases.  Now check whether nonexistent headers
5163  # can be detected and how.
5164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5165/* end confdefs.h.  */
5166#include <ac_nonexistent.h>
5167_ACEOF
5168if ac_fn_c_try_cpp "$LINENO"; then :
5169  # Broken: success on invalid input.
5170continue
5171else
5172  # Passes both tests.
5173ac_preproc_ok=:
5174break
5175fi
5176rm -f conftest.err conftest.i conftest.$ac_ext
5177
5178done
5179# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5180rm -f conftest.i conftest.err conftest.$ac_ext
5181if $ac_preproc_ok; then :
5182
5183else
5184  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5185$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5186as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5187See \`config.log' for more details" "$LINENO" 5; }
5188fi
5189
5190ac_ext=c
5191ac_cpp='$CPP $CPPFLAGS'
5192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5194ac_compiler_gnu=$ac_cv_c_compiler_gnu
5195
5196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5197$as_echo_n "checking whether ln -s works... " >&6; }
5198LN_S=$as_ln_s
5199if test "$LN_S" = "ln -s"; then
5200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5201$as_echo "yes" >&6; }
5202else
5203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5204$as_echo "no, using $LN_S" >&6; }
5205fi
5206
5207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5208$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5209set x ${MAKE-make}
5210ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5211if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5212  $as_echo_n "(cached) " >&6
5213else
5214  cat >conftest.make <<\_ACEOF
5215SHELL = /bin/sh
5216all:
5217	@echo '@@@%%%=$(MAKE)=@@@%%%'
5218_ACEOF
5219# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5220case `${MAKE-make} -f conftest.make 2>/dev/null` in
5221  *@@@%%%=?*=@@@%%%*)
5222    eval ac_cv_prog_make_${ac_make}_set=yes;;
5223  *)
5224    eval ac_cv_prog_make_${ac_make}_set=no;;
5225esac
5226rm -f conftest.make
5227fi
5228if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5230$as_echo "yes" >&6; }
5231  SET_MAKE=
5232else
5233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5234$as_echo "no" >&6; }
5235  SET_MAKE="MAKE=${MAKE-make}"
5236fi
5237
5238
5239
5240
5241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5242$as_echo_n "checking for ANSI C header files... " >&6; }
5243if ${ac_cv_header_stdc+:} false; then :
5244  $as_echo_n "(cached) " >&6
5245else
5246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247/* end confdefs.h.  */
5248#include <stdlib.h>
5249#include <stdarg.h>
5250#include <string.h>
5251#include <float.h>
5252
5253int
5254main ()
5255{
5256
5257  ;
5258  return 0;
5259}
5260_ACEOF
5261if ac_fn_c_try_compile "$LINENO"; then :
5262  ac_cv_header_stdc=yes
5263else
5264  ac_cv_header_stdc=no
5265fi
5266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5267
5268if test $ac_cv_header_stdc = yes; then
5269  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271/* end confdefs.h.  */
5272#include <string.h>
5273
5274_ACEOF
5275if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5276  $EGREP "memchr" >/dev/null 2>&1; then :
5277
5278else
5279  ac_cv_header_stdc=no
5280fi
5281rm -f conftest*
5282
5283fi
5284
5285if test $ac_cv_header_stdc = yes; then
5286  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288/* end confdefs.h.  */
5289#include <stdlib.h>
5290
5291_ACEOF
5292if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5293  $EGREP "free" >/dev/null 2>&1; then :
5294
5295else
5296  ac_cv_header_stdc=no
5297fi
5298rm -f conftest*
5299
5300fi
5301
5302if test $ac_cv_header_stdc = yes; then
5303  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5304  if test "$cross_compiling" = yes; then :
5305  :
5306else
5307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308/* end confdefs.h.  */
5309#include <ctype.h>
5310#include <stdlib.h>
5311#if ((' ' & 0x0FF) == 0x020)
5312# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5313# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5314#else
5315# define ISLOWER(c) \
5316		   (('a' <= (c) && (c) <= 'i') \
5317		     || ('j' <= (c) && (c) <= 'r') \
5318		     || ('s' <= (c) && (c) <= 'z'))
5319# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5320#endif
5321
5322#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5323int
5324main ()
5325{
5326  int i;
5327  for (i = 0; i < 256; i++)
5328    if (XOR (islower (i), ISLOWER (i))
5329	|| toupper (i) != TOUPPER (i))
5330      return 2;
5331  return 0;
5332}
5333_ACEOF
5334if ac_fn_c_try_run "$LINENO"; then :
5335
5336else
5337  ac_cv_header_stdc=no
5338fi
5339rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5340  conftest.$ac_objext conftest.beam conftest.$ac_ext
5341fi
5342
5343fi
5344fi
5345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5346$as_echo "$ac_cv_header_stdc" >&6; }
5347if test $ac_cv_header_stdc = yes; then
5348
5349$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5350
5351fi
5352
5353# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5354for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5355		  inttypes.h stdint.h unistd.h
5356do :
5357  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5358ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5359"
5360if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5361  cat >>confdefs.h <<_ACEOF
5362#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5363_ACEOF
5364
5365fi
5366
5367done
5368
5369
5370
5371  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5372if test "x$ac_cv_header_minix_config_h" = xyes; then :
5373  MINIX=yes
5374else
5375  MINIX=
5376fi
5377
5378
5379  if test "$MINIX" = yes; then
5380
5381$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5382
5383
5384$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5385
5386
5387$as_echo "#define _MINIX 1" >>confdefs.h
5388
5389  fi
5390
5391
5392  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5393$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5394if ${ac_cv_safe_to_define___extensions__+:} false; then :
5395  $as_echo_n "(cached) " >&6
5396else
5397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398/* end confdefs.h.  */
5399
5400#         define __EXTENSIONS__ 1
5401          $ac_includes_default
5402int
5403main ()
5404{
5405
5406  ;
5407  return 0;
5408}
5409_ACEOF
5410if ac_fn_c_try_compile "$LINENO"; then :
5411  ac_cv_safe_to_define___extensions__=yes
5412else
5413  ac_cv_safe_to_define___extensions__=no
5414fi
5415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5416fi
5417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5418$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5419  test $ac_cv_safe_to_define___extensions__ = yes &&
5420    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5421
5422  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5423
5424  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5425
5426  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5427
5428  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5429
5430
5431if test -n "$ac_tool_prefix"; then
5432  for ac_prog in ar lib "link -lib"
5433  do
5434    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5435set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5437$as_echo_n "checking for $ac_word... " >&6; }
5438if ${ac_cv_prog_AR+:} false; then :
5439  $as_echo_n "(cached) " >&6
5440else
5441  if test -n "$AR"; then
5442  ac_cv_prog_AR="$AR" # Let the user override the test.
5443else
5444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445for as_dir in $PATH
5446do
5447  IFS=$as_save_IFS
5448  test -z "$as_dir" && as_dir=.
5449    for ac_exec_ext in '' $ac_executable_extensions; do
5450  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5451    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5452    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5453    break 2
5454  fi
5455done
5456  done
5457IFS=$as_save_IFS
5458
5459fi
5460fi
5461AR=$ac_cv_prog_AR
5462if test -n "$AR"; then
5463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5464$as_echo "$AR" >&6; }
5465else
5466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467$as_echo "no" >&6; }
5468fi
5469
5470
5471    test -n "$AR" && break
5472  done
5473fi
5474if test -z "$AR"; then
5475  ac_ct_AR=$AR
5476  for ac_prog in ar lib "link -lib"
5477do
5478  # Extract the first word of "$ac_prog", so it can be a program name with args.
5479set dummy $ac_prog; ac_word=$2
5480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5481$as_echo_n "checking for $ac_word... " >&6; }
5482if ${ac_cv_prog_ac_ct_AR+:} false; then :
5483  $as_echo_n "(cached) " >&6
5484else
5485  if test -n "$ac_ct_AR"; then
5486  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5487else
5488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489for as_dir in $PATH
5490do
5491  IFS=$as_save_IFS
5492  test -z "$as_dir" && as_dir=.
5493    for ac_exec_ext in '' $ac_executable_extensions; do
5494  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5495    ac_cv_prog_ac_ct_AR="$ac_prog"
5496    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5497    break 2
5498  fi
5499done
5500  done
5501IFS=$as_save_IFS
5502
5503fi
5504fi
5505ac_ct_AR=$ac_cv_prog_ac_ct_AR
5506if test -n "$ac_ct_AR"; then
5507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5508$as_echo "$ac_ct_AR" >&6; }
5509else
5510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5511$as_echo "no" >&6; }
5512fi
5513
5514
5515  test -n "$ac_ct_AR" && break
5516done
5517
5518  if test "x$ac_ct_AR" = x; then
5519    AR="false"
5520  else
5521    case $cross_compiling:$ac_tool_warned in
5522yes:)
5523{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5524$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5525ac_tool_warned=yes ;;
5526esac
5527    AR=$ac_ct_AR
5528  fi
5529fi
5530
5531: ${AR=ar}
5532
5533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5534$as_echo_n "checking the archiver ($AR) interface... " >&6; }
5535if ${am_cv_ar_interface+:} false; then :
5536  $as_echo_n "(cached) " >&6
5537else
5538  ac_ext=c
5539ac_cpp='$CPP $CPPFLAGS'
5540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5542ac_compiler_gnu=$ac_cv_c_compiler_gnu
5543
5544   am_cv_ar_interface=ar
5545   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546/* end confdefs.h.  */
5547int some_variable = 0;
5548_ACEOF
5549if ac_fn_c_try_compile "$LINENO"; then :
5550  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5551      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5552  (eval $am_ar_try) 2>&5
5553  ac_status=$?
5554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5555  test $ac_status = 0; }
5556      if test "$ac_status" -eq 0; then
5557        am_cv_ar_interface=ar
5558      else
5559        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5560        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5561  (eval $am_ar_try) 2>&5
5562  ac_status=$?
5563  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5564  test $ac_status = 0; }
5565        if test "$ac_status" -eq 0; then
5566          am_cv_ar_interface=lib
5567        else
5568          am_cv_ar_interface=unknown
5569        fi
5570      fi
5571      rm -f conftest.lib libconftest.a
5572
5573fi
5574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5575   ac_ext=c
5576ac_cpp='$CPP $CPPFLAGS'
5577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5579ac_compiler_gnu=$ac_cv_c_compiler_gnu
5580
5581fi
5582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5583$as_echo "$am_cv_ar_interface" >&6; }
5584
5585case $am_cv_ar_interface in
5586ar)
5587  ;;
5588lib)
5589  # Microsoft lib, so override with the ar-lib wrapper script.
5590  # FIXME: It is wrong to rewrite AR.
5591  # But if we don't then we get into trouble of one sort or another.
5592  # A longer-term fix would be to have automake use am__AR in this case,
5593  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5594  # similar.
5595  AR="$am_aux_dir/ar-lib $AR"
5596  ;;
5597unknown)
5598  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5599  ;;
5600esac
5601
5602
5603
5604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5605$as_echo_n "checking for library containing strerror... " >&6; }
5606if ${ac_cv_search_strerror+:} false; then :
5607  $as_echo_n "(cached) " >&6
5608else
5609  ac_func_search_save_LIBS=$LIBS
5610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611/* end confdefs.h.  */
5612
5613/* Override any GCC internal prototype to avoid an error.
5614   Use char because int might match the return type of a GCC
5615   builtin and then its argument prototype would still apply.  */
5616#ifdef __cplusplus
5617extern "C"
5618#endif
5619char strerror ();
5620int
5621main ()
5622{
5623return strerror ();
5624  ;
5625  return 0;
5626}
5627_ACEOF
5628for ac_lib in '' cposix; do
5629  if test -z "$ac_lib"; then
5630    ac_res="none required"
5631  else
5632    ac_res=-l$ac_lib
5633    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5634  fi
5635  if ac_fn_c_try_link "$LINENO"; then :
5636  ac_cv_search_strerror=$ac_res
5637fi
5638rm -f core conftest.err conftest.$ac_objext \
5639    conftest$ac_exeext
5640  if ${ac_cv_search_strerror+:} false; then :
5641  break
5642fi
5643done
5644if ${ac_cv_search_strerror+:} false; then :
5645
5646else
5647  ac_cv_search_strerror=no
5648fi
5649rm conftest.$ac_ext
5650LIBS=$ac_func_search_save_LIBS
5651fi
5652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5653$as_echo "$ac_cv_search_strerror" >&6; }
5654ac_res=$ac_cv_search_strerror
5655if test "$ac_res" != no; then :
5656  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5657
5658fi
5659
5660
5661
5662case $host_os in
5663	*darwin*|*cygwin*|*aix*|*mingw* ) NO_RDYNAMIC=yes;;
5664	* ) NO_RDYNAMIC=no;;
5665esac
5666 if test x$NO_RDYNAMIC = xyes; then
5667  NO_RDYNAMIC_TRUE=
5668  NO_RDYNAMIC_FALSE='#'
5669else
5670  NO_RDYNAMIC_TRUE='#'
5671  NO_RDYNAMIC_FALSE=
5672fi
5673
5674
5675
5676
5677# Check whether --enable-static was given.
5678if test "${enable_static+set}" = set; then :
5679  enableval=$enable_static; p=${PACKAGE-default}
5680    case $enableval in
5681    yes) enable_static=yes ;;
5682    no) enable_static=no ;;
5683    *)
5684     enable_static=no
5685      # Look at the argument we got.  We use all the common list separators.
5686      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5687      for pkg in $enableval; do
5688	IFS="$lt_save_ifs"
5689	if test "X$pkg" = "X$p"; then
5690	  enable_static=yes
5691	fi
5692      done
5693      IFS="$lt_save_ifs"
5694      ;;
5695    esac
5696else
5697  enable_static=no
5698fi
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708# Check whether --enable-shared was given.
5709if test "${enable_shared+set}" = set; then :
5710  enableval=$enable_shared; p=${PACKAGE-default}
5711    case $enableval in
5712    yes) enable_shared=yes ;;
5713    no) enable_shared=no ;;
5714    *)
5715      enable_shared=no
5716      # Look at the argument we got.  We use all the common list separators.
5717      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5718      for pkg in $enableval; do
5719	IFS="$lt_save_ifs"
5720	if test "X$pkg" = "X$p"; then
5721	  enable_shared=yes
5722	fi
5723      done
5724      IFS="$lt_save_ifs"
5725      ;;
5726    esac
5727else
5728  enable_shared=yes
5729fi
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740enable_dlopen=yes
5741
5742
5743
5744case `pwd` in
5745  *\ * | *\	*)
5746    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5747$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5748esac
5749
5750
5751
5752macro_version='2.4.2'
5753macro_revision='1.3337'
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767ltmain="$ac_aux_dir/ltmain.sh"
5768
5769# Backslashify metacharacters that are still active within
5770# double-quoted strings.
5771sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5772
5773# Same as above, but do not quote variable references.
5774double_quote_subst='s/\(["`\\]\)/\\\1/g'
5775
5776# Sed substitution to delay expansion of an escaped shell variable in a
5777# double_quote_subst'ed string.
5778delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5779
5780# Sed substitution to delay expansion of an escaped single quote.
5781delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5782
5783# Sed substitution to avoid accidental globbing in evaled expressions
5784no_glob_subst='s/\*/\\\*/g'
5785
5786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5787$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5788if ${lt_cv_path_NM+:} false; then :
5789  $as_echo_n "(cached) " >&6
5790else
5791  if test -n "$NM"; then
5792  # Let the user override the test.
5793  lt_cv_path_NM="$NM"
5794else
5795  lt_nm_to_check="${ac_tool_prefix}nm"
5796  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5797    lt_nm_to_check="$lt_nm_to_check nm"
5798  fi
5799  for lt_tmp_nm in $lt_nm_to_check; do
5800    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5801    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5802      IFS="$lt_save_ifs"
5803      test -z "$ac_dir" && ac_dir=.
5804      tmp_nm="$ac_dir/$lt_tmp_nm"
5805      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5806	# Check to see if the nm accepts a BSD-compat flag.
5807	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5808	#   nm: unknown option "B" ignored
5809	# Tru64's nm complains that /dev/null is an invalid object file
5810	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5811	*/dev/null* | *'Invalid file or object type'*)
5812	  lt_cv_path_NM="$tmp_nm -B"
5813	  break
5814	  ;;
5815	*)
5816	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5817	  */dev/null*)
5818	    lt_cv_path_NM="$tmp_nm -p"
5819	    break
5820	    ;;
5821	  *)
5822	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5823	    continue # so that we can try to find one that supports BSD flags
5824	    ;;
5825	  esac
5826	  ;;
5827	esac
5828      fi
5829    done
5830    IFS="$lt_save_ifs"
5831  done
5832  : ${lt_cv_path_NM=no}
5833fi
5834fi
5835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5836$as_echo "$lt_cv_path_NM" >&6; }
5837if test "$lt_cv_path_NM" != "no"; then
5838  NM="$lt_cv_path_NM"
5839else
5840  # Didn't find any BSD compatible name lister, look for dumpbin.
5841  if test -n "$DUMPBIN"; then :
5842    # Let the user override the test.
5843  else
5844    if test -n "$ac_tool_prefix"; then
5845  for ac_prog in dumpbin "link -dump"
5846  do
5847    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5848set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5850$as_echo_n "checking for $ac_word... " >&6; }
5851if ${ac_cv_prog_DUMPBIN+:} false; then :
5852  $as_echo_n "(cached) " >&6
5853else
5854  if test -n "$DUMPBIN"; then
5855  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5856else
5857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858for as_dir in $PATH
5859do
5860  IFS=$as_save_IFS
5861  test -z "$as_dir" && as_dir=.
5862    for ac_exec_ext in '' $ac_executable_extensions; do
5863  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5864    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5865    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5866    break 2
5867  fi
5868done
5869  done
5870IFS=$as_save_IFS
5871
5872fi
5873fi
5874DUMPBIN=$ac_cv_prog_DUMPBIN
5875if test -n "$DUMPBIN"; then
5876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5877$as_echo "$DUMPBIN" >&6; }
5878else
5879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5880$as_echo "no" >&6; }
5881fi
5882
5883
5884    test -n "$DUMPBIN" && break
5885  done
5886fi
5887if test -z "$DUMPBIN"; then
5888  ac_ct_DUMPBIN=$DUMPBIN
5889  for ac_prog in dumpbin "link -dump"
5890do
5891  # Extract the first word of "$ac_prog", so it can be a program name with args.
5892set dummy $ac_prog; ac_word=$2
5893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5894$as_echo_n "checking for $ac_word... " >&6; }
5895if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5896  $as_echo_n "(cached) " >&6
5897else
5898  if test -n "$ac_ct_DUMPBIN"; then
5899  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5900else
5901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902for as_dir in $PATH
5903do
5904  IFS=$as_save_IFS
5905  test -z "$as_dir" && as_dir=.
5906    for ac_exec_ext in '' $ac_executable_extensions; do
5907  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5908    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5909    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5910    break 2
5911  fi
5912done
5913  done
5914IFS=$as_save_IFS
5915
5916fi
5917fi
5918ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5919if test -n "$ac_ct_DUMPBIN"; then
5920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5921$as_echo "$ac_ct_DUMPBIN" >&6; }
5922else
5923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5924$as_echo "no" >&6; }
5925fi
5926
5927
5928  test -n "$ac_ct_DUMPBIN" && break
5929done
5930
5931  if test "x$ac_ct_DUMPBIN" = x; then
5932    DUMPBIN=":"
5933  else
5934    case $cross_compiling:$ac_tool_warned in
5935yes:)
5936{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5937$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5938ac_tool_warned=yes ;;
5939esac
5940    DUMPBIN=$ac_ct_DUMPBIN
5941  fi
5942fi
5943
5944    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5945    *COFF*)
5946      DUMPBIN="$DUMPBIN -symbols"
5947      ;;
5948    *)
5949      DUMPBIN=:
5950      ;;
5951    esac
5952  fi
5953
5954  if test "$DUMPBIN" != ":"; then
5955    NM="$DUMPBIN"
5956  fi
5957fi
5958test -z "$NM" && NM=nm
5959
5960
5961
5962
5963
5964
5965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5966$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5967if ${lt_cv_nm_interface+:} false; then :
5968  $as_echo_n "(cached) " >&6
5969else
5970  lt_cv_nm_interface="BSD nm"
5971  echo "int some_variable = 0;" > conftest.$ac_ext
5972  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5973  (eval "$ac_compile" 2>conftest.err)
5974  cat conftest.err >&5
5975  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5976  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5977  cat conftest.err >&5
5978  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5979  cat conftest.out >&5
5980  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5981    lt_cv_nm_interface="MS dumpbin"
5982  fi
5983  rm -f conftest*
5984fi
5985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5986$as_echo "$lt_cv_nm_interface" >&6; }
5987
5988# find the maximum length of command line arguments
5989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5990$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5991if ${lt_cv_sys_max_cmd_len+:} false; then :
5992  $as_echo_n "(cached) " >&6
5993else
5994    i=0
5995  teststring="ABCD"
5996
5997  case $build_os in
5998  msdosdjgpp*)
5999    # On DJGPP, this test can blow up pretty badly due to problems in libc
6000    # (any single argument exceeding 2000 bytes causes a buffer overrun
6001    # during glob expansion).  Even if it were fixed, the result of this
6002    # check would be larger than it should be.
6003    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6004    ;;
6005
6006  gnu*)
6007    # Under GNU Hurd, this test is not required because there is
6008    # no limit to the length of command line arguments.
6009    # Libtool will interpret -1 as no limit whatsoever
6010    lt_cv_sys_max_cmd_len=-1;
6011    ;;
6012
6013  cygwin* | mingw* | cegcc*)
6014    # On Win9x/ME, this test blows up -- it succeeds, but takes
6015    # about 5 minutes as the teststring grows exponentially.
6016    # Worse, since 9x/ME are not pre-emptively multitasking,
6017    # you end up with a "frozen" computer, even though with patience
6018    # the test eventually succeeds (with a max line length of 256k).
6019    # Instead, let's just punt: use the minimum linelength reported by
6020    # all of the supported platforms: 8192 (on NT/2K/XP).
6021    lt_cv_sys_max_cmd_len=8192;
6022    ;;
6023
6024  mint*)
6025    # On MiNT this can take a long time and run out of memory.
6026    lt_cv_sys_max_cmd_len=8192;
6027    ;;
6028
6029  amigaos*)
6030    # On AmigaOS with pdksh, this test takes hours, literally.
6031    # So we just punt and use a minimum line length of 8192.
6032    lt_cv_sys_max_cmd_len=8192;
6033    ;;
6034
6035  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6036    # This has been around since 386BSD, at least.  Likely further.
6037    if test -x /sbin/sysctl; then
6038      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6039    elif test -x /usr/sbin/sysctl; then
6040      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6041    else
6042      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6043    fi
6044    # And add a safety zone
6045    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6046    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6047    ;;
6048
6049  interix*)
6050    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6051    lt_cv_sys_max_cmd_len=196608
6052    ;;
6053
6054  os2*)
6055    # The test takes a long time on OS/2.
6056    lt_cv_sys_max_cmd_len=8192
6057    ;;
6058
6059  osf*)
6060    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6061    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6062    # nice to cause kernel panics so lets avoid the loop below.
6063    # First set a reasonable default.
6064    lt_cv_sys_max_cmd_len=16384
6065    #
6066    if test -x /sbin/sysconfig; then
6067      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6068        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6069      esac
6070    fi
6071    ;;
6072  sco3.2v5*)
6073    lt_cv_sys_max_cmd_len=102400
6074    ;;
6075  sysv5* | sco5v6* | sysv4.2uw2*)
6076    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6077    if test -n "$kargmax"; then
6078      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6079    else
6080      lt_cv_sys_max_cmd_len=32768
6081    fi
6082    ;;
6083  *)
6084    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6085    if test -n "$lt_cv_sys_max_cmd_len" && \
6086	test undefined != "$lt_cv_sys_max_cmd_len"; then
6087      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6088      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6089    else
6090      # Make teststring a little bigger before we do anything with it.
6091      # a 1K string should be a reasonable start.
6092      for i in 1 2 3 4 5 6 7 8 ; do
6093        teststring=$teststring$teststring
6094      done
6095      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6096      # If test is not a shell built-in, we'll probably end up computing a
6097      # maximum length that is only half of the actual maximum length, but
6098      # we can't tell.
6099      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6100	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6101	      test $i != 17 # 1/2 MB should be enough
6102      do
6103        i=`expr $i + 1`
6104        teststring=$teststring$teststring
6105      done
6106      # Only check the string length outside the loop.
6107      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6108      teststring=
6109      # Add a significant safety factor because C++ compilers can tack on
6110      # massive amounts of additional arguments before passing them to the
6111      # linker.  It appears as though 1/2 is a usable value.
6112      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6113    fi
6114    ;;
6115  esac
6116
6117fi
6118
6119if test -n $lt_cv_sys_max_cmd_len ; then
6120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6121$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6122else
6123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6124$as_echo "none" >&6; }
6125fi
6126max_cmd_len=$lt_cv_sys_max_cmd_len
6127
6128
6129
6130
6131
6132
6133: ${CP="cp -f"}
6134: ${MV="mv -f"}
6135: ${RM="rm -f"}
6136
6137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6138$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6139# Try some XSI features
6140xsi_shell=no
6141( _lt_dummy="a/b/c"
6142  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6143      = c,a/b,b/c, \
6144    && eval 'test $(( 1 + 1 )) -eq 2 \
6145    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6146  && xsi_shell=yes
6147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6148$as_echo "$xsi_shell" >&6; }
6149
6150
6151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6152$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6153lt_shell_append=no
6154( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6155    >/dev/null 2>&1 \
6156  && lt_shell_append=yes
6157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6158$as_echo "$lt_shell_append" >&6; }
6159
6160
6161if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6162  lt_unset=unset
6163else
6164  lt_unset=false
6165fi
6166
6167
6168
6169
6170
6171# test EBCDIC or ASCII
6172case `echo X|tr X '\101'` in
6173 A) # ASCII based system
6174    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6175  lt_SP2NL='tr \040 \012'
6176  lt_NL2SP='tr \015\012 \040\040'
6177  ;;
6178 *) # EBCDIC based system
6179  lt_SP2NL='tr \100 \n'
6180  lt_NL2SP='tr \r\n \100\100'
6181  ;;
6182esac
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6193$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6194if ${lt_cv_to_host_file_cmd+:} false; then :
6195  $as_echo_n "(cached) " >&6
6196else
6197  case $host in
6198  *-*-mingw* )
6199    case $build in
6200      *-*-mingw* ) # actually msys
6201        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6202        ;;
6203      *-*-cygwin* )
6204        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6205        ;;
6206      * ) # otherwise, assume *nix
6207        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6208        ;;
6209    esac
6210    ;;
6211  *-*-cygwin* )
6212    case $build in
6213      *-*-mingw* ) # actually msys
6214        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6215        ;;
6216      *-*-cygwin* )
6217        lt_cv_to_host_file_cmd=func_convert_file_noop
6218        ;;
6219      * ) # otherwise, assume *nix
6220        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6221        ;;
6222    esac
6223    ;;
6224  * ) # unhandled hosts (and "normal" native builds)
6225    lt_cv_to_host_file_cmd=func_convert_file_noop
6226    ;;
6227esac
6228
6229fi
6230
6231to_host_file_cmd=$lt_cv_to_host_file_cmd
6232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6233$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6234
6235
6236
6237
6238
6239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6240$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6241if ${lt_cv_to_tool_file_cmd+:} false; then :
6242  $as_echo_n "(cached) " >&6
6243else
6244  #assume ordinary cross tools, or native build.
6245lt_cv_to_tool_file_cmd=func_convert_file_noop
6246case $host in
6247  *-*-mingw* )
6248    case $build in
6249      *-*-mingw* ) # actually msys
6250        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6251        ;;
6252    esac
6253    ;;
6254esac
6255
6256fi
6257
6258to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6260$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6261
6262
6263
6264
6265
6266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6267$as_echo_n "checking for $LD option to reload object files... " >&6; }
6268if ${lt_cv_ld_reload_flag+:} false; then :
6269  $as_echo_n "(cached) " >&6
6270else
6271  lt_cv_ld_reload_flag='-r'
6272fi
6273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6274$as_echo "$lt_cv_ld_reload_flag" >&6; }
6275reload_flag=$lt_cv_ld_reload_flag
6276case $reload_flag in
6277"" | " "*) ;;
6278*) reload_flag=" $reload_flag" ;;
6279esac
6280reload_cmds='$LD$reload_flag -o $output$reload_objs'
6281case $host_os in
6282  cygwin* | mingw* | pw32* | cegcc*)
6283    if test "$GCC" != yes; then
6284      reload_cmds=false
6285    fi
6286    ;;
6287  darwin*)
6288    if test "$GCC" = yes; then
6289      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6290    else
6291      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6292    fi
6293    ;;
6294esac
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304if test -n "$ac_tool_prefix"; then
6305  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6306set dummy ${ac_tool_prefix}objdump; ac_word=$2
6307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6308$as_echo_n "checking for $ac_word... " >&6; }
6309if ${ac_cv_prog_OBJDUMP+:} false; then :
6310  $as_echo_n "(cached) " >&6
6311else
6312  if test -n "$OBJDUMP"; then
6313  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6314else
6315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316for as_dir in $PATH
6317do
6318  IFS=$as_save_IFS
6319  test -z "$as_dir" && as_dir=.
6320    for ac_exec_ext in '' $ac_executable_extensions; do
6321  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6322    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6323    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6324    break 2
6325  fi
6326done
6327  done
6328IFS=$as_save_IFS
6329
6330fi
6331fi
6332OBJDUMP=$ac_cv_prog_OBJDUMP
6333if test -n "$OBJDUMP"; then
6334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6335$as_echo "$OBJDUMP" >&6; }
6336else
6337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338$as_echo "no" >&6; }
6339fi
6340
6341
6342fi
6343if test -z "$ac_cv_prog_OBJDUMP"; then
6344  ac_ct_OBJDUMP=$OBJDUMP
6345  # Extract the first word of "objdump", so it can be a program name with args.
6346set dummy objdump; ac_word=$2
6347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348$as_echo_n "checking for $ac_word... " >&6; }
6349if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6350  $as_echo_n "(cached) " >&6
6351else
6352  if test -n "$ac_ct_OBJDUMP"; then
6353  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6354else
6355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356for as_dir in $PATH
6357do
6358  IFS=$as_save_IFS
6359  test -z "$as_dir" && as_dir=.
6360    for ac_exec_ext in '' $ac_executable_extensions; do
6361  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6362    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6363    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6364    break 2
6365  fi
6366done
6367  done
6368IFS=$as_save_IFS
6369
6370fi
6371fi
6372ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6373if test -n "$ac_ct_OBJDUMP"; then
6374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6375$as_echo "$ac_ct_OBJDUMP" >&6; }
6376else
6377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378$as_echo "no" >&6; }
6379fi
6380
6381  if test "x$ac_ct_OBJDUMP" = x; then
6382    OBJDUMP="false"
6383  else
6384    case $cross_compiling:$ac_tool_warned in
6385yes:)
6386{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6387$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6388ac_tool_warned=yes ;;
6389esac
6390    OBJDUMP=$ac_ct_OBJDUMP
6391  fi
6392else
6393  OBJDUMP="$ac_cv_prog_OBJDUMP"
6394fi
6395
6396test -z "$OBJDUMP" && OBJDUMP=objdump
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6407$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6408if ${lt_cv_deplibs_check_method+:} false; then :
6409  $as_echo_n "(cached) " >&6
6410else
6411  lt_cv_file_magic_cmd='$MAGIC_CMD'
6412lt_cv_file_magic_test_file=
6413lt_cv_deplibs_check_method='unknown'
6414# Need to set the preceding variable on all platforms that support
6415# interlibrary dependencies.
6416# 'none' -- dependencies not supported.
6417# `unknown' -- same as none, but documents that we really don't know.
6418# 'pass_all' -- all dependencies passed with no checks.
6419# 'test_compile' -- check by making test program.
6420# 'file_magic [[regex]]' -- check by looking for files in library path
6421# which responds to the $file_magic_cmd with a given extended regex.
6422# If you have `file' or equivalent on your system and you're not sure
6423# whether `pass_all' will *always* work, you probably want this one.
6424
6425case $host_os in
6426aix[4-9]*)
6427  lt_cv_deplibs_check_method=pass_all
6428  ;;
6429
6430beos*)
6431  lt_cv_deplibs_check_method=pass_all
6432  ;;
6433
6434bsdi[45]*)
6435  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6436  lt_cv_file_magic_cmd='/usr/bin/file -L'
6437  lt_cv_file_magic_test_file=/shlib/libc.so
6438  ;;
6439
6440cygwin*)
6441  # func_win32_libid is a shell function defined in ltmain.sh
6442  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6443  lt_cv_file_magic_cmd='func_win32_libid'
6444  ;;
6445
6446mingw* | pw32*)
6447  # Base MSYS/MinGW do not provide the 'file' command needed by
6448  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6449  # unless we find 'file', for example because we are cross-compiling.
6450  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6451  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6452    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6453    lt_cv_file_magic_cmd='func_win32_libid'
6454  else
6455    # Keep this pattern in sync with the one in func_win32_libid.
6456    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6457    lt_cv_file_magic_cmd='$OBJDUMP -f'
6458  fi
6459  ;;
6460
6461cegcc*)
6462  # use the weaker test based on 'objdump'. See mingw*.
6463  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6464  lt_cv_file_magic_cmd='$OBJDUMP -f'
6465  ;;
6466
6467darwin* | rhapsody*)
6468  lt_cv_deplibs_check_method=pass_all
6469  ;;
6470
6471freebsd* | dragonfly*)
6472  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6473    case $host_cpu in
6474    i*86 )
6475      # Not sure whether the presence of OpenBSD here was a mistake.
6476      # Let's accept both of them until this is cleared up.
6477      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6478      lt_cv_file_magic_cmd=/usr/bin/file
6479      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6480      ;;
6481    esac
6482  else
6483    lt_cv_deplibs_check_method=pass_all
6484  fi
6485  ;;
6486
6487haiku*)
6488  lt_cv_deplibs_check_method=pass_all
6489  ;;
6490
6491hpux10.20* | hpux11*)
6492  lt_cv_file_magic_cmd=/usr/bin/file
6493  case $host_cpu in
6494  ia64*)
6495    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6496    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6497    ;;
6498  hppa*64*)
6499    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6500    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6501    ;;
6502  *)
6503    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6504    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6505    ;;
6506  esac
6507  ;;
6508
6509interix[3-9]*)
6510  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6511  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6512  ;;
6513
6514irix5* | irix6* | nonstopux*)
6515  case $LD in
6516  *-32|*"-32 ") libmagic=32-bit;;
6517  *-n32|*"-n32 ") libmagic=N32;;
6518  *-64|*"-64 ") libmagic=64-bit;;
6519  *) libmagic=never-match;;
6520  esac
6521  lt_cv_deplibs_check_method=pass_all
6522  ;;
6523
6524# This must be glibc/ELF.
6525linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6526  lt_cv_deplibs_check_method=pass_all
6527  ;;
6528
6529netbsd* | netbsdelf*-gnu)
6530  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6531    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6532  else
6533    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6534  fi
6535  ;;
6536
6537newos6*)
6538  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6539  lt_cv_file_magic_cmd=/usr/bin/file
6540  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6541  ;;
6542
6543*nto* | *qnx*)
6544  lt_cv_deplibs_check_method=pass_all
6545  ;;
6546
6547openbsd*)
6548  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6549    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6550  else
6551    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6552  fi
6553  ;;
6554
6555osf3* | osf4* | osf5*)
6556  lt_cv_deplibs_check_method=pass_all
6557  ;;
6558
6559rdos*)
6560  lt_cv_deplibs_check_method=pass_all
6561  ;;
6562
6563solaris*)
6564  lt_cv_deplibs_check_method=pass_all
6565  ;;
6566
6567sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6568  lt_cv_deplibs_check_method=pass_all
6569  ;;
6570
6571sysv4 | sysv4.3*)
6572  case $host_vendor in
6573  motorola)
6574    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6575    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6576    ;;
6577  ncr)
6578    lt_cv_deplibs_check_method=pass_all
6579    ;;
6580  sequent)
6581    lt_cv_file_magic_cmd='/bin/file'
6582    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6583    ;;
6584  sni)
6585    lt_cv_file_magic_cmd='/bin/file'
6586    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6587    lt_cv_file_magic_test_file=/lib/libc.so
6588    ;;
6589  siemens)
6590    lt_cv_deplibs_check_method=pass_all
6591    ;;
6592  pc)
6593    lt_cv_deplibs_check_method=pass_all
6594    ;;
6595  esac
6596  ;;
6597
6598tpf*)
6599  lt_cv_deplibs_check_method=pass_all
6600  ;;
6601esac
6602
6603fi
6604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6605$as_echo "$lt_cv_deplibs_check_method" >&6; }
6606
6607file_magic_glob=
6608want_nocaseglob=no
6609if test "$build" = "$host"; then
6610  case $host_os in
6611  mingw* | pw32*)
6612    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6613      want_nocaseglob=yes
6614    else
6615      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6616    fi
6617    ;;
6618  esac
6619fi
6620
6621file_magic_cmd=$lt_cv_file_magic_cmd
6622deplibs_check_method=$lt_cv_deplibs_check_method
6623test -z "$deplibs_check_method" && deplibs_check_method=unknown
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646if test -n "$ac_tool_prefix"; then
6647  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6648set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6650$as_echo_n "checking for $ac_word... " >&6; }
6651if ${ac_cv_prog_DLLTOOL+:} false; then :
6652  $as_echo_n "(cached) " >&6
6653else
6654  if test -n "$DLLTOOL"; then
6655  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6656else
6657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658for as_dir in $PATH
6659do
6660  IFS=$as_save_IFS
6661  test -z "$as_dir" && as_dir=.
6662    for ac_exec_ext in '' $ac_executable_extensions; do
6663  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6664    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6665    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6666    break 2
6667  fi
6668done
6669  done
6670IFS=$as_save_IFS
6671
6672fi
6673fi
6674DLLTOOL=$ac_cv_prog_DLLTOOL
6675if test -n "$DLLTOOL"; then
6676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6677$as_echo "$DLLTOOL" >&6; }
6678else
6679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6680$as_echo "no" >&6; }
6681fi
6682
6683
6684fi
6685if test -z "$ac_cv_prog_DLLTOOL"; then
6686  ac_ct_DLLTOOL=$DLLTOOL
6687  # Extract the first word of "dlltool", so it can be a program name with args.
6688set dummy dlltool; ac_word=$2
6689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6690$as_echo_n "checking for $ac_word... " >&6; }
6691if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6692  $as_echo_n "(cached) " >&6
6693else
6694  if test -n "$ac_ct_DLLTOOL"; then
6695  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6696else
6697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698for as_dir in $PATH
6699do
6700  IFS=$as_save_IFS
6701  test -z "$as_dir" && as_dir=.
6702    for ac_exec_ext in '' $ac_executable_extensions; do
6703  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6704    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6705    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6706    break 2
6707  fi
6708done
6709  done
6710IFS=$as_save_IFS
6711
6712fi
6713fi
6714ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6715if test -n "$ac_ct_DLLTOOL"; then
6716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6717$as_echo "$ac_ct_DLLTOOL" >&6; }
6718else
6719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6720$as_echo "no" >&6; }
6721fi
6722
6723  if test "x$ac_ct_DLLTOOL" = x; then
6724    DLLTOOL="false"
6725  else
6726    case $cross_compiling:$ac_tool_warned in
6727yes:)
6728{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6729$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6730ac_tool_warned=yes ;;
6731esac
6732    DLLTOOL=$ac_ct_DLLTOOL
6733  fi
6734else
6735  DLLTOOL="$ac_cv_prog_DLLTOOL"
6736fi
6737
6738test -z "$DLLTOOL" && DLLTOOL=dlltool
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6750$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6751if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6752  $as_echo_n "(cached) " >&6
6753else
6754  lt_cv_sharedlib_from_linklib_cmd='unknown'
6755
6756case $host_os in
6757cygwin* | mingw* | pw32* | cegcc*)
6758  # two different shell functions defined in ltmain.sh
6759  # decide which to use based on capabilities of $DLLTOOL
6760  case `$DLLTOOL --help 2>&1` in
6761  *--identify-strict*)
6762    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6763    ;;
6764  *)
6765    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6766    ;;
6767  esac
6768  ;;
6769*)
6770  # fallback: assume linklib IS sharedlib
6771  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6772  ;;
6773esac
6774
6775fi
6776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6777$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6778sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6779test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6780
6781
6782
6783
6784
6785
6786
6787if test -n "$ac_tool_prefix"; then
6788  for ac_prog in ar
6789  do
6790    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6791set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6793$as_echo_n "checking for $ac_word... " >&6; }
6794if ${ac_cv_prog_AR+:} false; then :
6795  $as_echo_n "(cached) " >&6
6796else
6797  if test -n "$AR"; then
6798  ac_cv_prog_AR="$AR" # Let the user override the test.
6799else
6800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801for as_dir in $PATH
6802do
6803  IFS=$as_save_IFS
6804  test -z "$as_dir" && as_dir=.
6805    for ac_exec_ext in '' $ac_executable_extensions; do
6806  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6807    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6808    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6809    break 2
6810  fi
6811done
6812  done
6813IFS=$as_save_IFS
6814
6815fi
6816fi
6817AR=$ac_cv_prog_AR
6818if test -n "$AR"; then
6819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6820$as_echo "$AR" >&6; }
6821else
6822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6823$as_echo "no" >&6; }
6824fi
6825
6826
6827    test -n "$AR" && break
6828  done
6829fi
6830if test -z "$AR"; then
6831  ac_ct_AR=$AR
6832  for ac_prog in ar
6833do
6834  # Extract the first word of "$ac_prog", so it can be a program name with args.
6835set dummy $ac_prog; ac_word=$2
6836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837$as_echo_n "checking for $ac_word... " >&6; }
6838if ${ac_cv_prog_ac_ct_AR+:} false; then :
6839  $as_echo_n "(cached) " >&6
6840else
6841  if test -n "$ac_ct_AR"; then
6842  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6843else
6844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845for as_dir in $PATH
6846do
6847  IFS=$as_save_IFS
6848  test -z "$as_dir" && as_dir=.
6849    for ac_exec_ext in '' $ac_executable_extensions; do
6850  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6851    ac_cv_prog_ac_ct_AR="$ac_prog"
6852    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6853    break 2
6854  fi
6855done
6856  done
6857IFS=$as_save_IFS
6858
6859fi
6860fi
6861ac_ct_AR=$ac_cv_prog_ac_ct_AR
6862if test -n "$ac_ct_AR"; then
6863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6864$as_echo "$ac_ct_AR" >&6; }
6865else
6866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6867$as_echo "no" >&6; }
6868fi
6869
6870
6871  test -n "$ac_ct_AR" && break
6872done
6873
6874  if test "x$ac_ct_AR" = x; then
6875    AR="false"
6876  else
6877    case $cross_compiling:$ac_tool_warned in
6878yes:)
6879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6881ac_tool_warned=yes ;;
6882esac
6883    AR=$ac_ct_AR
6884  fi
6885fi
6886
6887: ${AR=ar}
6888: ${AR_FLAGS=cru}
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6901$as_echo_n "checking for archiver @FILE support... " >&6; }
6902if ${lt_cv_ar_at_file+:} false; then :
6903  $as_echo_n "(cached) " >&6
6904else
6905  lt_cv_ar_at_file=no
6906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6907/* end confdefs.h.  */
6908
6909int
6910main ()
6911{
6912
6913  ;
6914  return 0;
6915}
6916_ACEOF
6917if ac_fn_c_try_compile "$LINENO"; then :
6918  echo conftest.$ac_objext > conftest.lst
6919      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6920      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6921  (eval $lt_ar_try) 2>&5
6922  ac_status=$?
6923  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6924  test $ac_status = 0; }
6925      if test "$ac_status" -eq 0; then
6926	# Ensure the archiver fails upon bogus file names.
6927	rm -f conftest.$ac_objext libconftest.a
6928	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6929  (eval $lt_ar_try) 2>&5
6930  ac_status=$?
6931  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6932  test $ac_status = 0; }
6933	if test "$ac_status" -ne 0; then
6934          lt_cv_ar_at_file=@
6935        fi
6936      fi
6937      rm -f conftest.* libconftest.a
6938
6939fi
6940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6941
6942fi
6943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6944$as_echo "$lt_cv_ar_at_file" >&6; }
6945
6946if test "x$lt_cv_ar_at_file" = xno; then
6947  archiver_list_spec=
6948else
6949  archiver_list_spec=$lt_cv_ar_at_file
6950fi
6951
6952
6953
6954
6955
6956
6957
6958if test -n "$ac_tool_prefix"; then
6959  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6960set dummy ${ac_tool_prefix}strip; ac_word=$2
6961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6962$as_echo_n "checking for $ac_word... " >&6; }
6963if ${ac_cv_prog_STRIP+:} false; then :
6964  $as_echo_n "(cached) " >&6
6965else
6966  if test -n "$STRIP"; then
6967  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6968else
6969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6970for as_dir in $PATH
6971do
6972  IFS=$as_save_IFS
6973  test -z "$as_dir" && as_dir=.
6974    for ac_exec_ext in '' $ac_executable_extensions; do
6975  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6976    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6977    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6978    break 2
6979  fi
6980done
6981  done
6982IFS=$as_save_IFS
6983
6984fi
6985fi
6986STRIP=$ac_cv_prog_STRIP
6987if test -n "$STRIP"; then
6988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6989$as_echo "$STRIP" >&6; }
6990else
6991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6992$as_echo "no" >&6; }
6993fi
6994
6995
6996fi
6997if test -z "$ac_cv_prog_STRIP"; then
6998  ac_ct_STRIP=$STRIP
6999  # Extract the first word of "strip", so it can be a program name with args.
7000set dummy strip; ac_word=$2
7001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7002$as_echo_n "checking for $ac_word... " >&6; }
7003if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7004  $as_echo_n "(cached) " >&6
7005else
7006  if test -n "$ac_ct_STRIP"; then
7007  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7008else
7009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010for as_dir in $PATH
7011do
7012  IFS=$as_save_IFS
7013  test -z "$as_dir" && as_dir=.
7014    for ac_exec_ext in '' $ac_executable_extensions; do
7015  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7016    ac_cv_prog_ac_ct_STRIP="strip"
7017    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7018    break 2
7019  fi
7020done
7021  done
7022IFS=$as_save_IFS
7023
7024fi
7025fi
7026ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7027if test -n "$ac_ct_STRIP"; then
7028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7029$as_echo "$ac_ct_STRIP" >&6; }
7030else
7031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7032$as_echo "no" >&6; }
7033fi
7034
7035  if test "x$ac_ct_STRIP" = x; then
7036    STRIP=":"
7037  else
7038    case $cross_compiling:$ac_tool_warned in
7039yes:)
7040{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7041$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7042ac_tool_warned=yes ;;
7043esac
7044    STRIP=$ac_ct_STRIP
7045  fi
7046else
7047  STRIP="$ac_cv_prog_STRIP"
7048fi
7049
7050test -z "$STRIP" && STRIP=:
7051
7052
7053
7054
7055
7056
7057if test -n "$ac_tool_prefix"; then
7058  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7059set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7061$as_echo_n "checking for $ac_word... " >&6; }
7062if ${ac_cv_prog_RANLIB+:} false; then :
7063  $as_echo_n "(cached) " >&6
7064else
7065  if test -n "$RANLIB"; then
7066  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7067else
7068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069for as_dir in $PATH
7070do
7071  IFS=$as_save_IFS
7072  test -z "$as_dir" && as_dir=.
7073    for ac_exec_ext in '' $ac_executable_extensions; do
7074  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7075    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7076    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7077    break 2
7078  fi
7079done
7080  done
7081IFS=$as_save_IFS
7082
7083fi
7084fi
7085RANLIB=$ac_cv_prog_RANLIB
7086if test -n "$RANLIB"; then
7087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7088$as_echo "$RANLIB" >&6; }
7089else
7090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7091$as_echo "no" >&6; }
7092fi
7093
7094
7095fi
7096if test -z "$ac_cv_prog_RANLIB"; then
7097  ac_ct_RANLIB=$RANLIB
7098  # Extract the first word of "ranlib", so it can be a program name with args.
7099set dummy ranlib; ac_word=$2
7100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7101$as_echo_n "checking for $ac_word... " >&6; }
7102if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7103  $as_echo_n "(cached) " >&6
7104else
7105  if test -n "$ac_ct_RANLIB"; then
7106  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7107else
7108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109for as_dir in $PATH
7110do
7111  IFS=$as_save_IFS
7112  test -z "$as_dir" && as_dir=.
7113    for ac_exec_ext in '' $ac_executable_extensions; do
7114  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7115    ac_cv_prog_ac_ct_RANLIB="ranlib"
7116    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7117    break 2
7118  fi
7119done
7120  done
7121IFS=$as_save_IFS
7122
7123fi
7124fi
7125ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7126if test -n "$ac_ct_RANLIB"; then
7127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7128$as_echo "$ac_ct_RANLIB" >&6; }
7129else
7130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131$as_echo "no" >&6; }
7132fi
7133
7134  if test "x$ac_ct_RANLIB" = x; then
7135    RANLIB=":"
7136  else
7137    case $cross_compiling:$ac_tool_warned in
7138yes:)
7139{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7140$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7141ac_tool_warned=yes ;;
7142esac
7143    RANLIB=$ac_ct_RANLIB
7144  fi
7145else
7146  RANLIB="$ac_cv_prog_RANLIB"
7147fi
7148
7149test -z "$RANLIB" && RANLIB=:
7150
7151
7152
7153
7154
7155
7156# Determine commands to create old-style static archives.
7157old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7158old_postinstall_cmds='chmod 644 $oldlib'
7159old_postuninstall_cmds=
7160
7161if test -n "$RANLIB"; then
7162  case $host_os in
7163  openbsd*)
7164    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7165    ;;
7166  *)
7167    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7168    ;;
7169  esac
7170  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7171fi
7172
7173case $host_os in
7174  darwin*)
7175    lock_old_archive_extraction=yes ;;
7176  *)
7177    lock_old_archive_extraction=no ;;
7178esac
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218# If no C compiler was specified, use CC.
7219LTCC=${LTCC-"$CC"}
7220
7221# If no C compiler flags were specified, use CFLAGS.
7222LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7223
7224# Allow CC to be a program name with arguments.
7225compiler=$CC
7226
7227
7228# Check for command to grab the raw symbol name followed by C symbol from nm.
7229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7230$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7231if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7232  $as_echo_n "(cached) " >&6
7233else
7234
7235# These are sane defaults that work on at least a few old systems.
7236# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7237
7238# Character class describing NM global symbol codes.
7239symcode='[BCDEGRST]'
7240
7241# Regexp to match symbols that can be accessed directly from C.
7242sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7243
7244# Define system-specific variables.
7245case $host_os in
7246aix*)
7247  symcode='[BCDT]'
7248  ;;
7249cygwin* | mingw* | pw32* | cegcc*)
7250  symcode='[ABCDGISTW]'
7251  ;;
7252hpux*)
7253  if test "$host_cpu" = ia64; then
7254    symcode='[ABCDEGRST]'
7255  fi
7256  ;;
7257irix* | nonstopux*)
7258  symcode='[BCDEGRST]'
7259  ;;
7260osf*)
7261  symcode='[BCDEGQRST]'
7262  ;;
7263solaris*)
7264  symcode='[BDRT]'
7265  ;;
7266sco3.2v5*)
7267  symcode='[DT]'
7268  ;;
7269sysv4.2uw2*)
7270  symcode='[DT]'
7271  ;;
7272sysv5* | sco5v6* | unixware* | OpenUNIX*)
7273  symcode='[ABDT]'
7274  ;;
7275sysv4)
7276  symcode='[DFNSTU]'
7277  ;;
7278esac
7279
7280# If we're using GNU nm, then use its standard symbol codes.
7281case `$NM -V 2>&1` in
7282*GNU* | *'with BFD'*)
7283  symcode='[ABCDGIRSTW]' ;;
7284esac
7285
7286# Transform an extracted symbol line into a proper C declaration.
7287# Some systems (esp. on ia64) link data and code symbols differently,
7288# so use this general approach.
7289lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7290
7291# Transform an extracted symbol line into symbol name and symbol address
7292lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7293lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
7294
7295# Handle CRLF in mingw tool chain
7296opt_cr=
7297case $build_os in
7298mingw*)
7299  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7300  ;;
7301esac
7302
7303# Try without a prefix underscore, then with it.
7304for ac_symprfx in "" "_"; do
7305
7306  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7307  symxfrm="\\1 $ac_symprfx\\2 \\2"
7308
7309  # Write the raw and C identifiers.
7310  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7311    # Fake it for dumpbin and say T for any non-static function
7312    # and D for any global variable.
7313    # Also find C++ and __fastcall symbols from MSVC++,
7314    # which start with @ or ?.
7315    lt_cv_sys_global_symbol_pipe="$AWK '"\
7316"     {last_section=section; section=\$ 3};"\
7317"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7318"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7319"     \$ 0!~/External *\|/{next};"\
7320"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7321"     {if(hide[section]) next};"\
7322"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7323"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7324"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7325"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7326"     ' prfx=^$ac_symprfx"
7327  else
7328    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7329  fi
7330  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7331
7332  # Check to see that the pipe works correctly.
7333  pipe_works=no
7334
7335  rm -f conftest*
7336  cat > conftest.$ac_ext <<_LT_EOF
7337#ifdef __cplusplus
7338extern "C" {
7339#endif
7340char nm_test_var;
7341void nm_test_func(void);
7342void nm_test_func(void){}
7343#ifdef __cplusplus
7344}
7345#endif
7346int main(){nm_test_var='a';nm_test_func();return(0);}
7347_LT_EOF
7348
7349  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7350  (eval $ac_compile) 2>&5
7351  ac_status=$?
7352  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7353  test $ac_status = 0; }; then
7354    # Now try to grab the symbols.
7355    nlist=conftest.nm
7356    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7357  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7358  ac_status=$?
7359  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7360  test $ac_status = 0; } && test -s "$nlist"; then
7361      # Try sorting and uniquifying the output.
7362      if sort "$nlist" | uniq > "$nlist"T; then
7363	mv -f "$nlist"T "$nlist"
7364      else
7365	rm -f "$nlist"T
7366      fi
7367
7368      # Make sure that we snagged all the symbols we need.
7369      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7370	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7371	  cat <<_LT_EOF > conftest.$ac_ext
7372/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7373#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7374/* DATA imports from DLLs on WIN32 con't be const, because runtime
7375   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7376# define LT_DLSYM_CONST
7377#elif defined(__osf__)
7378/* This system does not cope well with relocations in const data.  */
7379# define LT_DLSYM_CONST
7380#else
7381# define LT_DLSYM_CONST const
7382#endif
7383
7384#ifdef __cplusplus
7385extern "C" {
7386#endif
7387
7388_LT_EOF
7389	  # Now generate the symbol file.
7390	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7391
7392	  cat <<_LT_EOF >> conftest.$ac_ext
7393
7394/* The mapping between symbol names and symbols.  */
7395LT_DLSYM_CONST struct {
7396  const char *name;
7397  void       *address;
7398}
7399lt__PROGRAM__LTX_preloaded_symbols[] =
7400{
7401  { "@PROGRAM@", (void *) 0 },
7402_LT_EOF
7403	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7404	  cat <<\_LT_EOF >> conftest.$ac_ext
7405  {0, (void *) 0}
7406};
7407
7408/* This works around a problem in FreeBSD linker */
7409#ifdef FREEBSD_WORKAROUND
7410static const void *lt_preloaded_setup() {
7411  return lt__PROGRAM__LTX_preloaded_symbols;
7412}
7413#endif
7414
7415#ifdef __cplusplus
7416}
7417#endif
7418_LT_EOF
7419	  # Now try linking the two files.
7420	  mv conftest.$ac_objext conftstm.$ac_objext
7421	  lt_globsym_save_LIBS=$LIBS
7422	  lt_globsym_save_CFLAGS=$CFLAGS
7423	  LIBS="conftstm.$ac_objext"
7424	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7425	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7426  (eval $ac_link) 2>&5
7427  ac_status=$?
7428  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7429  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7430	    pipe_works=yes
7431	  fi
7432	  LIBS=$lt_globsym_save_LIBS
7433	  CFLAGS=$lt_globsym_save_CFLAGS
7434	else
7435	  echo "cannot find nm_test_func in $nlist" >&5
7436	fi
7437      else
7438	echo "cannot find nm_test_var in $nlist" >&5
7439      fi
7440    else
7441      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7442    fi
7443  else
7444    echo "$progname: failed program was:" >&5
7445    cat conftest.$ac_ext >&5
7446  fi
7447  rm -rf conftest* conftst*
7448
7449  # Do not use the global_symbol_pipe unless it works.
7450  if test "$pipe_works" = yes; then
7451    break
7452  else
7453    lt_cv_sys_global_symbol_pipe=
7454  fi
7455done
7456
7457fi
7458
7459if test -z "$lt_cv_sys_global_symbol_pipe"; then
7460  lt_cv_sys_global_symbol_to_cdecl=
7461fi
7462if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7464$as_echo "failed" >&6; }
7465else
7466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7467$as_echo "ok" >&6; }
7468fi
7469
7470# Response file support.
7471if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7472  nm_file_list_spec='@'
7473elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7474  nm_file_list_spec='@'
7475fi
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7504$as_echo_n "checking for sysroot... " >&6; }
7505
7506# Check whether --with-sysroot was given.
7507if test "${with_sysroot+set}" = set; then :
7508  withval=$with_sysroot;
7509else
7510  with_sysroot=no
7511fi
7512
7513
7514lt_sysroot=
7515case ${with_sysroot} in #(
7516 yes)
7517   if test "$GCC" = yes; then
7518     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7519   fi
7520   ;; #(
7521 /*)
7522   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7523   ;; #(
7524 no|'')
7525   ;; #(
7526 *)
7527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7528$as_echo "${with_sysroot}" >&6; }
7529   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7530   ;;
7531esac
7532
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7534$as_echo "${lt_sysroot:-no}" >&6; }
7535
7536
7537
7538
7539
7540# Check whether --enable-libtool-lock was given.
7541if test "${enable_libtool_lock+set}" = set; then :
7542  enableval=$enable_libtool_lock;
7543fi
7544
7545test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7546
7547# Some flags need to be propagated to the compiler or linker for good
7548# libtool support.
7549case $host in
7550ia64-*-hpux*)
7551  # Find out which ABI we are using.
7552  echo 'int i;' > conftest.$ac_ext
7553  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7554  (eval $ac_compile) 2>&5
7555  ac_status=$?
7556  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7557  test $ac_status = 0; }; then
7558    case `/usr/bin/file conftest.$ac_objext` in
7559      *ELF-32*)
7560	HPUX_IA64_MODE="32"
7561	;;
7562      *ELF-64*)
7563	HPUX_IA64_MODE="64"
7564	;;
7565    esac
7566  fi
7567  rm -rf conftest*
7568  ;;
7569*-*-irix6*)
7570  # Find out which ABI we are using.
7571  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7572  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7573  (eval $ac_compile) 2>&5
7574  ac_status=$?
7575  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7576  test $ac_status = 0; }; then
7577    if test "$lt_cv_prog_gnu_ld" = yes; then
7578      case `/usr/bin/file conftest.$ac_objext` in
7579	*32-bit*)
7580	  LD="${LD-ld} -melf32bsmip"
7581	  ;;
7582	*N32*)
7583	  LD="${LD-ld} -melf32bmipn32"
7584	  ;;
7585	*64-bit*)
7586	  LD="${LD-ld} -melf64bmip"
7587	;;
7588      esac
7589    else
7590      case `/usr/bin/file conftest.$ac_objext` in
7591	*32-bit*)
7592	  LD="${LD-ld} -32"
7593	  ;;
7594	*N32*)
7595	  LD="${LD-ld} -n32"
7596	  ;;
7597	*64-bit*)
7598	  LD="${LD-ld} -64"
7599	  ;;
7600      esac
7601    fi
7602  fi
7603  rm -rf conftest*
7604  ;;
7605
7606x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7607s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7608  # Find out which ABI we are using.
7609  echo 'int i;' > conftest.$ac_ext
7610  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7611  (eval $ac_compile) 2>&5
7612  ac_status=$?
7613  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7614  test $ac_status = 0; }; then
7615    case `/usr/bin/file conftest.o` in
7616      *32-bit*)
7617	case $host in
7618	  x86_64-*kfreebsd*-gnu)
7619	    LD="${LD-ld} -m elf_i386_fbsd"
7620	    ;;
7621	  x86_64-*linux*)
7622	    case `/usr/bin/file conftest.o` in
7623	      *x86-64*)
7624		LD="${LD-ld} -m elf32_x86_64"
7625		;;
7626	      *)
7627		LD="${LD-ld} -m elf_i386"
7628		;;
7629	    esac
7630	    ;;
7631	  powerpc64le-*)
7632	    LD="${LD-ld} -m elf32lppclinux"
7633	    ;;
7634	  powerpc64-*)
7635	    LD="${LD-ld} -m elf32ppclinux"
7636	    ;;
7637	  s390x-*linux*)
7638	    LD="${LD-ld} -m elf_s390"
7639	    ;;
7640	  sparc64-*linux*)
7641	    LD="${LD-ld} -m elf32_sparc"
7642	    ;;
7643	esac
7644	;;
7645      *64-bit*)
7646	case $host in
7647	  x86_64-*kfreebsd*-gnu)
7648	    LD="${LD-ld} -m elf_x86_64_fbsd"
7649	    ;;
7650	  x86_64-*linux*)
7651	    LD="${LD-ld} -m elf_x86_64"
7652	    ;;
7653	  powerpcle-*)
7654	    LD="${LD-ld} -m elf64lppc"
7655	    ;;
7656	  powerpc-*)
7657	    LD="${LD-ld} -m elf64ppc"
7658	    ;;
7659	  s390*-*linux*|s390*-*tpf*)
7660	    LD="${LD-ld} -m elf64_s390"
7661	    ;;
7662	  sparc*-*linux*)
7663	    LD="${LD-ld} -m elf64_sparc"
7664	    ;;
7665	esac
7666	;;
7667    esac
7668  fi
7669  rm -rf conftest*
7670  ;;
7671
7672*-*-sco3.2v5*)
7673  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7674  SAVE_CFLAGS="$CFLAGS"
7675  CFLAGS="$CFLAGS -belf"
7676  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7677$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7678if ${lt_cv_cc_needs_belf+:} false; then :
7679  $as_echo_n "(cached) " >&6
7680else
7681  ac_ext=c
7682ac_cpp='$CPP $CPPFLAGS'
7683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7685ac_compiler_gnu=$ac_cv_c_compiler_gnu
7686
7687     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7688/* end confdefs.h.  */
7689
7690int
7691main ()
7692{
7693
7694  ;
7695  return 0;
7696}
7697_ACEOF
7698if ac_fn_c_try_link "$LINENO"; then :
7699  lt_cv_cc_needs_belf=yes
7700else
7701  lt_cv_cc_needs_belf=no
7702fi
7703rm -f core conftest.err conftest.$ac_objext \
7704    conftest$ac_exeext conftest.$ac_ext
7705     ac_ext=c
7706ac_cpp='$CPP $CPPFLAGS'
7707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7709ac_compiler_gnu=$ac_cv_c_compiler_gnu
7710
7711fi
7712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7713$as_echo "$lt_cv_cc_needs_belf" >&6; }
7714  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7715    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7716    CFLAGS="$SAVE_CFLAGS"
7717  fi
7718  ;;
7719*-*solaris*)
7720  # Find out which ABI we are using.
7721  echo 'int i;' > conftest.$ac_ext
7722  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7723  (eval $ac_compile) 2>&5
7724  ac_status=$?
7725  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7726  test $ac_status = 0; }; then
7727    case `/usr/bin/file conftest.o` in
7728    *64-bit*)
7729      case $lt_cv_prog_gnu_ld in
7730      yes*)
7731        case $host in
7732        i?86-*-solaris*)
7733          LD="${LD-ld} -m elf_x86_64"
7734          ;;
7735        sparc*-*-solaris*)
7736          LD="${LD-ld} -m elf64_sparc"
7737          ;;
7738        esac
7739        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7740        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7741          LD="${LD-ld}_sol2"
7742        fi
7743        ;;
7744      *)
7745	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7746	  LD="${LD-ld} -64"
7747	fi
7748	;;
7749      esac
7750      ;;
7751    esac
7752  fi
7753  rm -rf conftest*
7754  ;;
7755esac
7756
7757need_locks="$enable_libtool_lock"
7758
7759if test -n "$ac_tool_prefix"; then
7760  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7761set dummy ${ac_tool_prefix}mt; ac_word=$2
7762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7763$as_echo_n "checking for $ac_word... " >&6; }
7764if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7765  $as_echo_n "(cached) " >&6
7766else
7767  if test -n "$MANIFEST_TOOL"; then
7768  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7769else
7770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7771for as_dir in $PATH
7772do
7773  IFS=$as_save_IFS
7774  test -z "$as_dir" && as_dir=.
7775    for ac_exec_ext in '' $ac_executable_extensions; do
7776  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7777    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7778    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7779    break 2
7780  fi
7781done
7782  done
7783IFS=$as_save_IFS
7784
7785fi
7786fi
7787MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7788if test -n "$MANIFEST_TOOL"; then
7789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7790$as_echo "$MANIFEST_TOOL" >&6; }
7791else
7792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7793$as_echo "no" >&6; }
7794fi
7795
7796
7797fi
7798if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7799  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7800  # Extract the first word of "mt", so it can be a program name with args.
7801set dummy mt; ac_word=$2
7802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7803$as_echo_n "checking for $ac_word... " >&6; }
7804if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7805  $as_echo_n "(cached) " >&6
7806else
7807  if test -n "$ac_ct_MANIFEST_TOOL"; then
7808  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7809else
7810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7811for as_dir in $PATH
7812do
7813  IFS=$as_save_IFS
7814  test -z "$as_dir" && as_dir=.
7815    for ac_exec_ext in '' $ac_executable_extensions; do
7816  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7817    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7818    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7819    break 2
7820  fi
7821done
7822  done
7823IFS=$as_save_IFS
7824
7825fi
7826fi
7827ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7828if test -n "$ac_ct_MANIFEST_TOOL"; then
7829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7830$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7831else
7832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7833$as_echo "no" >&6; }
7834fi
7835
7836  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7837    MANIFEST_TOOL=":"
7838  else
7839    case $cross_compiling:$ac_tool_warned in
7840yes:)
7841{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7842$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7843ac_tool_warned=yes ;;
7844esac
7845    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7846  fi
7847else
7848  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7849fi
7850
7851test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7853$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7854if ${lt_cv_path_mainfest_tool+:} false; then :
7855  $as_echo_n "(cached) " >&6
7856else
7857  lt_cv_path_mainfest_tool=no
7858  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7859  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7860  cat conftest.err >&5
7861  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7862    lt_cv_path_mainfest_tool=yes
7863  fi
7864  rm -f conftest*
7865fi
7866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7867$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7868if test "x$lt_cv_path_mainfest_tool" != xyes; then
7869  MANIFEST_TOOL=:
7870fi
7871
7872
7873
7874
7875
7876
7877  case $host_os in
7878    rhapsody* | darwin*)
7879    if test -n "$ac_tool_prefix"; then
7880  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7881set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7883$as_echo_n "checking for $ac_word... " >&6; }
7884if ${ac_cv_prog_DSYMUTIL+:} false; then :
7885  $as_echo_n "(cached) " >&6
7886else
7887  if test -n "$DSYMUTIL"; then
7888  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7889else
7890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7891for as_dir in $PATH
7892do
7893  IFS=$as_save_IFS
7894  test -z "$as_dir" && as_dir=.
7895    for ac_exec_ext in '' $ac_executable_extensions; do
7896  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7897    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7898    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7899    break 2
7900  fi
7901done
7902  done
7903IFS=$as_save_IFS
7904
7905fi
7906fi
7907DSYMUTIL=$ac_cv_prog_DSYMUTIL
7908if test -n "$DSYMUTIL"; then
7909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7910$as_echo "$DSYMUTIL" >&6; }
7911else
7912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7913$as_echo "no" >&6; }
7914fi
7915
7916
7917fi
7918if test -z "$ac_cv_prog_DSYMUTIL"; then
7919  ac_ct_DSYMUTIL=$DSYMUTIL
7920  # Extract the first word of "dsymutil", so it can be a program name with args.
7921set dummy dsymutil; ac_word=$2
7922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7923$as_echo_n "checking for $ac_word... " >&6; }
7924if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7925  $as_echo_n "(cached) " >&6
7926else
7927  if test -n "$ac_ct_DSYMUTIL"; then
7928  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7929else
7930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7931for as_dir in $PATH
7932do
7933  IFS=$as_save_IFS
7934  test -z "$as_dir" && as_dir=.
7935    for ac_exec_ext in '' $ac_executable_extensions; do
7936  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7937    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7938    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7939    break 2
7940  fi
7941done
7942  done
7943IFS=$as_save_IFS
7944
7945fi
7946fi
7947ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7948if test -n "$ac_ct_DSYMUTIL"; then
7949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7950$as_echo "$ac_ct_DSYMUTIL" >&6; }
7951else
7952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7953$as_echo "no" >&6; }
7954fi
7955
7956  if test "x$ac_ct_DSYMUTIL" = x; then
7957    DSYMUTIL=":"
7958  else
7959    case $cross_compiling:$ac_tool_warned in
7960yes:)
7961{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7962$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7963ac_tool_warned=yes ;;
7964esac
7965    DSYMUTIL=$ac_ct_DSYMUTIL
7966  fi
7967else
7968  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7969fi
7970
7971    if test -n "$ac_tool_prefix"; then
7972  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7973set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7975$as_echo_n "checking for $ac_word... " >&6; }
7976if ${ac_cv_prog_NMEDIT+:} false; then :
7977  $as_echo_n "(cached) " >&6
7978else
7979  if test -n "$NMEDIT"; then
7980  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7981else
7982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983for as_dir in $PATH
7984do
7985  IFS=$as_save_IFS
7986  test -z "$as_dir" && as_dir=.
7987    for ac_exec_ext in '' $ac_executable_extensions; do
7988  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7989    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7990    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7991    break 2
7992  fi
7993done
7994  done
7995IFS=$as_save_IFS
7996
7997fi
7998fi
7999NMEDIT=$ac_cv_prog_NMEDIT
8000if test -n "$NMEDIT"; then
8001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8002$as_echo "$NMEDIT" >&6; }
8003else
8004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005$as_echo "no" >&6; }
8006fi
8007
8008
8009fi
8010if test -z "$ac_cv_prog_NMEDIT"; then
8011  ac_ct_NMEDIT=$NMEDIT
8012  # Extract the first word of "nmedit", so it can be a program name with args.
8013set dummy nmedit; ac_word=$2
8014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8015$as_echo_n "checking for $ac_word... " >&6; }
8016if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8017  $as_echo_n "(cached) " >&6
8018else
8019  if test -n "$ac_ct_NMEDIT"; then
8020  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8021else
8022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023for as_dir in $PATH
8024do
8025  IFS=$as_save_IFS
8026  test -z "$as_dir" && as_dir=.
8027    for ac_exec_ext in '' $ac_executable_extensions; do
8028  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8029    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8030    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8031    break 2
8032  fi
8033done
8034  done
8035IFS=$as_save_IFS
8036
8037fi
8038fi
8039ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8040if test -n "$ac_ct_NMEDIT"; then
8041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8042$as_echo "$ac_ct_NMEDIT" >&6; }
8043else
8044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8045$as_echo "no" >&6; }
8046fi
8047
8048  if test "x$ac_ct_NMEDIT" = x; then
8049    NMEDIT=":"
8050  else
8051    case $cross_compiling:$ac_tool_warned in
8052yes:)
8053{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8054$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8055ac_tool_warned=yes ;;
8056esac
8057    NMEDIT=$ac_ct_NMEDIT
8058  fi
8059else
8060  NMEDIT="$ac_cv_prog_NMEDIT"
8061fi
8062
8063    if test -n "$ac_tool_prefix"; then
8064  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8065set dummy ${ac_tool_prefix}lipo; ac_word=$2
8066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8067$as_echo_n "checking for $ac_word... " >&6; }
8068if ${ac_cv_prog_LIPO+:} false; then :
8069  $as_echo_n "(cached) " >&6
8070else
8071  if test -n "$LIPO"; then
8072  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8073else
8074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8075for as_dir in $PATH
8076do
8077  IFS=$as_save_IFS
8078  test -z "$as_dir" && as_dir=.
8079    for ac_exec_ext in '' $ac_executable_extensions; do
8080  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8081    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8082    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8083    break 2
8084  fi
8085done
8086  done
8087IFS=$as_save_IFS
8088
8089fi
8090fi
8091LIPO=$ac_cv_prog_LIPO
8092if test -n "$LIPO"; then
8093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8094$as_echo "$LIPO" >&6; }
8095else
8096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8097$as_echo "no" >&6; }
8098fi
8099
8100
8101fi
8102if test -z "$ac_cv_prog_LIPO"; then
8103  ac_ct_LIPO=$LIPO
8104  # Extract the first word of "lipo", so it can be a program name with args.
8105set dummy lipo; ac_word=$2
8106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8107$as_echo_n "checking for $ac_word... " >&6; }
8108if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8109  $as_echo_n "(cached) " >&6
8110else
8111  if test -n "$ac_ct_LIPO"; then
8112  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8113else
8114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8115for as_dir in $PATH
8116do
8117  IFS=$as_save_IFS
8118  test -z "$as_dir" && as_dir=.
8119    for ac_exec_ext in '' $ac_executable_extensions; do
8120  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8121    ac_cv_prog_ac_ct_LIPO="lipo"
8122    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8123    break 2
8124  fi
8125done
8126  done
8127IFS=$as_save_IFS
8128
8129fi
8130fi
8131ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8132if test -n "$ac_ct_LIPO"; then
8133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8134$as_echo "$ac_ct_LIPO" >&6; }
8135else
8136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8137$as_echo "no" >&6; }
8138fi
8139
8140  if test "x$ac_ct_LIPO" = x; then
8141    LIPO=":"
8142  else
8143    case $cross_compiling:$ac_tool_warned in
8144yes:)
8145{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8146$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8147ac_tool_warned=yes ;;
8148esac
8149    LIPO=$ac_ct_LIPO
8150  fi
8151else
8152  LIPO="$ac_cv_prog_LIPO"
8153fi
8154
8155    if test -n "$ac_tool_prefix"; then
8156  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8157set dummy ${ac_tool_prefix}otool; ac_word=$2
8158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8159$as_echo_n "checking for $ac_word... " >&6; }
8160if ${ac_cv_prog_OTOOL+:} false; then :
8161  $as_echo_n "(cached) " >&6
8162else
8163  if test -n "$OTOOL"; then
8164  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8165else
8166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8167for as_dir in $PATH
8168do
8169  IFS=$as_save_IFS
8170  test -z "$as_dir" && as_dir=.
8171    for ac_exec_ext in '' $ac_executable_extensions; do
8172  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8173    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8174    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8175    break 2
8176  fi
8177done
8178  done
8179IFS=$as_save_IFS
8180
8181fi
8182fi
8183OTOOL=$ac_cv_prog_OTOOL
8184if test -n "$OTOOL"; then
8185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8186$as_echo "$OTOOL" >&6; }
8187else
8188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8189$as_echo "no" >&6; }
8190fi
8191
8192
8193fi
8194if test -z "$ac_cv_prog_OTOOL"; then
8195  ac_ct_OTOOL=$OTOOL
8196  # Extract the first word of "otool", so it can be a program name with args.
8197set dummy otool; ac_word=$2
8198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8199$as_echo_n "checking for $ac_word... " >&6; }
8200if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8201  $as_echo_n "(cached) " >&6
8202else
8203  if test -n "$ac_ct_OTOOL"; then
8204  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8205else
8206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8207for as_dir in $PATH
8208do
8209  IFS=$as_save_IFS
8210  test -z "$as_dir" && as_dir=.
8211    for ac_exec_ext in '' $ac_executable_extensions; do
8212  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8213    ac_cv_prog_ac_ct_OTOOL="otool"
8214    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8215    break 2
8216  fi
8217done
8218  done
8219IFS=$as_save_IFS
8220
8221fi
8222fi
8223ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8224if test -n "$ac_ct_OTOOL"; then
8225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8226$as_echo "$ac_ct_OTOOL" >&6; }
8227else
8228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8229$as_echo "no" >&6; }
8230fi
8231
8232  if test "x$ac_ct_OTOOL" = x; then
8233    OTOOL=":"
8234  else
8235    case $cross_compiling:$ac_tool_warned in
8236yes:)
8237{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8238$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8239ac_tool_warned=yes ;;
8240esac
8241    OTOOL=$ac_ct_OTOOL
8242  fi
8243else
8244  OTOOL="$ac_cv_prog_OTOOL"
8245fi
8246
8247    if test -n "$ac_tool_prefix"; then
8248  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8249set dummy ${ac_tool_prefix}otool64; ac_word=$2
8250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8251$as_echo_n "checking for $ac_word... " >&6; }
8252if ${ac_cv_prog_OTOOL64+:} false; then :
8253  $as_echo_n "(cached) " >&6
8254else
8255  if test -n "$OTOOL64"; then
8256  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8257else
8258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8259for as_dir in $PATH
8260do
8261  IFS=$as_save_IFS
8262  test -z "$as_dir" && as_dir=.
8263    for ac_exec_ext in '' $ac_executable_extensions; do
8264  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8265    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8266    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8267    break 2
8268  fi
8269done
8270  done
8271IFS=$as_save_IFS
8272
8273fi
8274fi
8275OTOOL64=$ac_cv_prog_OTOOL64
8276if test -n "$OTOOL64"; then
8277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8278$as_echo "$OTOOL64" >&6; }
8279else
8280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8281$as_echo "no" >&6; }
8282fi
8283
8284
8285fi
8286if test -z "$ac_cv_prog_OTOOL64"; then
8287  ac_ct_OTOOL64=$OTOOL64
8288  # Extract the first word of "otool64", so it can be a program name with args.
8289set dummy otool64; ac_word=$2
8290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8291$as_echo_n "checking for $ac_word... " >&6; }
8292if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8293  $as_echo_n "(cached) " >&6
8294else
8295  if test -n "$ac_ct_OTOOL64"; then
8296  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8297else
8298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8299for as_dir in $PATH
8300do
8301  IFS=$as_save_IFS
8302  test -z "$as_dir" && as_dir=.
8303    for ac_exec_ext in '' $ac_executable_extensions; do
8304  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8305    ac_cv_prog_ac_ct_OTOOL64="otool64"
8306    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8307    break 2
8308  fi
8309done
8310  done
8311IFS=$as_save_IFS
8312
8313fi
8314fi
8315ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8316if test -n "$ac_ct_OTOOL64"; then
8317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8318$as_echo "$ac_ct_OTOOL64" >&6; }
8319else
8320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8321$as_echo "no" >&6; }
8322fi
8323
8324  if test "x$ac_ct_OTOOL64" = x; then
8325    OTOOL64=":"
8326  else
8327    case $cross_compiling:$ac_tool_warned in
8328yes:)
8329{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8330$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8331ac_tool_warned=yes ;;
8332esac
8333    OTOOL64=$ac_ct_OTOOL64
8334  fi
8335else
8336  OTOOL64="$ac_cv_prog_OTOOL64"
8337fi
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8366$as_echo_n "checking for -single_module linker flag... " >&6; }
8367if ${lt_cv_apple_cc_single_mod+:} false; then :
8368  $as_echo_n "(cached) " >&6
8369else
8370  lt_cv_apple_cc_single_mod=no
8371      if test -z "${LT_MULTI_MODULE}"; then
8372	# By default we will add the -single_module flag. You can override
8373	# by either setting the environment variable LT_MULTI_MODULE
8374	# non-empty at configure time, or by adding -multi_module to the
8375	# link flags.
8376	rm -rf libconftest.dylib*
8377	echo "int foo(void){return 1;}" > conftest.c
8378	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8379-dynamiclib -Wl,-single_module conftest.c" >&5
8380	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8381	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8382        _lt_result=$?
8383	# If there is a non-empty error log, and "single_module"
8384	# appears in it, assume the flag caused a linker warning
8385        if test -s conftest.err && $GREP single_module conftest.err; then
8386	  cat conftest.err >&5
8387	# Otherwise, if the output was created with a 0 exit code from
8388	# the compiler, it worked.
8389	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8390	  lt_cv_apple_cc_single_mod=yes
8391	else
8392	  cat conftest.err >&5
8393	fi
8394	rm -rf libconftest.dylib*
8395	rm -f conftest.*
8396      fi
8397fi
8398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8399$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8400
8401    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8402$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8403if ${lt_cv_ld_exported_symbols_list+:} false; then :
8404  $as_echo_n "(cached) " >&6
8405else
8406  lt_cv_ld_exported_symbols_list=no
8407      save_LDFLAGS=$LDFLAGS
8408      echo "_main" > conftest.sym
8409      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8410      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8411/* end confdefs.h.  */
8412
8413int
8414main ()
8415{
8416
8417  ;
8418  return 0;
8419}
8420_ACEOF
8421if ac_fn_c_try_link "$LINENO"; then :
8422  lt_cv_ld_exported_symbols_list=yes
8423else
8424  lt_cv_ld_exported_symbols_list=no
8425fi
8426rm -f core conftest.err conftest.$ac_objext \
8427    conftest$ac_exeext conftest.$ac_ext
8428	LDFLAGS="$save_LDFLAGS"
8429
8430fi
8431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8432$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8433
8434    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8435$as_echo_n "checking for -force_load linker flag... " >&6; }
8436if ${lt_cv_ld_force_load+:} false; then :
8437  $as_echo_n "(cached) " >&6
8438else
8439  lt_cv_ld_force_load=no
8440      cat > conftest.c << _LT_EOF
8441int forced_loaded() { return 2;}
8442_LT_EOF
8443      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8444      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8445      echo "$AR cru libconftest.a conftest.o" >&5
8446      $AR cru libconftest.a conftest.o 2>&5
8447      echo "$RANLIB libconftest.a" >&5
8448      $RANLIB libconftest.a 2>&5
8449      cat > conftest.c << _LT_EOF
8450int main() { return 0;}
8451_LT_EOF
8452      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8453      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8454      _lt_result=$?
8455      if test -s conftest.err && $GREP force_load conftest.err; then
8456	cat conftest.err >&5
8457      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8458	lt_cv_ld_force_load=yes
8459      else
8460	cat conftest.err >&5
8461      fi
8462        rm -f conftest.err libconftest.a conftest conftest.c
8463        rm -rf conftest.dSYM
8464
8465fi
8466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8467$as_echo "$lt_cv_ld_force_load" >&6; }
8468    case $host_os in
8469    rhapsody* | darwin1.[012])
8470      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8471    darwin1.*)
8472      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8473    darwin*) # darwin 5.x on
8474      # if running on 10.5 or later, the deployment target defaults
8475      # to the OS version, if on x86, and 10.4, the deployment
8476      # target defaults to 10.4. Don't you love it?
8477      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8478	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8479	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8480	10.[012]*)
8481	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8482	10.*)
8483	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8484      esac
8485    ;;
8486  esac
8487    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8488      _lt_dar_single_mod='$single_module'
8489    fi
8490    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8491      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8492    else
8493      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8494    fi
8495    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8496      _lt_dsymutil='~$DSYMUTIL $lib || :'
8497    else
8498      _lt_dsymutil=
8499    fi
8500    ;;
8501  esac
8502
8503for ac_header in dlfcn.h
8504do :
8505  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8506"
8507if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8508  cat >>confdefs.h <<_ACEOF
8509#define HAVE_DLFCN_H 1
8510_ACEOF
8511
8512fi
8513
8514done
8515
8516
8517
8518
8519
8520# Set options
8521
8522
8523
8524
8525  enable_win32_dll=no
8526
8527
8528
8529
8530
8531# Check whether --with-pic was given.
8532if test "${with_pic+set}" = set; then :
8533  withval=$with_pic; lt_p=${PACKAGE-default}
8534    case $withval in
8535    yes|no) pic_mode=$withval ;;
8536    *)
8537      pic_mode=default
8538      # Look at the argument we got.  We use all the common list separators.
8539      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8540      for lt_pkg in $withval; do
8541	IFS="$lt_save_ifs"
8542	if test "X$lt_pkg" = "X$lt_p"; then
8543	  pic_mode=yes
8544	fi
8545      done
8546      IFS="$lt_save_ifs"
8547      ;;
8548    esac
8549else
8550  pic_mode=default
8551fi
8552
8553
8554test -z "$pic_mode" && pic_mode=default
8555
8556
8557
8558
8559
8560
8561
8562  # Check whether --enable-fast-install was given.
8563if test "${enable_fast_install+set}" = set; then :
8564  enableval=$enable_fast_install; p=${PACKAGE-default}
8565    case $enableval in
8566    yes) enable_fast_install=yes ;;
8567    no) enable_fast_install=no ;;
8568    *)
8569      enable_fast_install=no
8570      # Look at the argument we got.  We use all the common list separators.
8571      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8572      for pkg in $enableval; do
8573	IFS="$lt_save_ifs"
8574	if test "X$pkg" = "X$p"; then
8575	  enable_fast_install=yes
8576	fi
8577      done
8578      IFS="$lt_save_ifs"
8579      ;;
8580    esac
8581else
8582  enable_fast_install=yes
8583fi
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595# This can be used to rebuild libtool when needed
8596LIBTOOL_DEPS="$ltmain"
8597
8598# Always use our own libtool.
8599LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630test -z "$LN_S" && LN_S="ln -s"
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645if test -n "${ZSH_VERSION+set}" ; then
8646   setopt NO_GLOB_SUBST
8647fi
8648
8649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8650$as_echo_n "checking for objdir... " >&6; }
8651if ${lt_cv_objdir+:} false; then :
8652  $as_echo_n "(cached) " >&6
8653else
8654  rm -f .libs 2>/dev/null
8655mkdir .libs 2>/dev/null
8656if test -d .libs; then
8657  lt_cv_objdir=.libs
8658else
8659  # MS-DOS does not allow filenames that begin with a dot.
8660  lt_cv_objdir=_libs
8661fi
8662rmdir .libs 2>/dev/null
8663fi
8664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8665$as_echo "$lt_cv_objdir" >&6; }
8666objdir=$lt_cv_objdir
8667
8668
8669
8670
8671
8672cat >>confdefs.h <<_ACEOF
8673#define LT_OBJDIR "$lt_cv_objdir/"
8674_ACEOF
8675
8676
8677
8678
8679case $host_os in
8680aix3*)
8681  # AIX sometimes has problems with the GCC collect2 program.  For some
8682  # reason, if we set the COLLECT_NAMES environment variable, the problems
8683  # vanish in a puff of smoke.
8684  if test "X${COLLECT_NAMES+set}" != Xset; then
8685    COLLECT_NAMES=
8686    export COLLECT_NAMES
8687  fi
8688  ;;
8689esac
8690
8691# Global variables:
8692ofile=libtool
8693can_build_shared=yes
8694
8695# All known linkers require a `.a' archive for static linking (except MSVC,
8696# which needs '.lib').
8697libext=a
8698
8699with_gnu_ld="$lt_cv_prog_gnu_ld"
8700
8701old_CC="$CC"
8702old_CFLAGS="$CFLAGS"
8703
8704# Set sane defaults for various variables
8705test -z "$CC" && CC=cc
8706test -z "$LTCC" && LTCC=$CC
8707test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8708test -z "$LD" && LD=ld
8709test -z "$ac_objext" && ac_objext=o
8710
8711for cc_temp in $compiler""; do
8712  case $cc_temp in
8713    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8714    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8715    \-*) ;;
8716    *) break;;
8717  esac
8718done
8719cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8720
8721
8722# Only perform the check for file, if the check method requires it
8723test -z "$MAGIC_CMD" && MAGIC_CMD=file
8724case $deplibs_check_method in
8725file_magic*)
8726  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8727    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8728$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8729if ${lt_cv_path_MAGIC_CMD+:} false; then :
8730  $as_echo_n "(cached) " >&6
8731else
8732  case $MAGIC_CMD in
8733[\\/*] |  ?:[\\/]*)
8734  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8735  ;;
8736*)
8737  lt_save_MAGIC_CMD="$MAGIC_CMD"
8738  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8739  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8740  for ac_dir in $ac_dummy; do
8741    IFS="$lt_save_ifs"
8742    test -z "$ac_dir" && ac_dir=.
8743    if test -f $ac_dir/${ac_tool_prefix}file; then
8744      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8745      if test -n "$file_magic_test_file"; then
8746	case $deplibs_check_method in
8747	"file_magic "*)
8748	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8749	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8750	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8751	    $EGREP "$file_magic_regex" > /dev/null; then
8752	    :
8753	  else
8754	    cat <<_LT_EOF 1>&2
8755
8756*** Warning: the command libtool uses to detect shared libraries,
8757*** $file_magic_cmd, produces output that libtool cannot recognize.
8758*** The result is that libtool may fail to recognize shared libraries
8759*** as such.  This will affect the creation of libtool libraries that
8760*** depend on shared libraries, but programs linked with such libtool
8761*** libraries will work regardless of this problem.  Nevertheless, you
8762*** may want to report the problem to your system manager and/or to
8763*** [email protected]
8764
8765_LT_EOF
8766	  fi ;;
8767	esac
8768      fi
8769      break
8770    fi
8771  done
8772  IFS="$lt_save_ifs"
8773  MAGIC_CMD="$lt_save_MAGIC_CMD"
8774  ;;
8775esac
8776fi
8777
8778MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8779if test -n "$MAGIC_CMD"; then
8780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8781$as_echo "$MAGIC_CMD" >&6; }
8782else
8783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8784$as_echo "no" >&6; }
8785fi
8786
8787
8788
8789
8790
8791if test -z "$lt_cv_path_MAGIC_CMD"; then
8792  if test -n "$ac_tool_prefix"; then
8793    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8794$as_echo_n "checking for file... " >&6; }
8795if ${lt_cv_path_MAGIC_CMD+:} false; then :
8796  $as_echo_n "(cached) " >&6
8797else
8798  case $MAGIC_CMD in
8799[\\/*] |  ?:[\\/]*)
8800  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8801  ;;
8802*)
8803  lt_save_MAGIC_CMD="$MAGIC_CMD"
8804  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8805  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8806  for ac_dir in $ac_dummy; do
8807    IFS="$lt_save_ifs"
8808    test -z "$ac_dir" && ac_dir=.
8809    if test -f $ac_dir/file; then
8810      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8811      if test -n "$file_magic_test_file"; then
8812	case $deplibs_check_method in
8813	"file_magic "*)
8814	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8815	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8816	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8817	    $EGREP "$file_magic_regex" > /dev/null; then
8818	    :
8819	  else
8820	    cat <<_LT_EOF 1>&2
8821
8822*** Warning: the command libtool uses to detect shared libraries,
8823*** $file_magic_cmd, produces output that libtool cannot recognize.
8824*** The result is that libtool may fail to recognize shared libraries
8825*** as such.  This will affect the creation of libtool libraries that
8826*** depend on shared libraries, but programs linked with such libtool
8827*** libraries will work regardless of this problem.  Nevertheless, you
8828*** may want to report the problem to your system manager and/or to
8829*** [email protected]
8830
8831_LT_EOF
8832	  fi ;;
8833	esac
8834      fi
8835      break
8836    fi
8837  done
8838  IFS="$lt_save_ifs"
8839  MAGIC_CMD="$lt_save_MAGIC_CMD"
8840  ;;
8841esac
8842fi
8843
8844MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8845if test -n "$MAGIC_CMD"; then
8846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8847$as_echo "$MAGIC_CMD" >&6; }
8848else
8849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8850$as_echo "no" >&6; }
8851fi
8852
8853
8854  else
8855    MAGIC_CMD=:
8856  fi
8857fi
8858
8859  fi
8860  ;;
8861esac
8862
8863# Use C for the default configuration in the libtool script
8864
8865lt_save_CC="$CC"
8866ac_ext=c
8867ac_cpp='$CPP $CPPFLAGS'
8868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8870ac_compiler_gnu=$ac_cv_c_compiler_gnu
8871
8872
8873# Source file extension for C test sources.
8874ac_ext=c
8875
8876# Object file extension for compiled C test sources.
8877objext=o
8878objext=$objext
8879
8880# Code to be used in simple compile tests
8881lt_simple_compile_test_code="int some_variable = 0;"
8882
8883# Code to be used in simple link tests
8884lt_simple_link_test_code='int main(){return(0);}'
8885
8886
8887
8888
8889
8890
8891
8892# If no C compiler was specified, use CC.
8893LTCC=${LTCC-"$CC"}
8894
8895# If no C compiler flags were specified, use CFLAGS.
8896LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8897
8898# Allow CC to be a program name with arguments.
8899compiler=$CC
8900
8901# Save the default compiler, since it gets overwritten when the other
8902# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8903compiler_DEFAULT=$CC
8904
8905# save warnings/boilerplate of simple test code
8906ac_outfile=conftest.$ac_objext
8907echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8908eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8909_lt_compiler_boilerplate=`cat conftest.err`
8910$RM conftest*
8911
8912ac_outfile=conftest.$ac_objext
8913echo "$lt_simple_link_test_code" >conftest.$ac_ext
8914eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8915_lt_linker_boilerplate=`cat conftest.err`
8916$RM -r conftest*
8917
8918
8919## CAVEAT EMPTOR:
8920## There is no encapsulation within the following macros, do not change
8921## the running order or otherwise move them around unless you know exactly
8922## what you are doing...
8923if test -n "$compiler"; then
8924
8925lt_prog_compiler_no_builtin_flag=
8926
8927if test "$GCC" = yes; then
8928  case $cc_basename in
8929  nvcc*)
8930    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8931  *)
8932    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8933  esac
8934
8935  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8936$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8937if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8938  $as_echo_n "(cached) " >&6
8939else
8940  lt_cv_prog_compiler_rtti_exceptions=no
8941   ac_outfile=conftest.$ac_objext
8942   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8943   lt_compiler_flag="-fno-rtti -fno-exceptions"
8944   # Insert the option either (1) after the last *FLAGS variable, or
8945   # (2) before a word containing "conftest.", or (3) at the end.
8946   # Note that $ac_compile itself does not contain backslashes and begins
8947   # with a dollar sign (not a hyphen), so the echo should work correctly.
8948   # The option is referenced via a variable to avoid confusing sed.
8949   lt_compile=`echo "$ac_compile" | $SED \
8950   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8951   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8952   -e 's:$: $lt_compiler_flag:'`
8953   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8954   (eval "$lt_compile" 2>conftest.err)
8955   ac_status=$?
8956   cat conftest.err >&5
8957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958   if (exit $ac_status) && test -s "$ac_outfile"; then
8959     # The compiler can only warn and ignore the option if not recognized
8960     # So say no if there are warnings other than the usual output.
8961     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8962     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8963     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8964       lt_cv_prog_compiler_rtti_exceptions=yes
8965     fi
8966   fi
8967   $RM conftest*
8968
8969fi
8970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8971$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8972
8973if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8974    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8975else
8976    :
8977fi
8978
8979fi
8980
8981
8982
8983
8984
8985
8986  lt_prog_compiler_wl=
8987lt_prog_compiler_pic=
8988lt_prog_compiler_static=
8989
8990
8991  if test "$GCC" = yes; then
8992    lt_prog_compiler_wl='-Wl,'
8993    lt_prog_compiler_static='-static'
8994
8995    case $host_os in
8996      aix*)
8997      # All AIX code is PIC.
8998      if test "$host_cpu" = ia64; then
8999	# AIX 5 now supports IA64 processor
9000	lt_prog_compiler_static='-Bstatic'
9001      fi
9002      ;;
9003
9004    amigaos*)
9005      case $host_cpu in
9006      powerpc)
9007            # see comment about AmigaOS4 .so support
9008            lt_prog_compiler_pic='-fPIC'
9009        ;;
9010      m68k)
9011            # FIXME: we need at least 68020 code to build shared libraries, but
9012            # adding the `-m68020' flag to GCC prevents building anything better,
9013            # like `-m68040'.
9014            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9015        ;;
9016      esac
9017      ;;
9018
9019    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9020      # PIC is the default for these OSes.
9021      ;;
9022
9023    mingw* | cygwin* | pw32* | os2* | cegcc*)
9024      # This hack is so that the source file can tell whether it is being
9025      # built for inclusion in a dll (and should export symbols for example).
9026      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9027      # (--disable-auto-import) libraries
9028      lt_prog_compiler_pic='-DDLL_EXPORT'
9029      ;;
9030
9031    darwin* | rhapsody*)
9032      # PIC is the default on this platform
9033      # Common symbols not allowed in MH_DYLIB files
9034      lt_prog_compiler_pic='-fno-common'
9035      ;;
9036
9037    haiku*)
9038      # PIC is the default for Haiku.
9039      # The "-static" flag exists, but is broken.
9040      lt_prog_compiler_static=
9041      ;;
9042
9043    hpux*)
9044      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9045      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9046      # sets the default TLS model and affects inlining.
9047      case $host_cpu in
9048      hppa*64*)
9049	# +Z the default
9050	;;
9051      *)
9052	lt_prog_compiler_pic='-fPIC'
9053	;;
9054      esac
9055      ;;
9056
9057    interix[3-9]*)
9058      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9059      # Instead, we relocate shared libraries at runtime.
9060      ;;
9061
9062    msdosdjgpp*)
9063      # Just because we use GCC doesn't mean we suddenly get shared libraries
9064      # on systems that don't support them.
9065      lt_prog_compiler_can_build_shared=no
9066      enable_shared=no
9067      ;;
9068
9069    *nto* | *qnx*)
9070      # QNX uses GNU C++, but need to define -shared option too, otherwise
9071      # it will coredump.
9072      lt_prog_compiler_pic='-fPIC -shared'
9073      ;;
9074
9075    sysv4*MP*)
9076      if test -d /usr/nec; then
9077	lt_prog_compiler_pic=-Kconform_pic
9078      fi
9079      ;;
9080
9081    *)
9082      lt_prog_compiler_pic='-fPIC'
9083      ;;
9084    esac
9085
9086    case $cc_basename in
9087    nvcc*) # Cuda Compiler Driver 2.2
9088      lt_prog_compiler_wl='-Xlinker '
9089      if test -n "$lt_prog_compiler_pic"; then
9090        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9091      fi
9092      ;;
9093    esac
9094  else
9095    # PORTME Check for flag to pass linker flags through the system compiler.
9096    case $host_os in
9097    aix*)
9098      lt_prog_compiler_wl='-Wl,'
9099      if test "$host_cpu" = ia64; then
9100	# AIX 5 now supports IA64 processor
9101	lt_prog_compiler_static='-Bstatic'
9102      else
9103	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9104      fi
9105      ;;
9106
9107    mingw* | cygwin* | pw32* | os2* | cegcc*)
9108      # This hack is so that the source file can tell whether it is being
9109      # built for inclusion in a dll (and should export symbols for example).
9110      lt_prog_compiler_pic='-DDLL_EXPORT'
9111      ;;
9112
9113    hpux9* | hpux10* | hpux11*)
9114      lt_prog_compiler_wl='-Wl,'
9115      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9116      # not for PA HP-UX.
9117      case $host_cpu in
9118      hppa*64*|ia64*)
9119	# +Z the default
9120	;;
9121      *)
9122	lt_prog_compiler_pic='+Z'
9123	;;
9124      esac
9125      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9126      lt_prog_compiler_static='${wl}-a ${wl}archive'
9127      ;;
9128
9129    irix5* | irix6* | nonstopux*)
9130      lt_prog_compiler_wl='-Wl,'
9131      # PIC (with -KPIC) is the default.
9132      lt_prog_compiler_static='-non_shared'
9133      ;;
9134
9135    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9136      case $cc_basename in
9137      # old Intel for x86_64 which still supported -KPIC.
9138      ecc*)
9139	lt_prog_compiler_wl='-Wl,'
9140	lt_prog_compiler_pic='-KPIC'
9141	lt_prog_compiler_static='-static'
9142        ;;
9143      # icc used to be incompatible with GCC.
9144      # ICC 10 doesn't accept -KPIC any more.
9145      icc* | ifort*)
9146	lt_prog_compiler_wl='-Wl,'
9147	lt_prog_compiler_pic='-fPIC'
9148	lt_prog_compiler_static='-static'
9149        ;;
9150      # Lahey Fortran 8.1.
9151      lf95*)
9152	lt_prog_compiler_wl='-Wl,'
9153	lt_prog_compiler_pic='--shared'
9154	lt_prog_compiler_static='--static'
9155	;;
9156      nagfor*)
9157	# NAG Fortran compiler
9158	lt_prog_compiler_wl='-Wl,-Wl,,'
9159	lt_prog_compiler_pic='-PIC'
9160	lt_prog_compiler_static='-Bstatic'
9161	;;
9162      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9163        # Portland Group compilers (*not* the Pentium gcc compiler,
9164	# which looks to be a dead project)
9165	lt_prog_compiler_wl='-Wl,'
9166	lt_prog_compiler_pic='-fpic'
9167	lt_prog_compiler_static='-Bstatic'
9168        ;;
9169      ccc*)
9170        lt_prog_compiler_wl='-Wl,'
9171        # All Alpha code is PIC.
9172        lt_prog_compiler_static='-non_shared'
9173        ;;
9174      xl* | bgxl* | bgf* | mpixl*)
9175	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9176	lt_prog_compiler_wl='-Wl,'
9177	lt_prog_compiler_pic='-qpic'
9178	lt_prog_compiler_static='-qstaticlink'
9179	;;
9180      *)
9181	case `$CC -V 2>&1 | sed 5q` in
9182	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9183	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9184	  lt_prog_compiler_pic='-KPIC'
9185	  lt_prog_compiler_static='-Bstatic'
9186	  lt_prog_compiler_wl=''
9187	  ;;
9188	*Sun\ F* | *Sun*Fortran*)
9189	  lt_prog_compiler_pic='-KPIC'
9190	  lt_prog_compiler_static='-Bstatic'
9191	  lt_prog_compiler_wl='-Qoption ld '
9192	  ;;
9193	*Sun\ C*)
9194	  # Sun C 5.9
9195	  lt_prog_compiler_pic='-KPIC'
9196	  lt_prog_compiler_static='-Bstatic'
9197	  lt_prog_compiler_wl='-Wl,'
9198	  ;;
9199        *Intel*\ [CF]*Compiler*)
9200	  lt_prog_compiler_wl='-Wl,'
9201	  lt_prog_compiler_pic='-fPIC'
9202	  lt_prog_compiler_static='-static'
9203	  ;;
9204	*Portland\ Group*)
9205	  lt_prog_compiler_wl='-Wl,'
9206	  lt_prog_compiler_pic='-fpic'
9207	  lt_prog_compiler_static='-Bstatic'
9208	  ;;
9209	esac
9210	;;
9211      esac
9212      ;;
9213
9214    newsos6)
9215      lt_prog_compiler_pic='-KPIC'
9216      lt_prog_compiler_static='-Bstatic'
9217      ;;
9218
9219    *nto* | *qnx*)
9220      # QNX uses GNU C++, but need to define -shared option too, otherwise
9221      # it will coredump.
9222      lt_prog_compiler_pic='-fPIC -shared'
9223      ;;
9224
9225    osf3* | osf4* | osf5*)
9226      lt_prog_compiler_wl='-Wl,'
9227      # All OSF/1 code is PIC.
9228      lt_prog_compiler_static='-non_shared'
9229      ;;
9230
9231    rdos*)
9232      lt_prog_compiler_static='-non_shared'
9233      ;;
9234
9235    solaris*)
9236      lt_prog_compiler_pic='-KPIC'
9237      lt_prog_compiler_static='-Bstatic'
9238      case $cc_basename in
9239      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9240	lt_prog_compiler_wl='-Qoption ld ';;
9241      *)
9242	lt_prog_compiler_wl='-Wl,';;
9243      esac
9244      ;;
9245
9246    sunos4*)
9247      lt_prog_compiler_wl='-Qoption ld '
9248      lt_prog_compiler_pic='-PIC'
9249      lt_prog_compiler_static='-Bstatic'
9250      ;;
9251
9252    sysv4 | sysv4.2uw2* | sysv4.3*)
9253      lt_prog_compiler_wl='-Wl,'
9254      lt_prog_compiler_pic='-KPIC'
9255      lt_prog_compiler_static='-Bstatic'
9256      ;;
9257
9258    sysv4*MP*)
9259      if test -d /usr/nec ;then
9260	lt_prog_compiler_pic='-Kconform_pic'
9261	lt_prog_compiler_static='-Bstatic'
9262      fi
9263      ;;
9264
9265    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9266      lt_prog_compiler_wl='-Wl,'
9267      lt_prog_compiler_pic='-KPIC'
9268      lt_prog_compiler_static='-Bstatic'
9269      ;;
9270
9271    unicos*)
9272      lt_prog_compiler_wl='-Wl,'
9273      lt_prog_compiler_can_build_shared=no
9274      ;;
9275
9276    uts4*)
9277      lt_prog_compiler_pic='-pic'
9278      lt_prog_compiler_static='-Bstatic'
9279      ;;
9280
9281    *)
9282      lt_prog_compiler_can_build_shared=no
9283      ;;
9284    esac
9285  fi
9286
9287case $host_os in
9288  # For platforms which do not support PIC, -DPIC is meaningless:
9289  *djgpp*)
9290    lt_prog_compiler_pic=
9291    ;;
9292  *)
9293    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9294    ;;
9295esac
9296
9297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9298$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9299if ${lt_cv_prog_compiler_pic+:} false; then :
9300  $as_echo_n "(cached) " >&6
9301else
9302  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9303fi
9304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9305$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9306lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9307
9308#
9309# Check to make sure the PIC flag actually works.
9310#
9311if test -n "$lt_prog_compiler_pic"; then
9312  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9313$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9314if ${lt_cv_prog_compiler_pic_works+:} false; then :
9315  $as_echo_n "(cached) " >&6
9316else
9317  lt_cv_prog_compiler_pic_works=no
9318   ac_outfile=conftest.$ac_objext
9319   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9320   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9321   # Insert the option either (1) after the last *FLAGS variable, or
9322   # (2) before a word containing "conftest.", or (3) at the end.
9323   # Note that $ac_compile itself does not contain backslashes and begins
9324   # with a dollar sign (not a hyphen), so the echo should work correctly.
9325   # The option is referenced via a variable to avoid confusing sed.
9326   lt_compile=`echo "$ac_compile" | $SED \
9327   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9328   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9329   -e 's:$: $lt_compiler_flag:'`
9330   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9331   (eval "$lt_compile" 2>conftest.err)
9332   ac_status=$?
9333   cat conftest.err >&5
9334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335   if (exit $ac_status) && test -s "$ac_outfile"; then
9336     # The compiler can only warn and ignore the option if not recognized
9337     # So say no if there are warnings other than the usual output.
9338     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9339     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9340     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9341       lt_cv_prog_compiler_pic_works=yes
9342     fi
9343   fi
9344   $RM conftest*
9345
9346fi
9347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9348$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9349
9350if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9351    case $lt_prog_compiler_pic in
9352     "" | " "*) ;;
9353     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9354     esac
9355else
9356    lt_prog_compiler_pic=
9357     lt_prog_compiler_can_build_shared=no
9358fi
9359
9360fi
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372#
9373# Check to make sure the static flag actually works.
9374#
9375wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9377$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9378if ${lt_cv_prog_compiler_static_works+:} false; then :
9379  $as_echo_n "(cached) " >&6
9380else
9381  lt_cv_prog_compiler_static_works=no
9382   save_LDFLAGS="$LDFLAGS"
9383   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9384   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9385   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9386     # The linker can only warn and ignore the option if not recognized
9387     # So say no if there are warnings
9388     if test -s conftest.err; then
9389       # Append any errors to the config.log.
9390       cat conftest.err 1>&5
9391       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9392       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9393       if diff conftest.exp conftest.er2 >/dev/null; then
9394         lt_cv_prog_compiler_static_works=yes
9395       fi
9396     else
9397       lt_cv_prog_compiler_static_works=yes
9398     fi
9399   fi
9400   $RM -r conftest*
9401   LDFLAGS="$save_LDFLAGS"
9402
9403fi
9404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9405$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9406
9407if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9408    :
9409else
9410    lt_prog_compiler_static=
9411fi
9412
9413
9414
9415
9416
9417
9418
9419  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9420$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9421if ${lt_cv_prog_compiler_c_o+:} false; then :
9422  $as_echo_n "(cached) " >&6
9423else
9424  lt_cv_prog_compiler_c_o=no
9425   $RM -r conftest 2>/dev/null
9426   mkdir conftest
9427   cd conftest
9428   mkdir out
9429   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9430
9431   lt_compiler_flag="-o out/conftest2.$ac_objext"
9432   # Insert the option either (1) after the last *FLAGS variable, or
9433   # (2) before a word containing "conftest.", or (3) at the end.
9434   # Note that $ac_compile itself does not contain backslashes and begins
9435   # with a dollar sign (not a hyphen), so the echo should work correctly.
9436   lt_compile=`echo "$ac_compile" | $SED \
9437   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9438   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9439   -e 's:$: $lt_compiler_flag:'`
9440   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9441   (eval "$lt_compile" 2>out/conftest.err)
9442   ac_status=$?
9443   cat out/conftest.err >&5
9444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9446   then
9447     # The compiler can only warn and ignore the option if not recognized
9448     # So say no if there are warnings
9449     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9450     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9451     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9452       lt_cv_prog_compiler_c_o=yes
9453     fi
9454   fi
9455   chmod u+w . 2>&5
9456   $RM conftest*
9457   # SGI C++ compiler will create directory out/ii_files/ for
9458   # template instantiation
9459   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9460   $RM out/* && rmdir out
9461   cd ..
9462   $RM -r conftest
9463   $RM conftest*
9464
9465fi
9466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9467$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9468
9469
9470
9471
9472
9473
9474  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9475$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9476if ${lt_cv_prog_compiler_c_o+:} false; then :
9477  $as_echo_n "(cached) " >&6
9478else
9479  lt_cv_prog_compiler_c_o=no
9480   $RM -r conftest 2>/dev/null
9481   mkdir conftest
9482   cd conftest
9483   mkdir out
9484   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9485
9486   lt_compiler_flag="-o out/conftest2.$ac_objext"
9487   # Insert the option either (1) after the last *FLAGS variable, or
9488   # (2) before a word containing "conftest.", or (3) at the end.
9489   # Note that $ac_compile itself does not contain backslashes and begins
9490   # with a dollar sign (not a hyphen), so the echo should work correctly.
9491   lt_compile=`echo "$ac_compile" | $SED \
9492   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9493   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9494   -e 's:$: $lt_compiler_flag:'`
9495   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9496   (eval "$lt_compile" 2>out/conftest.err)
9497   ac_status=$?
9498   cat out/conftest.err >&5
9499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9501   then
9502     # The compiler can only warn and ignore the option if not recognized
9503     # So say no if there are warnings
9504     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9505     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9506     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9507       lt_cv_prog_compiler_c_o=yes
9508     fi
9509   fi
9510   chmod u+w . 2>&5
9511   $RM conftest*
9512   # SGI C++ compiler will create directory out/ii_files/ for
9513   # template instantiation
9514   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9515   $RM out/* && rmdir out
9516   cd ..
9517   $RM -r conftest
9518   $RM conftest*
9519
9520fi
9521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9522$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9523
9524
9525
9526
9527hard_links="nottested"
9528if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9529  # do not overwrite the value of need_locks provided by the user
9530  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9531$as_echo_n "checking if we can lock with hard links... " >&6; }
9532  hard_links=yes
9533  $RM conftest*
9534  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9535  touch conftest.a
9536  ln conftest.a conftest.b 2>&5 || hard_links=no
9537  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9539$as_echo "$hard_links" >&6; }
9540  if test "$hard_links" = no; then
9541    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9542$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9543    need_locks=warn
9544  fi
9545else
9546  need_locks=no
9547fi
9548
9549
9550
9551
9552
9553
9554  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9555$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9556
9557  runpath_var=
9558  allow_undefined_flag=
9559  always_export_symbols=no
9560  archive_cmds=
9561  archive_expsym_cmds=
9562  compiler_needs_object=no
9563  enable_shared_with_static_runtimes=no
9564  export_dynamic_flag_spec=
9565  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9566  hardcode_automatic=no
9567  hardcode_direct=no
9568  hardcode_direct_absolute=no
9569  hardcode_libdir_flag_spec=
9570  hardcode_libdir_separator=
9571  hardcode_minus_L=no
9572  hardcode_shlibpath_var=unsupported
9573  inherit_rpath=no
9574  link_all_deplibs=unknown
9575  module_cmds=
9576  module_expsym_cmds=
9577  old_archive_from_new_cmds=
9578  old_archive_from_expsyms_cmds=
9579  thread_safe_flag_spec=
9580  whole_archive_flag_spec=
9581  # include_expsyms should be a list of space-separated symbols to be *always*
9582  # included in the symbol list
9583  include_expsyms=
9584  # exclude_expsyms can be an extended regexp of symbols to exclude
9585  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9586  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9587  # as well as any symbol that contains `d'.
9588  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9589  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9590  # platforms (ab)use it in PIC code, but their linkers get confused if
9591  # the symbol is explicitly referenced.  Since portable code cannot
9592  # rely on this symbol name, it's probably fine to never include it in
9593  # preloaded symbol tables.
9594  # Exclude shared library initialization/finalization symbols.
9595  extract_expsyms_cmds=
9596
9597  case $host_os in
9598  cygwin* | mingw* | pw32* | cegcc*)
9599    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9600    # When not using gcc, we currently assume that we are using
9601    # Microsoft Visual C++.
9602    if test "$GCC" != yes; then
9603      with_gnu_ld=no
9604    fi
9605    ;;
9606  interix*)
9607    # we just hope/assume this is gcc and not c89 (= MSVC++)
9608    with_gnu_ld=yes
9609    ;;
9610  openbsd*)
9611    with_gnu_ld=no
9612    ;;
9613  linux* | k*bsd*-gnu | gnu*)
9614    link_all_deplibs=no
9615    ;;
9616  esac
9617
9618  ld_shlibs=yes
9619
9620  # On some targets, GNU ld is compatible enough with the native linker
9621  # that we're better off using the native interface for both.
9622  lt_use_gnu_ld_interface=no
9623  if test "$with_gnu_ld" = yes; then
9624    case $host_os in
9625      aix*)
9626	# The AIX port of GNU ld has always aspired to compatibility
9627	# with the native linker.  However, as the warning in the GNU ld
9628	# block says, versions before 2.19.5* couldn't really create working
9629	# shared libraries, regardless of the interface used.
9630	case `$LD -v 2>&1` in
9631	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9632	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9633	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9634	  *)
9635	    lt_use_gnu_ld_interface=yes
9636	    ;;
9637	esac
9638	;;
9639      *)
9640	lt_use_gnu_ld_interface=yes
9641	;;
9642    esac
9643  fi
9644
9645  if test "$lt_use_gnu_ld_interface" = yes; then
9646    # If archive_cmds runs LD, not CC, wlarc should be empty
9647    wlarc='${wl}'
9648
9649    # Set some defaults for GNU ld with shared library support. These
9650    # are reset later if shared libraries are not supported. Putting them
9651    # here allows them to be overridden if necessary.
9652    runpath_var=LD_RUN_PATH
9653    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9654    export_dynamic_flag_spec='${wl}--export-dynamic'
9655    # ancient GNU ld didn't support --whole-archive et. al.
9656    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9657      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9658    else
9659      whole_archive_flag_spec=
9660    fi
9661    supports_anon_versioning=no
9662    case `$LD -v 2>&1` in
9663      *GNU\ gold*) supports_anon_versioning=yes ;;
9664      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9665      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9666      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9667      *\ 2.11.*) ;; # other 2.11 versions
9668      *) supports_anon_versioning=yes ;;
9669    esac
9670
9671    # See if GNU ld supports shared libraries.
9672    case $host_os in
9673    aix[3-9]*)
9674      # On AIX/PPC, the GNU linker is very broken
9675      if test "$host_cpu" != ia64; then
9676	ld_shlibs=no
9677	cat <<_LT_EOF 1>&2
9678
9679*** Warning: the GNU linker, at least up to release 2.19, is reported
9680*** to be unable to reliably create shared libraries on AIX.
9681*** Therefore, libtool is disabling shared libraries support.  If you
9682*** really care for shared libraries, you may want to install binutils
9683*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9684*** You will then need to restart the configuration process.
9685
9686_LT_EOF
9687      fi
9688      ;;
9689
9690    amigaos*)
9691      case $host_cpu in
9692      powerpc)
9693            # see comment about AmigaOS4 .so support
9694            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9695            archive_expsym_cmds=''
9696        ;;
9697      m68k)
9698            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9699            hardcode_libdir_flag_spec='-L$libdir'
9700            hardcode_minus_L=yes
9701        ;;
9702      esac
9703      ;;
9704
9705    beos*)
9706      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9707	allow_undefined_flag=unsupported
9708	# Joseph Beckenbach <[email protected]> says some releases of gcc
9709	# support --undefined.  This deserves some investigation.  FIXME
9710	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9711      else
9712	ld_shlibs=no
9713      fi
9714      ;;
9715
9716    cygwin* | mingw* | pw32* | cegcc*)
9717      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9718      # as there is no search path for DLLs.
9719      hardcode_libdir_flag_spec='-L$libdir'
9720      export_dynamic_flag_spec='${wl}--export-all-symbols'
9721      allow_undefined_flag=unsupported
9722      always_export_symbols=no
9723      enable_shared_with_static_runtimes=yes
9724      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9725      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9726
9727      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9728        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9729	# If the export-symbols file already is a .def file (1st line
9730	# is EXPORTS), use it as is; otherwise, prepend...
9731	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9732	  cp $export_symbols $output_objdir/$soname.def;
9733	else
9734	  echo EXPORTS > $output_objdir/$soname.def;
9735	  cat $export_symbols >> $output_objdir/$soname.def;
9736	fi~
9737	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9738      else
9739	ld_shlibs=no
9740      fi
9741      ;;
9742
9743    haiku*)
9744      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9745      link_all_deplibs=yes
9746      ;;
9747
9748    interix[3-9]*)
9749      hardcode_direct=no
9750      hardcode_shlibpath_var=no
9751      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9752      export_dynamic_flag_spec='${wl}-E'
9753      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9754      # Instead, shared libraries are loaded at an image base (0x10000000 by
9755      # default) and relocated if they conflict, which is a slow very memory
9756      # consuming and fragmenting process.  To avoid this, we pick a random,
9757      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9758      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9759      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9760      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9761      ;;
9762
9763    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9764      tmp_diet=no
9765      if test "$host_os" = linux-dietlibc; then
9766	case $cc_basename in
9767	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9768	esac
9769      fi
9770      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9771	 && test "$tmp_diet" = no
9772      then
9773	tmp_addflag=' $pic_flag'
9774	tmp_sharedflag='-shared'
9775	case $cc_basename,$host_cpu in
9776        pgcc*)				# Portland Group C compiler
9777	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9778	  tmp_addflag=' $pic_flag'
9779	  ;;
9780	pgf77* | pgf90* | pgf95* | pgfortran*)
9781					# Portland Group f77 and f90 compilers
9782	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9783	  tmp_addflag=' $pic_flag -Mnomain' ;;
9784	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9785	  tmp_addflag=' -i_dynamic' ;;
9786	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9787	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9788	ifc* | ifort*)			# Intel Fortran compiler
9789	  tmp_addflag=' -nofor_main' ;;
9790	lf95*)				# Lahey Fortran 8.1
9791	  whole_archive_flag_spec=
9792	  tmp_sharedflag='--shared' ;;
9793	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9794	  tmp_sharedflag='-qmkshrobj'
9795	  tmp_addflag= ;;
9796	nvcc*)	# Cuda Compiler Driver 2.2
9797	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9798	  compiler_needs_object=yes
9799	  ;;
9800	esac
9801	case `$CC -V 2>&1 | sed 5q` in
9802	*Sun\ C*)			# Sun C 5.9
9803	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9804	  compiler_needs_object=yes
9805	  tmp_sharedflag='-G' ;;
9806	*Sun\ F*)			# Sun Fortran 8.3
9807	  tmp_sharedflag='-G' ;;
9808	esac
9809	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9810
9811        if test "x$supports_anon_versioning" = xyes; then
9812          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9813	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9814	    echo "local: *; };" >> $output_objdir/$libname.ver~
9815	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9816        fi
9817
9818	case $cc_basename in
9819	xlf* | bgf* | bgxlf* | mpixlf*)
9820	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9821	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9822	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9823	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9824	  if test "x$supports_anon_versioning" = xyes; then
9825	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9826	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9827	      echo "local: *; };" >> $output_objdir/$libname.ver~
9828	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9829	  fi
9830	  ;;
9831	esac
9832      else
9833        ld_shlibs=no
9834      fi
9835      ;;
9836
9837    netbsd* | netbsdelf*-gnu)
9838      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9839	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9840	wlarc=
9841      else
9842	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9843	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9844      fi
9845      ;;
9846
9847    solaris*)
9848      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9849	ld_shlibs=no
9850	cat <<_LT_EOF 1>&2
9851
9852*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9853*** create shared libraries on Solaris systems.  Therefore, libtool
9854*** is disabling shared libraries support.  We urge you to upgrade GNU
9855*** binutils to release 2.9.1 or newer.  Another option is to modify
9856*** your PATH or compiler configuration so that the native linker is
9857*** used, and then restart.
9858
9859_LT_EOF
9860      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9861	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9862	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9863      else
9864	ld_shlibs=no
9865      fi
9866      ;;
9867
9868    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9869      case `$LD -v 2>&1` in
9870        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9871	ld_shlibs=no
9872	cat <<_LT_EOF 1>&2
9873
9874*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9875*** reliably create shared libraries on SCO systems.  Therefore, libtool
9876*** is disabling shared libraries support.  We urge you to upgrade GNU
9877*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9878*** your PATH or compiler configuration so that the native linker is
9879*** used, and then restart.
9880
9881_LT_EOF
9882	;;
9883	*)
9884	  # For security reasons, it is highly recommended that you always
9885	  # use absolute paths for naming shared libraries, and exclude the
9886	  # DT_RUNPATH tag from executables and libraries.  But doing so
9887	  # requires that you compile everything twice, which is a pain.
9888	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9889	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9890	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9891	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9892	  else
9893	    ld_shlibs=no
9894	  fi
9895	;;
9896      esac
9897      ;;
9898
9899    sunos4*)
9900      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9901      wlarc=
9902      hardcode_direct=yes
9903      hardcode_shlibpath_var=no
9904      ;;
9905
9906    *)
9907      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9908	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9909	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9910      else
9911	ld_shlibs=no
9912      fi
9913      ;;
9914    esac
9915
9916    if test "$ld_shlibs" = no; then
9917      runpath_var=
9918      hardcode_libdir_flag_spec=
9919      export_dynamic_flag_spec=
9920      whole_archive_flag_spec=
9921    fi
9922  else
9923    # PORTME fill in a description of your system's linker (not GNU ld)
9924    case $host_os in
9925    aix3*)
9926      allow_undefined_flag=unsupported
9927      always_export_symbols=yes
9928      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9929      # Note: this linker hardcodes the directories in LIBPATH if there
9930      # are no directories specified by -L.
9931      hardcode_minus_L=yes
9932      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9933	# Neither direct hardcoding nor static linking is supported with a
9934	# broken collect2.
9935	hardcode_direct=unsupported
9936      fi
9937      ;;
9938
9939    aix[4-9]*)
9940      if test "$host_cpu" = ia64; then
9941	# On IA64, the linker does run time linking by default, so we don't
9942	# have to do anything special.
9943	aix_use_runtimelinking=no
9944	exp_sym_flag='-Bexport'
9945	no_entry_flag=""
9946      else
9947	# If we're using GNU nm, then we don't want the "-C" option.
9948	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9949	# Also, AIX nm treats weak defined symbols like other global
9950	# defined symbols, whereas GNU nm marks them as "W".
9951	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9952	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9953	else
9954	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9955	fi
9956	aix_use_runtimelinking=no
9957
9958	# Test if we are trying to use run time linking or normal
9959	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9960	# need to do runtime linking.
9961	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9962	  for ld_flag in $LDFLAGS; do
9963	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9964	    aix_use_runtimelinking=yes
9965	    break
9966	  fi
9967	  done
9968	  ;;
9969	esac
9970
9971	exp_sym_flag='-bexport'
9972	no_entry_flag='-bnoentry'
9973      fi
9974
9975      # When large executables or shared objects are built, AIX ld can
9976      # have problems creating the table of contents.  If linking a library
9977      # or program results in "error TOC overflow" add -mminimal-toc to
9978      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9979      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9980
9981      archive_cmds=''
9982      hardcode_direct=yes
9983      hardcode_direct_absolute=yes
9984      hardcode_libdir_separator=':'
9985      link_all_deplibs=yes
9986      file_list_spec='${wl}-f,'
9987
9988      if test "$GCC" = yes; then
9989	case $host_os in aix4.[012]|aix4.[012].*)
9990	# We only want to do this on AIX 4.2 and lower, the check
9991	# below for broken collect2 doesn't work under 4.3+
9992	  collect2name=`${CC} -print-prog-name=collect2`
9993	  if test -f "$collect2name" &&
9994	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9995	  then
9996	  # We have reworked collect2
9997	  :
9998	  else
9999	  # We have old collect2
10000	  hardcode_direct=unsupported
10001	  # It fails to find uninstalled libraries when the uninstalled
10002	  # path is not listed in the libpath.  Setting hardcode_minus_L
10003	  # to unsupported forces relinking
10004	  hardcode_minus_L=yes
10005	  hardcode_libdir_flag_spec='-L$libdir'
10006	  hardcode_libdir_separator=
10007	  fi
10008	  ;;
10009	esac
10010	shared_flag='-shared'
10011	if test "$aix_use_runtimelinking" = yes; then
10012	  shared_flag="$shared_flag "'${wl}-G'
10013	fi
10014	link_all_deplibs=no
10015      else
10016	# not using gcc
10017	if test "$host_cpu" = ia64; then
10018	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10019	# chokes on -Wl,-G. The following line is correct:
10020	  shared_flag='-G'
10021	else
10022	  if test "$aix_use_runtimelinking" = yes; then
10023	    shared_flag='${wl}-G'
10024	  else
10025	    shared_flag='${wl}-bM:SRE'
10026	  fi
10027	fi
10028      fi
10029
10030      export_dynamic_flag_spec='${wl}-bexpall'
10031      # It seems that -bexpall does not export symbols beginning with
10032      # underscore (_), so it is better to generate a list of symbols to export.
10033      always_export_symbols=yes
10034      if test "$aix_use_runtimelinking" = yes; then
10035	# Warning - without using the other runtime loading flags (-brtl),
10036	# -berok will link without error, but may produce a broken library.
10037	allow_undefined_flag='-berok'
10038        # Determine the default libpath from the value encoded in an
10039        # empty executable.
10040        if test "${lt_cv_aix_libpath+set}" = set; then
10041  aix_libpath=$lt_cv_aix_libpath
10042else
10043  if ${lt_cv_aix_libpath_+:} false; then :
10044  $as_echo_n "(cached) " >&6
10045else
10046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10047/* end confdefs.h.  */
10048
10049int
10050main ()
10051{
10052
10053  ;
10054  return 0;
10055}
10056_ACEOF
10057if ac_fn_c_try_link "$LINENO"; then :
10058
10059  lt_aix_libpath_sed='
10060      /Import File Strings/,/^$/ {
10061	  /^0/ {
10062	      s/^0  *\([^ ]*\) *$/\1/
10063	      p
10064	  }
10065      }'
10066  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10067  # Check for a 64-bit object if we didn't find anything.
10068  if test -z "$lt_cv_aix_libpath_"; then
10069    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10070  fi
10071fi
10072rm -f core conftest.err conftest.$ac_objext \
10073    conftest$ac_exeext conftest.$ac_ext
10074  if test -z "$lt_cv_aix_libpath_"; then
10075    lt_cv_aix_libpath_="/usr/lib:/lib"
10076  fi
10077
10078fi
10079
10080  aix_libpath=$lt_cv_aix_libpath_
10081fi
10082
10083        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10084        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10085      else
10086	if test "$host_cpu" = ia64; then
10087	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10088	  allow_undefined_flag="-z nodefs"
10089	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10090	else
10091	 # Determine the default libpath from the value encoded in an
10092	 # empty executable.
10093	 if test "${lt_cv_aix_libpath+set}" = set; then
10094  aix_libpath=$lt_cv_aix_libpath
10095else
10096  if ${lt_cv_aix_libpath_+:} false; then :
10097  $as_echo_n "(cached) " >&6
10098else
10099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10100/* end confdefs.h.  */
10101
10102int
10103main ()
10104{
10105
10106  ;
10107  return 0;
10108}
10109_ACEOF
10110if ac_fn_c_try_link "$LINENO"; then :
10111
10112  lt_aix_libpath_sed='
10113      /Import File Strings/,/^$/ {
10114	  /^0/ {
10115	      s/^0  *\([^ ]*\) *$/\1/
10116	      p
10117	  }
10118      }'
10119  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10120  # Check for a 64-bit object if we didn't find anything.
10121  if test -z "$lt_cv_aix_libpath_"; then
10122    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10123  fi
10124fi
10125rm -f core conftest.err conftest.$ac_objext \
10126    conftest$ac_exeext conftest.$ac_ext
10127  if test -z "$lt_cv_aix_libpath_"; then
10128    lt_cv_aix_libpath_="/usr/lib:/lib"
10129  fi
10130
10131fi
10132
10133  aix_libpath=$lt_cv_aix_libpath_
10134fi
10135
10136	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10137	  # Warning - without using the other run time loading flags,
10138	  # -berok will link without error, but may produce a broken library.
10139	  no_undefined_flag=' ${wl}-bernotok'
10140	  allow_undefined_flag=' ${wl}-berok'
10141	  if test "$with_gnu_ld" = yes; then
10142	    # We only use this code for GNU lds that support --whole-archive.
10143	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10144	  else
10145	    # Exported symbols can be pulled into shared objects from archives
10146	    whole_archive_flag_spec='$convenience'
10147	  fi
10148	  archive_cmds_need_lc=yes
10149	  # This is similar to how AIX traditionally builds its shared libraries.
10150	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10151	fi
10152      fi
10153      ;;
10154
10155    amigaos*)
10156      case $host_cpu in
10157      powerpc)
10158            # see comment about AmigaOS4 .so support
10159            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10160            archive_expsym_cmds=''
10161        ;;
10162      m68k)
10163            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10164            hardcode_libdir_flag_spec='-L$libdir'
10165            hardcode_minus_L=yes
10166        ;;
10167      esac
10168      ;;
10169
10170    bsdi[45]*)
10171      export_dynamic_flag_spec=-rdynamic
10172      ;;
10173
10174    cygwin* | mingw* | pw32* | cegcc*)
10175      # When not using gcc, we currently assume that we are using
10176      # Microsoft Visual C++.
10177      # hardcode_libdir_flag_spec is actually meaningless, as there is
10178      # no search path for DLLs.
10179      case $cc_basename in
10180      cl*)
10181	# Native MSVC
10182	hardcode_libdir_flag_spec=' '
10183	allow_undefined_flag=unsupported
10184	always_export_symbols=yes
10185	file_list_spec='@'
10186	# Tell ltmain to make .lib files, not .a files.
10187	libext=lib
10188	# Tell ltmain to make .dll files, not .so files.
10189	shrext_cmds=".dll"
10190	# FIXME: Setting linknames here is a bad hack.
10191	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10192	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10193	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10194	  else
10195	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10196	  fi~
10197	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10198	  linknames='
10199	# The linker will not automatically build a static lib if we build a DLL.
10200	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10201	enable_shared_with_static_runtimes=yes
10202	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10203	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10204	# Don't use ranlib
10205	old_postinstall_cmds='chmod 644 $oldlib'
10206	postlink_cmds='lt_outputfile="@OUTPUT@"~
10207	  lt_tool_outputfile="@TOOL_OUTPUT@"~
10208	  case $lt_outputfile in
10209	    *.exe|*.EXE) ;;
10210	    *)
10211	      lt_outputfile="$lt_outputfile.exe"
10212	      lt_tool_outputfile="$lt_tool_outputfile.exe"
10213	      ;;
10214	  esac~
10215	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10216	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10217	    $RM "$lt_outputfile.manifest";
10218	  fi'
10219	;;
10220      *)
10221	# Assume MSVC wrapper
10222	hardcode_libdir_flag_spec=' '
10223	allow_undefined_flag=unsupported
10224	# Tell ltmain to make .lib files, not .a files.
10225	libext=lib
10226	# Tell ltmain to make .dll files, not .so files.
10227	shrext_cmds=".dll"
10228	# FIXME: Setting linknames here is a bad hack.
10229	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10230	# The linker will automatically build a .lib file if we build a DLL.
10231	old_archive_from_new_cmds='true'
10232	# FIXME: Should let the user specify the lib program.
10233	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10234	enable_shared_with_static_runtimes=yes
10235	;;
10236      esac
10237      ;;
10238
10239    darwin* | rhapsody*)
10240
10241
10242  archive_cmds_need_lc=no
10243  hardcode_direct=no
10244  hardcode_automatic=yes
10245  hardcode_shlibpath_var=unsupported
10246  if test "$lt_cv_ld_force_load" = "yes"; then
10247    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10248
10249  else
10250    whole_archive_flag_spec=''
10251  fi
10252  link_all_deplibs=yes
10253  allow_undefined_flag="$_lt_dar_allow_undefined"
10254  case $cc_basename in
10255     ifort*) _lt_dar_can_shared=yes ;;
10256     *) _lt_dar_can_shared=$GCC ;;
10257  esac
10258  if test "$_lt_dar_can_shared" = "yes"; then
10259    output_verbose_link_cmd=func_echo_all
10260    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10261    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10262    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10263    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10264
10265  else
10266  ld_shlibs=no
10267  fi
10268
10269      ;;
10270
10271    dgux*)
10272      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10273      hardcode_libdir_flag_spec='-L$libdir'
10274      hardcode_shlibpath_var=no
10275      ;;
10276
10277    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10278    # support.  Future versions do this automatically, but an explicit c++rt0.o
10279    # does not break anything, and helps significantly (at the cost of a little
10280    # extra space).
10281    freebsd2.2*)
10282      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10283      hardcode_libdir_flag_spec='-R$libdir'
10284      hardcode_direct=yes
10285      hardcode_shlibpath_var=no
10286      ;;
10287
10288    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10289    freebsd2.*)
10290      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10291      hardcode_direct=yes
10292      hardcode_minus_L=yes
10293      hardcode_shlibpath_var=no
10294      ;;
10295
10296    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10297    freebsd* | dragonfly*)
10298      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10299      hardcode_libdir_flag_spec='-R$libdir'
10300      hardcode_direct=yes
10301      hardcode_shlibpath_var=no
10302      ;;
10303
10304    hpux9*)
10305      if test "$GCC" = yes; then
10306	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10307      else
10308	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10309      fi
10310      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10311      hardcode_libdir_separator=:
10312      hardcode_direct=yes
10313
10314      # hardcode_minus_L: Not really in the search PATH,
10315      # but as the default location of the library.
10316      hardcode_minus_L=yes
10317      export_dynamic_flag_spec='${wl}-E'
10318      ;;
10319
10320    hpux10*)
10321      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10322	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10323      else
10324	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10325      fi
10326      if test "$with_gnu_ld" = no; then
10327	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10328	hardcode_libdir_separator=:
10329	hardcode_direct=yes
10330	hardcode_direct_absolute=yes
10331	export_dynamic_flag_spec='${wl}-E'
10332	# hardcode_minus_L: Not really in the search PATH,
10333	# but as the default location of the library.
10334	hardcode_minus_L=yes
10335      fi
10336      ;;
10337
10338    hpux11*)
10339      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10340	case $host_cpu in
10341	hppa*64*)
10342	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10343	  ;;
10344	ia64*)
10345	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10346	  ;;
10347	*)
10348	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10349	  ;;
10350	esac
10351      else
10352	case $host_cpu in
10353	hppa*64*)
10354	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10355	  ;;
10356	ia64*)
10357	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10358	  ;;
10359	*)
10360
10361	  # Older versions of the 11.00 compiler do not understand -b yet
10362	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10363	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10364$as_echo_n "checking if $CC understands -b... " >&6; }
10365if ${lt_cv_prog_compiler__b+:} false; then :
10366  $as_echo_n "(cached) " >&6
10367else
10368  lt_cv_prog_compiler__b=no
10369   save_LDFLAGS="$LDFLAGS"
10370   LDFLAGS="$LDFLAGS -b"
10371   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10372   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10373     # The linker can only warn and ignore the option if not recognized
10374     # So say no if there are warnings
10375     if test -s conftest.err; then
10376       # Append any errors to the config.log.
10377       cat conftest.err 1>&5
10378       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10379       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10380       if diff conftest.exp conftest.er2 >/dev/null; then
10381         lt_cv_prog_compiler__b=yes
10382       fi
10383     else
10384       lt_cv_prog_compiler__b=yes
10385     fi
10386   fi
10387   $RM -r conftest*
10388   LDFLAGS="$save_LDFLAGS"
10389
10390fi
10391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10392$as_echo "$lt_cv_prog_compiler__b" >&6; }
10393
10394if test x"$lt_cv_prog_compiler__b" = xyes; then
10395    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10396else
10397    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10398fi
10399
10400	  ;;
10401	esac
10402      fi
10403      if test "$with_gnu_ld" = no; then
10404	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10405	hardcode_libdir_separator=:
10406
10407	case $host_cpu in
10408	hppa*64*|ia64*)
10409	  hardcode_direct=no
10410	  hardcode_shlibpath_var=no
10411	  ;;
10412	*)
10413	  hardcode_direct=yes
10414	  hardcode_direct_absolute=yes
10415	  export_dynamic_flag_spec='${wl}-E'
10416
10417	  # hardcode_minus_L: Not really in the search PATH,
10418	  # but as the default location of the library.
10419	  hardcode_minus_L=yes
10420	  ;;
10421	esac
10422      fi
10423      ;;
10424
10425    irix5* | irix6* | nonstopux*)
10426      if test "$GCC" = yes; then
10427	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10428	# Try to use the -exported_symbol ld option, if it does not
10429	# work, assume that -exports_file does not work either and
10430	# implicitly export all symbols.
10431	# This should be the same for all languages, so no per-tag cache variable.
10432	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10433$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10434if ${lt_cv_irix_exported_symbol+:} false; then :
10435  $as_echo_n "(cached) " >&6
10436else
10437  save_LDFLAGS="$LDFLAGS"
10438	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10439	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10440/* end confdefs.h.  */
10441int foo (void) { return 0; }
10442_ACEOF
10443if ac_fn_c_try_link "$LINENO"; then :
10444  lt_cv_irix_exported_symbol=yes
10445else
10446  lt_cv_irix_exported_symbol=no
10447fi
10448rm -f core conftest.err conftest.$ac_objext \
10449    conftest$ac_exeext conftest.$ac_ext
10450           LDFLAGS="$save_LDFLAGS"
10451fi
10452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10453$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10454	if test "$lt_cv_irix_exported_symbol" = yes; then
10455          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10456	fi
10457      else
10458	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10459	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10460      fi
10461      archive_cmds_need_lc='no'
10462      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10463      hardcode_libdir_separator=:
10464      inherit_rpath=yes
10465      link_all_deplibs=yes
10466      ;;
10467
10468    netbsd* | netbsdelf*-gnu)
10469      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10470	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10471      else
10472	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10473      fi
10474      hardcode_libdir_flag_spec='-R$libdir'
10475      hardcode_direct=yes
10476      hardcode_shlibpath_var=no
10477      ;;
10478
10479    newsos6)
10480      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10481      hardcode_direct=yes
10482      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10483      hardcode_libdir_separator=:
10484      hardcode_shlibpath_var=no
10485      ;;
10486
10487    *nto* | *qnx*)
10488      ;;
10489
10490    openbsd*)
10491      if test -f /usr/libexec/ld.so; then
10492	hardcode_direct=yes
10493	hardcode_shlibpath_var=no
10494	hardcode_direct_absolute=yes
10495	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10496	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10497	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10498	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10499	  export_dynamic_flag_spec='${wl}-E'
10500	else
10501	  case $host_os in
10502	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10503	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10504	     hardcode_libdir_flag_spec='-R$libdir'
10505	     ;;
10506	   *)
10507	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10508	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10509	     ;;
10510	  esac
10511	fi
10512      else
10513	ld_shlibs=no
10514      fi
10515      ;;
10516
10517    os2*)
10518      hardcode_libdir_flag_spec='-L$libdir'
10519      hardcode_minus_L=yes
10520      allow_undefined_flag=unsupported
10521      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10522      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10523      ;;
10524
10525    osf3*)
10526      if test "$GCC" = yes; then
10527	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10528	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10529      else
10530	allow_undefined_flag=' -expect_unresolved \*'
10531	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10532      fi
10533      archive_cmds_need_lc='no'
10534      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10535      hardcode_libdir_separator=:
10536      ;;
10537
10538    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10539      if test "$GCC" = yes; then
10540	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10541	archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10542	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10543      else
10544	allow_undefined_flag=' -expect_unresolved \*'
10545	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10546	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10547	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10548
10549	# Both c and cxx compiler support -rpath directly
10550	hardcode_libdir_flag_spec='-rpath $libdir'
10551      fi
10552      archive_cmds_need_lc='no'
10553      hardcode_libdir_separator=:
10554      ;;
10555
10556    solaris*)
10557      no_undefined_flag=' -z defs'
10558      if test "$GCC" = yes; then
10559	wlarc='${wl}'
10560	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10561	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10562	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10563      else
10564	case `$CC -V 2>&1` in
10565	*"Compilers 5.0"*)
10566	  wlarc=''
10567	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10568	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10569	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10570	  ;;
10571	*)
10572	  wlarc='${wl}'
10573	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10574	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10575	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10576	  ;;
10577	esac
10578      fi
10579      hardcode_libdir_flag_spec='-R$libdir'
10580      hardcode_shlibpath_var=no
10581      case $host_os in
10582      solaris2.[0-5] | solaris2.[0-5].*) ;;
10583      *)
10584	# The compiler driver will combine and reorder linker options,
10585	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10586	# but is careful enough not to reorder.
10587	# Supported since Solaris 2.6 (maybe 2.5.1?)
10588	if test "$GCC" = yes; then
10589	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10590	else
10591	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10592	fi
10593	;;
10594      esac
10595      link_all_deplibs=yes
10596      ;;
10597
10598    sunos4*)
10599      if test "x$host_vendor" = xsequent; then
10600	# Use $CC to link under sequent, because it throws in some extra .o
10601	# files that make .init and .fini sections work.
10602	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10603      else
10604	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10605      fi
10606      hardcode_libdir_flag_spec='-L$libdir'
10607      hardcode_direct=yes
10608      hardcode_minus_L=yes
10609      hardcode_shlibpath_var=no
10610      ;;
10611
10612    sysv4)
10613      case $host_vendor in
10614	sni)
10615	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10616	  hardcode_direct=yes # is this really true???
10617	;;
10618	siemens)
10619	  ## LD is ld it makes a PLAMLIB
10620	  ## CC just makes a GrossModule.
10621	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10622	  reload_cmds='$CC -r -o $output$reload_objs'
10623	  hardcode_direct=no
10624        ;;
10625	motorola)
10626	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10627	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10628	;;
10629      esac
10630      runpath_var='LD_RUN_PATH'
10631      hardcode_shlibpath_var=no
10632      ;;
10633
10634    sysv4.3*)
10635      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10636      hardcode_shlibpath_var=no
10637      export_dynamic_flag_spec='-Bexport'
10638      ;;
10639
10640    sysv4*MP*)
10641      if test -d /usr/nec; then
10642	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10643	hardcode_shlibpath_var=no
10644	runpath_var=LD_RUN_PATH
10645	hardcode_runpath_var=yes
10646	ld_shlibs=yes
10647      fi
10648      ;;
10649
10650    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10651      no_undefined_flag='${wl}-z,text'
10652      archive_cmds_need_lc=no
10653      hardcode_shlibpath_var=no
10654      runpath_var='LD_RUN_PATH'
10655
10656      if test "$GCC" = yes; then
10657	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10658	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10659      else
10660	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10661	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10662      fi
10663      ;;
10664
10665    sysv5* | sco3.2v5* | sco5v6*)
10666      # Note: We can NOT use -z defs as we might desire, because we do not
10667      # link with -lc, and that would cause any symbols used from libc to
10668      # always be unresolved, which means just about no library would
10669      # ever link correctly.  If we're not using GNU ld we use -z text
10670      # though, which does catch some bad symbols but isn't as heavy-handed
10671      # as -z defs.
10672      no_undefined_flag='${wl}-z,text'
10673      allow_undefined_flag='${wl}-z,nodefs'
10674      archive_cmds_need_lc=no
10675      hardcode_shlibpath_var=no
10676      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10677      hardcode_libdir_separator=':'
10678      link_all_deplibs=yes
10679      export_dynamic_flag_spec='${wl}-Bexport'
10680      runpath_var='LD_RUN_PATH'
10681
10682      if test "$GCC" = yes; then
10683	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10684	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10685      else
10686	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10687	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10688      fi
10689      ;;
10690
10691    uts4*)
10692      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10693      hardcode_libdir_flag_spec='-L$libdir'
10694      hardcode_shlibpath_var=no
10695      ;;
10696
10697    *)
10698      ld_shlibs=no
10699      ;;
10700    esac
10701
10702    if test x$host_vendor = xsni; then
10703      case $host in
10704      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10705	export_dynamic_flag_spec='${wl}-Blargedynsym'
10706	;;
10707      esac
10708    fi
10709  fi
10710
10711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10712$as_echo "$ld_shlibs" >&6; }
10713test "$ld_shlibs" = no && can_build_shared=no
10714
10715with_gnu_ld=$with_gnu_ld
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731#
10732# Do we need to explicitly link libc?
10733#
10734case "x$archive_cmds_need_lc" in
10735x|xyes)
10736  # Assume -lc should be added
10737  archive_cmds_need_lc=yes
10738
10739  if test "$enable_shared" = yes && test "$GCC" = yes; then
10740    case $archive_cmds in
10741    *'~'*)
10742      # FIXME: we may have to deal with multi-command sequences.
10743      ;;
10744    '$CC '*)
10745      # Test whether the compiler implicitly links with -lc since on some
10746      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10747      # to ld, don't add -lc before -lgcc.
10748      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10749$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10750if ${lt_cv_archive_cmds_need_lc+:} false; then :
10751  $as_echo_n "(cached) " >&6
10752else
10753  $RM conftest*
10754	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10755
10756	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10757  (eval $ac_compile) 2>&5
10758  ac_status=$?
10759  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10760  test $ac_status = 0; } 2>conftest.err; then
10761	  soname=conftest
10762	  lib=conftest
10763	  libobjs=conftest.$ac_objext
10764	  deplibs=
10765	  wl=$lt_prog_compiler_wl
10766	  pic_flag=$lt_prog_compiler_pic
10767	  compiler_flags=-v
10768	  linker_flags=-v
10769	  verstring=
10770	  output_objdir=.
10771	  libname=conftest
10772	  lt_save_allow_undefined_flag=$allow_undefined_flag
10773	  allow_undefined_flag=
10774	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10775  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10776  ac_status=$?
10777  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10778  test $ac_status = 0; }
10779	  then
10780	    lt_cv_archive_cmds_need_lc=no
10781	  else
10782	    lt_cv_archive_cmds_need_lc=yes
10783	  fi
10784	  allow_undefined_flag=$lt_save_allow_undefined_flag
10785	else
10786	  cat conftest.err 1>&5
10787	fi
10788	$RM conftest*
10789
10790fi
10791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10792$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10793      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10794      ;;
10795    esac
10796  fi
10797  ;;
10798esac
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10952$as_echo_n "checking dynamic linker characteristics... " >&6; }
10953
10954if test "$GCC" = yes; then
10955  case $host_os in
10956    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10957    *) lt_awk_arg="/^libraries:/" ;;
10958  esac
10959  case $host_os in
10960    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10961    *) lt_sed_strip_eq="s,=/,/,g" ;;
10962  esac
10963  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10964  case $lt_search_path_spec in
10965  *\;*)
10966    # if the path contains ";" then we assume it to be the separator
10967    # otherwise default to the standard path separator (i.e. ":") - it is
10968    # assumed that no part of a normal pathname contains ";" but that should
10969    # okay in the real world where ";" in dirpaths is itself problematic.
10970    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10971    ;;
10972  *)
10973    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10974    ;;
10975  esac
10976  # Ok, now we have the path, separated by spaces, we can step through it
10977  # and add multilib dir if necessary.
10978  lt_tmp_lt_search_path_spec=
10979  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10980  for lt_sys_path in $lt_search_path_spec; do
10981    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10982      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10983    else
10984      test -d "$lt_sys_path" && \
10985	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10986    fi
10987  done
10988  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10989BEGIN {RS=" "; FS="/|\n";} {
10990  lt_foo="";
10991  lt_count=0;
10992  for (lt_i = NF; lt_i > 0; lt_i--) {
10993    if ($lt_i != "" && $lt_i != ".") {
10994      if ($lt_i == "..") {
10995        lt_count++;
10996      } else {
10997        if (lt_count == 0) {
10998          lt_foo="/" $lt_i lt_foo;
10999        } else {
11000          lt_count--;
11001        }
11002      }
11003    }
11004  }
11005  if (lt_foo != "") { lt_freq[lt_foo]++; }
11006  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11007}'`
11008  # AWK program above erroneously prepends '/' to C:/dos/paths
11009  # for these hosts.
11010  case $host_os in
11011    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11012      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11013  esac
11014  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11015else
11016  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11017fi
11018library_names_spec=
11019libname_spec='lib$name'
11020soname_spec=
11021shrext_cmds=".so"
11022postinstall_cmds=
11023postuninstall_cmds=
11024finish_cmds=
11025finish_eval=
11026shlibpath_var=
11027shlibpath_overrides_runpath=unknown
11028version_type=none
11029dynamic_linker="$host_os ld.so"
11030sys_lib_dlsearch_path_spec="/lib /usr/lib"
11031need_lib_prefix=unknown
11032hardcode_into_libs=no
11033
11034# when you set need_version to no, make sure it does not cause -set_version
11035# flags to be left without arguments
11036need_version=unknown
11037
11038case $host_os in
11039aix3*)
11040  version_type=linux # correct to gnu/linux during the next big refactor
11041  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11042  shlibpath_var=LIBPATH
11043
11044  # AIX 3 has no versioning support, so we append a major version to the name.
11045  soname_spec='${libname}${release}${shared_ext}$major'
11046  ;;
11047
11048aix[4-9]*)
11049  version_type=linux # correct to gnu/linux during the next big refactor
11050  need_lib_prefix=no
11051  need_version=no
11052  hardcode_into_libs=yes
11053  if test "$host_cpu" = ia64; then
11054    # AIX 5 supports IA64
11055    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11056    shlibpath_var=LD_LIBRARY_PATH
11057  else
11058    # With GCC up to 2.95.x, collect2 would create an import file
11059    # for dependence libraries.  The import file would start with
11060    # the line `#! .'.  This would cause the generated library to
11061    # depend on `.', always an invalid library.  This was fixed in
11062    # development snapshots of GCC prior to 3.0.
11063    case $host_os in
11064      aix4 | aix4.[01] | aix4.[01].*)
11065      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11066	   echo ' yes '
11067	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11068	:
11069      else
11070	can_build_shared=no
11071      fi
11072      ;;
11073    esac
11074    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11075    # soname into executable. Probably we can add versioning support to
11076    # collect2, so additional links can be useful in future.
11077    if test "$aix_use_runtimelinking" = yes; then
11078      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11079      # instead of lib<name>.a to let people know that these are not
11080      # typical AIX shared libraries.
11081      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11082    else
11083      # We preserve .a as extension for shared libraries through AIX4.2
11084      # and later when we are not doing run time linking.
11085      library_names_spec='${libname}${release}.a $libname.a'
11086      soname_spec='${libname}${release}${shared_ext}$major'
11087    fi
11088    shlibpath_var=LIBPATH
11089  fi
11090  ;;
11091
11092amigaos*)
11093  case $host_cpu in
11094  powerpc)
11095    # Since July 2007 AmigaOS4 officially supports .so libraries.
11096    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11097    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11098    ;;
11099  m68k)
11100    library_names_spec='$libname.ixlibrary $libname.a'
11101    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11102    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11103    ;;
11104  esac
11105  ;;
11106
11107beos*)
11108  library_names_spec='${libname}${shared_ext}'
11109  dynamic_linker="$host_os ld.so"
11110  shlibpath_var=LIBRARY_PATH
11111  ;;
11112
11113bsdi[45]*)
11114  version_type=linux # correct to gnu/linux during the next big refactor
11115  need_version=no
11116  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11117  soname_spec='${libname}${release}${shared_ext}$major'
11118  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11119  shlibpath_var=LD_LIBRARY_PATH
11120  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11121  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11122  # the default ld.so.conf also contains /usr/contrib/lib and
11123  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11124  # libtool to hard-code these into programs
11125  ;;
11126
11127cygwin* | mingw* | pw32* | cegcc*)
11128  version_type=windows
11129  shrext_cmds=".dll"
11130  need_version=no
11131  need_lib_prefix=no
11132
11133  case $GCC,$cc_basename in
11134  yes,*)
11135    # gcc
11136    library_names_spec='$libname.dll.a'
11137    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11138    postinstall_cmds='base_file=`basename \${file}`~
11139      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11140      dldir=$destdir/`dirname \$dlpath`~
11141      test -d \$dldir || mkdir -p \$dldir~
11142      $install_prog $dir/$dlname \$dldir/$dlname~
11143      chmod a+x \$dldir/$dlname~
11144      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11145        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11146      fi'
11147    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11148      dlpath=$dir/\$dldll~
11149       $RM \$dlpath'
11150    shlibpath_overrides_runpath=yes
11151
11152    case $host_os in
11153    cygwin*)
11154      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11155      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11156
11157      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11158      ;;
11159    mingw* | cegcc*)
11160      # MinGW DLLs use traditional 'lib' prefix
11161      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11162      ;;
11163    pw32*)
11164      # pw32 DLLs use 'pw' prefix rather than 'lib'
11165      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11166      ;;
11167    esac
11168    dynamic_linker='Win32 ld.exe'
11169    ;;
11170
11171  *,cl*)
11172    # Native MSVC
11173    libname_spec='$name'
11174    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11175    library_names_spec='${libname}.dll.lib'
11176
11177    case $build_os in
11178    mingw*)
11179      sys_lib_search_path_spec=
11180      lt_save_ifs=$IFS
11181      IFS=';'
11182      for lt_path in $LIB
11183      do
11184        IFS=$lt_save_ifs
11185        # Let DOS variable expansion print the short 8.3 style file name.
11186        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11187        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11188      done
11189      IFS=$lt_save_ifs
11190      # Convert to MSYS style.
11191      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11192      ;;
11193    cygwin*)
11194      # Convert to unix form, then to dos form, then back to unix form
11195      # but this time dos style (no spaces!) so that the unix form looks
11196      # like /cygdrive/c/PROGRA~1:/cygdr...
11197      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11198      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11199      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11200      ;;
11201    *)
11202      sys_lib_search_path_spec="$LIB"
11203      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11204        # It is most probably a Windows format PATH.
11205        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11206      else
11207        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11208      fi
11209      # FIXME: find the short name or the path components, as spaces are
11210      # common. (e.g. "Program Files" -> "PROGRA~1")
11211      ;;
11212    esac
11213
11214    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11215    postinstall_cmds='base_file=`basename \${file}`~
11216      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11217      dldir=$destdir/`dirname \$dlpath`~
11218      test -d \$dldir || mkdir -p \$dldir~
11219      $install_prog $dir/$dlname \$dldir/$dlname'
11220    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11221      dlpath=$dir/\$dldll~
11222       $RM \$dlpath'
11223    shlibpath_overrides_runpath=yes
11224    dynamic_linker='Win32 link.exe'
11225    ;;
11226
11227  *)
11228    # Assume MSVC wrapper
11229    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11230    dynamic_linker='Win32 ld.exe'
11231    ;;
11232  esac
11233  # FIXME: first we should search . and the directory the executable is in
11234  shlibpath_var=PATH
11235  ;;
11236
11237darwin* | rhapsody*)
11238  dynamic_linker="$host_os dyld"
11239  version_type=darwin
11240  need_lib_prefix=no
11241  need_version=no
11242  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11243  soname_spec='${libname}${release}${major}$shared_ext'
11244  shlibpath_overrides_runpath=yes
11245  shlibpath_var=DYLD_LIBRARY_PATH
11246  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11247
11248  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11249  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11250  ;;
11251
11252dgux*)
11253  version_type=linux # correct to gnu/linux during the next big refactor
11254  need_lib_prefix=no
11255  need_version=no
11256  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11257  soname_spec='${libname}${release}${shared_ext}$major'
11258  shlibpath_var=LD_LIBRARY_PATH
11259  ;;
11260
11261freebsd* | dragonfly*)
11262  # DragonFly does not have aout.  When/if they implement a new
11263  # versioning mechanism, adjust this.
11264  if test -x /usr/bin/objformat; then
11265    objformat=`/usr/bin/objformat`
11266  else
11267    case $host_os in
11268    freebsd[23].*) objformat=aout ;;
11269    *) objformat=elf ;;
11270    esac
11271  fi
11272  version_type=freebsd-$objformat
11273  case $version_type in
11274    freebsd-elf*)
11275      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11276      need_version=no
11277      need_lib_prefix=no
11278      ;;
11279    freebsd-*)
11280      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11281      need_version=yes
11282      ;;
11283  esac
11284  shlibpath_var=LD_LIBRARY_PATH
11285  case $host_os in
11286  freebsd2.*)
11287    shlibpath_overrides_runpath=yes
11288    ;;
11289  freebsd3.[01]* | freebsdelf3.[01]*)
11290    shlibpath_overrides_runpath=yes
11291    hardcode_into_libs=yes
11292    ;;
11293  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11294  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11295    shlibpath_overrides_runpath=no
11296    hardcode_into_libs=yes
11297    ;;
11298  *) # from 4.6 on, and DragonFly
11299    shlibpath_overrides_runpath=yes
11300    hardcode_into_libs=yes
11301    ;;
11302  esac
11303  ;;
11304
11305haiku*)
11306  version_type=linux # correct to gnu/linux during the next big refactor
11307  need_lib_prefix=no
11308  need_version=no
11309  dynamic_linker="$host_os runtime_loader"
11310  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11311  soname_spec='${libname}${release}${shared_ext}$major'
11312  shlibpath_var=LIBRARY_PATH
11313  shlibpath_overrides_runpath=yes
11314  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11315  hardcode_into_libs=yes
11316  ;;
11317
11318hpux9* | hpux10* | hpux11*)
11319  # Give a soname corresponding to the major version so that dld.sl refuses to
11320  # link against other versions.
11321  version_type=sunos
11322  need_lib_prefix=no
11323  need_version=no
11324  case $host_cpu in
11325  ia64*)
11326    shrext_cmds='.so'
11327    hardcode_into_libs=yes
11328    dynamic_linker="$host_os dld.so"
11329    shlibpath_var=LD_LIBRARY_PATH
11330    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11331    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11332    soname_spec='${libname}${release}${shared_ext}$major'
11333    if test "X$HPUX_IA64_MODE" = X32; then
11334      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11335    else
11336      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11337    fi
11338    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11339    ;;
11340  hppa*64*)
11341    shrext_cmds='.sl'
11342    hardcode_into_libs=yes
11343    dynamic_linker="$host_os dld.sl"
11344    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11345    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11346    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11347    soname_spec='${libname}${release}${shared_ext}$major'
11348    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11349    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11350    ;;
11351  *)
11352    shrext_cmds='.sl'
11353    dynamic_linker="$host_os dld.sl"
11354    shlibpath_var=SHLIB_PATH
11355    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11356    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11357    soname_spec='${libname}${release}${shared_ext}$major'
11358    ;;
11359  esac
11360  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11361  postinstall_cmds='chmod 555 $lib'
11362  # or fails outright, so override atomically:
11363  install_override_mode=555
11364  ;;
11365
11366interix[3-9]*)
11367  version_type=linux # correct to gnu/linux during the next big refactor
11368  need_lib_prefix=no
11369  need_version=no
11370  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11371  soname_spec='${libname}${release}${shared_ext}$major'
11372  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11373  shlibpath_var=LD_LIBRARY_PATH
11374  shlibpath_overrides_runpath=no
11375  hardcode_into_libs=yes
11376  ;;
11377
11378irix5* | irix6* | nonstopux*)
11379  case $host_os in
11380    nonstopux*) version_type=nonstopux ;;
11381    *)
11382	if test "$lt_cv_prog_gnu_ld" = yes; then
11383		version_type=linux # correct to gnu/linux during the next big refactor
11384	else
11385		version_type=irix
11386	fi ;;
11387  esac
11388  need_lib_prefix=no
11389  need_version=no
11390  soname_spec='${libname}${release}${shared_ext}$major'
11391  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11392  case $host_os in
11393  irix5* | nonstopux*)
11394    libsuff= shlibsuff=
11395    ;;
11396  *)
11397    case $LD in # libtool.m4 will add one of these switches to LD
11398    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11399      libsuff= shlibsuff= libmagic=32-bit;;
11400    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11401      libsuff=32 shlibsuff=N32 libmagic=N32;;
11402    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11403      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11404    *) libsuff= shlibsuff= libmagic=never-match;;
11405    esac
11406    ;;
11407  esac
11408  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11409  shlibpath_overrides_runpath=no
11410  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11411  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11412  hardcode_into_libs=yes
11413  ;;
11414
11415# No shared lib support for Linux oldld, aout, or coff.
11416linux*oldld* | linux*aout* | linux*coff*)
11417  dynamic_linker=no
11418  ;;
11419
11420# This must be glibc/ELF.
11421linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11422  version_type=linux # correct to gnu/linux during the next big refactor
11423  need_lib_prefix=no
11424  need_version=no
11425  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11426  soname_spec='${libname}${release}${shared_ext}$major'
11427  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11428  shlibpath_var=LD_LIBRARY_PATH
11429  shlibpath_overrides_runpath=no
11430
11431  # Some binutils ld are patched to set DT_RUNPATH
11432  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11433  $as_echo_n "(cached) " >&6
11434else
11435  lt_cv_shlibpath_overrides_runpath=no
11436    save_LDFLAGS=$LDFLAGS
11437    save_libdir=$libdir
11438    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11439	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11440    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11441/* end confdefs.h.  */
11442
11443int
11444main ()
11445{
11446
11447  ;
11448  return 0;
11449}
11450_ACEOF
11451if ac_fn_c_try_link "$LINENO"; then :
11452  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11453  lt_cv_shlibpath_overrides_runpath=yes
11454fi
11455fi
11456rm -f core conftest.err conftest.$ac_objext \
11457    conftest$ac_exeext conftest.$ac_ext
11458    LDFLAGS=$save_LDFLAGS
11459    libdir=$save_libdir
11460
11461fi
11462
11463  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11464
11465  # This implies no fast_install, which is unacceptable.
11466  # Some rework will be needed to allow for fast_install
11467  # before this can be enabled.
11468  hardcode_into_libs=yes
11469
11470  # Append ld.so.conf contents to the search path
11471  if test -f /etc/ld.so.conf; then
11472    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11473    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11474  fi
11475
11476  # We used to test for /lib/ld.so.1 and disable shared libraries on
11477  # powerpc, because MkLinux only supported shared libraries with the
11478  # GNU dynamic linker.  Since this was broken with cross compilers,
11479  # most powerpc-linux boxes support dynamic linking these days and
11480  # people can always --disable-shared, the test was removed, and we
11481  # assume the GNU/Linux dynamic linker is in use.
11482  dynamic_linker='GNU/Linux ld.so'
11483  ;;
11484
11485netbsdelf*-gnu)
11486  version_type=linux
11487  need_lib_prefix=no
11488  need_version=no
11489  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11490  soname_spec='${libname}${release}${shared_ext}$major'
11491  shlibpath_var=LD_LIBRARY_PATH
11492  shlibpath_overrides_runpath=no
11493  hardcode_into_libs=yes
11494  dynamic_linker='NetBSD ld.elf_so'
11495  ;;
11496
11497netbsd*)
11498  version_type=sunos
11499  need_lib_prefix=no
11500  need_version=no
11501  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11502    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11503    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11504    dynamic_linker='NetBSD (a.out) ld.so'
11505  else
11506    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11507    soname_spec='${libname}${release}${shared_ext}$major'
11508    dynamic_linker='NetBSD ld.elf_so'
11509  fi
11510  shlibpath_var=LD_LIBRARY_PATH
11511  shlibpath_overrides_runpath=yes
11512  hardcode_into_libs=yes
11513  ;;
11514
11515newsos6)
11516  version_type=linux # correct to gnu/linux during the next big refactor
11517  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11518  shlibpath_var=LD_LIBRARY_PATH
11519  shlibpath_overrides_runpath=yes
11520  ;;
11521
11522*nto* | *qnx*)
11523  version_type=qnx
11524  need_lib_prefix=no
11525  need_version=no
11526  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11527  soname_spec='${libname}${release}${shared_ext}$major'
11528  shlibpath_var=LD_LIBRARY_PATH
11529  shlibpath_overrides_runpath=no
11530  hardcode_into_libs=yes
11531  dynamic_linker='ldqnx.so'
11532  ;;
11533
11534openbsd*)
11535  version_type=sunos
11536  sys_lib_dlsearch_path_spec="/usr/lib"
11537  need_lib_prefix=no
11538  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11539  case $host_os in
11540    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11541    *)				need_version=no  ;;
11542  esac
11543  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11544  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11545  shlibpath_var=LD_LIBRARY_PATH
11546  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11547    case $host_os in
11548      openbsd2.[89] | openbsd2.[89].*)
11549	shlibpath_overrides_runpath=no
11550	;;
11551      *)
11552	shlibpath_overrides_runpath=yes
11553	;;
11554      esac
11555  else
11556    shlibpath_overrides_runpath=yes
11557  fi
11558  ;;
11559
11560os2*)
11561  libname_spec='$name'
11562  shrext_cmds=".dll"
11563  need_lib_prefix=no
11564  library_names_spec='$libname${shared_ext} $libname.a'
11565  dynamic_linker='OS/2 ld.exe'
11566  shlibpath_var=LIBPATH
11567  ;;
11568
11569osf3* | osf4* | osf5*)
11570  version_type=osf
11571  need_lib_prefix=no
11572  need_version=no
11573  soname_spec='${libname}${release}${shared_ext}$major'
11574  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11575  shlibpath_var=LD_LIBRARY_PATH
11576  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11577  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11578  ;;
11579
11580rdos*)
11581  dynamic_linker=no
11582  ;;
11583
11584solaris*)
11585  version_type=linux # correct to gnu/linux during the next big refactor
11586  need_lib_prefix=no
11587  need_version=no
11588  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11589  soname_spec='${libname}${release}${shared_ext}$major'
11590  shlibpath_var=LD_LIBRARY_PATH
11591  shlibpath_overrides_runpath=yes
11592  hardcode_into_libs=yes
11593  # ldd complains unless libraries are executable
11594  postinstall_cmds='chmod +x $lib'
11595  ;;
11596
11597sunos4*)
11598  version_type=sunos
11599  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11600  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11601  shlibpath_var=LD_LIBRARY_PATH
11602  shlibpath_overrides_runpath=yes
11603  if test "$with_gnu_ld" = yes; then
11604    need_lib_prefix=no
11605  fi
11606  need_version=yes
11607  ;;
11608
11609sysv4 | sysv4.3*)
11610  version_type=linux # correct to gnu/linux during the next big refactor
11611  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11612  soname_spec='${libname}${release}${shared_ext}$major'
11613  shlibpath_var=LD_LIBRARY_PATH
11614  case $host_vendor in
11615    sni)
11616      shlibpath_overrides_runpath=no
11617      need_lib_prefix=no
11618      runpath_var=LD_RUN_PATH
11619      ;;
11620    siemens)
11621      need_lib_prefix=no
11622      ;;
11623    motorola)
11624      need_lib_prefix=no
11625      need_version=no
11626      shlibpath_overrides_runpath=no
11627      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11628      ;;
11629  esac
11630  ;;
11631
11632sysv4*MP*)
11633  if test -d /usr/nec ;then
11634    version_type=linux # correct to gnu/linux during the next big refactor
11635    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11636    soname_spec='$libname${shared_ext}.$major'
11637    shlibpath_var=LD_LIBRARY_PATH
11638  fi
11639  ;;
11640
11641sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11642  version_type=freebsd-elf
11643  need_lib_prefix=no
11644  need_version=no
11645  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11646  soname_spec='${libname}${release}${shared_ext}$major'
11647  shlibpath_var=LD_LIBRARY_PATH
11648  shlibpath_overrides_runpath=yes
11649  hardcode_into_libs=yes
11650  if test "$with_gnu_ld" = yes; then
11651    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11652  else
11653    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11654    case $host_os in
11655      sco3.2v5*)
11656        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11657	;;
11658    esac
11659  fi
11660  sys_lib_dlsearch_path_spec='/usr/lib'
11661  ;;
11662
11663tpf*)
11664  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11665  version_type=linux # correct to gnu/linux during the next big refactor
11666  need_lib_prefix=no
11667  need_version=no
11668  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11669  shlibpath_var=LD_LIBRARY_PATH
11670  shlibpath_overrides_runpath=no
11671  hardcode_into_libs=yes
11672  ;;
11673
11674uts4*)
11675  version_type=linux # correct to gnu/linux during the next big refactor
11676  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11677  soname_spec='${libname}${release}${shared_ext}$major'
11678  shlibpath_var=LD_LIBRARY_PATH
11679  ;;
11680
11681*)
11682  dynamic_linker=no
11683  ;;
11684esac
11685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11686$as_echo "$dynamic_linker" >&6; }
11687test "$dynamic_linker" = no && can_build_shared=no
11688
11689variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11690if test "$GCC" = yes; then
11691  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11692fi
11693
11694if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11695  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11696fi
11697if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11698  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11699fi
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11793$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11794hardcode_action=
11795if test -n "$hardcode_libdir_flag_spec" ||
11796   test -n "$runpath_var" ||
11797   test "X$hardcode_automatic" = "Xyes" ; then
11798
11799  # We can hardcode non-existent directories.
11800  if test "$hardcode_direct" != no &&
11801     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11802     # have to relink, otherwise we might link with an installed library
11803     # when we should be linking with a yet-to-be-installed one
11804     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11805     test "$hardcode_minus_L" != no; then
11806    # Linking always hardcodes the temporary library directory.
11807    hardcode_action=relink
11808  else
11809    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11810    hardcode_action=immediate
11811  fi
11812else
11813  # We cannot hardcode anything, or else we can only hardcode existing
11814  # directories.
11815  hardcode_action=unsupported
11816fi
11817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11818$as_echo "$hardcode_action" >&6; }
11819
11820if test "$hardcode_action" = relink ||
11821   test "$inherit_rpath" = yes; then
11822  # Fast installation is not supported
11823  enable_fast_install=no
11824elif test "$shlibpath_overrides_runpath" = yes ||
11825     test "$enable_shared" = no; then
11826  # Fast installation is not necessary
11827  enable_fast_install=needless
11828fi
11829
11830
11831
11832
11833
11834
11835  if test "x$enable_dlopen" != xyes; then
11836  enable_dlopen=unknown
11837  enable_dlopen_self=unknown
11838  enable_dlopen_self_static=unknown
11839else
11840  lt_cv_dlopen=no
11841  lt_cv_dlopen_libs=
11842
11843  case $host_os in
11844  beos*)
11845    lt_cv_dlopen="load_add_on"
11846    lt_cv_dlopen_libs=
11847    lt_cv_dlopen_self=yes
11848    ;;
11849
11850  mingw* | pw32* | cegcc*)
11851    lt_cv_dlopen="LoadLibrary"
11852    lt_cv_dlopen_libs=
11853    ;;
11854
11855  cygwin*)
11856    lt_cv_dlopen="dlopen"
11857    lt_cv_dlopen_libs=
11858    ;;
11859
11860  darwin*)
11861  # if libdl is installed we need to link against it
11862    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11863$as_echo_n "checking for dlopen in -ldl... " >&6; }
11864if ${ac_cv_lib_dl_dlopen+:} false; then :
11865  $as_echo_n "(cached) " >&6
11866else
11867  ac_check_lib_save_LIBS=$LIBS
11868LIBS="-ldl  $LIBS"
11869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11870/* end confdefs.h.  */
11871
11872/* Override any GCC internal prototype to avoid an error.
11873   Use char because int might match the return type of a GCC
11874   builtin and then its argument prototype would still apply.  */
11875#ifdef __cplusplus
11876extern "C"
11877#endif
11878char dlopen ();
11879int
11880main ()
11881{
11882return dlopen ();
11883  ;
11884  return 0;
11885}
11886_ACEOF
11887if ac_fn_c_try_link "$LINENO"; then :
11888  ac_cv_lib_dl_dlopen=yes
11889else
11890  ac_cv_lib_dl_dlopen=no
11891fi
11892rm -f core conftest.err conftest.$ac_objext \
11893    conftest$ac_exeext conftest.$ac_ext
11894LIBS=$ac_check_lib_save_LIBS
11895fi
11896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11897$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11898if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11899  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11900else
11901
11902    lt_cv_dlopen="dyld"
11903    lt_cv_dlopen_libs=
11904    lt_cv_dlopen_self=yes
11905
11906fi
11907
11908    ;;
11909
11910  *)
11911    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11912if test "x$ac_cv_func_shl_load" = xyes; then :
11913  lt_cv_dlopen="shl_load"
11914else
11915  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11916$as_echo_n "checking for shl_load in -ldld... " >&6; }
11917if ${ac_cv_lib_dld_shl_load+:} false; then :
11918  $as_echo_n "(cached) " >&6
11919else
11920  ac_check_lib_save_LIBS=$LIBS
11921LIBS="-ldld  $LIBS"
11922cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11923/* end confdefs.h.  */
11924
11925/* Override any GCC internal prototype to avoid an error.
11926   Use char because int might match the return type of a GCC
11927   builtin and then its argument prototype would still apply.  */
11928#ifdef __cplusplus
11929extern "C"
11930#endif
11931char shl_load ();
11932int
11933main ()
11934{
11935return shl_load ();
11936  ;
11937  return 0;
11938}
11939_ACEOF
11940if ac_fn_c_try_link "$LINENO"; then :
11941  ac_cv_lib_dld_shl_load=yes
11942else
11943  ac_cv_lib_dld_shl_load=no
11944fi
11945rm -f core conftest.err conftest.$ac_objext \
11946    conftest$ac_exeext conftest.$ac_ext
11947LIBS=$ac_check_lib_save_LIBS
11948fi
11949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11950$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11951if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11952  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11953else
11954  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11955if test "x$ac_cv_func_dlopen" = xyes; then :
11956  lt_cv_dlopen="dlopen"
11957else
11958  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11959$as_echo_n "checking for dlopen in -ldl... " >&6; }
11960if ${ac_cv_lib_dl_dlopen+:} false; then :
11961  $as_echo_n "(cached) " >&6
11962else
11963  ac_check_lib_save_LIBS=$LIBS
11964LIBS="-ldl  $LIBS"
11965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11966/* end confdefs.h.  */
11967
11968/* Override any GCC internal prototype to avoid an error.
11969   Use char because int might match the return type of a GCC
11970   builtin and then its argument prototype would still apply.  */
11971#ifdef __cplusplus
11972extern "C"
11973#endif
11974char dlopen ();
11975int
11976main ()
11977{
11978return dlopen ();
11979  ;
11980  return 0;
11981}
11982_ACEOF
11983if ac_fn_c_try_link "$LINENO"; then :
11984  ac_cv_lib_dl_dlopen=yes
11985else
11986  ac_cv_lib_dl_dlopen=no
11987fi
11988rm -f core conftest.err conftest.$ac_objext \
11989    conftest$ac_exeext conftest.$ac_ext
11990LIBS=$ac_check_lib_save_LIBS
11991fi
11992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11993$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11994if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11995  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11996else
11997  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11998$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11999if ${ac_cv_lib_svld_dlopen+:} false; then :
12000  $as_echo_n "(cached) " >&6
12001else
12002  ac_check_lib_save_LIBS=$LIBS
12003LIBS="-lsvld  $LIBS"
12004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12005/* end confdefs.h.  */
12006
12007/* Override any GCC internal prototype to avoid an error.
12008   Use char because int might match the return type of a GCC
12009   builtin and then its argument prototype would still apply.  */
12010#ifdef __cplusplus
12011extern "C"
12012#endif
12013char dlopen ();
12014int
12015main ()
12016{
12017return dlopen ();
12018  ;
12019  return 0;
12020}
12021_ACEOF
12022if ac_fn_c_try_link "$LINENO"; then :
12023  ac_cv_lib_svld_dlopen=yes
12024else
12025  ac_cv_lib_svld_dlopen=no
12026fi
12027rm -f core conftest.err conftest.$ac_objext \
12028    conftest$ac_exeext conftest.$ac_ext
12029LIBS=$ac_check_lib_save_LIBS
12030fi
12031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12032$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12033if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12034  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12035else
12036  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12037$as_echo_n "checking for dld_link in -ldld... " >&6; }
12038if ${ac_cv_lib_dld_dld_link+:} false; then :
12039  $as_echo_n "(cached) " >&6
12040else
12041  ac_check_lib_save_LIBS=$LIBS
12042LIBS="-ldld  $LIBS"
12043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12044/* end confdefs.h.  */
12045
12046/* Override any GCC internal prototype to avoid an error.
12047   Use char because int might match the return type of a GCC
12048   builtin and then its argument prototype would still apply.  */
12049#ifdef __cplusplus
12050extern "C"
12051#endif
12052char dld_link ();
12053int
12054main ()
12055{
12056return dld_link ();
12057  ;
12058  return 0;
12059}
12060_ACEOF
12061if ac_fn_c_try_link "$LINENO"; then :
12062  ac_cv_lib_dld_dld_link=yes
12063else
12064  ac_cv_lib_dld_dld_link=no
12065fi
12066rm -f core conftest.err conftest.$ac_objext \
12067    conftest$ac_exeext conftest.$ac_ext
12068LIBS=$ac_check_lib_save_LIBS
12069fi
12070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12071$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12072if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12073  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12074fi
12075
12076
12077fi
12078
12079
12080fi
12081
12082
12083fi
12084
12085
12086fi
12087
12088
12089fi
12090
12091    ;;
12092  esac
12093
12094  if test "x$lt_cv_dlopen" != xno; then
12095    enable_dlopen=yes
12096  else
12097    enable_dlopen=no
12098  fi
12099
12100  case $lt_cv_dlopen in
12101  dlopen)
12102    save_CPPFLAGS="$CPPFLAGS"
12103    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12104
12105    save_LDFLAGS="$LDFLAGS"
12106    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12107
12108    save_LIBS="$LIBS"
12109    LIBS="$lt_cv_dlopen_libs $LIBS"
12110
12111    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12112$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12113if ${lt_cv_dlopen_self+:} false; then :
12114  $as_echo_n "(cached) " >&6
12115else
12116  	  if test "$cross_compiling" = yes; then :
12117  lt_cv_dlopen_self=cross
12118else
12119  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12120  lt_status=$lt_dlunknown
12121  cat > conftest.$ac_ext <<_LT_EOF
12122#line $LINENO "configure"
12123#include "confdefs.h"
12124
12125#if HAVE_DLFCN_H
12126#include <dlfcn.h>
12127#endif
12128
12129#include <stdio.h>
12130
12131#ifdef RTLD_GLOBAL
12132#  define LT_DLGLOBAL		RTLD_GLOBAL
12133#else
12134#  ifdef DL_GLOBAL
12135#    define LT_DLGLOBAL		DL_GLOBAL
12136#  else
12137#    define LT_DLGLOBAL		0
12138#  endif
12139#endif
12140
12141/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12142   find out it does not work in some platform. */
12143#ifndef LT_DLLAZY_OR_NOW
12144#  ifdef RTLD_LAZY
12145#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12146#  else
12147#    ifdef DL_LAZY
12148#      define LT_DLLAZY_OR_NOW		DL_LAZY
12149#    else
12150#      ifdef RTLD_NOW
12151#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12152#      else
12153#        ifdef DL_NOW
12154#          define LT_DLLAZY_OR_NOW	DL_NOW
12155#        else
12156#          define LT_DLLAZY_OR_NOW	0
12157#        endif
12158#      endif
12159#    endif
12160#  endif
12161#endif
12162
12163/* When -fvisbility=hidden is used, assume the code has been annotated
12164   correspondingly for the symbols needed.  */
12165#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12166int fnord () __attribute__((visibility("default")));
12167#endif
12168
12169int fnord () { return 42; }
12170int main ()
12171{
12172  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12173  int status = $lt_dlunknown;
12174
12175  if (self)
12176    {
12177      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12178      else
12179        {
12180	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12181          else puts (dlerror ());
12182	}
12183      /* dlclose (self); */
12184    }
12185  else
12186    puts (dlerror ());
12187
12188  return status;
12189}
12190_LT_EOF
12191  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12192  (eval $ac_link) 2>&5
12193  ac_status=$?
12194  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12195  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12196    (./conftest; exit; ) >&5 2>/dev/null
12197    lt_status=$?
12198    case x$lt_status in
12199      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12200      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12201      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12202    esac
12203  else :
12204    # compilation failed
12205    lt_cv_dlopen_self=no
12206  fi
12207fi
12208rm -fr conftest*
12209
12210
12211fi
12212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12213$as_echo "$lt_cv_dlopen_self" >&6; }
12214
12215    if test "x$lt_cv_dlopen_self" = xyes; then
12216      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12217      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12218$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12219if ${lt_cv_dlopen_self_static+:} false; then :
12220  $as_echo_n "(cached) " >&6
12221else
12222  	  if test "$cross_compiling" = yes; then :
12223  lt_cv_dlopen_self_static=cross
12224else
12225  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12226  lt_status=$lt_dlunknown
12227  cat > conftest.$ac_ext <<_LT_EOF
12228#line $LINENO "configure"
12229#include "confdefs.h"
12230
12231#if HAVE_DLFCN_H
12232#include <dlfcn.h>
12233#endif
12234
12235#include <stdio.h>
12236
12237#ifdef RTLD_GLOBAL
12238#  define LT_DLGLOBAL		RTLD_GLOBAL
12239#else
12240#  ifdef DL_GLOBAL
12241#    define LT_DLGLOBAL		DL_GLOBAL
12242#  else
12243#    define LT_DLGLOBAL		0
12244#  endif
12245#endif
12246
12247/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12248   find out it does not work in some platform. */
12249#ifndef LT_DLLAZY_OR_NOW
12250#  ifdef RTLD_LAZY
12251#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12252#  else
12253#    ifdef DL_LAZY
12254#      define LT_DLLAZY_OR_NOW		DL_LAZY
12255#    else
12256#      ifdef RTLD_NOW
12257#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12258#      else
12259#        ifdef DL_NOW
12260#          define LT_DLLAZY_OR_NOW	DL_NOW
12261#        else
12262#          define LT_DLLAZY_OR_NOW	0
12263#        endif
12264#      endif
12265#    endif
12266#  endif
12267#endif
12268
12269/* When -fvisbility=hidden is used, assume the code has been annotated
12270   correspondingly for the symbols needed.  */
12271#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12272int fnord () __attribute__((visibility("default")));
12273#endif
12274
12275int fnord () { return 42; }
12276int main ()
12277{
12278  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12279  int status = $lt_dlunknown;
12280
12281  if (self)
12282    {
12283      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12284      else
12285        {
12286	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12287          else puts (dlerror ());
12288	}
12289      /* dlclose (self); */
12290    }
12291  else
12292    puts (dlerror ());
12293
12294  return status;
12295}
12296_LT_EOF
12297  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12298  (eval $ac_link) 2>&5
12299  ac_status=$?
12300  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12301  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12302    (./conftest; exit; ) >&5 2>/dev/null
12303    lt_status=$?
12304    case x$lt_status in
12305      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12306      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12307      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12308    esac
12309  else :
12310    # compilation failed
12311    lt_cv_dlopen_self_static=no
12312  fi
12313fi
12314rm -fr conftest*
12315
12316
12317fi
12318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12319$as_echo "$lt_cv_dlopen_self_static" >&6; }
12320    fi
12321
12322    CPPFLAGS="$save_CPPFLAGS"
12323    LDFLAGS="$save_LDFLAGS"
12324    LIBS="$save_LIBS"
12325    ;;
12326  esac
12327
12328  case $lt_cv_dlopen_self in
12329  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12330  *) enable_dlopen_self=unknown ;;
12331  esac
12332
12333  case $lt_cv_dlopen_self_static in
12334  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12335  *) enable_dlopen_self_static=unknown ;;
12336  esac
12337fi
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355striplib=
12356old_striplib=
12357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12358$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12359if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12360  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12361  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12363$as_echo "yes" >&6; }
12364else
12365# FIXME - insert some real tests, host_os isn't really good enough
12366  case $host_os in
12367  darwin*)
12368    if test -n "$STRIP" ; then
12369      striplib="$STRIP -x"
12370      old_striplib="$STRIP -S"
12371      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12372$as_echo "yes" >&6; }
12373    else
12374      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12375$as_echo "no" >&6; }
12376    fi
12377    ;;
12378  *)
12379    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12380$as_echo "no" >&6; }
12381    ;;
12382  esac
12383fi
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396  # Report which library types will actually be built
12397  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12398$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12400$as_echo "$can_build_shared" >&6; }
12401
12402  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12403$as_echo_n "checking whether to build shared libraries... " >&6; }
12404  test "$can_build_shared" = "no" && enable_shared=no
12405
12406  # On AIX, shared libraries and static libraries use the same namespace, and
12407  # are all built from PIC.
12408  case $host_os in
12409  aix3*)
12410    test "$enable_shared" = yes && enable_static=no
12411    if test -n "$RANLIB"; then
12412      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12413      postinstall_cmds='$RANLIB $lib'
12414    fi
12415    ;;
12416
12417  aix[4-9]*)
12418    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12419      test "$enable_shared" = yes && enable_static=no
12420    fi
12421    ;;
12422  esac
12423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12424$as_echo "$enable_shared" >&6; }
12425
12426  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12427$as_echo_n "checking whether to build static libraries... " >&6; }
12428  # Make sure either enable_shared or enable_static is yes.
12429  test "$enable_shared" = yes || enable_static=yes
12430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12431$as_echo "$enable_static" >&6; }
12432
12433
12434
12435
12436fi
12437ac_ext=c
12438ac_cpp='$CPP $CPPFLAGS'
12439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12441ac_compiler_gnu=$ac_cv_c_compiler_gnu
12442
12443CC="$lt_save_CC"
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459        ac_config_commands="$ac_config_commands libtool"
12460
12461
12462
12463
12464# Only expand once:
12465
12466
12467
12468CPPFLAGS="${CPPFLAGS} -D_REENTRANT -D__EXTENSIONS__"
12469
12470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12471$as_echo_n "checking for ANSI C header files... " >&6; }
12472if ${ac_cv_header_stdc+:} false; then :
12473  $as_echo_n "(cached) " >&6
12474else
12475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12476/* end confdefs.h.  */
12477#include <stdlib.h>
12478#include <stdarg.h>
12479#include <string.h>
12480#include <float.h>
12481
12482int
12483main ()
12484{
12485
12486  ;
12487  return 0;
12488}
12489_ACEOF
12490if ac_fn_c_try_compile "$LINENO"; then :
12491  ac_cv_header_stdc=yes
12492else
12493  ac_cv_header_stdc=no
12494fi
12495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12496
12497if test $ac_cv_header_stdc = yes; then
12498  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12500/* end confdefs.h.  */
12501#include <string.h>
12502
12503_ACEOF
12504if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12505  $EGREP "memchr" >/dev/null 2>&1; then :
12506
12507else
12508  ac_cv_header_stdc=no
12509fi
12510rm -f conftest*
12511
12512fi
12513
12514if test $ac_cv_header_stdc = yes; then
12515  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12517/* end confdefs.h.  */
12518#include <stdlib.h>
12519
12520_ACEOF
12521if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12522  $EGREP "free" >/dev/null 2>&1; then :
12523
12524else
12525  ac_cv_header_stdc=no
12526fi
12527rm -f conftest*
12528
12529fi
12530
12531if test $ac_cv_header_stdc = yes; then
12532  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12533  if test "$cross_compiling" = yes; then :
12534  :
12535else
12536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12537/* end confdefs.h.  */
12538#include <ctype.h>
12539#include <stdlib.h>
12540#if ((' ' & 0x0FF) == 0x020)
12541# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12542# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12543#else
12544# define ISLOWER(c) \
12545		   (('a' <= (c) && (c) <= 'i') \
12546		     || ('j' <= (c) && (c) <= 'r') \
12547		     || ('s' <= (c) && (c) <= 'z'))
12548# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12549#endif
12550
12551#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12552int
12553main ()
12554{
12555  int i;
12556  for (i = 0; i < 256; i++)
12557    if (XOR (islower (i), ISLOWER (i))
12558	|| toupper (i) != TOUPPER (i))
12559      return 2;
12560  return 0;
12561}
12562_ACEOF
12563if ac_fn_c_try_run "$LINENO"; then :
12564
12565else
12566  ac_cv_header_stdc=no
12567fi
12568rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12569  conftest.$ac_objext conftest.beam conftest.$ac_ext
12570fi
12571
12572fi
12573fi
12574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12575$as_echo "$ac_cv_header_stdc" >&6; }
12576if test $ac_cv_header_stdc = yes; then
12577
12578$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12579
12580fi
12581
12582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12583$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12584if ${ac_cv_header_sys_wait_h+:} false; then :
12585  $as_echo_n "(cached) " >&6
12586else
12587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12588/* end confdefs.h.  */
12589#include <sys/types.h>
12590#include <sys/wait.h>
12591#ifndef WEXITSTATUS
12592# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12593#endif
12594#ifndef WIFEXITED
12595# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12596#endif
12597
12598int
12599main ()
12600{
12601  int s;
12602  wait (&s);
12603  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12604  ;
12605  return 0;
12606}
12607_ACEOF
12608if ac_fn_c_try_compile "$LINENO"; then :
12609  ac_cv_header_sys_wait_h=yes
12610else
12611  ac_cv_header_sys_wait_h=no
12612fi
12613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12614fi
12615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12616$as_echo "$ac_cv_header_sys_wait_h" >&6; }
12617if test $ac_cv_header_sys_wait_h = yes; then
12618
12619$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12620
12621fi
12622
12623for ac_header in arpa/inet.h fcntl.h netinet/in.h stdlib.h string.h \
12624sys/socket.h sys/time.h unistd.h sys/sendfile.h sys/uio.h \
12625getopt.h sys/epoll.h sys/select.h poll.h sys/poll.h sys/devpoll.h sys/filio.h \
12626sys/mman.h sys/event.h port.h pwd.h sys/syslimits.h \
12627sys/resource.h sys/un.h syslog.h sys/prctl.h uuid/uuid.h
12628do :
12629  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12630ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12631if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12632  cat >>confdefs.h <<_ACEOF
12633#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12634_ACEOF
12635
12636fi
12637
12638done
12639
12640
12641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12642$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12643if ${ac_cv_c_const+:} false; then :
12644  $as_echo_n "(cached) " >&6
12645else
12646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12647/* end confdefs.h.  */
12648
12649int
12650main ()
12651{
12652
12653#ifndef __cplusplus
12654  /* Ultrix mips cc rejects this sort of thing.  */
12655  typedef int charset[2];
12656  const charset cs = { 0, 0 };
12657  /* SunOS 4.1.1 cc rejects this.  */
12658  char const *const *pcpcc;
12659  char **ppc;
12660  /* NEC SVR4.0.2 mips cc rejects this.  */
12661  struct point {int x, y;};
12662  static struct point const zero = {0,0};
12663  /* AIX XL C 1.02.0.0 rejects this.
12664     It does not let you subtract one const X* pointer from another in
12665     an arm of an if-expression whose if-part is not a constant
12666     expression */
12667  const char *g = "string";
12668  pcpcc = &g + (g ? g-g : 0);
12669  /* HPUX 7.0 cc rejects these. */
12670  ++pcpcc;
12671  ppc = (char**) pcpcc;
12672  pcpcc = (char const *const *) ppc;
12673  { /* SCO 3.2v4 cc rejects this sort of thing.  */
12674    char tx;
12675    char *t = &tx;
12676    char const *s = 0 ? (char *) 0 : (char const *) 0;
12677
12678    *t++ = 0;
12679    if (s) return 0;
12680  }
12681  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12682    int x[] = {25, 17};
12683    const int *foo = &x[0];
12684    ++foo;
12685  }
12686  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12687    typedef const int *iptr;
12688    iptr p = 0;
12689    ++p;
12690  }
12691  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12692       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12693    struct s { int j; const int *ap[3]; } bx;
12694    struct s *b = &bx; b->j = 5;
12695  }
12696  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12697    const int foo = 10;
12698    if (!foo) return 0;
12699  }
12700  return !cs[0] && !zero.x;
12701#endif
12702
12703  ;
12704  return 0;
12705}
12706_ACEOF
12707if ac_fn_c_try_compile "$LINENO"; then :
12708  ac_cv_c_const=yes
12709else
12710  ac_cv_c_const=no
12711fi
12712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12713fi
12714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12715$as_echo "$ac_cv_c_const" >&6; }
12716if test $ac_cv_c_const = no; then
12717
12718$as_echo "#define const /**/" >>confdefs.h
12719
12720fi
12721
12722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12723$as_echo_n "checking for inline... " >&6; }
12724if ${ac_cv_c_inline+:} false; then :
12725  $as_echo_n "(cached) " >&6
12726else
12727  ac_cv_c_inline=no
12728for ac_kw in inline __inline__ __inline; do
12729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12730/* end confdefs.h.  */
12731#ifndef __cplusplus
12732typedef int foo_t;
12733static $ac_kw foo_t static_foo () {return 0; }
12734$ac_kw foo_t foo () {return 0; }
12735#endif
12736
12737_ACEOF
12738if ac_fn_c_try_compile "$LINENO"; then :
12739  ac_cv_c_inline=$ac_kw
12740fi
12741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12742  test "$ac_cv_c_inline" != no && break
12743done
12744
12745fi
12746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12747$as_echo "$ac_cv_c_inline" >&6; }
12748
12749case $ac_cv_c_inline in
12750  inline | yes) ;;
12751  *)
12752    case $ac_cv_c_inline in
12753      no) ac_val=;;
12754      *) ac_val=$ac_cv_c_inline;;
12755    esac
12756    cat >>confdefs.h <<_ACEOF
12757#ifndef __cplusplus
12758#define inline $ac_val
12759#endif
12760_ACEOF
12761    ;;
12762esac
12763
12764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
12765$as_echo_n "checking whether char is unsigned... " >&6; }
12766if ${ac_cv_c_char_unsigned+:} false; then :
12767  $as_echo_n "(cached) " >&6
12768else
12769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12770/* end confdefs.h.  */
12771$ac_includes_default
12772int
12773main ()
12774{
12775static int test_array [1 - 2 * !(((char) -1) < 0)];
12776test_array [0] = 0;
12777return test_array [0];
12778
12779  ;
12780  return 0;
12781}
12782_ACEOF
12783if ac_fn_c_try_compile "$LINENO"; then :
12784  ac_cv_c_char_unsigned=no
12785else
12786  ac_cv_c_char_unsigned=yes
12787fi
12788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12789fi
12790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
12791$as_echo "$ac_cv_c_char_unsigned" >&6; }
12792if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
12793  $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
12794
12795fi
12796
12797ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12798if test "x$ac_cv_type_off_t" = xyes; then :
12799
12800else
12801
12802cat >>confdefs.h <<_ACEOF
12803#define off_t long int
12804_ACEOF
12805
12806fi
12807
12808ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12809if test "x$ac_cv_type_pid_t" = xyes; then :
12810
12811else
12812
12813cat >>confdefs.h <<_ACEOF
12814#define pid_t int
12815_ACEOF
12816
12817fi
12818
12819ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12820if test "x$ac_cv_type_size_t" = xyes; then :
12821
12822else
12823
12824cat >>confdefs.h <<_ACEOF
12825#define size_t unsigned int
12826_ACEOF
12827
12828fi
12829
12830
12831ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
12832"
12833if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
12834
12835$as_echo "#define HAVE_STRUCT_TM_GMTOFF 1" >>confdefs.h
12836
12837fi
12838
12839ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/socket.h>
12840"
12841if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
12842
12843cat >>confdefs.h <<_ACEOF
12844#define HAVE_STRUCT_SOCKADDR_STORAGE 1
12845_ACEOF
12846
12847
12848fi
12849
12850ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12851#include <sys/socket.h>
12852"
12853if test "x$ac_cv_type_socklen_t" = xyes; then :
12854
12855cat >>confdefs.h <<_ACEOF
12856#define HAVE_SOCKLEN_T 1
12857_ACEOF
12858
12859
12860fi
12861
12862
12863for ac_header in vfork.h
12864do :
12865  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12866if test "x$ac_cv_header_vfork_h" = xyes; then :
12867  cat >>confdefs.h <<_ACEOF
12868#define HAVE_VFORK_H 1
12869_ACEOF
12870
12871fi
12872
12873done
12874
12875for ac_func in fork vfork
12876do :
12877  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12878ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12879if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12880  cat >>confdefs.h <<_ACEOF
12881#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12882_ACEOF
12883
12884fi
12885done
12886
12887if test "x$ac_cv_func_fork" = xyes; then
12888  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12889$as_echo_n "checking for working fork... " >&6; }
12890if ${ac_cv_func_fork_works+:} false; then :
12891  $as_echo_n "(cached) " >&6
12892else
12893  if test "$cross_compiling" = yes; then :
12894  ac_cv_func_fork_works=cross
12895else
12896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12897/* end confdefs.h.  */
12898$ac_includes_default
12899int
12900main ()
12901{
12902
12903	  /* By Ruediger Kuhlmann. */
12904	  return fork () < 0;
12905
12906  ;
12907  return 0;
12908}
12909_ACEOF
12910if ac_fn_c_try_run "$LINENO"; then :
12911  ac_cv_func_fork_works=yes
12912else
12913  ac_cv_func_fork_works=no
12914fi
12915rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12916  conftest.$ac_objext conftest.beam conftest.$ac_ext
12917fi
12918
12919fi
12920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12921$as_echo "$ac_cv_func_fork_works" >&6; }
12922
12923else
12924  ac_cv_func_fork_works=$ac_cv_func_fork
12925fi
12926if test "x$ac_cv_func_fork_works" = xcross; then
12927  case $host in
12928    *-*-amigaos* | *-*-msdosdjgpp*)
12929      # Override, as these systems have only a dummy fork() stub
12930      ac_cv_func_fork_works=no
12931      ;;
12932    *)
12933      ac_cv_func_fork_works=yes
12934      ;;
12935  esac
12936  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12937$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12938fi
12939ac_cv_func_vfork_works=$ac_cv_func_vfork
12940if test "x$ac_cv_func_vfork" = xyes; then
12941  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12942$as_echo_n "checking for working vfork... " >&6; }
12943if ${ac_cv_func_vfork_works+:} false; then :
12944  $as_echo_n "(cached) " >&6
12945else
12946  if test "$cross_compiling" = yes; then :
12947  ac_cv_func_vfork_works=cross
12948else
12949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12950/* end confdefs.h.  */
12951/* Thanks to Paul Eggert for this test.  */
12952$ac_includes_default
12953#include <sys/wait.h>
12954#ifdef HAVE_VFORK_H
12955# include <vfork.h>
12956#endif
12957/* On some sparc systems, changes by the child to local and incoming
12958   argument registers are propagated back to the parent.  The compiler
12959   is told about this with #include <vfork.h>, but some compilers
12960   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
12961   static variable whose address is put into a register that is
12962   clobbered by the vfork.  */
12963static void
12964#ifdef __cplusplus
12965sparc_address_test (int arg)
12966# else
12967sparc_address_test (arg) int arg;
12968#endif
12969{
12970  static pid_t child;
12971  if (!child) {
12972    child = vfork ();
12973    if (child < 0) {
12974      perror ("vfork");
12975      _exit(2);
12976    }
12977    if (!child) {
12978      arg = getpid();
12979      write(-1, "", 0);
12980      _exit (arg);
12981    }
12982  }
12983}
12984
12985int
12986main ()
12987{
12988  pid_t parent = getpid ();
12989  pid_t child;
12990
12991  sparc_address_test (0);
12992
12993  child = vfork ();
12994
12995  if (child == 0) {
12996    /* Here is another test for sparc vfork register problems.  This
12997       test uses lots of local variables, at least as many local
12998       variables as main has allocated so far including compiler
12999       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
13000       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
13001       reuse the register of parent for one of the local variables,
13002       since it will think that parent can't possibly be used any more
13003       in this routine.  Assigning to the local variable will thus
13004       munge parent in the parent process.  */
13005    pid_t
13006      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13007      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13008    /* Convince the compiler that p..p7 are live; otherwise, it might
13009       use the same hardware register for all 8 local variables.  */
13010    if (p != p1 || p != p2 || p != p3 || p != p4
13011	|| p != p5 || p != p6 || p != p7)
13012      _exit(1);
13013
13014    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13015       from child file descriptors.  If the child closes a descriptor
13016       before it execs or exits, this munges the parent's descriptor
13017       as well.  Test for this by closing stdout in the child.  */
13018    _exit(close(fileno(stdout)) != 0);
13019  } else {
13020    int status;
13021    struct stat st;
13022
13023    while (wait(&status) != child)
13024      ;
13025    return (
13026	 /* Was there some problem with vforking?  */
13027	 child < 0
13028
13029	 /* Did the child fail?  (This shouldn't happen.)  */
13030	 || status
13031
13032	 /* Did the vfork/compiler bug occur?  */
13033	 || parent != getpid()
13034
13035	 /* Did the file descriptor bug occur?  */
13036	 || fstat(fileno(stdout), &st) != 0
13037	 );
13038  }
13039}
13040_ACEOF
13041if ac_fn_c_try_run "$LINENO"; then :
13042  ac_cv_func_vfork_works=yes
13043else
13044  ac_cv_func_vfork_works=no
13045fi
13046rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13047  conftest.$ac_objext conftest.beam conftest.$ac_ext
13048fi
13049
13050fi
13051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13052$as_echo "$ac_cv_func_vfork_works" >&6; }
13053
13054fi;
13055if test "x$ac_cv_func_fork_works" = xcross; then
13056  ac_cv_func_vfork_works=$ac_cv_func_vfork
13057  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13058$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13059fi
13060
13061if test "x$ac_cv_func_vfork_works" = xyes; then
13062
13063$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13064
13065else
13066
13067$as_echo "#define vfork fork" >>confdefs.h
13068
13069fi
13070if test "x$ac_cv_func_fork_works" = xyes; then
13071
13072$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13073
13074fi
13075
13076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13077$as_echo_n "checking return type of signal handlers... " >&6; }
13078if ${ac_cv_type_signal+:} false; then :
13079  $as_echo_n "(cached) " >&6
13080else
13081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13082/* end confdefs.h.  */
13083#include <sys/types.h>
13084#include <signal.h>
13085
13086int
13087main ()
13088{
13089return *(signal (0, 0)) (0) == 1;
13090  ;
13091  return 0;
13092}
13093_ACEOF
13094if ac_fn_c_try_compile "$LINENO"; then :
13095  ac_cv_type_signal=int
13096else
13097  ac_cv_type_signal=void
13098fi
13099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13100fi
13101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13102$as_echo "$ac_cv_type_signal" >&6; }
13103
13104cat >>confdefs.h <<_ACEOF
13105#define RETSIGTYPE $ac_cv_type_signal
13106_ACEOF
13107
13108
13109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
13110$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
13111if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
13112  $as_echo_n "(cached) " >&6
13113else
13114  rm -f conftest.sym conftest.file
13115echo >conftest.file
13116if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
13117  if test "$cross_compiling" = yes; then :
13118  ac_cv_func_lstat_dereferences_slashed_symlink=no
13119else
13120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13121/* end confdefs.h.  */
13122$ac_includes_default
13123int
13124main ()
13125{
13126struct stat sbuf;
13127     /* Linux will dereference the symlink and fail, as required by POSIX.
13128	That is better in the sense that it means we will not
13129	have to compile and use the lstat wrapper.  */
13130     return lstat ("conftest.sym/", &sbuf) == 0;
13131  ;
13132  return 0;
13133}
13134_ACEOF
13135if ac_fn_c_try_run "$LINENO"; then :
13136  ac_cv_func_lstat_dereferences_slashed_symlink=yes
13137else
13138  ac_cv_func_lstat_dereferences_slashed_symlink=no
13139fi
13140rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13141  conftest.$ac_objext conftest.beam conftest.$ac_ext
13142fi
13143
13144else
13145  # If the `ln -s' command failed, then we probably don't even
13146  # have an lstat function.
13147  ac_cv_func_lstat_dereferences_slashed_symlink=no
13148fi
13149rm -f conftest.sym conftest.file
13150
13151fi
13152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13153$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13154
13155test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13156
13157cat >>confdefs.h <<_ACEOF
13158#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13159_ACEOF
13160
13161
13162if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
13163  case " $LIBOBJS " in
13164  *" lstat.$ac_objext "* ) ;;
13165  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
13166 ;;
13167esac
13168
13169fi
13170
13171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
13172$as_echo_n "checking whether stat accepts an empty string... " >&6; }
13173if ${ac_cv_func_stat_empty_string_bug+:} false; then :
13174  $as_echo_n "(cached) " >&6
13175else
13176  if test "$cross_compiling" = yes; then :
13177  ac_cv_func_stat_empty_string_bug=yes
13178else
13179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13180/* end confdefs.h.  */
13181$ac_includes_default
13182int
13183main ()
13184{
13185struct stat sbuf;
13186  return stat ("", &sbuf) == 0;
13187  ;
13188  return 0;
13189}
13190_ACEOF
13191if ac_fn_c_try_run "$LINENO"; then :
13192  ac_cv_func_stat_empty_string_bug=no
13193else
13194  ac_cv_func_stat_empty_string_bug=yes
13195fi
13196rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13197  conftest.$ac_objext conftest.beam conftest.$ac_ext
13198fi
13199
13200fi
13201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
13202$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
13203if test $ac_cv_func_stat_empty_string_bug = yes; then
13204  case " $LIBOBJS " in
13205  *" stat.$ac_objext "* ) ;;
13206  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
13207 ;;
13208esac
13209
13210
13211cat >>confdefs.h <<_ACEOF
13212#define HAVE_STAT_EMPTY_STRING_BUG 1
13213_ACEOF
13214
13215fi
13216
13217for ac_func in strftime
13218do :
13219  ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
13220if test "x$ac_cv_func_strftime" = xyes; then :
13221  cat >>confdefs.h <<_ACEOF
13222#define HAVE_STRFTIME 1
13223_ACEOF
13224
13225else
13226  # strftime is in -lintl on SCO UNIX.
13227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
13228$as_echo_n "checking for strftime in -lintl... " >&6; }
13229if ${ac_cv_lib_intl_strftime+:} false; then :
13230  $as_echo_n "(cached) " >&6
13231else
13232  ac_check_lib_save_LIBS=$LIBS
13233LIBS="-lintl  $LIBS"
13234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13235/* end confdefs.h.  */
13236
13237/* Override any GCC internal prototype to avoid an error.
13238   Use char because int might match the return type of a GCC
13239   builtin and then its argument prototype would still apply.  */
13240#ifdef __cplusplus
13241extern "C"
13242#endif
13243char strftime ();
13244int
13245main ()
13246{
13247return strftime ();
13248  ;
13249  return 0;
13250}
13251_ACEOF
13252if ac_fn_c_try_link "$LINENO"; then :
13253  ac_cv_lib_intl_strftime=yes
13254else
13255  ac_cv_lib_intl_strftime=no
13256fi
13257rm -f core conftest.err conftest.$ac_objext \
13258    conftest$ac_exeext conftest.$ac_ext
13259LIBS=$ac_check_lib_save_LIBS
13260fi
13261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
13262$as_echo "$ac_cv_lib_intl_strftime" >&6; }
13263if test "x$ac_cv_lib_intl_strftime" = xyes; then :
13264  $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
13265
13266LIBS="-lintl $LIBS"
13267fi
13268
13269fi
13270done
13271
13272for ac_func in issetugid inet_pton
13273do :
13274  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13275ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13276if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13277  cat >>confdefs.h <<_ACEOF
13278#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13279_ACEOF
13280
13281fi
13282done
13283
13284
13285if test -z "$PKG_CONFIG"; then
13286  # Extract the first word of "pkg-config", so it can be a program name with args.
13287set dummy pkg-config; ac_word=$2
13288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13289$as_echo_n "checking for $ac_word... " >&6; }
13290if ${ac_cv_path_PKG_CONFIG+:} false; then :
13291  $as_echo_n "(cached) " >&6
13292else
13293  case $PKG_CONFIG in
13294  [\\/]* | ?:[\\/]*)
13295  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13296  ;;
13297  *)
13298  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13299for as_dir in $PATH
13300do
13301  IFS=$as_save_IFS
13302  test -z "$as_dir" && as_dir=.
13303    for ac_exec_ext in '' $ac_executable_extensions; do
13304  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13305    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13306    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13307    break 2
13308  fi
13309done
13310  done
13311IFS=$as_save_IFS
13312
13313  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13314  ;;
13315esac
13316fi
13317PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13318if test -n "$PKG_CONFIG"; then
13319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13320$as_echo "$PKG_CONFIG" >&6; }
13321else
13322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13323$as_echo "no" >&6; }
13324fi
13325
13326
13327fi
13328
13329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libev support" >&5
13330$as_echo_n "checking for libev support... " >&6; }
13331
13332# Check whether --with-libev was given.
13333if test "${with_libev+set}" = set; then :
13334  withval=$with_libev; WITH_LIBEV=$withval
13335else
13336  WITH_LIBEV=no
13337fi
13338
13339
13340LIBEV_CFLAGS=""
13341LIBEV_LIBS=""
13342
13343if test "$WITH_LIBEV" != "no"; then
13344
13345
13346
13347
13348
13349
13350
13351if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13352	if test -n "$ac_tool_prefix"; then
13353  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13354set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13356$as_echo_n "checking for $ac_word... " >&6; }
13357if ${ac_cv_path_PKG_CONFIG+:} false; then :
13358  $as_echo_n "(cached) " >&6
13359else
13360  case $PKG_CONFIG in
13361  [\\/]* | ?:[\\/]*)
13362  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13363  ;;
13364  *)
13365  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13366for as_dir in $PATH
13367do
13368  IFS=$as_save_IFS
13369  test -z "$as_dir" && as_dir=.
13370    for ac_exec_ext in '' $ac_executable_extensions; do
13371  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13372    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13373    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13374    break 2
13375  fi
13376done
13377  done
13378IFS=$as_save_IFS
13379
13380  ;;
13381esac
13382fi
13383PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13384if test -n "$PKG_CONFIG"; then
13385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13386$as_echo "$PKG_CONFIG" >&6; }
13387else
13388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13389$as_echo "no" >&6; }
13390fi
13391
13392
13393fi
13394if test -z "$ac_cv_path_PKG_CONFIG"; then
13395  ac_pt_PKG_CONFIG=$PKG_CONFIG
13396  # Extract the first word of "pkg-config", so it can be a program name with args.
13397set dummy pkg-config; ac_word=$2
13398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13399$as_echo_n "checking for $ac_word... " >&6; }
13400if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13401  $as_echo_n "(cached) " >&6
13402else
13403  case $ac_pt_PKG_CONFIG in
13404  [\\/]* | ?:[\\/]*)
13405  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13406  ;;
13407  *)
13408  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13409for as_dir in $PATH
13410do
13411  IFS=$as_save_IFS
13412  test -z "$as_dir" && as_dir=.
13413    for ac_exec_ext in '' $ac_executable_extensions; do
13414  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13415    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13416    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13417    break 2
13418  fi
13419done
13420  done
13421IFS=$as_save_IFS
13422
13423  ;;
13424esac
13425fi
13426ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13427if test -n "$ac_pt_PKG_CONFIG"; then
13428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13429$as_echo "$ac_pt_PKG_CONFIG" >&6; }
13430else
13431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13432$as_echo "no" >&6; }
13433fi
13434
13435  if test "x$ac_pt_PKG_CONFIG" = x; then
13436    PKG_CONFIG=""
13437  else
13438    case $cross_compiling:$ac_tool_warned in
13439yes:)
13440{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13441$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13442ac_tool_warned=yes ;;
13443esac
13444    PKG_CONFIG=$ac_pt_PKG_CONFIG
13445  fi
13446else
13447  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13448fi
13449
13450fi
13451if test -n "$PKG_CONFIG"; then
13452	_pkg_min_version=0.9.0
13453	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13454$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13455	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13456		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13457$as_echo "yes" >&6; }
13458	else
13459		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13460$as_echo "no" >&6; }
13461		PKG_CONFIG=""
13462	fi
13463fi
13464
13465pkg_failed=no
13466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBEV" >&5
13467$as_echo_n "checking for LIBEV... " >&6; }
13468
13469if test -n "$LIBEV_CFLAGS"; then
13470    pkg_cv_LIBEV_CFLAGS="$LIBEV_CFLAGS"
13471 elif test -n "$PKG_CONFIG"; then
13472    if test -n "$PKG_CONFIG" && \
13473    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libev\""; } >&5
13474  ($PKG_CONFIG --exists --print-errors "libev") 2>&5
13475  ac_status=$?
13476  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13477  test $ac_status = 0; }; then
13478  pkg_cv_LIBEV_CFLAGS=`$PKG_CONFIG --cflags "libev" 2>/dev/null`
13479		      test "x$?" != "x0" && pkg_failed=yes
13480else
13481  pkg_failed=yes
13482fi
13483 else
13484    pkg_failed=untried
13485fi
13486if test -n "$LIBEV_LIBS"; then
13487    pkg_cv_LIBEV_LIBS="$LIBEV_LIBS"
13488 elif test -n "$PKG_CONFIG"; then
13489    if test -n "$PKG_CONFIG" && \
13490    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libev\""; } >&5
13491  ($PKG_CONFIG --exists --print-errors "libev") 2>&5
13492  ac_status=$?
13493  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13494  test $ac_status = 0; }; then
13495  pkg_cv_LIBEV_LIBS=`$PKG_CONFIG --libs "libev" 2>/dev/null`
13496		      test "x$?" != "x0" && pkg_failed=yes
13497else
13498  pkg_failed=yes
13499fi
13500 else
13501    pkg_failed=untried
13502fi
13503
13504
13505
13506if test $pkg_failed = yes; then
13507   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13508$as_echo "no" >&6; }
13509
13510if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13511        _pkg_short_errors_supported=yes
13512else
13513        _pkg_short_errors_supported=no
13514fi
13515        if test $_pkg_short_errors_supported = yes; then
13516	        LIBEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libev" 2>&1`
13517        else
13518	        LIBEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libev" 2>&1`
13519        fi
13520	# Put the nasty error message in config.log where it belongs
13521	echo "$LIBEV_PKG_ERRORS" >&5
13522
13523
13524
13525		if test "$WITH_LIBEV" != "yes"; then
13526			LIBEV_CFLAGS="-I$WITH_LIBEV/include"
13527			LIBEV_LIBS="-L$WITH_LIBEV/lib -lev"
13528		else
13529			for ac_header in ev.h
13530do :
13531  ac_fn_c_check_header_mongrel "$LINENO" "ev.h" "ac_cv_header_ev_h" "$ac_includes_default"
13532if test "x$ac_cv_header_ev_h" = xyes; then :
13533  cat >>confdefs.h <<_ACEOF
13534#define HAVE_EV_H 1
13535_ACEOF
13536
13537				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ev_time in -lev" >&5
13538$as_echo_n "checking for ev_time in -lev... " >&6; }
13539if ${ac_cv_lib_ev_ev_time+:} false; then :
13540  $as_echo_n "(cached) " >&6
13541else
13542  ac_check_lib_save_LIBS=$LIBS
13543LIBS="-lev  $LIBS"
13544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13545/* end confdefs.h.  */
13546
13547/* Override any GCC internal prototype to avoid an error.
13548   Use char because int might match the return type of a GCC
13549   builtin and then its argument prototype would still apply.  */
13550#ifdef __cplusplus
13551extern "C"
13552#endif
13553char ev_time ();
13554int
13555main ()
13556{
13557return ev_time ();
13558  ;
13559  return 0;
13560}
13561_ACEOF
13562if ac_fn_c_try_link "$LINENO"; then :
13563  ac_cv_lib_ev_ev_time=yes
13564else
13565  ac_cv_lib_ev_ev_time=no
13566fi
13567rm -f core conftest.err conftest.$ac_objext \
13568    conftest$ac_exeext conftest.$ac_ext
13569LIBS=$ac_check_lib_save_LIBS
13570fi
13571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ev_ev_time" >&5
13572$as_echo "$ac_cv_lib_ev_ev_time" >&6; }
13573if test "x$ac_cv_lib_ev_ev_time" = xyes; then :
13574
13575						LIBEV_CFLAGS=""
13576						LIBEV_LIBS="-lev"
13577
13578else
13579
13580					as_fn_error $? "libev not found" "$LINENO" 5
13581
13582
13583fi
13584
13585else
13586
13587					as_fn_error $? "libev not found" "$LINENO" 5
13588
13589
13590fi
13591
13592done
13593
13594		fi
13595
13596elif test $pkg_failed = untried; then
13597     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13598$as_echo "no" >&6; }
13599
13600
13601		if test "$WITH_LIBEV" != "yes"; then
13602			LIBEV_CFLAGS="-I$WITH_LIBEV/include"
13603			LIBEV_LIBS="-L$WITH_LIBEV/lib -lev"
13604		else
13605			for ac_header in ev.h
13606do :
13607  ac_fn_c_check_header_mongrel "$LINENO" "ev.h" "ac_cv_header_ev_h" "$ac_includes_default"
13608if test "x$ac_cv_header_ev_h" = xyes; then :
13609  cat >>confdefs.h <<_ACEOF
13610#define HAVE_EV_H 1
13611_ACEOF
13612
13613				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ev_time in -lev" >&5
13614$as_echo_n "checking for ev_time in -lev... " >&6; }
13615if ${ac_cv_lib_ev_ev_time+:} false; then :
13616  $as_echo_n "(cached) " >&6
13617else
13618  ac_check_lib_save_LIBS=$LIBS
13619LIBS="-lev  $LIBS"
13620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13621/* end confdefs.h.  */
13622
13623/* Override any GCC internal prototype to avoid an error.
13624   Use char because int might match the return type of a GCC
13625   builtin and then its argument prototype would still apply.  */
13626#ifdef __cplusplus
13627extern "C"
13628#endif
13629char ev_time ();
13630int
13631main ()
13632{
13633return ev_time ();
13634  ;
13635  return 0;
13636}
13637_ACEOF
13638if ac_fn_c_try_link "$LINENO"; then :
13639  ac_cv_lib_ev_ev_time=yes
13640else
13641  ac_cv_lib_ev_ev_time=no
13642fi
13643rm -f core conftest.err conftest.$ac_objext \
13644    conftest$ac_exeext conftest.$ac_ext
13645LIBS=$ac_check_lib_save_LIBS
13646fi
13647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ev_ev_time" >&5
13648$as_echo "$ac_cv_lib_ev_ev_time" >&6; }
13649if test "x$ac_cv_lib_ev_ev_time" = xyes; then :
13650
13651						LIBEV_CFLAGS=""
13652						LIBEV_LIBS="-lev"
13653
13654else
13655
13656					as_fn_error $? "libev not found" "$LINENO" 5
13657
13658
13659fi
13660
13661else
13662
13663					as_fn_error $? "libev not found" "$LINENO" 5
13664
13665
13666fi
13667
13668done
13669
13670		fi
13671
13672else
13673	LIBEV_CFLAGS=$pkg_cv_LIBEV_CFLAGS
13674	LIBEV_LIBS=$pkg_cv_LIBEV_LIBS
13675        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13676$as_echo "yes" >&6; }
13677
13678fi
13679
13680
13681$as_echo "#define HAVE_LIBEV 1" >>confdefs.h
13682
13683fi
13684
13685
13686
13687
13688MYSQL_INCLUDE=""
13689MYSQL_LIBS=""
13690
13691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
13692$as_echo_n "checking for MySQL support... " >&6; }
13693
13694# Check whether --with-mysql was given.
13695if test "${with_mysql+set}" = set; then :
13696  withval=$with_mysql; WITH_MYSQL=$withval
13697else
13698  WITH_MYSQL=no
13699fi
13700
13701
13702if test "$WITH_MYSQL" != "no"; then
13703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13704$as_echo "yes" >&6; }
13705  if test "$WITH_MYSQL" = "yes"; then
13706    # Extract the first word of "mysql_config", so it can be a program name with args.
13707set dummy mysql_config; ac_word=$2
13708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13709$as_echo_n "checking for $ac_word... " >&6; }
13710if ${ac_cv_path_MYSQL_CONFIG+:} false; then :
13711  $as_echo_n "(cached) " >&6
13712else
13713  case $MYSQL_CONFIG in
13714  [\\/]* | ?:[\\/]*)
13715  ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
13716  ;;
13717  *)
13718  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13719for as_dir in $PATH
13720do
13721  IFS=$as_save_IFS
13722  test -z "$as_dir" && as_dir=.
13723    for ac_exec_ext in '' $ac_executable_extensions; do
13724  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13725    ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13726    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13727    break 2
13728  fi
13729done
13730  done
13731IFS=$as_save_IFS
13732
13733  ;;
13734esac
13735fi
13736MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
13737if test -n "$MYSQL_CONFIG"; then
13738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
13739$as_echo "$MYSQL_CONFIG" >&6; }
13740else
13741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13742$as_echo "no" >&6; }
13743fi
13744
13745
13746  else
13747    MYSQL_CONFIG=$WITH_MYSQL
13748  fi
13749
13750  if test "$MYSQL_CONFIG" = ""; then
13751    as_fn_error $? "mysql_config is not found" "$LINENO" 5
13752  fi
13753  if test \! -x $MYSQL_CONFIG; then
13754    as_fn_error use --with-mysql=path-to-mysql_config "mysql_config not exists or not executable" "$LINENO" 5
13755  fi
13756
13757  if $MYSQL_CONFIG | grep -- '--include' > /dev/null ; then
13758    MYSQL_INCLUDE="`$MYSQL_CONFIG --include | sed s/\'//g`"
13759  else
13760    MYSQL_INCLUDE="`$MYSQL_CONFIG --cflags | sed s/\'//g`"
13761  fi
13762  MYSQL_LIBS="`$MYSQL_CONFIG --libs | sed s/\'//g`"
13763
13764  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL includes at" >&5
13765$as_echo_n "checking for MySQL includes at... " >&6; }
13766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_INCLUDE" >&5
13767$as_echo "$MYSQL_INCLUDE" >&6; }
13768
13769  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL libraries at" >&5
13770$as_echo_n "checking for MySQL libraries at... " >&6; }
13771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_LIBS" >&5
13772$as_echo "$MYSQL_LIBS" >&6; }
13773  old_CPPFLAGS="$CPPFLAGS"
13774  CPPFLAGS="$CPPFLAGS $MYSQL_INCLUDE"
13775  for ac_header in errmsg.h mysql.h
13776do :
13777  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13778ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13779if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13780  cat >>confdefs.h <<_ACEOF
13781#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13782_ACEOF
13783
13784fi
13785
13786done
13787
13788  CPPFLAGS="$old_CPPFLAGS"
13789
13790
13791$as_echo "#define HAVE_MYSQL 1" >>confdefs.h
13792
13793else
13794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13795$as_echo "no" >&6; }
13796fi
13797
13798
13799
13800
13801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP support" >&5
13802$as_echo_n "checking for LDAP support... " >&6; }
13803
13804# Check whether --with-ldap was given.
13805if test "${with_ldap+set}" = set; then :
13806  withval=$with_ldap; WITH_LDAP=$withval
13807else
13808  WITH_LDAP=no
13809fi
13810
13811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
13812$as_echo "$withval" >&6; }
13813if test "$WITH_LDAP" != "no"; then
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap" >&5
13815$as_echo_n "checking for ldap_bind in -lldap... " >&6; }
13816if ${ac_cv_lib_ldap_ldap_bind+:} false; then :
13817  $as_echo_n "(cached) " >&6
13818else
13819  ac_check_lib_save_LIBS=$LIBS
13820LIBS="-lldap  $LIBS"
13821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13822/* end confdefs.h.  */
13823
13824/* Override any GCC internal prototype to avoid an error.
13825   Use char because int might match the return type of a GCC
13826   builtin and then its argument prototype would still apply.  */
13827#ifdef __cplusplus
13828extern "C"
13829#endif
13830char ldap_bind ();
13831int
13832main ()
13833{
13834return ldap_bind ();
13835  ;
13836  return 0;
13837}
13838_ACEOF
13839if ac_fn_c_try_link "$LINENO"; then :
13840  ac_cv_lib_ldap_ldap_bind=yes
13841else
13842  ac_cv_lib_ldap_ldap_bind=no
13843fi
13844rm -f core conftest.err conftest.$ac_objext \
13845    conftest$ac_exeext conftest.$ac_ext
13846LIBS=$ac_check_lib_save_LIBS
13847fi
13848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_bind" >&5
13849$as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
13850if test "x$ac_cv_lib_ldap_ldap_bind" = xyes; then :
13851
13852  for ac_header in ldap.h
13853do :
13854  ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
13855if test "x$ac_cv_header_ldap_h" = xyes; then :
13856  cat >>confdefs.h <<_ACEOF
13857#define HAVE_LDAP_H 1
13858_ACEOF
13859
13860    LDAP_LIB=-lldap
13861
13862$as_echo "#define HAVE_LIBLDAP 1" >>confdefs.h
13863
13864    $as_echo "#define HAVE_LDAP_H 1" >>confdefs.h
13865
13866
13867$as_echo "#define LDAP_DEPRECATED 1" >>confdefs.h
13868
13869
13870fi
13871
13872done
13873
13874
13875fi
13876
13877
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_printf in -llber" >&5
13879$as_echo_n "checking for ber_printf in -llber... " >&6; }
13880if ${ac_cv_lib_lber_ber_printf+:} false; then :
13881  $as_echo_n "(cached) " >&6
13882else
13883  ac_check_lib_save_LIBS=$LIBS
13884LIBS="-llber  $LIBS"
13885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13886/* end confdefs.h.  */
13887
13888/* Override any GCC internal prototype to avoid an error.
13889   Use char because int might match the return type of a GCC
13890   builtin and then its argument prototype would still apply.  */
13891#ifdef __cplusplus
13892extern "C"
13893#endif
13894char ber_printf ();
13895int
13896main ()
13897{
13898return ber_printf ();
13899  ;
13900  return 0;
13901}
13902_ACEOF
13903if ac_fn_c_try_link "$LINENO"; then :
13904  ac_cv_lib_lber_ber_printf=yes
13905else
13906  ac_cv_lib_lber_ber_printf=no
13907fi
13908rm -f core conftest.err conftest.$ac_objext \
13909    conftest$ac_exeext conftest.$ac_ext
13910LIBS=$ac_check_lib_save_LIBS
13911fi
13912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_printf" >&5
13913$as_echo "$ac_cv_lib_lber_ber_printf" >&6; }
13914if test "x$ac_cv_lib_lber_ber_printf" = xyes; then :
13915
13916  for ac_header in lber.h
13917do :
13918  ac_fn_c_check_header_mongrel "$LINENO" "lber.h" "ac_cv_header_lber_h" "$ac_includes_default"
13919if test "x$ac_cv_header_lber_h" = xyes; then :
13920  cat >>confdefs.h <<_ACEOF
13921#define HAVE_LBER_H 1
13922_ACEOF
13923
13924    LBER_LIB=-llber
13925
13926$as_echo "#define HAVE_LIBLBER 1" >>confdefs.h
13927
13928    $as_echo "#define HAVE_LBER_H 1" >>confdefs.h
13929
13930
13931fi
13932
13933done
13934
13935
13936fi
13937
13938
13939fi
13940
13941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended attributes support" >&5
13942$as_echo_n "checking for extended attributes support... " >&6; }
13943
13944# Check whether --with-attr was given.
13945if test "${with_attr+set}" = set; then :
13946  withval=$with_attr; WITH_ATTR=$withval
13947else
13948  WITH_ATTR=no
13949fi
13950
13951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
13952$as_echo "$withval" >&6; }
13953if test "$WITH_ATTR" != "no"; then
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for attr_get in -lattr" >&5
13955$as_echo_n "checking for attr_get in -lattr... " >&6; }
13956if ${ac_cv_lib_attr_attr_get+:} false; then :
13957  $as_echo_n "(cached) " >&6
13958else
13959  ac_check_lib_save_LIBS=$LIBS
13960LIBS="-lattr  $LIBS"
13961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13962/* end confdefs.h.  */
13963
13964/* Override any GCC internal prototype to avoid an error.
13965   Use char because int might match the return type of a GCC
13966   builtin and then its argument prototype would still apply.  */
13967#ifdef __cplusplus
13968extern "C"
13969#endif
13970char attr_get ();
13971int
13972main ()
13973{
13974return attr_get ();
13975  ;
13976  return 0;
13977}
13978_ACEOF
13979if ac_fn_c_try_link "$LINENO"; then :
13980  ac_cv_lib_attr_attr_get=yes
13981else
13982  ac_cv_lib_attr_attr_get=no
13983fi
13984rm -f core conftest.err conftest.$ac_objext \
13985    conftest$ac_exeext conftest.$ac_ext
13986LIBS=$ac_check_lib_save_LIBS
13987fi
13988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_attr_get" >&5
13989$as_echo "$ac_cv_lib_attr_attr_get" >&6; }
13990if test "x$ac_cv_lib_attr_attr_get" = xyes; then :
13991
13992	for ac_header in attr/attributes.h
13993do :
13994  ac_fn_c_check_header_mongrel "$LINENO" "attr/attributes.h" "ac_cv_header_attr_attributes_h" "$ac_includes_default"
13995if test "x$ac_cv_header_attr_attributes_h" = xyes; then :
13996  cat >>confdefs.h <<_ACEOF
13997#define HAVE_ATTR_ATTRIBUTES_H 1
13998_ACEOF
13999
14000		ATTR_LIB=-lattr
14001
14002$as_echo "#define HAVE_XATTR 1" >>confdefs.h
14003
14004		$as_echo "#define HAVE_ATTR_ATTRIBUTES_H 1" >>confdefs.h
14005
14006
14007fi
14008
14009done
14010
14011
14012fi
14013
14014
14015fi
14016
14017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
14018$as_echo_n "checking for library containing socket... " >&6; }
14019if ${ac_cv_search_socket+:} false; then :
14020  $as_echo_n "(cached) " >&6
14021else
14022  ac_func_search_save_LIBS=$LIBS
14023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14024/* end confdefs.h.  */
14025
14026/* Override any GCC internal prototype to avoid an error.
14027   Use char because int might match the return type of a GCC
14028   builtin and then its argument prototype would still apply.  */
14029#ifdef __cplusplus
14030extern "C"
14031#endif
14032char socket ();
14033int
14034main ()
14035{
14036return socket ();
14037  ;
14038  return 0;
14039}
14040_ACEOF
14041for ac_lib in '' socket; do
14042  if test -z "$ac_lib"; then
14043    ac_res="none required"
14044  else
14045    ac_res=-l$ac_lib
14046    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14047  fi
14048  if ac_fn_c_try_link "$LINENO"; then :
14049  ac_cv_search_socket=$ac_res
14050fi
14051rm -f core conftest.err conftest.$ac_objext \
14052    conftest$ac_exeext
14053  if ${ac_cv_search_socket+:} false; then :
14054  break
14055fi
14056done
14057if ${ac_cv_search_socket+:} false; then :
14058
14059else
14060  ac_cv_search_socket=no
14061fi
14062rm conftest.$ac_ext
14063LIBS=$ac_func_search_save_LIBS
14064fi
14065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
14066$as_echo "$ac_cv_search_socket" >&6; }
14067ac_res=$ac_cv_search_socket
14068if test "$ac_res" != no; then :
14069  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14070
14071fi
14072
14073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
14074$as_echo_n "checking for library containing gethostbyname... " >&6; }
14075if ${ac_cv_search_gethostbyname+:} false; then :
14076  $as_echo_n "(cached) " >&6
14077else
14078  ac_func_search_save_LIBS=$LIBS
14079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14080/* end confdefs.h.  */
14081
14082/* Override any GCC internal prototype to avoid an error.
14083   Use char because int might match the return type of a GCC
14084   builtin and then its argument prototype would still apply.  */
14085#ifdef __cplusplus
14086extern "C"
14087#endif
14088char gethostbyname ();
14089int
14090main ()
14091{
14092return gethostbyname ();
14093  ;
14094  return 0;
14095}
14096_ACEOF
14097for ac_lib in '' nsl socket; do
14098  if test -z "$ac_lib"; then
14099    ac_res="none required"
14100  else
14101    ac_res=-l$ac_lib
14102    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14103  fi
14104  if ac_fn_c_try_link "$LINENO"; then :
14105  ac_cv_search_gethostbyname=$ac_res
14106fi
14107rm -f core conftest.err conftest.$ac_objext \
14108    conftest$ac_exeext
14109  if ${ac_cv_search_gethostbyname+:} false; then :
14110  break
14111fi
14112done
14113if ${ac_cv_search_gethostbyname+:} false; then :
14114
14115else
14116  ac_cv_search_gethostbyname=no
14117fi
14118rm conftest.$ac_ext
14119LIBS=$ac_func_search_save_LIBS
14120fi
14121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
14122$as_echo "$ac_cv_search_gethostbyname" >&6; }
14123ac_res=$ac_cv_search_gethostbyname
14124if test "$ac_res" != no; then :
14125  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14126
14127fi
14128
14129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
14130$as_echo_n "checking for library containing hstrerror... " >&6; }
14131if ${ac_cv_search_hstrerror+:} false; then :
14132  $as_echo_n "(cached) " >&6
14133else
14134  ac_func_search_save_LIBS=$LIBS
14135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14136/* end confdefs.h.  */
14137
14138/* Override any GCC internal prototype to avoid an error.
14139   Use char because int might match the return type of a GCC
14140   builtin and then its argument prototype would still apply.  */
14141#ifdef __cplusplus
14142extern "C"
14143#endif
14144char hstrerror ();
14145int
14146main ()
14147{
14148return hstrerror ();
14149  ;
14150  return 0;
14151}
14152_ACEOF
14153for ac_lib in '' resolv; do
14154  if test -z "$ac_lib"; then
14155    ac_res="none required"
14156  else
14157    ac_res=-l$ac_lib
14158    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14159  fi
14160  if ac_fn_c_try_link "$LINENO"; then :
14161  ac_cv_search_hstrerror=$ac_res
14162fi
14163rm -f core conftest.err conftest.$ac_objext \
14164    conftest$ac_exeext
14165  if ${ac_cv_search_hstrerror+:} false; then :
14166  break
14167fi
14168done
14169if ${ac_cv_search_hstrerror+:} false; then :
14170
14171else
14172  ac_cv_search_hstrerror=no
14173fi
14174rm conftest.$ac_ext
14175LIBS=$ac_func_search_save_LIBS
14176fi
14177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
14178$as_echo "$ac_cv_search_hstrerror" >&6; }
14179ac_res=$ac_cv_search_hstrerror
14180if test "$ac_res" != no; then :
14181  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14182
14183fi
14184
14185
14186save_LIBS=$LIBS
14187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14188$as_echo_n "checking for library containing dlopen... " >&6; }
14189if ${ac_cv_search_dlopen+:} false; then :
14190  $as_echo_n "(cached) " >&6
14191else
14192  ac_func_search_save_LIBS=$LIBS
14193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14194/* end confdefs.h.  */
14195
14196/* Override any GCC internal prototype to avoid an error.
14197   Use char because int might match the return type of a GCC
14198   builtin and then its argument prototype would still apply.  */
14199#ifdef __cplusplus
14200extern "C"
14201#endif
14202char dlopen ();
14203int
14204main ()
14205{
14206return dlopen ();
14207  ;
14208  return 0;
14209}
14210_ACEOF
14211for ac_lib in '' dl; do
14212  if test -z "$ac_lib"; then
14213    ac_res="none required"
14214  else
14215    ac_res=-l$ac_lib
14216    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14217  fi
14218  if ac_fn_c_try_link "$LINENO"; then :
14219  ac_cv_search_dlopen=$ac_res
14220fi
14221rm -f core conftest.err conftest.$ac_objext \
14222    conftest$ac_exeext
14223  if ${ac_cv_search_dlopen+:} false; then :
14224  break
14225fi
14226done
14227if ${ac_cv_search_dlopen+:} false; then :
14228
14229else
14230  ac_cv_search_dlopen=no
14231fi
14232rm conftest.$ac_ext
14233LIBS=$ac_func_search_save_LIBS
14234fi
14235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14236$as_echo "$ac_cv_search_dlopen" >&6; }
14237ac_res=$ac_cv_search_dlopen
14238if test "$ac_res" != no; then :
14239  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14240
14241  for ac_header in dlfcn.h
14242do :
14243  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
14244if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14245  cat >>confdefs.h <<_ACEOF
14246#define HAVE_DLFCN_H 1
14247_ACEOF
14248
14249    if test "$ac_cv_search_dlopen" != no; then
14250      test "$ac_cv_search_dlopen" = "none required" || DL_LIB="$ac_cv_search_dlopen"
14251    fi
14252
14253
14254$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
14255
14256    $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
14257
14258
14259fi
14260
14261done
14262
14263
14264fi
14265
14266LIBS=$save_LIBS
14267
14268
14269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for valgrind" >&5
14270$as_echo_n "checking for valgrind... " >&6; }
14271
14272# Check whether --with-valgrind was given.
14273if test "${with_valgrind+set}" = set; then :
14274  withval=$with_valgrind; WITH_VALGRIND=$withval
14275else
14276  WITH_VALGRIND=no
14277fi
14278
14279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_VALGRIND" >&5
14280$as_echo "$WITH_VALGRIND" >&6; }
14281if test "$WITH_VALGRIND" != "no"; then
14282 for ac_header in valgrind/valgrind.h
14283do :
14284  ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
14285if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then :
14286  cat >>confdefs.h <<_ACEOF
14287#define HAVE_VALGRIND_VALGRIND_H 1
14288_ACEOF
14289
14290fi
14291
14292done
14293
14294fi
14295
14296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
14297$as_echo_n "checking for OpenSSL... " >&6; }
14298
14299# Check whether --with-openssl was given.
14300if test "${with_openssl+set}" = set; then :
14301  withval=$with_openssl; WITH_OPENSSL=$withval
14302else
14303  WITH_OPENSSL=no
14304fi
14305
14306
14307if test "$WITH_OPENSSL" != "no"; then
14308    use_openssl=yes
14309    if test "$WITH_OPENSSL" != "yes"; then
14310	CPPFLAGS="$CPPFLAGS -I$WITH_OPENSSL/include"
14311	LDFLAGS="$LDFLAGS -L$WITH_OPENSSL/lib"
14312    fi
14313else
14314    use_openssl=no
14315fi
14316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_openssl" >&5
14317$as_echo "$use_openssl" >&6; }
14318
14319
14320# Check whether --with-openssl-includes was given.
14321if test "${with_openssl_includes+set}" = set; then :
14322  withval=$with_openssl_includes;  use_openssl=yes CPPFLAGS="$CPPFLAGS -I$withval"
14323
14324fi
14325
14326
14327
14328# Check whether --with-openssl-libs was given.
14329if test "${with_openssl_libs+set}" = set; then :
14330  withval=$with_openssl_libs;  use_openssl=yes LDFLAGS="$LDFLAGS -L$withval"
14331
14332fi
14333
14334
14335
14336# Check whether --with-kerberos5 was given.
14337if test "${with_kerberos5+set}" = set; then :
14338  withval=$with_kerberos5;  use_kerberos=yes
14339else
14340  use_kerberos=no
14341
14342fi
14343
14344
14345if test "x$use_openssl" = "xyes"; then
14346    if test "x$use_kerberos" != "xyes"; then
14347        CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
14348    fi
14349
14350    for ac_header in openssl/ssl.h
14351do :
14352  ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
14353if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
14354  cat >>confdefs.h <<_ACEOF
14355#define HAVE_OPENSSL_SSL_H 1
14356_ACEOF
14357
14358fi
14359
14360done
14361
14362    OLDLIBS="$LIBS"
14363    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIO_f_base64 in -lcrypto" >&5
14364$as_echo_n "checking for BIO_f_base64 in -lcrypto... " >&6; }
14365if ${ac_cv_lib_crypto_BIO_f_base64+:} false; then :
14366  $as_echo_n "(cached) " >&6
14367else
14368  ac_check_lib_save_LIBS=$LIBS
14369LIBS="-lcrypto  $LIBS"
14370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14371/* end confdefs.h.  */
14372
14373/* Override any GCC internal prototype to avoid an error.
14374   Use char because int might match the return type of a GCC
14375   builtin and then its argument prototype would still apply.  */
14376#ifdef __cplusplus
14377extern "C"
14378#endif
14379char BIO_f_base64 ();
14380int
14381main ()
14382{
14383return BIO_f_base64 ();
14384  ;
14385  return 0;
14386}
14387_ACEOF
14388if ac_fn_c_try_link "$LINENO"; then :
14389  ac_cv_lib_crypto_BIO_f_base64=yes
14390else
14391  ac_cv_lib_crypto_BIO_f_base64=no
14392fi
14393rm -f core conftest.err conftest.$ac_objext \
14394    conftest$ac_exeext conftest.$ac_ext
14395LIBS=$ac_check_lib_save_LIBS
14396fi
14397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BIO_f_base64" >&5
14398$as_echo "$ac_cv_lib_crypto_BIO_f_base64" >&6; }
14399if test "x$ac_cv_lib_crypto_BIO_f_base64" = xyes; then :
14400
14401      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
14402$as_echo_n "checking for SSL_new in -lssl... " >&6; }
14403if ${ac_cv_lib_ssl_SSL_new+:} false; then :
14404  $as_echo_n "(cached) " >&6
14405else
14406  ac_check_lib_save_LIBS=$LIBS
14407LIBS="-lssl  -lcrypto "$DL_LIB"  $LIBS"
14408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14409/* end confdefs.h.  */
14410
14411/* Override any GCC internal prototype to avoid an error.
14412   Use char because int might match the return type of a GCC
14413   builtin and then its argument prototype would still apply.  */
14414#ifdef __cplusplus
14415extern "C"
14416#endif
14417char SSL_new ();
14418int
14419main ()
14420{
14421return SSL_new ();
14422  ;
14423  return 0;
14424}
14425_ACEOF
14426if ac_fn_c_try_link "$LINENO"; then :
14427  ac_cv_lib_ssl_SSL_new=yes
14428else
14429  ac_cv_lib_ssl_SSL_new=no
14430fi
14431rm -f core conftest.err conftest.$ac_objext \
14432    conftest$ac_exeext conftest.$ac_ext
14433LIBS=$ac_check_lib_save_LIBS
14434fi
14435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
14436$as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
14437if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
14438   SSL_LIB="-lssl -lcrypto"
14439
14440$as_echo "#define HAVE_LIBSSL /**/" >>confdefs.h
14441
14442fi
14443
14444
14445fi
14446
14447    LIBS="$OLDLIBS"
14448
14449fi
14450
14451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl regular expressions support" >&5
14452$as_echo_n "checking for perl regular expressions support... " >&6; }
14453
14454# Check whether --with-pcre was given.
14455if test "${with_pcre+set}" = set; then :
14456  withval=$with_pcre; WITH_PCRE=$withval
14457else
14458  WITH_PCRE=yes
14459fi
14460
14461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_PCRE" >&5
14462$as_echo "$WITH_PCRE" >&6; }
14463
14464if test "$WITH_PCRE" != "no"; then
14465  # Extract the first word of "pcre-config", so it can be a program name with args.
14466set dummy pcre-config; ac_word=$2
14467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14468$as_echo_n "checking for $ac_word... " >&6; }
14469if ${ac_cv_path_PCRECONFIG+:} false; then :
14470  $as_echo_n "(cached) " >&6
14471else
14472  case $PCRECONFIG in
14473  [\\/]* | ?:[\\/]*)
14474  ac_cv_path_PCRECONFIG="$PCRECONFIG" # Let the user override the test with a path.
14475  ;;
14476  *)
14477  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14478for as_dir in $PATH
14479do
14480  IFS=$as_save_IFS
14481  test -z "$as_dir" && as_dir=.
14482    for ac_exec_ext in '' $ac_executable_extensions; do
14483  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14484    ac_cv_path_PCRECONFIG="$as_dir/$ac_word$ac_exec_ext"
14485    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14486    break 2
14487  fi
14488done
14489  done
14490IFS=$as_save_IFS
14491
14492  ;;
14493esac
14494fi
14495PCRECONFIG=$ac_cv_path_PCRECONFIG
14496if test -n "$PCRECONFIG"; then
14497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRECONFIG" >&5
14498$as_echo "$PCRECONFIG" >&6; }
14499else
14500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14501$as_echo "no" >&6; }
14502fi
14503
14504
14505
14506  if test x"$PCRECONFIG" != x; then
14507    PCRE_LIB=`$PCRECONFIG --libs`
14508    CPPFLAGS="$CPPFLAGS `$PCRECONFIG --cflags`"
14509
14510$as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h
14511
14512
14513$as_echo "#define HAVE_PCRE_H 1" >>confdefs.h
14514
14515  else
14516     as_fn_error $? "pcre-config not found, install the pcre-devel package or build with --without-pcre" "$LINENO" 5
14517  fi
14518fi
14519
14520
14521
14522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib support" >&5
14523$as_echo_n "checking for zlib support... " >&6; }
14524
14525# Check whether --with-zlib was given.
14526if test "${with_zlib+set}" = set; then :
14527  withval=$with_zlib; WITH_ZLIB=$withval
14528else
14529  WITH_ZLIB=yes
14530fi
14531
14532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_ZLIB" >&5
14533$as_echo "$WITH_ZLIB" >&6; }
14534
14535if test "$WITH_ZLIB" != "no"; then
14536  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
14537$as_echo_n "checking for deflate in -lz... " >&6; }
14538if ${ac_cv_lib_z_deflate+:} false; then :
14539  $as_echo_n "(cached) " >&6
14540else
14541  ac_check_lib_save_LIBS=$LIBS
14542LIBS="-lz  $LIBS"
14543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14544/* end confdefs.h.  */
14545
14546/* Override any GCC internal prototype to avoid an error.
14547   Use char because int might match the return type of a GCC
14548   builtin and then its argument prototype would still apply.  */
14549#ifdef __cplusplus
14550extern "C"
14551#endif
14552char deflate ();
14553int
14554main ()
14555{
14556return deflate ();
14557  ;
14558  return 0;
14559}
14560_ACEOF
14561if ac_fn_c_try_link "$LINENO"; then :
14562  ac_cv_lib_z_deflate=yes
14563else
14564  ac_cv_lib_z_deflate=no
14565fi
14566rm -f core conftest.err conftest.$ac_objext \
14567    conftest$ac_exeext conftest.$ac_ext
14568LIBS=$ac_check_lib_save_LIBS
14569fi
14570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
14571$as_echo "$ac_cv_lib_z_deflate" >&6; }
14572if test "x$ac_cv_lib_z_deflate" = xyes; then :
14573
14574    for ac_header in zlib.h
14575do :
14576  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
14577if test "x$ac_cv_header_zlib_h" = xyes; then :
14578  cat >>confdefs.h <<_ACEOF
14579#define HAVE_ZLIB_H 1
14580_ACEOF
14581
14582      Z_LIB=-lz
14583
14584$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
14585
14586      $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
14587
14588
14589fi
14590
14591done
14592
14593
14594fi
14595
14596  if test x$Z_LIB = x; then
14597     as_fn_error $? "zlib-headers and/or libs where not found, install them or build with --without-zlib" "$LINENO" 5
14598  fi
14599fi
14600
14601
14602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bzip2 support" >&5
14603$as_echo_n "checking for bzip2 support... " >&6; }
14604
14605# Check whether --with-bzip2 was given.
14606if test "${with_bzip2+set}" = set; then :
14607  withval=$with_bzip2; WITH_BZIP2=$withval
14608else
14609  WITH_BZIP2=yes
14610fi
14611
14612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_BZIP2" >&5
14613$as_echo "$WITH_BZIP2" >&6; }
14614
14615if test "$WITH_BZIP2" != "no"; then
14616  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompress in -lbz2" >&5
14617$as_echo_n "checking for BZ2_bzCompress in -lbz2... " >&6; }
14618if ${ac_cv_lib_bz2_BZ2_bzCompress+:} false; then :
14619  $as_echo_n "(cached) " >&6
14620else
14621  ac_check_lib_save_LIBS=$LIBS
14622LIBS="-lbz2  $LIBS"
14623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14624/* end confdefs.h.  */
14625
14626/* Override any GCC internal prototype to avoid an error.
14627   Use char because int might match the return type of a GCC
14628   builtin and then its argument prototype would still apply.  */
14629#ifdef __cplusplus
14630extern "C"
14631#endif
14632char BZ2_bzCompress ();
14633int
14634main ()
14635{
14636return BZ2_bzCompress ();
14637  ;
14638  return 0;
14639}
14640_ACEOF
14641if ac_fn_c_try_link "$LINENO"; then :
14642  ac_cv_lib_bz2_BZ2_bzCompress=yes
14643else
14644  ac_cv_lib_bz2_BZ2_bzCompress=no
14645fi
14646rm -f core conftest.err conftest.$ac_objext \
14647    conftest$ac_exeext conftest.$ac_ext
14648LIBS=$ac_check_lib_save_LIBS
14649fi
14650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompress" >&5
14651$as_echo "$ac_cv_lib_bz2_BZ2_bzCompress" >&6; }
14652if test "x$ac_cv_lib_bz2_BZ2_bzCompress" = xyes; then :
14653
14654    for ac_header in bzlib.h
14655do :
14656  ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
14657if test "x$ac_cv_header_bzlib_h" = xyes; then :
14658  cat >>confdefs.h <<_ACEOF
14659#define HAVE_BZLIB_H 1
14660_ACEOF
14661
14662      BZ_LIB=-lbz2
14663
14664$as_echo "#define HAVE_LIBBZ2 1" >>confdefs.h
14665
14666      $as_echo "#define HAVE_BZLIB_H 1" >>confdefs.h
14667
14668
14669fi
14670
14671done
14672
14673
14674fi
14675
14676  if test x$BZ_LIB = x; then
14677     as_fn_error $? "bzip2-headers and/or libs where not found, install them or build with --without-bzip2" "$LINENO" 5
14678  fi
14679fi
14680
14681
14682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAM" >&5
14683$as_echo_n "checking for FAM... " >&6; }
14684
14685# Check whether --with-fam was given.
14686if test "${with_fam+set}" = set; then :
14687  withval=$with_fam; WITH_FAM=$withval
14688else
14689  WITH_FAM=no
14690fi
14691
14692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_FAM" >&5
14693$as_echo "$WITH_FAM" >&6; }
14694
14695if test "$WITH_FAM" != "no"; then
14696  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAMOpen2 in -lfam" >&5
14697$as_echo_n "checking for FAMOpen2 in -lfam... " >&6; }
14698if ${ac_cv_lib_fam_FAMOpen2+:} false; then :
14699  $as_echo_n "(cached) " >&6
14700else
14701  ac_check_lib_save_LIBS=$LIBS
14702LIBS="-lfam  $LIBS"
14703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14704/* end confdefs.h.  */
14705
14706/* Override any GCC internal prototype to avoid an error.
14707   Use char because int might match the return type of a GCC
14708   builtin and then its argument prototype would still apply.  */
14709#ifdef __cplusplus
14710extern "C"
14711#endif
14712char FAMOpen2 ();
14713int
14714main ()
14715{
14716return FAMOpen2 ();
14717  ;
14718  return 0;
14719}
14720_ACEOF
14721if ac_fn_c_try_link "$LINENO"; then :
14722  ac_cv_lib_fam_FAMOpen2=yes
14723else
14724  ac_cv_lib_fam_FAMOpen2=no
14725fi
14726rm -f core conftest.err conftest.$ac_objext \
14727    conftest$ac_exeext conftest.$ac_ext
14728LIBS=$ac_check_lib_save_LIBS
14729fi
14730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fam_FAMOpen2" >&5
14731$as_echo "$ac_cv_lib_fam_FAMOpen2" >&6; }
14732if test "x$ac_cv_lib_fam_FAMOpen2" = xyes; then :
14733
14734    for ac_header in fam.h
14735do :
14736  ac_fn_c_check_header_mongrel "$LINENO" "fam.h" "ac_cv_header_fam_h" "$ac_includes_default"
14737if test "x$ac_cv_header_fam_h" = xyes; then :
14738  cat >>confdefs.h <<_ACEOF
14739#define HAVE_FAM_H 1
14740_ACEOF
14741
14742      FAM_LIBS=-lfam
14743
14744$as_echo "#define HAVE_LIBFAM 1" >>confdefs.h
14745
14746
14747$as_echo "#define HAVE_FAM_H 1" >>confdefs.h
14748
14749
14750fi
14751
14752done
14753
14754
14755fi
14756
14757  if test "x$FAM_LIBS" = x; then
14758
14759pkg_failed=no
14760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAM" >&5
14761$as_echo_n "checking for FAM... " >&6; }
14762
14763if test -n "$FAM_CFLAGS"; then
14764    pkg_cv_FAM_CFLAGS="$FAM_CFLAGS"
14765 elif test -n "$PKG_CONFIG"; then
14766    if test -n "$PKG_CONFIG" && \
14767    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gamin >= 0.1.0\""; } >&5
14768  ($PKG_CONFIG --exists --print-errors "gamin >= 0.1.0") 2>&5
14769  ac_status=$?
14770  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14771  test $ac_status = 0; }; then
14772  pkg_cv_FAM_CFLAGS=`$PKG_CONFIG --cflags "gamin >= 0.1.0" 2>/dev/null`
14773		      test "x$?" != "x0" && pkg_failed=yes
14774else
14775  pkg_failed=yes
14776fi
14777 else
14778    pkg_failed=untried
14779fi
14780if test -n "$FAM_LIBS"; then
14781    pkg_cv_FAM_LIBS="$FAM_LIBS"
14782 elif test -n "$PKG_CONFIG"; then
14783    if test -n "$PKG_CONFIG" && \
14784    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gamin >= 0.1.0\""; } >&5
14785  ($PKG_CONFIG --exists --print-errors "gamin >= 0.1.0") 2>&5
14786  ac_status=$?
14787  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14788  test $ac_status = 0; }; then
14789  pkg_cv_FAM_LIBS=`$PKG_CONFIG --libs "gamin >= 0.1.0" 2>/dev/null`
14790		      test "x$?" != "x0" && pkg_failed=yes
14791else
14792  pkg_failed=yes
14793fi
14794 else
14795    pkg_failed=untried
14796fi
14797
14798
14799
14800if test $pkg_failed = yes; then
14801   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14802$as_echo "no" >&6; }
14803
14804if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14805        _pkg_short_errors_supported=yes
14806else
14807        _pkg_short_errors_supported=no
14808fi
14809        if test $_pkg_short_errors_supported = yes; then
14810	        FAM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gamin >= 0.1.0" 2>&1`
14811        else
14812	        FAM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gamin >= 0.1.0" 2>&1`
14813        fi
14814	# Put the nasty error message in config.log where it belongs
14815	echo "$FAM_PKG_ERRORS" >&5
14816
14817	as_fn_error $? "Package requirements (gamin >= 0.1.0) were not met:
14818
14819$FAM_PKG_ERRORS
14820
14821Consider adjusting the PKG_CONFIG_PATH environment variable if you
14822installed software in a non-standard prefix.
14823
14824Alternatively, you may set the environment variables FAM_CFLAGS
14825and FAM_LIBS to avoid the need to call pkg-config.
14826See the pkg-config man page for more details." "$LINENO" 5
14827elif test $pkg_failed = untried; then
14828     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14829$as_echo "no" >&6; }
14830	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14831$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14832as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14833is in your PATH or set the PKG_CONFIG environment variable to the full
14834path to pkg-config.
14835
14836Alternatively, you may set the environment variables FAM_CFLAGS
14837and FAM_LIBS to avoid the need to call pkg-config.
14838See the pkg-config man page for more details.
14839
14840To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14841See \`config.log' for more details" "$LINENO" 5; }
14842else
14843	FAM_CFLAGS=$pkg_cv_FAM_CFLAGS
14844	FAM_LIBS=$pkg_cv_FAM_LIBS
14845        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14846$as_echo "yes" >&6; }
14847
14848
14849$as_echo "#define HAVE_LIBFAM 1" >>confdefs.h
14850
14851
14852$as_echo "#define HAVE_FAM_H 1" >>confdefs.h
14853
14854
14855fi
14856  fi
14857  OLD_LIBS=$LIBS
14858  LIBS=$FAM_LIBS
14859  for ac_func in FAMNoExists
14860do :
14861  ac_fn_c_check_func "$LINENO" "FAMNoExists" "ac_cv_func_FAMNoExists"
14862if test "x$ac_cv_func_FAMNoExists" = xyes; then :
14863  cat >>confdefs.h <<_ACEOF
14864#define HAVE_FAMNOEXISTS 1
14865_ACEOF
14866
14867fi
14868done
14869
14870  LIBS=$OLD_LIBS
14871
14872  if test x$FAM_LIBS = x; then
14873     as_fn_error $? "fam/gamin-headers and/or libs where not found, install them or build with --without-fam" "$LINENO" 5
14874  fi
14875fi
14876
14877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for properties in mod_webdav" >&5
14878$as_echo_n "checking for properties in mod_webdav... " >&6; }
14879
14880# Check whether --with-webdav-props was given.
14881if test "${with_webdav_props+set}" = set; then :
14882  withval=$with_webdav_props; WITH_WEBDAV_PROPS=$withval
14883else
14884  WITH_WEBDAV_PROPS=no
14885fi
14886
14887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_WEBDAV_PROPS" >&5
14888$as_echo "$WITH_WEBDAV_PROPS" >&6; }
14889
14890if test "$WITH_WEBDAV_PROPS" != "no"; then
14891
14892pkg_failed=no
14893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
14894$as_echo_n "checking for XML... " >&6; }
14895
14896if test -n "$XML_CFLAGS"; then
14897    pkg_cv_XML_CFLAGS="$XML_CFLAGS"
14898 elif test -n "$PKG_CONFIG"; then
14899    if test -n "$PKG_CONFIG" && \
14900    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
14901  ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
14902  ac_status=$?
14903  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14904  test $ac_status = 0; }; then
14905  pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
14906		      test "x$?" != "x0" && pkg_failed=yes
14907else
14908  pkg_failed=yes
14909fi
14910 else
14911    pkg_failed=untried
14912fi
14913if test -n "$XML_LIBS"; then
14914    pkg_cv_XML_LIBS="$XML_LIBS"
14915 elif test -n "$PKG_CONFIG"; then
14916    if test -n "$PKG_CONFIG" && \
14917    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
14918  ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
14919  ac_status=$?
14920  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14921  test $ac_status = 0; }; then
14922  pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
14923		      test "x$?" != "x0" && pkg_failed=yes
14924else
14925  pkg_failed=yes
14926fi
14927 else
14928    pkg_failed=untried
14929fi
14930
14931
14932
14933if test $pkg_failed = yes; then
14934   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14935$as_echo "no" >&6; }
14936
14937if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14938        _pkg_short_errors_supported=yes
14939else
14940        _pkg_short_errors_supported=no
14941fi
14942        if test $_pkg_short_errors_supported = yes; then
14943	        XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
14944        else
14945	        XML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
14946        fi
14947	# Put the nasty error message in config.log where it belongs
14948	echo "$XML_PKG_ERRORS" >&5
14949
14950	as_fn_error $? "Package requirements (libxml-2.0) were not met:
14951
14952$XML_PKG_ERRORS
14953
14954Consider adjusting the PKG_CONFIG_PATH environment variable if you
14955installed software in a non-standard prefix.
14956
14957Alternatively, you may set the environment variables XML_CFLAGS
14958and XML_LIBS to avoid the need to call pkg-config.
14959See the pkg-config man page for more details." "$LINENO" 5
14960elif test $pkg_failed = untried; then
14961     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14962$as_echo "no" >&6; }
14963	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14964$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14965as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14966is in your PATH or set the PKG_CONFIG environment variable to the full
14967path to pkg-config.
14968
14969Alternatively, you may set the environment variables XML_CFLAGS
14970and XML_LIBS to avoid the need to call pkg-config.
14971See the pkg-config man page for more details.
14972
14973To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14974See \`config.log' for more details" "$LINENO" 5; }
14975else
14976	XML_CFLAGS=$pkg_cv_XML_CFLAGS
14977	XML_LIBS=$pkg_cv_XML_LIBS
14978        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14979$as_echo "yes" >&6; }
14980
14981
14982$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
14983
14984
14985$as_echo "#define HAVE_LIBXML_H 1" >>confdefs.h
14986
14987
14988fi
14989
14990pkg_failed=no
14991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5
14992$as_echo_n "checking for SQLITE... " >&6; }
14993
14994if test -n "$SQLITE_CFLAGS"; then
14995    pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS"
14996 elif test -n "$PKG_CONFIG"; then
14997    if test -n "$PKG_CONFIG" && \
14998    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
14999  ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
15000  ac_status=$?
15001  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15002  test $ac_status = 0; }; then
15003  pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
15004		      test "x$?" != "x0" && pkg_failed=yes
15005else
15006  pkg_failed=yes
15007fi
15008 else
15009    pkg_failed=untried
15010fi
15011if test -n "$SQLITE_LIBS"; then
15012    pkg_cv_SQLITE_LIBS="$SQLITE_LIBS"
15013 elif test -n "$PKG_CONFIG"; then
15014    if test -n "$PKG_CONFIG" && \
15015    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
15016  ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
15017  ac_status=$?
15018  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15019  test $ac_status = 0; }; then
15020  pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
15021		      test "x$?" != "x0" && pkg_failed=yes
15022else
15023  pkg_failed=yes
15024fi
15025 else
15026    pkg_failed=untried
15027fi
15028
15029
15030
15031if test $pkg_failed = yes; then
15032   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15033$as_echo "no" >&6; }
15034
15035if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15036        _pkg_short_errors_supported=yes
15037else
15038        _pkg_short_errors_supported=no
15039fi
15040        if test $_pkg_short_errors_supported = yes; then
15041	        SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1`
15042        else
15043	        SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1`
15044        fi
15045	# Put the nasty error message in config.log where it belongs
15046	echo "$SQLITE_PKG_ERRORS" >&5
15047
15048	as_fn_error $? "Package requirements (sqlite3) were not met:
15049
15050$SQLITE_PKG_ERRORS
15051
15052Consider adjusting the PKG_CONFIG_PATH environment variable if you
15053installed software in a non-standard prefix.
15054
15055Alternatively, you may set the environment variables SQLITE_CFLAGS
15056and SQLITE_LIBS to avoid the need to call pkg-config.
15057See the pkg-config man page for more details." "$LINENO" 5
15058elif test $pkg_failed = untried; then
15059     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15060$as_echo "no" >&6; }
15061	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15062$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15063as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15064is in your PATH or set the PKG_CONFIG environment variable to the full
15065path to pkg-config.
15066
15067Alternatively, you may set the environment variables SQLITE_CFLAGS
15068and SQLITE_LIBS to avoid the need to call pkg-config.
15069See the pkg-config man page for more details.
15070
15071To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15072See \`config.log' for more details" "$LINENO" 5; }
15073else
15074	SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS
15075	SQLITE_LIBS=$pkg_cv_SQLITE_LIBS
15076        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15077$as_echo "yes" >&6; }
15078
15079
15080$as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
15081
15082
15083$as_echo "#define HAVE_SQLITE3_H 1" >>confdefs.h
15084
15085
15086fi
15087
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locks in mod_webdav" >&5
15089$as_echo_n "checking for locks in mod_webdav... " >&6; }
15090
15091# Check whether --with-webdav-locks was given.
15092if test "${with_webdav_locks+set}" = set; then :
15093  withval=$with_webdav_locks; WITH_WEBDAV_LOCKS=$withval
15094else
15095  WITH_WEBDAV_LOCKS=no
15096fi
15097
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_WEBDAV_LOCKS" >&5
15099$as_echo "$WITH_WEBDAV_LOCKS" >&6; }
15100
15101 if test "$WITH_WEBDAV_LOCKS" != "no"; then
15102   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_unparse in -luuid" >&5
15103$as_echo_n "checking for uuid_unparse in -luuid... " >&6; }
15104if ${ac_cv_lib_uuid_uuid_unparse+:} false; then :
15105  $as_echo_n "(cached) " >&6
15106else
15107  ac_check_lib_save_LIBS=$LIBS
15108LIBS="-luuid  $LIBS"
15109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15110/* end confdefs.h.  */
15111
15112/* Override any GCC internal prototype to avoid an error.
15113   Use char because int might match the return type of a GCC
15114   builtin and then its argument prototype would still apply.  */
15115#ifdef __cplusplus
15116extern "C"
15117#endif
15118char uuid_unparse ();
15119int
15120main ()
15121{
15122return uuid_unparse ();
15123  ;
15124  return 0;
15125}
15126_ACEOF
15127if ac_fn_c_try_link "$LINENO"; then :
15128  ac_cv_lib_uuid_uuid_unparse=yes
15129else
15130  ac_cv_lib_uuid_uuid_unparse=no
15131fi
15132rm -f core conftest.err conftest.$ac_objext \
15133    conftest$ac_exeext conftest.$ac_ext
15134LIBS=$ac_check_lib_save_LIBS
15135fi
15136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_unparse" >&5
15137$as_echo "$ac_cv_lib_uuid_uuid_unparse" >&6; }
15138if test "x$ac_cv_lib_uuid_uuid_unparse" = xyes; then :
15139
15140         for ac_header in uuid/uuid.h
15141do :
15142  ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
15143if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
15144  cat >>confdefs.h <<_ACEOF
15145#define HAVE_UUID_UUID_H 1
15146_ACEOF
15147
15148                 UUID_LIBS=-luuid
15149
15150$as_echo "#define HAVE_UUID 1" >>confdefs.h
15151
15152
15153$as_echo "#define HAVE_UUID_H 1" >>confdefs.h
15154
15155
15156fi
15157
15158done
15159
15160
15161fi
15162
15163
15164 fi
15165fi
15166
15167
15168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm" >&5
15169$as_echo_n "checking for gdbm... " >&6; }
15170
15171# Check whether --with-gdbm was given.
15172if test "${with_gdbm+set}" = set; then :
15173  withval=$with_gdbm; WITH_GDBM=$withval
15174else
15175  WITH_GDBM=no
15176fi
15177
15178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_GDBM" >&5
15179$as_echo "$WITH_GDBM" >&6; }
15180
15181if test "$WITH_GDBM" != "no"; then
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
15183$as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
15184if ${ac_cv_lib_gdbm_gdbm_open+:} false; then :
15185  $as_echo_n "(cached) " >&6
15186else
15187  ac_check_lib_save_LIBS=$LIBS
15188LIBS="-lgdbm  $LIBS"
15189cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15190/* end confdefs.h.  */
15191
15192/* Override any GCC internal prototype to avoid an error.
15193   Use char because int might match the return type of a GCC
15194   builtin and then its argument prototype would still apply.  */
15195#ifdef __cplusplus
15196extern "C"
15197#endif
15198char gdbm_open ();
15199int
15200main ()
15201{
15202return gdbm_open ();
15203  ;
15204  return 0;
15205}
15206_ACEOF
15207if ac_fn_c_try_link "$LINENO"; then :
15208  ac_cv_lib_gdbm_gdbm_open=yes
15209else
15210  ac_cv_lib_gdbm_gdbm_open=no
15211fi
15212rm -f core conftest.err conftest.$ac_objext \
15213    conftest$ac_exeext conftest.$ac_ext
15214LIBS=$ac_check_lib_save_LIBS
15215fi
15216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
15217$as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
15218if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then :
15219
15220         for ac_header in gdbm.h
15221do :
15222  ac_fn_c_check_header_mongrel "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default"
15223if test "x$ac_cv_header_gdbm_h" = xyes; then :
15224  cat >>confdefs.h <<_ACEOF
15225#define HAVE_GDBM_H 1
15226_ACEOF
15227
15228                 GDBM_LIB=-lgdbm
15229
15230$as_echo "#define HAVE_GDBM 1" >>confdefs.h
15231
15232		 $as_echo "#define HAVE_GDBM_H 1" >>confdefs.h
15233
15234
15235fi
15236
15237done
15238
15239
15240fi
15241
15242
15243fi
15244
15245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for memcache" >&5
15246$as_echo_n "checking for memcache... " >&6; }
15247
15248# Check whether --with-memcache was given.
15249if test "${with_memcache+set}" = set; then :
15250  withval=$with_memcache; WITH_MEMCACHE=$withval
15251else
15252  WITH_MEMCACHE=no
15253fi
15254
15255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_MEMCACHE" >&5
15256$as_echo "$WITH_MEMCACHE" >&6; }
15257if test "$WITH_MEMCACHE" != "no"; then
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mc_new in -lmemcache" >&5
15259$as_echo_n "checking for mc_new in -lmemcache... " >&6; }
15260if ${ac_cv_lib_memcache_mc_new+:} false; then :
15261  $as_echo_n "(cached) " >&6
15262else
15263  ac_check_lib_save_LIBS=$LIBS
15264LIBS="-lmemcache  $LIBS"
15265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15266/* end confdefs.h.  */
15267
15268/* Override any GCC internal prototype to avoid an error.
15269   Use char because int might match the return type of a GCC
15270   builtin and then its argument prototype would still apply.  */
15271#ifdef __cplusplus
15272extern "C"
15273#endif
15274char mc_new ();
15275int
15276main ()
15277{
15278return mc_new ();
15279  ;
15280  return 0;
15281}
15282_ACEOF
15283if ac_fn_c_try_link "$LINENO"; then :
15284  ac_cv_lib_memcache_mc_new=yes
15285else
15286  ac_cv_lib_memcache_mc_new=no
15287fi
15288rm -f core conftest.err conftest.$ac_objext \
15289    conftest$ac_exeext conftest.$ac_ext
15290LIBS=$ac_check_lib_save_LIBS
15291fi
15292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_memcache_mc_new" >&5
15293$as_echo "$ac_cv_lib_memcache_mc_new" >&6; }
15294if test "x$ac_cv_lib_memcache_mc_new" = xyes; then :
15295
15296         for ac_header in memcache.h
15297do :
15298  ac_fn_c_check_header_mongrel "$LINENO" "memcache.h" "ac_cv_header_memcache_h" "$ac_includes_default"
15299if test "x$ac_cv_header_memcache_h" = xyes; then :
15300  cat >>confdefs.h <<_ACEOF
15301#define HAVE_MEMCACHE_H 1
15302_ACEOF
15303
15304                 MEMCACHE_LIB=-lmemcache
15305
15306$as_echo "#define HAVE_MEMCACHE 1" >>confdefs.h
15307
15308
15309$as_echo "#define HAVE_MEMCACHE_H 1" >>confdefs.h
15310
15311
15312fi
15313
15314done
15315
15316
15317fi
15318
15319
15320fi
15321
15322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua-support is requested" >&5
15323$as_echo_n "checking if lua-support is requested... " >&6; }
15324
15325# Check whether --with-lua was given.
15326if test "${with_lua+set}" = set; then :
15327  withval=$with_lua; WITH_LUA=$withval
15328else
15329  WITH_LUA=no
15330fi
15331
15332
15333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_LUA" >&5
15334$as_echo "$WITH_LUA" >&6; }
15335if test "$WITH_LUA" != "no"; then
15336 if test "$WITH_LUA" = "yes"; then
15337  WITH_LUA=lua
15338 fi
15339
15340pkg_failed=no
15341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
15342$as_echo_n "checking for LUA... " >&6; }
15343
15344if test -n "$LUA_CFLAGS"; then
15345    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
15346 elif test -n "$PKG_CONFIG"; then
15347    if test -n "$PKG_CONFIG" && \
15348    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WITH_LUA >= 5.1\""; } >&5
15349  ($PKG_CONFIG --exists --print-errors "$WITH_LUA >= 5.1") 2>&5
15350  ac_status=$?
15351  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15352  test $ac_status = 0; }; then
15353  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "$WITH_LUA >= 5.1" 2>/dev/null`
15354		      test "x$?" != "x0" && pkg_failed=yes
15355else
15356  pkg_failed=yes
15357fi
15358 else
15359    pkg_failed=untried
15360fi
15361if test -n "$LUA_LIBS"; then
15362    pkg_cv_LUA_LIBS="$LUA_LIBS"
15363 elif test -n "$PKG_CONFIG"; then
15364    if test -n "$PKG_CONFIG" && \
15365    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WITH_LUA >= 5.1\""; } >&5
15366  ($PKG_CONFIG --exists --print-errors "$WITH_LUA >= 5.1") 2>&5
15367  ac_status=$?
15368  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15369  test $ac_status = 0; }; then
15370  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "$WITH_LUA >= 5.1" 2>/dev/null`
15371		      test "x$?" != "x0" && pkg_failed=yes
15372else
15373  pkg_failed=yes
15374fi
15375 else
15376    pkg_failed=untried
15377fi
15378
15379
15380
15381if test $pkg_failed = yes; then
15382   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15383$as_echo "no" >&6; }
15384
15385if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15386        _pkg_short_errors_supported=yes
15387else
15388        _pkg_short_errors_supported=no
15389fi
15390        if test $_pkg_short_errors_supported = yes; then
15391	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$WITH_LUA >= 5.1" 2>&1`
15392        else
15393	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$WITH_LUA >= 5.1" 2>&1`
15394        fi
15395	# Put the nasty error message in config.log where it belongs
15396	echo "$LUA_PKG_ERRORS" >&5
15397
15398
15399
15400pkg_failed=no
15401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
15402$as_echo_n "checking for LUA... " >&6; }
15403
15404if test -n "$LUA_CFLAGS"; then
15405    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
15406 elif test -n "$PKG_CONFIG"; then
15407    if test -n "$PKG_CONFIG" && \
15408    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
15409  ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
15410  ac_status=$?
15411  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15412  test $ac_status = 0; }; then
15413  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
15414		      test "x$?" != "x0" && pkg_failed=yes
15415else
15416  pkg_failed=yes
15417fi
15418 else
15419    pkg_failed=untried
15420fi
15421if test -n "$LUA_LIBS"; then
15422    pkg_cv_LUA_LIBS="$LUA_LIBS"
15423 elif test -n "$PKG_CONFIG"; then
15424    if test -n "$PKG_CONFIG" && \
15425    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
15426  ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
15427  ac_status=$?
15428  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15429  test $ac_status = 0; }; then
15430  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
15431		      test "x$?" != "x0" && pkg_failed=yes
15432else
15433  pkg_failed=yes
15434fi
15435 else
15436    pkg_failed=untried
15437fi
15438
15439
15440
15441if test $pkg_failed = yes; then
15442   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15443$as_echo "no" >&6; }
15444
15445if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15446        _pkg_short_errors_supported=yes
15447else
15448        _pkg_short_errors_supported=no
15449fi
15450        if test $_pkg_short_errors_supported = yes; then
15451	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1 >= 5.1" 2>&1`
15452        else
15453	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1 >= 5.1" 2>&1`
15454        fi
15455	# Put the nasty error message in config.log where it belongs
15456	echo "$LUA_PKG_ERRORS" >&5
15457
15458
15459
15460pkg_failed=no
15461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
15462$as_echo_n "checking for LUA... " >&6; }
15463
15464if test -n "$LUA_CFLAGS"; then
15465    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
15466 elif test -n "$PKG_CONFIG"; then
15467    if test -n "$PKG_CONFIG" && \
15468    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
15469  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
15470  ac_status=$?
15471  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15472  test $ac_status = 0; }; then
15473  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
15474		      test "x$?" != "x0" && pkg_failed=yes
15475else
15476  pkg_failed=yes
15477fi
15478 else
15479    pkg_failed=untried
15480fi
15481if test -n "$LUA_LIBS"; then
15482    pkg_cv_LUA_LIBS="$LUA_LIBS"
15483 elif test -n "$PKG_CONFIG"; then
15484    if test -n "$PKG_CONFIG" && \
15485    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
15486  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
15487  ac_status=$?
15488  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15489  test $ac_status = 0; }; then
15490  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
15491		      test "x$?" != "x0" && pkg_failed=yes
15492else
15493  pkg_failed=yes
15494fi
15495 else
15496    pkg_failed=untried
15497fi
15498
15499
15500
15501if test $pkg_failed = yes; then
15502   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15503$as_echo "no" >&6; }
15504
15505if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15506        _pkg_short_errors_supported=yes
15507else
15508        _pkg_short_errors_supported=no
15509fi
15510        if test $_pkg_short_errors_supported = yes; then
15511	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1 >= 5.1" 2>&1`
15512        else
15513	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1 >= 5.1" 2>&1`
15514        fi
15515	# Put the nasty error message in config.log where it belongs
15516	echo "$LUA_PKG_ERRORS" >&5
15517
15518	as_fn_error $? "Package requirements (lua-5.1 >= 5.1) were not met:
15519
15520$LUA_PKG_ERRORS
15521
15522Consider adjusting the PKG_CONFIG_PATH environment variable if you
15523installed software in a non-standard prefix.
15524
15525Alternatively, you may set the environment variables LUA_CFLAGS
15526and LUA_LIBS to avoid the need to call pkg-config.
15527See the pkg-config man page for more details." "$LINENO" 5
15528elif test $pkg_failed = untried; then
15529     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15530$as_echo "no" >&6; }
15531	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15533as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15534is in your PATH or set the PKG_CONFIG environment variable to the full
15535path to pkg-config.
15536
15537Alternatively, you may set the environment variables LUA_CFLAGS
15538and LUA_LIBS to avoid the need to call pkg-config.
15539See the pkg-config man page for more details.
15540
15541To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15542See \`config.log' for more details" "$LINENO" 5; }
15543else
15544	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
15545	LUA_LIBS=$pkg_cv_LUA_LIBS
15546        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15547$as_echo "yes" >&6; }
15548
15549
15550$as_echo "#define HAVE_LUA 1" >>confdefs.h
15551
15552
15553$as_echo "#define HAVE_LUA_H 1" >>confdefs.h
15554
15555
15556fi
15557
15558elif test $pkg_failed = untried; then
15559     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15560$as_echo "no" >&6; }
15561
15562
15563pkg_failed=no
15564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
15565$as_echo_n "checking for LUA... " >&6; }
15566
15567if test -n "$LUA_CFLAGS"; then
15568    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
15569 elif test -n "$PKG_CONFIG"; then
15570    if test -n "$PKG_CONFIG" && \
15571    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
15572  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
15573  ac_status=$?
15574  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15575  test $ac_status = 0; }; then
15576  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
15577		      test "x$?" != "x0" && pkg_failed=yes
15578else
15579  pkg_failed=yes
15580fi
15581 else
15582    pkg_failed=untried
15583fi
15584if test -n "$LUA_LIBS"; then
15585    pkg_cv_LUA_LIBS="$LUA_LIBS"
15586 elif test -n "$PKG_CONFIG"; then
15587    if test -n "$PKG_CONFIG" && \
15588    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
15589  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
15590  ac_status=$?
15591  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15592  test $ac_status = 0; }; then
15593  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
15594		      test "x$?" != "x0" && pkg_failed=yes
15595else
15596  pkg_failed=yes
15597fi
15598 else
15599    pkg_failed=untried
15600fi
15601
15602
15603
15604if test $pkg_failed = yes; then
15605   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15606$as_echo "no" >&6; }
15607
15608if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15609        _pkg_short_errors_supported=yes
15610else
15611        _pkg_short_errors_supported=no
15612fi
15613        if test $_pkg_short_errors_supported = yes; then
15614	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1 >= 5.1" 2>&1`
15615        else
15616	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1 >= 5.1" 2>&1`
15617        fi
15618	# Put the nasty error message in config.log where it belongs
15619	echo "$LUA_PKG_ERRORS" >&5
15620
15621	as_fn_error $? "Package requirements (lua-5.1 >= 5.1) were not met:
15622
15623$LUA_PKG_ERRORS
15624
15625Consider adjusting the PKG_CONFIG_PATH environment variable if you
15626installed software in a non-standard prefix.
15627
15628Alternatively, you may set the environment variables LUA_CFLAGS
15629and LUA_LIBS to avoid the need to call pkg-config.
15630See the pkg-config man page for more details." "$LINENO" 5
15631elif test $pkg_failed = untried; then
15632     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15633$as_echo "no" >&6; }
15634	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15635$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15636as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15637is in your PATH or set the PKG_CONFIG environment variable to the full
15638path to pkg-config.
15639
15640Alternatively, you may set the environment variables LUA_CFLAGS
15641and LUA_LIBS to avoid the need to call pkg-config.
15642See the pkg-config man page for more details.
15643
15644To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15645See \`config.log' for more details" "$LINENO" 5; }
15646else
15647	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
15648	LUA_LIBS=$pkg_cv_LUA_LIBS
15649        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15650$as_echo "yes" >&6; }
15651
15652
15653$as_echo "#define HAVE_LUA 1" >>confdefs.h
15654
15655
15656$as_echo "#define HAVE_LUA_H 1" >>confdefs.h
15657
15658
15659fi
15660
15661else
15662	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
15663	LUA_LIBS=$pkg_cv_LUA_LIBS
15664        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15665$as_echo "yes" >&6; }
15666
15667
15668$as_echo "#define HAVE_LUA 1" >>confdefs.h
15669
15670
15671$as_echo "#define HAVE_LUA_H 1" >>confdefs.h
15672
15673
15674fi
15675
15676elif test $pkg_failed = untried; then
15677     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15678$as_echo "no" >&6; }
15679
15680
15681pkg_failed=no
15682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
15683$as_echo_n "checking for LUA... " >&6; }
15684
15685if test -n "$LUA_CFLAGS"; then
15686    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
15687 elif test -n "$PKG_CONFIG"; then
15688    if test -n "$PKG_CONFIG" && \
15689    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
15690  ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
15691  ac_status=$?
15692  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15693  test $ac_status = 0; }; then
15694  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
15695		      test "x$?" != "x0" && pkg_failed=yes
15696else
15697  pkg_failed=yes
15698fi
15699 else
15700    pkg_failed=untried
15701fi
15702if test -n "$LUA_LIBS"; then
15703    pkg_cv_LUA_LIBS="$LUA_LIBS"
15704 elif test -n "$PKG_CONFIG"; then
15705    if test -n "$PKG_CONFIG" && \
15706    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
15707  ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
15708  ac_status=$?
15709  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15710  test $ac_status = 0; }; then
15711  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
15712		      test "x$?" != "x0" && pkg_failed=yes
15713else
15714  pkg_failed=yes
15715fi
15716 else
15717    pkg_failed=untried
15718fi
15719
15720
15721
15722if test $pkg_failed = yes; then
15723   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15724$as_echo "no" >&6; }
15725
15726if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15727        _pkg_short_errors_supported=yes
15728else
15729        _pkg_short_errors_supported=no
15730fi
15731        if test $_pkg_short_errors_supported = yes; then
15732	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1 >= 5.1" 2>&1`
15733        else
15734	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1 >= 5.1" 2>&1`
15735        fi
15736	# Put the nasty error message in config.log where it belongs
15737	echo "$LUA_PKG_ERRORS" >&5
15738
15739
15740
15741pkg_failed=no
15742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
15743$as_echo_n "checking for LUA... " >&6; }
15744
15745if test -n "$LUA_CFLAGS"; then
15746    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
15747 elif test -n "$PKG_CONFIG"; then
15748    if test -n "$PKG_CONFIG" && \
15749    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
15750  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
15751  ac_status=$?
15752  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15753  test $ac_status = 0; }; then
15754  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
15755		      test "x$?" != "x0" && pkg_failed=yes
15756else
15757  pkg_failed=yes
15758fi
15759 else
15760    pkg_failed=untried
15761fi
15762if test -n "$LUA_LIBS"; then
15763    pkg_cv_LUA_LIBS="$LUA_LIBS"
15764 elif test -n "$PKG_CONFIG"; then
15765    if test -n "$PKG_CONFIG" && \
15766    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
15767  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
15768  ac_status=$?
15769  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15770  test $ac_status = 0; }; then
15771  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
15772		      test "x$?" != "x0" && pkg_failed=yes
15773else
15774  pkg_failed=yes
15775fi
15776 else
15777    pkg_failed=untried
15778fi
15779
15780
15781
15782if test $pkg_failed = yes; then
15783   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15784$as_echo "no" >&6; }
15785
15786if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15787        _pkg_short_errors_supported=yes
15788else
15789        _pkg_short_errors_supported=no
15790fi
15791        if test $_pkg_short_errors_supported = yes; then
15792	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1 >= 5.1" 2>&1`
15793        else
15794	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1 >= 5.1" 2>&1`
15795        fi
15796	# Put the nasty error message in config.log where it belongs
15797	echo "$LUA_PKG_ERRORS" >&5
15798
15799	as_fn_error $? "Package requirements (lua-5.1 >= 5.1) were not met:
15800
15801$LUA_PKG_ERRORS
15802
15803Consider adjusting the PKG_CONFIG_PATH environment variable if you
15804installed software in a non-standard prefix.
15805
15806Alternatively, you may set the environment variables LUA_CFLAGS
15807and LUA_LIBS to avoid the need to call pkg-config.
15808See the pkg-config man page for more details." "$LINENO" 5
15809elif test $pkg_failed = untried; then
15810     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15811$as_echo "no" >&6; }
15812	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15813$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15814as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15815is in your PATH or set the PKG_CONFIG environment variable to the full
15816path to pkg-config.
15817
15818Alternatively, you may set the environment variables LUA_CFLAGS
15819and LUA_LIBS to avoid the need to call pkg-config.
15820See the pkg-config man page for more details.
15821
15822To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15823See \`config.log' for more details" "$LINENO" 5; }
15824else
15825	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
15826	LUA_LIBS=$pkg_cv_LUA_LIBS
15827        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15828$as_echo "yes" >&6; }
15829
15830
15831$as_echo "#define HAVE_LUA 1" >>confdefs.h
15832
15833
15834$as_echo "#define HAVE_LUA_H 1" >>confdefs.h
15835
15836
15837fi
15838
15839elif test $pkg_failed = untried; then
15840     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15841$as_echo "no" >&6; }
15842
15843
15844pkg_failed=no
15845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
15846$as_echo_n "checking for LUA... " >&6; }
15847
15848if test -n "$LUA_CFLAGS"; then
15849    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
15850 elif test -n "$PKG_CONFIG"; then
15851    if test -n "$PKG_CONFIG" && \
15852    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
15853  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
15854  ac_status=$?
15855  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15856  test $ac_status = 0; }; then
15857  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
15858		      test "x$?" != "x0" && pkg_failed=yes
15859else
15860  pkg_failed=yes
15861fi
15862 else
15863    pkg_failed=untried
15864fi
15865if test -n "$LUA_LIBS"; then
15866    pkg_cv_LUA_LIBS="$LUA_LIBS"
15867 elif test -n "$PKG_CONFIG"; then
15868    if test -n "$PKG_CONFIG" && \
15869    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
15870  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
15871  ac_status=$?
15872  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15873  test $ac_status = 0; }; then
15874  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
15875		      test "x$?" != "x0" && pkg_failed=yes
15876else
15877  pkg_failed=yes
15878fi
15879 else
15880    pkg_failed=untried
15881fi
15882
15883
15884
15885if test $pkg_failed = yes; then
15886   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15887$as_echo "no" >&6; }
15888
15889if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15890        _pkg_short_errors_supported=yes
15891else
15892        _pkg_short_errors_supported=no
15893fi
15894        if test $_pkg_short_errors_supported = yes; then
15895	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1 >= 5.1" 2>&1`
15896        else
15897	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1 >= 5.1" 2>&1`
15898        fi
15899	# Put the nasty error message in config.log where it belongs
15900	echo "$LUA_PKG_ERRORS" >&5
15901
15902	as_fn_error $? "Package requirements (lua-5.1 >= 5.1) were not met:
15903
15904$LUA_PKG_ERRORS
15905
15906Consider adjusting the PKG_CONFIG_PATH environment variable if you
15907installed software in a non-standard prefix.
15908
15909Alternatively, you may set the environment variables LUA_CFLAGS
15910and LUA_LIBS to avoid the need to call pkg-config.
15911See the pkg-config man page for more details." "$LINENO" 5
15912elif test $pkg_failed = untried; then
15913     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15914$as_echo "no" >&6; }
15915	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15916$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15917as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15918is in your PATH or set the PKG_CONFIG environment variable to the full
15919path to pkg-config.
15920
15921Alternatively, you may set the environment variables LUA_CFLAGS
15922and LUA_LIBS to avoid the need to call pkg-config.
15923See the pkg-config man page for more details.
15924
15925To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15926See \`config.log' for more details" "$LINENO" 5; }
15927else
15928	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
15929	LUA_LIBS=$pkg_cv_LUA_LIBS
15930        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15931$as_echo "yes" >&6; }
15932
15933
15934$as_echo "#define HAVE_LUA 1" >>confdefs.h
15935
15936
15937$as_echo "#define HAVE_LUA_H 1" >>confdefs.h
15938
15939
15940fi
15941
15942else
15943	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
15944	LUA_LIBS=$pkg_cv_LUA_LIBS
15945        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15946$as_echo "yes" >&6; }
15947
15948
15949$as_echo "#define HAVE_LUA 1" >>confdefs.h
15950
15951
15952$as_echo "#define HAVE_LUA_H 1" >>confdefs.h
15953
15954
15955fi
15956
15957else
15958	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
15959	LUA_LIBS=$pkg_cv_LUA_LIBS
15960        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15961$as_echo "yes" >&6; }
15962
15963
15964$as_echo "#define HAVE_LUA 1" >>confdefs.h
15965
15966
15967$as_echo "#define HAVE_LUA_H 1" >>confdefs.h
15968
15969
15970fi
15971
15972
15973
15974fi
15975
15976save_LIBS=$LIBS
15977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
15978$as_echo_n "checking for library containing crypt... " >&6; }
15979if ${ac_cv_search_crypt+:} false; then :
15980  $as_echo_n "(cached) " >&6
15981else
15982  ac_func_search_save_LIBS=$LIBS
15983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15984/* end confdefs.h.  */
15985
15986/* Override any GCC internal prototype to avoid an error.
15987   Use char because int might match the return type of a GCC
15988   builtin and then its argument prototype would still apply.  */
15989#ifdef __cplusplus
15990extern "C"
15991#endif
15992char crypt ();
15993int
15994main ()
15995{
15996return crypt ();
15997  ;
15998  return 0;
15999}
16000_ACEOF
16001for ac_lib in '' crypt; do
16002  if test -z "$ac_lib"; then
16003    ac_res="none required"
16004  else
16005    ac_res=-l$ac_lib
16006    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16007  fi
16008  if ac_fn_c_try_link "$LINENO"; then :
16009  ac_cv_search_crypt=$ac_res
16010fi
16011rm -f core conftest.err conftest.$ac_objext \
16012    conftest$ac_exeext
16013  if ${ac_cv_search_crypt+:} false; then :
16014  break
16015fi
16016done
16017if ${ac_cv_search_crypt+:} false; then :
16018
16019else
16020  ac_cv_search_crypt=no
16021fi
16022rm conftest.$ac_ext
16023LIBS=$ac_func_search_save_LIBS
16024fi
16025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
16026$as_echo "$ac_cv_search_crypt" >&6; }
16027ac_res=$ac_cv_search_crypt
16028if test "$ac_res" != no; then :
16029  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16030
16031  for ac_header in crypt.h
16032do :
16033  ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
16034if test "x$ac_cv_header_crypt_h" = xyes; then :
16035  cat >>confdefs.h <<_ACEOF
16036#define HAVE_CRYPT_H 1
16037_ACEOF
16038
16039    $as_echo "#define HAVE_CRYPT_H 1" >>confdefs.h
16040
16041
16042fi
16043
16044done
16045
16046
16047
16048$as_echo "#define HAVE_LIBCRYPT 1" >>confdefs.h
16049
16050  if test "$ac_cv_search_crypt" != no; then
16051    test "$ac_cv_search_crypt" = "none required" || CRYPT_LIB="$ac_cv_search_crypt"
16052  fi
16053
16054fi
16055
16056LIBS=$save_LIBS
16057
16058
16059save_LIBS=$LIBS
16060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfilev" >&5
16061$as_echo_n "checking for library containing sendfilev... " >&6; }
16062if ${ac_cv_search_sendfilev+:} false; then :
16063  $as_echo_n "(cached) " >&6
16064else
16065  ac_func_search_save_LIBS=$LIBS
16066cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16067/* end confdefs.h.  */
16068
16069/* Override any GCC internal prototype to avoid an error.
16070   Use char because int might match the return type of a GCC
16071   builtin and then its argument prototype would still apply.  */
16072#ifdef __cplusplus
16073extern "C"
16074#endif
16075char sendfilev ();
16076int
16077main ()
16078{
16079return sendfilev ();
16080  ;
16081  return 0;
16082}
16083_ACEOF
16084for ac_lib in '' sendfile; do
16085  if test -z "$ac_lib"; then
16086    ac_res="none required"
16087  else
16088    ac_res=-l$ac_lib
16089    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16090  fi
16091  if ac_fn_c_try_link "$LINENO"; then :
16092  ac_cv_search_sendfilev=$ac_res
16093fi
16094rm -f core conftest.err conftest.$ac_objext \
16095    conftest$ac_exeext
16096  if ${ac_cv_search_sendfilev+:} false; then :
16097  break
16098fi
16099done
16100if ${ac_cv_search_sendfilev+:} false; then :
16101
16102else
16103  ac_cv_search_sendfilev=no
16104fi
16105rm conftest.$ac_ext
16106LIBS=$ac_func_search_save_LIBS
16107fi
16108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfilev" >&5
16109$as_echo "$ac_cv_search_sendfilev" >&6; }
16110ac_res=$ac_cv_search_sendfilev
16111if test "$ac_res" != no; then :
16112  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16113
16114  if test "$ac_cv_search_sendfilev" != no; then
16115    test "$ac_cv_search_sendfilev" = "none required" || SENDFILE_LIB="$ac_cv_search_sendfilev"
16116
16117$as_echo "#define HAVE_SENDFILEV 1" >>confdefs.h
16118
16119  fi
16120
16121fi
16122
16123LIBS=$save_LIBS
16124
16125
16126case $host_os in
16127	*mingw* ) LIBS="$LIBS -lwsock32";;
16128        * ) ;;
16129esac
16130
16131for ac_func in dup2 getcwd inet_ntoa inet_ntop memset mmap munmap strchr \
16132		  strdup strerror strstr strtol sendfile  getopt socket lstat \
16133		  gethostbyname poll epoll_ctl getrlimit chroot \
16134		  getuid select signal pathconf madvise posix_fadvise posix_madvise \
16135		  writev sigaction sendfile64 send_file kqueue port_create localtime_r gmtime_r
16136do :
16137  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16138ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16139if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16140  cat >>confdefs.h <<_ACEOF
16141#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16142_ACEOF
16143
16144fi
16145done
16146
16147
16148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Large File System support" >&5
16149$as_echo_n "checking for Large File System support... " >&6; }
16150# Check whether --enable-lfs was given.
16151if test "${enable_lfs+set}" = set; then :
16152  enableval=$enable_lfs; case "${enableval}" in
16153   yes) CPPFLAGS="${CPPFLAGS} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES" ;;
16154    no) ;;
16155     *) as_fn_error $? "bad value ${enableval} for --enable-lfs" "$LINENO" 5 ;;
16156  esac
16157else
16158  CPPFLAGS="${CPPFLAGS} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES"
16159	 enable_lfs=yes
16160fi
16161
16162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
16163$as_echo "$enableval" >&6; }
16164
16165# The cast to long int works around a bug in the HP C Compiler
16166# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16167# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16168# This bug is HP SR number 8606223364.
16169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16170$as_echo_n "checking size of long... " >&6; }
16171if ${ac_cv_sizeof_long+:} false; then :
16172  $as_echo_n "(cached) " >&6
16173else
16174  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
16175
16176else
16177  if test "$ac_cv_type_long" = yes; then
16178     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16179$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16180as_fn_error 77 "cannot compute sizeof (long)
16181See \`config.log' for more details" "$LINENO" 5; }
16182   else
16183     ac_cv_sizeof_long=0
16184   fi
16185fi
16186
16187fi
16188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16189$as_echo "$ac_cv_sizeof_long" >&6; }
16190
16191
16192
16193cat >>confdefs.h <<_ACEOF
16194#define SIZEOF_LONG $ac_cv_sizeof_long
16195_ACEOF
16196
16197
16198# The cast to long int works around a bug in the HP C Compiler
16199# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16200# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16201# This bug is HP SR number 8606223364.
16202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
16203$as_echo_n "checking size of off_t... " >&6; }
16204if ${ac_cv_sizeof_off_t+:} false; then :
16205  $as_echo_n "(cached) " >&6
16206else
16207  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
16208
16209else
16210  if test "$ac_cv_type_off_t" = yes; then
16211     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16212$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16213as_fn_error 77 "cannot compute sizeof (off_t)
16214See \`config.log' for more details" "$LINENO" 5; }
16215   else
16216     ac_cv_sizeof_off_t=0
16217   fi
16218fi
16219
16220fi
16221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
16222$as_echo "$ac_cv_sizeof_off_t" >&6; }
16223
16224
16225
16226cat >>confdefs.h <<_ACEOF
16227#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
16228_ACEOF
16229
16230
16231
16232if test "x$ac_cv_func_sendfile" = xyes; then
16233	        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sendfile works" >&5
16234$as_echo_n "checking if sendfile works... " >&6; }
16235	if test "x$cross_compiling" = xno; then
16236	if test "$cross_compiling" = yes; then :
16237  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16238$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16239as_fn_error $? "cannot run test program while cross compiling
16240See \`config.log' for more details" "$LINENO" 5; }
16241else
16242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16243/* end confdefs.h.  */
16244
16245		    #ifdef HAVE_SYS_SENDFILE_H
16246		    #include <sys/sendfile.h>
16247		    #endif /* HAVE_SYS_SENDFILE_H */
16248		    #include <errno.h>
16249		    int main() {
16250		      int o = 0;
16251		      if (-1 == sendfile(-1, 0, &o, 0) && errno == ENOSYS) return -1;
16252		      return 0;
16253		    }
16254_ACEOF
16255if ac_fn_c_try_run "$LINENO"; then :
16256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16257$as_echo "yes" >&6; }
16258else
16259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16260$as_echo "no" >&6; }
16261
16262$as_echo "#define HAVE_SENDFILE_BROKEN 1" >>confdefs.h
16263
16264fi
16265rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16266  conftest.$ac_objext conftest.beam conftest.$ac_ext
16267fi
16268
16269	else
16270	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16271$as_echo "no" >&6; }
16272
16273$as_echo "#define HAVE_SENDFILE_BROKEN 1" >>confdefs.h
16274
16275	fi
16276fi
16277
16278
16279# Check whether --enable-ipv6 was given.
16280if test "${enable_ipv6+set}" = set; then :
16281  enableval=$enable_ipv6; case "${enableval}" in
16282   yes) ipv6=true ;;
16283    no) ipv6=false ;;
16284     *) as_fn_error $? "bad value ${enableval} for --enable-ipv6" "$LINENO" 5 ;;
16285  esac
16286else
16287  ipv6=true
16288fi
16289
16290
16291if test x$ipv6 = xtrue; then
16292  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 support" >&5
16293$as_echo_n "checking for IPv6 support... " >&6; }
16294if ${ac_cv_ipv6_support+:} false; then :
16295  $as_echo_n "(cached) " >&6
16296else
16297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16298/* end confdefs.h.  */
16299 #include <sys/types.h>
16300#include <sys/socket.h>
16301#include <netinet/in.h>
16302int
16303main ()
16304{
16305struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
16306  ;
16307  return 0;
16308}
16309_ACEOF
16310if ac_fn_c_try_link "$LINENO"; then :
16311  ac_cv_ipv6_support=yes
16312else
16313  ac_cv_ipv6_support=no
16314fi
16315rm -f core conftest.err conftest.$ac_objext \
16316    conftest$ac_exeext conftest.$ac_ext
16317fi
16318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ipv6_support" >&5
16319$as_echo "$ac_cv_ipv6_support" >&6; }
16320
16321  if test "$ac_cv_ipv6_support" = yes; then
16322
16323$as_echo "#define HAVE_IPV6 1" >>confdefs.h
16324
16325  fi
16326fi
16327
16328# disable mmap by default; if a mmapped file gets truncated, the process gets a SIGBUS signal
16329# on reading the truncated area which we can't handle (yet).
16330# lighttpd may always use mmap with files it owns (created tmp files)
16331# Check whether --enable-mmap was given.
16332if test "${enable_mmap+set}" = set; then :
16333  enableval=$enable_mmap; case "${enableval}" in
16334   yes) mmap=true ;;
16335    no) mmap=false ;;
16336     *) as_fn_error $? "bad value ${enableval} for --enable-mmap" "$LINENO" 5 ;;
16337  esac
16338else
16339  mmap=false
16340fi
16341
16342
16343if test x$mmap = xtrue; then
16344
16345$as_echo "#define ENABLE_MMAP 1" >>confdefs.h
16346
16347fi
16348
16349
16350 if test "x$cross_compiling" = xyes; then
16351  CROSS_COMPILING_TRUE=
16352  CROSS_COMPILING_FALSE='#'
16353else
16354  CROSS_COMPILING_TRUE='#'
16355  CROSS_COMPILING_FALSE=
16356fi
16357
16358
16359fastcgi_found=no
16360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FCGI_Accept in -lfcgi" >&5
16361$as_echo_n "checking for FCGI_Accept in -lfcgi... " >&6; }
16362if ${ac_cv_lib_fcgi_FCGI_Accept+:} false; then :
16363  $as_echo_n "(cached) " >&6
16364else
16365  ac_check_lib_save_LIBS=$LIBS
16366LIBS="-lfcgi  $LIBS"
16367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16368/* end confdefs.h.  */
16369
16370/* Override any GCC internal prototype to avoid an error.
16371   Use char because int might match the return type of a GCC
16372   builtin and then its argument prototype would still apply.  */
16373#ifdef __cplusplus
16374extern "C"
16375#endif
16376char FCGI_Accept ();
16377int
16378main ()
16379{
16380return FCGI_Accept ();
16381  ;
16382  return 0;
16383}
16384_ACEOF
16385if ac_fn_c_try_link "$LINENO"; then :
16386  ac_cv_lib_fcgi_FCGI_Accept=yes
16387else
16388  ac_cv_lib_fcgi_FCGI_Accept=no
16389fi
16390rm -f core conftest.err conftest.$ac_objext \
16391    conftest$ac_exeext conftest.$ac_ext
16392LIBS=$ac_check_lib_save_LIBS
16393fi
16394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcgi_FCGI_Accept" >&5
16395$as_echo "$ac_cv_lib_fcgi_FCGI_Accept" >&6; }
16396if test "x$ac_cv_lib_fcgi_FCGI_Accept" = xyes; then :
16397
16398 for ac_header in fastcgi.h fastcgi/fastcgi.h
16399do :
16400  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16401ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16402if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16403  cat >>confdefs.h <<_ACEOF
16404#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16405_ACEOF
16406
16407   fastcgi_found=yes
16408
16409fi
16410
16411done
16412
16413
16414fi
16415
16416
16417 if test "x$fastcgi_found" = xyes; then
16418  CHECK_WITH_FASTCGI_TRUE=
16419  CHECK_WITH_FASTCGI_FALSE='#'
16420else
16421  CHECK_WITH_FASTCGI_TRUE='#'
16422  CHECK_WITH_FASTCGI_FALSE=
16423fi
16424
16425
16426
16427if test "${GCC}" = "yes"; then
16428    CFLAGS="${CFLAGS} -Wall -W -Wshadow -pedantic -std=gnu99"
16429fi
16430
16431# Check whether --enable-extra-warnings was given.
16432if test "${enable_extra_warnings+set}" = set; then :
16433  enableval=$enable_extra_warnings; case "${enableval}" in
16434   yes) extrawarnings=true ;;
16435    no) extrawarnings=false ;;
16436     *) as_fn_error $? "bad value ${enableval} for --enable-extra-warnings" "$LINENO" 5 ;;
16437  esac
16438else
16439  extrawarnings=false
16440fi
16441
16442
16443if test x$extrawarnings = xtrue; then
16444    CFLAGS="${CFLAGS} -g -O2 -g2 -Wall -Wmissing-declarations -Wdeclaration-after-statement -Wno-pointer-sign -Wcast-align -Winline -Wsign-compare -Wnested-externs -Wpointer-arith -Wl,--as-needed -Wformat-security"
16445fi
16446
16447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multi-threading mode" >&5
16448$as_echo_n "checking for multi-threading mode... " >&6; }
16449# Check whether --enable-multithreading was given.
16450if test "${enable_multithreading+set}" = set; then :
16451  enableval=$enable_multithreading; case "${enableval}" in
16452   yes) multithreading=true ;;
16453    no) multithreading=false ;;
16454     *) as_fn_error $? "bad value ${enableval} for --enable-multithreading" "$LINENO" 5 ;;
16455  esac
16456else
16457  multithreading=false
16458fi
16459
16460
16461if test x$multithreading = xtrue; then
16462    CFLAGS="${CFLAGS} -DMULTI_THREADED"
16463    LDFLAGS="${LDFLAGS} -lpthread -lnuma"
16464    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16465$as_echo "yes" >&6; }
16466else
16467    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16468$as_echo "no" >&6; }
16469fi
16470
16471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mtcp support (multhreading mode enabled)" >&5
16472$as_echo_n "checking for mtcp support (multhreading mode enabled)... " >&6; }
16473
16474# Check whether --with-libmtcp was given.
16475if test "${with_libmtcp+set}" = set; then :
16476  withval=$with_libmtcp; WITH_LIBMTCP=$withval
16477else
16478  WITH_LIBMTCP=no
16479fi
16480
16481
16482LIBMTCP_CFLAGS=""
16483LIBMTCP_LIBS=""
16484
16485if test "$WITH_LIBMTCP" != "no"; then
16486	LIBMTCP_CFLAGS="-I$WITH_LIBMTCP/lib/ -I$WITH_LIBMTCP/src/include/ -DMULTI_THREADED"
16487	LIBMTCP_LIBS="$WITH_LIBMTCP/lib/libmtcp.a -lpthread -lnuma -lrt"
16488	CFLAGS="${CFLAGS} ${LIBMTCP_CFLAGS}"
16489
16490$as_echo "#define HAVE_LIBMTCP 1" >>confdefs.h
16491
16492	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16493$as_echo "yes" >&6; }
16494else
16495	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16496$as_echo "no" >&6; }
16497fi
16498
16499
16500
16501
16502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for psio support" >&5
16503$as_echo_n "checking for psio support... " >&6; }
16504
16505# Check whether --with-libpsio was given.
16506if test "${with_libpsio+set}" = set; then :
16507  withval=$with_libpsio; WITH_LIBPSIO=$withval
16508else
16509  WITH_LIBPSIO=no
16510fi
16511
16512
16513LIBPSIO_CFLAGS=""
16514LIBPSIO_LIBS=""
16515
16516if test "$WITH_LIBPSIO" != "no"; then
16517	LIBPSIO_CFLAGS="-I$WITH_LIBPSIO/include/"
16518	LIBPSIO_LIBS="$WITH_LIBPSIO/lib/libps.a"
16519	CFLAGS="${CFLAGS} ${LIBPSIO_CFLAGS}"
16520
16521$as_echo "#define HAVE_LIBPSIO 1" >>confdefs.h
16522
16523	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16524$as_echo "yes" >&6; }
16525else
16526	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16527$as_echo "no" >&6; }
16528fi
16529
16530
16531
16532
16533
16534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dpdk support" >&5
16535$as_echo_n "checking for dpdk support... " >&6; }
16536
16537# Check whether --with-libdpdk was given.
16538if test "${with_libdpdk+set}" = set; then :
16539  withval=$with_libdpdk; WITH_LIBDPDK=$withval
16540else
16541  WITH_LIBDPDK=no
16542fi
16543
16544
16545LIBDPDK_CFLAGS=""
16546LIBDPDK_LIBS=""
16547
16548if test "$WITH_LIBDPDK" != "no"; then
16549	DPDK_MACHINE_FLAGS=`cat $WITH_LIBDPDK/include/cflags.txt`
16550	LIBDPDK_CFLAGS="$DPDK_MACHINE_FLAGS -I$WITH_LIBDPDK/include/"
16551	LIBDPDK_LDFLAGS=`cat $WITH_LIBDPDK/lib/ldflags.txt`
16552	LIBDPDK_LIBS="-L$WITH_LIBDPDK/lib/ -m64 -g -O3 -pthread -lrt -march=native -Wl,-export-dynamic -Wl,-lnuma -Wl,-lpthread -Wl,-lrt -Wl,-ldl -Wl,$LIBDPDK_LDFLAGS"
16553	CFLAGS="${CFLAGS} ${LIBDPDK_CFLAGS}"
16554
16555$as_echo "#define HAVE_LIBDPDK 1" >>confdefs.h
16556
16557	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16558$as_echo "yes" >&6; }
16559else
16560	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16561$as_echo "no" >&6; }
16562fi
16563
16564
16565
16566
16567
16568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap support" >&5
16569$as_echo_n "checking for netmap support... " >&6; }
16570# Check whether --enable-netmap was given.
16571if test "${enable_netmap+set}" = set; then :
16572  enableval=$enable_netmap; case "${enableval}" in
16573   yes) CFLAGS="${CFLAGS} -DHAVE_NETMAP";;
16574    no) ;;
16575     *) as_fn_error $? "bad value ${enableval} for --enable-lfs" "$LINENO" 5 ;;
16576  esac
16577else
16578  CFLAGS="${CFLAGS}"
16579	 enable_netmap=no
16580fi
16581
16582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
16583$as_echo "$enableval" >&6; }
16584
16585LIGHTTPD_VERSION_ID=`echo $PACKAGE_VERSION | $AWK -F '.' '{print "(" $1 " << 16 | " $2 " << 8 | " $3 ")"}'`
16586
16587cat >>confdefs.h <<_ACEOF
16588#define LIGHTTPD_VERSION_ID $LIGHTTPD_VERSION_ID
16589_ACEOF
16590
16591
16592ac_config_files="$ac_config_files Makefile src/Makefile doc/config/conf.d/Makefile doc/config/vhosts.d/Makefile doc/config/Makefile doc/scripts/Makefile doc/initscripts/Makefile doc/systemd/Makefile doc/outdated/Makefile doc/Makefile tests/Makefile tests/docroot/Makefile tests/docroot/123/Makefile tests/docroot/www/Makefile tests/docroot/www/go/Makefile tests/docroot/www/indexfile/Makefile tests/docroot/www/expire/Makefile distribute.sh"
16593
16594cat >confcache <<\_ACEOF
16595# This file is a shell script that caches the results of configure
16596# tests run on this system so they can be shared between configure
16597# scripts and configure runs, see configure's option --config-cache.
16598# It is not useful on other systems.  If it contains results you don't
16599# want to keep, you may remove or edit it.
16600#
16601# config.status only pays attention to the cache file if you give it
16602# the --recheck option to rerun configure.
16603#
16604# `ac_cv_env_foo' variables (set or unset) will be overridden when
16605# loading this file, other *unset* `ac_cv_foo' will be assigned the
16606# following values.
16607
16608_ACEOF
16609
16610# The following way of writing the cache mishandles newlines in values,
16611# but we know of no workaround that is simple, portable, and efficient.
16612# So, we kill variables containing newlines.
16613# Ultrix sh set writes to stderr and can't be redirected directly,
16614# and sets the high bit in the cache file unless we assign to the vars.
16615(
16616  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16617    eval ac_val=\$$ac_var
16618    case $ac_val in #(
16619    *${as_nl}*)
16620      case $ac_var in #(
16621      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16622$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16623      esac
16624      case $ac_var in #(
16625      _ | IFS | as_nl) ;; #(
16626      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16627      *) { eval $ac_var=; unset $ac_var;} ;;
16628      esac ;;
16629    esac
16630  done
16631
16632  (set) 2>&1 |
16633    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16634    *${as_nl}ac_space=\ *)
16635      # `set' does not quote correctly, so add quotes: double-quote
16636      # substitution turns \\\\ into \\, and sed turns \\ into \.
16637      sed -n \
16638	"s/'/'\\\\''/g;
16639	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16640      ;; #(
16641    *)
16642      # `set' quotes correctly as required by POSIX, so do not add quotes.
16643      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16644      ;;
16645    esac |
16646    sort
16647) |
16648  sed '
16649     /^ac_cv_env_/b end
16650     t clear
16651     :clear
16652     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16653     t end
16654     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16655     :end' >>confcache
16656if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16657  if test -w "$cache_file"; then
16658    if test "x$cache_file" != "x/dev/null"; then
16659      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16660$as_echo "$as_me: updating cache $cache_file" >&6;}
16661      if test ! -f "$cache_file" || test -h "$cache_file"; then
16662	cat confcache >"$cache_file"
16663      else
16664        case $cache_file in #(
16665        */* | ?:*)
16666	  mv -f confcache "$cache_file"$$ &&
16667	  mv -f "$cache_file"$$ "$cache_file" ;; #(
16668        *)
16669	  mv -f confcache "$cache_file" ;;
16670	esac
16671      fi
16672    fi
16673  else
16674    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16675$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16676  fi
16677fi
16678rm -f confcache
16679
16680test "x$prefix" = xNONE && prefix=$ac_default_prefix
16681# Let make expand exec_prefix.
16682test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16683
16684DEFS=-DHAVE_CONFIG_H
16685
16686ac_libobjs=
16687ac_ltlibobjs=
16688U=
16689for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16690  # 1. Remove the extension, and $U if already installed.
16691  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16692  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16693  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16694  #    will be set to the directory where LIBOBJS objects are built.
16695  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16696  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16697done
16698LIBOBJS=$ac_libobjs
16699
16700LTLIBOBJS=$ac_ltlibobjs
16701
16702
16703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16704$as_echo_n "checking that generated files are newer than configure... " >&6; }
16705   if test -n "$am_sleep_pid"; then
16706     # Hide warnings about reused PIDs.
16707     wait $am_sleep_pid 2>/dev/null
16708   fi
16709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16710$as_echo "done" >&6; }
16711 if test -n "$EXEEXT"; then
16712  am__EXEEXT_TRUE=
16713  am__EXEEXT_FALSE='#'
16714else
16715  am__EXEEXT_TRUE='#'
16716  am__EXEEXT_FALSE=
16717fi
16718
16719if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16720  as_fn_error $? "conditional \"AMDEP\" was never defined.
16721Usually this means the macro was only invoked conditionally." "$LINENO" 5
16722fi
16723if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16724  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16725Usually this means the macro was only invoked conditionally." "$LINENO" 5
16726fi
16727if test -z "${NO_RDYNAMIC_TRUE}" && test -z "${NO_RDYNAMIC_FALSE}"; then
16728  as_fn_error $? "conditional \"NO_RDYNAMIC\" was never defined.
16729Usually this means the macro was only invoked conditionally." "$LINENO" 5
16730fi
16731if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
16732  as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
16733Usually this means the macro was only invoked conditionally." "$LINENO" 5
16734fi
16735if test -z "${CHECK_WITH_FASTCGI_TRUE}" && test -z "${CHECK_WITH_FASTCGI_FALSE}"; then
16736  as_fn_error $? "conditional \"CHECK_WITH_FASTCGI\" was never defined.
16737Usually this means the macro was only invoked conditionally." "$LINENO" 5
16738fi
16739
16740: "${CONFIG_STATUS=./config.status}"
16741ac_write_fail=0
16742ac_clean_files_save=$ac_clean_files
16743ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16744{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16745$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16746as_write_fail=0
16747cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16748#! $SHELL
16749# Generated by $as_me.
16750# Run this file to recreate the current configuration.
16751# Compiler output produced by configure, useful for debugging
16752# configure, is in config.log if it exists.
16753
16754debug=false
16755ac_cs_recheck=false
16756ac_cs_silent=false
16757
16758SHELL=\${CONFIG_SHELL-$SHELL}
16759export SHELL
16760_ASEOF
16761cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16762## -------------------- ##
16763## M4sh Initialization. ##
16764## -------------------- ##
16765
16766# Be more Bourne compatible
16767DUALCASE=1; export DUALCASE # for MKS sh
16768if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16769  emulate sh
16770  NULLCMD=:
16771  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16772  # is contrary to our usage.  Disable this feature.
16773  alias -g '${1+"$@"}'='"$@"'
16774  setopt NO_GLOB_SUBST
16775else
16776  case `(set -o) 2>/dev/null` in #(
16777  *posix*) :
16778    set -o posix ;; #(
16779  *) :
16780     ;;
16781esac
16782fi
16783
16784
16785as_nl='
16786'
16787export as_nl
16788# Printing a long string crashes Solaris 7 /usr/bin/printf.
16789as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16790as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16791as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16792# Prefer a ksh shell builtin over an external printf program on Solaris,
16793# but without wasting forks for bash or zsh.
16794if test -z "$BASH_VERSION$ZSH_VERSION" \
16795    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16796  as_echo='print -r --'
16797  as_echo_n='print -rn --'
16798elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16799  as_echo='printf %s\n'
16800  as_echo_n='printf %s'
16801else
16802  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16803    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16804    as_echo_n='/usr/ucb/echo -n'
16805  else
16806    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16807    as_echo_n_body='eval
16808      arg=$1;
16809      case $arg in #(
16810      *"$as_nl"*)
16811	expr "X$arg" : "X\\(.*\\)$as_nl";
16812	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16813      esac;
16814      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16815    '
16816    export as_echo_n_body
16817    as_echo_n='sh -c $as_echo_n_body as_echo'
16818  fi
16819  export as_echo_body
16820  as_echo='sh -c $as_echo_body as_echo'
16821fi
16822
16823# The user is always right.
16824if test "${PATH_SEPARATOR+set}" != set; then
16825  PATH_SEPARATOR=:
16826  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16827    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16828      PATH_SEPARATOR=';'
16829  }
16830fi
16831
16832
16833# IFS
16834# We need space, tab and new line, in precisely that order.  Quoting is
16835# there to prevent editors from complaining about space-tab.
16836# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16837# splitting by setting IFS to empty value.)
16838IFS=" ""	$as_nl"
16839
16840# Find who we are.  Look in the path if we contain no directory separator.
16841as_myself=
16842case $0 in #((
16843  *[\\/]* ) as_myself=$0 ;;
16844  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16845for as_dir in $PATH
16846do
16847  IFS=$as_save_IFS
16848  test -z "$as_dir" && as_dir=.
16849    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16850  done
16851IFS=$as_save_IFS
16852
16853     ;;
16854esac
16855# We did not find ourselves, most probably we were run as `sh COMMAND'
16856# in which case we are not to be found in the path.
16857if test "x$as_myself" = x; then
16858  as_myself=$0
16859fi
16860if test ! -f "$as_myself"; then
16861  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16862  exit 1
16863fi
16864
16865# Unset variables that we do not need and which cause bugs (e.g. in
16866# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16867# suppresses any "Segmentation fault" message there.  '((' could
16868# trigger a bug in pdksh 5.2.14.
16869for as_var in BASH_ENV ENV MAIL MAILPATH
16870do eval test x\${$as_var+set} = xset \
16871  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16872done
16873PS1='$ '
16874PS2='> '
16875PS4='+ '
16876
16877# NLS nuisances.
16878LC_ALL=C
16879export LC_ALL
16880LANGUAGE=C
16881export LANGUAGE
16882
16883# CDPATH.
16884(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16885
16886
16887# as_fn_error STATUS ERROR [LINENO LOG_FD]
16888# ----------------------------------------
16889# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16890# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16891# script with STATUS, using 1 if that was 0.
16892as_fn_error ()
16893{
16894  as_status=$1; test $as_status -eq 0 && as_status=1
16895  if test "$4"; then
16896    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16897    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16898  fi
16899  $as_echo "$as_me: error: $2" >&2
16900  as_fn_exit $as_status
16901} # as_fn_error
16902
16903
16904# as_fn_set_status STATUS
16905# -----------------------
16906# Set $? to STATUS, without forking.
16907as_fn_set_status ()
16908{
16909  return $1
16910} # as_fn_set_status
16911
16912# as_fn_exit STATUS
16913# -----------------
16914# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16915as_fn_exit ()
16916{
16917  set +e
16918  as_fn_set_status $1
16919  exit $1
16920} # as_fn_exit
16921
16922# as_fn_unset VAR
16923# ---------------
16924# Portably unset VAR.
16925as_fn_unset ()
16926{
16927  { eval $1=; unset $1;}
16928}
16929as_unset=as_fn_unset
16930# as_fn_append VAR VALUE
16931# ----------------------
16932# Append the text in VALUE to the end of the definition contained in VAR. Take
16933# advantage of any shell optimizations that allow amortized linear growth over
16934# repeated appends, instead of the typical quadratic growth present in naive
16935# implementations.
16936if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16937  eval 'as_fn_append ()
16938  {
16939    eval $1+=\$2
16940  }'
16941else
16942  as_fn_append ()
16943  {
16944    eval $1=\$$1\$2
16945  }
16946fi # as_fn_append
16947
16948# as_fn_arith ARG...
16949# ------------------
16950# Perform arithmetic evaluation on the ARGs, and store the result in the
16951# global $as_val. Take advantage of shells that can avoid forks. The arguments
16952# must be portable across $(()) and expr.
16953if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16954  eval 'as_fn_arith ()
16955  {
16956    as_val=$(( $* ))
16957  }'
16958else
16959  as_fn_arith ()
16960  {
16961    as_val=`expr "$@" || test $? -eq 1`
16962  }
16963fi # as_fn_arith
16964
16965
16966if expr a : '\(a\)' >/dev/null 2>&1 &&
16967   test "X`expr 00001 : '.*\(...\)'`" = X001; then
16968  as_expr=expr
16969else
16970  as_expr=false
16971fi
16972
16973if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16974  as_basename=basename
16975else
16976  as_basename=false
16977fi
16978
16979if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16980  as_dirname=dirname
16981else
16982  as_dirname=false
16983fi
16984
16985as_me=`$as_basename -- "$0" ||
16986$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16987	 X"$0" : 'X\(//\)$' \| \
16988	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16989$as_echo X/"$0" |
16990    sed '/^.*\/\([^/][^/]*\)\/*$/{
16991	    s//\1/
16992	    q
16993	  }
16994	  /^X\/\(\/\/\)$/{
16995	    s//\1/
16996	    q
16997	  }
16998	  /^X\/\(\/\).*/{
16999	    s//\1/
17000	    q
17001	  }
17002	  s/.*/./; q'`
17003
17004# Avoid depending upon Character Ranges.
17005as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17006as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17007as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17008as_cr_digits='0123456789'
17009as_cr_alnum=$as_cr_Letters$as_cr_digits
17010
17011ECHO_C= ECHO_N= ECHO_T=
17012case `echo -n x` in #(((((
17013-n*)
17014  case `echo 'xy\c'` in
17015  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17016  xy)  ECHO_C='\c';;
17017  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17018       ECHO_T='	';;
17019  esac;;
17020*)
17021  ECHO_N='-n';;
17022esac
17023
17024rm -f conf$$ conf$$.exe conf$$.file
17025if test -d conf$$.dir; then
17026  rm -f conf$$.dir/conf$$.file
17027else
17028  rm -f conf$$.dir
17029  mkdir conf$$.dir 2>/dev/null
17030fi
17031if (echo >conf$$.file) 2>/dev/null; then
17032  if ln -s conf$$.file conf$$ 2>/dev/null; then
17033    as_ln_s='ln -s'
17034    # ... but there are two gotchas:
17035    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17036    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17037    # In both cases, we have to default to `cp -pR'.
17038    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17039      as_ln_s='cp -pR'
17040  elif ln conf$$.file conf$$ 2>/dev/null; then
17041    as_ln_s=ln
17042  else
17043    as_ln_s='cp -pR'
17044  fi
17045else
17046  as_ln_s='cp -pR'
17047fi
17048rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17049rmdir conf$$.dir 2>/dev/null
17050
17051
17052# as_fn_mkdir_p
17053# -------------
17054# Create "$as_dir" as a directory, including parents if necessary.
17055as_fn_mkdir_p ()
17056{
17057
17058  case $as_dir in #(
17059  -*) as_dir=./$as_dir;;
17060  esac
17061  test -d "$as_dir" || eval $as_mkdir_p || {
17062    as_dirs=
17063    while :; do
17064      case $as_dir in #(
17065      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17066      *) as_qdir=$as_dir;;
17067      esac
17068      as_dirs="'$as_qdir' $as_dirs"
17069      as_dir=`$as_dirname -- "$as_dir" ||
17070$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17071	 X"$as_dir" : 'X\(//\)[^/]' \| \
17072	 X"$as_dir" : 'X\(//\)$' \| \
17073	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17074$as_echo X"$as_dir" |
17075    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17076	    s//\1/
17077	    q
17078	  }
17079	  /^X\(\/\/\)[^/].*/{
17080	    s//\1/
17081	    q
17082	  }
17083	  /^X\(\/\/\)$/{
17084	    s//\1/
17085	    q
17086	  }
17087	  /^X\(\/\).*/{
17088	    s//\1/
17089	    q
17090	  }
17091	  s/.*/./; q'`
17092      test -d "$as_dir" && break
17093    done
17094    test -z "$as_dirs" || eval "mkdir $as_dirs"
17095  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17096
17097
17098} # as_fn_mkdir_p
17099if mkdir -p . 2>/dev/null; then
17100  as_mkdir_p='mkdir -p "$as_dir"'
17101else
17102  test -d ./-p && rmdir ./-p
17103  as_mkdir_p=false
17104fi
17105
17106
17107# as_fn_executable_p FILE
17108# -----------------------
17109# Test if FILE is an executable regular file.
17110as_fn_executable_p ()
17111{
17112  test -f "$1" && test -x "$1"
17113} # as_fn_executable_p
17114as_test_x='test -x'
17115as_executable_p=as_fn_executable_p
17116
17117# Sed expression to map a string onto a valid CPP name.
17118as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17119
17120# Sed expression to map a string onto a valid variable name.
17121as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17122
17123
17124exec 6>&1
17125## ----------------------------------- ##
17126## Main body of $CONFIG_STATUS script. ##
17127## ----------------------------------- ##
17128_ASEOF
17129test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17130
17131cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17132# Save the log message, to keep $0 and so on meaningful, and to
17133# report actual input values of CONFIG_FILES etc. instead of their
17134# values after options handling.
17135ac_log="
17136This file was extended by lighttpd $as_me 1.4.32, which was
17137generated by GNU Autoconf 2.69.  Invocation command line was
17138
17139  CONFIG_FILES    = $CONFIG_FILES
17140  CONFIG_HEADERS  = $CONFIG_HEADERS
17141  CONFIG_LINKS    = $CONFIG_LINKS
17142  CONFIG_COMMANDS = $CONFIG_COMMANDS
17143  $ $0 $@
17144
17145on `(hostname || uname -n) 2>/dev/null | sed 1q`
17146"
17147
17148_ACEOF
17149
17150case $ac_config_files in *"
17151"*) set x $ac_config_files; shift; ac_config_files=$*;;
17152esac
17153
17154case $ac_config_headers in *"
17155"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17156esac
17157
17158
17159cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17160# Files that config.status was made for.
17161config_files="$ac_config_files"
17162config_headers="$ac_config_headers"
17163config_commands="$ac_config_commands"
17164
17165_ACEOF
17166
17167cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17168ac_cs_usage="\
17169\`$as_me' instantiates files and other configuration actions
17170from templates according to the current configuration.  Unless the files
17171and actions are specified as TAGs, all are instantiated by default.
17172
17173Usage: $0 [OPTION]... [TAG]...
17174
17175  -h, --help       print this help, then exit
17176  -V, --version    print version number and configuration settings, then exit
17177      --config     print configuration, then exit
17178  -q, --quiet, --silent
17179                   do not print progress messages
17180  -d, --debug      don't remove temporary files
17181      --recheck    update $as_me by reconfiguring in the same conditions
17182      --file=FILE[:TEMPLATE]
17183                   instantiate the configuration file FILE
17184      --header=FILE[:TEMPLATE]
17185                   instantiate the configuration header FILE
17186
17187Configuration files:
17188$config_files
17189
17190Configuration headers:
17191$config_headers
17192
17193Configuration commands:
17194$config_commands
17195
17196Report bugs to <[email protected]>."
17197
17198_ACEOF
17199cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17200ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17201ac_cs_version="\\
17202lighttpd config.status 1.4.32
17203configured by $0, generated by GNU Autoconf 2.69,
17204  with options \\"\$ac_cs_config\\"
17205
17206Copyright (C) 2012 Free Software Foundation, Inc.
17207This config.status script is free software; the Free Software Foundation
17208gives unlimited permission to copy, distribute and modify it."
17209
17210ac_pwd='$ac_pwd'
17211srcdir='$srcdir'
17212INSTALL='$INSTALL'
17213MKDIR_P='$MKDIR_P'
17214AWK='$AWK'
17215test -n "\$AWK" || AWK=awk
17216_ACEOF
17217
17218cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17219# The default lists apply if the user does not specify any file.
17220ac_need_defaults=:
17221while test $# != 0
17222do
17223  case $1 in
17224  --*=?*)
17225    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17226    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17227    ac_shift=:
17228    ;;
17229  --*=)
17230    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17231    ac_optarg=
17232    ac_shift=:
17233    ;;
17234  *)
17235    ac_option=$1
17236    ac_optarg=$2
17237    ac_shift=shift
17238    ;;
17239  esac
17240
17241  case $ac_option in
17242  # Handling of the options.
17243  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17244    ac_cs_recheck=: ;;
17245  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17246    $as_echo "$ac_cs_version"; exit ;;
17247  --config | --confi | --conf | --con | --co | --c )
17248    $as_echo "$ac_cs_config"; exit ;;
17249  --debug | --debu | --deb | --de | --d | -d )
17250    debug=: ;;
17251  --file | --fil | --fi | --f )
17252    $ac_shift
17253    case $ac_optarg in
17254    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17255    '') as_fn_error $? "missing file argument" ;;
17256    esac
17257    as_fn_append CONFIG_FILES " '$ac_optarg'"
17258    ac_need_defaults=false;;
17259  --header | --heade | --head | --hea )
17260    $ac_shift
17261    case $ac_optarg in
17262    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17263    esac
17264    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17265    ac_need_defaults=false;;
17266  --he | --h)
17267    # Conflict between --help and --header
17268    as_fn_error $? "ambiguous option: \`$1'
17269Try \`$0 --help' for more information.";;
17270  --help | --hel | -h )
17271    $as_echo "$ac_cs_usage"; exit ;;
17272  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17273  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17274    ac_cs_silent=: ;;
17275
17276  # This is an error.
17277  -*) as_fn_error $? "unrecognized option: \`$1'
17278Try \`$0 --help' for more information." ;;
17279
17280  *) as_fn_append ac_config_targets " $1"
17281     ac_need_defaults=false ;;
17282
17283  esac
17284  shift
17285done
17286
17287ac_configure_extra_args=
17288
17289if $ac_cs_silent; then
17290  exec 6>/dev/null
17291  ac_configure_extra_args="$ac_configure_extra_args --silent"
17292fi
17293
17294_ACEOF
17295cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17296if \$ac_cs_recheck; then
17297  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17298  shift
17299  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17300  CONFIG_SHELL='$SHELL'
17301  export CONFIG_SHELL
17302  exec "\$@"
17303fi
17304
17305_ACEOF
17306cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17307exec 5>>config.log
17308{
17309  echo
17310  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17311## Running $as_me. ##
17312_ASBOX
17313  $as_echo "$ac_log"
17314} >&5
17315
17316_ACEOF
17317cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17318#
17319# INIT-COMMANDS
17320#
17321AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17322
17323
17324# The HP-UX ksh and POSIX shell print the target directory to stdout
17325# if CDPATH is set.
17326(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17327
17328sed_quote_subst='$sed_quote_subst'
17329double_quote_subst='$double_quote_subst'
17330delay_variable_subst='$delay_variable_subst'
17331SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17332Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17333GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17334EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17335FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17336SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17337ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17338LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17339enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17340enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17341macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17342macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17343pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17344enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17345PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17346host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17347host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17348host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17349build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17350build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17351build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17352NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17353LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17354max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17355ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17356exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17357lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17358lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17359lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17360lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17361lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17362reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17363reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17364OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17365deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17366file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17367file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17368want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17369DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17370sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17371AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17372AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17373archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17374STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17375RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17376old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17377old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17378old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17379lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17380CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17381CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17382compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17383GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17384lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17385lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17386lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17387lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17388nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17389lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17390objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17391MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17392lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17393lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17394lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17395lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17396lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17397need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17398MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17399DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17400NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17401LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17402OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17403OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17404libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17405shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17406extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17407archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17408enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17409export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17410whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17411compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17412old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17413old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17414archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17415archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17416module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17417module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17418with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17419allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17420no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17421hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17422hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17423hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17424hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17425hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17426hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17427hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17428inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17429link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17430always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17431export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17432exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17433include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17434prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17435postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17436file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17437variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17438need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17439need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17440version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17441runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17442shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17443shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17444libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17445library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17446soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17447install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17448postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17449postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17450finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17451finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17452hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17453sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17454sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17455hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17456enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17457enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17458enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17459old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17460striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17461
17462LTCC='$LTCC'
17463LTCFLAGS='$LTCFLAGS'
17464compiler='$compiler_DEFAULT'
17465
17466# A function that is used when there is no print builtin or printf.
17467func_fallback_echo ()
17468{
17469  eval 'cat <<_LTECHO_EOF
17470\$1
17471_LTECHO_EOF'
17472}
17473
17474# Quote evaled strings.
17475for var in SED \
17476GREP \
17477EGREP \
17478FGREP \
17479SHELL \
17480ECHO \
17481LD \
17482PATH_SEPARATOR \
17483NM \
17484LN_S \
17485lt_SP2NL \
17486lt_NL2SP \
17487reload_flag \
17488OBJDUMP \
17489deplibs_check_method \
17490file_magic_cmd \
17491file_magic_glob \
17492want_nocaseglob \
17493DLLTOOL \
17494sharedlib_from_linklib_cmd \
17495AR \
17496AR_FLAGS \
17497archiver_list_spec \
17498STRIP \
17499RANLIB \
17500CC \
17501CFLAGS \
17502compiler \
17503lt_cv_sys_global_symbol_pipe \
17504lt_cv_sys_global_symbol_to_cdecl \
17505lt_cv_sys_global_symbol_to_c_name_address \
17506lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17507nm_file_list_spec \
17508lt_prog_compiler_no_builtin_flag \
17509lt_prog_compiler_pic \
17510lt_prog_compiler_wl \
17511lt_prog_compiler_static \
17512lt_cv_prog_compiler_c_o \
17513need_locks \
17514MANIFEST_TOOL \
17515DSYMUTIL \
17516NMEDIT \
17517LIPO \
17518OTOOL \
17519OTOOL64 \
17520shrext_cmds \
17521export_dynamic_flag_spec \
17522whole_archive_flag_spec \
17523compiler_needs_object \
17524with_gnu_ld \
17525allow_undefined_flag \
17526no_undefined_flag \
17527hardcode_libdir_flag_spec \
17528hardcode_libdir_separator \
17529exclude_expsyms \
17530include_expsyms \
17531file_list_spec \
17532variables_saved_for_relink \
17533libname_spec \
17534library_names_spec \
17535soname_spec \
17536install_override_mode \
17537finish_eval \
17538old_striplib \
17539striplib; do
17540    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17541    *[\\\\\\\`\\"\\\$]*)
17542      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17543      ;;
17544    *)
17545      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17546      ;;
17547    esac
17548done
17549
17550# Double-quote double-evaled strings.
17551for var in reload_cmds \
17552old_postinstall_cmds \
17553old_postuninstall_cmds \
17554old_archive_cmds \
17555extract_expsyms_cmds \
17556old_archive_from_new_cmds \
17557old_archive_from_expsyms_cmds \
17558archive_cmds \
17559archive_expsym_cmds \
17560module_cmds \
17561module_expsym_cmds \
17562export_symbols_cmds \
17563prelink_cmds \
17564postlink_cmds \
17565postinstall_cmds \
17566postuninstall_cmds \
17567finish_cmds \
17568sys_lib_search_path_spec \
17569sys_lib_dlsearch_path_spec; do
17570    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17571    *[\\\\\\\`\\"\\\$]*)
17572      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17573      ;;
17574    *)
17575      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17576      ;;
17577    esac
17578done
17579
17580ac_aux_dir='$ac_aux_dir'
17581xsi_shell='$xsi_shell'
17582lt_shell_append='$lt_shell_append'
17583
17584# See if we are running on zsh, and set the options which allow our
17585# commands through without removal of \ escapes INIT.
17586if test -n "\${ZSH_VERSION+set}" ; then
17587   setopt NO_GLOB_SUBST
17588fi
17589
17590
17591    PACKAGE='$PACKAGE'
17592    VERSION='$VERSION'
17593    TIMESTAMP='$TIMESTAMP'
17594    RM='$RM'
17595    ofile='$ofile'
17596
17597
17598
17599
17600_ACEOF
17601
17602cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17603
17604# Handling of arguments.
17605for ac_config_target in $ac_config_targets
17606do
17607  case $ac_config_target in
17608    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17609    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17610    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17611    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17612    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17613    "doc/config/conf.d/Makefile") CONFIG_FILES="$CONFIG_FILES doc/config/conf.d/Makefile" ;;
17614    "doc/config/vhosts.d/Makefile") CONFIG_FILES="$CONFIG_FILES doc/config/vhosts.d/Makefile" ;;
17615    "doc/config/Makefile") CONFIG_FILES="$CONFIG_FILES doc/config/Makefile" ;;
17616    "doc/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES doc/scripts/Makefile" ;;
17617    "doc/initscripts/Makefile") CONFIG_FILES="$CONFIG_FILES doc/initscripts/Makefile" ;;
17618    "doc/systemd/Makefile") CONFIG_FILES="$CONFIG_FILES doc/systemd/Makefile" ;;
17619    "doc/outdated/Makefile") CONFIG_FILES="$CONFIG_FILES doc/outdated/Makefile" ;;
17620    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17621    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17622    "tests/docroot/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/Makefile" ;;
17623    "tests/docroot/123/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/123/Makefile" ;;
17624    "tests/docroot/www/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/www/Makefile" ;;
17625    "tests/docroot/www/go/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/www/go/Makefile" ;;
17626    "tests/docroot/www/indexfile/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/www/indexfile/Makefile" ;;
17627    "tests/docroot/www/expire/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/www/expire/Makefile" ;;
17628    "distribute.sh") CONFIG_FILES="$CONFIG_FILES distribute.sh" ;;
17629
17630  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17631  esac
17632done
17633
17634
17635# If the user did not use the arguments to specify the items to instantiate,
17636# then the envvar interface is used.  Set only those that are not.
17637# We use the long form for the default assignment because of an extremely
17638# bizarre bug on SunOS 4.1.3.
17639if $ac_need_defaults; then
17640  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17641  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17642  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17643fi
17644
17645# Have a temporary directory for convenience.  Make it in the build tree
17646# simply because there is no reason against having it here, and in addition,
17647# creating and moving files from /tmp can sometimes cause problems.
17648# Hook for its removal unless debugging.
17649# Note that there is a small window in which the directory will not be cleaned:
17650# after its creation but before its name has been assigned to `$tmp'.
17651$debug ||
17652{
17653  tmp= ac_tmp=
17654  trap 'exit_status=$?
17655  : "${ac_tmp:=$tmp}"
17656  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17657' 0
17658  trap 'as_fn_exit 1' 1 2 13 15
17659}
17660# Create a (secure) tmp directory for tmp files.
17661
17662{
17663  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17664  test -d "$tmp"
17665}  ||
17666{
17667  tmp=./conf$$-$RANDOM
17668  (umask 077 && mkdir "$tmp")
17669} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17670ac_tmp=$tmp
17671
17672# Set up the scripts for CONFIG_FILES section.
17673# No need to generate them if there are no CONFIG_FILES.
17674# This happens for instance with `./config.status config.h'.
17675if test -n "$CONFIG_FILES"; then
17676
17677
17678ac_cr=`echo X | tr X '\015'`
17679# On cygwin, bash can eat \r inside `` if the user requested igncr.
17680# But we know of no other shell where ac_cr would be empty at this
17681# point, so we can use a bashism as a fallback.
17682if test "x$ac_cr" = x; then
17683  eval ac_cr=\$\'\\r\'
17684fi
17685ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17686if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17687  ac_cs_awk_cr='\\r'
17688else
17689  ac_cs_awk_cr=$ac_cr
17690fi
17691
17692echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17693_ACEOF
17694
17695
17696{
17697  echo "cat >conf$$subs.awk <<_ACEOF" &&
17698  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17699  echo "_ACEOF"
17700} >conf$$subs.sh ||
17701  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17702ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17703ac_delim='%!_!# '
17704for ac_last_try in false false false false false :; do
17705  . ./conf$$subs.sh ||
17706    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17707
17708  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17709  if test $ac_delim_n = $ac_delim_num; then
17710    break
17711  elif $ac_last_try; then
17712    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17713  else
17714    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17715  fi
17716done
17717rm -f conf$$subs.sh
17718
17719cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17720cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17721_ACEOF
17722sed -n '
17723h
17724s/^/S["/; s/!.*/"]=/
17725p
17726g
17727s/^[^!]*!//
17728:repl
17729t repl
17730s/'"$ac_delim"'$//
17731t delim
17732:nl
17733h
17734s/\(.\{148\}\)..*/\1/
17735t more1
17736s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17737p
17738n
17739b repl
17740:more1
17741s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17742p
17743g
17744s/.\{148\}//
17745t nl
17746:delim
17747h
17748s/\(.\{148\}\)..*/\1/
17749t more2
17750s/["\\]/\\&/g; s/^/"/; s/$/"/
17751p
17752b
17753:more2
17754s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17755p
17756g
17757s/.\{148\}//
17758t delim
17759' <conf$$subs.awk | sed '
17760/^[^""]/{
17761  N
17762  s/\n//
17763}
17764' >>$CONFIG_STATUS || ac_write_fail=1
17765rm -f conf$$subs.awk
17766cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17767_ACAWK
17768cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17769  for (key in S) S_is_set[key] = 1
17770  FS = ""
17771
17772}
17773{
17774  line = $ 0
17775  nfields = split(line, field, "@")
17776  substed = 0
17777  len = length(field[1])
17778  for (i = 2; i < nfields; i++) {
17779    key = field[i]
17780    keylen = length(key)
17781    if (S_is_set[key]) {
17782      value = S[key]
17783      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17784      len += length(value) + length(field[++i])
17785      substed = 1
17786    } else
17787      len += 1 + keylen
17788  }
17789
17790  print line
17791}
17792
17793_ACAWK
17794_ACEOF
17795cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17796if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17797  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17798else
17799  cat
17800fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17801  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17802_ACEOF
17803
17804# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17805# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17806# trailing colons and then remove the whole line if VPATH becomes empty
17807# (actually we leave an empty line to preserve line numbers).
17808if test "x$srcdir" = x.; then
17809  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
17810h
17811s///
17812s/^/:/
17813s/[	 ]*$/:/
17814s/:\$(srcdir):/:/g
17815s/:\${srcdir}:/:/g
17816s/:@srcdir@:/:/g
17817s/^:*//
17818s/:*$//
17819x
17820s/\(=[	 ]*\).*/\1/
17821G
17822s/\n//
17823s/^[^=]*=[	 ]*$//
17824}'
17825fi
17826
17827cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17828fi # test -n "$CONFIG_FILES"
17829
17830# Set up the scripts for CONFIG_HEADERS section.
17831# No need to generate them if there are no CONFIG_HEADERS.
17832# This happens for instance with `./config.status Makefile'.
17833if test -n "$CONFIG_HEADERS"; then
17834cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17835BEGIN {
17836_ACEOF
17837
17838# Transform confdefs.h into an awk script `defines.awk', embedded as
17839# here-document in config.status, that substitutes the proper values into
17840# config.h.in to produce config.h.
17841
17842# Create a delimiter string that does not exist in confdefs.h, to ease
17843# handling of long lines.
17844ac_delim='%!_!# '
17845for ac_last_try in false false :; do
17846  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17847  if test -z "$ac_tt"; then
17848    break
17849  elif $ac_last_try; then
17850    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17851  else
17852    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17853  fi
17854done
17855
17856# For the awk script, D is an array of macro values keyed by name,
17857# likewise P contains macro parameters if any.  Preserve backslash
17858# newline sequences.
17859
17860ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17861sed -n '
17862s/.\{148\}/&'"$ac_delim"'/g
17863t rset
17864:rset
17865s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
17866t def
17867d
17868:def
17869s/\\$//
17870t bsnl
17871s/["\\]/\\&/g
17872s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17873D["\1"]=" \3"/p
17874s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
17875d
17876:bsnl
17877s/["\\]/\\&/g
17878s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17879D["\1"]=" \3\\\\\\n"\\/p
17880t cont
17881s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17882t cont
17883d
17884:cont
17885n
17886s/.\{148\}/&'"$ac_delim"'/g
17887t clear
17888:clear
17889s/\\$//
17890t bsnlc
17891s/["\\]/\\&/g; s/^/"/; s/$/"/p
17892d
17893:bsnlc
17894s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17895b cont
17896' <confdefs.h | sed '
17897s/'"$ac_delim"'/"\\\
17898"/g' >>$CONFIG_STATUS || ac_write_fail=1
17899
17900cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17901  for (key in D) D_is_set[key] = 1
17902  FS = ""
17903}
17904/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17905  line = \$ 0
17906  split(line, arg, " ")
17907  if (arg[1] == "#") {
17908    defundef = arg[2]
17909    mac1 = arg[3]
17910  } else {
17911    defundef = substr(arg[1], 2)
17912    mac1 = arg[2]
17913  }
17914  split(mac1, mac2, "(") #)
17915  macro = mac2[1]
17916  prefix = substr(line, 1, index(line, defundef) - 1)
17917  if (D_is_set[macro]) {
17918    # Preserve the white space surrounding the "#".
17919    print prefix "define", macro P[macro] D[macro]
17920    next
17921  } else {
17922    # Replace #undef with comments.  This is necessary, for example,
17923    # in the case of _POSIX_SOURCE, which is predefined and required
17924    # on some systems where configure will not decide to define it.
17925    if (defundef == "undef") {
17926      print "/*", prefix defundef, macro, "*/"
17927      next
17928    }
17929  }
17930}
17931{ print }
17932_ACAWK
17933_ACEOF
17934cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17935  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17936fi # test -n "$CONFIG_HEADERS"
17937
17938
17939eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17940shift
17941for ac_tag
17942do
17943  case $ac_tag in
17944  :[FHLC]) ac_mode=$ac_tag; continue;;
17945  esac
17946  case $ac_mode$ac_tag in
17947  :[FHL]*:*);;
17948  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17949  :[FH]-) ac_tag=-:-;;
17950  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17951  esac
17952  ac_save_IFS=$IFS
17953  IFS=:
17954  set x $ac_tag
17955  IFS=$ac_save_IFS
17956  shift
17957  ac_file=$1
17958  shift
17959
17960  case $ac_mode in
17961  :L) ac_source=$1;;
17962  :[FH])
17963    ac_file_inputs=
17964    for ac_f
17965    do
17966      case $ac_f in
17967      -) ac_f="$ac_tmp/stdin";;
17968      *) # Look for the file first in the build tree, then in the source tree
17969	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
17970	 # because $ac_f cannot contain `:'.
17971	 test -f "$ac_f" ||
17972	   case $ac_f in
17973	   [\\/$]*) false;;
17974	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17975	   esac ||
17976	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17977      esac
17978      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17979      as_fn_append ac_file_inputs " '$ac_f'"
17980    done
17981
17982    # Let's still pretend it is `configure' which instantiates (i.e., don't
17983    # use $as_me), people would be surprised to read:
17984    #    /* config.h.  Generated by config.status.  */
17985    configure_input='Generated from '`
17986	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17987	`' by configure.'
17988    if test x"$ac_file" != x-; then
17989      configure_input="$ac_file.  $configure_input"
17990      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17991$as_echo "$as_me: creating $ac_file" >&6;}
17992    fi
17993    # Neutralize special characters interpreted by sed in replacement strings.
17994    case $configure_input in #(
17995    *\&* | *\|* | *\\* )
17996       ac_sed_conf_input=`$as_echo "$configure_input" |
17997       sed 's/[\\\\&|]/\\\\&/g'`;; #(
17998    *) ac_sed_conf_input=$configure_input;;
17999    esac
18000
18001    case $ac_tag in
18002    *:-:* | *:-) cat >"$ac_tmp/stdin" \
18003      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18004    esac
18005    ;;
18006  esac
18007
18008  ac_dir=`$as_dirname -- "$ac_file" ||
18009$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18010	 X"$ac_file" : 'X\(//\)[^/]' \| \
18011	 X"$ac_file" : 'X\(//\)$' \| \
18012	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18013$as_echo X"$ac_file" |
18014    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18015	    s//\1/
18016	    q
18017	  }
18018	  /^X\(\/\/\)[^/].*/{
18019	    s//\1/
18020	    q
18021	  }
18022	  /^X\(\/\/\)$/{
18023	    s//\1/
18024	    q
18025	  }
18026	  /^X\(\/\).*/{
18027	    s//\1/
18028	    q
18029	  }
18030	  s/.*/./; q'`
18031  as_dir="$ac_dir"; as_fn_mkdir_p
18032  ac_builddir=.
18033
18034case "$ac_dir" in
18035.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18036*)
18037  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18038  # A ".." for each directory in $ac_dir_suffix.
18039  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18040  case $ac_top_builddir_sub in
18041  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18042  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18043  esac ;;
18044esac
18045ac_abs_top_builddir=$ac_pwd
18046ac_abs_builddir=$ac_pwd$ac_dir_suffix
18047# for backward compatibility:
18048ac_top_builddir=$ac_top_build_prefix
18049
18050case $srcdir in
18051  .)  # We are building in place.
18052    ac_srcdir=.
18053    ac_top_srcdir=$ac_top_builddir_sub
18054    ac_abs_top_srcdir=$ac_pwd ;;
18055  [\\/]* | ?:[\\/]* )  # Absolute name.
18056    ac_srcdir=$srcdir$ac_dir_suffix;
18057    ac_top_srcdir=$srcdir
18058    ac_abs_top_srcdir=$srcdir ;;
18059  *) # Relative name.
18060    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18061    ac_top_srcdir=$ac_top_build_prefix$srcdir
18062    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18063esac
18064ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18065
18066
18067  case $ac_mode in
18068  :F)
18069  #
18070  # CONFIG_FILE
18071  #
18072
18073  case $INSTALL in
18074  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18075  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18076  esac
18077  ac_MKDIR_P=$MKDIR_P
18078  case $MKDIR_P in
18079  [\\/$]* | ?:[\\/]* ) ;;
18080  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18081  esac
18082_ACEOF
18083
18084cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18085# If the template does not know about datarootdir, expand it.
18086# FIXME: This hack should be removed a few years after 2.60.
18087ac_datarootdir_hack=; ac_datarootdir_seen=
18088ac_sed_dataroot='
18089/datarootdir/ {
18090  p
18091  q
18092}
18093/@datadir@/p
18094/@docdir@/p
18095/@infodir@/p
18096/@localedir@/p
18097/@mandir@/p'
18098case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18099*datarootdir*) ac_datarootdir_seen=yes;;
18100*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18101  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18102$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18103_ACEOF
18104cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18105  ac_datarootdir_hack='
18106  s&@datadir@&$datadir&g
18107  s&@docdir@&$docdir&g
18108  s&@infodir@&$infodir&g
18109  s&@localedir@&$localedir&g
18110  s&@mandir@&$mandir&g
18111  s&\\\${datarootdir}&$datarootdir&g' ;;
18112esac
18113_ACEOF
18114
18115# Neutralize VPATH when `$srcdir' = `.'.
18116# Shell code in configure.ac might set extrasub.
18117# FIXME: do we really want to maintain this feature?
18118cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18119ac_sed_extra="$ac_vpsub
18120$extrasub
18121_ACEOF
18122cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18123:t
18124/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18125s|@configure_input@|$ac_sed_conf_input|;t t
18126s&@top_builddir@&$ac_top_builddir_sub&;t t
18127s&@top_build_prefix@&$ac_top_build_prefix&;t t
18128s&@srcdir@&$ac_srcdir&;t t
18129s&@abs_srcdir@&$ac_abs_srcdir&;t t
18130s&@top_srcdir@&$ac_top_srcdir&;t t
18131s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18132s&@builddir@&$ac_builddir&;t t
18133s&@abs_builddir@&$ac_abs_builddir&;t t
18134s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18135s&@INSTALL@&$ac_INSTALL&;t t
18136s&@MKDIR_P@&$ac_MKDIR_P&;t t
18137$ac_datarootdir_hack
18138"
18139eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18140  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18141
18142test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18143  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18144  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
18145      "$ac_tmp/out"`; test -z "$ac_out"; } &&
18146  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18147which seems to be undefined.  Please make sure it is defined" >&5
18148$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18149which seems to be undefined.  Please make sure it is defined" >&2;}
18150
18151  rm -f "$ac_tmp/stdin"
18152  case $ac_file in
18153  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18154  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18155  esac \
18156  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18157 ;;
18158  :H)
18159  #
18160  # CONFIG_HEADER
18161  #
18162  if test x"$ac_file" != x-; then
18163    {
18164      $as_echo "/* $configure_input  */" \
18165      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18166    } >"$ac_tmp/config.h" \
18167      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18168    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18169      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18170$as_echo "$as_me: $ac_file is unchanged" >&6;}
18171    else
18172      rm -f "$ac_file"
18173      mv "$ac_tmp/config.h" "$ac_file" \
18174	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18175    fi
18176  else
18177    $as_echo "/* $configure_input  */" \
18178      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18179      || as_fn_error $? "could not create -" "$LINENO" 5
18180  fi
18181# Compute "$ac_file"'s index in $config_headers.
18182_am_arg="$ac_file"
18183_am_stamp_count=1
18184for _am_header in $config_headers :; do
18185  case $_am_header in
18186    $_am_arg | $_am_arg:* )
18187      break ;;
18188    * )
18189      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18190  esac
18191done
18192echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18193$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18194	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18195	 X"$_am_arg" : 'X\(//\)$' \| \
18196	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18197$as_echo X"$_am_arg" |
18198    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18199	    s//\1/
18200	    q
18201	  }
18202	  /^X\(\/\/\)[^/].*/{
18203	    s//\1/
18204	    q
18205	  }
18206	  /^X\(\/\/\)$/{
18207	    s//\1/
18208	    q
18209	  }
18210	  /^X\(\/\).*/{
18211	    s//\1/
18212	    q
18213	  }
18214	  s/.*/./; q'`/stamp-h$_am_stamp_count
18215 ;;
18216
18217  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18218$as_echo "$as_me: executing $ac_file commands" >&6;}
18219 ;;
18220  esac
18221
18222
18223  case $ac_file$ac_mode in
18224    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18225  # Older Autoconf quotes --file arguments for eval, but not when files
18226  # are listed without --file.  Let's play safe and only enable the eval
18227  # if we detect the quoting.
18228  case $CONFIG_FILES in
18229  *\'*) eval set x "$CONFIG_FILES" ;;
18230  *)   set x $CONFIG_FILES ;;
18231  esac
18232  shift
18233  for mf
18234  do
18235    # Strip MF so we end up with the name of the file.
18236    mf=`echo "$mf" | sed -e 's/:.*$//'`
18237    # Check whether this is an Automake generated Makefile or not.
18238    # We used to match only the files named 'Makefile.in', but
18239    # some people rename them; so instead we look at the file content.
18240    # Grep'ing the first line is not enough: some people post-process
18241    # each Makefile.in and add a new line on top of each file to say so.
18242    # Grep'ing the whole file is not good either: AIX grep has a line
18243    # limit of 2048, but all sed's we know have understand at least 4000.
18244    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18245      dirpart=`$as_dirname -- "$mf" ||
18246$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18247	 X"$mf" : 'X\(//\)[^/]' \| \
18248	 X"$mf" : 'X\(//\)$' \| \
18249	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18250$as_echo X"$mf" |
18251    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18252	    s//\1/
18253	    q
18254	  }
18255	  /^X\(\/\/\)[^/].*/{
18256	    s//\1/
18257	    q
18258	  }
18259	  /^X\(\/\/\)$/{
18260	    s//\1/
18261	    q
18262	  }
18263	  /^X\(\/\).*/{
18264	    s//\1/
18265	    q
18266	  }
18267	  s/.*/./; q'`
18268    else
18269      continue
18270    fi
18271    # Extract the definition of DEPDIR, am__include, and am__quote
18272    # from the Makefile without running 'make'.
18273    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18274    test -z "$DEPDIR" && continue
18275    am__include=`sed -n 's/^am__include = //p' < "$mf"`
18276    test -z "$am__include" && continue
18277    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18278    # Find all dependency output files, they are included files with
18279    # $(DEPDIR) in their names.  We invoke sed twice because it is the
18280    # simplest approach to changing $(DEPDIR) to its actual value in the
18281    # expansion.
18282    for file in `sed -n "
18283      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18284	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18285      # Make sure the directory exists.
18286      test -f "$dirpart/$file" && continue
18287      fdir=`$as_dirname -- "$file" ||
18288$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18289	 X"$file" : 'X\(//\)[^/]' \| \
18290	 X"$file" : 'X\(//\)$' \| \
18291	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18292$as_echo X"$file" |
18293    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18294	    s//\1/
18295	    q
18296	  }
18297	  /^X\(\/\/\)[^/].*/{
18298	    s//\1/
18299	    q
18300	  }
18301	  /^X\(\/\/\)$/{
18302	    s//\1/
18303	    q
18304	  }
18305	  /^X\(\/\).*/{
18306	    s//\1/
18307	    q
18308	  }
18309	  s/.*/./; q'`
18310      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18311      # echo "creating $dirpart/$file"
18312      echo '# dummy' > "$dirpart/$file"
18313    done
18314  done
18315}
18316 ;;
18317    "libtool":C)
18318
18319    # See if we are running on zsh, and set the options which allow our
18320    # commands through without removal of \ escapes.
18321    if test -n "${ZSH_VERSION+set}" ; then
18322      setopt NO_GLOB_SUBST
18323    fi
18324
18325    cfgfile="${ofile}T"
18326    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18327    $RM "$cfgfile"
18328
18329    cat <<_LT_EOF >> "$cfgfile"
18330#! $SHELL
18331
18332# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18333# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18334# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18335# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18336#
18337#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18338#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18339#                 Foundation, Inc.
18340#   Written by Gordon Matzigkeit, 1996
18341#
18342#   This file is part of GNU Libtool.
18343#
18344# GNU Libtool is free software; you can redistribute it and/or
18345# modify it under the terms of the GNU General Public License as
18346# published by the Free Software Foundation; either version 2 of
18347# the License, or (at your option) any later version.
18348#
18349# As a special exception to the GNU General Public License,
18350# if you distribute this file as part of a program or library that
18351# is built using GNU Libtool, you may include this file under the
18352# same distribution terms that you use for the rest of that program.
18353#
18354# GNU Libtool is distributed in the hope that it will be useful,
18355# but WITHOUT ANY WARRANTY; without even the implied warranty of
18356# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18357# GNU General Public License for more details.
18358#
18359# You should have received a copy of the GNU General Public License
18360# along with GNU Libtool; see the file COPYING.  If not, a copy
18361# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18362# obtained by writing to the Free Software Foundation, Inc.,
18363# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18364
18365
18366# The names of the tagged configurations supported by this script.
18367available_tags=""
18368
18369# ### BEGIN LIBTOOL CONFIG
18370
18371# A sed program that does not truncate output.
18372SED=$lt_SED
18373
18374# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18375Xsed="\$SED -e 1s/^X//"
18376
18377# A grep program that handles long lines.
18378GREP=$lt_GREP
18379
18380# An ERE matcher.
18381EGREP=$lt_EGREP
18382
18383# A literal string matcher.
18384FGREP=$lt_FGREP
18385
18386# Shell to use when invoking shell scripts.
18387SHELL=$lt_SHELL
18388
18389# An echo program that protects backslashes.
18390ECHO=$lt_ECHO
18391
18392# Whether or not to build static libraries.
18393build_old_libs=$enable_static
18394
18395# Whether or not to build shared libraries.
18396build_libtool_libs=$enable_shared
18397
18398# Which release of libtool.m4 was used?
18399macro_version=$macro_version
18400macro_revision=$macro_revision
18401
18402# What type of objects to build.
18403pic_mode=$pic_mode
18404
18405# Whether or not to optimize for fast installation.
18406fast_install=$enable_fast_install
18407
18408# The PATH separator for the build system.
18409PATH_SEPARATOR=$lt_PATH_SEPARATOR
18410
18411# The host system.
18412host_alias=$host_alias
18413host=$host
18414host_os=$host_os
18415
18416# The build system.
18417build_alias=$build_alias
18418build=$build
18419build_os=$build_os
18420
18421# A BSD- or MS-compatible name lister.
18422NM=$lt_NM
18423
18424# Whether we need soft or hard links.
18425LN_S=$lt_LN_S
18426
18427# What is the maximum length of a command?
18428max_cmd_len=$max_cmd_len
18429
18430# Object file suffix (normally "o").
18431objext=$ac_objext
18432
18433# Executable file suffix (normally "").
18434exeext=$exeext
18435
18436# whether the shell understands "unset".
18437lt_unset=$lt_unset
18438
18439# turn spaces into newlines.
18440SP2NL=$lt_lt_SP2NL
18441
18442# turn newlines into spaces.
18443NL2SP=$lt_lt_NL2SP
18444
18445# convert \$build file names to \$host format.
18446to_host_file_cmd=$lt_cv_to_host_file_cmd
18447
18448# convert \$build files to toolchain format.
18449to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18450
18451# An object symbol dumper.
18452OBJDUMP=$lt_OBJDUMP
18453
18454# Method to check whether dependent libraries are shared objects.
18455deplibs_check_method=$lt_deplibs_check_method
18456
18457# Command to use when deplibs_check_method = "file_magic".
18458file_magic_cmd=$lt_file_magic_cmd
18459
18460# How to find potential files when deplibs_check_method = "file_magic".
18461file_magic_glob=$lt_file_magic_glob
18462
18463# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18464want_nocaseglob=$lt_want_nocaseglob
18465
18466# DLL creation program.
18467DLLTOOL=$lt_DLLTOOL
18468
18469# Command to associate shared and link libraries.
18470sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18471
18472# The archiver.
18473AR=$lt_AR
18474
18475# Flags to create an archive.
18476AR_FLAGS=$lt_AR_FLAGS
18477
18478# How to feed a file listing to the archiver.
18479archiver_list_spec=$lt_archiver_list_spec
18480
18481# A symbol stripping program.
18482STRIP=$lt_STRIP
18483
18484# Commands used to install an old-style archive.
18485RANLIB=$lt_RANLIB
18486old_postinstall_cmds=$lt_old_postinstall_cmds
18487old_postuninstall_cmds=$lt_old_postuninstall_cmds
18488
18489# Whether to use a lock for old archive extraction.
18490lock_old_archive_extraction=$lock_old_archive_extraction
18491
18492# A C compiler.
18493LTCC=$lt_CC
18494
18495# LTCC compiler flags.
18496LTCFLAGS=$lt_CFLAGS
18497
18498# Take the output of nm and produce a listing of raw symbols and C names.
18499global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18500
18501# Transform the output of nm in a proper C declaration.
18502global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18503
18504# Transform the output of nm in a C name address pair.
18505global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18506
18507# Transform the output of nm in a C name address pair when lib prefix is needed.
18508global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18509
18510# Specify filename containing input files for \$NM.
18511nm_file_list_spec=$lt_nm_file_list_spec
18512
18513# The root where to search for dependent libraries,and in which our libraries should be installed.
18514lt_sysroot=$lt_sysroot
18515
18516# The name of the directory that contains temporary libtool files.
18517objdir=$objdir
18518
18519# Used to examine libraries when file_magic_cmd begins with "file".
18520MAGIC_CMD=$MAGIC_CMD
18521
18522# Must we lock files when doing compilation?
18523need_locks=$lt_need_locks
18524
18525# Manifest tool.
18526MANIFEST_TOOL=$lt_MANIFEST_TOOL
18527
18528# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18529DSYMUTIL=$lt_DSYMUTIL
18530
18531# Tool to change global to local symbols on Mac OS X.
18532NMEDIT=$lt_NMEDIT
18533
18534# Tool to manipulate fat objects and archives on Mac OS X.
18535LIPO=$lt_LIPO
18536
18537# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18538OTOOL=$lt_OTOOL
18539
18540# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18541OTOOL64=$lt_OTOOL64
18542
18543# Old archive suffix (normally "a").
18544libext=$libext
18545
18546# Shared library suffix (normally ".so").
18547shrext_cmds=$lt_shrext_cmds
18548
18549# The commands to extract the exported symbol list from a shared archive.
18550extract_expsyms_cmds=$lt_extract_expsyms_cmds
18551
18552# Variables whose values should be saved in libtool wrapper scripts and
18553# restored at link time.
18554variables_saved_for_relink=$lt_variables_saved_for_relink
18555
18556# Do we need the "lib" prefix for modules?
18557need_lib_prefix=$need_lib_prefix
18558
18559# Do we need a version for libraries?
18560need_version=$need_version
18561
18562# Library versioning type.
18563version_type=$version_type
18564
18565# Shared library runtime path variable.
18566runpath_var=$runpath_var
18567
18568# Shared library path variable.
18569shlibpath_var=$shlibpath_var
18570
18571# Is shlibpath searched before the hard-coded library search path?
18572shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18573
18574# Format of library name prefix.
18575libname_spec=$lt_libname_spec
18576
18577# List of archive names.  First name is the real one, the rest are links.
18578# The last name is the one that the linker finds with -lNAME
18579library_names_spec=$lt_library_names_spec
18580
18581# The coded name of the library, if different from the real name.
18582soname_spec=$lt_soname_spec
18583
18584# Permission mode override for installation of shared libraries.
18585install_override_mode=$lt_install_override_mode
18586
18587# Command to use after installation of a shared archive.
18588postinstall_cmds=$lt_postinstall_cmds
18589
18590# Command to use after uninstallation of a shared archive.
18591postuninstall_cmds=$lt_postuninstall_cmds
18592
18593# Commands used to finish a libtool library installation in a directory.
18594finish_cmds=$lt_finish_cmds
18595
18596# As "finish_cmds", except a single script fragment to be evaled but
18597# not shown.
18598finish_eval=$lt_finish_eval
18599
18600# Whether we should hardcode library paths into libraries.
18601hardcode_into_libs=$hardcode_into_libs
18602
18603# Compile-time system search path for libraries.
18604sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18605
18606# Run-time system search path for libraries.
18607sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18608
18609# Whether dlopen is supported.
18610dlopen_support=$enable_dlopen
18611
18612# Whether dlopen of programs is supported.
18613dlopen_self=$enable_dlopen_self
18614
18615# Whether dlopen of statically linked programs is supported.
18616dlopen_self_static=$enable_dlopen_self_static
18617
18618# Commands to strip libraries.
18619old_striplib=$lt_old_striplib
18620striplib=$lt_striplib
18621
18622
18623# The linker used to build libraries.
18624LD=$lt_LD
18625
18626# How to create reloadable object files.
18627reload_flag=$lt_reload_flag
18628reload_cmds=$lt_reload_cmds
18629
18630# Commands used to build an old-style archive.
18631old_archive_cmds=$lt_old_archive_cmds
18632
18633# A language specific compiler.
18634CC=$lt_compiler
18635
18636# Is the compiler the GNU compiler?
18637with_gcc=$GCC
18638
18639# Compiler flag to turn off builtin functions.
18640no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18641
18642# Additional compiler flags for building library objects.
18643pic_flag=$lt_lt_prog_compiler_pic
18644
18645# How to pass a linker flag through the compiler.
18646wl=$lt_lt_prog_compiler_wl
18647
18648# Compiler flag to prevent dynamic linking.
18649link_static_flag=$lt_lt_prog_compiler_static
18650
18651# Does compiler simultaneously support -c and -o options?
18652compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18653
18654# Whether or not to add -lc for building shared libraries.
18655build_libtool_need_lc=$archive_cmds_need_lc
18656
18657# Whether or not to disallow shared libs when runtime libs are static.
18658allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18659
18660# Compiler flag to allow reflexive dlopens.
18661export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18662
18663# Compiler flag to generate shared objects directly from archives.
18664whole_archive_flag_spec=$lt_whole_archive_flag_spec
18665
18666# Whether the compiler copes with passing no objects directly.
18667compiler_needs_object=$lt_compiler_needs_object
18668
18669# Create an old-style archive from a shared archive.
18670old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18671
18672# Create a temporary old-style archive to link instead of a shared archive.
18673old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18674
18675# Commands used to build a shared archive.
18676archive_cmds=$lt_archive_cmds
18677archive_expsym_cmds=$lt_archive_expsym_cmds
18678
18679# Commands used to build a loadable module if different from building
18680# a shared archive.
18681module_cmds=$lt_module_cmds
18682module_expsym_cmds=$lt_module_expsym_cmds
18683
18684# Whether we are building with GNU ld or not.
18685with_gnu_ld=$lt_with_gnu_ld
18686
18687# Flag that allows shared libraries with undefined symbols to be built.
18688allow_undefined_flag=$lt_allow_undefined_flag
18689
18690# Flag that enforces no undefined symbols.
18691no_undefined_flag=$lt_no_undefined_flag
18692
18693# Flag to hardcode \$libdir into a binary during linking.
18694# This must work even if \$libdir does not exist
18695hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18696
18697# Whether we need a single "-rpath" flag with a separated argument.
18698hardcode_libdir_separator=$lt_hardcode_libdir_separator
18699
18700# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18701# DIR into the resulting binary.
18702hardcode_direct=$hardcode_direct
18703
18704# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18705# DIR into the resulting binary and the resulting library dependency is
18706# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18707# library is relocated.
18708hardcode_direct_absolute=$hardcode_direct_absolute
18709
18710# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18711# into the resulting binary.
18712hardcode_minus_L=$hardcode_minus_L
18713
18714# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18715# into the resulting binary.
18716hardcode_shlibpath_var=$hardcode_shlibpath_var
18717
18718# Set to "yes" if building a shared library automatically hardcodes DIR
18719# into the library and all subsequent libraries and executables linked
18720# against it.
18721hardcode_automatic=$hardcode_automatic
18722
18723# Set to yes if linker adds runtime paths of dependent libraries
18724# to runtime path list.
18725inherit_rpath=$inherit_rpath
18726
18727# Whether libtool must link a program against all its dependency libraries.
18728link_all_deplibs=$link_all_deplibs
18729
18730# Set to "yes" if exported symbols are required.
18731always_export_symbols=$always_export_symbols
18732
18733# The commands to list exported symbols.
18734export_symbols_cmds=$lt_export_symbols_cmds
18735
18736# Symbols that should not be listed in the preloaded symbols.
18737exclude_expsyms=$lt_exclude_expsyms
18738
18739# Symbols that must always be exported.
18740include_expsyms=$lt_include_expsyms
18741
18742# Commands necessary for linking programs (against libraries) with templates.
18743prelink_cmds=$lt_prelink_cmds
18744
18745# Commands necessary for finishing linking programs.
18746postlink_cmds=$lt_postlink_cmds
18747
18748# Specify filename containing input files.
18749file_list_spec=$lt_file_list_spec
18750
18751# How to hardcode a shared library path into an executable.
18752hardcode_action=$hardcode_action
18753
18754# ### END LIBTOOL CONFIG
18755
18756_LT_EOF
18757
18758  case $host_os in
18759  aix3*)
18760    cat <<\_LT_EOF >> "$cfgfile"
18761# AIX sometimes has problems with the GCC collect2 program.  For some
18762# reason, if we set the COLLECT_NAMES environment variable, the problems
18763# vanish in a puff of smoke.
18764if test "X${COLLECT_NAMES+set}" != Xset; then
18765  COLLECT_NAMES=
18766  export COLLECT_NAMES
18767fi
18768_LT_EOF
18769    ;;
18770  esac
18771
18772
18773ltmain="$ac_aux_dir/ltmain.sh"
18774
18775
18776  # We use sed instead of cat because bash on DJGPP gets confused if
18777  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18778  # text mode, it properly converts lines to CR/LF.  This bash problem
18779  # is reportedly fixed, but why not run on old versions too?
18780  sed '$q' "$ltmain" >> "$cfgfile" \
18781     || (rm -f "$cfgfile"; exit 1)
18782
18783  if test x"$xsi_shell" = xyes; then
18784  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18785func_dirname ()\
18786{\
18787\    case ${1} in\
18788\      */*) func_dirname_result="${1%/*}${2}" ;;\
18789\      *  ) func_dirname_result="${3}" ;;\
18790\    esac\
18791} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18792  && mv -f "$cfgfile.tmp" "$cfgfile" \
18793    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18794test 0 -eq $? || _lt_function_replace_fail=:
18795
18796
18797  sed -e '/^func_basename ()$/,/^} # func_basename /c\
18798func_basename ()\
18799{\
18800\    func_basename_result="${1##*/}"\
18801} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18802  && mv -f "$cfgfile.tmp" "$cfgfile" \
18803    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18804test 0 -eq $? || _lt_function_replace_fail=:
18805
18806
18807  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18808func_dirname_and_basename ()\
18809{\
18810\    case ${1} in\
18811\      */*) func_dirname_result="${1%/*}${2}" ;;\
18812\      *  ) func_dirname_result="${3}" ;;\
18813\    esac\
18814\    func_basename_result="${1##*/}"\
18815} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18816  && mv -f "$cfgfile.tmp" "$cfgfile" \
18817    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18818test 0 -eq $? || _lt_function_replace_fail=:
18819
18820
18821  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18822func_stripname ()\
18823{\
18824\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18825\    # positional parameters, so assign one to ordinary parameter first.\
18826\    func_stripname_result=${3}\
18827\    func_stripname_result=${func_stripname_result#"${1}"}\
18828\    func_stripname_result=${func_stripname_result%"${2}"}\
18829} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18830  && mv -f "$cfgfile.tmp" "$cfgfile" \
18831    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18832test 0 -eq $? || _lt_function_replace_fail=:
18833
18834
18835  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18836func_split_long_opt ()\
18837{\
18838\    func_split_long_opt_name=${1%%=*}\
18839\    func_split_long_opt_arg=${1#*=}\
18840} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18841  && mv -f "$cfgfile.tmp" "$cfgfile" \
18842    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18843test 0 -eq $? || _lt_function_replace_fail=:
18844
18845
18846  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18847func_split_short_opt ()\
18848{\
18849\    func_split_short_opt_arg=${1#??}\
18850\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18851} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18852  && mv -f "$cfgfile.tmp" "$cfgfile" \
18853    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18854test 0 -eq $? || _lt_function_replace_fail=:
18855
18856
18857  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18858func_lo2o ()\
18859{\
18860\    case ${1} in\
18861\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18862\      *)    func_lo2o_result=${1} ;;\
18863\    esac\
18864} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18865  && mv -f "$cfgfile.tmp" "$cfgfile" \
18866    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18867test 0 -eq $? || _lt_function_replace_fail=:
18868
18869
18870  sed -e '/^func_xform ()$/,/^} # func_xform /c\
18871func_xform ()\
18872{\
18873    func_xform_result=${1%.*}.lo\
18874} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18875  && mv -f "$cfgfile.tmp" "$cfgfile" \
18876    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18877test 0 -eq $? || _lt_function_replace_fail=:
18878
18879
18880  sed -e '/^func_arith ()$/,/^} # func_arith /c\
18881func_arith ()\
18882{\
18883    func_arith_result=$(( $* ))\
18884} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18885  && mv -f "$cfgfile.tmp" "$cfgfile" \
18886    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18887test 0 -eq $? || _lt_function_replace_fail=:
18888
18889
18890  sed -e '/^func_len ()$/,/^} # func_len /c\
18891func_len ()\
18892{\
18893    func_len_result=${#1}\
18894} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18895  && mv -f "$cfgfile.tmp" "$cfgfile" \
18896    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18897test 0 -eq $? || _lt_function_replace_fail=:
18898
18899fi
18900
18901if test x"$lt_shell_append" = xyes; then
18902  sed -e '/^func_append ()$/,/^} # func_append /c\
18903func_append ()\
18904{\
18905    eval "${1}+=\\${2}"\
18906} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18907  && mv -f "$cfgfile.tmp" "$cfgfile" \
18908    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18909test 0 -eq $? || _lt_function_replace_fail=:
18910
18911
18912  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18913func_append_quoted ()\
18914{\
18915\    func_quote_for_eval "${2}"\
18916\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18917} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18918  && mv -f "$cfgfile.tmp" "$cfgfile" \
18919    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18920test 0 -eq $? || _lt_function_replace_fail=:
18921
18922
18923  # Save a `func_append' function call where possible by direct use of '+='
18924  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18925    && mv -f "$cfgfile.tmp" "$cfgfile" \
18926      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18927  test 0 -eq $? || _lt_function_replace_fail=:
18928else
18929  # Save a `func_append' function call even when '+=' is not available
18930  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18931    && mv -f "$cfgfile.tmp" "$cfgfile" \
18932      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18933  test 0 -eq $? || _lt_function_replace_fail=:
18934fi
18935
18936if test x"$_lt_function_replace_fail" = x":"; then
18937  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18938$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18939fi
18940
18941
18942   mv -f "$cfgfile" "$ofile" ||
18943    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18944  chmod +x "$ofile"
18945
18946 ;;
18947
18948  esac
18949done # for ac_tag
18950
18951
18952as_fn_exit 0
18953_ACEOF
18954ac_clean_files=$ac_clean_files_save
18955
18956test $ac_write_fail = 0 ||
18957  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18958
18959
18960# configure is writing to config.log, and then calls config.status.
18961# config.status does its own redirection, appending to config.log.
18962# Unfortunately, on DOS this fails, as config.log is still kept open
18963# by configure, so config.status won't be able to write to it; its
18964# output is simply discarded.  So we exec the FD to /dev/null,
18965# effectively closing config.log, so it can be properly (re)opened and
18966# appended to by config.status.  When coming back to configure, we
18967# need to make the FD available again.
18968if test "$no_create" != yes; then
18969  ac_cs_success=:
18970  ac_config_status_args=
18971  test "$silent" = yes &&
18972    ac_config_status_args="$ac_config_status_args --quiet"
18973  exec 5>/dev/null
18974  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18975  exec 5>>config.log
18976  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18977  # would make configure fail if this is the last instruction.
18978  $ac_cs_success || as_fn_exit 1
18979fi
18980if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18981  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18982$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18983fi
18984
18985
18986
18987do_build="mod_cgi mod_fastcgi mod_extforward mod_proxy mod_evhost mod_simple_vhost mod_access mod_alias mod_setenv mod_usertrack mod_auth mod_status mod_accesslog"
18988do_build="$do_build mod_rrdtool mod_secdownload mod_expire mod_compress mod_dirlisting mod_indexfile mod_userdir mod_webdav mod_staticfile mod_scgi mod_flv_streaming"
18989
18990plugins="mod_rewrite mod_redirect mod_ssi mod_trigger_b4_dl"
18991features="regex-conditionals"
18992if test ! "x$PCRE_LIB" = x; then
18993	do_build="$do_build $plugins"
18994	enable_feature="$features"
18995else
18996	no_build="$no_build $plugins"
18997	disable_feature="$features"
18998fi
18999
19000plugins="mod_mysql_vhost"
19001if test ! "x$MYSQL_LIBS" = x; then
19002	do_build="$do_build $plugins"
19003else
19004	no_build="$no_build $plugins"
19005fi
19006
19007plugins="mod_cml mod_magnet"
19008if test ! "x$LUA_LIBS" = x; then
19009	do_build="$do_build $plugins"
19010else
19011	no_build="$no_build $plugins"
19012fi
19013
19014features="storage-gdbm"
19015if test ! "x$GDBM_LIB" = x; then
19016	enable_feature="$enable_feature $features"
19017else
19018	disable_feature="$disable_feature $features"
19019fi
19020
19021features="storage-memcache"
19022if test ! "x$MEMCACHE_LIB" = x; then
19023	enable_feature="$enable_feature $features"
19024else
19025	disable_feature="$disable_feature $features"
19026fi
19027
19028features="compress-gzip compress-deflate"
19029if test ! "x$Z_LIB" = x; then
19030	enable_feature="$enable_feature $features"
19031else
19032	disable_feature="$disable_feature $features"
19033fi
19034
19035features="compress-bzip2"
19036if test ! "x$BZ_LIB" = x; then
19037	enable_feature="$enable_feature $features"
19038else
19039	disable_feature="$disable_feature $features"
19040fi
19041
19042features="auth-ldap"
19043if test ! "x$LDAP_LIB" = x; then
19044	enable_feature="$enable_feature $features"
19045else
19046	disable_feature="$disable_feature $features"
19047fi
19048
19049features="network-openssl"
19050if test ! "x$SSL_LIB" = x; then
19051	enable_feature="$enable_feature $features"
19052else
19053	disable_feature="$disable_feature $features"
19054fi
19055
19056features="auth-crypt"
19057if test "$ac_cv_search_crypt" = no; then
19058	disable_feature="$disable_feature $features"
19059else
19060	enable_feature="$enable_feature $features"
19061fi
19062
19063features="network-ipv6"
19064if test "$ac_cv_ipv6_support" = yes; then
19065	enable_feature="$enable_feature $features"
19066else
19067	disable_feature="$disable_feature $features"
19068fi
19069
19070features="large-files"
19071if test "$enable_lfs" = yes; then
19072	enable_feature="$enable_feature $features"
19073else
19074	disable_feature="$disable_feature $features"
19075fi
19076
19077features="multithreading"
19078if test "$enable_multithreading" = yes; then
19079	enable_feature="$enable_feature $features"
19080else
19081	disable_feature="$disable_feature $features"
19082fi
19083
19084features="stat-cache-fam"
19085if test ! "x$FAM_LIBS" = x; then
19086	enable_feature="$enable_feature $features"
19087else
19088	disable_feature="$disable_feature $features"
19089fi
19090
19091features="webdav-properties"
19092if test "x$XML_LIBS" \!= x -a "x$SQLITE_LIBS" \!= x; then
19093	enable_feature="$enable_feature $features"
19094else
19095	disable_feature="$disable_feature $features"
19096fi
19097
19098features="webdav-locks"
19099if test "x$UUID_LIBS" \!= x; then
19100	enable_feature="$enable_feature $features"
19101else
19102	disable_feature="$disable_feature $features"
19103fi
19104
19105
19106
19107$ECHO
19108$ECHO "Plugins:"
19109$ECHO
19110
19111$ECHO "enabled: "
19112for p in $do_build; do
19113	$ECHO "  $p"
19114done | sort
19115
19116$ECHO "disabled: "
19117for p in $no_build; do
19118	$ECHO "  $p"
19119done | sort
19120
19121$ECHO
19122$ECHO "Features:"
19123$ECHO
19124
19125$ECHO "enabled: "
19126for p in $enable_feature; do
19127	$ECHO "  $p"
19128done | sort
19129
19130$ECHO "disabled: "
19131for p in $disable_feature; do
19132	$ECHO "  $p"
19133done | sort
19134
19135$ECHO
19136