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
835'
836      ac_precious_vars='build_alias
837host_alias
838target_alias
839CC
840CFLAGS
841LDFLAGS
842LIBS
843CPPFLAGS
844CPP
845PKG_CONFIG
846PKG_CONFIG_PATH
847PKG_CONFIG_LIBDIR
848LIBEV_CFLAGS
849LIBEV_LIBS
850FAM_CFLAGS
851FAM_LIBS
852XML_CFLAGS
853XML_LIBS
854SQLITE_CFLAGS
855SQLITE_LIBS
856LUA_CFLAGS
857LUA_LIBS'
858
859
860# Initialize some variables set by options.
861ac_init_help=
862ac_init_version=false
863ac_unrecognized_opts=
864ac_unrecognized_sep=
865# The variables have the same names as the options, with
866# dashes changed to underlines.
867cache_file=/dev/null
868exec_prefix=NONE
869no_create=
870no_recursion=
871prefix=NONE
872program_prefix=NONE
873program_suffix=NONE
874program_transform_name=s,x,x,
875silent=
876site=
877srcdir=
878verbose=
879x_includes=NONE
880x_libraries=NONE
881
882# Installation directory options.
883# These are left unexpanded so users can "make install exec_prefix=/foo"
884# and all the variables that are supposed to be based on exec_prefix
885# by default will actually change.
886# Use braces instead of parens because sh, perl, etc. also accept them.
887# (The list follows the same order as the GNU Coding Standards.)
888bindir='${exec_prefix}/bin'
889sbindir='${exec_prefix}/sbin'
890libexecdir='${exec_prefix}/libexec'
891datarootdir='${prefix}/share'
892datadir='${datarootdir}'
893sysconfdir='${prefix}/etc'
894sharedstatedir='${prefix}/com'
895localstatedir='${prefix}/var'
896includedir='${prefix}/include'
897oldincludedir='/usr/include'
898docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
899infodir='${datarootdir}/info'
900htmldir='${docdir}'
901dvidir='${docdir}'
902pdfdir='${docdir}'
903psdir='${docdir}'
904libdir='${exec_prefix}/lib'
905localedir='${datarootdir}/locale'
906mandir='${datarootdir}/man'
907
908ac_prev=
909ac_dashdash=
910for ac_option
911do
912  # If the previous option needs an argument, assign it.
913  if test -n "$ac_prev"; then
914    eval $ac_prev=\$ac_option
915    ac_prev=
916    continue
917  fi
918
919  case $ac_option in
920  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
921  *=)   ac_optarg= ;;
922  *)    ac_optarg=yes ;;
923  esac
924
925  # Accept the important Cygnus configure options, so we can diagnose typos.
926
927  case $ac_dashdash$ac_option in
928  --)
929    ac_dashdash=yes ;;
930
931  -bindir | --bindir | --bindi | --bind | --bin | --bi)
932    ac_prev=bindir ;;
933  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
934    bindir=$ac_optarg ;;
935
936  -build | --build | --buil | --bui | --bu)
937    ac_prev=build_alias ;;
938  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939    build_alias=$ac_optarg ;;
940
941  -cache-file | --cache-file | --cache-fil | --cache-fi \
942  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943    ac_prev=cache_file ;;
944  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946    cache_file=$ac_optarg ;;
947
948  --config-cache | -C)
949    cache_file=config.cache ;;
950
951  -datadir | --datadir | --datadi | --datad)
952    ac_prev=datadir ;;
953  -datadir=* | --datadir=* | --datadi=* | --datad=*)
954    datadir=$ac_optarg ;;
955
956  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957  | --dataroo | --dataro | --datar)
958    ac_prev=datarootdir ;;
959  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961    datarootdir=$ac_optarg ;;
962
963  -disable-* | --disable-*)
964    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965    # Reject names that are not valid shell variable names.
966    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967      as_fn_error $? "invalid feature name: $ac_useropt"
968    ac_useropt_orig=$ac_useropt
969    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970    case $ac_user_opts in
971      *"
972"enable_$ac_useropt"
973"*) ;;
974      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
975	 ac_unrecognized_sep=', ';;
976    esac
977    eval enable_$ac_useropt=no ;;
978
979  -docdir | --docdir | --docdi | --doc | --do)
980    ac_prev=docdir ;;
981  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
982    docdir=$ac_optarg ;;
983
984  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
985    ac_prev=dvidir ;;
986  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
987    dvidir=$ac_optarg ;;
988
989  -enable-* | --enable-*)
990    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
991    # Reject names that are not valid shell variable names.
992    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993      as_fn_error $? "invalid feature name: $ac_useropt"
994    ac_useropt_orig=$ac_useropt
995    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996    case $ac_user_opts in
997      *"
998"enable_$ac_useropt"
999"*) ;;
1000      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1001	 ac_unrecognized_sep=', ';;
1002    esac
1003    eval enable_$ac_useropt=\$ac_optarg ;;
1004
1005  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1006  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1007  | --exec | --exe | --ex)
1008    ac_prev=exec_prefix ;;
1009  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1010  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1011  | --exec=* | --exe=* | --ex=*)
1012    exec_prefix=$ac_optarg ;;
1013
1014  -gas | --gas | --ga | --g)
1015    # Obsolete; use --with-gas.
1016    with_gas=yes ;;
1017
1018  -help | --help | --hel | --he | -h)
1019    ac_init_help=long ;;
1020  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1021    ac_init_help=recursive ;;
1022  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1023    ac_init_help=short ;;
1024
1025  -host | --host | --hos | --ho)
1026    ac_prev=host_alias ;;
1027  -host=* | --host=* | --hos=* | --ho=*)
1028    host_alias=$ac_optarg ;;
1029
1030  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1031    ac_prev=htmldir ;;
1032  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1033  | --ht=*)
1034    htmldir=$ac_optarg ;;
1035
1036  -includedir | --includedir | --includedi | --included | --include \
1037  | --includ | --inclu | --incl | --inc)
1038    ac_prev=includedir ;;
1039  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1040  | --includ=* | --inclu=* | --incl=* | --inc=*)
1041    includedir=$ac_optarg ;;
1042
1043  -infodir | --infodir | --infodi | --infod | --info | --inf)
1044    ac_prev=infodir ;;
1045  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1046    infodir=$ac_optarg ;;
1047
1048  -libdir | --libdir | --libdi | --libd)
1049    ac_prev=libdir ;;
1050  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1051    libdir=$ac_optarg ;;
1052
1053  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1054  | --libexe | --libex | --libe)
1055    ac_prev=libexecdir ;;
1056  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1057  | --libexe=* | --libex=* | --libe=*)
1058    libexecdir=$ac_optarg ;;
1059
1060  -localedir | --localedir | --localedi | --localed | --locale)
1061    ac_prev=localedir ;;
1062  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1063    localedir=$ac_optarg ;;
1064
1065  -localstatedir | --localstatedir | --localstatedi | --localstated \
1066  | --localstate | --localstat | --localsta | --localst | --locals)
1067    ac_prev=localstatedir ;;
1068  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1069  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1070    localstatedir=$ac_optarg ;;
1071
1072  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1073    ac_prev=mandir ;;
1074  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1075    mandir=$ac_optarg ;;
1076
1077  -nfp | --nfp | --nf)
1078    # Obsolete; use --without-fp.
1079    with_fp=no ;;
1080
1081  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1082  | --no-cr | --no-c | -n)
1083    no_create=yes ;;
1084
1085  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1086  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1087    no_recursion=yes ;;
1088
1089  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1090  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1091  | --oldin | --oldi | --old | --ol | --o)
1092    ac_prev=oldincludedir ;;
1093  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1094  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1095  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1096    oldincludedir=$ac_optarg ;;
1097
1098  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1099    ac_prev=prefix ;;
1100  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1101    prefix=$ac_optarg ;;
1102
1103  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1104  | --program-pre | --program-pr | --program-p)
1105    ac_prev=program_prefix ;;
1106  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1107  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1108    program_prefix=$ac_optarg ;;
1109
1110  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1111  | --program-suf | --program-su | --program-s)
1112    ac_prev=program_suffix ;;
1113  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1114  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1115    program_suffix=$ac_optarg ;;
1116
1117  -program-transform-name | --program-transform-name \
1118  | --program-transform-nam | --program-transform-na \
1119  | --program-transform-n | --program-transform- \
1120  | --program-transform | --program-transfor \
1121  | --program-transfo | --program-transf \
1122  | --program-trans | --program-tran \
1123  | --progr-tra | --program-tr | --program-t)
1124    ac_prev=program_transform_name ;;
1125  -program-transform-name=* | --program-transform-name=* \
1126  | --program-transform-nam=* | --program-transform-na=* \
1127  | --program-transform-n=* | --program-transform-=* \
1128  | --program-transform=* | --program-transfor=* \
1129  | --program-transfo=* | --program-transf=* \
1130  | --program-trans=* | --program-tran=* \
1131  | --progr-tra=* | --program-tr=* | --program-t=*)
1132    program_transform_name=$ac_optarg ;;
1133
1134  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1135    ac_prev=pdfdir ;;
1136  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1137    pdfdir=$ac_optarg ;;
1138
1139  -psdir | --psdir | --psdi | --psd | --ps)
1140    ac_prev=psdir ;;
1141  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1142    psdir=$ac_optarg ;;
1143
1144  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145  | -silent | --silent | --silen | --sile | --sil)
1146    silent=yes ;;
1147
1148  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1149    ac_prev=sbindir ;;
1150  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1151  | --sbi=* | --sb=*)
1152    sbindir=$ac_optarg ;;
1153
1154  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156  | --sharedst | --shareds | --shared | --share | --shar \
1157  | --sha | --sh)
1158    ac_prev=sharedstatedir ;;
1159  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1162  | --sha=* | --sh=*)
1163    sharedstatedir=$ac_optarg ;;
1164
1165  -site | --site | --sit)
1166    ac_prev=site ;;
1167  -site=* | --site=* | --sit=*)
1168    site=$ac_optarg ;;
1169
1170  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1171    ac_prev=srcdir ;;
1172  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173    srcdir=$ac_optarg ;;
1174
1175  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176  | --syscon | --sysco | --sysc | --sys | --sy)
1177    ac_prev=sysconfdir ;;
1178  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180    sysconfdir=$ac_optarg ;;
1181
1182  -target | --target | --targe | --targ | --tar | --ta | --t)
1183    ac_prev=target_alias ;;
1184  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185    target_alias=$ac_optarg ;;
1186
1187  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1188    verbose=yes ;;
1189
1190  -version | --version | --versio | --versi | --vers | -V)
1191    ac_init_version=: ;;
1192
1193  -with-* | --with-*)
1194    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195    # Reject names that are not valid shell variable names.
1196    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197      as_fn_error $? "invalid package name: $ac_useropt"
1198    ac_useropt_orig=$ac_useropt
1199    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200    case $ac_user_opts in
1201      *"
1202"with_$ac_useropt"
1203"*) ;;
1204      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205	 ac_unrecognized_sep=', ';;
1206    esac
1207    eval with_$ac_useropt=\$ac_optarg ;;
1208
1209  -without-* | --without-*)
1210    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211    # Reject names that are not valid shell variable names.
1212    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213      as_fn_error $? "invalid package name: $ac_useropt"
1214    ac_useropt_orig=$ac_useropt
1215    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216    case $ac_user_opts in
1217      *"
1218"with_$ac_useropt"
1219"*) ;;
1220      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221	 ac_unrecognized_sep=', ';;
1222    esac
1223    eval with_$ac_useropt=no ;;
1224
1225  --x)
1226    # Obsolete; use --with-x.
1227    with_x=yes ;;
1228
1229  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230  | --x-incl | --x-inc | --x-in | --x-i)
1231    ac_prev=x_includes ;;
1232  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234    x_includes=$ac_optarg ;;
1235
1236  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238    ac_prev=x_libraries ;;
1239  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241    x_libraries=$ac_optarg ;;
1242
1243  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1244Try \`$0 --help' for more information"
1245    ;;
1246
1247  *=*)
1248    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249    # Reject names that are not valid shell variable names.
1250    case $ac_envvar in #(
1251      '' | [0-9]* | *[!_$as_cr_alnum]* )
1252      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1253    esac
1254    eval $ac_envvar=\$ac_optarg
1255    export $ac_envvar ;;
1256
1257  *)
1258    # FIXME: should be removed in autoconf 3.0.
1259    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1260    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1262    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1263    ;;
1264
1265  esac
1266done
1267
1268if test -n "$ac_prev"; then
1269  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270  as_fn_error $? "missing argument to $ac_option"
1271fi
1272
1273if test -n "$ac_unrecognized_opts"; then
1274  case $enable_option_checking in
1275    no) ;;
1276    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1277    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1278  esac
1279fi
1280
1281# Check all directory arguments for consistency.
1282for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283		datadir sysconfdir sharedstatedir localstatedir includedir \
1284		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285		libdir localedir mandir
1286do
1287  eval ac_val=\$$ac_var
1288  # Remove trailing slashes.
1289  case $ac_val in
1290    */ )
1291      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292      eval $ac_var=\$ac_val;;
1293  esac
1294  # Be sure to have absolute directory names.
1295  case $ac_val in
1296    [\\/$]* | ?:[\\/]* )  continue;;
1297    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298  esac
1299  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1300done
1301
1302# There might be people who depend on the old broken behavior: `$host'
1303# used to hold the argument of --host etc.
1304# FIXME: To remove some day.
1305build=$build_alias
1306host=$host_alias
1307target=$target_alias
1308
1309# FIXME: To remove some day.
1310if test "x$host_alias" != x; then
1311  if test "x$build_alias" = x; then
1312    cross_compiling=maybe
1313  elif test "x$build_alias" != "x$host_alias"; then
1314    cross_compiling=yes
1315  fi
1316fi
1317
1318ac_tool_prefix=
1319test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320
1321test "$silent" = yes && exec 6>/dev/null
1322
1323
1324ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325ac_ls_di=`ls -di .` &&
1326ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327  as_fn_error $? "working directory cannot be determined"
1328test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329  as_fn_error $? "pwd does not report name of working directory"
1330
1331
1332# Find the source files, if location was not specified.
1333if test -z "$srcdir"; then
1334  ac_srcdir_defaulted=yes
1335  # Try the directory containing this script, then the parent directory.
1336  ac_confdir=`$as_dirname -- "$as_myself" ||
1337$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338	 X"$as_myself" : 'X\(//\)[^/]' \| \
1339	 X"$as_myself" : 'X\(//\)$' \| \
1340	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341$as_echo X"$as_myself" |
1342    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343	    s//\1/
1344	    q
1345	  }
1346	  /^X\(\/\/\)[^/].*/{
1347	    s//\1/
1348	    q
1349	  }
1350	  /^X\(\/\/\)$/{
1351	    s//\1/
1352	    q
1353	  }
1354	  /^X\(\/\).*/{
1355	    s//\1/
1356	    q
1357	  }
1358	  s/.*/./; q'`
1359  srcdir=$ac_confdir
1360  if test ! -r "$srcdir/$ac_unique_file"; then
1361    srcdir=..
1362  fi
1363else
1364  ac_srcdir_defaulted=no
1365fi
1366if test ! -r "$srcdir/$ac_unique_file"; then
1367  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1369fi
1370ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371ac_abs_confdir=`(
1372	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1373	pwd)`
1374# When building in place, set srcdir=.
1375if test "$ac_abs_confdir" = "$ac_pwd"; then
1376  srcdir=.
1377fi
1378# Remove unnecessary trailing slashes from srcdir.
1379# Double slashes in file names in object file debugging info
1380# mess up M-x gdb in Emacs.
1381case $srcdir in
1382*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383esac
1384for ac_var in $ac_precious_vars; do
1385  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386  eval ac_env_${ac_var}_value=\$${ac_var}
1387  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389done
1390
1391#
1392# Report the --help message.
1393#
1394if test "$ac_init_help" = "long"; then
1395  # Omit some internal or obsolete options to make the list less imposing.
1396  # This message is too long to be a string in the A/UX 3.1 sh.
1397  cat <<_ACEOF
1398\`configure' configures lighttpd 1.4.32 to adapt to many kinds of systems.
1399
1400Usage: $0 [OPTION]... [VAR=VALUE]...
1401
1402To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403VAR=VALUE.  See below for descriptions of some of the useful variables.
1404
1405Defaults for the options are specified in brackets.
1406
1407Configuration:
1408  -h, --help              display this help and exit
1409      --help=short        display options specific to this package
1410      --help=recursive    display the short help of all the included packages
1411  -V, --version           display version information and exit
1412  -q, --quiet, --silent   do not print \`checking ...' messages
1413      --cache-file=FILE   cache test results in FILE [disabled]
1414  -C, --config-cache      alias for \`--cache-file=config.cache'
1415  -n, --no-create         do not create output files
1416      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1417
1418Installation directories:
1419  --prefix=PREFIX         install architecture-independent files in PREFIX
1420                          [$ac_default_prefix]
1421  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1422                          [PREFIX]
1423
1424By default, \`make install' will install all the files in
1425\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1426an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427for instance \`--prefix=\$HOME'.
1428
1429For better control, use the options below.
1430
1431Fine tuning of the installation directories:
1432  --bindir=DIR            user executables [EPREFIX/bin]
1433  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1434  --libexecdir=DIR        program executables [EPREFIX/libexec]
1435  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1436  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1437  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1438  --libdir=DIR            object code libraries [EPREFIX/lib]
1439  --includedir=DIR        C header files [PREFIX/include]
1440  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1441  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1442  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1443  --infodir=DIR           info documentation [DATAROOTDIR/info]
1444  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1445  --mandir=DIR            man documentation [DATAROOTDIR/man]
1446  --docdir=DIR            documentation root [DATAROOTDIR/doc/lighttpd]
1447  --htmldir=DIR           html documentation [DOCDIR]
1448  --dvidir=DIR            dvi documentation [DOCDIR]
1449  --pdfdir=DIR            pdf documentation [DOCDIR]
1450  --psdir=DIR             ps documentation [DOCDIR]
1451_ACEOF
1452
1453  cat <<\_ACEOF
1454
1455Program names:
1456  --program-prefix=PREFIX            prepend PREFIX to installed program names
1457  --program-suffix=SUFFIX            append SUFFIX to installed program names
1458  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1459
1460System types:
1461  --build=BUILD     configure for building on BUILD [guessed]
1462  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1463  --target=TARGET   configure for building compilers for TARGET [HOST]
1464_ACEOF
1465fi
1466
1467if test -n "$ac_init_help"; then
1468  case $ac_init_help in
1469     short | recursive ) echo "Configuration of lighttpd 1.4.32:";;
1470   esac
1471  cat <<\_ACEOF
1472
1473Optional Features:
1474  --disable-option-checking  ignore unrecognized --enable/--with options
1475  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1476  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1477  --enable-silent-rules          less verbose build output (undo: `make V=1')
1478  --disable-silent-rules         verbose build output (undo: `make V=0')
1479  --disable-dependency-tracking  speeds up one-time build
1480  --enable-dependency-tracking   do not reject slow dependency extractors
1481  --enable-static[=PKGS]  build static libraries [default=no]
1482  --enable-shared[=PKGS]  build shared libraries [default=yes]
1483  --enable-fast-install[=PKGS]
1484                          optimize for fast installation [default=yes]
1485  --disable-libtool-lock  avoid locking (might break parallel builds)
1486  --enable-lfs            Turn on Large File System (default)
1487  --disable-ipv6          disable IPv6 support
1488  --enable-mmap           use mmap if available (DANGEROUS, allows local users
1489                          to trigger SIGBUS crashes)
1490  --enable-extra-warnings enable extra warnings (gcc specific)
1491  --enable-multithreading enable posix multi-threading support
1492
1493Optional Packages:
1494  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1495  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1496  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1497  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1498                          both]
1499  --with-sysroot=DIR Search for dependent libraries within DIR
1500                        (or the compiler's sysroot if not specified).
1501  --with-libev[=PATH]     Include libev support for fdevent handlers in
1502                          PATH/include and PATH/lib
1503  --with-mysql[=PATH]     Include MySQL support. PATH is the path to
1504                          'mysql_config'
1505  --with-ldap             enable LDAP support
1506  --with-attr             enable extended attribute support
1507  --with-valgrind         enable internal support for valgrind
1508  --with-openssl[=DIR]    Include openssl support (default no)
1509  --with-openssl-includes=DIR
1510                          OpenSSL includes
1511  --with-openssl-libs=DIR OpenSSL libraries
1512  --with-kerberos5        use Kerberos5 support with OpenSSL
1513  --with-pcre             Enable pcre support (default yes)
1514  --with-zlib             Enable zlib support for mod_compress
1515  --with-bzip2            Enable bzip2 support for mod_compress
1516  --with-fam              fam/gamin for reducing number of stat() calls
1517  --with-webdav-props     properties in mod_webdav
1518  --with-webdav-locks     locks in mod_webdav
1519  --with-gdbm             gdbm storage for mod_trigger_b4_dl
1520  --with-memcache         memcached storage for mod_trigger_b4_dl
1521  --with-lua              lua engine for mod_cml
1522  --with-libmtcp[=PATH]   Include libmtcp support in PATH/include and PATH/lib
1523  --with-libpsio[=PATH]   Include libpsio support in PATH/include and PATH/lib
1524  --with-libdpdk[=PATH]   Include libdpdk support in PATH/include and PATH/lib
1525
1526Some influential environment variables:
1527  CC          C compiler command
1528  CFLAGS      C compiler flags
1529  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1530              nonstandard directory <lib dir>
1531  LIBS        libraries to pass to the linker, e.g. -l<library>
1532  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1533              you have headers in a nonstandard directory <include dir>
1534  CPP         C preprocessor
1535  PKG_CONFIG  path to pkg-config utility
1536  PKG_CONFIG_PATH
1537              directories to add to pkg-config's search path
1538  PKG_CONFIG_LIBDIR
1539              path overriding pkg-config's built-in search path
1540  LIBEV_CFLAGS
1541              C compiler flags for LIBEV, overriding pkg-config
1542  LIBEV_LIBS  linker flags for LIBEV, overriding pkg-config
1543  FAM_CFLAGS  C compiler flags for FAM, overriding pkg-config
1544  FAM_LIBS    linker flags for FAM, overriding pkg-config
1545  XML_CFLAGS  C compiler flags for XML, overriding pkg-config
1546  XML_LIBS    linker flags for XML, overriding pkg-config
1547  SQLITE_CFLAGS
1548              C compiler flags for SQLITE, overriding pkg-config
1549  SQLITE_LIBS linker flags for SQLITE, overriding pkg-config
1550  LUA_CFLAGS  C compiler flags for LUA, overriding pkg-config
1551  LUA_LIBS    linker flags for LUA, overriding pkg-config
1552
1553Use these variables to override the choices made by `configure' or to help
1554it to find libraries and programs with nonstandard names/locations.
1555
1556Report bugs to <contact@lighttpd.net>.
1557_ACEOF
1558ac_status=$?
1559fi
1560
1561if test "$ac_init_help" = "recursive"; then
1562  # If there are subdirs, report their specific --help.
1563  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1564    test -d "$ac_dir" ||
1565      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1566      continue
1567    ac_builddir=.
1568
1569case "$ac_dir" in
1570.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571*)
1572  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1573  # A ".." for each directory in $ac_dir_suffix.
1574  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1575  case $ac_top_builddir_sub in
1576  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1577  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1578  esac ;;
1579esac
1580ac_abs_top_builddir=$ac_pwd
1581ac_abs_builddir=$ac_pwd$ac_dir_suffix
1582# for backward compatibility:
1583ac_top_builddir=$ac_top_build_prefix
1584
1585case $srcdir in
1586  .)  # We are building in place.
1587    ac_srcdir=.
1588    ac_top_srcdir=$ac_top_builddir_sub
1589    ac_abs_top_srcdir=$ac_pwd ;;
1590  [\\/]* | ?:[\\/]* )  # Absolute name.
1591    ac_srcdir=$srcdir$ac_dir_suffix;
1592    ac_top_srcdir=$srcdir
1593    ac_abs_top_srcdir=$srcdir ;;
1594  *) # Relative name.
1595    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1596    ac_top_srcdir=$ac_top_build_prefix$srcdir
1597    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1598esac
1599ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1600
1601    cd "$ac_dir" || { ac_status=$?; continue; }
1602    # Check for guested configure.
1603    if test -f "$ac_srcdir/configure.gnu"; then
1604      echo &&
1605      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1606    elif test -f "$ac_srcdir/configure"; then
1607      echo &&
1608      $SHELL "$ac_srcdir/configure" --help=recursive
1609    else
1610      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1611    fi || ac_status=$?
1612    cd "$ac_pwd" || { ac_status=$?; break; }
1613  done
1614fi
1615
1616test -n "$ac_init_help" && exit $ac_status
1617if $ac_init_version; then
1618  cat <<\_ACEOF
1619lighttpd configure 1.4.32
1620generated by GNU Autoconf 2.69
1621
1622Copyright (C) 2012 Free Software Foundation, Inc.
1623This configure script is free software; the Free Software Foundation
1624gives unlimited permission to copy, distribute and modify it.
1625_ACEOF
1626  exit
1627fi
1628
1629## ------------------------ ##
1630## Autoconf initialization. ##
1631## ------------------------ ##
1632
1633# ac_fn_c_try_compile LINENO
1634# --------------------------
1635# Try to compile conftest.$ac_ext, and return whether this succeeded.
1636ac_fn_c_try_compile ()
1637{
1638  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639  rm -f conftest.$ac_objext
1640  if { { ac_try="$ac_compile"
1641case "(($ac_try" in
1642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643  *) ac_try_echo=$ac_try;;
1644esac
1645eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646$as_echo "$ac_try_echo"; } >&5
1647  (eval "$ac_compile") 2>conftest.err
1648  ac_status=$?
1649  if test -s conftest.err; then
1650    grep -v '^ *+' conftest.err >conftest.er1
1651    cat conftest.er1 >&5
1652    mv -f conftest.er1 conftest.err
1653  fi
1654  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655  test $ac_status = 0; } && {
1656	 test -z "$ac_c_werror_flag" ||
1657	 test ! -s conftest.err
1658       } && test -s conftest.$ac_objext; then :
1659  ac_retval=0
1660else
1661  $as_echo "$as_me: failed program was:" >&5
1662sed 's/^/| /' conftest.$ac_ext >&5
1663
1664	ac_retval=1
1665fi
1666  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667  as_fn_set_status $ac_retval
1668
1669} # ac_fn_c_try_compile
1670
1671# ac_fn_c_try_cpp LINENO
1672# ----------------------
1673# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1674ac_fn_c_try_cpp ()
1675{
1676  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677  if { { ac_try="$ac_cpp conftest.$ac_ext"
1678case "(($ac_try" in
1679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680  *) ac_try_echo=$ac_try;;
1681esac
1682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683$as_echo "$ac_try_echo"; } >&5
1684  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1685  ac_status=$?
1686  if test -s conftest.err; then
1687    grep -v '^ *+' conftest.err >conftest.er1
1688    cat conftest.er1 >&5
1689    mv -f conftest.er1 conftest.err
1690  fi
1691  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692  test $ac_status = 0; } > conftest.i && {
1693	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1694	 test ! -s conftest.err
1695       }; then :
1696  ac_retval=0
1697else
1698  $as_echo "$as_me: failed program was:" >&5
1699sed 's/^/| /' conftest.$ac_ext >&5
1700
1701    ac_retval=1
1702fi
1703  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704  as_fn_set_status $ac_retval
1705
1706} # ac_fn_c_try_cpp
1707
1708# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1709# -------------------------------------------------------
1710# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1711# the include files in INCLUDES and setting the cache variable VAR
1712# accordingly.
1713ac_fn_c_check_header_mongrel ()
1714{
1715  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716  if eval \${$3+:} false; then :
1717  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1718$as_echo_n "checking for $2... " >&6; }
1719if eval \${$3+:} false; then :
1720  $as_echo_n "(cached) " >&6
1721fi
1722eval ac_res=\$$3
1723	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1724$as_echo "$ac_res" >&6; }
1725else
1726  # Is the header compilable?
1727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1728$as_echo_n "checking $2 usability... " >&6; }
1729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730/* end confdefs.h.  */
1731$4
1732#include <$2>
1733_ACEOF
1734if ac_fn_c_try_compile "$LINENO"; then :
1735  ac_header_compiler=yes
1736else
1737  ac_header_compiler=no
1738fi
1739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1741$as_echo "$ac_header_compiler" >&6; }
1742
1743# Is the header present?
1744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1745$as_echo_n "checking $2 presence... " >&6; }
1746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747/* end confdefs.h.  */
1748#include <$2>
1749_ACEOF
1750if ac_fn_c_try_cpp "$LINENO"; then :
1751  ac_header_preproc=yes
1752else
1753  ac_header_preproc=no
1754fi
1755rm -f conftest.err conftest.i conftest.$ac_ext
1756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1757$as_echo "$ac_header_preproc" >&6; }
1758
1759# So?  What about this header?
1760case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1761  yes:no: )
1762    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1763$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1764    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1765$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1766    ;;
1767  no:yes:* )
1768    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1769$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1770    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1771$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1772    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1773$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1774    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1775$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1776    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1777$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1778( $as_echo "## ----------------------------------- ##
1779## Report this to [email protected] ##
1780## ----------------------------------- ##"
1781     ) | sed "s/^/$as_me: WARNING:     /" >&2
1782    ;;
1783esac
1784  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785$as_echo_n "checking for $2... " >&6; }
1786if eval \${$3+:} false; then :
1787  $as_echo_n "(cached) " >&6
1788else
1789  eval "$3=\$ac_header_compiler"
1790fi
1791eval ac_res=\$$3
1792	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793$as_echo "$ac_res" >&6; }
1794fi
1795  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796
1797} # ac_fn_c_check_header_mongrel
1798
1799# ac_fn_c_try_run LINENO
1800# ----------------------
1801# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1802# that executables *can* be run.
1803ac_fn_c_try_run ()
1804{
1805  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806  if { { ac_try="$ac_link"
1807case "(($ac_try" in
1808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809  *) ac_try_echo=$ac_try;;
1810esac
1811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812$as_echo "$ac_try_echo"; } >&5
1813  (eval "$ac_link") 2>&5
1814  ac_status=$?
1815  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1817  { { case "(($ac_try" in
1818  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819  *) ac_try_echo=$ac_try;;
1820esac
1821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822$as_echo "$ac_try_echo"; } >&5
1823  (eval "$ac_try") 2>&5
1824  ac_status=$?
1825  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826  test $ac_status = 0; }; }; then :
1827  ac_retval=0
1828else
1829  $as_echo "$as_me: program exited with status $ac_status" >&5
1830       $as_echo "$as_me: failed program was:" >&5
1831sed 's/^/| /' conftest.$ac_ext >&5
1832
1833       ac_retval=$ac_status
1834fi
1835  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1836  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837  as_fn_set_status $ac_retval
1838
1839} # ac_fn_c_try_run
1840
1841# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1842# -------------------------------------------------------
1843# Tests whether HEADER exists and can be compiled using the include files in
1844# INCLUDES, setting the cache variable VAR accordingly.
1845ac_fn_c_check_header_compile ()
1846{
1847  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1849$as_echo_n "checking for $2... " >&6; }
1850if eval \${$3+:} false; then :
1851  $as_echo_n "(cached) " >&6
1852else
1853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854/* end confdefs.h.  */
1855$4
1856#include <$2>
1857_ACEOF
1858if ac_fn_c_try_compile "$LINENO"; then :
1859  eval "$3=yes"
1860else
1861  eval "$3=no"
1862fi
1863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1864fi
1865eval ac_res=\$$3
1866	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867$as_echo "$ac_res" >&6; }
1868  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869
1870} # ac_fn_c_check_header_compile
1871
1872# ac_fn_c_try_link LINENO
1873# -----------------------
1874# Try to link conftest.$ac_ext, and return whether this succeeded.
1875ac_fn_c_try_link ()
1876{
1877  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878  rm -f conftest.$ac_objext conftest$ac_exeext
1879  if { { ac_try="$ac_link"
1880case "(($ac_try" in
1881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882  *) ac_try_echo=$ac_try;;
1883esac
1884eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885$as_echo "$ac_try_echo"; } >&5
1886  (eval "$ac_link") 2>conftest.err
1887  ac_status=$?
1888  if test -s conftest.err; then
1889    grep -v '^ *+' conftest.err >conftest.er1
1890    cat conftest.er1 >&5
1891    mv -f conftest.er1 conftest.err
1892  fi
1893  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894  test $ac_status = 0; } && {
1895	 test -z "$ac_c_werror_flag" ||
1896	 test ! -s conftest.err
1897       } && test -s conftest$ac_exeext && {
1898	 test "$cross_compiling" = yes ||
1899	 test -x conftest$ac_exeext
1900       }; then :
1901  ac_retval=0
1902else
1903  $as_echo "$as_me: failed program was:" >&5
1904sed 's/^/| /' conftest.$ac_ext >&5
1905
1906	ac_retval=1
1907fi
1908  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1909  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1910  # interfere with the next link command; also delete a directory that is
1911  # left behind by Apple's compiler.  We do this before executing the actions.
1912  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1913  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914  as_fn_set_status $ac_retval
1915
1916} # ac_fn_c_try_link
1917
1918# ac_fn_c_check_func LINENO FUNC VAR
1919# ----------------------------------
1920# Tests whether FUNC exists, setting the cache variable VAR accordingly
1921ac_fn_c_check_func ()
1922{
1923  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925$as_echo_n "checking for $2... " >&6; }
1926if eval \${$3+:} false; then :
1927  $as_echo_n "(cached) " >&6
1928else
1929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930/* end confdefs.h.  */
1931/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1932   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1933#define $2 innocuous_$2
1934
1935/* System header to define __stub macros and hopefully few prototypes,
1936    which can conflict with char $2 (); below.
1937    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1938    <limits.h> exists even on freestanding compilers.  */
1939
1940#ifdef __STDC__
1941# include <limits.h>
1942#else
1943# include <assert.h>
1944#endif
1945
1946#undef $2
1947
1948/* Override any GCC internal prototype to avoid an error.
1949   Use char because int might match the return type of a GCC
1950   builtin and then its argument prototype would still apply.  */
1951#ifdef __cplusplus
1952extern "C"
1953#endif
1954char $2 ();
1955/* The GNU C library defines this for functions which it implements
1956    to always fail with ENOSYS.  Some functions are actually named
1957    something starting with __ and the normal name is an alias.  */
1958#if defined __stub_$2 || defined __stub___$2
1959choke me
1960#endif
1961
1962int
1963main ()
1964{
1965return $2 ();
1966  ;
1967  return 0;
1968}
1969_ACEOF
1970if ac_fn_c_try_link "$LINENO"; then :
1971  eval "$3=yes"
1972else
1973  eval "$3=no"
1974fi
1975rm -f core conftest.err conftest.$ac_objext \
1976    conftest$ac_exeext conftest.$ac_ext
1977fi
1978eval ac_res=\$$3
1979	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980$as_echo "$ac_res" >&6; }
1981  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982
1983} # ac_fn_c_check_func
1984
1985# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1986# -------------------------------------------
1987# Tests whether TYPE exists after having included INCLUDES, setting cache
1988# variable VAR accordingly.
1989ac_fn_c_check_type ()
1990{
1991  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1993$as_echo_n "checking for $2... " >&6; }
1994if eval \${$3+:} false; then :
1995  $as_echo_n "(cached) " >&6
1996else
1997  eval "$3=no"
1998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999/* end confdefs.h.  */
2000$4
2001int
2002main ()
2003{
2004if (sizeof ($2))
2005	 return 0;
2006  ;
2007  return 0;
2008}
2009_ACEOF
2010if ac_fn_c_try_compile "$LINENO"; then :
2011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012/* end confdefs.h.  */
2013$4
2014int
2015main ()
2016{
2017if (sizeof (($2)))
2018	    return 0;
2019  ;
2020  return 0;
2021}
2022_ACEOF
2023if ac_fn_c_try_compile "$LINENO"; then :
2024
2025else
2026  eval "$3=yes"
2027fi
2028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029fi
2030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2031fi
2032eval ac_res=\$$3
2033	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034$as_echo "$ac_res" >&6; }
2035  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2036
2037} # ac_fn_c_check_type
2038
2039# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2040# ----------------------------------------------------
2041# Tries to find if the field MEMBER exists in type AGGR, after including
2042# INCLUDES, setting cache variable VAR accordingly.
2043ac_fn_c_check_member ()
2044{
2045  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2046  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2047$as_echo_n "checking for $2.$3... " >&6; }
2048if eval \${$4+:} false; then :
2049  $as_echo_n "(cached) " >&6
2050else
2051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052/* end confdefs.h.  */
2053$5
2054int
2055main ()
2056{
2057static $2 ac_aggr;
2058if (ac_aggr.$3)
2059return 0;
2060  ;
2061  return 0;
2062}
2063_ACEOF
2064if ac_fn_c_try_compile "$LINENO"; then :
2065  eval "$4=yes"
2066else
2067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068/* end confdefs.h.  */
2069$5
2070int
2071main ()
2072{
2073static $2 ac_aggr;
2074if (sizeof ac_aggr.$3)
2075return 0;
2076  ;
2077  return 0;
2078}
2079_ACEOF
2080if ac_fn_c_try_compile "$LINENO"; then :
2081  eval "$4=yes"
2082else
2083  eval "$4=no"
2084fi
2085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086fi
2087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2088fi
2089eval ac_res=\$$4
2090	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2091$as_echo "$ac_res" >&6; }
2092  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2093
2094} # ac_fn_c_check_member
2095
2096# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2097# --------------------------------------------
2098# Tries to find the compile-time value of EXPR in a program that includes
2099# INCLUDES, setting VAR accordingly. Returns whether the value could be
2100# computed
2101ac_fn_c_compute_int ()
2102{
2103  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2104  if test "$cross_compiling" = yes; then
2105    # Depending upon the size, compute the lo and hi bounds.
2106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107/* end confdefs.h.  */
2108$4
2109int
2110main ()
2111{
2112static int test_array [1 - 2 * !(($2) >= 0)];
2113test_array [0] = 0;
2114return test_array [0];
2115
2116  ;
2117  return 0;
2118}
2119_ACEOF
2120if ac_fn_c_try_compile "$LINENO"; then :
2121  ac_lo=0 ac_mid=0
2122  while :; do
2123    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124/* end confdefs.h.  */
2125$4
2126int
2127main ()
2128{
2129static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2130test_array [0] = 0;
2131return test_array [0];
2132
2133  ;
2134  return 0;
2135}
2136_ACEOF
2137if ac_fn_c_try_compile "$LINENO"; then :
2138  ac_hi=$ac_mid; break
2139else
2140  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2141			if test $ac_lo -le $ac_mid; then
2142			  ac_lo= ac_hi=
2143			  break
2144			fi
2145			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2146fi
2147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148  done
2149else
2150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151/* end confdefs.h.  */
2152$4
2153int
2154main ()
2155{
2156static int test_array [1 - 2 * !(($2) < 0)];
2157test_array [0] = 0;
2158return test_array [0];
2159
2160  ;
2161  return 0;
2162}
2163_ACEOF
2164if ac_fn_c_try_compile "$LINENO"; then :
2165  ac_hi=-1 ac_mid=-1
2166  while :; do
2167    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168/* end confdefs.h.  */
2169$4
2170int
2171main ()
2172{
2173static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2174test_array [0] = 0;
2175return test_array [0];
2176
2177  ;
2178  return 0;
2179}
2180_ACEOF
2181if ac_fn_c_try_compile "$LINENO"; then :
2182  ac_lo=$ac_mid; break
2183else
2184  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2185			if test $ac_mid -le $ac_hi; then
2186			  ac_lo= ac_hi=
2187			  break
2188			fi
2189			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2190fi
2191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2192  done
2193else
2194  ac_lo= ac_hi=
2195fi
2196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197fi
2198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199# Binary search between lo and hi bounds.
2200while test "x$ac_lo" != "x$ac_hi"; do
2201  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203/* end confdefs.h.  */
2204$4
2205int
2206main ()
2207{
2208static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2209test_array [0] = 0;
2210return test_array [0];
2211
2212  ;
2213  return 0;
2214}
2215_ACEOF
2216if ac_fn_c_try_compile "$LINENO"; then :
2217  ac_hi=$ac_mid
2218else
2219  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2220fi
2221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2222done
2223case $ac_lo in #((
2224?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2225'') ac_retval=1 ;;
2226esac
2227  else
2228    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2229/* end confdefs.h.  */
2230$4
2231static long int longval () { return $2; }
2232static unsigned long int ulongval () { return $2; }
2233#include <stdio.h>
2234#include <stdlib.h>
2235int
2236main ()
2237{
2238
2239  FILE *f = fopen ("conftest.val", "w");
2240  if (! f)
2241    return 1;
2242  if (($2) < 0)
2243    {
2244      long int i = longval ();
2245      if (i != ($2))
2246	return 1;
2247      fprintf (f, "%ld", i);
2248    }
2249  else
2250    {
2251      unsigned long int i = ulongval ();
2252      if (i != ($2))
2253	return 1;
2254      fprintf (f, "%lu", i);
2255    }
2256  /* Do not output a trailing newline, as this causes \r\n confusion
2257     on some platforms.  */
2258  return ferror (f) || fclose (f) != 0;
2259
2260  ;
2261  return 0;
2262}
2263_ACEOF
2264if ac_fn_c_try_run "$LINENO"; then :
2265  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2266else
2267  ac_retval=1
2268fi
2269rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2270  conftest.$ac_objext conftest.beam conftest.$ac_ext
2271rm -f conftest.val
2272
2273  fi
2274  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2275  as_fn_set_status $ac_retval
2276
2277} # ac_fn_c_compute_int
2278cat >config.log <<_ACEOF
2279This file contains any messages produced by compilers while
2280running configure, to aid debugging if configure makes a mistake.
2281
2282It was created by lighttpd $as_me 1.4.32, which was
2283generated by GNU Autoconf 2.69.  Invocation command line was
2284
2285  $ $0 $@
2286
2287_ACEOF
2288exec 5>>config.log
2289{
2290cat <<_ASUNAME
2291## --------- ##
2292## Platform. ##
2293## --------- ##
2294
2295hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2296uname -m = `(uname -m) 2>/dev/null || echo unknown`
2297uname -r = `(uname -r) 2>/dev/null || echo unknown`
2298uname -s = `(uname -s) 2>/dev/null || echo unknown`
2299uname -v = `(uname -v) 2>/dev/null || echo unknown`
2300
2301/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2302/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2303
2304/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2305/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2306/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2307/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2308/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2309/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2310/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2311
2312_ASUNAME
2313
2314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315for as_dir in $PATH
2316do
2317  IFS=$as_save_IFS
2318  test -z "$as_dir" && as_dir=.
2319    $as_echo "PATH: $as_dir"
2320  done
2321IFS=$as_save_IFS
2322
2323} >&5
2324
2325cat >&5 <<_ACEOF
2326
2327
2328## ----------- ##
2329## Core tests. ##
2330## ----------- ##
2331
2332_ACEOF
2333
2334
2335# Keep a trace of the command line.
2336# Strip out --no-create and --no-recursion so they do not pile up.
2337# Strip out --silent because we don't want to record it for future runs.
2338# Also quote any args containing shell meta-characters.
2339# Make two passes to allow for proper duplicate-argument suppression.
2340ac_configure_args=
2341ac_configure_args0=
2342ac_configure_args1=
2343ac_must_keep_next=false
2344for ac_pass in 1 2
2345do
2346  for ac_arg
2347  do
2348    case $ac_arg in
2349    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2350    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2351    | -silent | --silent | --silen | --sile | --sil)
2352      continue ;;
2353    *\'*)
2354      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2355    esac
2356    case $ac_pass in
2357    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2358    2)
2359      as_fn_append ac_configure_args1 " '$ac_arg'"
2360      if test $ac_must_keep_next = true; then
2361	ac_must_keep_next=false # Got value, back to normal.
2362      else
2363	case $ac_arg in
2364	  *=* | --config-cache | -C | -disable-* | --disable-* \
2365	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2366	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2367	  | -with-* | --with-* | -without-* | --without-* | --x)
2368	    case "$ac_configure_args0 " in
2369	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2370	    esac
2371	    ;;
2372	  -* ) ac_must_keep_next=true ;;
2373	esac
2374      fi
2375      as_fn_append ac_configure_args " '$ac_arg'"
2376      ;;
2377    esac
2378  done
2379done
2380{ ac_configure_args0=; unset ac_configure_args0;}
2381{ ac_configure_args1=; unset ac_configure_args1;}
2382
2383# When interrupted or exit'd, cleanup temporary files, and complete
2384# config.log.  We remove comments because anyway the quotes in there
2385# would cause problems or look ugly.
2386# WARNING: Use '\'' to represent an apostrophe within the trap.
2387# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2388trap 'exit_status=$?
2389  # Save into config.log some information that might help in debugging.
2390  {
2391    echo
2392
2393    $as_echo "## ---------------- ##
2394## Cache variables. ##
2395## ---------------- ##"
2396    echo
2397    # The following way of writing the cache mishandles newlines in values,
2398(
2399  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2400    eval ac_val=\$$ac_var
2401    case $ac_val in #(
2402    *${as_nl}*)
2403      case $ac_var in #(
2404      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2405$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2406      esac
2407      case $ac_var in #(
2408      _ | IFS | as_nl) ;; #(
2409      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2410      *) { eval $ac_var=; unset $ac_var;} ;;
2411      esac ;;
2412    esac
2413  done
2414  (set) 2>&1 |
2415    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2416    *${as_nl}ac_space=\ *)
2417      sed -n \
2418	"s/'\''/'\''\\\\'\'''\''/g;
2419	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2420      ;; #(
2421    *)
2422      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2423      ;;
2424    esac |
2425    sort
2426)
2427    echo
2428
2429    $as_echo "## ----------------- ##
2430## Output variables. ##
2431## ----------------- ##"
2432    echo
2433    for ac_var in $ac_subst_vars
2434    do
2435      eval ac_val=\$$ac_var
2436      case $ac_val in
2437      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2438      esac
2439      $as_echo "$ac_var='\''$ac_val'\''"
2440    done | sort
2441    echo
2442
2443    if test -n "$ac_subst_files"; then
2444      $as_echo "## ------------------- ##
2445## File substitutions. ##
2446## ------------------- ##"
2447      echo
2448      for ac_var in $ac_subst_files
2449      do
2450	eval ac_val=\$$ac_var
2451	case $ac_val in
2452	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2453	esac
2454	$as_echo "$ac_var='\''$ac_val'\''"
2455      done | sort
2456      echo
2457    fi
2458
2459    if test -s confdefs.h; then
2460      $as_echo "## ----------- ##
2461## confdefs.h. ##
2462## ----------- ##"
2463      echo
2464      cat confdefs.h
2465      echo
2466    fi
2467    test "$ac_signal" != 0 &&
2468      $as_echo "$as_me: caught signal $ac_signal"
2469    $as_echo "$as_me: exit $exit_status"
2470  } >&5
2471  rm -f core *.core core.conftest.* &&
2472    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2473    exit $exit_status
2474' 0
2475for ac_signal in 1 2 13 15; do
2476  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2477done
2478ac_signal=0
2479
2480# confdefs.h avoids OS command line length limits that DEFS can exceed.
2481rm -f -r conftest* confdefs.h
2482
2483$as_echo "/* confdefs.h */" > confdefs.h
2484
2485# Predefined preprocessor variables.
2486
2487cat >>confdefs.h <<_ACEOF
2488#define PACKAGE_NAME "$PACKAGE_NAME"
2489_ACEOF
2490
2491cat >>confdefs.h <<_ACEOF
2492#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2493_ACEOF
2494
2495cat >>confdefs.h <<_ACEOF
2496#define PACKAGE_VERSION "$PACKAGE_VERSION"
2497_ACEOF
2498
2499cat >>confdefs.h <<_ACEOF
2500#define PACKAGE_STRING "$PACKAGE_STRING"
2501_ACEOF
2502
2503cat >>confdefs.h <<_ACEOF
2504#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2505_ACEOF
2506
2507cat >>confdefs.h <<_ACEOF
2508#define PACKAGE_URL "$PACKAGE_URL"
2509_ACEOF
2510
2511
2512# Let the site file select an alternate cache file if it wants to.
2513# Prefer an explicitly selected file to automatically selected ones.
2514ac_site_file1=NONE
2515ac_site_file2=NONE
2516if test -n "$CONFIG_SITE"; then
2517  # We do not want a PATH search for config.site.
2518  case $CONFIG_SITE in #((
2519    -*)  ac_site_file1=./$CONFIG_SITE;;
2520    */*) ac_site_file1=$CONFIG_SITE;;
2521    *)   ac_site_file1=./$CONFIG_SITE;;
2522  esac
2523elif test "x$prefix" != xNONE; then
2524  ac_site_file1=$prefix/share/config.site
2525  ac_site_file2=$prefix/etc/config.site
2526else
2527  ac_site_file1=$ac_default_prefix/share/config.site
2528  ac_site_file2=$ac_default_prefix/etc/config.site
2529fi
2530for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2531do
2532  test "x$ac_site_file" = xNONE && continue
2533  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2534    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2535$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2536    sed 's/^/| /' "$ac_site_file" >&5
2537    . "$ac_site_file" \
2538      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2539$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2540as_fn_error $? "failed to load site script $ac_site_file
2541See \`config.log' for more details" "$LINENO" 5; }
2542  fi
2543done
2544
2545if test -r "$cache_file"; then
2546  # Some versions of bash will fail to source /dev/null (special files
2547  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2548  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2549    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2550$as_echo "$as_me: loading cache $cache_file" >&6;}
2551    case $cache_file in
2552      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2553      *)                      . "./$cache_file";;
2554    esac
2555  fi
2556else
2557  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2558$as_echo "$as_me: creating cache $cache_file" >&6;}
2559  >$cache_file
2560fi
2561
2562# Check that the precious variables saved in the cache have kept the same
2563# value.
2564ac_cache_corrupted=false
2565for ac_var in $ac_precious_vars; do
2566  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2567  eval ac_new_set=\$ac_env_${ac_var}_set
2568  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2569  eval ac_new_val=\$ac_env_${ac_var}_value
2570  case $ac_old_set,$ac_new_set in
2571    set,)
2572      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2573$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2574      ac_cache_corrupted=: ;;
2575    ,set)
2576      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2577$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2578      ac_cache_corrupted=: ;;
2579    ,);;
2580    *)
2581      if test "x$ac_old_val" != "x$ac_new_val"; then
2582	# differences in whitespace do not lead to failure.
2583	ac_old_val_w=`echo x $ac_old_val`
2584	ac_new_val_w=`echo x $ac_new_val`
2585	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2586	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2587$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2588	  ac_cache_corrupted=:
2589	else
2590	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2591$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2592	  eval $ac_var=\$ac_old_val
2593	fi
2594	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2595$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2596	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2597$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2598      fi;;
2599  esac
2600  # Pass precious variables to config.status.
2601  if test "$ac_new_set" = set; then
2602    case $ac_new_val in
2603    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2604    *) ac_arg=$ac_var=$ac_new_val ;;
2605    esac
2606    case " $ac_configure_args " in
2607      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2608      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2609    esac
2610  fi
2611done
2612if $ac_cache_corrupted; then
2613  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2614$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2615  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2616$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2617  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2618fi
2619## -------------------- ##
2620## Main body of script. ##
2621## -------------------- ##
2622
2623ac_ext=c
2624ac_cpp='$CPP $CPPFLAGS'
2625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2627ac_compiler_gnu=$ac_cv_c_compiler_gnu
2628
2629
2630
2631ac_config_headers="$ac_config_headers config.h"
2632
2633
2634
2635ac_aux_dir=
2636for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2637  if test -f "$ac_dir/install-sh"; then
2638    ac_aux_dir=$ac_dir
2639    ac_install_sh="$ac_aux_dir/install-sh -c"
2640    break
2641  elif 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/shtool"; then
2646    ac_aux_dir=$ac_dir
2647    ac_install_sh="$ac_aux_dir/shtool install -c"
2648    break
2649  fi
2650done
2651if test -z "$ac_aux_dir"; then
2652  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2653fi
2654
2655# These three variables are undocumented and unsupported,
2656# and are intended to be withdrawn in a future Autoconf release.
2657# They can cause serious problems if a builder's source tree is in a directory
2658# whose full name contains unusual characters.
2659ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2660ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2661ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2662
2663
2664# Make sure we can run config.sub.
2665$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2666  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2667
2668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2669$as_echo_n "checking build system type... " >&6; }
2670if ${ac_cv_build+:} false; then :
2671  $as_echo_n "(cached) " >&6
2672else
2673  ac_build_alias=$build_alias
2674test "x$ac_build_alias" = x &&
2675  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2676test "x$ac_build_alias" = x &&
2677  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2678ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2679  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2680
2681fi
2682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2683$as_echo "$ac_cv_build" >&6; }
2684case $ac_cv_build in
2685*-*-*) ;;
2686*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2687esac
2688build=$ac_cv_build
2689ac_save_IFS=$IFS; IFS='-'
2690set x $ac_cv_build
2691shift
2692build_cpu=$1
2693build_vendor=$2
2694shift; shift
2695# Remember, the first character of IFS is used to create $*,
2696# except with old shells:
2697build_os=$*
2698IFS=$ac_save_IFS
2699case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2700
2701
2702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2703$as_echo_n "checking host system type... " >&6; }
2704if ${ac_cv_host+:} false; then :
2705  $as_echo_n "(cached) " >&6
2706else
2707  if test "x$host_alias" = x; then
2708  ac_cv_host=$ac_cv_build
2709else
2710  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2711    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2712fi
2713
2714fi
2715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2716$as_echo "$ac_cv_host" >&6; }
2717case $ac_cv_host in
2718*-*-*) ;;
2719*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2720esac
2721host=$ac_cv_host
2722ac_save_IFS=$IFS; IFS='-'
2723set x $ac_cv_host
2724shift
2725host_cpu=$1
2726host_vendor=$2
2727shift; shift
2728# Remember, the first character of IFS is used to create $*,
2729# except with old shells:
2730host_os=$*
2731IFS=$ac_save_IFS
2732case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2733
2734
2735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2736$as_echo_n "checking target system type... " >&6; }
2737if ${ac_cv_target+:} false; then :
2738  $as_echo_n "(cached) " >&6
2739else
2740  if test "x$target_alias" = x; then
2741  ac_cv_target=$ac_cv_host
2742else
2743  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2744    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2745fi
2746
2747fi
2748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2749$as_echo "$ac_cv_target" >&6; }
2750case $ac_cv_target in
2751*-*-*) ;;
2752*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2753esac
2754target=$ac_cv_target
2755ac_save_IFS=$IFS; IFS='-'
2756set x $ac_cv_target
2757shift
2758target_cpu=$1
2759target_vendor=$2
2760shift; shift
2761# Remember, the first character of IFS is used to create $*,
2762# except with old shells:
2763target_os=$*
2764IFS=$ac_save_IFS
2765case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2766
2767
2768# The aliases save the names the user supplied, while $host etc.
2769# will get canonicalized.
2770test -n "$target_alias" &&
2771  test "$program_prefix$program_suffix$program_transform_name" = \
2772    NONENONEs,x,x, &&
2773  program_prefix=${target_alias}-
2774
2775am__api_version='1.11'
2776
2777# Find a good install program.  We prefer a C program (faster),
2778# so one script is as good as another.  But avoid the broken or
2779# incompatible versions:
2780# SysV /etc/install, /usr/sbin/install
2781# SunOS /usr/etc/install
2782# IRIX /sbin/install
2783# AIX /bin/install
2784# AmigaOS /C/install, which installs bootblocks on floppy discs
2785# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2786# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2787# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2788# OS/2's system install, which has a completely different semantic
2789# ./install, which can be erroneously created by make from ./install.sh.
2790# Reject install programs that cannot install multiple files.
2791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2792$as_echo_n "checking for a BSD-compatible install... " >&6; }
2793if test -z "$INSTALL"; then
2794if ${ac_cv_path_install+:} false; then :
2795  $as_echo_n "(cached) " >&6
2796else
2797  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798for as_dir in $PATH
2799do
2800  IFS=$as_save_IFS
2801  test -z "$as_dir" && as_dir=.
2802    # Account for people who put trailing slashes in PATH elements.
2803case $as_dir/ in #((
2804  ./ | .// | /[cC]/* | \
2805  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2806  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2807  /usr/ucb/* ) ;;
2808  *)
2809    # OSF1 and SCO ODT 3.0 have their own names for install.
2810    # Don't use installbsd from OSF since it installs stuff as root
2811    # by default.
2812    for ac_prog in ginstall scoinst install; do
2813      for ac_exec_ext in '' $ac_executable_extensions; do
2814	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2815	  if test $ac_prog = install &&
2816	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2817	    # AIX install.  It has an incompatible calling convention.
2818	    :
2819	  elif test $ac_prog = install &&
2820	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2821	    # program-specific install script used by HP pwplus--don't use.
2822	    :
2823	  else
2824	    rm -rf conftest.one conftest.two conftest.dir
2825	    echo one > conftest.one
2826	    echo two > conftest.two
2827	    mkdir conftest.dir
2828	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2829	      test -s conftest.one && test -s conftest.two &&
2830	      test -s conftest.dir/conftest.one &&
2831	      test -s conftest.dir/conftest.two
2832	    then
2833	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2834	      break 3
2835	    fi
2836	  fi
2837	fi
2838      done
2839    done
2840    ;;
2841esac
2842
2843  done
2844IFS=$as_save_IFS
2845
2846rm -rf conftest.one conftest.two conftest.dir
2847
2848fi
2849  if test "${ac_cv_path_install+set}" = set; then
2850    INSTALL=$ac_cv_path_install
2851  else
2852    # As a last resort, use the slow shell script.  Don't cache a
2853    # value for INSTALL within a source directory, because that will
2854    # break other packages using the cache if that directory is
2855    # removed, or if the value is a relative name.
2856    INSTALL=$ac_install_sh
2857  fi
2858fi
2859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2860$as_echo "$INSTALL" >&6; }
2861
2862# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2863# It thinks the first close brace ends the variable substitution.
2864test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2865
2866test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2867
2868test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2869
2870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2871$as_echo_n "checking whether build environment is sane... " >&6; }
2872# Just in case
2873sleep 1
2874echo timestamp > conftest.file
2875# Reject unsafe characters in $srcdir or the absolute working directory
2876# name.  Accept space and tab only in the latter.
2877am_lf='
2878'
2879case `pwd` in
2880  *[\\\"\#\$\&\'\`$am_lf]*)
2881    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2882esac
2883case $srcdir in
2884  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2885    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2886esac
2887
2888# Do `set' in a subshell so we don't clobber the current shell's
2889# arguments.  Must try -L first in case configure is actually a
2890# symlink; some systems play weird games with the mod time of symlinks
2891# (eg FreeBSD returns the mod time of the symlink's containing
2892# directory).
2893if (
2894   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2895   if test "$*" = "X"; then
2896      # -L didn't work.
2897      set X `ls -t "$srcdir/configure" conftest.file`
2898   fi
2899   rm -f conftest.file
2900   if test "$*" != "X $srcdir/configure conftest.file" \
2901      && test "$*" != "X conftest.file $srcdir/configure"; then
2902
2903      # If neither matched, then we have a broken ls.  This can happen
2904      # if, for instance, CONFIG_SHELL is bash and it inherits a
2905      # broken ls alias from the environment.  This has actually
2906      # happened.  Such a system could not be considered "sane".
2907      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2908alias in your environment" "$LINENO" 5
2909   fi
2910
2911   test "$2" = conftest.file
2912   )
2913then
2914   # Ok.
2915   :
2916else
2917   as_fn_error $? "newly created file is older than distributed files!
2918Check your system clock" "$LINENO" 5
2919fi
2920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2921$as_echo "yes" >&6; }
2922test "$program_prefix" != NONE &&
2923  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2924# Use a double $ so make ignores it.
2925test "$program_suffix" != NONE &&
2926  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2927# Double any \ or $.
2928# By default was `s,x,x', remove it if useless.
2929ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2930program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2931
2932# expand $ac_aux_dir to an absolute path
2933am_aux_dir=`cd $ac_aux_dir && pwd`
2934
2935if test x"${MISSING+set}" != xset; then
2936  case $am_aux_dir in
2937  *\ * | *\	*)
2938    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2939  *)
2940    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2941  esac
2942fi
2943# Use eval to expand $SHELL
2944if eval "$MISSING --run true"; then
2945  am_missing_run="$MISSING --run "
2946else
2947  am_missing_run=
2948  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2949$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2950fi
2951
2952if test x"${install_sh}" != xset; then
2953  case $am_aux_dir in
2954  *\ * | *\	*)
2955    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2956  *)
2957    install_sh="\${SHELL} $am_aux_dir/install-sh"
2958  esac
2959fi
2960
2961# Installed binaries are usually stripped using `strip' when the user
2962# run `make install-strip'.  However `strip' might not be the right
2963# tool to use in cross-compilation environments, therefore Automake
2964# will honor the `STRIP' environment variable to overrule this program.
2965if test "$cross_compiling" != no; then
2966  if test -n "$ac_tool_prefix"; then
2967  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2968set dummy ${ac_tool_prefix}strip; ac_word=$2
2969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970$as_echo_n "checking for $ac_word... " >&6; }
2971if ${ac_cv_prog_STRIP+:} false; then :
2972  $as_echo_n "(cached) " >&6
2973else
2974  if test -n "$STRIP"; then
2975  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2976else
2977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978for as_dir in $PATH
2979do
2980  IFS=$as_save_IFS
2981  test -z "$as_dir" && as_dir=.
2982    for ac_exec_ext in '' $ac_executable_extensions; do
2983  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2984    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2985    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986    break 2
2987  fi
2988done
2989  done
2990IFS=$as_save_IFS
2991
2992fi
2993fi
2994STRIP=$ac_cv_prog_STRIP
2995if test -n "$STRIP"; then
2996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2997$as_echo "$STRIP" >&6; }
2998else
2999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000$as_echo "no" >&6; }
3001fi
3002
3003
3004fi
3005if test -z "$ac_cv_prog_STRIP"; then
3006  ac_ct_STRIP=$STRIP
3007  # Extract the first word of "strip", so it can be a program name with args.
3008set dummy strip; ac_word=$2
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010$as_echo_n "checking for $ac_word... " >&6; }
3011if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3012  $as_echo_n "(cached) " >&6
3013else
3014  if test -n "$ac_ct_STRIP"; then
3015  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3016else
3017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018for as_dir in $PATH
3019do
3020  IFS=$as_save_IFS
3021  test -z "$as_dir" && as_dir=.
3022    for ac_exec_ext in '' $ac_executable_extensions; do
3023  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3024    ac_cv_prog_ac_ct_STRIP="strip"
3025    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026    break 2
3027  fi
3028done
3029  done
3030IFS=$as_save_IFS
3031
3032fi
3033fi
3034ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3035if test -n "$ac_ct_STRIP"; then
3036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3037$as_echo "$ac_ct_STRIP" >&6; }
3038else
3039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040$as_echo "no" >&6; }
3041fi
3042
3043  if test "x$ac_ct_STRIP" = x; then
3044    STRIP=":"
3045  else
3046    case $cross_compiling:$ac_tool_warned in
3047yes:)
3048{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3049$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3050ac_tool_warned=yes ;;
3051esac
3052    STRIP=$ac_ct_STRIP
3053  fi
3054else
3055  STRIP="$ac_cv_prog_STRIP"
3056fi
3057
3058fi
3059INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3060
3061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3062$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3063if test -z "$MKDIR_P"; then
3064  if ${ac_cv_path_mkdir+:} false; then :
3065  $as_echo_n "(cached) " >&6
3066else
3067  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3069do
3070  IFS=$as_save_IFS
3071  test -z "$as_dir" && as_dir=.
3072    for ac_prog in mkdir gmkdir; do
3073	 for ac_exec_ext in '' $ac_executable_extensions; do
3074	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3075	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3076	     'mkdir (GNU coreutils) '* | \
3077	     'mkdir (coreutils) '* | \
3078	     'mkdir (fileutils) '4.1*)
3079	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3080	       break 3;;
3081	   esac
3082	 done
3083       done
3084  done
3085IFS=$as_save_IFS
3086
3087fi
3088
3089  test -d ./--version && rmdir ./--version
3090  if test "${ac_cv_path_mkdir+set}" = set; then
3091    MKDIR_P="$ac_cv_path_mkdir -p"
3092  else
3093    # As a last resort, use the slow shell script.  Don't cache a
3094    # value for MKDIR_P within a source directory, because that will
3095    # break other packages using the cache if that directory is
3096    # removed, or if the value is a relative name.
3097    MKDIR_P="$ac_install_sh -d"
3098  fi
3099fi
3100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3101$as_echo "$MKDIR_P" >&6; }
3102
3103mkdir_p="$MKDIR_P"
3104case $mkdir_p in
3105  [\\/$]* | ?:[\\/]*) ;;
3106  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3107esac
3108
3109for ac_prog in gawk mawk nawk awk
3110do
3111  # Extract the first word of "$ac_prog", so it can be a program name with args.
3112set dummy $ac_prog; ac_word=$2
3113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114$as_echo_n "checking for $ac_word... " >&6; }
3115if ${ac_cv_prog_AWK+:} false; then :
3116  $as_echo_n "(cached) " >&6
3117else
3118  if test -n "$AWK"; then
3119  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3120else
3121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122for as_dir in $PATH
3123do
3124  IFS=$as_save_IFS
3125  test -z "$as_dir" && as_dir=.
3126    for ac_exec_ext in '' $ac_executable_extensions; do
3127  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3128    ac_cv_prog_AWK="$ac_prog"
3129    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3130    break 2
3131  fi
3132done
3133  done
3134IFS=$as_save_IFS
3135
3136fi
3137fi
3138AWK=$ac_cv_prog_AWK
3139if test -n "$AWK"; then
3140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3141$as_echo "$AWK" >&6; }
3142else
3143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144$as_echo "no" >&6; }
3145fi
3146
3147
3148  test -n "$AWK" && break
3149done
3150
3151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3152$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3153set x ${MAKE-make}
3154ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3155if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3156  $as_echo_n "(cached) " >&6
3157else
3158  cat >conftest.make <<\_ACEOF
3159SHELL = /bin/sh
3160all:
3161	@echo '@@@%%%=$(MAKE)=@@@%%%'
3162_ACEOF
3163# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3164case `${MAKE-make} -f conftest.make 2>/dev/null` in
3165  *@@@%%%=?*=@@@%%%*)
3166    eval ac_cv_prog_make_${ac_make}_set=yes;;
3167  *)
3168    eval ac_cv_prog_make_${ac_make}_set=no;;
3169esac
3170rm -f conftest.make
3171fi
3172if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3174$as_echo "yes" >&6; }
3175  SET_MAKE=
3176else
3177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178$as_echo "no" >&6; }
3179  SET_MAKE="MAKE=${MAKE-make}"
3180fi
3181
3182rm -rf .tst 2>/dev/null
3183mkdir .tst 2>/dev/null
3184if test -d .tst; then
3185  am__leading_dot=.
3186else
3187  am__leading_dot=_
3188fi
3189rmdir .tst 2>/dev/null
3190
3191if test "`cd $srcdir && pwd`" != "`pwd`"; then
3192  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3193  # is not polluted with repeated "-I."
3194  am__isrc=' -I$(srcdir)'
3195  # test to see if srcdir already configured
3196  if test -f $srcdir/config.status; then
3197    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3198  fi
3199fi
3200
3201# test whether we have cygpath
3202if test -z "$CYGPATH_W"; then
3203  if (cygpath --version) >/dev/null 2>/dev/null; then
3204    CYGPATH_W='cygpath -w'
3205  else
3206    CYGPATH_W=echo
3207  fi
3208fi
3209
3210
3211# Define the identity of the package.
3212 PACKAGE='lighttpd'
3213 VERSION='1.4.32'
3214
3215
3216cat >>confdefs.h <<_ACEOF
3217#define PACKAGE "$PACKAGE"
3218_ACEOF
3219
3220
3221cat >>confdefs.h <<_ACEOF
3222#define VERSION "$VERSION"
3223_ACEOF
3224
3225# Some tools Automake needs.
3226
3227ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3228
3229
3230AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3231
3232
3233AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3234
3235
3236AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3237
3238
3239MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3240
3241# We need awk for the "check" target.  The system "awk" is bad on
3242# some platforms.
3243# Always define AMTAR for backward compatibility.  Yes, it's still used
3244# in the wild :-(  We should find a proper way to deprecate it ...
3245AMTAR='$${TAR-tar}'
3246
3247
3248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3249$as_echo_n "checking how to create a ustar tar archive... " >&6; }
3250# Loop over all known methods to create a tar archive until one works.
3251_am_tools='gnutar plaintar pax cpio none'
3252_am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3253# Do not fold the above two line into one, because Tru64 sh and
3254# Solaris sh will not grok spaces in the rhs of `-'.
3255for _am_tool in $_am_tools
3256do
3257  case $_am_tool in
3258  gnutar)
3259    for _am_tar in tar gnutar gtar;
3260    do
3261      { echo "$as_me:$LINENO: $_am_tar --version" >&5
3262   ($_am_tar --version) >&5 2>&5
3263   ac_status=$?
3264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265   (exit $ac_status); } && break
3266    done
3267    am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3268    am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3269    am__untar="$_am_tar -xf -"
3270    ;;
3271  plaintar)
3272    # Must skip GNU tar: if it does not support --format= it doesn't create
3273    # ustar tarball either.
3274    (tar --version) >/dev/null 2>&1 && continue
3275    am__tar='tar chf - "$$tardir"'
3276    am__tar_='tar chf - "$tardir"'
3277    am__untar='tar xf -'
3278    ;;
3279  pax)
3280    am__tar='pax -L -x ustar -w "$$tardir"'
3281    am__tar_='pax -L -x ustar -w "$tardir"'
3282    am__untar='pax -r'
3283    ;;
3284  cpio)
3285    am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3286    am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3287    am__untar='cpio -i -H ustar -d'
3288    ;;
3289  none)
3290    am__tar=false
3291    am__tar_=false
3292    am__untar=false
3293    ;;
3294  esac
3295
3296  # If the value was cached, stop now.  We just wanted to have am__tar
3297  # and am__untar set.
3298  test -n "${am_cv_prog_tar_ustar}" && break
3299
3300  # tar/untar a dummy directory, and stop if the command works
3301  rm -rf conftest.dir
3302  mkdir conftest.dir
3303  echo GrepMe > conftest.dir/file
3304  { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3305   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3306   ac_status=$?
3307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308   (exit $ac_status); }
3309  rm -rf conftest.dir
3310  if test -s conftest.tar; then
3311    { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3312   ($am__untar <conftest.tar) >&5 2>&5
3313   ac_status=$?
3314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315   (exit $ac_status); }
3316    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3317  fi
3318done
3319rm -rf conftest.dir
3320
3321if ${am_cv_prog_tar_ustar+:} false; then :
3322  $as_echo_n "(cached) " >&6
3323else
3324  am_cv_prog_tar_ustar=$_am_tool
3325fi
3326
3327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3328$as_echo "$am_cv_prog_tar_ustar" >&6; }
3329
3330
3331
3332
3333
3334
3335# Check whether --enable-silent-rules was given.
3336if test "${enable_silent_rules+set}" = set; then :
3337  enableval=$enable_silent_rules;
3338fi
3339
3340case $enable_silent_rules in
3341yes) AM_DEFAULT_VERBOSITY=0;;
3342no)  AM_DEFAULT_VERBOSITY=1;;
3343*)   AM_DEFAULT_VERBOSITY=1;;
3344esac
3345am_make=${MAKE-make}
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3347$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3348if ${am_cv_make_support_nested_variables+:} false; then :
3349  $as_echo_n "(cached) " >&6
3350else
3351  if $as_echo 'TRUE=$(BAR$(V))
3352BAR0=false
3353BAR1=true
3354V=1
3355am__doit:
3356	@$(TRUE)
3357.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3358  am_cv_make_support_nested_variables=yes
3359else
3360  am_cv_make_support_nested_variables=no
3361fi
3362fi
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3364$as_echo "$am_cv_make_support_nested_variables" >&6; }
3365if test $am_cv_make_support_nested_variables = yes; then
3366    AM_V='$(V)'
3367  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3368else
3369  AM_V=$AM_DEFAULT_VERBOSITY
3370  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3371fi
3372AM_BACKSLASH='\'
3373
3374
3375ac_ext=c
3376ac_cpp='$CPP $CPPFLAGS'
3377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3379ac_compiler_gnu=$ac_cv_c_compiler_gnu
3380if test -n "$ac_tool_prefix"; then
3381  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3382set dummy ${ac_tool_prefix}gcc; ac_word=$2
3383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3384$as_echo_n "checking for $ac_word... " >&6; }
3385if ${ac_cv_prog_CC+:} false; then :
3386  $as_echo_n "(cached) " >&6
3387else
3388  if test -n "$CC"; then
3389  ac_cv_prog_CC="$CC" # Let the user override the test.
3390else
3391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392for as_dir in $PATH
3393do
3394  IFS=$as_save_IFS
3395  test -z "$as_dir" && as_dir=.
3396    for ac_exec_ext in '' $ac_executable_extensions; do
3397  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3398    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3399    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3400    break 2
3401  fi
3402done
3403  done
3404IFS=$as_save_IFS
3405
3406fi
3407fi
3408CC=$ac_cv_prog_CC
3409if test -n "$CC"; then
3410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3411$as_echo "$CC" >&6; }
3412else
3413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3414$as_echo "no" >&6; }
3415fi
3416
3417
3418fi
3419if test -z "$ac_cv_prog_CC"; then
3420  ac_ct_CC=$CC
3421  # Extract the first word of "gcc", so it can be a program name with args.
3422set dummy gcc; ac_word=$2
3423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3424$as_echo_n "checking for $ac_word... " >&6; }
3425if ${ac_cv_prog_ac_ct_CC+:} false; then :
3426  $as_echo_n "(cached) " >&6
3427else
3428  if test -n "$ac_ct_CC"; then
3429  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3430else
3431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432for as_dir in $PATH
3433do
3434  IFS=$as_save_IFS
3435  test -z "$as_dir" && as_dir=.
3436    for ac_exec_ext in '' $ac_executable_extensions; do
3437  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3438    ac_cv_prog_ac_ct_CC="gcc"
3439    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3440    break 2
3441  fi
3442done
3443  done
3444IFS=$as_save_IFS
3445
3446fi
3447fi
3448ac_ct_CC=$ac_cv_prog_ac_ct_CC
3449if test -n "$ac_ct_CC"; then
3450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3451$as_echo "$ac_ct_CC" >&6; }
3452else
3453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454$as_echo "no" >&6; }
3455fi
3456
3457  if test "x$ac_ct_CC" = x; then
3458    CC=""
3459  else
3460    case $cross_compiling:$ac_tool_warned in
3461yes:)
3462{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3463$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3464ac_tool_warned=yes ;;
3465esac
3466    CC=$ac_ct_CC
3467  fi
3468else
3469  CC="$ac_cv_prog_CC"
3470fi
3471
3472if test -z "$CC"; then
3473          if test -n "$ac_tool_prefix"; then
3474    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3475set dummy ${ac_tool_prefix}cc; ac_word=$2
3476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3477$as_echo_n "checking for $ac_word... " >&6; }
3478if ${ac_cv_prog_CC+:} false; then :
3479  $as_echo_n "(cached) " >&6
3480else
3481  if test -n "$CC"; then
3482  ac_cv_prog_CC="$CC" # Let the user override the test.
3483else
3484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3485for as_dir in $PATH
3486do
3487  IFS=$as_save_IFS
3488  test -z "$as_dir" && as_dir=.
3489    for ac_exec_ext in '' $ac_executable_extensions; do
3490  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3491    ac_cv_prog_CC="${ac_tool_prefix}cc"
3492    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3493    break 2
3494  fi
3495done
3496  done
3497IFS=$as_save_IFS
3498
3499fi
3500fi
3501CC=$ac_cv_prog_CC
3502if test -n "$CC"; then
3503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3504$as_echo "$CC" >&6; }
3505else
3506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3507$as_echo "no" >&6; }
3508fi
3509
3510
3511  fi
3512fi
3513if test -z "$CC"; then
3514  # Extract the first word of "cc", so it can be a program name with args.
3515set dummy cc; ac_word=$2
3516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3517$as_echo_n "checking for $ac_word... " >&6; }
3518if ${ac_cv_prog_CC+:} false; then :
3519  $as_echo_n "(cached) " >&6
3520else
3521  if test -n "$CC"; then
3522  ac_cv_prog_CC="$CC" # Let the user override the test.
3523else
3524  ac_prog_rejected=no
3525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526for as_dir in $PATH
3527do
3528  IFS=$as_save_IFS
3529  test -z "$as_dir" && as_dir=.
3530    for ac_exec_ext in '' $ac_executable_extensions; do
3531  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3532    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3533       ac_prog_rejected=yes
3534       continue
3535     fi
3536    ac_cv_prog_CC="cc"
3537    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3538    break 2
3539  fi
3540done
3541  done
3542IFS=$as_save_IFS
3543
3544if test $ac_prog_rejected = yes; then
3545  # We found a bogon in the path, so make sure we never use it.
3546  set dummy $ac_cv_prog_CC
3547  shift
3548  if test $# != 0; then
3549    # We chose a different compiler from the bogus one.
3550    # However, it has the same basename, so the bogon will be chosen
3551    # first if we set CC to just the basename; use the full file name.
3552    shift
3553    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3554  fi
3555fi
3556fi
3557fi
3558CC=$ac_cv_prog_CC
3559if test -n "$CC"; then
3560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3561$as_echo "$CC" >&6; }
3562else
3563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564$as_echo "no" >&6; }
3565fi
3566
3567
3568fi
3569if test -z "$CC"; then
3570  if test -n "$ac_tool_prefix"; then
3571  for ac_prog in cl.exe
3572  do
3573    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3574set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3576$as_echo_n "checking for $ac_word... " >&6; }
3577if ${ac_cv_prog_CC+:} false; then :
3578  $as_echo_n "(cached) " >&6
3579else
3580  if test -n "$CC"; then
3581  ac_cv_prog_CC="$CC" # Let the user override the test.
3582else
3583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584for as_dir in $PATH
3585do
3586  IFS=$as_save_IFS
3587  test -z "$as_dir" && as_dir=.
3588    for ac_exec_ext in '' $ac_executable_extensions; do
3589  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3590    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3591    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3592    break 2
3593  fi
3594done
3595  done
3596IFS=$as_save_IFS
3597
3598fi
3599fi
3600CC=$ac_cv_prog_CC
3601if test -n "$CC"; then
3602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3603$as_echo "$CC" >&6; }
3604else
3605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3606$as_echo "no" >&6; }
3607fi
3608
3609
3610    test -n "$CC" && break
3611  done
3612fi
3613if test -z "$CC"; then
3614  ac_ct_CC=$CC
3615  for ac_prog in cl.exe
3616do
3617  # Extract the first word of "$ac_prog", so it can be a program name with args.
3618set dummy $ac_prog; ac_word=$2
3619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3620$as_echo_n "checking for $ac_word... " >&6; }
3621if ${ac_cv_prog_ac_ct_CC+:} false; then :
3622  $as_echo_n "(cached) " >&6
3623else
3624  if test -n "$ac_ct_CC"; then
3625  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3626else
3627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628for as_dir in $PATH
3629do
3630  IFS=$as_save_IFS
3631  test -z "$as_dir" && as_dir=.
3632    for ac_exec_ext in '' $ac_executable_extensions; do
3633  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3634    ac_cv_prog_ac_ct_CC="$ac_prog"
3635    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3636    break 2
3637  fi
3638done
3639  done
3640IFS=$as_save_IFS
3641
3642fi
3643fi
3644ac_ct_CC=$ac_cv_prog_ac_ct_CC
3645if test -n "$ac_ct_CC"; then
3646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3647$as_echo "$ac_ct_CC" >&6; }
3648else
3649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3650$as_echo "no" >&6; }
3651fi
3652
3653
3654  test -n "$ac_ct_CC" && break
3655done
3656
3657  if test "x$ac_ct_CC" = x; then
3658    CC=""
3659  else
3660    case $cross_compiling:$ac_tool_warned in
3661yes:)
3662{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3663$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3664ac_tool_warned=yes ;;
3665esac
3666    CC=$ac_ct_CC
3667  fi
3668fi
3669
3670fi
3671
3672
3673test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3674$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3675as_fn_error $? "no acceptable C compiler found in \$PATH
3676See \`config.log' for more details" "$LINENO" 5; }
3677
3678# Provide some information about the compiler.
3679$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3680set X $ac_compile
3681ac_compiler=$2
3682for ac_option in --version -v -V -qversion; do
3683  { { ac_try="$ac_compiler $ac_option >&5"
3684case "(($ac_try" in
3685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686  *) ac_try_echo=$ac_try;;
3687esac
3688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3689$as_echo "$ac_try_echo"; } >&5
3690  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3691  ac_status=$?
3692  if test -s conftest.err; then
3693    sed '10a\
3694... rest of stderr output deleted ...
3695         10q' conftest.err >conftest.er1
3696    cat conftest.er1 >&5
3697  fi
3698  rm -f conftest.er1 conftest.err
3699  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3700  test $ac_status = 0; }
3701done
3702
3703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704/* end confdefs.h.  */
3705
3706int
3707main ()
3708{
3709
3710  ;
3711  return 0;
3712}
3713_ACEOF
3714ac_clean_files_save=$ac_clean_files
3715ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3716# Try to create an executable without -o first, disregard a.out.
3717# It will help us diagnose broken compilers, and finding out an intuition
3718# of exeext.
3719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3720$as_echo_n "checking whether the C compiler works... " >&6; }
3721ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3722
3723# The possible output files:
3724ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3725
3726ac_rmfiles=
3727for ac_file in $ac_files
3728do
3729  case $ac_file in
3730    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3731    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3732  esac
3733done
3734rm -f $ac_rmfiles
3735
3736if { { ac_try="$ac_link_default"
3737case "(($ac_try" in
3738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3739  *) ac_try_echo=$ac_try;;
3740esac
3741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3742$as_echo "$ac_try_echo"; } >&5
3743  (eval "$ac_link_default") 2>&5
3744  ac_status=$?
3745  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3746  test $ac_status = 0; }; then :
3747  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3748# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3749# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3750# so that the user can short-circuit this test for compilers unknown to
3751# Autoconf.
3752for ac_file in $ac_files ''
3753do
3754  test -f "$ac_file" || continue
3755  case $ac_file in
3756    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3757	;;
3758    [ab].out )
3759	# We found the default executable, but exeext='' is most
3760	# certainly right.
3761	break;;
3762    *.* )
3763	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3764	then :; else
3765	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3766	fi
3767	# We set ac_cv_exeext here because the later test for it is not
3768	# safe: cross compilers may not add the suffix if given an `-o'
3769	# argument, so we may need to know it at that point already.
3770	# Even if this section looks crufty: it has the advantage of
3771	# actually working.
3772	break;;
3773    * )
3774	break;;
3775  esac
3776done
3777test "$ac_cv_exeext" = no && ac_cv_exeext=
3778
3779else
3780  ac_file=''
3781fi
3782if test -z "$ac_file"; then :
3783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3784$as_echo "no" >&6; }
3785$as_echo "$as_me: failed program was:" >&5
3786sed 's/^/| /' conftest.$ac_ext >&5
3787
3788{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3789$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3790as_fn_error 77 "C compiler cannot create executables
3791See \`config.log' for more details" "$LINENO" 5; }
3792else
3793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3794$as_echo "yes" >&6; }
3795fi
3796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3797$as_echo_n "checking for C compiler default output file name... " >&6; }
3798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3799$as_echo "$ac_file" >&6; }
3800ac_exeext=$ac_cv_exeext
3801
3802rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3803ac_clean_files=$ac_clean_files_save
3804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3805$as_echo_n "checking for suffix of executables... " >&6; }
3806if { { ac_try="$ac_link"
3807case "(($ac_try" in
3808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3809  *) ac_try_echo=$ac_try;;
3810esac
3811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3812$as_echo "$ac_try_echo"; } >&5
3813  (eval "$ac_link") 2>&5
3814  ac_status=$?
3815  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3816  test $ac_status = 0; }; then :
3817  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3818# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3819# work properly (i.e., refer to `conftest.exe'), while it won't with
3820# `rm'.
3821for ac_file in conftest.exe conftest conftest.*; do
3822  test -f "$ac_file" || continue
3823  case $ac_file in
3824    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3825    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3826	  break;;
3827    * ) break;;
3828  esac
3829done
3830else
3831  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3832$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3833as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3834See \`config.log' for more details" "$LINENO" 5; }
3835fi
3836rm -f conftest conftest$ac_cv_exeext
3837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3838$as_echo "$ac_cv_exeext" >&6; }
3839
3840rm -f conftest.$ac_ext
3841EXEEXT=$ac_cv_exeext
3842ac_exeext=$EXEEXT
3843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3844/* end confdefs.h.  */
3845#include <stdio.h>
3846int
3847main ()
3848{
3849FILE *f = fopen ("conftest.out", "w");
3850 return ferror (f) || fclose (f) != 0;
3851
3852  ;
3853  return 0;
3854}
3855_ACEOF
3856ac_clean_files="$ac_clean_files conftest.out"
3857# Check that the compiler produces executables we can run.  If not, either
3858# the compiler is broken, or we cross compile.
3859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3860$as_echo_n "checking whether we are cross compiling... " >&6; }
3861if test "$cross_compiling" != yes; then
3862  { { ac_try="$ac_link"
3863case "(($ac_try" in
3864  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3865  *) ac_try_echo=$ac_try;;
3866esac
3867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3868$as_echo "$ac_try_echo"; } >&5
3869  (eval "$ac_link") 2>&5
3870  ac_status=$?
3871  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3872  test $ac_status = 0; }
3873  if { ac_try='./conftest$ac_cv_exeext'
3874  { { case "(($ac_try" in
3875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876  *) ac_try_echo=$ac_try;;
3877esac
3878eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3879$as_echo "$ac_try_echo"; } >&5
3880  (eval "$ac_try") 2>&5
3881  ac_status=$?
3882  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3883  test $ac_status = 0; }; }; then
3884    cross_compiling=no
3885  else
3886    if test "$cross_compiling" = maybe; then
3887	cross_compiling=yes
3888    else
3889	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3890$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3891as_fn_error $? "cannot run C compiled programs.
3892If you meant to cross compile, use \`--host'.
3893See \`config.log' for more details" "$LINENO" 5; }
3894    fi
3895  fi
3896fi
3897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3898$as_echo "$cross_compiling" >&6; }
3899
3900rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3901ac_clean_files=$ac_clean_files_save
3902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3903$as_echo_n "checking for suffix of object files... " >&6; }
3904if ${ac_cv_objext+:} false; then :
3905  $as_echo_n "(cached) " >&6
3906else
3907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908/* end confdefs.h.  */
3909
3910int
3911main ()
3912{
3913
3914  ;
3915  return 0;
3916}
3917_ACEOF
3918rm -f conftest.o conftest.obj
3919if { { ac_try="$ac_compile"
3920case "(($ac_try" in
3921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922  *) ac_try_echo=$ac_try;;
3923esac
3924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3925$as_echo "$ac_try_echo"; } >&5
3926  (eval "$ac_compile") 2>&5
3927  ac_status=$?
3928  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3929  test $ac_status = 0; }; then :
3930  for ac_file in conftest.o conftest.obj conftest.*; do
3931  test -f "$ac_file" || continue;
3932  case $ac_file in
3933    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3934    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3935       break;;
3936  esac
3937done
3938else
3939  $as_echo "$as_me: failed program was:" >&5
3940sed 's/^/| /' conftest.$ac_ext >&5
3941
3942{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3943$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3944as_fn_error $? "cannot compute suffix of object files: cannot compile
3945See \`config.log' for more details" "$LINENO" 5; }
3946fi
3947rm -f conftest.$ac_cv_objext conftest.$ac_ext
3948fi
3949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3950$as_echo "$ac_cv_objext" >&6; }
3951OBJEXT=$ac_cv_objext
3952ac_objext=$OBJEXT
3953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3954$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3955if ${ac_cv_c_compiler_gnu+:} false; then :
3956  $as_echo_n "(cached) " >&6
3957else
3958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959/* end confdefs.h.  */
3960
3961int
3962main ()
3963{
3964#ifndef __GNUC__
3965       choke me
3966#endif
3967
3968  ;
3969  return 0;
3970}
3971_ACEOF
3972if ac_fn_c_try_compile "$LINENO"; then :
3973  ac_compiler_gnu=yes
3974else
3975  ac_compiler_gnu=no
3976fi
3977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3978ac_cv_c_compiler_gnu=$ac_compiler_gnu
3979
3980fi
3981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3982$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3983if test $ac_compiler_gnu = yes; then
3984  GCC=yes
3985else
3986  GCC=
3987fi
3988ac_test_CFLAGS=${CFLAGS+set}
3989ac_save_CFLAGS=$CFLAGS
3990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3991$as_echo_n "checking whether $CC accepts -g... " >&6; }
3992if ${ac_cv_prog_cc_g+:} false; then :
3993  $as_echo_n "(cached) " >&6
3994else
3995  ac_save_c_werror_flag=$ac_c_werror_flag
3996   ac_c_werror_flag=yes
3997   ac_cv_prog_cc_g=no
3998   CFLAGS="-g"
3999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000/* end confdefs.h.  */
4001
4002int
4003main ()
4004{
4005
4006  ;
4007  return 0;
4008}
4009_ACEOF
4010if ac_fn_c_try_compile "$LINENO"; then :
4011  ac_cv_prog_cc_g=yes
4012else
4013  CFLAGS=""
4014      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4015/* end confdefs.h.  */
4016
4017int
4018main ()
4019{
4020
4021  ;
4022  return 0;
4023}
4024_ACEOF
4025if ac_fn_c_try_compile "$LINENO"; then :
4026
4027else
4028  ac_c_werror_flag=$ac_save_c_werror_flag
4029	 CFLAGS="-g"
4030	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031/* end confdefs.h.  */
4032
4033int
4034main ()
4035{
4036
4037  ;
4038  return 0;
4039}
4040_ACEOF
4041if ac_fn_c_try_compile "$LINENO"; then :
4042  ac_cv_prog_cc_g=yes
4043fi
4044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4045fi
4046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4047fi
4048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4049   ac_c_werror_flag=$ac_save_c_werror_flag
4050fi
4051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4052$as_echo "$ac_cv_prog_cc_g" >&6; }
4053if test "$ac_test_CFLAGS" = set; then
4054  CFLAGS=$ac_save_CFLAGS
4055elif test $ac_cv_prog_cc_g = yes; then
4056  if test "$GCC" = yes; then
4057    CFLAGS="-g -O2"
4058  else
4059    CFLAGS="-g"
4060  fi
4061else
4062  if test "$GCC" = yes; then
4063    CFLAGS="-O2"
4064  else
4065    CFLAGS=
4066  fi
4067fi
4068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4069$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4070if ${ac_cv_prog_cc_c89+:} false; then :
4071  $as_echo_n "(cached) " >&6
4072else
4073  ac_cv_prog_cc_c89=no
4074ac_save_CC=$CC
4075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076/* end confdefs.h.  */
4077#include <stdarg.h>
4078#include <stdio.h>
4079struct stat;
4080/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4081struct buf { int x; };
4082FILE * (*rcsopen) (struct buf *, struct stat *, int);
4083static char *e (p, i)
4084     char **p;
4085     int i;
4086{
4087  return p[i];
4088}
4089static char *f (char * (*g) (char **, int), char **p, ...)
4090{
4091  char *s;
4092  va_list v;
4093  va_start (v,p);
4094  s = g (p, va_arg (v,int));
4095  va_end (v);
4096  return s;
4097}
4098
4099/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4100   function prototypes and stuff, but not '\xHH' hex character constants.
4101   These don't provoke an error unfortunately, instead are silently treated
4102   as 'x'.  The following induces an error, until -std is added to get
4103   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4104   array size at least.  It's necessary to write '\x00'==0 to get something
4105   that's true only with -std.  */
4106int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4107
4108/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4109   inside strings and character constants.  */
4110#define FOO(x) 'x'
4111int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4112
4113int test (int i, double x);
4114struct s1 {int (*f) (int a);};
4115struct s2 {int (*f) (double a);};
4116int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4117int argc;
4118char **argv;
4119int
4120main ()
4121{
4122return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4123  ;
4124  return 0;
4125}
4126_ACEOF
4127for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4128	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4129do
4130  CC="$ac_save_CC $ac_arg"
4131  if ac_fn_c_try_compile "$LINENO"; then :
4132  ac_cv_prog_cc_c89=$ac_arg
4133fi
4134rm -f core conftest.err conftest.$ac_objext
4135  test "x$ac_cv_prog_cc_c89" != "xno" && break
4136done
4137rm -f conftest.$ac_ext
4138CC=$ac_save_CC
4139
4140fi
4141# AC_CACHE_VAL
4142case "x$ac_cv_prog_cc_c89" in
4143  x)
4144    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4145$as_echo "none needed" >&6; } ;;
4146  xno)
4147    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4148$as_echo "unsupported" >&6; } ;;
4149  *)
4150    CC="$CC $ac_cv_prog_cc_c89"
4151    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4152$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4153esac
4154if test "x$ac_cv_prog_cc_c89" != xno; then :
4155
4156fi
4157
4158ac_ext=c
4159ac_cpp='$CPP $CPPFLAGS'
4160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4162ac_compiler_gnu=$ac_cv_c_compiler_gnu
4163DEPDIR="${am__leading_dot}deps"
4164
4165ac_config_commands="$ac_config_commands depfiles"
4166
4167
4168am_make=${MAKE-make}
4169cat > confinc << 'END'
4170am__doit:
4171	@echo this is the am__doit target
4172.PHONY: am__doit
4173END
4174# If we don't find an include directive, just comment out the code.
4175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4176$as_echo_n "checking for style of include used by $am_make... " >&6; }
4177am__include="#"
4178am__quote=
4179_am_result=none
4180# First try GNU make style include.
4181echo "include confinc" > confmf
4182# Ignore all kinds of additional output from `make'.
4183case `$am_make -s -f confmf 2> /dev/null` in #(
4184*the\ am__doit\ target*)
4185  am__include=include
4186  am__quote=
4187  _am_result=GNU
4188  ;;
4189esac
4190# Now try BSD make style include.
4191if test "$am__include" = "#"; then
4192   echo '.include "confinc"' > confmf
4193   case `$am_make -s -f confmf 2> /dev/null` in #(
4194   *the\ am__doit\ target*)
4195     am__include=.include
4196     am__quote="\""
4197     _am_result=BSD
4198     ;;
4199   esac
4200fi
4201
4202
4203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4204$as_echo "$_am_result" >&6; }
4205rm -f confinc confmf
4206
4207# Check whether --enable-dependency-tracking was given.
4208if test "${enable_dependency_tracking+set}" = set; then :
4209  enableval=$enable_dependency_tracking;
4210fi
4211
4212if test "x$enable_dependency_tracking" != xno; then
4213  am_depcomp="$ac_aux_dir/depcomp"
4214  AMDEPBACKSLASH='\'
4215  am__nodep='_no'
4216fi
4217 if test "x$enable_dependency_tracking" != xno; then
4218  AMDEP_TRUE=
4219  AMDEP_FALSE='#'
4220else
4221  AMDEP_TRUE='#'
4222  AMDEP_FALSE=
4223fi
4224
4225
4226
4227depcc="$CC"   am_compiler_list=
4228
4229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4230$as_echo_n "checking dependency style of $depcc... " >&6; }
4231if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4232  $as_echo_n "(cached) " >&6
4233else
4234  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4235  # We make a subdir and do the tests there.  Otherwise we can end up
4236  # making bogus files that we don't know about and never remove.  For
4237  # instance it was reported that on HP-UX the gcc test will end up
4238  # making a dummy file named `D' -- because `-MD' means `put the output
4239  # in D'.
4240  rm -rf conftest.dir
4241  mkdir conftest.dir
4242  # Copy depcomp to subdir because otherwise we won't find it if we're
4243  # using a relative directory.
4244  cp "$am_depcomp" conftest.dir
4245  cd conftest.dir
4246  # We will build objects and dependencies in a subdirectory because
4247  # it helps to detect inapplicable dependency modes.  For instance
4248  # both Tru64's cc and ICC support -MD to output dependencies as a
4249  # side effect of compilation, but ICC will put the dependencies in
4250  # the current directory while Tru64 will put them in the object
4251  # directory.
4252  mkdir sub
4253
4254  am_cv_CC_dependencies_compiler_type=none
4255  if test "$am_compiler_list" = ""; then
4256     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4257  fi
4258  am__universal=false
4259  case " $depcc " in #(
4260     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4261     esac
4262
4263  for depmode in $am_compiler_list; do
4264    # Setup a source with many dependencies, because some compilers
4265    # like to wrap large dependency lists on column 80 (with \), and
4266    # we should not choose a depcomp mode which is confused by this.
4267    #
4268    # We need to recreate these files for each test, as the compiler may
4269    # overwrite some of them when testing with obscure command lines.
4270    # This happens at least with the AIX C compiler.
4271    : > sub/conftest.c
4272    for i in 1 2 3 4 5 6; do
4273      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4274      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4275      # Solaris 8's {/usr,}/bin/sh.
4276      touch sub/conftst$i.h
4277    done
4278    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4279
4280    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4281    # mode.  It turns out that the SunPro C++ compiler does not properly
4282    # handle `-M -o', and we need to detect this.  Also, some Intel
4283    # versions had trouble with output in subdirs
4284    am__obj=sub/conftest.${OBJEXT-o}
4285    am__minus_obj="-o $am__obj"
4286    case $depmode in
4287    gcc)
4288      # This depmode causes a compiler race in universal mode.
4289      test "$am__universal" = false || continue
4290      ;;
4291    nosideeffect)
4292      # after this tag, mechanisms are not by side-effect, so they'll
4293      # only be used when explicitly requested
4294      if test "x$enable_dependency_tracking" = xyes; then
4295	continue
4296      else
4297	break
4298      fi
4299      ;;
4300    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4301      # This compiler won't grok `-c -o', but also, the minuso test has
4302      # not run yet.  These depmodes are late enough in the game, and
4303      # so weak that their functioning should not be impacted.
4304      am__obj=conftest.${OBJEXT-o}
4305      am__minus_obj=
4306      ;;
4307    none) break ;;
4308    esac
4309    if depmode=$depmode \
4310       source=sub/conftest.c object=$am__obj \
4311       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4312       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4313         >/dev/null 2>conftest.err &&
4314       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4315       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4316       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4317       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4318      # icc doesn't choke on unknown options, it will just issue warnings
4319      # or remarks (even with -Werror).  So we grep stderr for any message
4320      # that says an option was ignored or not supported.
4321      # When given -MP, icc 7.0 and 7.1 complain thusly:
4322      #   icc: Command line warning: ignoring option '-M'; no argument required
4323      # The diagnosis changed in icc 8.0:
4324      #   icc: Command line remark: option '-MP' not supported
4325      if (grep 'ignoring option' conftest.err ||
4326          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4327        am_cv_CC_dependencies_compiler_type=$depmode
4328        break
4329      fi
4330    fi
4331  done
4332
4333  cd ..
4334  rm -rf conftest.dir
4335else
4336  am_cv_CC_dependencies_compiler_type=none
4337fi
4338
4339fi
4340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4341$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4342CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4343
4344 if
4345  test "x$enable_dependency_tracking" != xno \
4346  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4347  am__fastdepCC_TRUE=
4348  am__fastdepCC_FALSE='#'
4349else
4350  am__fastdepCC_TRUE='#'
4351  am__fastdepCC_FALSE=
4352fi
4353
4354
4355if test "x$CC" != xcc; then
4356  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4357$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4358else
4359  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4360$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4361fi
4362set dummy $CC; ac_cc=`$as_echo "$2" |
4363		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4364if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4365  $as_echo_n "(cached) " >&6
4366else
4367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368/* end confdefs.h.  */
4369
4370int
4371main ()
4372{
4373
4374  ;
4375  return 0;
4376}
4377_ACEOF
4378# Make sure it works both with $CC and with simple cc.
4379# We do the test twice because some compilers refuse to overwrite an
4380# existing .o file with -o, though they will create one.
4381ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4382rm -f conftest2.*
4383if { { case "(($ac_try" in
4384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4385  *) ac_try_echo=$ac_try;;
4386esac
4387eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4388$as_echo "$ac_try_echo"; } >&5
4389  (eval "$ac_try") 2>&5
4390  ac_status=$?
4391  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4392  test $ac_status = 0; } &&
4393   test -f conftest2.$ac_objext && { { case "(($ac_try" in
4394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395  *) ac_try_echo=$ac_try;;
4396esac
4397eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4398$as_echo "$ac_try_echo"; } >&5
4399  (eval "$ac_try") 2>&5
4400  ac_status=$?
4401  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4402  test $ac_status = 0; };
4403then
4404  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4405  if test "x$CC" != xcc; then
4406    # Test first that cc exists at all.
4407    if { ac_try='cc -c conftest.$ac_ext >&5'
4408  { { case "(($ac_try" in
4409  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410  *) ac_try_echo=$ac_try;;
4411esac
4412eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4413$as_echo "$ac_try_echo"; } >&5
4414  (eval "$ac_try") 2>&5
4415  ac_status=$?
4416  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4417  test $ac_status = 0; }; }; then
4418      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4419      rm -f conftest2.*
4420      if { { case "(($ac_try" in
4421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422  *) ac_try_echo=$ac_try;;
4423esac
4424eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4425$as_echo "$ac_try_echo"; } >&5
4426  (eval "$ac_try") 2>&5
4427  ac_status=$?
4428  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4429  test $ac_status = 0; } &&
4430	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432  *) ac_try_echo=$ac_try;;
4433esac
4434eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4435$as_echo "$ac_try_echo"; } >&5
4436  (eval "$ac_try") 2>&5
4437  ac_status=$?
4438  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4439  test $ac_status = 0; };
4440      then
4441	# cc works too.
4442	:
4443      else
4444	# cc exists but doesn't like -o.
4445	eval ac_cv_prog_cc_${ac_cc}_c_o=no
4446      fi
4447    fi
4448  fi
4449else
4450  eval ac_cv_prog_cc_${ac_cc}_c_o=no
4451fi
4452rm -f core conftest*
4453
4454fi
4455if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4457$as_echo "yes" >&6; }
4458else
4459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4460$as_echo "no" >&6; }
4461
4462$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4463
4464fi
4465
4466# FIXME: we rely on the cache variable name because
4467# there is no other way.
4468set dummy $CC
4469am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4470eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4471if test "$am_t" != yes; then
4472   # Losing compiler, so override with the script.
4473   # FIXME: It is wrong to rewrite CC.
4474   # But if we don't then we get into trouble of one sort or another.
4475   # A longer-term fix would be to have automake use am__CC in this case,
4476   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4477   CC="$am_aux_dir/compile $CC"
4478fi
4479
4480
4481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4482$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4483if ${ac_cv_path_SED+:} false; then :
4484  $as_echo_n "(cached) " >&6
4485else
4486            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4487     for ac_i in 1 2 3 4 5 6 7; do
4488       ac_script="$ac_script$as_nl$ac_script"
4489     done
4490     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4491     { ac_script=; unset ac_script;}
4492     if test -z "$SED"; then
4493  ac_path_SED_found=false
4494  # Loop through the user's path and test for each of PROGNAME-LIST
4495  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496for as_dir in $PATH
4497do
4498  IFS=$as_save_IFS
4499  test -z "$as_dir" && as_dir=.
4500    for ac_prog in sed gsed; do
4501    for ac_exec_ext in '' $ac_executable_extensions; do
4502      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4503      as_fn_executable_p "$ac_path_SED" || continue
4504# Check for GNU ac_path_SED and select it if it is found.
4505  # Check for GNU $ac_path_SED
4506case `"$ac_path_SED" --version 2>&1` in
4507*GNU*)
4508  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4509*)
4510  ac_count=0
4511  $as_echo_n 0123456789 >"conftest.in"
4512  while :
4513  do
4514    cat "conftest.in" "conftest.in" >"conftest.tmp"
4515    mv "conftest.tmp" "conftest.in"
4516    cp "conftest.in" "conftest.nl"
4517    $as_echo '' >> "conftest.nl"
4518    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4519    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4520    as_fn_arith $ac_count + 1 && ac_count=$as_val
4521    if test $ac_count -gt ${ac_path_SED_max-0}; then
4522      # Best one so far, save it but keep looking for a better one
4523      ac_cv_path_SED="$ac_path_SED"
4524      ac_path_SED_max=$ac_count
4525    fi
4526    # 10*(2^10) chars as input seems more than enough
4527    test $ac_count -gt 10 && break
4528  done
4529  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4530esac
4531
4532      $ac_path_SED_found && break 3
4533    done
4534  done
4535  done
4536IFS=$as_save_IFS
4537  if test -z "$ac_cv_path_SED"; then
4538    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4539  fi
4540else
4541  ac_cv_path_SED=$SED
4542fi
4543
4544fi
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4546$as_echo "$ac_cv_path_SED" >&6; }
4547 SED="$ac_cv_path_SED"
4548  rm -f conftest.sed
4549
4550test -z "$SED" && SED=sed
4551Xsed="$SED -e 1s/^X//"
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4564$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4565if ${ac_cv_path_GREP+:} false; then :
4566  $as_echo_n "(cached) " >&6
4567else
4568  if test -z "$GREP"; then
4569  ac_path_GREP_found=false
4570  # Loop through the user's path and test for each of PROGNAME-LIST
4571  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4573do
4574  IFS=$as_save_IFS
4575  test -z "$as_dir" && as_dir=.
4576    for ac_prog in grep ggrep; do
4577    for ac_exec_ext in '' $ac_executable_extensions; do
4578      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4579      as_fn_executable_p "$ac_path_GREP" || continue
4580# Check for GNU ac_path_GREP and select it if it is found.
4581  # Check for GNU $ac_path_GREP
4582case `"$ac_path_GREP" --version 2>&1` in
4583*GNU*)
4584  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4585*)
4586  ac_count=0
4587  $as_echo_n 0123456789 >"conftest.in"
4588  while :
4589  do
4590    cat "conftest.in" "conftest.in" >"conftest.tmp"
4591    mv "conftest.tmp" "conftest.in"
4592    cp "conftest.in" "conftest.nl"
4593    $as_echo 'GREP' >> "conftest.nl"
4594    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4595    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4596    as_fn_arith $ac_count + 1 && ac_count=$as_val
4597    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4598      # Best one so far, save it but keep looking for a better one
4599      ac_cv_path_GREP="$ac_path_GREP"
4600      ac_path_GREP_max=$ac_count
4601    fi
4602    # 10*(2^10) chars as input seems more than enough
4603    test $ac_count -gt 10 && break
4604  done
4605  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4606esac
4607
4608      $ac_path_GREP_found && break 3
4609    done
4610  done
4611  done
4612IFS=$as_save_IFS
4613  if test -z "$ac_cv_path_GREP"; then
4614    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4615  fi
4616else
4617  ac_cv_path_GREP=$GREP
4618fi
4619
4620fi
4621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4622$as_echo "$ac_cv_path_GREP" >&6; }
4623 GREP="$ac_cv_path_GREP"
4624
4625
4626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4627$as_echo_n "checking for egrep... " >&6; }
4628if ${ac_cv_path_EGREP+:} false; then :
4629  $as_echo_n "(cached) " >&6
4630else
4631  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4632   then ac_cv_path_EGREP="$GREP -E"
4633   else
4634     if test -z "$EGREP"; then
4635  ac_path_EGREP_found=false
4636  # Loop through the user's path and test for each of PROGNAME-LIST
4637  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4639do
4640  IFS=$as_save_IFS
4641  test -z "$as_dir" && as_dir=.
4642    for ac_prog in egrep; do
4643    for ac_exec_ext in '' $ac_executable_extensions; do
4644      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4645      as_fn_executable_p "$ac_path_EGREP" || continue
4646# Check for GNU ac_path_EGREP and select it if it is found.
4647  # Check for GNU $ac_path_EGREP
4648case `"$ac_path_EGREP" --version 2>&1` in
4649*GNU*)
4650  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4651*)
4652  ac_count=0
4653  $as_echo_n 0123456789 >"conftest.in"
4654  while :
4655  do
4656    cat "conftest.in" "conftest.in" >"conftest.tmp"
4657    mv "conftest.tmp" "conftest.in"
4658    cp "conftest.in" "conftest.nl"
4659    $as_echo 'EGREP' >> "conftest.nl"
4660    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4661    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4662    as_fn_arith $ac_count + 1 && ac_count=$as_val
4663    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4664      # Best one so far, save it but keep looking for a better one
4665      ac_cv_path_EGREP="$ac_path_EGREP"
4666      ac_path_EGREP_max=$ac_count
4667    fi
4668    # 10*(2^10) chars as input seems more than enough
4669    test $ac_count -gt 10 && break
4670  done
4671  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4672esac
4673
4674      $ac_path_EGREP_found && break 3
4675    done
4676  done
4677  done
4678IFS=$as_save_IFS
4679  if test -z "$ac_cv_path_EGREP"; then
4680    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4681  fi
4682else
4683  ac_cv_path_EGREP=$EGREP
4684fi
4685
4686   fi
4687fi
4688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4689$as_echo "$ac_cv_path_EGREP" >&6; }
4690 EGREP="$ac_cv_path_EGREP"
4691
4692
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4694$as_echo_n "checking for fgrep... " >&6; }
4695if ${ac_cv_path_FGREP+:} false; then :
4696  $as_echo_n "(cached) " >&6
4697else
4698  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4699   then ac_cv_path_FGREP="$GREP -F"
4700   else
4701     if test -z "$FGREP"; then
4702  ac_path_FGREP_found=false
4703  # Loop through the user's path and test for each of PROGNAME-LIST
4704  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4706do
4707  IFS=$as_save_IFS
4708  test -z "$as_dir" && as_dir=.
4709    for ac_prog in fgrep; do
4710    for ac_exec_ext in '' $ac_executable_extensions; do
4711      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4712      as_fn_executable_p "$ac_path_FGREP" || continue
4713# Check for GNU ac_path_FGREP and select it if it is found.
4714  # Check for GNU $ac_path_FGREP
4715case `"$ac_path_FGREP" --version 2>&1` in
4716*GNU*)
4717  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4718*)
4719  ac_count=0
4720  $as_echo_n 0123456789 >"conftest.in"
4721  while :
4722  do
4723    cat "conftest.in" "conftest.in" >"conftest.tmp"
4724    mv "conftest.tmp" "conftest.in"
4725    cp "conftest.in" "conftest.nl"
4726    $as_echo 'FGREP' >> "conftest.nl"
4727    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4728    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4729    as_fn_arith $ac_count + 1 && ac_count=$as_val
4730    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4731      # Best one so far, save it but keep looking for a better one
4732      ac_cv_path_FGREP="$ac_path_FGREP"
4733      ac_path_FGREP_max=$ac_count
4734    fi
4735    # 10*(2^10) chars as input seems more than enough
4736    test $ac_count -gt 10 && break
4737  done
4738  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4739esac
4740
4741      $ac_path_FGREP_found && break 3
4742    done
4743  done
4744  done
4745IFS=$as_save_IFS
4746  if test -z "$ac_cv_path_FGREP"; then
4747    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4748  fi
4749else
4750  ac_cv_path_FGREP=$FGREP
4751fi
4752
4753   fi
4754fi
4755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4756$as_echo "$ac_cv_path_FGREP" >&6; }
4757 FGREP="$ac_cv_path_FGREP"
4758
4759
4760test -z "$GREP" && GREP=grep
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4779ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4780ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4781
4782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4783$as_echo_n "checking how to print strings... " >&6; }
4784# Test print first, because it will be a builtin if present.
4785if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4786   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4787  ECHO='print -r --'
4788elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4789  ECHO='printf %s\n'
4790else
4791  # Use this function as a fallback that always works.
4792  func_fallback_echo ()
4793  {
4794    eval 'cat <<_LTECHO_EOF
4795$1
4796_LTECHO_EOF'
4797  }
4798  ECHO='func_fallback_echo'
4799fi
4800
4801# func_echo_all arg...
4802# Invoke $ECHO with all args, space-separated.
4803func_echo_all ()
4804{
4805    $ECHO ""
4806}
4807
4808case "$ECHO" in
4809  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4810$as_echo "printf" >&6; } ;;
4811  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4812$as_echo "print -r" >&6; } ;;
4813  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4814$as_echo "cat" >&6; } ;;
4815esac
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832# Check whether --with-gnu-ld was given.
4833if test "${with_gnu_ld+set}" = set; then :
4834  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4835else
4836  with_gnu_ld=no
4837fi
4838
4839ac_prog=ld
4840if test "$GCC" = yes; then
4841  # Check if gcc -print-prog-name=ld gives a path.
4842  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4843$as_echo_n "checking for ld used by $CC... " >&6; }
4844  case $host in
4845  *-*-mingw*)
4846    # gcc leaves a trailing carriage return which upsets mingw
4847    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4848  *)
4849    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4850  esac
4851  case $ac_prog in
4852    # Accept absolute paths.
4853    [\\/]* | ?:[\\/]*)
4854      re_direlt='/[^/][^/]*/\.\./'
4855      # Canonicalize the pathname of ld
4856      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4857      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4858	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4859      done
4860      test -z "$LD" && LD="$ac_prog"
4861      ;;
4862  "")
4863    # If it fails, then pretend we aren't using GCC.
4864    ac_prog=ld
4865    ;;
4866  *)
4867    # If it is relative, then search for the first ld in PATH.
4868    with_gnu_ld=unknown
4869    ;;
4870  esac
4871elif test "$with_gnu_ld" = yes; then
4872  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4873$as_echo_n "checking for GNU ld... " >&6; }
4874else
4875  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4876$as_echo_n "checking for non-GNU ld... " >&6; }
4877fi
4878if ${lt_cv_path_LD+:} false; then :
4879  $as_echo_n "(cached) " >&6
4880else
4881  if test -z "$LD"; then
4882  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4883  for ac_dir in $PATH; do
4884    IFS="$lt_save_ifs"
4885    test -z "$ac_dir" && ac_dir=.
4886    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4887      lt_cv_path_LD="$ac_dir/$ac_prog"
4888      # Check to see if the program is GNU ld.  I'd rather use --version,
4889      # but apparently some variants of GNU ld only accept -v.
4890      # Break only if it was the GNU/non-GNU ld that we prefer.
4891      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4892      *GNU* | *'with BFD'*)
4893	test "$with_gnu_ld" != no && break
4894	;;
4895      *)
4896	test "$with_gnu_ld" != yes && break
4897	;;
4898      esac
4899    fi
4900  done
4901  IFS="$lt_save_ifs"
4902else
4903  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4904fi
4905fi
4906
4907LD="$lt_cv_path_LD"
4908if test -n "$LD"; then
4909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4910$as_echo "$LD" >&6; }
4911else
4912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4913$as_echo "no" >&6; }
4914fi
4915test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4917$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4918if ${lt_cv_prog_gnu_ld+:} false; then :
4919  $as_echo_n "(cached) " >&6
4920else
4921  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4922case `$LD -v 2>&1 </dev/null` in
4923*GNU* | *'with BFD'*)
4924  lt_cv_prog_gnu_ld=yes
4925  ;;
4926*)
4927  lt_cv_prog_gnu_ld=no
4928  ;;
4929esac
4930fi
4931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4932$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4933with_gnu_ld=$lt_cv_prog_gnu_ld
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944for ac_prog in gawk mawk nawk awk
4945do
4946  # Extract the first word of "$ac_prog", so it can be a program name with args.
4947set dummy $ac_prog; ac_word=$2
4948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4949$as_echo_n "checking for $ac_word... " >&6; }
4950if ${ac_cv_prog_AWK+:} false; then :
4951  $as_echo_n "(cached) " >&6
4952else
4953  if test -n "$AWK"; then
4954  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4955else
4956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957for as_dir in $PATH
4958do
4959  IFS=$as_save_IFS
4960  test -z "$as_dir" && as_dir=.
4961    for ac_exec_ext in '' $ac_executable_extensions; do
4962  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4963    ac_cv_prog_AWK="$ac_prog"
4964    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4965    break 2
4966  fi
4967done
4968  done
4969IFS=$as_save_IFS
4970
4971fi
4972fi
4973AWK=$ac_cv_prog_AWK
4974if test -n "$AWK"; then
4975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4976$as_echo "$AWK" >&6; }
4977else
4978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4979$as_echo "no" >&6; }
4980fi
4981
4982
4983  test -n "$AWK" && break
4984done
4985
4986ac_ext=c
4987ac_cpp='$CPP $CPPFLAGS'
4988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4990ac_compiler_gnu=$ac_cv_c_compiler_gnu
4991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4992$as_echo_n "checking how to run the C preprocessor... " >&6; }
4993# On Suns, sometimes $CPP names a directory.
4994if test -n "$CPP" && test -d "$CPP"; then
4995  CPP=
4996fi
4997if test -z "$CPP"; then
4998  if ${ac_cv_prog_CPP+:} false; then :
4999  $as_echo_n "(cached) " >&6
5000else
5001      # Double quotes because CPP needs to be expanded
5002    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5003    do
5004      ac_preproc_ok=false
5005for ac_c_preproc_warn_flag in '' yes
5006do
5007  # Use a header file that comes with gcc, so configuring glibc
5008  # with a fresh cross-compiler works.
5009  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5010  # <limits.h> exists even on freestanding compilers.
5011  # On the NeXT, cc -E runs the code through the compiler's parser,
5012  # not just through cpp. "Syntax error" is here to catch this case.
5013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5014/* end confdefs.h.  */
5015#ifdef __STDC__
5016# include <limits.h>
5017#else
5018# include <assert.h>
5019#endif
5020		     Syntax error
5021_ACEOF
5022if ac_fn_c_try_cpp "$LINENO"; then :
5023
5024else
5025  # Broken: fails on valid input.
5026continue
5027fi
5028rm -f conftest.err conftest.i conftest.$ac_ext
5029
5030  # OK, works on sane cases.  Now check whether nonexistent headers
5031  # can be detected and how.
5032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5033/* end confdefs.h.  */
5034#include <ac_nonexistent.h>
5035_ACEOF
5036if ac_fn_c_try_cpp "$LINENO"; then :
5037  # Broken: success on invalid input.
5038continue
5039else
5040  # Passes both tests.
5041ac_preproc_ok=:
5042break
5043fi
5044rm -f conftest.err conftest.i conftest.$ac_ext
5045
5046done
5047# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5048rm -f conftest.i conftest.err conftest.$ac_ext
5049if $ac_preproc_ok; then :
5050  break
5051fi
5052
5053    done
5054    ac_cv_prog_CPP=$CPP
5055
5056fi
5057  CPP=$ac_cv_prog_CPP
5058else
5059  ac_cv_prog_CPP=$CPP
5060fi
5061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5062$as_echo "$CPP" >&6; }
5063ac_preproc_ok=false
5064for ac_c_preproc_warn_flag in '' yes
5065do
5066  # Use a header file that comes with gcc, so configuring glibc
5067  # with a fresh cross-compiler works.
5068  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5069  # <limits.h> exists even on freestanding compilers.
5070  # On the NeXT, cc -E runs the code through the compiler's parser,
5071  # not just through cpp. "Syntax error" is here to catch this case.
5072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5073/* end confdefs.h.  */
5074#ifdef __STDC__
5075# include <limits.h>
5076#else
5077# include <assert.h>
5078#endif
5079		     Syntax error
5080_ACEOF
5081if ac_fn_c_try_cpp "$LINENO"; then :
5082
5083else
5084  # Broken: fails on valid input.
5085continue
5086fi
5087rm -f conftest.err conftest.i conftest.$ac_ext
5088
5089  # OK, works on sane cases.  Now check whether nonexistent headers
5090  # can be detected and how.
5091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5092/* end confdefs.h.  */
5093#include <ac_nonexistent.h>
5094_ACEOF
5095if ac_fn_c_try_cpp "$LINENO"; then :
5096  # Broken: success on invalid input.
5097continue
5098else
5099  # Passes both tests.
5100ac_preproc_ok=:
5101break
5102fi
5103rm -f conftest.err conftest.i conftest.$ac_ext
5104
5105done
5106# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5107rm -f conftest.i conftest.err conftest.$ac_ext
5108if $ac_preproc_ok; then :
5109
5110else
5111  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5112$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5113as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5114See \`config.log' for more details" "$LINENO" 5; }
5115fi
5116
5117ac_ext=c
5118ac_cpp='$CPP $CPPFLAGS'
5119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5121ac_compiler_gnu=$ac_cv_c_compiler_gnu
5122
5123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5124$as_echo_n "checking whether ln -s works... " >&6; }
5125LN_S=$as_ln_s
5126if test "$LN_S" = "ln -s"; then
5127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5128$as_echo "yes" >&6; }
5129else
5130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5131$as_echo "no, using $LN_S" >&6; }
5132fi
5133
5134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5135$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5136set x ${MAKE-make}
5137ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5138if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5139  $as_echo_n "(cached) " >&6
5140else
5141  cat >conftest.make <<\_ACEOF
5142SHELL = /bin/sh
5143all:
5144	@echo '@@@%%%=$(MAKE)=@@@%%%'
5145_ACEOF
5146# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5147case `${MAKE-make} -f conftest.make 2>/dev/null` in
5148  *@@@%%%=?*=@@@%%%*)
5149    eval ac_cv_prog_make_${ac_make}_set=yes;;
5150  *)
5151    eval ac_cv_prog_make_${ac_make}_set=no;;
5152esac
5153rm -f conftest.make
5154fi
5155if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5157$as_echo "yes" >&6; }
5158  SET_MAKE=
5159else
5160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5161$as_echo "no" >&6; }
5162  SET_MAKE="MAKE=${MAKE-make}"
5163fi
5164
5165
5166
5167
5168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5169$as_echo_n "checking for ANSI C header files... " >&6; }
5170if ${ac_cv_header_stdc+:} false; then :
5171  $as_echo_n "(cached) " >&6
5172else
5173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5174/* end confdefs.h.  */
5175#include <stdlib.h>
5176#include <stdarg.h>
5177#include <string.h>
5178#include <float.h>
5179
5180int
5181main ()
5182{
5183
5184  ;
5185  return 0;
5186}
5187_ACEOF
5188if ac_fn_c_try_compile "$LINENO"; then :
5189  ac_cv_header_stdc=yes
5190else
5191  ac_cv_header_stdc=no
5192fi
5193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5194
5195if test $ac_cv_header_stdc = yes; then
5196  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198/* end confdefs.h.  */
5199#include <string.h>
5200
5201_ACEOF
5202if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5203  $EGREP "memchr" >/dev/null 2>&1; then :
5204
5205else
5206  ac_cv_header_stdc=no
5207fi
5208rm -f conftest*
5209
5210fi
5211
5212if test $ac_cv_header_stdc = yes; then
5213  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215/* end confdefs.h.  */
5216#include <stdlib.h>
5217
5218_ACEOF
5219if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5220  $EGREP "free" >/dev/null 2>&1; then :
5221
5222else
5223  ac_cv_header_stdc=no
5224fi
5225rm -f conftest*
5226
5227fi
5228
5229if test $ac_cv_header_stdc = yes; then
5230  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5231  if test "$cross_compiling" = yes; then :
5232  :
5233else
5234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5235/* end confdefs.h.  */
5236#include <ctype.h>
5237#include <stdlib.h>
5238#if ((' ' & 0x0FF) == 0x020)
5239# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5240# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5241#else
5242# define ISLOWER(c) \
5243		   (('a' <= (c) && (c) <= 'i') \
5244		     || ('j' <= (c) && (c) <= 'r') \
5245		     || ('s' <= (c) && (c) <= 'z'))
5246# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5247#endif
5248
5249#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5250int
5251main ()
5252{
5253  int i;
5254  for (i = 0; i < 256; i++)
5255    if (XOR (islower (i), ISLOWER (i))
5256	|| toupper (i) != TOUPPER (i))
5257      return 2;
5258  return 0;
5259}
5260_ACEOF
5261if ac_fn_c_try_run "$LINENO"; then :
5262
5263else
5264  ac_cv_header_stdc=no
5265fi
5266rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5267  conftest.$ac_objext conftest.beam conftest.$ac_ext
5268fi
5269
5270fi
5271fi
5272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5273$as_echo "$ac_cv_header_stdc" >&6; }
5274if test $ac_cv_header_stdc = yes; then
5275
5276$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5277
5278fi
5279
5280# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5281for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5282		  inttypes.h stdint.h unistd.h
5283do :
5284  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5285ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5286"
5287if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5288  cat >>confdefs.h <<_ACEOF
5289#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5290_ACEOF
5291
5292fi
5293
5294done
5295
5296
5297
5298  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5299if test "x$ac_cv_header_minix_config_h" = xyes; then :
5300  MINIX=yes
5301else
5302  MINIX=
5303fi
5304
5305
5306  if test "$MINIX" = yes; then
5307
5308$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5309
5310
5311$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5312
5313
5314$as_echo "#define _MINIX 1" >>confdefs.h
5315
5316  fi
5317
5318
5319  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5320$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5321if ${ac_cv_safe_to_define___extensions__+:} false; then :
5322  $as_echo_n "(cached) " >&6
5323else
5324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325/* end confdefs.h.  */
5326
5327#         define __EXTENSIONS__ 1
5328          $ac_includes_default
5329int
5330main ()
5331{
5332
5333  ;
5334  return 0;
5335}
5336_ACEOF
5337if ac_fn_c_try_compile "$LINENO"; then :
5338  ac_cv_safe_to_define___extensions__=yes
5339else
5340  ac_cv_safe_to_define___extensions__=no
5341fi
5342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5343fi
5344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5345$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5346  test $ac_cv_safe_to_define___extensions__ = yes &&
5347    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5348
5349  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5350
5351  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5352
5353  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5354
5355  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5356
5357
5358if test -n "$ac_tool_prefix"; then
5359  for ac_prog in ar lib "link -lib"
5360  do
5361    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5362set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5364$as_echo_n "checking for $ac_word... " >&6; }
5365if ${ac_cv_prog_AR+:} false; then :
5366  $as_echo_n "(cached) " >&6
5367else
5368  if test -n "$AR"; then
5369  ac_cv_prog_AR="$AR" # Let the user override the test.
5370else
5371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372for as_dir in $PATH
5373do
5374  IFS=$as_save_IFS
5375  test -z "$as_dir" && as_dir=.
5376    for ac_exec_ext in '' $ac_executable_extensions; do
5377  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5378    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5379    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5380    break 2
5381  fi
5382done
5383  done
5384IFS=$as_save_IFS
5385
5386fi
5387fi
5388AR=$ac_cv_prog_AR
5389if test -n "$AR"; then
5390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5391$as_echo "$AR" >&6; }
5392else
5393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5394$as_echo "no" >&6; }
5395fi
5396
5397
5398    test -n "$AR" && break
5399  done
5400fi
5401if test -z "$AR"; then
5402  ac_ct_AR=$AR
5403  for ac_prog in ar lib "link -lib"
5404do
5405  # Extract the first word of "$ac_prog", so it can be a program name with args.
5406set dummy $ac_prog; ac_word=$2
5407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5408$as_echo_n "checking for $ac_word... " >&6; }
5409if ${ac_cv_prog_ac_ct_AR+:} false; then :
5410  $as_echo_n "(cached) " >&6
5411else
5412  if test -n "$ac_ct_AR"; then
5413  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5414else
5415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416for as_dir in $PATH
5417do
5418  IFS=$as_save_IFS
5419  test -z "$as_dir" && as_dir=.
5420    for ac_exec_ext in '' $ac_executable_extensions; do
5421  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5422    ac_cv_prog_ac_ct_AR="$ac_prog"
5423    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5424    break 2
5425  fi
5426done
5427  done
5428IFS=$as_save_IFS
5429
5430fi
5431fi
5432ac_ct_AR=$ac_cv_prog_ac_ct_AR
5433if test -n "$ac_ct_AR"; then
5434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5435$as_echo "$ac_ct_AR" >&6; }
5436else
5437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438$as_echo "no" >&6; }
5439fi
5440
5441
5442  test -n "$ac_ct_AR" && break
5443done
5444
5445  if test "x$ac_ct_AR" = x; then
5446    AR="false"
5447  else
5448    case $cross_compiling:$ac_tool_warned in
5449yes:)
5450{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5451$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5452ac_tool_warned=yes ;;
5453esac
5454    AR=$ac_ct_AR
5455  fi
5456fi
5457
5458: ${AR=ar}
5459
5460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5461$as_echo_n "checking the archiver ($AR) interface... " >&6; }
5462if ${am_cv_ar_interface+:} false; then :
5463  $as_echo_n "(cached) " >&6
5464else
5465  am_cv_ar_interface=ar
5466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467/* end confdefs.h.  */
5468int some_variable = 0;
5469_ACEOF
5470if ac_fn_c_try_compile "$LINENO"; then :
5471  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5472      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5473  (eval $am_ar_try) 2>&5
5474  ac_status=$?
5475  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5476  test $ac_status = 0; }
5477      if test "$ac_status" -eq 0; then
5478        am_cv_ar_interface=ar
5479      else
5480        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5481        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5482  (eval $am_ar_try) 2>&5
5483  ac_status=$?
5484  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5485  test $ac_status = 0; }
5486        if test "$ac_status" -eq 0; then
5487          am_cv_ar_interface=lib
5488        else
5489          am_cv_ar_interface=unknown
5490        fi
5491      fi
5492      rm -f conftest.lib libconftest.a
5493
5494fi
5495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5496
5497fi
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5499$as_echo "$am_cv_ar_interface" >&6; }
5500
5501case $am_cv_ar_interface in
5502ar)
5503  ;;
5504lib)
5505  # Microsoft lib, so override with the ar-lib wrapper script.
5506  # FIXME: It is wrong to rewrite AR.
5507  # But if we don't then we get into trouble of one sort or another.
5508  # A longer-term fix would be to have automake use am__AR in this case,
5509  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5510  # similar.
5511  AR="$am_aux_dir/ar-lib $AR"
5512  ;;
5513unknown)
5514  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5515  ;;
5516esac
5517
5518
5519
5520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5521$as_echo_n "checking for library containing strerror... " >&6; }
5522if ${ac_cv_search_strerror+:} false; then :
5523  $as_echo_n "(cached) " >&6
5524else
5525  ac_func_search_save_LIBS=$LIBS
5526cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5527/* end confdefs.h.  */
5528
5529/* Override any GCC internal prototype to avoid an error.
5530   Use char because int might match the return type of a GCC
5531   builtin and then its argument prototype would still apply.  */
5532#ifdef __cplusplus
5533extern "C"
5534#endif
5535char strerror ();
5536int
5537main ()
5538{
5539return strerror ();
5540  ;
5541  return 0;
5542}
5543_ACEOF
5544for ac_lib in '' cposix; do
5545  if test -z "$ac_lib"; then
5546    ac_res="none required"
5547  else
5548    ac_res=-l$ac_lib
5549    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5550  fi
5551  if ac_fn_c_try_link "$LINENO"; then :
5552  ac_cv_search_strerror=$ac_res
5553fi
5554rm -f core conftest.err conftest.$ac_objext \
5555    conftest$ac_exeext
5556  if ${ac_cv_search_strerror+:} false; then :
5557  break
5558fi
5559done
5560if ${ac_cv_search_strerror+:} false; then :
5561
5562else
5563  ac_cv_search_strerror=no
5564fi
5565rm conftest.$ac_ext
5566LIBS=$ac_func_search_save_LIBS
5567fi
5568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5569$as_echo "$ac_cv_search_strerror" >&6; }
5570ac_res=$ac_cv_search_strerror
5571if test "$ac_res" != no; then :
5572  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5573
5574fi
5575
5576
5577
5578case $host_os in
5579	*darwin*|*cygwin*|*aix*|*mingw* ) NO_RDYNAMIC=yes;;
5580	* ) NO_RDYNAMIC=no;;
5581esac
5582 if test x$NO_RDYNAMIC = xyes; then
5583  NO_RDYNAMIC_TRUE=
5584  NO_RDYNAMIC_FALSE='#'
5585else
5586  NO_RDYNAMIC_TRUE='#'
5587  NO_RDYNAMIC_FALSE=
5588fi
5589
5590
5591
5592
5593# Check whether --enable-static was given.
5594if test "${enable_static+set}" = set; then :
5595  enableval=$enable_static; p=${PACKAGE-default}
5596    case $enableval in
5597    yes) enable_static=yes ;;
5598    no) enable_static=no ;;
5599    *)
5600     enable_static=no
5601      # Look at the argument we got.  We use all the common list separators.
5602      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5603      for pkg in $enableval; do
5604	IFS="$lt_save_ifs"
5605	if test "X$pkg" = "X$p"; then
5606	  enable_static=yes
5607	fi
5608      done
5609      IFS="$lt_save_ifs"
5610      ;;
5611    esac
5612else
5613  enable_static=no
5614fi
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624# Check whether --enable-shared was given.
5625if test "${enable_shared+set}" = set; then :
5626  enableval=$enable_shared; p=${PACKAGE-default}
5627    case $enableval in
5628    yes) enable_shared=yes ;;
5629    no) enable_shared=no ;;
5630    *)
5631      enable_shared=no
5632      # Look at the argument we got.  We use all the common list separators.
5633      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5634      for pkg in $enableval; do
5635	IFS="$lt_save_ifs"
5636	if test "X$pkg" = "X$p"; then
5637	  enable_shared=yes
5638	fi
5639      done
5640      IFS="$lt_save_ifs"
5641      ;;
5642    esac
5643else
5644  enable_shared=yes
5645fi
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656enable_dlopen=yes
5657
5658
5659
5660case `pwd` in
5661  *\ * | *\	*)
5662    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5663$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5664esac
5665
5666
5667
5668macro_version='2.4.2'
5669macro_revision='1.3337'
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683ltmain="$ac_aux_dir/ltmain.sh"
5684
5685# Backslashify metacharacters that are still active within
5686# double-quoted strings.
5687sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5688
5689# Same as above, but do not quote variable references.
5690double_quote_subst='s/\(["`\\]\)/\\\1/g'
5691
5692# Sed substitution to delay expansion of an escaped shell variable in a
5693# double_quote_subst'ed string.
5694delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5695
5696# Sed substitution to delay expansion of an escaped single quote.
5697delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5698
5699# Sed substitution to avoid accidental globbing in evaled expressions
5700no_glob_subst='s/\*/\\\*/g'
5701
5702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5703$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5704if ${lt_cv_path_NM+:} false; then :
5705  $as_echo_n "(cached) " >&6
5706else
5707  if test -n "$NM"; then
5708  # Let the user override the test.
5709  lt_cv_path_NM="$NM"
5710else
5711  lt_nm_to_check="${ac_tool_prefix}nm"
5712  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5713    lt_nm_to_check="$lt_nm_to_check nm"
5714  fi
5715  for lt_tmp_nm in $lt_nm_to_check; do
5716    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5717    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5718      IFS="$lt_save_ifs"
5719      test -z "$ac_dir" && ac_dir=.
5720      tmp_nm="$ac_dir/$lt_tmp_nm"
5721      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5722	# Check to see if the nm accepts a BSD-compat flag.
5723	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5724	#   nm: unknown option "B" ignored
5725	# Tru64's nm complains that /dev/null is an invalid object file
5726	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5727	*/dev/null* | *'Invalid file or object type'*)
5728	  lt_cv_path_NM="$tmp_nm -B"
5729	  break
5730	  ;;
5731	*)
5732	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5733	  */dev/null*)
5734	    lt_cv_path_NM="$tmp_nm -p"
5735	    break
5736	    ;;
5737	  *)
5738	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5739	    continue # so that we can try to find one that supports BSD flags
5740	    ;;
5741	  esac
5742	  ;;
5743	esac
5744      fi
5745    done
5746    IFS="$lt_save_ifs"
5747  done
5748  : ${lt_cv_path_NM=no}
5749fi
5750fi
5751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5752$as_echo "$lt_cv_path_NM" >&6; }
5753if test "$lt_cv_path_NM" != "no"; then
5754  NM="$lt_cv_path_NM"
5755else
5756  # Didn't find any BSD compatible name lister, look for dumpbin.
5757  if test -n "$DUMPBIN"; then :
5758    # Let the user override the test.
5759  else
5760    if test -n "$ac_tool_prefix"; then
5761  for ac_prog in dumpbin "link -dump"
5762  do
5763    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5764set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5766$as_echo_n "checking for $ac_word... " >&6; }
5767if ${ac_cv_prog_DUMPBIN+:} false; then :
5768  $as_echo_n "(cached) " >&6
5769else
5770  if test -n "$DUMPBIN"; then
5771  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5772else
5773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774for as_dir in $PATH
5775do
5776  IFS=$as_save_IFS
5777  test -z "$as_dir" && as_dir=.
5778    for ac_exec_ext in '' $ac_executable_extensions; do
5779  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5780    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5781    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5782    break 2
5783  fi
5784done
5785  done
5786IFS=$as_save_IFS
5787
5788fi
5789fi
5790DUMPBIN=$ac_cv_prog_DUMPBIN
5791if test -n "$DUMPBIN"; then
5792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5793$as_echo "$DUMPBIN" >&6; }
5794else
5795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5796$as_echo "no" >&6; }
5797fi
5798
5799
5800    test -n "$DUMPBIN" && break
5801  done
5802fi
5803if test -z "$DUMPBIN"; then
5804  ac_ct_DUMPBIN=$DUMPBIN
5805  for ac_prog in dumpbin "link -dump"
5806do
5807  # Extract the first word of "$ac_prog", so it can be a program name with args.
5808set dummy $ac_prog; ac_word=$2
5809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5810$as_echo_n "checking for $ac_word... " >&6; }
5811if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5812  $as_echo_n "(cached) " >&6
5813else
5814  if test -n "$ac_ct_DUMPBIN"; then
5815  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5816else
5817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818for as_dir in $PATH
5819do
5820  IFS=$as_save_IFS
5821  test -z "$as_dir" && as_dir=.
5822    for ac_exec_ext in '' $ac_executable_extensions; do
5823  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5824    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5825    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5826    break 2
5827  fi
5828done
5829  done
5830IFS=$as_save_IFS
5831
5832fi
5833fi
5834ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5835if test -n "$ac_ct_DUMPBIN"; then
5836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5837$as_echo "$ac_ct_DUMPBIN" >&6; }
5838else
5839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5840$as_echo "no" >&6; }
5841fi
5842
5843
5844  test -n "$ac_ct_DUMPBIN" && break
5845done
5846
5847  if test "x$ac_ct_DUMPBIN" = x; then
5848    DUMPBIN=":"
5849  else
5850    case $cross_compiling:$ac_tool_warned in
5851yes:)
5852{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5853$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5854ac_tool_warned=yes ;;
5855esac
5856    DUMPBIN=$ac_ct_DUMPBIN
5857  fi
5858fi
5859
5860    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5861    *COFF*)
5862      DUMPBIN="$DUMPBIN -symbols"
5863      ;;
5864    *)
5865      DUMPBIN=:
5866      ;;
5867    esac
5868  fi
5869
5870  if test "$DUMPBIN" != ":"; then
5871    NM="$DUMPBIN"
5872  fi
5873fi
5874test -z "$NM" && NM=nm
5875
5876
5877
5878
5879
5880
5881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5882$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5883if ${lt_cv_nm_interface+:} false; then :
5884  $as_echo_n "(cached) " >&6
5885else
5886  lt_cv_nm_interface="BSD nm"
5887  echo "int some_variable = 0;" > conftest.$ac_ext
5888  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5889  (eval "$ac_compile" 2>conftest.err)
5890  cat conftest.err >&5
5891  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5892  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5893  cat conftest.err >&5
5894  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5895  cat conftest.out >&5
5896  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5897    lt_cv_nm_interface="MS dumpbin"
5898  fi
5899  rm -f conftest*
5900fi
5901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5902$as_echo "$lt_cv_nm_interface" >&6; }
5903
5904# find the maximum length of command line arguments
5905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5906$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5907if ${lt_cv_sys_max_cmd_len+:} false; then :
5908  $as_echo_n "(cached) " >&6
5909else
5910    i=0
5911  teststring="ABCD"
5912
5913  case $build_os in
5914  msdosdjgpp*)
5915    # On DJGPP, this test can blow up pretty badly due to problems in libc
5916    # (any single argument exceeding 2000 bytes causes a buffer overrun
5917    # during glob expansion).  Even if it were fixed, the result of this
5918    # check would be larger than it should be.
5919    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5920    ;;
5921
5922  gnu*)
5923    # Under GNU Hurd, this test is not required because there is
5924    # no limit to the length of command line arguments.
5925    # Libtool will interpret -1 as no limit whatsoever
5926    lt_cv_sys_max_cmd_len=-1;
5927    ;;
5928
5929  cygwin* | mingw* | cegcc*)
5930    # On Win9x/ME, this test blows up -- it succeeds, but takes
5931    # about 5 minutes as the teststring grows exponentially.
5932    # Worse, since 9x/ME are not pre-emptively multitasking,
5933    # you end up with a "frozen" computer, even though with patience
5934    # the test eventually succeeds (with a max line length of 256k).
5935    # Instead, let's just punt: use the minimum linelength reported by
5936    # all of the supported platforms: 8192 (on NT/2K/XP).
5937    lt_cv_sys_max_cmd_len=8192;
5938    ;;
5939
5940  mint*)
5941    # On MiNT this can take a long time and run out of memory.
5942    lt_cv_sys_max_cmd_len=8192;
5943    ;;
5944
5945  amigaos*)
5946    # On AmigaOS with pdksh, this test takes hours, literally.
5947    # So we just punt and use a minimum line length of 8192.
5948    lt_cv_sys_max_cmd_len=8192;
5949    ;;
5950
5951  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5952    # This has been around since 386BSD, at least.  Likely further.
5953    if test -x /sbin/sysctl; then
5954      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5955    elif test -x /usr/sbin/sysctl; then
5956      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5957    else
5958      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5959    fi
5960    # And add a safety zone
5961    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5962    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5963    ;;
5964
5965  interix*)
5966    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5967    lt_cv_sys_max_cmd_len=196608
5968    ;;
5969
5970  os2*)
5971    # The test takes a long time on OS/2.
5972    lt_cv_sys_max_cmd_len=8192
5973    ;;
5974
5975  osf*)
5976    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5977    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5978    # nice to cause kernel panics so lets avoid the loop below.
5979    # First set a reasonable default.
5980    lt_cv_sys_max_cmd_len=16384
5981    #
5982    if test -x /sbin/sysconfig; then
5983      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5984        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5985      esac
5986    fi
5987    ;;
5988  sco3.2v5*)
5989    lt_cv_sys_max_cmd_len=102400
5990    ;;
5991  sysv5* | sco5v6* | sysv4.2uw2*)
5992    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5993    if test -n "$kargmax"; then
5994      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5995    else
5996      lt_cv_sys_max_cmd_len=32768
5997    fi
5998    ;;
5999  *)
6000    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6001    if test -n "$lt_cv_sys_max_cmd_len"; then
6002      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6003      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6004    else
6005      # Make teststring a little bigger before we do anything with it.
6006      # a 1K string should be a reasonable start.
6007      for i in 1 2 3 4 5 6 7 8 ; do
6008        teststring=$teststring$teststring
6009      done
6010      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6011      # If test is not a shell built-in, we'll probably end up computing a
6012      # maximum length that is only half of the actual maximum length, but
6013      # we can't tell.
6014      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6015	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6016	      test $i != 17 # 1/2 MB should be enough
6017      do
6018        i=`expr $i + 1`
6019        teststring=$teststring$teststring
6020      done
6021      # Only check the string length outside the loop.
6022      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6023      teststring=
6024      # Add a significant safety factor because C++ compilers can tack on
6025      # massive amounts of additional arguments before passing them to the
6026      # linker.  It appears as though 1/2 is a usable value.
6027      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6028    fi
6029    ;;
6030  esac
6031
6032fi
6033
6034if test -n $lt_cv_sys_max_cmd_len ; then
6035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6036$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6037else
6038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6039$as_echo "none" >&6; }
6040fi
6041max_cmd_len=$lt_cv_sys_max_cmd_len
6042
6043
6044
6045
6046
6047
6048: ${CP="cp -f"}
6049: ${MV="mv -f"}
6050: ${RM="rm -f"}
6051
6052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6053$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6054# Try some XSI features
6055xsi_shell=no
6056( _lt_dummy="a/b/c"
6057  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6058      = c,a/b,b/c, \
6059    && eval 'test $(( 1 + 1 )) -eq 2 \
6060    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6061  && xsi_shell=yes
6062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6063$as_echo "$xsi_shell" >&6; }
6064
6065
6066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6067$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6068lt_shell_append=no
6069( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6070    >/dev/null 2>&1 \
6071  && lt_shell_append=yes
6072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6073$as_echo "$lt_shell_append" >&6; }
6074
6075
6076if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6077  lt_unset=unset
6078else
6079  lt_unset=false
6080fi
6081
6082
6083
6084
6085
6086# test EBCDIC or ASCII
6087case `echo X|tr X '\101'` in
6088 A) # ASCII based system
6089    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6090  lt_SP2NL='tr \040 \012'
6091  lt_NL2SP='tr \015\012 \040\040'
6092  ;;
6093 *) # EBCDIC based system
6094  lt_SP2NL='tr \100 \n'
6095  lt_NL2SP='tr \r\n \100\100'
6096  ;;
6097esac
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6108$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6109if ${lt_cv_to_host_file_cmd+:} false; then :
6110  $as_echo_n "(cached) " >&6
6111else
6112  case $host in
6113  *-*-mingw* )
6114    case $build in
6115      *-*-mingw* ) # actually msys
6116        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6117        ;;
6118      *-*-cygwin* )
6119        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6120        ;;
6121      * ) # otherwise, assume *nix
6122        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6123        ;;
6124    esac
6125    ;;
6126  *-*-cygwin* )
6127    case $build in
6128      *-*-mingw* ) # actually msys
6129        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6130        ;;
6131      *-*-cygwin* )
6132        lt_cv_to_host_file_cmd=func_convert_file_noop
6133        ;;
6134      * ) # otherwise, assume *nix
6135        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6136        ;;
6137    esac
6138    ;;
6139  * ) # unhandled hosts (and "normal" native builds)
6140    lt_cv_to_host_file_cmd=func_convert_file_noop
6141    ;;
6142esac
6143
6144fi
6145
6146to_host_file_cmd=$lt_cv_to_host_file_cmd
6147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6148$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6149
6150
6151
6152
6153
6154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6155$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6156if ${lt_cv_to_tool_file_cmd+:} false; then :
6157  $as_echo_n "(cached) " >&6
6158else
6159  #assume ordinary cross tools, or native build.
6160lt_cv_to_tool_file_cmd=func_convert_file_noop
6161case $host in
6162  *-*-mingw* )
6163    case $build in
6164      *-*-mingw* ) # actually msys
6165        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6166        ;;
6167    esac
6168    ;;
6169esac
6170
6171fi
6172
6173to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6175$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6176
6177
6178
6179
6180
6181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6182$as_echo_n "checking for $LD option to reload object files... " >&6; }
6183if ${lt_cv_ld_reload_flag+:} false; then :
6184  $as_echo_n "(cached) " >&6
6185else
6186  lt_cv_ld_reload_flag='-r'
6187fi
6188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6189$as_echo "$lt_cv_ld_reload_flag" >&6; }
6190reload_flag=$lt_cv_ld_reload_flag
6191case $reload_flag in
6192"" | " "*) ;;
6193*) reload_flag=" $reload_flag" ;;
6194esac
6195reload_cmds='$LD$reload_flag -o $output$reload_objs'
6196case $host_os in
6197  cygwin* | mingw* | pw32* | cegcc*)
6198    if test "$GCC" != yes; then
6199      reload_cmds=false
6200    fi
6201    ;;
6202  darwin*)
6203    if test "$GCC" = yes; then
6204      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6205    else
6206      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6207    fi
6208    ;;
6209esac
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219if test -n "$ac_tool_prefix"; then
6220  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6221set dummy ${ac_tool_prefix}objdump; ac_word=$2
6222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6223$as_echo_n "checking for $ac_word... " >&6; }
6224if ${ac_cv_prog_OBJDUMP+:} false; then :
6225  $as_echo_n "(cached) " >&6
6226else
6227  if test -n "$OBJDUMP"; then
6228  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6229else
6230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231for as_dir in $PATH
6232do
6233  IFS=$as_save_IFS
6234  test -z "$as_dir" && as_dir=.
6235    for ac_exec_ext in '' $ac_executable_extensions; do
6236  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6237    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6238    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6239    break 2
6240  fi
6241done
6242  done
6243IFS=$as_save_IFS
6244
6245fi
6246fi
6247OBJDUMP=$ac_cv_prog_OBJDUMP
6248if test -n "$OBJDUMP"; then
6249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6250$as_echo "$OBJDUMP" >&6; }
6251else
6252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6253$as_echo "no" >&6; }
6254fi
6255
6256
6257fi
6258if test -z "$ac_cv_prog_OBJDUMP"; then
6259  ac_ct_OBJDUMP=$OBJDUMP
6260  # Extract the first word of "objdump", so it can be a program name with args.
6261set dummy objdump; ac_word=$2
6262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6263$as_echo_n "checking for $ac_word... " >&6; }
6264if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6265  $as_echo_n "(cached) " >&6
6266else
6267  if test -n "$ac_ct_OBJDUMP"; then
6268  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6269else
6270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271for as_dir in $PATH
6272do
6273  IFS=$as_save_IFS
6274  test -z "$as_dir" && as_dir=.
6275    for ac_exec_ext in '' $ac_executable_extensions; do
6276  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6277    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6278    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6279    break 2
6280  fi
6281done
6282  done
6283IFS=$as_save_IFS
6284
6285fi
6286fi
6287ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6288if test -n "$ac_ct_OBJDUMP"; then
6289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6290$as_echo "$ac_ct_OBJDUMP" >&6; }
6291else
6292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6293$as_echo "no" >&6; }
6294fi
6295
6296  if test "x$ac_ct_OBJDUMP" = x; then
6297    OBJDUMP="false"
6298  else
6299    case $cross_compiling:$ac_tool_warned in
6300yes:)
6301{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6302$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6303ac_tool_warned=yes ;;
6304esac
6305    OBJDUMP=$ac_ct_OBJDUMP
6306  fi
6307else
6308  OBJDUMP="$ac_cv_prog_OBJDUMP"
6309fi
6310
6311test -z "$OBJDUMP" && OBJDUMP=objdump
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6322$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6323if ${lt_cv_deplibs_check_method+:} false; then :
6324  $as_echo_n "(cached) " >&6
6325else
6326  lt_cv_file_magic_cmd='$MAGIC_CMD'
6327lt_cv_file_magic_test_file=
6328lt_cv_deplibs_check_method='unknown'
6329# Need to set the preceding variable on all platforms that support
6330# interlibrary dependencies.
6331# 'none' -- dependencies not supported.
6332# `unknown' -- same as none, but documents that we really don't know.
6333# 'pass_all' -- all dependencies passed with no checks.
6334# 'test_compile' -- check by making test program.
6335# 'file_magic [[regex]]' -- check by looking for files in library path
6336# which responds to the $file_magic_cmd with a given extended regex.
6337# If you have `file' or equivalent on your system and you're not sure
6338# whether `pass_all' will *always* work, you probably want this one.
6339
6340case $host_os in
6341aix[4-9]*)
6342  lt_cv_deplibs_check_method=pass_all
6343  ;;
6344
6345beos*)
6346  lt_cv_deplibs_check_method=pass_all
6347  ;;
6348
6349bsdi[45]*)
6350  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6351  lt_cv_file_magic_cmd='/usr/bin/file -L'
6352  lt_cv_file_magic_test_file=/shlib/libc.so
6353  ;;
6354
6355cygwin*)
6356  # func_win32_libid is a shell function defined in ltmain.sh
6357  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6358  lt_cv_file_magic_cmd='func_win32_libid'
6359  ;;
6360
6361mingw* | pw32*)
6362  # Base MSYS/MinGW do not provide the 'file' command needed by
6363  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6364  # unless we find 'file', for example because we are cross-compiling.
6365  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6366  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6367    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6368    lt_cv_file_magic_cmd='func_win32_libid'
6369  else
6370    # Keep this pattern in sync with the one in func_win32_libid.
6371    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6372    lt_cv_file_magic_cmd='$OBJDUMP -f'
6373  fi
6374  ;;
6375
6376cegcc*)
6377  # use the weaker test based on 'objdump'. See mingw*.
6378  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6379  lt_cv_file_magic_cmd='$OBJDUMP -f'
6380  ;;
6381
6382darwin* | rhapsody*)
6383  lt_cv_deplibs_check_method=pass_all
6384  ;;
6385
6386freebsd* | dragonfly*)
6387  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6388    case $host_cpu in
6389    i*86 )
6390      # Not sure whether the presence of OpenBSD here was a mistake.
6391      # Let's accept both of them until this is cleared up.
6392      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6393      lt_cv_file_magic_cmd=/usr/bin/file
6394      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6395      ;;
6396    esac
6397  else
6398    lt_cv_deplibs_check_method=pass_all
6399  fi
6400  ;;
6401
6402haiku*)
6403  lt_cv_deplibs_check_method=pass_all
6404  ;;
6405
6406hpux10.20* | hpux11*)
6407  lt_cv_file_magic_cmd=/usr/bin/file
6408  case $host_cpu in
6409  ia64*)
6410    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6411    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6412    ;;
6413  hppa*64*)
6414    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]'
6415    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6416    ;;
6417  *)
6418    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6419    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6420    ;;
6421  esac
6422  ;;
6423
6424interix[3-9]*)
6425  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6426  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6427  ;;
6428
6429irix5* | irix6* | nonstopux*)
6430  case $LD in
6431  *-32|*"-32 ") libmagic=32-bit;;
6432  *-n32|*"-n32 ") libmagic=N32;;
6433  *-64|*"-64 ") libmagic=64-bit;;
6434  *) libmagic=never-match;;
6435  esac
6436  lt_cv_deplibs_check_method=pass_all
6437  ;;
6438
6439# This must be glibc/ELF.
6440linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6441  lt_cv_deplibs_check_method=pass_all
6442  ;;
6443
6444netbsd* | netbsdelf*-gnu)
6445  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6446    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6447  else
6448    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6449  fi
6450  ;;
6451
6452newos6*)
6453  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6454  lt_cv_file_magic_cmd=/usr/bin/file
6455  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6456  ;;
6457
6458*nto* | *qnx*)
6459  lt_cv_deplibs_check_method=pass_all
6460  ;;
6461
6462openbsd*)
6463  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6464    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6465  else
6466    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6467  fi
6468  ;;
6469
6470osf3* | osf4* | osf5*)
6471  lt_cv_deplibs_check_method=pass_all
6472  ;;
6473
6474rdos*)
6475  lt_cv_deplibs_check_method=pass_all
6476  ;;
6477
6478solaris*)
6479  lt_cv_deplibs_check_method=pass_all
6480  ;;
6481
6482sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6483  lt_cv_deplibs_check_method=pass_all
6484  ;;
6485
6486sysv4 | sysv4.3*)
6487  case $host_vendor in
6488  motorola)
6489    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]'
6490    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6491    ;;
6492  ncr)
6493    lt_cv_deplibs_check_method=pass_all
6494    ;;
6495  sequent)
6496    lt_cv_file_magic_cmd='/bin/file'
6497    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6498    ;;
6499  sni)
6500    lt_cv_file_magic_cmd='/bin/file'
6501    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6502    lt_cv_file_magic_test_file=/lib/libc.so
6503    ;;
6504  siemens)
6505    lt_cv_deplibs_check_method=pass_all
6506    ;;
6507  pc)
6508    lt_cv_deplibs_check_method=pass_all
6509    ;;
6510  esac
6511  ;;
6512
6513tpf*)
6514  lt_cv_deplibs_check_method=pass_all
6515  ;;
6516esac
6517
6518fi
6519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6520$as_echo "$lt_cv_deplibs_check_method" >&6; }
6521
6522file_magic_glob=
6523want_nocaseglob=no
6524if test "$build" = "$host"; then
6525  case $host_os in
6526  mingw* | pw32*)
6527    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6528      want_nocaseglob=yes
6529    else
6530      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6531    fi
6532    ;;
6533  esac
6534fi
6535
6536file_magic_cmd=$lt_cv_file_magic_cmd
6537deplibs_check_method=$lt_cv_deplibs_check_method
6538test -z "$deplibs_check_method" && deplibs_check_method=unknown
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561if test -n "$ac_tool_prefix"; then
6562  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6563set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6565$as_echo_n "checking for $ac_word... " >&6; }
6566if ${ac_cv_prog_DLLTOOL+:} false; then :
6567  $as_echo_n "(cached) " >&6
6568else
6569  if test -n "$DLLTOOL"; then
6570  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6571else
6572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573for as_dir in $PATH
6574do
6575  IFS=$as_save_IFS
6576  test -z "$as_dir" && as_dir=.
6577    for ac_exec_ext in '' $ac_executable_extensions; do
6578  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6579    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6580    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6581    break 2
6582  fi
6583done
6584  done
6585IFS=$as_save_IFS
6586
6587fi
6588fi
6589DLLTOOL=$ac_cv_prog_DLLTOOL
6590if test -n "$DLLTOOL"; then
6591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6592$as_echo "$DLLTOOL" >&6; }
6593else
6594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6595$as_echo "no" >&6; }
6596fi
6597
6598
6599fi
6600if test -z "$ac_cv_prog_DLLTOOL"; then
6601  ac_ct_DLLTOOL=$DLLTOOL
6602  # Extract the first word of "dlltool", so it can be a program name with args.
6603set dummy dlltool; ac_word=$2
6604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6605$as_echo_n "checking for $ac_word... " >&6; }
6606if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6607  $as_echo_n "(cached) " >&6
6608else
6609  if test -n "$ac_ct_DLLTOOL"; then
6610  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6611else
6612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613for as_dir in $PATH
6614do
6615  IFS=$as_save_IFS
6616  test -z "$as_dir" && as_dir=.
6617    for ac_exec_ext in '' $ac_executable_extensions; do
6618  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6619    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6620    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6621    break 2
6622  fi
6623done
6624  done
6625IFS=$as_save_IFS
6626
6627fi
6628fi
6629ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6630if test -n "$ac_ct_DLLTOOL"; then
6631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6632$as_echo "$ac_ct_DLLTOOL" >&6; }
6633else
6634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6635$as_echo "no" >&6; }
6636fi
6637
6638  if test "x$ac_ct_DLLTOOL" = x; then
6639    DLLTOOL="false"
6640  else
6641    case $cross_compiling:$ac_tool_warned in
6642yes:)
6643{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6644$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6645ac_tool_warned=yes ;;
6646esac
6647    DLLTOOL=$ac_ct_DLLTOOL
6648  fi
6649else
6650  DLLTOOL="$ac_cv_prog_DLLTOOL"
6651fi
6652
6653test -z "$DLLTOOL" && DLLTOOL=dlltool
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6665$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6666if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6667  $as_echo_n "(cached) " >&6
6668else
6669  lt_cv_sharedlib_from_linklib_cmd='unknown'
6670
6671case $host_os in
6672cygwin* | mingw* | pw32* | cegcc*)
6673  # two different shell functions defined in ltmain.sh
6674  # decide which to use based on capabilities of $DLLTOOL
6675  case `$DLLTOOL --help 2>&1` in
6676  *--identify-strict*)
6677    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6678    ;;
6679  *)
6680    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6681    ;;
6682  esac
6683  ;;
6684*)
6685  # fallback: assume linklib IS sharedlib
6686  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6687  ;;
6688esac
6689
6690fi
6691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6692$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6693sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6694test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6695
6696
6697
6698
6699
6700
6701
6702if test -n "$ac_tool_prefix"; then
6703  for ac_prog in ar
6704  do
6705    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6706set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6708$as_echo_n "checking for $ac_word... " >&6; }
6709if ${ac_cv_prog_AR+:} false; then :
6710  $as_echo_n "(cached) " >&6
6711else
6712  if test -n "$AR"; then
6713  ac_cv_prog_AR="$AR" # Let the user override the test.
6714else
6715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716for as_dir in $PATH
6717do
6718  IFS=$as_save_IFS
6719  test -z "$as_dir" && as_dir=.
6720    for ac_exec_ext in '' $ac_executable_extensions; do
6721  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6722    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6723    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6724    break 2
6725  fi
6726done
6727  done
6728IFS=$as_save_IFS
6729
6730fi
6731fi
6732AR=$ac_cv_prog_AR
6733if test -n "$AR"; then
6734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6735$as_echo "$AR" >&6; }
6736else
6737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6738$as_echo "no" >&6; }
6739fi
6740
6741
6742    test -n "$AR" && break
6743  done
6744fi
6745if test -z "$AR"; then
6746  ac_ct_AR=$AR
6747  for ac_prog in ar
6748do
6749  # Extract the first word of "$ac_prog", so it can be a program name with args.
6750set dummy $ac_prog; ac_word=$2
6751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6752$as_echo_n "checking for $ac_word... " >&6; }
6753if ${ac_cv_prog_ac_ct_AR+:} false; then :
6754  $as_echo_n "(cached) " >&6
6755else
6756  if test -n "$ac_ct_AR"; then
6757  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6758else
6759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760for as_dir in $PATH
6761do
6762  IFS=$as_save_IFS
6763  test -z "$as_dir" && as_dir=.
6764    for ac_exec_ext in '' $ac_executable_extensions; do
6765  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6766    ac_cv_prog_ac_ct_AR="$ac_prog"
6767    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6768    break 2
6769  fi
6770done
6771  done
6772IFS=$as_save_IFS
6773
6774fi
6775fi
6776ac_ct_AR=$ac_cv_prog_ac_ct_AR
6777if test -n "$ac_ct_AR"; then
6778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6779$as_echo "$ac_ct_AR" >&6; }
6780else
6781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6782$as_echo "no" >&6; }
6783fi
6784
6785
6786  test -n "$ac_ct_AR" && break
6787done
6788
6789  if test "x$ac_ct_AR" = x; then
6790    AR="false"
6791  else
6792    case $cross_compiling:$ac_tool_warned in
6793yes:)
6794{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6795$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6796ac_tool_warned=yes ;;
6797esac
6798    AR=$ac_ct_AR
6799  fi
6800fi
6801
6802: ${AR=ar}
6803: ${AR_FLAGS=cru}
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6816$as_echo_n "checking for archiver @FILE support... " >&6; }
6817if ${lt_cv_ar_at_file+:} false; then :
6818  $as_echo_n "(cached) " >&6
6819else
6820  lt_cv_ar_at_file=no
6821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6822/* end confdefs.h.  */
6823
6824int
6825main ()
6826{
6827
6828  ;
6829  return 0;
6830}
6831_ACEOF
6832if ac_fn_c_try_compile "$LINENO"; then :
6833  echo conftest.$ac_objext > conftest.lst
6834      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6835      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6836  (eval $lt_ar_try) 2>&5
6837  ac_status=$?
6838  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6839  test $ac_status = 0; }
6840      if test "$ac_status" -eq 0; then
6841	# Ensure the archiver fails upon bogus file names.
6842	rm -f conftest.$ac_objext libconftest.a
6843	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6844  (eval $lt_ar_try) 2>&5
6845  ac_status=$?
6846  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6847  test $ac_status = 0; }
6848	if test "$ac_status" -ne 0; then
6849          lt_cv_ar_at_file=@
6850        fi
6851      fi
6852      rm -f conftest.* libconftest.a
6853
6854fi
6855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6856
6857fi
6858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6859$as_echo "$lt_cv_ar_at_file" >&6; }
6860
6861if test "x$lt_cv_ar_at_file" = xno; then
6862  archiver_list_spec=
6863else
6864  archiver_list_spec=$lt_cv_ar_at_file
6865fi
6866
6867
6868
6869
6870
6871
6872
6873if test -n "$ac_tool_prefix"; then
6874  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6875set dummy ${ac_tool_prefix}strip; ac_word=$2
6876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6877$as_echo_n "checking for $ac_word... " >&6; }
6878if ${ac_cv_prog_STRIP+:} false; then :
6879  $as_echo_n "(cached) " >&6
6880else
6881  if test -n "$STRIP"; then
6882  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6883else
6884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885for as_dir in $PATH
6886do
6887  IFS=$as_save_IFS
6888  test -z "$as_dir" && as_dir=.
6889    for ac_exec_ext in '' $ac_executable_extensions; do
6890  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6891    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6892    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6893    break 2
6894  fi
6895done
6896  done
6897IFS=$as_save_IFS
6898
6899fi
6900fi
6901STRIP=$ac_cv_prog_STRIP
6902if test -n "$STRIP"; then
6903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6904$as_echo "$STRIP" >&6; }
6905else
6906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6907$as_echo "no" >&6; }
6908fi
6909
6910
6911fi
6912if test -z "$ac_cv_prog_STRIP"; then
6913  ac_ct_STRIP=$STRIP
6914  # Extract the first word of "strip", so it can be a program name with args.
6915set dummy strip; ac_word=$2
6916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6917$as_echo_n "checking for $ac_word... " >&6; }
6918if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6919  $as_echo_n "(cached) " >&6
6920else
6921  if test -n "$ac_ct_STRIP"; then
6922  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6923else
6924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925for as_dir in $PATH
6926do
6927  IFS=$as_save_IFS
6928  test -z "$as_dir" && as_dir=.
6929    for ac_exec_ext in '' $ac_executable_extensions; do
6930  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6931    ac_cv_prog_ac_ct_STRIP="strip"
6932    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6933    break 2
6934  fi
6935done
6936  done
6937IFS=$as_save_IFS
6938
6939fi
6940fi
6941ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6942if test -n "$ac_ct_STRIP"; then
6943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6944$as_echo "$ac_ct_STRIP" >&6; }
6945else
6946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6947$as_echo "no" >&6; }
6948fi
6949
6950  if test "x$ac_ct_STRIP" = x; then
6951    STRIP=":"
6952  else
6953    case $cross_compiling:$ac_tool_warned in
6954yes:)
6955{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6956$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6957ac_tool_warned=yes ;;
6958esac
6959    STRIP=$ac_ct_STRIP
6960  fi
6961else
6962  STRIP="$ac_cv_prog_STRIP"
6963fi
6964
6965test -z "$STRIP" && STRIP=:
6966
6967
6968
6969
6970
6971
6972if test -n "$ac_tool_prefix"; then
6973  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6974set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6976$as_echo_n "checking for $ac_word... " >&6; }
6977if ${ac_cv_prog_RANLIB+:} false; then :
6978  $as_echo_n "(cached) " >&6
6979else
6980  if test -n "$RANLIB"; then
6981  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6982else
6983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984for as_dir in $PATH
6985do
6986  IFS=$as_save_IFS
6987  test -z "$as_dir" && as_dir=.
6988    for ac_exec_ext in '' $ac_executable_extensions; do
6989  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6990    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6991    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6992    break 2
6993  fi
6994done
6995  done
6996IFS=$as_save_IFS
6997
6998fi
6999fi
7000RANLIB=$ac_cv_prog_RANLIB
7001if test -n "$RANLIB"; then
7002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7003$as_echo "$RANLIB" >&6; }
7004else
7005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7006$as_echo "no" >&6; }
7007fi
7008
7009
7010fi
7011if test -z "$ac_cv_prog_RANLIB"; then
7012  ac_ct_RANLIB=$RANLIB
7013  # Extract the first word of "ranlib", so it can be a program name with args.
7014set dummy ranlib; ac_word=$2
7015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7016$as_echo_n "checking for $ac_word... " >&6; }
7017if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7018  $as_echo_n "(cached) " >&6
7019else
7020  if test -n "$ac_ct_RANLIB"; then
7021  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7022else
7023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024for as_dir in $PATH
7025do
7026  IFS=$as_save_IFS
7027  test -z "$as_dir" && as_dir=.
7028    for ac_exec_ext in '' $ac_executable_extensions; do
7029  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7030    ac_cv_prog_ac_ct_RANLIB="ranlib"
7031    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7032    break 2
7033  fi
7034done
7035  done
7036IFS=$as_save_IFS
7037
7038fi
7039fi
7040ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7041if test -n "$ac_ct_RANLIB"; then
7042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7043$as_echo "$ac_ct_RANLIB" >&6; }
7044else
7045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7046$as_echo "no" >&6; }
7047fi
7048
7049  if test "x$ac_ct_RANLIB" = x; then
7050    RANLIB=":"
7051  else
7052    case $cross_compiling:$ac_tool_warned in
7053yes:)
7054{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7055$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7056ac_tool_warned=yes ;;
7057esac
7058    RANLIB=$ac_ct_RANLIB
7059  fi
7060else
7061  RANLIB="$ac_cv_prog_RANLIB"
7062fi
7063
7064test -z "$RANLIB" && RANLIB=:
7065
7066
7067
7068
7069
7070
7071# Determine commands to create old-style static archives.
7072old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7073old_postinstall_cmds='chmod 644 $oldlib'
7074old_postuninstall_cmds=
7075
7076if test -n "$RANLIB"; then
7077  case $host_os in
7078  openbsd*)
7079    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7080    ;;
7081  *)
7082    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7083    ;;
7084  esac
7085  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7086fi
7087
7088case $host_os in
7089  darwin*)
7090    lock_old_archive_extraction=yes ;;
7091  *)
7092    lock_old_archive_extraction=no ;;
7093esac
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133# If no C compiler was specified, use CC.
7134LTCC=${LTCC-"$CC"}
7135
7136# If no C compiler flags were specified, use CFLAGS.
7137LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7138
7139# Allow CC to be a program name with arguments.
7140compiler=$CC
7141
7142
7143# Check for command to grab the raw symbol name followed by C symbol from nm.
7144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7145$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7146if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7147  $as_echo_n "(cached) " >&6
7148else
7149
7150# These are sane defaults that work on at least a few old systems.
7151# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7152
7153# Character class describing NM global symbol codes.
7154symcode='[BCDEGRST]'
7155
7156# Regexp to match symbols that can be accessed directly from C.
7157sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7158
7159# Define system-specific variables.
7160case $host_os in
7161aix*)
7162  symcode='[BCDT]'
7163  ;;
7164cygwin* | mingw* | pw32* | cegcc*)
7165  symcode='[ABCDGISTW]'
7166  ;;
7167hpux*)
7168  if test "$host_cpu" = ia64; then
7169    symcode='[ABCDEGRST]'
7170  fi
7171  ;;
7172irix* | nonstopux*)
7173  symcode='[BCDEGRST]'
7174  ;;
7175osf*)
7176  symcode='[BCDEGQRST]'
7177  ;;
7178solaris*)
7179  symcode='[BDRT]'
7180  ;;
7181sco3.2v5*)
7182  symcode='[DT]'
7183  ;;
7184sysv4.2uw2*)
7185  symcode='[DT]'
7186  ;;
7187sysv5* | sco5v6* | unixware* | OpenUNIX*)
7188  symcode='[ABDT]'
7189  ;;
7190sysv4)
7191  symcode='[DFNSTU]'
7192  ;;
7193esac
7194
7195# If we're using GNU nm, then use its standard symbol codes.
7196case `$NM -V 2>&1` in
7197*GNU* | *'with BFD'*)
7198  symcode='[ABCDGIRSTW]' ;;
7199esac
7200
7201# Transform an extracted symbol line into a proper C declaration.
7202# Some systems (esp. on ia64) link data and code symbols differently,
7203# so use this general approach.
7204lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7205
7206# Transform an extracted symbol line into symbol name and symbol address
7207lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7208lt_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'"
7209
7210# Handle CRLF in mingw tool chain
7211opt_cr=
7212case $build_os in
7213mingw*)
7214  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7215  ;;
7216esac
7217
7218# Try without a prefix underscore, then with it.
7219for ac_symprfx in "" "_"; do
7220
7221  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7222  symxfrm="\\1 $ac_symprfx\\2 \\2"
7223
7224  # Write the raw and C identifiers.
7225  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7226    # Fake it for dumpbin and say T for any non-static function
7227    # and D for any global variable.
7228    # Also find C++ and __fastcall symbols from MSVC++,
7229    # which start with @ or ?.
7230    lt_cv_sys_global_symbol_pipe="$AWK '"\
7231"     {last_section=section; section=\$ 3};"\
7232"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7233"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7234"     \$ 0!~/External *\|/{next};"\
7235"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7236"     {if(hide[section]) next};"\
7237"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7238"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7239"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7240"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7241"     ' prfx=^$ac_symprfx"
7242  else
7243    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7244  fi
7245  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7246
7247  # Check to see that the pipe works correctly.
7248  pipe_works=no
7249
7250  rm -f conftest*
7251  cat > conftest.$ac_ext <<_LT_EOF
7252#ifdef __cplusplus
7253extern "C" {
7254#endif
7255char nm_test_var;
7256void nm_test_func(void);
7257void nm_test_func(void){}
7258#ifdef __cplusplus
7259}
7260#endif
7261int main(){nm_test_var='a';nm_test_func();return(0);}
7262_LT_EOF
7263
7264  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7265  (eval $ac_compile) 2>&5
7266  ac_status=$?
7267  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7268  test $ac_status = 0; }; then
7269    # Now try to grab the symbols.
7270    nlist=conftest.nm
7271    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7272  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7273  ac_status=$?
7274  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7275  test $ac_status = 0; } && test -s "$nlist"; then
7276      # Try sorting and uniquifying the output.
7277      if sort "$nlist" | uniq > "$nlist"T; then
7278	mv -f "$nlist"T "$nlist"
7279      else
7280	rm -f "$nlist"T
7281      fi
7282
7283      # Make sure that we snagged all the symbols we need.
7284      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7285	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7286	  cat <<_LT_EOF > conftest.$ac_ext
7287/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7288#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7289/* DATA imports from DLLs on WIN32 con't be const, because runtime
7290   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7291# define LT_DLSYM_CONST
7292#elif defined(__osf__)
7293/* This system does not cope well with relocations in const data.  */
7294# define LT_DLSYM_CONST
7295#else
7296# define LT_DLSYM_CONST const
7297#endif
7298
7299#ifdef __cplusplus
7300extern "C" {
7301#endif
7302
7303_LT_EOF
7304	  # Now generate the symbol file.
7305	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7306
7307	  cat <<_LT_EOF >> conftest.$ac_ext
7308
7309/* The mapping between symbol names and symbols.  */
7310LT_DLSYM_CONST struct {
7311  const char *name;
7312  void       *address;
7313}
7314lt__PROGRAM__LTX_preloaded_symbols[] =
7315{
7316  { "@PROGRAM@", (void *) 0 },
7317_LT_EOF
7318	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7319	  cat <<\_LT_EOF >> conftest.$ac_ext
7320  {0, (void *) 0}
7321};
7322
7323/* This works around a problem in FreeBSD linker */
7324#ifdef FREEBSD_WORKAROUND
7325static const void *lt_preloaded_setup() {
7326  return lt__PROGRAM__LTX_preloaded_symbols;
7327}
7328#endif
7329
7330#ifdef __cplusplus
7331}
7332#endif
7333_LT_EOF
7334	  # Now try linking the two files.
7335	  mv conftest.$ac_objext conftstm.$ac_objext
7336	  lt_globsym_save_LIBS=$LIBS
7337	  lt_globsym_save_CFLAGS=$CFLAGS
7338	  LIBS="conftstm.$ac_objext"
7339	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7340	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7341  (eval $ac_link) 2>&5
7342  ac_status=$?
7343  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7344  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7345	    pipe_works=yes
7346	  fi
7347	  LIBS=$lt_globsym_save_LIBS
7348	  CFLAGS=$lt_globsym_save_CFLAGS
7349	else
7350	  echo "cannot find nm_test_func in $nlist" >&5
7351	fi
7352      else
7353	echo "cannot find nm_test_var in $nlist" >&5
7354      fi
7355    else
7356      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7357    fi
7358  else
7359    echo "$progname: failed program was:" >&5
7360    cat conftest.$ac_ext >&5
7361  fi
7362  rm -rf conftest* conftst*
7363
7364  # Do not use the global_symbol_pipe unless it works.
7365  if test "$pipe_works" = yes; then
7366    break
7367  else
7368    lt_cv_sys_global_symbol_pipe=
7369  fi
7370done
7371
7372fi
7373
7374if test -z "$lt_cv_sys_global_symbol_pipe"; then
7375  lt_cv_sys_global_symbol_to_cdecl=
7376fi
7377if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7379$as_echo "failed" >&6; }
7380else
7381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7382$as_echo "ok" >&6; }
7383fi
7384
7385# Response file support.
7386if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7387  nm_file_list_spec='@'
7388elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7389  nm_file_list_spec='@'
7390fi
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7419$as_echo_n "checking for sysroot... " >&6; }
7420
7421# Check whether --with-sysroot was given.
7422if test "${with_sysroot+set}" = set; then :
7423  withval=$with_sysroot;
7424else
7425  with_sysroot=no
7426fi
7427
7428
7429lt_sysroot=
7430case ${with_sysroot} in #(
7431 yes)
7432   if test "$GCC" = yes; then
7433     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7434   fi
7435   ;; #(
7436 /*)
7437   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7438   ;; #(
7439 no|'')
7440   ;; #(
7441 *)
7442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7443$as_echo "${with_sysroot}" >&6; }
7444   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7445   ;;
7446esac
7447
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7449$as_echo "${lt_sysroot:-no}" >&6; }
7450
7451
7452
7453
7454
7455# Check whether --enable-libtool-lock was given.
7456if test "${enable_libtool_lock+set}" = set; then :
7457  enableval=$enable_libtool_lock;
7458fi
7459
7460test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7461
7462# Some flags need to be propagated to the compiler or linker for good
7463# libtool support.
7464case $host in
7465ia64-*-hpux*)
7466  # Find out which ABI we are using.
7467  echo 'int i;' > conftest.$ac_ext
7468  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7469  (eval $ac_compile) 2>&5
7470  ac_status=$?
7471  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7472  test $ac_status = 0; }; then
7473    case `/usr/bin/file conftest.$ac_objext` in
7474      *ELF-32*)
7475	HPUX_IA64_MODE="32"
7476	;;
7477      *ELF-64*)
7478	HPUX_IA64_MODE="64"
7479	;;
7480    esac
7481  fi
7482  rm -rf conftest*
7483  ;;
7484*-*-irix6*)
7485  # Find out which ABI we are using.
7486  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7487  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7488  (eval $ac_compile) 2>&5
7489  ac_status=$?
7490  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7491  test $ac_status = 0; }; then
7492    if test "$lt_cv_prog_gnu_ld" = yes; then
7493      case `/usr/bin/file conftest.$ac_objext` in
7494	*32-bit*)
7495	  LD="${LD-ld} -melf32bsmip"
7496	  ;;
7497	*N32*)
7498	  LD="${LD-ld} -melf32bmipn32"
7499	  ;;
7500	*64-bit*)
7501	  LD="${LD-ld} -melf64bmip"
7502	;;
7503      esac
7504    else
7505      case `/usr/bin/file conftest.$ac_objext` in
7506	*32-bit*)
7507	  LD="${LD-ld} -32"
7508	  ;;
7509	*N32*)
7510	  LD="${LD-ld} -n32"
7511	  ;;
7512	*64-bit*)
7513	  LD="${LD-ld} -64"
7514	  ;;
7515      esac
7516    fi
7517  fi
7518  rm -rf conftest*
7519  ;;
7520
7521x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7522s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7523  # Find out which ABI we are using.
7524  echo 'int i;' > conftest.$ac_ext
7525  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7526  (eval $ac_compile) 2>&5
7527  ac_status=$?
7528  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7529  test $ac_status = 0; }; then
7530    case `/usr/bin/file conftest.o` in
7531      *32-bit*)
7532	case $host in
7533	  x86_64-*kfreebsd*-gnu)
7534	    LD="${LD-ld} -m elf_i386_fbsd"
7535	    ;;
7536	  x86_64-*linux*)
7537	    LD="${LD-ld} -m elf_i386"
7538	    ;;
7539	  ppc64-*linux*|powerpc64-*linux*)
7540	    LD="${LD-ld} -m elf32ppclinux"
7541	    ;;
7542	  s390x-*linux*)
7543	    LD="${LD-ld} -m elf_s390"
7544	    ;;
7545	  sparc64-*linux*)
7546	    LD="${LD-ld} -m elf32_sparc"
7547	    ;;
7548	esac
7549	;;
7550      *64-bit*)
7551	case $host in
7552	  x86_64-*kfreebsd*-gnu)
7553	    LD="${LD-ld} -m elf_x86_64_fbsd"
7554	    ;;
7555	  x86_64-*linux*)
7556	    LD="${LD-ld} -m elf_x86_64"
7557	    ;;
7558	  ppc*-*linux*|powerpc*-*linux*)
7559	    LD="${LD-ld} -m elf64ppc"
7560	    ;;
7561	  s390*-*linux*|s390*-*tpf*)
7562	    LD="${LD-ld} -m elf64_s390"
7563	    ;;
7564	  sparc*-*linux*)
7565	    LD="${LD-ld} -m elf64_sparc"
7566	    ;;
7567	esac
7568	;;
7569    esac
7570  fi
7571  rm -rf conftest*
7572  ;;
7573
7574*-*-sco3.2v5*)
7575  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7576  SAVE_CFLAGS="$CFLAGS"
7577  CFLAGS="$CFLAGS -belf"
7578  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7579$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7580if ${lt_cv_cc_needs_belf+:} false; then :
7581  $as_echo_n "(cached) " >&6
7582else
7583  ac_ext=c
7584ac_cpp='$CPP $CPPFLAGS'
7585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7587ac_compiler_gnu=$ac_cv_c_compiler_gnu
7588
7589     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7590/* end confdefs.h.  */
7591
7592int
7593main ()
7594{
7595
7596  ;
7597  return 0;
7598}
7599_ACEOF
7600if ac_fn_c_try_link "$LINENO"; then :
7601  lt_cv_cc_needs_belf=yes
7602else
7603  lt_cv_cc_needs_belf=no
7604fi
7605rm -f core conftest.err conftest.$ac_objext \
7606    conftest$ac_exeext conftest.$ac_ext
7607     ac_ext=c
7608ac_cpp='$CPP $CPPFLAGS'
7609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7611ac_compiler_gnu=$ac_cv_c_compiler_gnu
7612
7613fi
7614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7615$as_echo "$lt_cv_cc_needs_belf" >&6; }
7616  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7617    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7618    CFLAGS="$SAVE_CFLAGS"
7619  fi
7620  ;;
7621*-*solaris*)
7622  # Find out which ABI we are using.
7623  echo 'int i;' > conftest.$ac_ext
7624  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7625  (eval $ac_compile) 2>&5
7626  ac_status=$?
7627  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7628  test $ac_status = 0; }; then
7629    case `/usr/bin/file conftest.o` in
7630    *64-bit*)
7631      case $lt_cv_prog_gnu_ld in
7632      yes*)
7633        case $host in
7634        i?86-*-solaris*)
7635          LD="${LD-ld} -m elf_x86_64"
7636          ;;
7637        sparc*-*-solaris*)
7638          LD="${LD-ld} -m elf64_sparc"
7639          ;;
7640        esac
7641        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7642        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7643          LD="${LD-ld}_sol2"
7644        fi
7645        ;;
7646      *)
7647	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7648	  LD="${LD-ld} -64"
7649	fi
7650	;;
7651      esac
7652      ;;
7653    esac
7654  fi
7655  rm -rf conftest*
7656  ;;
7657esac
7658
7659need_locks="$enable_libtool_lock"
7660
7661if test -n "$ac_tool_prefix"; then
7662  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7663set dummy ${ac_tool_prefix}mt; ac_word=$2
7664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7665$as_echo_n "checking for $ac_word... " >&6; }
7666if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7667  $as_echo_n "(cached) " >&6
7668else
7669  if test -n "$MANIFEST_TOOL"; then
7670  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7671else
7672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673for as_dir in $PATH
7674do
7675  IFS=$as_save_IFS
7676  test -z "$as_dir" && as_dir=.
7677    for ac_exec_ext in '' $ac_executable_extensions; do
7678  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7679    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7680    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7681    break 2
7682  fi
7683done
7684  done
7685IFS=$as_save_IFS
7686
7687fi
7688fi
7689MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7690if test -n "$MANIFEST_TOOL"; then
7691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7692$as_echo "$MANIFEST_TOOL" >&6; }
7693else
7694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7695$as_echo "no" >&6; }
7696fi
7697
7698
7699fi
7700if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7701  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7702  # Extract the first word of "mt", so it can be a program name with args.
7703set dummy mt; ac_word=$2
7704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7705$as_echo_n "checking for $ac_word... " >&6; }
7706if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7707  $as_echo_n "(cached) " >&6
7708else
7709  if test -n "$ac_ct_MANIFEST_TOOL"; then
7710  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7711else
7712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7713for as_dir in $PATH
7714do
7715  IFS=$as_save_IFS
7716  test -z "$as_dir" && as_dir=.
7717    for ac_exec_ext in '' $ac_executable_extensions; do
7718  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7719    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7720    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7721    break 2
7722  fi
7723done
7724  done
7725IFS=$as_save_IFS
7726
7727fi
7728fi
7729ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7730if test -n "$ac_ct_MANIFEST_TOOL"; then
7731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7732$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7733else
7734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7735$as_echo "no" >&6; }
7736fi
7737
7738  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7739    MANIFEST_TOOL=":"
7740  else
7741    case $cross_compiling:$ac_tool_warned in
7742yes:)
7743{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7744$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7745ac_tool_warned=yes ;;
7746esac
7747    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7748  fi
7749else
7750  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7751fi
7752
7753test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7755$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7756if ${lt_cv_path_mainfest_tool+:} false; then :
7757  $as_echo_n "(cached) " >&6
7758else
7759  lt_cv_path_mainfest_tool=no
7760  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7761  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7762  cat conftest.err >&5
7763  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7764    lt_cv_path_mainfest_tool=yes
7765  fi
7766  rm -f conftest*
7767fi
7768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7769$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7770if test "x$lt_cv_path_mainfest_tool" != xyes; then
7771  MANIFEST_TOOL=:
7772fi
7773
7774
7775
7776
7777
7778
7779  case $host_os in
7780    rhapsody* | darwin*)
7781    if test -n "$ac_tool_prefix"; then
7782  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7783set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7785$as_echo_n "checking for $ac_word... " >&6; }
7786if ${ac_cv_prog_DSYMUTIL+:} false; then :
7787  $as_echo_n "(cached) " >&6
7788else
7789  if test -n "$DSYMUTIL"; then
7790  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7791else
7792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793for as_dir in $PATH
7794do
7795  IFS=$as_save_IFS
7796  test -z "$as_dir" && as_dir=.
7797    for ac_exec_ext in '' $ac_executable_extensions; do
7798  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7799    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7800    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7801    break 2
7802  fi
7803done
7804  done
7805IFS=$as_save_IFS
7806
7807fi
7808fi
7809DSYMUTIL=$ac_cv_prog_DSYMUTIL
7810if test -n "$DSYMUTIL"; then
7811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7812$as_echo "$DSYMUTIL" >&6; }
7813else
7814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7815$as_echo "no" >&6; }
7816fi
7817
7818
7819fi
7820if test -z "$ac_cv_prog_DSYMUTIL"; then
7821  ac_ct_DSYMUTIL=$DSYMUTIL
7822  # Extract the first word of "dsymutil", so it can be a program name with args.
7823set dummy dsymutil; ac_word=$2
7824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7825$as_echo_n "checking for $ac_word... " >&6; }
7826if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7827  $as_echo_n "(cached) " >&6
7828else
7829  if test -n "$ac_ct_DSYMUTIL"; then
7830  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7831else
7832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833for as_dir in $PATH
7834do
7835  IFS=$as_save_IFS
7836  test -z "$as_dir" && as_dir=.
7837    for ac_exec_ext in '' $ac_executable_extensions; do
7838  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7839    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7840    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7841    break 2
7842  fi
7843done
7844  done
7845IFS=$as_save_IFS
7846
7847fi
7848fi
7849ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7850if test -n "$ac_ct_DSYMUTIL"; then
7851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7852$as_echo "$ac_ct_DSYMUTIL" >&6; }
7853else
7854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7855$as_echo "no" >&6; }
7856fi
7857
7858  if test "x$ac_ct_DSYMUTIL" = x; then
7859    DSYMUTIL=":"
7860  else
7861    case $cross_compiling:$ac_tool_warned in
7862yes:)
7863{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7864$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7865ac_tool_warned=yes ;;
7866esac
7867    DSYMUTIL=$ac_ct_DSYMUTIL
7868  fi
7869else
7870  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7871fi
7872
7873    if test -n "$ac_tool_prefix"; then
7874  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7875set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7877$as_echo_n "checking for $ac_word... " >&6; }
7878if ${ac_cv_prog_NMEDIT+:} false; then :
7879  $as_echo_n "(cached) " >&6
7880else
7881  if test -n "$NMEDIT"; then
7882  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7883else
7884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7885for as_dir in $PATH
7886do
7887  IFS=$as_save_IFS
7888  test -z "$as_dir" && as_dir=.
7889    for ac_exec_ext in '' $ac_executable_extensions; do
7890  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7891    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7892    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7893    break 2
7894  fi
7895done
7896  done
7897IFS=$as_save_IFS
7898
7899fi
7900fi
7901NMEDIT=$ac_cv_prog_NMEDIT
7902if test -n "$NMEDIT"; then
7903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7904$as_echo "$NMEDIT" >&6; }
7905else
7906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907$as_echo "no" >&6; }
7908fi
7909
7910
7911fi
7912if test -z "$ac_cv_prog_NMEDIT"; then
7913  ac_ct_NMEDIT=$NMEDIT
7914  # Extract the first word of "nmedit", so it can be a program name with args.
7915set dummy nmedit; ac_word=$2
7916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7917$as_echo_n "checking for $ac_word... " >&6; }
7918if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7919  $as_echo_n "(cached) " >&6
7920else
7921  if test -n "$ac_ct_NMEDIT"; then
7922  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7923else
7924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925for as_dir in $PATH
7926do
7927  IFS=$as_save_IFS
7928  test -z "$as_dir" && as_dir=.
7929    for ac_exec_ext in '' $ac_executable_extensions; do
7930  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7931    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7932    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7933    break 2
7934  fi
7935done
7936  done
7937IFS=$as_save_IFS
7938
7939fi
7940fi
7941ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7942if test -n "$ac_ct_NMEDIT"; then
7943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7944$as_echo "$ac_ct_NMEDIT" >&6; }
7945else
7946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947$as_echo "no" >&6; }
7948fi
7949
7950  if test "x$ac_ct_NMEDIT" = x; then
7951    NMEDIT=":"
7952  else
7953    case $cross_compiling:$ac_tool_warned in
7954yes:)
7955{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7956$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7957ac_tool_warned=yes ;;
7958esac
7959    NMEDIT=$ac_ct_NMEDIT
7960  fi
7961else
7962  NMEDIT="$ac_cv_prog_NMEDIT"
7963fi
7964
7965    if test -n "$ac_tool_prefix"; then
7966  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7967set dummy ${ac_tool_prefix}lipo; ac_word=$2
7968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7969$as_echo_n "checking for $ac_word... " >&6; }
7970if ${ac_cv_prog_LIPO+:} false; then :
7971  $as_echo_n "(cached) " >&6
7972else
7973  if test -n "$LIPO"; then
7974  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7975else
7976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7977for as_dir in $PATH
7978do
7979  IFS=$as_save_IFS
7980  test -z "$as_dir" && as_dir=.
7981    for ac_exec_ext in '' $ac_executable_extensions; do
7982  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7983    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7984    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7985    break 2
7986  fi
7987done
7988  done
7989IFS=$as_save_IFS
7990
7991fi
7992fi
7993LIPO=$ac_cv_prog_LIPO
7994if test -n "$LIPO"; then
7995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7996$as_echo "$LIPO" >&6; }
7997else
7998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7999$as_echo "no" >&6; }
8000fi
8001
8002
8003fi
8004if test -z "$ac_cv_prog_LIPO"; then
8005  ac_ct_LIPO=$LIPO
8006  # Extract the first word of "lipo", so it can be a program name with args.
8007set dummy lipo; ac_word=$2
8008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8009$as_echo_n "checking for $ac_word... " >&6; }
8010if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8011  $as_echo_n "(cached) " >&6
8012else
8013  if test -n "$ac_ct_LIPO"; then
8014  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8015else
8016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8017for as_dir in $PATH
8018do
8019  IFS=$as_save_IFS
8020  test -z "$as_dir" && as_dir=.
8021    for ac_exec_ext in '' $ac_executable_extensions; do
8022  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8023    ac_cv_prog_ac_ct_LIPO="lipo"
8024    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8025    break 2
8026  fi
8027done
8028  done
8029IFS=$as_save_IFS
8030
8031fi
8032fi
8033ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8034if test -n "$ac_ct_LIPO"; then
8035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8036$as_echo "$ac_ct_LIPO" >&6; }
8037else
8038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8039$as_echo "no" >&6; }
8040fi
8041
8042  if test "x$ac_ct_LIPO" = x; then
8043    LIPO=":"
8044  else
8045    case $cross_compiling:$ac_tool_warned in
8046yes:)
8047{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8048$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8049ac_tool_warned=yes ;;
8050esac
8051    LIPO=$ac_ct_LIPO
8052  fi
8053else
8054  LIPO="$ac_cv_prog_LIPO"
8055fi
8056
8057    if test -n "$ac_tool_prefix"; then
8058  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8059set dummy ${ac_tool_prefix}otool; ac_word=$2
8060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8061$as_echo_n "checking for $ac_word... " >&6; }
8062if ${ac_cv_prog_OTOOL+:} false; then :
8063  $as_echo_n "(cached) " >&6
8064else
8065  if test -n "$OTOOL"; then
8066  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8067else
8068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8069for as_dir in $PATH
8070do
8071  IFS=$as_save_IFS
8072  test -z "$as_dir" && as_dir=.
8073    for ac_exec_ext in '' $ac_executable_extensions; do
8074  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8075    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8076    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8077    break 2
8078  fi
8079done
8080  done
8081IFS=$as_save_IFS
8082
8083fi
8084fi
8085OTOOL=$ac_cv_prog_OTOOL
8086if test -n "$OTOOL"; then
8087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8088$as_echo "$OTOOL" >&6; }
8089else
8090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8091$as_echo "no" >&6; }
8092fi
8093
8094
8095fi
8096if test -z "$ac_cv_prog_OTOOL"; then
8097  ac_ct_OTOOL=$OTOOL
8098  # Extract the first word of "otool", so it can be a program name with args.
8099set dummy otool; ac_word=$2
8100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8101$as_echo_n "checking for $ac_word... " >&6; }
8102if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8103  $as_echo_n "(cached) " >&6
8104else
8105  if test -n "$ac_ct_OTOOL"; then
8106  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8107else
8108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8109for as_dir in $PATH
8110do
8111  IFS=$as_save_IFS
8112  test -z "$as_dir" && as_dir=.
8113    for ac_exec_ext in '' $ac_executable_extensions; do
8114  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8115    ac_cv_prog_ac_ct_OTOOL="otool"
8116    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8117    break 2
8118  fi
8119done
8120  done
8121IFS=$as_save_IFS
8122
8123fi
8124fi
8125ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8126if test -n "$ac_ct_OTOOL"; then
8127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8128$as_echo "$ac_ct_OTOOL" >&6; }
8129else
8130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8131$as_echo "no" >&6; }
8132fi
8133
8134  if test "x$ac_ct_OTOOL" = x; then
8135    OTOOL=":"
8136  else
8137    case $cross_compiling:$ac_tool_warned in
8138yes:)
8139{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8140$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8141ac_tool_warned=yes ;;
8142esac
8143    OTOOL=$ac_ct_OTOOL
8144  fi
8145else
8146  OTOOL="$ac_cv_prog_OTOOL"
8147fi
8148
8149    if test -n "$ac_tool_prefix"; then
8150  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8151set dummy ${ac_tool_prefix}otool64; ac_word=$2
8152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8153$as_echo_n "checking for $ac_word... " >&6; }
8154if ${ac_cv_prog_OTOOL64+:} false; then :
8155  $as_echo_n "(cached) " >&6
8156else
8157  if test -n "$OTOOL64"; then
8158  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8159else
8160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8161for as_dir in $PATH
8162do
8163  IFS=$as_save_IFS
8164  test -z "$as_dir" && as_dir=.
8165    for ac_exec_ext in '' $ac_executable_extensions; do
8166  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8167    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8168    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8169    break 2
8170  fi
8171done
8172  done
8173IFS=$as_save_IFS
8174
8175fi
8176fi
8177OTOOL64=$ac_cv_prog_OTOOL64
8178if test -n "$OTOOL64"; then
8179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8180$as_echo "$OTOOL64" >&6; }
8181else
8182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8183$as_echo "no" >&6; }
8184fi
8185
8186
8187fi
8188if test -z "$ac_cv_prog_OTOOL64"; then
8189  ac_ct_OTOOL64=$OTOOL64
8190  # Extract the first word of "otool64", so it can be a program name with args.
8191set dummy otool64; ac_word=$2
8192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8193$as_echo_n "checking for $ac_word... " >&6; }
8194if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8195  $as_echo_n "(cached) " >&6
8196else
8197  if test -n "$ac_ct_OTOOL64"; then
8198  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8199else
8200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8201for as_dir in $PATH
8202do
8203  IFS=$as_save_IFS
8204  test -z "$as_dir" && as_dir=.
8205    for ac_exec_ext in '' $ac_executable_extensions; do
8206  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8207    ac_cv_prog_ac_ct_OTOOL64="otool64"
8208    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8209    break 2
8210  fi
8211done
8212  done
8213IFS=$as_save_IFS
8214
8215fi
8216fi
8217ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8218if test -n "$ac_ct_OTOOL64"; then
8219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8220$as_echo "$ac_ct_OTOOL64" >&6; }
8221else
8222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8223$as_echo "no" >&6; }
8224fi
8225
8226  if test "x$ac_ct_OTOOL64" = x; then
8227    OTOOL64=":"
8228  else
8229    case $cross_compiling:$ac_tool_warned in
8230yes:)
8231{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8232$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8233ac_tool_warned=yes ;;
8234esac
8235    OTOOL64=$ac_ct_OTOOL64
8236  fi
8237else
8238  OTOOL64="$ac_cv_prog_OTOOL64"
8239fi
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8268$as_echo_n "checking for -single_module linker flag... " >&6; }
8269if ${lt_cv_apple_cc_single_mod+:} false; then :
8270  $as_echo_n "(cached) " >&6
8271else
8272  lt_cv_apple_cc_single_mod=no
8273      if test -z "${LT_MULTI_MODULE}"; then
8274	# By default we will add the -single_module flag. You can override
8275	# by either setting the environment variable LT_MULTI_MODULE
8276	# non-empty at configure time, or by adding -multi_module to the
8277	# link flags.
8278	rm -rf libconftest.dylib*
8279	echo "int foo(void){return 1;}" > conftest.c
8280	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8281-dynamiclib -Wl,-single_module conftest.c" >&5
8282	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8283	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8284        _lt_result=$?
8285	# If there is a non-empty error log, and "single_module"
8286	# appears in it, assume the flag caused a linker warning
8287        if test -s conftest.err && $GREP single_module conftest.err; then
8288	  cat conftest.err >&5
8289	# Otherwise, if the output was created with a 0 exit code from
8290	# the compiler, it worked.
8291	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8292	  lt_cv_apple_cc_single_mod=yes
8293	else
8294	  cat conftest.err >&5
8295	fi
8296	rm -rf libconftest.dylib*
8297	rm -f conftest.*
8298      fi
8299fi
8300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8301$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8302
8303    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8304$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8305if ${lt_cv_ld_exported_symbols_list+:} false; then :
8306  $as_echo_n "(cached) " >&6
8307else
8308  lt_cv_ld_exported_symbols_list=no
8309      save_LDFLAGS=$LDFLAGS
8310      echo "_main" > conftest.sym
8311      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8312      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8313/* end confdefs.h.  */
8314
8315int
8316main ()
8317{
8318
8319  ;
8320  return 0;
8321}
8322_ACEOF
8323if ac_fn_c_try_link "$LINENO"; then :
8324  lt_cv_ld_exported_symbols_list=yes
8325else
8326  lt_cv_ld_exported_symbols_list=no
8327fi
8328rm -f core conftest.err conftest.$ac_objext \
8329    conftest$ac_exeext conftest.$ac_ext
8330	LDFLAGS="$save_LDFLAGS"
8331
8332fi
8333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8334$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8335
8336    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8337$as_echo_n "checking for -force_load linker flag... " >&6; }
8338if ${lt_cv_ld_force_load+:} false; then :
8339  $as_echo_n "(cached) " >&6
8340else
8341  lt_cv_ld_force_load=no
8342      cat > conftest.c << _LT_EOF
8343int forced_loaded() { return 2;}
8344_LT_EOF
8345      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8346      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8347      echo "$AR cru libconftest.a conftest.o" >&5
8348      $AR cru libconftest.a conftest.o 2>&5
8349      echo "$RANLIB libconftest.a" >&5
8350      $RANLIB libconftest.a 2>&5
8351      cat > conftest.c << _LT_EOF
8352int main() { return 0;}
8353_LT_EOF
8354      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8355      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8356      _lt_result=$?
8357      if test -s conftest.err && $GREP force_load conftest.err; then
8358	cat conftest.err >&5
8359      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8360	lt_cv_ld_force_load=yes
8361      else
8362	cat conftest.err >&5
8363      fi
8364        rm -f conftest.err libconftest.a conftest conftest.c
8365        rm -rf conftest.dSYM
8366
8367fi
8368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8369$as_echo "$lt_cv_ld_force_load" >&6; }
8370    case $host_os in
8371    rhapsody* | darwin1.[012])
8372      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8373    darwin1.*)
8374      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8375    darwin*) # darwin 5.x on
8376      # if running on 10.5 or later, the deployment target defaults
8377      # to the OS version, if on x86, and 10.4, the deployment
8378      # target defaults to 10.4. Don't you love it?
8379      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8380	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8381	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8382	10.[012]*)
8383	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8384	10.*)
8385	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8386      esac
8387    ;;
8388  esac
8389    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8390      _lt_dar_single_mod='$single_module'
8391    fi
8392    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8393      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8394    else
8395      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8396    fi
8397    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8398      _lt_dsymutil='~$DSYMUTIL $lib || :'
8399    else
8400      _lt_dsymutil=
8401    fi
8402    ;;
8403  esac
8404
8405for ac_header in dlfcn.h
8406do :
8407  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8408"
8409if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8410  cat >>confdefs.h <<_ACEOF
8411#define HAVE_DLFCN_H 1
8412_ACEOF
8413
8414fi
8415
8416done
8417
8418
8419
8420
8421
8422# Set options
8423
8424
8425
8426
8427  enable_win32_dll=no
8428
8429
8430
8431
8432
8433# Check whether --with-pic was given.
8434if test "${with_pic+set}" = set; then :
8435  withval=$with_pic; lt_p=${PACKAGE-default}
8436    case $withval in
8437    yes|no) pic_mode=$withval ;;
8438    *)
8439      pic_mode=default
8440      # Look at the argument we got.  We use all the common list separators.
8441      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8442      for lt_pkg in $withval; do
8443	IFS="$lt_save_ifs"
8444	if test "X$lt_pkg" = "X$lt_p"; then
8445	  pic_mode=yes
8446	fi
8447      done
8448      IFS="$lt_save_ifs"
8449      ;;
8450    esac
8451else
8452  pic_mode=default
8453fi
8454
8455
8456test -z "$pic_mode" && pic_mode=default
8457
8458
8459
8460
8461
8462
8463
8464  # Check whether --enable-fast-install was given.
8465if test "${enable_fast_install+set}" = set; then :
8466  enableval=$enable_fast_install; p=${PACKAGE-default}
8467    case $enableval in
8468    yes) enable_fast_install=yes ;;
8469    no) enable_fast_install=no ;;
8470    *)
8471      enable_fast_install=no
8472      # Look at the argument we got.  We use all the common list separators.
8473      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8474      for pkg in $enableval; do
8475	IFS="$lt_save_ifs"
8476	if test "X$pkg" = "X$p"; then
8477	  enable_fast_install=yes
8478	fi
8479      done
8480      IFS="$lt_save_ifs"
8481      ;;
8482    esac
8483else
8484  enable_fast_install=yes
8485fi
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497# This can be used to rebuild libtool when needed
8498LIBTOOL_DEPS="$ltmain"
8499
8500# Always use our own libtool.
8501LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532test -z "$LN_S" && LN_S="ln -s"
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547if test -n "${ZSH_VERSION+set}" ; then
8548   setopt NO_GLOB_SUBST
8549fi
8550
8551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8552$as_echo_n "checking for objdir... " >&6; }
8553if ${lt_cv_objdir+:} false; then :
8554  $as_echo_n "(cached) " >&6
8555else
8556  rm -f .libs 2>/dev/null
8557mkdir .libs 2>/dev/null
8558if test -d .libs; then
8559  lt_cv_objdir=.libs
8560else
8561  # MS-DOS does not allow filenames that begin with a dot.
8562  lt_cv_objdir=_libs
8563fi
8564rmdir .libs 2>/dev/null
8565fi
8566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8567$as_echo "$lt_cv_objdir" >&6; }
8568objdir=$lt_cv_objdir
8569
8570
8571
8572
8573
8574cat >>confdefs.h <<_ACEOF
8575#define LT_OBJDIR "$lt_cv_objdir/"
8576_ACEOF
8577
8578
8579
8580
8581case $host_os in
8582aix3*)
8583  # AIX sometimes has problems with the GCC collect2 program.  For some
8584  # reason, if we set the COLLECT_NAMES environment variable, the problems
8585  # vanish in a puff of smoke.
8586  if test "X${COLLECT_NAMES+set}" != Xset; then
8587    COLLECT_NAMES=
8588    export COLLECT_NAMES
8589  fi
8590  ;;
8591esac
8592
8593# Global variables:
8594ofile=libtool
8595can_build_shared=yes
8596
8597# All known linkers require a `.a' archive for static linking (except MSVC,
8598# which needs '.lib').
8599libext=a
8600
8601with_gnu_ld="$lt_cv_prog_gnu_ld"
8602
8603old_CC="$CC"
8604old_CFLAGS="$CFLAGS"
8605
8606# Set sane defaults for various variables
8607test -z "$CC" && CC=cc
8608test -z "$LTCC" && LTCC=$CC
8609test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8610test -z "$LD" && LD=ld
8611test -z "$ac_objext" && ac_objext=o
8612
8613for cc_temp in $compiler""; do
8614  case $cc_temp in
8615    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8616    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8617    \-*) ;;
8618    *) break;;
8619  esac
8620done
8621cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8622
8623
8624# Only perform the check for file, if the check method requires it
8625test -z "$MAGIC_CMD" && MAGIC_CMD=file
8626case $deplibs_check_method in
8627file_magic*)
8628  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8629    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8630$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8631if ${lt_cv_path_MAGIC_CMD+:} false; then :
8632  $as_echo_n "(cached) " >&6
8633else
8634  case $MAGIC_CMD in
8635[\\/*] |  ?:[\\/]*)
8636  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8637  ;;
8638*)
8639  lt_save_MAGIC_CMD="$MAGIC_CMD"
8640  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8641  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8642  for ac_dir in $ac_dummy; do
8643    IFS="$lt_save_ifs"
8644    test -z "$ac_dir" && ac_dir=.
8645    if test -f $ac_dir/${ac_tool_prefix}file; then
8646      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8647      if test -n "$file_magic_test_file"; then
8648	case $deplibs_check_method in
8649	"file_magic "*)
8650	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8651	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8652	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8653	    $EGREP "$file_magic_regex" > /dev/null; then
8654	    :
8655	  else
8656	    cat <<_LT_EOF 1>&2
8657
8658*** Warning: the command libtool uses to detect shared libraries,
8659*** $file_magic_cmd, produces output that libtool cannot recognize.
8660*** The result is that libtool may fail to recognize shared libraries
8661*** as such.  This will affect the creation of libtool libraries that
8662*** depend on shared libraries, but programs linked with such libtool
8663*** libraries will work regardless of this problem.  Nevertheless, you
8664*** may want to report the problem to your system manager and/or to
8665*** [email protected]
8666
8667_LT_EOF
8668	  fi ;;
8669	esac
8670      fi
8671      break
8672    fi
8673  done
8674  IFS="$lt_save_ifs"
8675  MAGIC_CMD="$lt_save_MAGIC_CMD"
8676  ;;
8677esac
8678fi
8679
8680MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8681if test -n "$MAGIC_CMD"; then
8682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8683$as_echo "$MAGIC_CMD" >&6; }
8684else
8685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8686$as_echo "no" >&6; }
8687fi
8688
8689
8690
8691
8692
8693if test -z "$lt_cv_path_MAGIC_CMD"; then
8694  if test -n "$ac_tool_prefix"; then
8695    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8696$as_echo_n "checking for file... " >&6; }
8697if ${lt_cv_path_MAGIC_CMD+:} false; then :
8698  $as_echo_n "(cached) " >&6
8699else
8700  case $MAGIC_CMD in
8701[\\/*] |  ?:[\\/]*)
8702  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8703  ;;
8704*)
8705  lt_save_MAGIC_CMD="$MAGIC_CMD"
8706  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8707  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8708  for ac_dir in $ac_dummy; do
8709    IFS="$lt_save_ifs"
8710    test -z "$ac_dir" && ac_dir=.
8711    if test -f $ac_dir/file; then
8712      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8713      if test -n "$file_magic_test_file"; then
8714	case $deplibs_check_method in
8715	"file_magic "*)
8716	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8717	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8718	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8719	    $EGREP "$file_magic_regex" > /dev/null; then
8720	    :
8721	  else
8722	    cat <<_LT_EOF 1>&2
8723
8724*** Warning: the command libtool uses to detect shared libraries,
8725*** $file_magic_cmd, produces output that libtool cannot recognize.
8726*** The result is that libtool may fail to recognize shared libraries
8727*** as such.  This will affect the creation of libtool libraries that
8728*** depend on shared libraries, but programs linked with such libtool
8729*** libraries will work regardless of this problem.  Nevertheless, you
8730*** may want to report the problem to your system manager and/or to
8731*** [email protected]
8732
8733_LT_EOF
8734	  fi ;;
8735	esac
8736      fi
8737      break
8738    fi
8739  done
8740  IFS="$lt_save_ifs"
8741  MAGIC_CMD="$lt_save_MAGIC_CMD"
8742  ;;
8743esac
8744fi
8745
8746MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8747if test -n "$MAGIC_CMD"; then
8748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8749$as_echo "$MAGIC_CMD" >&6; }
8750else
8751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8752$as_echo "no" >&6; }
8753fi
8754
8755
8756  else
8757    MAGIC_CMD=:
8758  fi
8759fi
8760
8761  fi
8762  ;;
8763esac
8764
8765# Use C for the default configuration in the libtool script
8766
8767lt_save_CC="$CC"
8768ac_ext=c
8769ac_cpp='$CPP $CPPFLAGS'
8770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8772ac_compiler_gnu=$ac_cv_c_compiler_gnu
8773
8774
8775# Source file extension for C test sources.
8776ac_ext=c
8777
8778# Object file extension for compiled C test sources.
8779objext=o
8780objext=$objext
8781
8782# Code to be used in simple compile tests
8783lt_simple_compile_test_code="int some_variable = 0;"
8784
8785# Code to be used in simple link tests
8786lt_simple_link_test_code='int main(){return(0);}'
8787
8788
8789
8790
8791
8792
8793
8794# If no C compiler was specified, use CC.
8795LTCC=${LTCC-"$CC"}
8796
8797# If no C compiler flags were specified, use CFLAGS.
8798LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8799
8800# Allow CC to be a program name with arguments.
8801compiler=$CC
8802
8803# Save the default compiler, since it gets overwritten when the other
8804# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8805compiler_DEFAULT=$CC
8806
8807# save warnings/boilerplate of simple test code
8808ac_outfile=conftest.$ac_objext
8809echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8810eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8811_lt_compiler_boilerplate=`cat conftest.err`
8812$RM conftest*
8813
8814ac_outfile=conftest.$ac_objext
8815echo "$lt_simple_link_test_code" >conftest.$ac_ext
8816eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8817_lt_linker_boilerplate=`cat conftest.err`
8818$RM -r conftest*
8819
8820
8821## CAVEAT EMPTOR:
8822## There is no encapsulation within the following macros, do not change
8823## the running order or otherwise move them around unless you know exactly
8824## what you are doing...
8825if test -n "$compiler"; then
8826
8827lt_prog_compiler_no_builtin_flag=
8828
8829if test "$GCC" = yes; then
8830  case $cc_basename in
8831  nvcc*)
8832    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8833  *)
8834    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8835  esac
8836
8837  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8838$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8839if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8840  $as_echo_n "(cached) " >&6
8841else
8842  lt_cv_prog_compiler_rtti_exceptions=no
8843   ac_outfile=conftest.$ac_objext
8844   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8845   lt_compiler_flag="-fno-rtti -fno-exceptions"
8846   # Insert the option either (1) after the last *FLAGS variable, or
8847   # (2) before a word containing "conftest.", or (3) at the end.
8848   # Note that $ac_compile itself does not contain backslashes and begins
8849   # with a dollar sign (not a hyphen), so the echo should work correctly.
8850   # The option is referenced via a variable to avoid confusing sed.
8851   lt_compile=`echo "$ac_compile" | $SED \
8852   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8853   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8854   -e 's:$: $lt_compiler_flag:'`
8855   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8856   (eval "$lt_compile" 2>conftest.err)
8857   ac_status=$?
8858   cat conftest.err >&5
8859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860   if (exit $ac_status) && test -s "$ac_outfile"; then
8861     # The compiler can only warn and ignore the option if not recognized
8862     # So say no if there are warnings other than the usual output.
8863     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8864     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8865     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8866       lt_cv_prog_compiler_rtti_exceptions=yes
8867     fi
8868   fi
8869   $RM conftest*
8870
8871fi
8872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8873$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8874
8875if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8876    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8877else
8878    :
8879fi
8880
8881fi
8882
8883
8884
8885
8886
8887
8888  lt_prog_compiler_wl=
8889lt_prog_compiler_pic=
8890lt_prog_compiler_static=
8891
8892
8893  if test "$GCC" = yes; then
8894    lt_prog_compiler_wl='-Wl,'
8895    lt_prog_compiler_static='-static'
8896
8897    case $host_os in
8898      aix*)
8899      # All AIX code is PIC.
8900      if test "$host_cpu" = ia64; then
8901	# AIX 5 now supports IA64 processor
8902	lt_prog_compiler_static='-Bstatic'
8903      fi
8904      ;;
8905
8906    amigaos*)
8907      case $host_cpu in
8908      powerpc)
8909            # see comment about AmigaOS4 .so support
8910            lt_prog_compiler_pic='-fPIC'
8911        ;;
8912      m68k)
8913            # FIXME: we need at least 68020 code to build shared libraries, but
8914            # adding the `-m68020' flag to GCC prevents building anything better,
8915            # like `-m68040'.
8916            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8917        ;;
8918      esac
8919      ;;
8920
8921    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8922      # PIC is the default for these OSes.
8923      ;;
8924
8925    mingw* | cygwin* | pw32* | os2* | cegcc*)
8926      # This hack is so that the source file can tell whether it is being
8927      # built for inclusion in a dll (and should export symbols for example).
8928      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8929      # (--disable-auto-import) libraries
8930      lt_prog_compiler_pic='-DDLL_EXPORT'
8931      ;;
8932
8933    darwin* | rhapsody*)
8934      # PIC is the default on this platform
8935      # Common symbols not allowed in MH_DYLIB files
8936      lt_prog_compiler_pic='-fno-common'
8937      ;;
8938
8939    haiku*)
8940      # PIC is the default for Haiku.
8941      # The "-static" flag exists, but is broken.
8942      lt_prog_compiler_static=
8943      ;;
8944
8945    hpux*)
8946      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8947      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8948      # sets the default TLS model and affects inlining.
8949      case $host_cpu in
8950      hppa*64*)
8951	# +Z the default
8952	;;
8953      *)
8954	lt_prog_compiler_pic='-fPIC'
8955	;;
8956      esac
8957      ;;
8958
8959    interix[3-9]*)
8960      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8961      # Instead, we relocate shared libraries at runtime.
8962      ;;
8963
8964    msdosdjgpp*)
8965      # Just because we use GCC doesn't mean we suddenly get shared libraries
8966      # on systems that don't support them.
8967      lt_prog_compiler_can_build_shared=no
8968      enable_shared=no
8969      ;;
8970
8971    *nto* | *qnx*)
8972      # QNX uses GNU C++, but need to define -shared option too, otherwise
8973      # it will coredump.
8974      lt_prog_compiler_pic='-fPIC -shared'
8975      ;;
8976
8977    sysv4*MP*)
8978      if test -d /usr/nec; then
8979	lt_prog_compiler_pic=-Kconform_pic
8980      fi
8981      ;;
8982
8983    *)
8984      lt_prog_compiler_pic='-fPIC'
8985      ;;
8986    esac
8987
8988    case $cc_basename in
8989    nvcc*) # Cuda Compiler Driver 2.2
8990      lt_prog_compiler_wl='-Xlinker '
8991      if test -n "$lt_prog_compiler_pic"; then
8992        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8993      fi
8994      ;;
8995    esac
8996  else
8997    # PORTME Check for flag to pass linker flags through the system compiler.
8998    case $host_os in
8999    aix*)
9000      lt_prog_compiler_wl='-Wl,'
9001      if test "$host_cpu" = ia64; then
9002	# AIX 5 now supports IA64 processor
9003	lt_prog_compiler_static='-Bstatic'
9004      else
9005	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9006      fi
9007      ;;
9008
9009    mingw* | cygwin* | pw32* | os2* | cegcc*)
9010      # This hack is so that the source file can tell whether it is being
9011      # built for inclusion in a dll (and should export symbols for example).
9012      lt_prog_compiler_pic='-DDLL_EXPORT'
9013      ;;
9014
9015    hpux9* | hpux10* | hpux11*)
9016      lt_prog_compiler_wl='-Wl,'
9017      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9018      # not for PA HP-UX.
9019      case $host_cpu in
9020      hppa*64*|ia64*)
9021	# +Z the default
9022	;;
9023      *)
9024	lt_prog_compiler_pic='+Z'
9025	;;
9026      esac
9027      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9028      lt_prog_compiler_static='${wl}-a ${wl}archive'
9029      ;;
9030
9031    irix5* | irix6* | nonstopux*)
9032      lt_prog_compiler_wl='-Wl,'
9033      # PIC (with -KPIC) is the default.
9034      lt_prog_compiler_static='-non_shared'
9035      ;;
9036
9037    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9038      case $cc_basename in
9039      # old Intel for x86_64 which still supported -KPIC.
9040      ecc*)
9041	lt_prog_compiler_wl='-Wl,'
9042	lt_prog_compiler_pic='-KPIC'
9043	lt_prog_compiler_static='-static'
9044        ;;
9045      # icc used to be incompatible with GCC.
9046      # ICC 10 doesn't accept -KPIC any more.
9047      icc* | ifort*)
9048	lt_prog_compiler_wl='-Wl,'
9049	lt_prog_compiler_pic='-fPIC'
9050	lt_prog_compiler_static='-static'
9051        ;;
9052      # Lahey Fortran 8.1.
9053      lf95*)
9054	lt_prog_compiler_wl='-Wl,'
9055	lt_prog_compiler_pic='--shared'
9056	lt_prog_compiler_static='--static'
9057	;;
9058      nagfor*)
9059	# NAG Fortran compiler
9060	lt_prog_compiler_wl='-Wl,-Wl,,'
9061	lt_prog_compiler_pic='-PIC'
9062	lt_prog_compiler_static='-Bstatic'
9063	;;
9064      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9065        # Portland Group compilers (*not* the Pentium gcc compiler,
9066	# which looks to be a dead project)
9067	lt_prog_compiler_wl='-Wl,'
9068	lt_prog_compiler_pic='-fpic'
9069	lt_prog_compiler_static='-Bstatic'
9070        ;;
9071      ccc*)
9072        lt_prog_compiler_wl='-Wl,'
9073        # All Alpha code is PIC.
9074        lt_prog_compiler_static='-non_shared'
9075        ;;
9076      xl* | bgxl* | bgf* | mpixl*)
9077	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9078	lt_prog_compiler_wl='-Wl,'
9079	lt_prog_compiler_pic='-qpic'
9080	lt_prog_compiler_static='-qstaticlink'
9081	;;
9082      *)
9083	case `$CC -V 2>&1 | sed 5q` in
9084	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9085	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9086	  lt_prog_compiler_pic='-KPIC'
9087	  lt_prog_compiler_static='-Bstatic'
9088	  lt_prog_compiler_wl=''
9089	  ;;
9090	*Sun\ F* | *Sun*Fortran*)
9091	  lt_prog_compiler_pic='-KPIC'
9092	  lt_prog_compiler_static='-Bstatic'
9093	  lt_prog_compiler_wl='-Qoption ld '
9094	  ;;
9095	*Sun\ C*)
9096	  # Sun C 5.9
9097	  lt_prog_compiler_pic='-KPIC'
9098	  lt_prog_compiler_static='-Bstatic'
9099	  lt_prog_compiler_wl='-Wl,'
9100	  ;;
9101        *Intel*\ [CF]*Compiler*)
9102	  lt_prog_compiler_wl='-Wl,'
9103	  lt_prog_compiler_pic='-fPIC'
9104	  lt_prog_compiler_static='-static'
9105	  ;;
9106	*Portland\ Group*)
9107	  lt_prog_compiler_wl='-Wl,'
9108	  lt_prog_compiler_pic='-fpic'
9109	  lt_prog_compiler_static='-Bstatic'
9110	  ;;
9111	esac
9112	;;
9113      esac
9114      ;;
9115
9116    newsos6)
9117      lt_prog_compiler_pic='-KPIC'
9118      lt_prog_compiler_static='-Bstatic'
9119      ;;
9120
9121    *nto* | *qnx*)
9122      # QNX uses GNU C++, but need to define -shared option too, otherwise
9123      # it will coredump.
9124      lt_prog_compiler_pic='-fPIC -shared'
9125      ;;
9126
9127    osf3* | osf4* | osf5*)
9128      lt_prog_compiler_wl='-Wl,'
9129      # All OSF/1 code is PIC.
9130      lt_prog_compiler_static='-non_shared'
9131      ;;
9132
9133    rdos*)
9134      lt_prog_compiler_static='-non_shared'
9135      ;;
9136
9137    solaris*)
9138      lt_prog_compiler_pic='-KPIC'
9139      lt_prog_compiler_static='-Bstatic'
9140      case $cc_basename in
9141      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9142	lt_prog_compiler_wl='-Qoption ld ';;
9143      *)
9144	lt_prog_compiler_wl='-Wl,';;
9145      esac
9146      ;;
9147
9148    sunos4*)
9149      lt_prog_compiler_wl='-Qoption ld '
9150      lt_prog_compiler_pic='-PIC'
9151      lt_prog_compiler_static='-Bstatic'
9152      ;;
9153
9154    sysv4 | sysv4.2uw2* | sysv4.3*)
9155      lt_prog_compiler_wl='-Wl,'
9156      lt_prog_compiler_pic='-KPIC'
9157      lt_prog_compiler_static='-Bstatic'
9158      ;;
9159
9160    sysv4*MP*)
9161      if test -d /usr/nec ;then
9162	lt_prog_compiler_pic='-Kconform_pic'
9163	lt_prog_compiler_static='-Bstatic'
9164      fi
9165      ;;
9166
9167    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9168      lt_prog_compiler_wl='-Wl,'
9169      lt_prog_compiler_pic='-KPIC'
9170      lt_prog_compiler_static='-Bstatic'
9171      ;;
9172
9173    unicos*)
9174      lt_prog_compiler_wl='-Wl,'
9175      lt_prog_compiler_can_build_shared=no
9176      ;;
9177
9178    uts4*)
9179      lt_prog_compiler_pic='-pic'
9180      lt_prog_compiler_static='-Bstatic'
9181      ;;
9182
9183    *)
9184      lt_prog_compiler_can_build_shared=no
9185      ;;
9186    esac
9187  fi
9188
9189case $host_os in
9190  # For platforms which do not support PIC, -DPIC is meaningless:
9191  *djgpp*)
9192    lt_prog_compiler_pic=
9193    ;;
9194  *)
9195    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9196    ;;
9197esac
9198
9199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9200$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9201if ${lt_cv_prog_compiler_pic+:} false; then :
9202  $as_echo_n "(cached) " >&6
9203else
9204  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9205fi
9206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9207$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9208lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9209
9210#
9211# Check to make sure the PIC flag actually works.
9212#
9213if test -n "$lt_prog_compiler_pic"; then
9214  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9215$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9216if ${lt_cv_prog_compiler_pic_works+:} false; then :
9217  $as_echo_n "(cached) " >&6
9218else
9219  lt_cv_prog_compiler_pic_works=no
9220   ac_outfile=conftest.$ac_objext
9221   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9222   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9223   # Insert the option either (1) after the last *FLAGS variable, or
9224   # (2) before a word containing "conftest.", or (3) at the end.
9225   # Note that $ac_compile itself does not contain backslashes and begins
9226   # with a dollar sign (not a hyphen), so the echo should work correctly.
9227   # The option is referenced via a variable to avoid confusing sed.
9228   lt_compile=`echo "$ac_compile" | $SED \
9229   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9230   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9231   -e 's:$: $lt_compiler_flag:'`
9232   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9233   (eval "$lt_compile" 2>conftest.err)
9234   ac_status=$?
9235   cat conftest.err >&5
9236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237   if (exit $ac_status) && test -s "$ac_outfile"; then
9238     # The compiler can only warn and ignore the option if not recognized
9239     # So say no if there are warnings other than the usual output.
9240     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9241     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9242     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9243       lt_cv_prog_compiler_pic_works=yes
9244     fi
9245   fi
9246   $RM conftest*
9247
9248fi
9249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9250$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9251
9252if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9253    case $lt_prog_compiler_pic in
9254     "" | " "*) ;;
9255     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9256     esac
9257else
9258    lt_prog_compiler_pic=
9259     lt_prog_compiler_can_build_shared=no
9260fi
9261
9262fi
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274#
9275# Check to make sure the static flag actually works.
9276#
9277wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9279$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9280if ${lt_cv_prog_compiler_static_works+:} false; then :
9281  $as_echo_n "(cached) " >&6
9282else
9283  lt_cv_prog_compiler_static_works=no
9284   save_LDFLAGS="$LDFLAGS"
9285   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9286   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9287   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9288     # The linker can only warn and ignore the option if not recognized
9289     # So say no if there are warnings
9290     if test -s conftest.err; then
9291       # Append any errors to the config.log.
9292       cat conftest.err 1>&5
9293       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9294       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9295       if diff conftest.exp conftest.er2 >/dev/null; then
9296         lt_cv_prog_compiler_static_works=yes
9297       fi
9298     else
9299       lt_cv_prog_compiler_static_works=yes
9300     fi
9301   fi
9302   $RM -r conftest*
9303   LDFLAGS="$save_LDFLAGS"
9304
9305fi
9306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9307$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9308
9309if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9310    :
9311else
9312    lt_prog_compiler_static=
9313fi
9314
9315
9316
9317
9318
9319
9320
9321  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9322$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9323if ${lt_cv_prog_compiler_c_o+:} false; then :
9324  $as_echo_n "(cached) " >&6
9325else
9326  lt_cv_prog_compiler_c_o=no
9327   $RM -r conftest 2>/dev/null
9328   mkdir conftest
9329   cd conftest
9330   mkdir out
9331   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9332
9333   lt_compiler_flag="-o out/conftest2.$ac_objext"
9334   # Insert the option either (1) after the last *FLAGS variable, or
9335   # (2) before a word containing "conftest.", or (3) at the end.
9336   # Note that $ac_compile itself does not contain backslashes and begins
9337   # with a dollar sign (not a hyphen), so the echo should work correctly.
9338   lt_compile=`echo "$ac_compile" | $SED \
9339   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9340   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9341   -e 's:$: $lt_compiler_flag:'`
9342   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9343   (eval "$lt_compile" 2>out/conftest.err)
9344   ac_status=$?
9345   cat out/conftest.err >&5
9346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9348   then
9349     # The compiler can only warn and ignore the option if not recognized
9350     # So say no if there are warnings
9351     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9352     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9353     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9354       lt_cv_prog_compiler_c_o=yes
9355     fi
9356   fi
9357   chmod u+w . 2>&5
9358   $RM conftest*
9359   # SGI C++ compiler will create directory out/ii_files/ for
9360   # template instantiation
9361   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9362   $RM out/* && rmdir out
9363   cd ..
9364   $RM -r conftest
9365   $RM conftest*
9366
9367fi
9368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9369$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9370
9371
9372
9373
9374
9375
9376  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9377$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9378if ${lt_cv_prog_compiler_c_o+:} false; then :
9379  $as_echo_n "(cached) " >&6
9380else
9381  lt_cv_prog_compiler_c_o=no
9382   $RM -r conftest 2>/dev/null
9383   mkdir conftest
9384   cd conftest
9385   mkdir out
9386   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9387
9388   lt_compiler_flag="-o out/conftest2.$ac_objext"
9389   # Insert the option either (1) after the last *FLAGS variable, or
9390   # (2) before a word containing "conftest.", or (3) at the end.
9391   # Note that $ac_compile itself does not contain backslashes and begins
9392   # with a dollar sign (not a hyphen), so the echo should work correctly.
9393   lt_compile=`echo "$ac_compile" | $SED \
9394   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9395   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9396   -e 's:$: $lt_compiler_flag:'`
9397   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9398   (eval "$lt_compile" 2>out/conftest.err)
9399   ac_status=$?
9400   cat out/conftest.err >&5
9401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9403   then
9404     # The compiler can only warn and ignore the option if not recognized
9405     # So say no if there are warnings
9406     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9407     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9408     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9409       lt_cv_prog_compiler_c_o=yes
9410     fi
9411   fi
9412   chmod u+w . 2>&5
9413   $RM conftest*
9414   # SGI C++ compiler will create directory out/ii_files/ for
9415   # template instantiation
9416   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9417   $RM out/* && rmdir out
9418   cd ..
9419   $RM -r conftest
9420   $RM conftest*
9421
9422fi
9423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9424$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9425
9426
9427
9428
9429hard_links="nottested"
9430if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9431  # do not overwrite the value of need_locks provided by the user
9432  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9433$as_echo_n "checking if we can lock with hard links... " >&6; }
9434  hard_links=yes
9435  $RM conftest*
9436  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9437  touch conftest.a
9438  ln conftest.a conftest.b 2>&5 || hard_links=no
9439  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9441$as_echo "$hard_links" >&6; }
9442  if test "$hard_links" = no; then
9443    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9444$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9445    need_locks=warn
9446  fi
9447else
9448  need_locks=no
9449fi
9450
9451
9452
9453
9454
9455
9456  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9457$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9458
9459  runpath_var=
9460  allow_undefined_flag=
9461  always_export_symbols=no
9462  archive_cmds=
9463  archive_expsym_cmds=
9464  compiler_needs_object=no
9465  enable_shared_with_static_runtimes=no
9466  export_dynamic_flag_spec=
9467  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9468  hardcode_automatic=no
9469  hardcode_direct=no
9470  hardcode_direct_absolute=no
9471  hardcode_libdir_flag_spec=
9472  hardcode_libdir_separator=
9473  hardcode_minus_L=no
9474  hardcode_shlibpath_var=unsupported
9475  inherit_rpath=no
9476  link_all_deplibs=unknown
9477  module_cmds=
9478  module_expsym_cmds=
9479  old_archive_from_new_cmds=
9480  old_archive_from_expsyms_cmds=
9481  thread_safe_flag_spec=
9482  whole_archive_flag_spec=
9483  # include_expsyms should be a list of space-separated symbols to be *always*
9484  # included in the symbol list
9485  include_expsyms=
9486  # exclude_expsyms can be an extended regexp of symbols to exclude
9487  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9488  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9489  # as well as any symbol that contains `d'.
9490  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9491  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9492  # platforms (ab)use it in PIC code, but their linkers get confused if
9493  # the symbol is explicitly referenced.  Since portable code cannot
9494  # rely on this symbol name, it's probably fine to never include it in
9495  # preloaded symbol tables.
9496  # Exclude shared library initialization/finalization symbols.
9497  extract_expsyms_cmds=
9498
9499  case $host_os in
9500  cygwin* | mingw* | pw32* | cegcc*)
9501    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9502    # When not using gcc, we currently assume that we are using
9503    # Microsoft Visual C++.
9504    if test "$GCC" != yes; then
9505      with_gnu_ld=no
9506    fi
9507    ;;
9508  interix*)
9509    # we just hope/assume this is gcc and not c89 (= MSVC++)
9510    with_gnu_ld=yes
9511    ;;
9512  openbsd*)
9513    with_gnu_ld=no
9514    ;;
9515  linux* | k*bsd*-gnu | gnu*)
9516    link_all_deplibs=no
9517    ;;
9518  esac
9519
9520  ld_shlibs=yes
9521
9522  # On some targets, GNU ld is compatible enough with the native linker
9523  # that we're better off using the native interface for both.
9524  lt_use_gnu_ld_interface=no
9525  if test "$with_gnu_ld" = yes; then
9526    case $host_os in
9527      aix*)
9528	# The AIX port of GNU ld has always aspired to compatibility
9529	# with the native linker.  However, as the warning in the GNU ld
9530	# block says, versions before 2.19.5* couldn't really create working
9531	# shared libraries, regardless of the interface used.
9532	case `$LD -v 2>&1` in
9533	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9534	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9535	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9536	  *)
9537	    lt_use_gnu_ld_interface=yes
9538	    ;;
9539	esac
9540	;;
9541      *)
9542	lt_use_gnu_ld_interface=yes
9543	;;
9544    esac
9545  fi
9546
9547  if test "$lt_use_gnu_ld_interface" = yes; then
9548    # If archive_cmds runs LD, not CC, wlarc should be empty
9549    wlarc='${wl}'
9550
9551    # Set some defaults for GNU ld with shared library support. These
9552    # are reset later if shared libraries are not supported. Putting them
9553    # here allows them to be overridden if necessary.
9554    runpath_var=LD_RUN_PATH
9555    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9556    export_dynamic_flag_spec='${wl}--export-dynamic'
9557    # ancient GNU ld didn't support --whole-archive et. al.
9558    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9559      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9560    else
9561      whole_archive_flag_spec=
9562    fi
9563    supports_anon_versioning=no
9564    case `$LD -v 2>&1` in
9565      *GNU\ gold*) supports_anon_versioning=yes ;;
9566      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9567      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9568      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9569      *\ 2.11.*) ;; # other 2.11 versions
9570      *) supports_anon_versioning=yes ;;
9571    esac
9572
9573    # See if GNU ld supports shared libraries.
9574    case $host_os in
9575    aix[3-9]*)
9576      # On AIX/PPC, the GNU linker is very broken
9577      if test "$host_cpu" != ia64; then
9578	ld_shlibs=no
9579	cat <<_LT_EOF 1>&2
9580
9581*** Warning: the GNU linker, at least up to release 2.19, is reported
9582*** to be unable to reliably create shared libraries on AIX.
9583*** Therefore, libtool is disabling shared libraries support.  If you
9584*** really care for shared libraries, you may want to install binutils
9585*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9586*** You will then need to restart the configuration process.
9587
9588_LT_EOF
9589      fi
9590      ;;
9591
9592    amigaos*)
9593      case $host_cpu in
9594      powerpc)
9595            # see comment about AmigaOS4 .so support
9596            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9597            archive_expsym_cmds=''
9598        ;;
9599      m68k)
9600            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)'
9601            hardcode_libdir_flag_spec='-L$libdir'
9602            hardcode_minus_L=yes
9603        ;;
9604      esac
9605      ;;
9606
9607    beos*)
9608      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9609	allow_undefined_flag=unsupported
9610	# Joseph Beckenbach <[email protected]> says some releases of gcc
9611	# support --undefined.  This deserves some investigation.  FIXME
9612	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9613      else
9614	ld_shlibs=no
9615      fi
9616      ;;
9617
9618    cygwin* | mingw* | pw32* | cegcc*)
9619      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9620      # as there is no search path for DLLs.
9621      hardcode_libdir_flag_spec='-L$libdir'
9622      export_dynamic_flag_spec='${wl}--export-all-symbols'
9623      allow_undefined_flag=unsupported
9624      always_export_symbols=no
9625      enable_shared_with_static_runtimes=yes
9626      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'
9627      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9628
9629      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9630        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9631	# If the export-symbols file already is a .def file (1st line
9632	# is EXPORTS), use it as is; otherwise, prepend...
9633	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9634	  cp $export_symbols $output_objdir/$soname.def;
9635	else
9636	  echo EXPORTS > $output_objdir/$soname.def;
9637	  cat $export_symbols >> $output_objdir/$soname.def;
9638	fi~
9639	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9640      else
9641	ld_shlibs=no
9642      fi
9643      ;;
9644
9645    haiku*)
9646      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9647      link_all_deplibs=yes
9648      ;;
9649
9650    interix[3-9]*)
9651      hardcode_direct=no
9652      hardcode_shlibpath_var=no
9653      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9654      export_dynamic_flag_spec='${wl}-E'
9655      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9656      # Instead, shared libraries are loaded at an image base (0x10000000 by
9657      # default) and relocated if they conflict, which is a slow very memory
9658      # consuming and fragmenting process.  To avoid this, we pick a random,
9659      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9660      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9661      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9662      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'
9663      ;;
9664
9665    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9666      tmp_diet=no
9667      if test "$host_os" = linux-dietlibc; then
9668	case $cc_basename in
9669	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9670	esac
9671      fi
9672      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9673	 && test "$tmp_diet" = no
9674      then
9675	tmp_addflag=' $pic_flag'
9676	tmp_sharedflag='-shared'
9677	case $cc_basename,$host_cpu in
9678        pgcc*)				# Portland Group C compiler
9679	  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'
9680	  tmp_addflag=' $pic_flag'
9681	  ;;
9682	pgf77* | pgf90* | pgf95* | pgfortran*)
9683					# Portland Group f77 and f90 compilers
9684	  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'
9685	  tmp_addflag=' $pic_flag -Mnomain' ;;
9686	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9687	  tmp_addflag=' -i_dynamic' ;;
9688	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9689	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9690	ifc* | ifort*)			# Intel Fortran compiler
9691	  tmp_addflag=' -nofor_main' ;;
9692	lf95*)				# Lahey Fortran 8.1
9693	  whole_archive_flag_spec=
9694	  tmp_sharedflag='--shared' ;;
9695	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9696	  tmp_sharedflag='-qmkshrobj'
9697	  tmp_addflag= ;;
9698	nvcc*)	# Cuda Compiler Driver 2.2
9699	  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'
9700	  compiler_needs_object=yes
9701	  ;;
9702	esac
9703	case `$CC -V 2>&1 | sed 5q` in
9704	*Sun\ C*)			# Sun C 5.9
9705	  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'
9706	  compiler_needs_object=yes
9707	  tmp_sharedflag='-G' ;;
9708	*Sun\ F*)			# Sun Fortran 8.3
9709	  tmp_sharedflag='-G' ;;
9710	esac
9711	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9712
9713        if test "x$supports_anon_versioning" = xyes; then
9714          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9715	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9716	    echo "local: *; };" >> $output_objdir/$libname.ver~
9717	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9718        fi
9719
9720	case $cc_basename in
9721	xlf* | bgf* | bgxlf* | mpixlf*)
9722	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9723	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9724	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9725	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9726	  if test "x$supports_anon_versioning" = xyes; then
9727	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9728	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9729	      echo "local: *; };" >> $output_objdir/$libname.ver~
9730	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9731	  fi
9732	  ;;
9733	esac
9734      else
9735        ld_shlibs=no
9736      fi
9737      ;;
9738
9739    netbsd* | netbsdelf*-gnu)
9740      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9741	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9742	wlarc=
9743      else
9744	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9745	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9746      fi
9747      ;;
9748
9749    solaris*)
9750      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9751	ld_shlibs=no
9752	cat <<_LT_EOF 1>&2
9753
9754*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9755*** create shared libraries on Solaris systems.  Therefore, libtool
9756*** is disabling shared libraries support.  We urge you to upgrade GNU
9757*** binutils to release 2.9.1 or newer.  Another option is to modify
9758*** your PATH or compiler configuration so that the native linker is
9759*** used, and then restart.
9760
9761_LT_EOF
9762      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9763	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9764	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9765      else
9766	ld_shlibs=no
9767      fi
9768      ;;
9769
9770    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9771      case `$LD -v 2>&1` in
9772        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9773	ld_shlibs=no
9774	cat <<_LT_EOF 1>&2
9775
9776*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9777*** reliably create shared libraries on SCO systems.  Therefore, libtool
9778*** is disabling shared libraries support.  We urge you to upgrade GNU
9779*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9780*** your PATH or compiler configuration so that the native linker is
9781*** used, and then restart.
9782
9783_LT_EOF
9784	;;
9785	*)
9786	  # For security reasons, it is highly recommended that you always
9787	  # use absolute paths for naming shared libraries, and exclude the
9788	  # DT_RUNPATH tag from executables and libraries.  But doing so
9789	  # requires that you compile everything twice, which is a pain.
9790	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9791	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9792	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9793	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9794	  else
9795	    ld_shlibs=no
9796	  fi
9797	;;
9798      esac
9799      ;;
9800
9801    sunos4*)
9802      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9803      wlarc=
9804      hardcode_direct=yes
9805      hardcode_shlibpath_var=no
9806      ;;
9807
9808    *)
9809      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9810	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9811	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9812      else
9813	ld_shlibs=no
9814      fi
9815      ;;
9816    esac
9817
9818    if test "$ld_shlibs" = no; then
9819      runpath_var=
9820      hardcode_libdir_flag_spec=
9821      export_dynamic_flag_spec=
9822      whole_archive_flag_spec=
9823    fi
9824  else
9825    # PORTME fill in a description of your system's linker (not GNU ld)
9826    case $host_os in
9827    aix3*)
9828      allow_undefined_flag=unsupported
9829      always_export_symbols=yes
9830      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'
9831      # Note: this linker hardcodes the directories in LIBPATH if there
9832      # are no directories specified by -L.
9833      hardcode_minus_L=yes
9834      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9835	# Neither direct hardcoding nor static linking is supported with a
9836	# broken collect2.
9837	hardcode_direct=unsupported
9838      fi
9839      ;;
9840
9841    aix[4-9]*)
9842      if test "$host_cpu" = ia64; then
9843	# On IA64, the linker does run time linking by default, so we don't
9844	# have to do anything special.
9845	aix_use_runtimelinking=no
9846	exp_sym_flag='-Bexport'
9847	no_entry_flag=""
9848      else
9849	# If we're using GNU nm, then we don't want the "-C" option.
9850	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9851	# Also, AIX nm treats weak defined symbols like other global
9852	# defined symbols, whereas GNU nm marks them as "W".
9853	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9854	  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'
9855	else
9856	  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'
9857	fi
9858	aix_use_runtimelinking=no
9859
9860	# Test if we are trying to use run time linking or normal
9861	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9862	# need to do runtime linking.
9863	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9864	  for ld_flag in $LDFLAGS; do
9865	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9866	    aix_use_runtimelinking=yes
9867	    break
9868	  fi
9869	  done
9870	  ;;
9871	esac
9872
9873	exp_sym_flag='-bexport'
9874	no_entry_flag='-bnoentry'
9875      fi
9876
9877      # When large executables or shared objects are built, AIX ld can
9878      # have problems creating the table of contents.  If linking a library
9879      # or program results in "error TOC overflow" add -mminimal-toc to
9880      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9881      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9882
9883      archive_cmds=''
9884      hardcode_direct=yes
9885      hardcode_direct_absolute=yes
9886      hardcode_libdir_separator=':'
9887      link_all_deplibs=yes
9888      file_list_spec='${wl}-f,'
9889
9890      if test "$GCC" = yes; then
9891	case $host_os in aix4.[012]|aix4.[012].*)
9892	# We only want to do this on AIX 4.2 and lower, the check
9893	# below for broken collect2 doesn't work under 4.3+
9894	  collect2name=`${CC} -print-prog-name=collect2`
9895	  if test -f "$collect2name" &&
9896	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9897	  then
9898	  # We have reworked collect2
9899	  :
9900	  else
9901	  # We have old collect2
9902	  hardcode_direct=unsupported
9903	  # It fails to find uninstalled libraries when the uninstalled
9904	  # path is not listed in the libpath.  Setting hardcode_minus_L
9905	  # to unsupported forces relinking
9906	  hardcode_minus_L=yes
9907	  hardcode_libdir_flag_spec='-L$libdir'
9908	  hardcode_libdir_separator=
9909	  fi
9910	  ;;
9911	esac
9912	shared_flag='-shared'
9913	if test "$aix_use_runtimelinking" = yes; then
9914	  shared_flag="$shared_flag "'${wl}-G'
9915	fi
9916	link_all_deplibs=no
9917      else
9918	# not using gcc
9919	if test "$host_cpu" = ia64; then
9920	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9921	# chokes on -Wl,-G. The following line is correct:
9922	  shared_flag='-G'
9923	else
9924	  if test "$aix_use_runtimelinking" = yes; then
9925	    shared_flag='${wl}-G'
9926	  else
9927	    shared_flag='${wl}-bM:SRE'
9928	  fi
9929	fi
9930      fi
9931
9932      export_dynamic_flag_spec='${wl}-bexpall'
9933      # It seems that -bexpall does not export symbols beginning with
9934      # underscore (_), so it is better to generate a list of symbols to export.
9935      always_export_symbols=yes
9936      if test "$aix_use_runtimelinking" = yes; then
9937	# Warning - without using the other runtime loading flags (-brtl),
9938	# -berok will link without error, but may produce a broken library.
9939	allow_undefined_flag='-berok'
9940        # Determine the default libpath from the value encoded in an
9941        # empty executable.
9942        if test "${lt_cv_aix_libpath+set}" = set; then
9943  aix_libpath=$lt_cv_aix_libpath
9944else
9945  if ${lt_cv_aix_libpath_+:} false; then :
9946  $as_echo_n "(cached) " >&6
9947else
9948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9949/* end confdefs.h.  */
9950
9951int
9952main ()
9953{
9954
9955  ;
9956  return 0;
9957}
9958_ACEOF
9959if ac_fn_c_try_link "$LINENO"; then :
9960
9961  lt_aix_libpath_sed='
9962      /Import File Strings/,/^$/ {
9963	  /^0/ {
9964	      s/^0  *\([^ ]*\) *$/\1/
9965	      p
9966	  }
9967      }'
9968  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9969  # Check for a 64-bit object if we didn't find anything.
9970  if test -z "$lt_cv_aix_libpath_"; then
9971    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9972  fi
9973fi
9974rm -f core conftest.err conftest.$ac_objext \
9975    conftest$ac_exeext conftest.$ac_ext
9976  if test -z "$lt_cv_aix_libpath_"; then
9977    lt_cv_aix_libpath_="/usr/lib:/lib"
9978  fi
9979
9980fi
9981
9982  aix_libpath=$lt_cv_aix_libpath_
9983fi
9984
9985        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9986        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"
9987      else
9988	if test "$host_cpu" = ia64; then
9989	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9990	  allow_undefined_flag="-z nodefs"
9991	  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"
9992	else
9993	 # Determine the default libpath from the value encoded in an
9994	 # empty executable.
9995	 if test "${lt_cv_aix_libpath+set}" = set; then
9996  aix_libpath=$lt_cv_aix_libpath
9997else
9998  if ${lt_cv_aix_libpath_+:} false; then :
9999  $as_echo_n "(cached) " >&6
10000else
10001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10002/* end confdefs.h.  */
10003
10004int
10005main ()
10006{
10007
10008  ;
10009  return 0;
10010}
10011_ACEOF
10012if ac_fn_c_try_link "$LINENO"; then :
10013
10014  lt_aix_libpath_sed='
10015      /Import File Strings/,/^$/ {
10016	  /^0/ {
10017	      s/^0  *\([^ ]*\) *$/\1/
10018	      p
10019	  }
10020      }'
10021  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10022  # Check for a 64-bit object if we didn't find anything.
10023  if test -z "$lt_cv_aix_libpath_"; then
10024    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10025  fi
10026fi
10027rm -f core conftest.err conftest.$ac_objext \
10028    conftest$ac_exeext conftest.$ac_ext
10029  if test -z "$lt_cv_aix_libpath_"; then
10030    lt_cv_aix_libpath_="/usr/lib:/lib"
10031  fi
10032
10033fi
10034
10035  aix_libpath=$lt_cv_aix_libpath_
10036fi
10037
10038	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10039	  # Warning - without using the other run time loading flags,
10040	  # -berok will link without error, but may produce a broken library.
10041	  no_undefined_flag=' ${wl}-bernotok'
10042	  allow_undefined_flag=' ${wl}-berok'
10043	  if test "$with_gnu_ld" = yes; then
10044	    # We only use this code for GNU lds that support --whole-archive.
10045	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10046	  else
10047	    # Exported symbols can be pulled into shared objects from archives
10048	    whole_archive_flag_spec='$convenience'
10049	  fi
10050	  archive_cmds_need_lc=yes
10051	  # This is similar to how AIX traditionally builds its shared libraries.
10052	  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'
10053	fi
10054      fi
10055      ;;
10056
10057    amigaos*)
10058      case $host_cpu in
10059      powerpc)
10060            # see comment about AmigaOS4 .so support
10061            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10062            archive_expsym_cmds=''
10063        ;;
10064      m68k)
10065            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)'
10066            hardcode_libdir_flag_spec='-L$libdir'
10067            hardcode_minus_L=yes
10068        ;;
10069      esac
10070      ;;
10071
10072    bsdi[45]*)
10073      export_dynamic_flag_spec=-rdynamic
10074      ;;
10075
10076    cygwin* | mingw* | pw32* | cegcc*)
10077      # When not using gcc, we currently assume that we are using
10078      # Microsoft Visual C++.
10079      # hardcode_libdir_flag_spec is actually meaningless, as there is
10080      # no search path for DLLs.
10081      case $cc_basename in
10082      cl*)
10083	# Native MSVC
10084	hardcode_libdir_flag_spec=' '
10085	allow_undefined_flag=unsupported
10086	always_export_symbols=yes
10087	file_list_spec='@'
10088	# Tell ltmain to make .lib files, not .a files.
10089	libext=lib
10090	# Tell ltmain to make .dll files, not .so files.
10091	shrext_cmds=".dll"
10092	# FIXME: Setting linknames here is a bad hack.
10093	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10094	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10095	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10096	  else
10097	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10098	  fi~
10099	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10100	  linknames='
10101	# The linker will not automatically build a static lib if we build a DLL.
10102	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10103	enable_shared_with_static_runtimes=yes
10104	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10105	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10106	# Don't use ranlib
10107	old_postinstall_cmds='chmod 644 $oldlib'
10108	postlink_cmds='lt_outputfile="@OUTPUT@"~
10109	  lt_tool_outputfile="@TOOL_OUTPUT@"~
10110	  case $lt_outputfile in
10111	    *.exe|*.EXE) ;;
10112	    *)
10113	      lt_outputfile="$lt_outputfile.exe"
10114	      lt_tool_outputfile="$lt_tool_outputfile.exe"
10115	      ;;
10116	  esac~
10117	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10118	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10119	    $RM "$lt_outputfile.manifest";
10120	  fi'
10121	;;
10122      *)
10123	# Assume MSVC wrapper
10124	hardcode_libdir_flag_spec=' '
10125	allow_undefined_flag=unsupported
10126	# Tell ltmain to make .lib files, not .a files.
10127	libext=lib
10128	# Tell ltmain to make .dll files, not .so files.
10129	shrext_cmds=".dll"
10130	# FIXME: Setting linknames here is a bad hack.
10131	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10132	# The linker will automatically build a .lib file if we build a DLL.
10133	old_archive_from_new_cmds='true'
10134	# FIXME: Should let the user specify the lib program.
10135	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10136	enable_shared_with_static_runtimes=yes
10137	;;
10138      esac
10139      ;;
10140
10141    darwin* | rhapsody*)
10142
10143
10144  archive_cmds_need_lc=no
10145  hardcode_direct=no
10146  hardcode_automatic=yes
10147  hardcode_shlibpath_var=unsupported
10148  if test "$lt_cv_ld_force_load" = "yes"; then
10149    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\"`'
10150
10151  else
10152    whole_archive_flag_spec=''
10153  fi
10154  link_all_deplibs=yes
10155  allow_undefined_flag="$_lt_dar_allow_undefined"
10156  case $cc_basename in
10157     ifort*) _lt_dar_can_shared=yes ;;
10158     *) _lt_dar_can_shared=$GCC ;;
10159  esac
10160  if test "$_lt_dar_can_shared" = "yes"; then
10161    output_verbose_link_cmd=func_echo_all
10162    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10163    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10164    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}"
10165    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}"
10166
10167  else
10168  ld_shlibs=no
10169  fi
10170
10171      ;;
10172
10173    dgux*)
10174      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10175      hardcode_libdir_flag_spec='-L$libdir'
10176      hardcode_shlibpath_var=no
10177      ;;
10178
10179    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10180    # support.  Future versions do this automatically, but an explicit c++rt0.o
10181    # does not break anything, and helps significantly (at the cost of a little
10182    # extra space).
10183    freebsd2.2*)
10184      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10185      hardcode_libdir_flag_spec='-R$libdir'
10186      hardcode_direct=yes
10187      hardcode_shlibpath_var=no
10188      ;;
10189
10190    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10191    freebsd2.*)
10192      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10193      hardcode_direct=yes
10194      hardcode_minus_L=yes
10195      hardcode_shlibpath_var=no
10196      ;;
10197
10198    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10199    freebsd* | dragonfly*)
10200      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10201      hardcode_libdir_flag_spec='-R$libdir'
10202      hardcode_direct=yes
10203      hardcode_shlibpath_var=no
10204      ;;
10205
10206    hpux9*)
10207      if test "$GCC" = yes; then
10208	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'
10209      else
10210	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'
10211      fi
10212      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10213      hardcode_libdir_separator=:
10214      hardcode_direct=yes
10215
10216      # hardcode_minus_L: Not really in the search PATH,
10217      # but as the default location of the library.
10218      hardcode_minus_L=yes
10219      export_dynamic_flag_spec='${wl}-E'
10220      ;;
10221
10222    hpux10*)
10223      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10224	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10225      else
10226	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10227      fi
10228      if test "$with_gnu_ld" = no; then
10229	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10230	hardcode_libdir_separator=:
10231	hardcode_direct=yes
10232	hardcode_direct_absolute=yes
10233	export_dynamic_flag_spec='${wl}-E'
10234	# hardcode_minus_L: Not really in the search PATH,
10235	# but as the default location of the library.
10236	hardcode_minus_L=yes
10237      fi
10238      ;;
10239
10240    hpux11*)
10241      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10242	case $host_cpu in
10243	hppa*64*)
10244	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10245	  ;;
10246	ia64*)
10247	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10248	  ;;
10249	*)
10250	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10251	  ;;
10252	esac
10253      else
10254	case $host_cpu in
10255	hppa*64*)
10256	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10257	  ;;
10258	ia64*)
10259	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10260	  ;;
10261	*)
10262
10263	  # Older versions of the 11.00 compiler do not understand -b yet
10264	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10265	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10266$as_echo_n "checking if $CC understands -b... " >&6; }
10267if ${lt_cv_prog_compiler__b+:} false; then :
10268  $as_echo_n "(cached) " >&6
10269else
10270  lt_cv_prog_compiler__b=no
10271   save_LDFLAGS="$LDFLAGS"
10272   LDFLAGS="$LDFLAGS -b"
10273   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10274   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10275     # The linker can only warn and ignore the option if not recognized
10276     # So say no if there are warnings
10277     if test -s conftest.err; then
10278       # Append any errors to the config.log.
10279       cat conftest.err 1>&5
10280       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10281       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10282       if diff conftest.exp conftest.er2 >/dev/null; then
10283         lt_cv_prog_compiler__b=yes
10284       fi
10285     else
10286       lt_cv_prog_compiler__b=yes
10287     fi
10288   fi
10289   $RM -r conftest*
10290   LDFLAGS="$save_LDFLAGS"
10291
10292fi
10293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10294$as_echo "$lt_cv_prog_compiler__b" >&6; }
10295
10296if test x"$lt_cv_prog_compiler__b" = xyes; then
10297    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10298else
10299    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10300fi
10301
10302	  ;;
10303	esac
10304      fi
10305      if test "$with_gnu_ld" = no; then
10306	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10307	hardcode_libdir_separator=:
10308
10309	case $host_cpu in
10310	hppa*64*|ia64*)
10311	  hardcode_direct=no
10312	  hardcode_shlibpath_var=no
10313	  ;;
10314	*)
10315	  hardcode_direct=yes
10316	  hardcode_direct_absolute=yes
10317	  export_dynamic_flag_spec='${wl}-E'
10318
10319	  # hardcode_minus_L: Not really in the search PATH,
10320	  # but as the default location of the library.
10321	  hardcode_minus_L=yes
10322	  ;;
10323	esac
10324      fi
10325      ;;
10326
10327    irix5* | irix6* | nonstopux*)
10328      if test "$GCC" = yes; then
10329	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'
10330	# Try to use the -exported_symbol ld option, if it does not
10331	# work, assume that -exports_file does not work either and
10332	# implicitly export all symbols.
10333	# This should be the same for all languages, so no per-tag cache variable.
10334	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10335$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10336if ${lt_cv_irix_exported_symbol+:} false; then :
10337  $as_echo_n "(cached) " >&6
10338else
10339  save_LDFLAGS="$LDFLAGS"
10340	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10341	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10342/* end confdefs.h.  */
10343int foo (void) { return 0; }
10344_ACEOF
10345if ac_fn_c_try_link "$LINENO"; then :
10346  lt_cv_irix_exported_symbol=yes
10347else
10348  lt_cv_irix_exported_symbol=no
10349fi
10350rm -f core conftest.err conftest.$ac_objext \
10351    conftest$ac_exeext conftest.$ac_ext
10352           LDFLAGS="$save_LDFLAGS"
10353fi
10354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10355$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10356	if test "$lt_cv_irix_exported_symbol" = yes; then
10357          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'
10358	fi
10359      else
10360	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'
10361	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'
10362      fi
10363      archive_cmds_need_lc='no'
10364      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10365      hardcode_libdir_separator=:
10366      inherit_rpath=yes
10367      link_all_deplibs=yes
10368      ;;
10369
10370    netbsd* | netbsdelf*-gnu)
10371      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10372	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10373      else
10374	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10375      fi
10376      hardcode_libdir_flag_spec='-R$libdir'
10377      hardcode_direct=yes
10378      hardcode_shlibpath_var=no
10379      ;;
10380
10381    newsos6)
10382      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10383      hardcode_direct=yes
10384      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10385      hardcode_libdir_separator=:
10386      hardcode_shlibpath_var=no
10387      ;;
10388
10389    *nto* | *qnx*)
10390      ;;
10391
10392    openbsd*)
10393      if test -f /usr/libexec/ld.so; then
10394	hardcode_direct=yes
10395	hardcode_shlibpath_var=no
10396	hardcode_direct_absolute=yes
10397	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10398	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10399	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10400	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10401	  export_dynamic_flag_spec='${wl}-E'
10402	else
10403	  case $host_os in
10404	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10405	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10406	     hardcode_libdir_flag_spec='-R$libdir'
10407	     ;;
10408	   *)
10409	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10410	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10411	     ;;
10412	  esac
10413	fi
10414      else
10415	ld_shlibs=no
10416      fi
10417      ;;
10418
10419    os2*)
10420      hardcode_libdir_flag_spec='-L$libdir'
10421      hardcode_minus_L=yes
10422      allow_undefined_flag=unsupported
10423      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'
10424      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10425      ;;
10426
10427    osf3*)
10428      if test "$GCC" = yes; then
10429	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10430	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'
10431      else
10432	allow_undefined_flag=' -expect_unresolved \*'
10433	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'
10434      fi
10435      archive_cmds_need_lc='no'
10436      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10437      hardcode_libdir_separator=:
10438      ;;
10439
10440    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10441      if test "$GCC" = yes; then
10442	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10443	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'
10444	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10445      else
10446	allow_undefined_flag=' -expect_unresolved \*'
10447	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'
10448	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~
10449	$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'
10450
10451	# Both c and cxx compiler support -rpath directly
10452	hardcode_libdir_flag_spec='-rpath $libdir'
10453      fi
10454      archive_cmds_need_lc='no'
10455      hardcode_libdir_separator=:
10456      ;;
10457
10458    solaris*)
10459      no_undefined_flag=' -z defs'
10460      if test "$GCC" = yes; then
10461	wlarc='${wl}'
10462	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10463	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10464	  $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'
10465      else
10466	case `$CC -V 2>&1` in
10467	*"Compilers 5.0"*)
10468	  wlarc=''
10469	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10470	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10471	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10472	  ;;
10473	*)
10474	  wlarc='${wl}'
10475	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10476	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10477	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10478	  ;;
10479	esac
10480      fi
10481      hardcode_libdir_flag_spec='-R$libdir'
10482      hardcode_shlibpath_var=no
10483      case $host_os in
10484      solaris2.[0-5] | solaris2.[0-5].*) ;;
10485      *)
10486	# The compiler driver will combine and reorder linker options,
10487	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10488	# but is careful enough not to reorder.
10489	# Supported since Solaris 2.6 (maybe 2.5.1?)
10490	if test "$GCC" = yes; then
10491	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10492	else
10493	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10494	fi
10495	;;
10496      esac
10497      link_all_deplibs=yes
10498      ;;
10499
10500    sunos4*)
10501      if test "x$host_vendor" = xsequent; then
10502	# Use $CC to link under sequent, because it throws in some extra .o
10503	# files that make .init and .fini sections work.
10504	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10505      else
10506	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10507      fi
10508      hardcode_libdir_flag_spec='-L$libdir'
10509      hardcode_direct=yes
10510      hardcode_minus_L=yes
10511      hardcode_shlibpath_var=no
10512      ;;
10513
10514    sysv4)
10515      case $host_vendor in
10516	sni)
10517	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10518	  hardcode_direct=yes # is this really true???
10519	;;
10520	siemens)
10521	  ## LD is ld it makes a PLAMLIB
10522	  ## CC just makes a GrossModule.
10523	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10524	  reload_cmds='$CC -r -o $output$reload_objs'
10525	  hardcode_direct=no
10526        ;;
10527	motorola)
10528	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10529	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10530	;;
10531      esac
10532      runpath_var='LD_RUN_PATH'
10533      hardcode_shlibpath_var=no
10534      ;;
10535
10536    sysv4.3*)
10537      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10538      hardcode_shlibpath_var=no
10539      export_dynamic_flag_spec='-Bexport'
10540      ;;
10541
10542    sysv4*MP*)
10543      if test -d /usr/nec; then
10544	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10545	hardcode_shlibpath_var=no
10546	runpath_var=LD_RUN_PATH
10547	hardcode_runpath_var=yes
10548	ld_shlibs=yes
10549      fi
10550      ;;
10551
10552    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10553      no_undefined_flag='${wl}-z,text'
10554      archive_cmds_need_lc=no
10555      hardcode_shlibpath_var=no
10556      runpath_var='LD_RUN_PATH'
10557
10558      if test "$GCC" = yes; then
10559	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10560	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10561      else
10562	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10563	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10564      fi
10565      ;;
10566
10567    sysv5* | sco3.2v5* | sco5v6*)
10568      # Note: We can NOT use -z defs as we might desire, because we do not
10569      # link with -lc, and that would cause any symbols used from libc to
10570      # always be unresolved, which means just about no library would
10571      # ever link correctly.  If we're not using GNU ld we use -z text
10572      # though, which does catch some bad symbols but isn't as heavy-handed
10573      # as -z defs.
10574      no_undefined_flag='${wl}-z,text'
10575      allow_undefined_flag='${wl}-z,nodefs'
10576      archive_cmds_need_lc=no
10577      hardcode_shlibpath_var=no
10578      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10579      hardcode_libdir_separator=':'
10580      link_all_deplibs=yes
10581      export_dynamic_flag_spec='${wl}-Bexport'
10582      runpath_var='LD_RUN_PATH'
10583
10584      if test "$GCC" = yes; then
10585	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10586	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10587      else
10588	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10589	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10590      fi
10591      ;;
10592
10593    uts4*)
10594      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10595      hardcode_libdir_flag_spec='-L$libdir'
10596      hardcode_shlibpath_var=no
10597      ;;
10598
10599    *)
10600      ld_shlibs=no
10601      ;;
10602    esac
10603
10604    if test x$host_vendor = xsni; then
10605      case $host in
10606      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10607	export_dynamic_flag_spec='${wl}-Blargedynsym'
10608	;;
10609      esac
10610    fi
10611  fi
10612
10613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10614$as_echo "$ld_shlibs" >&6; }
10615test "$ld_shlibs" = no && can_build_shared=no
10616
10617with_gnu_ld=$with_gnu_ld
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633#
10634# Do we need to explicitly link libc?
10635#
10636case "x$archive_cmds_need_lc" in
10637x|xyes)
10638  # Assume -lc should be added
10639  archive_cmds_need_lc=yes
10640
10641  if test "$enable_shared" = yes && test "$GCC" = yes; then
10642    case $archive_cmds in
10643    *'~'*)
10644      # FIXME: we may have to deal with multi-command sequences.
10645      ;;
10646    '$CC '*)
10647      # Test whether the compiler implicitly links with -lc since on some
10648      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10649      # to ld, don't add -lc before -lgcc.
10650      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10651$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10652if ${lt_cv_archive_cmds_need_lc+:} false; then :
10653  $as_echo_n "(cached) " >&6
10654else
10655  $RM conftest*
10656	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10657
10658	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10659  (eval $ac_compile) 2>&5
10660  ac_status=$?
10661  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10662  test $ac_status = 0; } 2>conftest.err; then
10663	  soname=conftest
10664	  lib=conftest
10665	  libobjs=conftest.$ac_objext
10666	  deplibs=
10667	  wl=$lt_prog_compiler_wl
10668	  pic_flag=$lt_prog_compiler_pic
10669	  compiler_flags=-v
10670	  linker_flags=-v
10671	  verstring=
10672	  output_objdir=.
10673	  libname=conftest
10674	  lt_save_allow_undefined_flag=$allow_undefined_flag
10675	  allow_undefined_flag=
10676	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10677  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10678  ac_status=$?
10679  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10680  test $ac_status = 0; }
10681	  then
10682	    lt_cv_archive_cmds_need_lc=no
10683	  else
10684	    lt_cv_archive_cmds_need_lc=yes
10685	  fi
10686	  allow_undefined_flag=$lt_save_allow_undefined_flag
10687	else
10688	  cat conftest.err 1>&5
10689	fi
10690	$RM conftest*
10691
10692fi
10693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10694$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10695      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10696      ;;
10697    esac
10698  fi
10699  ;;
10700esac
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10854$as_echo_n "checking dynamic linker characteristics... " >&6; }
10855
10856if test "$GCC" = yes; then
10857  case $host_os in
10858    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10859    *) lt_awk_arg="/^libraries:/" ;;
10860  esac
10861  case $host_os in
10862    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10863    *) lt_sed_strip_eq="s,=/,/,g" ;;
10864  esac
10865  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10866  case $lt_search_path_spec in
10867  *\;*)
10868    # if the path contains ";" then we assume it to be the separator
10869    # otherwise default to the standard path separator (i.e. ":") - it is
10870    # assumed that no part of a normal pathname contains ";" but that should
10871    # okay in the real world where ";" in dirpaths is itself problematic.
10872    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10873    ;;
10874  *)
10875    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10876    ;;
10877  esac
10878  # Ok, now we have the path, separated by spaces, we can step through it
10879  # and add multilib dir if necessary.
10880  lt_tmp_lt_search_path_spec=
10881  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10882  for lt_sys_path in $lt_search_path_spec; do
10883    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10884      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10885    else
10886      test -d "$lt_sys_path" && \
10887	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10888    fi
10889  done
10890  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10891BEGIN {RS=" "; FS="/|\n";} {
10892  lt_foo="";
10893  lt_count=0;
10894  for (lt_i = NF; lt_i > 0; lt_i--) {
10895    if ($lt_i != "" && $lt_i != ".") {
10896      if ($lt_i == "..") {
10897        lt_count++;
10898      } else {
10899        if (lt_count == 0) {
10900          lt_foo="/" $lt_i lt_foo;
10901        } else {
10902          lt_count--;
10903        }
10904      }
10905    }
10906  }
10907  if (lt_foo != "") { lt_freq[lt_foo]++; }
10908  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10909}'`
10910  # AWK program above erroneously prepends '/' to C:/dos/paths
10911  # for these hosts.
10912  case $host_os in
10913    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10914      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10915  esac
10916  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10917else
10918  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10919fi
10920library_names_spec=
10921libname_spec='lib$name'
10922soname_spec=
10923shrext_cmds=".so"
10924postinstall_cmds=
10925postuninstall_cmds=
10926finish_cmds=
10927finish_eval=
10928shlibpath_var=
10929shlibpath_overrides_runpath=unknown
10930version_type=none
10931dynamic_linker="$host_os ld.so"
10932sys_lib_dlsearch_path_spec="/lib /usr/lib"
10933need_lib_prefix=unknown
10934hardcode_into_libs=no
10935
10936# when you set need_version to no, make sure it does not cause -set_version
10937# flags to be left without arguments
10938need_version=unknown
10939
10940case $host_os in
10941aix3*)
10942  version_type=linux # correct to gnu/linux during the next big refactor
10943  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10944  shlibpath_var=LIBPATH
10945
10946  # AIX 3 has no versioning support, so we append a major version to the name.
10947  soname_spec='${libname}${release}${shared_ext}$major'
10948  ;;
10949
10950aix[4-9]*)
10951  version_type=linux # correct to gnu/linux during the next big refactor
10952  need_lib_prefix=no
10953  need_version=no
10954  hardcode_into_libs=yes
10955  if test "$host_cpu" = ia64; then
10956    # AIX 5 supports IA64
10957    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10958    shlibpath_var=LD_LIBRARY_PATH
10959  else
10960    # With GCC up to 2.95.x, collect2 would create an import file
10961    # for dependence libraries.  The import file would start with
10962    # the line `#! .'.  This would cause the generated library to
10963    # depend on `.', always an invalid library.  This was fixed in
10964    # development snapshots of GCC prior to 3.0.
10965    case $host_os in
10966      aix4 | aix4.[01] | aix4.[01].*)
10967      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10968	   echo ' yes '
10969	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10970	:
10971      else
10972	can_build_shared=no
10973      fi
10974      ;;
10975    esac
10976    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10977    # soname into executable. Probably we can add versioning support to
10978    # collect2, so additional links can be useful in future.
10979    if test "$aix_use_runtimelinking" = yes; then
10980      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10981      # instead of lib<name>.a to let people know that these are not
10982      # typical AIX shared libraries.
10983      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10984    else
10985      # We preserve .a as extension for shared libraries through AIX4.2
10986      # and later when we are not doing run time linking.
10987      library_names_spec='${libname}${release}.a $libname.a'
10988      soname_spec='${libname}${release}${shared_ext}$major'
10989    fi
10990    shlibpath_var=LIBPATH
10991  fi
10992  ;;
10993
10994amigaos*)
10995  case $host_cpu in
10996  powerpc)
10997    # Since July 2007 AmigaOS4 officially supports .so libraries.
10998    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10999    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11000    ;;
11001  m68k)
11002    library_names_spec='$libname.ixlibrary $libname.a'
11003    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11004    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'
11005    ;;
11006  esac
11007  ;;
11008
11009beos*)
11010  library_names_spec='${libname}${shared_ext}'
11011  dynamic_linker="$host_os ld.so"
11012  shlibpath_var=LIBRARY_PATH
11013  ;;
11014
11015bsdi[45]*)
11016  version_type=linux # correct to gnu/linux during the next big refactor
11017  need_version=no
11018  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11019  soname_spec='${libname}${release}${shared_ext}$major'
11020  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11021  shlibpath_var=LD_LIBRARY_PATH
11022  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11023  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11024  # the default ld.so.conf also contains /usr/contrib/lib and
11025  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11026  # libtool to hard-code these into programs
11027  ;;
11028
11029cygwin* | mingw* | pw32* | cegcc*)
11030  version_type=windows
11031  shrext_cmds=".dll"
11032  need_version=no
11033  need_lib_prefix=no
11034
11035  case $GCC,$cc_basename in
11036  yes,*)
11037    # gcc
11038    library_names_spec='$libname.dll.a'
11039    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11040    postinstall_cmds='base_file=`basename \${file}`~
11041      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11042      dldir=$destdir/`dirname \$dlpath`~
11043      test -d \$dldir || mkdir -p \$dldir~
11044      $install_prog $dir/$dlname \$dldir/$dlname~
11045      chmod a+x \$dldir/$dlname~
11046      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11047        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11048      fi'
11049    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11050      dlpath=$dir/\$dldll~
11051       $RM \$dlpath'
11052    shlibpath_overrides_runpath=yes
11053
11054    case $host_os in
11055    cygwin*)
11056      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11057      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11058
11059      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11060      ;;
11061    mingw* | cegcc*)
11062      # MinGW DLLs use traditional 'lib' prefix
11063      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11064      ;;
11065    pw32*)
11066      # pw32 DLLs use 'pw' prefix rather than 'lib'
11067      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11068      ;;
11069    esac
11070    dynamic_linker='Win32 ld.exe'
11071    ;;
11072
11073  *,cl*)
11074    # Native MSVC
11075    libname_spec='$name'
11076    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11077    library_names_spec='${libname}.dll.lib'
11078
11079    case $build_os in
11080    mingw*)
11081      sys_lib_search_path_spec=
11082      lt_save_ifs=$IFS
11083      IFS=';'
11084      for lt_path in $LIB
11085      do
11086        IFS=$lt_save_ifs
11087        # Let DOS variable expansion print the short 8.3 style file name.
11088        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11089        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11090      done
11091      IFS=$lt_save_ifs
11092      # Convert to MSYS style.
11093      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11094      ;;
11095    cygwin*)
11096      # Convert to unix form, then to dos form, then back to unix form
11097      # but this time dos style (no spaces!) so that the unix form looks
11098      # like /cygdrive/c/PROGRA~1:/cygdr...
11099      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11100      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11101      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11102      ;;
11103    *)
11104      sys_lib_search_path_spec="$LIB"
11105      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11106        # It is most probably a Windows format PATH.
11107        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11108      else
11109        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11110      fi
11111      # FIXME: find the short name or the path components, as spaces are
11112      # common. (e.g. "Program Files" -> "PROGRA~1")
11113      ;;
11114    esac
11115
11116    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11117    postinstall_cmds='base_file=`basename \${file}`~
11118      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11119      dldir=$destdir/`dirname \$dlpath`~
11120      test -d \$dldir || mkdir -p \$dldir~
11121      $install_prog $dir/$dlname \$dldir/$dlname'
11122    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11123      dlpath=$dir/\$dldll~
11124       $RM \$dlpath'
11125    shlibpath_overrides_runpath=yes
11126    dynamic_linker='Win32 link.exe'
11127    ;;
11128
11129  *)
11130    # Assume MSVC wrapper
11131    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11132    dynamic_linker='Win32 ld.exe'
11133    ;;
11134  esac
11135  # FIXME: first we should search . and the directory the executable is in
11136  shlibpath_var=PATH
11137  ;;
11138
11139darwin* | rhapsody*)
11140  dynamic_linker="$host_os dyld"
11141  version_type=darwin
11142  need_lib_prefix=no
11143  need_version=no
11144  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11145  soname_spec='${libname}${release}${major}$shared_ext'
11146  shlibpath_overrides_runpath=yes
11147  shlibpath_var=DYLD_LIBRARY_PATH
11148  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11149
11150  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11151  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11152  ;;
11153
11154dgux*)
11155  version_type=linux # correct to gnu/linux during the next big refactor
11156  need_lib_prefix=no
11157  need_version=no
11158  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11159  soname_spec='${libname}${release}${shared_ext}$major'
11160  shlibpath_var=LD_LIBRARY_PATH
11161  ;;
11162
11163freebsd* | dragonfly*)
11164  # DragonFly does not have aout.  When/if they implement a new
11165  # versioning mechanism, adjust this.
11166  if test -x /usr/bin/objformat; then
11167    objformat=`/usr/bin/objformat`
11168  else
11169    case $host_os in
11170    freebsd[23].*) objformat=aout ;;
11171    *) objformat=elf ;;
11172    esac
11173  fi
11174  version_type=freebsd-$objformat
11175  case $version_type in
11176    freebsd-elf*)
11177      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11178      need_version=no
11179      need_lib_prefix=no
11180      ;;
11181    freebsd-*)
11182      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11183      need_version=yes
11184      ;;
11185  esac
11186  shlibpath_var=LD_LIBRARY_PATH
11187  case $host_os in
11188  freebsd2.*)
11189    shlibpath_overrides_runpath=yes
11190    ;;
11191  freebsd3.[01]* | freebsdelf3.[01]*)
11192    shlibpath_overrides_runpath=yes
11193    hardcode_into_libs=yes
11194    ;;
11195  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11196  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11197    shlibpath_overrides_runpath=no
11198    hardcode_into_libs=yes
11199    ;;
11200  *) # from 4.6 on, and DragonFly
11201    shlibpath_overrides_runpath=yes
11202    hardcode_into_libs=yes
11203    ;;
11204  esac
11205  ;;
11206
11207haiku*)
11208  version_type=linux # correct to gnu/linux during the next big refactor
11209  need_lib_prefix=no
11210  need_version=no
11211  dynamic_linker="$host_os runtime_loader"
11212  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11213  soname_spec='${libname}${release}${shared_ext}$major'
11214  shlibpath_var=LIBRARY_PATH
11215  shlibpath_overrides_runpath=yes
11216  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11217  hardcode_into_libs=yes
11218  ;;
11219
11220hpux9* | hpux10* | hpux11*)
11221  # Give a soname corresponding to the major version so that dld.sl refuses to
11222  # link against other versions.
11223  version_type=sunos
11224  need_lib_prefix=no
11225  need_version=no
11226  case $host_cpu in
11227  ia64*)
11228    shrext_cmds='.so'
11229    hardcode_into_libs=yes
11230    dynamic_linker="$host_os dld.so"
11231    shlibpath_var=LD_LIBRARY_PATH
11232    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11233    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11234    soname_spec='${libname}${release}${shared_ext}$major'
11235    if test "X$HPUX_IA64_MODE" = X32; then
11236      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11237    else
11238      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11239    fi
11240    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11241    ;;
11242  hppa*64*)
11243    shrext_cmds='.sl'
11244    hardcode_into_libs=yes
11245    dynamic_linker="$host_os dld.sl"
11246    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11247    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11248    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11249    soname_spec='${libname}${release}${shared_ext}$major'
11250    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11251    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11252    ;;
11253  *)
11254    shrext_cmds='.sl'
11255    dynamic_linker="$host_os dld.sl"
11256    shlibpath_var=SHLIB_PATH
11257    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11258    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11259    soname_spec='${libname}${release}${shared_ext}$major'
11260    ;;
11261  esac
11262  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11263  postinstall_cmds='chmod 555 $lib'
11264  # or fails outright, so override atomically:
11265  install_override_mode=555
11266  ;;
11267
11268interix[3-9]*)
11269  version_type=linux # correct to gnu/linux during the next big refactor
11270  need_lib_prefix=no
11271  need_version=no
11272  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11273  soname_spec='${libname}${release}${shared_ext}$major'
11274  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11275  shlibpath_var=LD_LIBRARY_PATH
11276  shlibpath_overrides_runpath=no
11277  hardcode_into_libs=yes
11278  ;;
11279
11280irix5* | irix6* | nonstopux*)
11281  case $host_os in
11282    nonstopux*) version_type=nonstopux ;;
11283    *)
11284	if test "$lt_cv_prog_gnu_ld" = yes; then
11285		version_type=linux # correct to gnu/linux during the next big refactor
11286	else
11287		version_type=irix
11288	fi ;;
11289  esac
11290  need_lib_prefix=no
11291  need_version=no
11292  soname_spec='${libname}${release}${shared_ext}$major'
11293  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11294  case $host_os in
11295  irix5* | nonstopux*)
11296    libsuff= shlibsuff=
11297    ;;
11298  *)
11299    case $LD in # libtool.m4 will add one of these switches to LD
11300    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11301      libsuff= shlibsuff= libmagic=32-bit;;
11302    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11303      libsuff=32 shlibsuff=N32 libmagic=N32;;
11304    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11305      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11306    *) libsuff= shlibsuff= libmagic=never-match;;
11307    esac
11308    ;;
11309  esac
11310  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11311  shlibpath_overrides_runpath=no
11312  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11313  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11314  hardcode_into_libs=yes
11315  ;;
11316
11317# No shared lib support for Linux oldld, aout, or coff.
11318linux*oldld* | linux*aout* | linux*coff*)
11319  dynamic_linker=no
11320  ;;
11321
11322# This must be glibc/ELF.
11323linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11324  version_type=linux # correct to gnu/linux during the next big refactor
11325  need_lib_prefix=no
11326  need_version=no
11327  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11328  soname_spec='${libname}${release}${shared_ext}$major'
11329  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11330  shlibpath_var=LD_LIBRARY_PATH
11331  shlibpath_overrides_runpath=no
11332
11333  # Some binutils ld are patched to set DT_RUNPATH
11334  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11335  $as_echo_n "(cached) " >&6
11336else
11337  lt_cv_shlibpath_overrides_runpath=no
11338    save_LDFLAGS=$LDFLAGS
11339    save_libdir=$libdir
11340    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11341	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11342    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11343/* end confdefs.h.  */
11344
11345int
11346main ()
11347{
11348
11349  ;
11350  return 0;
11351}
11352_ACEOF
11353if ac_fn_c_try_link "$LINENO"; then :
11354  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11355  lt_cv_shlibpath_overrides_runpath=yes
11356fi
11357fi
11358rm -f core conftest.err conftest.$ac_objext \
11359    conftest$ac_exeext conftest.$ac_ext
11360    LDFLAGS=$save_LDFLAGS
11361    libdir=$save_libdir
11362
11363fi
11364
11365  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11366
11367  # This implies no fast_install, which is unacceptable.
11368  # Some rework will be needed to allow for fast_install
11369  # before this can be enabled.
11370  hardcode_into_libs=yes
11371
11372  # Append ld.so.conf contents to the search path
11373  if test -f /etc/ld.so.conf; then
11374    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' ' '`
11375    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11376  fi
11377
11378  # We used to test for /lib/ld.so.1 and disable shared libraries on
11379  # powerpc, because MkLinux only supported shared libraries with the
11380  # GNU dynamic linker.  Since this was broken with cross compilers,
11381  # most powerpc-linux boxes support dynamic linking these days and
11382  # people can always --disable-shared, the test was removed, and we
11383  # assume the GNU/Linux dynamic linker is in use.
11384  dynamic_linker='GNU/Linux ld.so'
11385  ;;
11386
11387netbsdelf*-gnu)
11388  version_type=linux
11389  need_lib_prefix=no
11390  need_version=no
11391  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11392  soname_spec='${libname}${release}${shared_ext}$major'
11393  shlibpath_var=LD_LIBRARY_PATH
11394  shlibpath_overrides_runpath=no
11395  hardcode_into_libs=yes
11396  dynamic_linker='NetBSD ld.elf_so'
11397  ;;
11398
11399netbsd*)
11400  version_type=sunos
11401  need_lib_prefix=no
11402  need_version=no
11403  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11404    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11405    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11406    dynamic_linker='NetBSD (a.out) ld.so'
11407  else
11408    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11409    soname_spec='${libname}${release}${shared_ext}$major'
11410    dynamic_linker='NetBSD ld.elf_so'
11411  fi
11412  shlibpath_var=LD_LIBRARY_PATH
11413  shlibpath_overrides_runpath=yes
11414  hardcode_into_libs=yes
11415  ;;
11416
11417newsos6)
11418  version_type=linux # correct to gnu/linux during the next big refactor
11419  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11420  shlibpath_var=LD_LIBRARY_PATH
11421  shlibpath_overrides_runpath=yes
11422  ;;
11423
11424*nto* | *qnx*)
11425  version_type=qnx
11426  need_lib_prefix=no
11427  need_version=no
11428  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11429  soname_spec='${libname}${release}${shared_ext}$major'
11430  shlibpath_var=LD_LIBRARY_PATH
11431  shlibpath_overrides_runpath=no
11432  hardcode_into_libs=yes
11433  dynamic_linker='ldqnx.so'
11434  ;;
11435
11436openbsd*)
11437  version_type=sunos
11438  sys_lib_dlsearch_path_spec="/usr/lib"
11439  need_lib_prefix=no
11440  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11441  case $host_os in
11442    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11443    *)				need_version=no  ;;
11444  esac
11445  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11446  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11447  shlibpath_var=LD_LIBRARY_PATH
11448  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11449    case $host_os in
11450      openbsd2.[89] | openbsd2.[89].*)
11451	shlibpath_overrides_runpath=no
11452	;;
11453      *)
11454	shlibpath_overrides_runpath=yes
11455	;;
11456      esac
11457  else
11458    shlibpath_overrides_runpath=yes
11459  fi
11460  ;;
11461
11462os2*)
11463  libname_spec='$name'
11464  shrext_cmds=".dll"
11465  need_lib_prefix=no
11466  library_names_spec='$libname${shared_ext} $libname.a'
11467  dynamic_linker='OS/2 ld.exe'
11468  shlibpath_var=LIBPATH
11469  ;;
11470
11471osf3* | osf4* | osf5*)
11472  version_type=osf
11473  need_lib_prefix=no
11474  need_version=no
11475  soname_spec='${libname}${release}${shared_ext}$major'
11476  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11477  shlibpath_var=LD_LIBRARY_PATH
11478  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11479  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11480  ;;
11481
11482rdos*)
11483  dynamic_linker=no
11484  ;;
11485
11486solaris*)
11487  version_type=linux # correct to gnu/linux during the next big refactor
11488  need_lib_prefix=no
11489  need_version=no
11490  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11491  soname_spec='${libname}${release}${shared_ext}$major'
11492  shlibpath_var=LD_LIBRARY_PATH
11493  shlibpath_overrides_runpath=yes
11494  hardcode_into_libs=yes
11495  # ldd complains unless libraries are executable
11496  postinstall_cmds='chmod +x $lib'
11497  ;;
11498
11499sunos4*)
11500  version_type=sunos
11501  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11502  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11503  shlibpath_var=LD_LIBRARY_PATH
11504  shlibpath_overrides_runpath=yes
11505  if test "$with_gnu_ld" = yes; then
11506    need_lib_prefix=no
11507  fi
11508  need_version=yes
11509  ;;
11510
11511sysv4 | sysv4.3*)
11512  version_type=linux # correct to gnu/linux during the next big refactor
11513  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11514  soname_spec='${libname}${release}${shared_ext}$major'
11515  shlibpath_var=LD_LIBRARY_PATH
11516  case $host_vendor in
11517    sni)
11518      shlibpath_overrides_runpath=no
11519      need_lib_prefix=no
11520      runpath_var=LD_RUN_PATH
11521      ;;
11522    siemens)
11523      need_lib_prefix=no
11524      ;;
11525    motorola)
11526      need_lib_prefix=no
11527      need_version=no
11528      shlibpath_overrides_runpath=no
11529      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11530      ;;
11531  esac
11532  ;;
11533
11534sysv4*MP*)
11535  if test -d /usr/nec ;then
11536    version_type=linux # correct to gnu/linux during the next big refactor
11537    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11538    soname_spec='$libname${shared_ext}.$major'
11539    shlibpath_var=LD_LIBRARY_PATH
11540  fi
11541  ;;
11542
11543sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11544  version_type=freebsd-elf
11545  need_lib_prefix=no
11546  need_version=no
11547  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11548  soname_spec='${libname}${release}${shared_ext}$major'
11549  shlibpath_var=LD_LIBRARY_PATH
11550  shlibpath_overrides_runpath=yes
11551  hardcode_into_libs=yes
11552  if test "$with_gnu_ld" = yes; then
11553    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11554  else
11555    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11556    case $host_os in
11557      sco3.2v5*)
11558        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11559	;;
11560    esac
11561  fi
11562  sys_lib_dlsearch_path_spec='/usr/lib'
11563  ;;
11564
11565tpf*)
11566  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11567  version_type=linux # correct to gnu/linux during the next big refactor
11568  need_lib_prefix=no
11569  need_version=no
11570  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11571  shlibpath_var=LD_LIBRARY_PATH
11572  shlibpath_overrides_runpath=no
11573  hardcode_into_libs=yes
11574  ;;
11575
11576uts4*)
11577  version_type=linux # correct to gnu/linux during the next big refactor
11578  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11579  soname_spec='${libname}${release}${shared_ext}$major'
11580  shlibpath_var=LD_LIBRARY_PATH
11581  ;;
11582
11583*)
11584  dynamic_linker=no
11585  ;;
11586esac
11587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11588$as_echo "$dynamic_linker" >&6; }
11589test "$dynamic_linker" = no && can_build_shared=no
11590
11591variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11592if test "$GCC" = yes; then
11593  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11594fi
11595
11596if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11597  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11598fi
11599if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11600  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11601fi
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11695$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11696hardcode_action=
11697if test -n "$hardcode_libdir_flag_spec" ||
11698   test -n "$runpath_var" ||
11699   test "X$hardcode_automatic" = "Xyes" ; then
11700
11701  # We can hardcode non-existent directories.
11702  if test "$hardcode_direct" != no &&
11703     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11704     # have to relink, otherwise we might link with an installed library
11705     # when we should be linking with a yet-to-be-installed one
11706     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11707     test "$hardcode_minus_L" != no; then
11708    # Linking always hardcodes the temporary library directory.
11709    hardcode_action=relink
11710  else
11711    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11712    hardcode_action=immediate
11713  fi
11714else
11715  # We cannot hardcode anything, or else we can only hardcode existing
11716  # directories.
11717  hardcode_action=unsupported
11718fi
11719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11720$as_echo "$hardcode_action" >&6; }
11721
11722if test "$hardcode_action" = relink ||
11723   test "$inherit_rpath" = yes; then
11724  # Fast installation is not supported
11725  enable_fast_install=no
11726elif test "$shlibpath_overrides_runpath" = yes ||
11727     test "$enable_shared" = no; then
11728  # Fast installation is not necessary
11729  enable_fast_install=needless
11730fi
11731
11732
11733
11734
11735
11736
11737  if test "x$enable_dlopen" != xyes; then
11738  enable_dlopen=unknown
11739  enable_dlopen_self=unknown
11740  enable_dlopen_self_static=unknown
11741else
11742  lt_cv_dlopen=no
11743  lt_cv_dlopen_libs=
11744
11745  case $host_os in
11746  beos*)
11747    lt_cv_dlopen="load_add_on"
11748    lt_cv_dlopen_libs=
11749    lt_cv_dlopen_self=yes
11750    ;;
11751
11752  mingw* | pw32* | cegcc*)
11753    lt_cv_dlopen="LoadLibrary"
11754    lt_cv_dlopen_libs=
11755    ;;
11756
11757  cygwin*)
11758    lt_cv_dlopen="dlopen"
11759    lt_cv_dlopen_libs=
11760    ;;
11761
11762  darwin*)
11763  # if libdl is installed we need to link against it
11764    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11765$as_echo_n "checking for dlopen in -ldl... " >&6; }
11766if ${ac_cv_lib_dl_dlopen+:} false; then :
11767  $as_echo_n "(cached) " >&6
11768else
11769  ac_check_lib_save_LIBS=$LIBS
11770LIBS="-ldl  $LIBS"
11771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11772/* end confdefs.h.  */
11773
11774/* Override any GCC internal prototype to avoid an error.
11775   Use char because int might match the return type of a GCC
11776   builtin and then its argument prototype would still apply.  */
11777#ifdef __cplusplus
11778extern "C"
11779#endif
11780char dlopen ();
11781int
11782main ()
11783{
11784return dlopen ();
11785  ;
11786  return 0;
11787}
11788_ACEOF
11789if ac_fn_c_try_link "$LINENO"; then :
11790  ac_cv_lib_dl_dlopen=yes
11791else
11792  ac_cv_lib_dl_dlopen=no
11793fi
11794rm -f core conftest.err conftest.$ac_objext \
11795    conftest$ac_exeext conftest.$ac_ext
11796LIBS=$ac_check_lib_save_LIBS
11797fi
11798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11799$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11800if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11801  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11802else
11803
11804    lt_cv_dlopen="dyld"
11805    lt_cv_dlopen_libs=
11806    lt_cv_dlopen_self=yes
11807
11808fi
11809
11810    ;;
11811
11812  *)
11813    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11814if test "x$ac_cv_func_shl_load" = xyes; then :
11815  lt_cv_dlopen="shl_load"
11816else
11817  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11818$as_echo_n "checking for shl_load in -ldld... " >&6; }
11819if ${ac_cv_lib_dld_shl_load+:} false; then :
11820  $as_echo_n "(cached) " >&6
11821else
11822  ac_check_lib_save_LIBS=$LIBS
11823LIBS="-ldld  $LIBS"
11824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11825/* end confdefs.h.  */
11826
11827/* Override any GCC internal prototype to avoid an error.
11828   Use char because int might match the return type of a GCC
11829   builtin and then its argument prototype would still apply.  */
11830#ifdef __cplusplus
11831extern "C"
11832#endif
11833char shl_load ();
11834int
11835main ()
11836{
11837return shl_load ();
11838  ;
11839  return 0;
11840}
11841_ACEOF
11842if ac_fn_c_try_link "$LINENO"; then :
11843  ac_cv_lib_dld_shl_load=yes
11844else
11845  ac_cv_lib_dld_shl_load=no
11846fi
11847rm -f core conftest.err conftest.$ac_objext \
11848    conftest$ac_exeext conftest.$ac_ext
11849LIBS=$ac_check_lib_save_LIBS
11850fi
11851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11852$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11853if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11854  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11855else
11856  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11857if test "x$ac_cv_func_dlopen" = xyes; then :
11858  lt_cv_dlopen="dlopen"
11859else
11860  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11861$as_echo_n "checking for dlopen in -ldl... " >&6; }
11862if ${ac_cv_lib_dl_dlopen+:} false; then :
11863  $as_echo_n "(cached) " >&6
11864else
11865  ac_check_lib_save_LIBS=$LIBS
11866LIBS="-ldl  $LIBS"
11867cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11868/* end confdefs.h.  */
11869
11870/* Override any GCC internal prototype to avoid an error.
11871   Use char because int might match the return type of a GCC
11872   builtin and then its argument prototype would still apply.  */
11873#ifdef __cplusplus
11874extern "C"
11875#endif
11876char dlopen ();
11877int
11878main ()
11879{
11880return dlopen ();
11881  ;
11882  return 0;
11883}
11884_ACEOF
11885if ac_fn_c_try_link "$LINENO"; then :
11886  ac_cv_lib_dl_dlopen=yes
11887else
11888  ac_cv_lib_dl_dlopen=no
11889fi
11890rm -f core conftest.err conftest.$ac_objext \
11891    conftest$ac_exeext conftest.$ac_ext
11892LIBS=$ac_check_lib_save_LIBS
11893fi
11894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11895$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11896if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11897  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11898else
11899  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11900$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11901if ${ac_cv_lib_svld_dlopen+:} false; then :
11902  $as_echo_n "(cached) " >&6
11903else
11904  ac_check_lib_save_LIBS=$LIBS
11905LIBS="-lsvld  $LIBS"
11906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11907/* end confdefs.h.  */
11908
11909/* Override any GCC internal prototype to avoid an error.
11910   Use char because int might match the return type of a GCC
11911   builtin and then its argument prototype would still apply.  */
11912#ifdef __cplusplus
11913extern "C"
11914#endif
11915char dlopen ();
11916int
11917main ()
11918{
11919return dlopen ();
11920  ;
11921  return 0;
11922}
11923_ACEOF
11924if ac_fn_c_try_link "$LINENO"; then :
11925  ac_cv_lib_svld_dlopen=yes
11926else
11927  ac_cv_lib_svld_dlopen=no
11928fi
11929rm -f core conftest.err conftest.$ac_objext \
11930    conftest$ac_exeext conftest.$ac_ext
11931LIBS=$ac_check_lib_save_LIBS
11932fi
11933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11934$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11935if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11936  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11937else
11938  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11939$as_echo_n "checking for dld_link in -ldld... " >&6; }
11940if ${ac_cv_lib_dld_dld_link+:} false; then :
11941  $as_echo_n "(cached) " >&6
11942else
11943  ac_check_lib_save_LIBS=$LIBS
11944LIBS="-ldld  $LIBS"
11945cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11946/* end confdefs.h.  */
11947
11948/* Override any GCC internal prototype to avoid an error.
11949   Use char because int might match the return type of a GCC
11950   builtin and then its argument prototype would still apply.  */
11951#ifdef __cplusplus
11952extern "C"
11953#endif
11954char dld_link ();
11955int
11956main ()
11957{
11958return dld_link ();
11959  ;
11960  return 0;
11961}
11962_ACEOF
11963if ac_fn_c_try_link "$LINENO"; then :
11964  ac_cv_lib_dld_dld_link=yes
11965else
11966  ac_cv_lib_dld_dld_link=no
11967fi
11968rm -f core conftest.err conftest.$ac_objext \
11969    conftest$ac_exeext conftest.$ac_ext
11970LIBS=$ac_check_lib_save_LIBS
11971fi
11972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11973$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11974if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11975  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11976fi
11977
11978
11979fi
11980
11981
11982fi
11983
11984
11985fi
11986
11987
11988fi
11989
11990
11991fi
11992
11993    ;;
11994  esac
11995
11996  if test "x$lt_cv_dlopen" != xno; then
11997    enable_dlopen=yes
11998  else
11999    enable_dlopen=no
12000  fi
12001
12002  case $lt_cv_dlopen in
12003  dlopen)
12004    save_CPPFLAGS="$CPPFLAGS"
12005    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12006
12007    save_LDFLAGS="$LDFLAGS"
12008    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12009
12010    save_LIBS="$LIBS"
12011    LIBS="$lt_cv_dlopen_libs $LIBS"
12012
12013    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12014$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12015if ${lt_cv_dlopen_self+:} false; then :
12016  $as_echo_n "(cached) " >&6
12017else
12018  	  if test "$cross_compiling" = yes; then :
12019  lt_cv_dlopen_self=cross
12020else
12021  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12022  lt_status=$lt_dlunknown
12023  cat > conftest.$ac_ext <<_LT_EOF
12024#line $LINENO "configure"
12025#include "confdefs.h"
12026
12027#if HAVE_DLFCN_H
12028#include <dlfcn.h>
12029#endif
12030
12031#include <stdio.h>
12032
12033#ifdef RTLD_GLOBAL
12034#  define LT_DLGLOBAL		RTLD_GLOBAL
12035#else
12036#  ifdef DL_GLOBAL
12037#    define LT_DLGLOBAL		DL_GLOBAL
12038#  else
12039#    define LT_DLGLOBAL		0
12040#  endif
12041#endif
12042
12043/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12044   find out it does not work in some platform. */
12045#ifndef LT_DLLAZY_OR_NOW
12046#  ifdef RTLD_LAZY
12047#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12048#  else
12049#    ifdef DL_LAZY
12050#      define LT_DLLAZY_OR_NOW		DL_LAZY
12051#    else
12052#      ifdef RTLD_NOW
12053#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12054#      else
12055#        ifdef DL_NOW
12056#          define LT_DLLAZY_OR_NOW	DL_NOW
12057#        else
12058#          define LT_DLLAZY_OR_NOW	0
12059#        endif
12060#      endif
12061#    endif
12062#  endif
12063#endif
12064
12065/* When -fvisbility=hidden is used, assume the code has been annotated
12066   correspondingly for the symbols needed.  */
12067#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12068int fnord () __attribute__((visibility("default")));
12069#endif
12070
12071int fnord () { return 42; }
12072int main ()
12073{
12074  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12075  int status = $lt_dlunknown;
12076
12077  if (self)
12078    {
12079      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12080      else
12081        {
12082	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12083          else puts (dlerror ());
12084	}
12085      /* dlclose (self); */
12086    }
12087  else
12088    puts (dlerror ());
12089
12090  return status;
12091}
12092_LT_EOF
12093  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12094  (eval $ac_link) 2>&5
12095  ac_status=$?
12096  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12097  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12098    (./conftest; exit; ) >&5 2>/dev/null
12099    lt_status=$?
12100    case x$lt_status in
12101      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12102      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12103      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12104    esac
12105  else :
12106    # compilation failed
12107    lt_cv_dlopen_self=no
12108  fi
12109fi
12110rm -fr conftest*
12111
12112
12113fi
12114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12115$as_echo "$lt_cv_dlopen_self" >&6; }
12116
12117    if test "x$lt_cv_dlopen_self" = xyes; then
12118      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12119      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12120$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12121if ${lt_cv_dlopen_self_static+:} false; then :
12122  $as_echo_n "(cached) " >&6
12123else
12124  	  if test "$cross_compiling" = yes; then :
12125  lt_cv_dlopen_self_static=cross
12126else
12127  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12128  lt_status=$lt_dlunknown
12129  cat > conftest.$ac_ext <<_LT_EOF
12130#line $LINENO "configure"
12131#include "confdefs.h"
12132
12133#if HAVE_DLFCN_H
12134#include <dlfcn.h>
12135#endif
12136
12137#include <stdio.h>
12138
12139#ifdef RTLD_GLOBAL
12140#  define LT_DLGLOBAL		RTLD_GLOBAL
12141#else
12142#  ifdef DL_GLOBAL
12143#    define LT_DLGLOBAL		DL_GLOBAL
12144#  else
12145#    define LT_DLGLOBAL		0
12146#  endif
12147#endif
12148
12149/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12150   find out it does not work in some platform. */
12151#ifndef LT_DLLAZY_OR_NOW
12152#  ifdef RTLD_LAZY
12153#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12154#  else
12155#    ifdef DL_LAZY
12156#      define LT_DLLAZY_OR_NOW		DL_LAZY
12157#    else
12158#      ifdef RTLD_NOW
12159#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12160#      else
12161#        ifdef DL_NOW
12162#          define LT_DLLAZY_OR_NOW	DL_NOW
12163#        else
12164#          define LT_DLLAZY_OR_NOW	0
12165#        endif
12166#      endif
12167#    endif
12168#  endif
12169#endif
12170
12171/* When -fvisbility=hidden is used, assume the code has been annotated
12172   correspondingly for the symbols needed.  */
12173#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12174int fnord () __attribute__((visibility("default")));
12175#endif
12176
12177int fnord () { return 42; }
12178int main ()
12179{
12180  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12181  int status = $lt_dlunknown;
12182
12183  if (self)
12184    {
12185      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12186      else
12187        {
12188	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12189          else puts (dlerror ());
12190	}
12191      /* dlclose (self); */
12192    }
12193  else
12194    puts (dlerror ());
12195
12196  return status;
12197}
12198_LT_EOF
12199  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12200  (eval $ac_link) 2>&5
12201  ac_status=$?
12202  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12203  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12204    (./conftest; exit; ) >&5 2>/dev/null
12205    lt_status=$?
12206    case x$lt_status in
12207      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12208      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12209      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12210    esac
12211  else :
12212    # compilation failed
12213    lt_cv_dlopen_self_static=no
12214  fi
12215fi
12216rm -fr conftest*
12217
12218
12219fi
12220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12221$as_echo "$lt_cv_dlopen_self_static" >&6; }
12222    fi
12223
12224    CPPFLAGS="$save_CPPFLAGS"
12225    LDFLAGS="$save_LDFLAGS"
12226    LIBS="$save_LIBS"
12227    ;;
12228  esac
12229
12230  case $lt_cv_dlopen_self in
12231  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12232  *) enable_dlopen_self=unknown ;;
12233  esac
12234
12235  case $lt_cv_dlopen_self_static in
12236  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12237  *) enable_dlopen_self_static=unknown ;;
12238  esac
12239fi
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257striplib=
12258old_striplib=
12259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12260$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12261if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12262  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12263  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12265$as_echo "yes" >&6; }
12266else
12267# FIXME - insert some real tests, host_os isn't really good enough
12268  case $host_os in
12269  darwin*)
12270    if test -n "$STRIP" ; then
12271      striplib="$STRIP -x"
12272      old_striplib="$STRIP -S"
12273      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12274$as_echo "yes" >&6; }
12275    else
12276      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12277$as_echo "no" >&6; }
12278    fi
12279    ;;
12280  *)
12281    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12282$as_echo "no" >&6; }
12283    ;;
12284  esac
12285fi
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298  # Report which library types will actually be built
12299  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12300$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12302$as_echo "$can_build_shared" >&6; }
12303
12304  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12305$as_echo_n "checking whether to build shared libraries... " >&6; }
12306  test "$can_build_shared" = "no" && enable_shared=no
12307
12308  # On AIX, shared libraries and static libraries use the same namespace, and
12309  # are all built from PIC.
12310  case $host_os in
12311  aix3*)
12312    test "$enable_shared" = yes && enable_static=no
12313    if test -n "$RANLIB"; then
12314      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12315      postinstall_cmds='$RANLIB $lib'
12316    fi
12317    ;;
12318
12319  aix[4-9]*)
12320    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12321      test "$enable_shared" = yes && enable_static=no
12322    fi
12323    ;;
12324  esac
12325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12326$as_echo "$enable_shared" >&6; }
12327
12328  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12329$as_echo_n "checking whether to build static libraries... " >&6; }
12330  # Make sure either enable_shared or enable_static is yes.
12331  test "$enable_shared" = yes || enable_static=yes
12332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12333$as_echo "$enable_static" >&6; }
12334
12335
12336
12337
12338fi
12339ac_ext=c
12340ac_cpp='$CPP $CPPFLAGS'
12341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12343ac_compiler_gnu=$ac_cv_c_compiler_gnu
12344
12345CC="$lt_save_CC"
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361        ac_config_commands="$ac_config_commands libtool"
12362
12363
12364
12365
12366# Only expand once:
12367
12368
12369
12370CPPFLAGS="${CPPFLAGS} -D_REENTRANT -D__EXTENSIONS__"
12371
12372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12373$as_echo_n "checking for ANSI C header files... " >&6; }
12374if ${ac_cv_header_stdc+:} false; then :
12375  $as_echo_n "(cached) " >&6
12376else
12377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12378/* end confdefs.h.  */
12379#include <stdlib.h>
12380#include <stdarg.h>
12381#include <string.h>
12382#include <float.h>
12383
12384int
12385main ()
12386{
12387
12388  ;
12389  return 0;
12390}
12391_ACEOF
12392if ac_fn_c_try_compile "$LINENO"; then :
12393  ac_cv_header_stdc=yes
12394else
12395  ac_cv_header_stdc=no
12396fi
12397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12398
12399if test $ac_cv_header_stdc = yes; then
12400  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12402/* end confdefs.h.  */
12403#include <string.h>
12404
12405_ACEOF
12406if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12407  $EGREP "memchr" >/dev/null 2>&1; then :
12408
12409else
12410  ac_cv_header_stdc=no
12411fi
12412rm -f conftest*
12413
12414fi
12415
12416if test $ac_cv_header_stdc = yes; then
12417  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12419/* end confdefs.h.  */
12420#include <stdlib.h>
12421
12422_ACEOF
12423if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12424  $EGREP "free" >/dev/null 2>&1; then :
12425
12426else
12427  ac_cv_header_stdc=no
12428fi
12429rm -f conftest*
12430
12431fi
12432
12433if test $ac_cv_header_stdc = yes; then
12434  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12435  if test "$cross_compiling" = yes; then :
12436  :
12437else
12438  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12439/* end confdefs.h.  */
12440#include <ctype.h>
12441#include <stdlib.h>
12442#if ((' ' & 0x0FF) == 0x020)
12443# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12444# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12445#else
12446# define ISLOWER(c) \
12447		   (('a' <= (c) && (c) <= 'i') \
12448		     || ('j' <= (c) && (c) <= 'r') \
12449		     || ('s' <= (c) && (c) <= 'z'))
12450# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12451#endif
12452
12453#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12454int
12455main ()
12456{
12457  int i;
12458  for (i = 0; i < 256; i++)
12459    if (XOR (islower (i), ISLOWER (i))
12460	|| toupper (i) != TOUPPER (i))
12461      return 2;
12462  return 0;
12463}
12464_ACEOF
12465if ac_fn_c_try_run "$LINENO"; then :
12466
12467else
12468  ac_cv_header_stdc=no
12469fi
12470rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12471  conftest.$ac_objext conftest.beam conftest.$ac_ext
12472fi
12473
12474fi
12475fi
12476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12477$as_echo "$ac_cv_header_stdc" >&6; }
12478if test $ac_cv_header_stdc = yes; then
12479
12480$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12481
12482fi
12483
12484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12485$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12486if ${ac_cv_header_sys_wait_h+:} false; then :
12487  $as_echo_n "(cached) " >&6
12488else
12489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12490/* end confdefs.h.  */
12491#include <sys/types.h>
12492#include <sys/wait.h>
12493#ifndef WEXITSTATUS
12494# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12495#endif
12496#ifndef WIFEXITED
12497# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12498#endif
12499
12500int
12501main ()
12502{
12503  int s;
12504  wait (&s);
12505  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12506  ;
12507  return 0;
12508}
12509_ACEOF
12510if ac_fn_c_try_compile "$LINENO"; then :
12511  ac_cv_header_sys_wait_h=yes
12512else
12513  ac_cv_header_sys_wait_h=no
12514fi
12515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12516fi
12517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12518$as_echo "$ac_cv_header_sys_wait_h" >&6; }
12519if test $ac_cv_header_sys_wait_h = yes; then
12520
12521$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12522
12523fi
12524
12525for ac_header in arpa/inet.h fcntl.h netinet/in.h stdlib.h string.h \
12526sys/socket.h sys/time.h unistd.h sys/sendfile.h sys/uio.h \
12527getopt.h sys/epoll.h sys/select.h poll.h sys/poll.h sys/devpoll.h sys/filio.h \
12528sys/mman.h sys/event.h port.h pwd.h sys/syslimits.h \
12529sys/resource.h sys/un.h syslog.h sys/prctl.h uuid/uuid.h
12530do :
12531  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12532ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12533if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12534  cat >>confdefs.h <<_ACEOF
12535#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12536_ACEOF
12537
12538fi
12539
12540done
12541
12542
12543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12544$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12545if ${ac_cv_c_const+:} false; then :
12546  $as_echo_n "(cached) " >&6
12547else
12548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12549/* end confdefs.h.  */
12550
12551int
12552main ()
12553{
12554
12555#ifndef __cplusplus
12556  /* Ultrix mips cc rejects this sort of thing.  */
12557  typedef int charset[2];
12558  const charset cs = { 0, 0 };
12559  /* SunOS 4.1.1 cc rejects this.  */
12560  char const *const *pcpcc;
12561  char **ppc;
12562  /* NEC SVR4.0.2 mips cc rejects this.  */
12563  struct point {int x, y;};
12564  static struct point const zero = {0,0};
12565  /* AIX XL C 1.02.0.0 rejects this.
12566     It does not let you subtract one const X* pointer from another in
12567     an arm of an if-expression whose if-part is not a constant
12568     expression */
12569  const char *g = "string";
12570  pcpcc = &g + (g ? g-g : 0);
12571  /* HPUX 7.0 cc rejects these. */
12572  ++pcpcc;
12573  ppc = (char**) pcpcc;
12574  pcpcc = (char const *const *) ppc;
12575  { /* SCO 3.2v4 cc rejects this sort of thing.  */
12576    char tx;
12577    char *t = &tx;
12578    char const *s = 0 ? (char *) 0 : (char const *) 0;
12579
12580    *t++ = 0;
12581    if (s) return 0;
12582  }
12583  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12584    int x[] = {25, 17};
12585    const int *foo = &x[0];
12586    ++foo;
12587  }
12588  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12589    typedef const int *iptr;
12590    iptr p = 0;
12591    ++p;
12592  }
12593  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12594       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12595    struct s { int j; const int *ap[3]; } bx;
12596    struct s *b = &bx; b->j = 5;
12597  }
12598  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12599    const int foo = 10;
12600    if (!foo) return 0;
12601  }
12602  return !cs[0] && !zero.x;
12603#endif
12604
12605  ;
12606  return 0;
12607}
12608_ACEOF
12609if ac_fn_c_try_compile "$LINENO"; then :
12610  ac_cv_c_const=yes
12611else
12612  ac_cv_c_const=no
12613fi
12614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12615fi
12616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12617$as_echo "$ac_cv_c_const" >&6; }
12618if test $ac_cv_c_const = no; then
12619
12620$as_echo "#define const /**/" >>confdefs.h
12621
12622fi
12623
12624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12625$as_echo_n "checking for inline... " >&6; }
12626if ${ac_cv_c_inline+:} false; then :
12627  $as_echo_n "(cached) " >&6
12628else
12629  ac_cv_c_inline=no
12630for ac_kw in inline __inline__ __inline; do
12631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12632/* end confdefs.h.  */
12633#ifndef __cplusplus
12634typedef int foo_t;
12635static $ac_kw foo_t static_foo () {return 0; }
12636$ac_kw foo_t foo () {return 0; }
12637#endif
12638
12639_ACEOF
12640if ac_fn_c_try_compile "$LINENO"; then :
12641  ac_cv_c_inline=$ac_kw
12642fi
12643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12644  test "$ac_cv_c_inline" != no && break
12645done
12646
12647fi
12648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12649$as_echo "$ac_cv_c_inline" >&6; }
12650
12651case $ac_cv_c_inline in
12652  inline | yes) ;;
12653  *)
12654    case $ac_cv_c_inline in
12655      no) ac_val=;;
12656      *) ac_val=$ac_cv_c_inline;;
12657    esac
12658    cat >>confdefs.h <<_ACEOF
12659#ifndef __cplusplus
12660#define inline $ac_val
12661#endif
12662_ACEOF
12663    ;;
12664esac
12665
12666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
12667$as_echo_n "checking whether char is unsigned... " >&6; }
12668if ${ac_cv_c_char_unsigned+:} false; then :
12669  $as_echo_n "(cached) " >&6
12670else
12671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12672/* end confdefs.h.  */
12673$ac_includes_default
12674int
12675main ()
12676{
12677static int test_array [1 - 2 * !(((char) -1) < 0)];
12678test_array [0] = 0;
12679return test_array [0];
12680
12681  ;
12682  return 0;
12683}
12684_ACEOF
12685if ac_fn_c_try_compile "$LINENO"; then :
12686  ac_cv_c_char_unsigned=no
12687else
12688  ac_cv_c_char_unsigned=yes
12689fi
12690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12691fi
12692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
12693$as_echo "$ac_cv_c_char_unsigned" >&6; }
12694if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
12695  $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
12696
12697fi
12698
12699ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12700if test "x$ac_cv_type_off_t" = xyes; then :
12701
12702else
12703
12704cat >>confdefs.h <<_ACEOF
12705#define off_t long int
12706_ACEOF
12707
12708fi
12709
12710ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12711if test "x$ac_cv_type_pid_t" = xyes; then :
12712
12713else
12714
12715cat >>confdefs.h <<_ACEOF
12716#define pid_t int
12717_ACEOF
12718
12719fi
12720
12721ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12722if test "x$ac_cv_type_size_t" = xyes; then :
12723
12724else
12725
12726cat >>confdefs.h <<_ACEOF
12727#define size_t unsigned int
12728_ACEOF
12729
12730fi
12731
12732
12733ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
12734"
12735if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
12736
12737$as_echo "#define HAVE_STRUCT_TM_GMTOFF 1" >>confdefs.h
12738
12739fi
12740
12741ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/socket.h>
12742"
12743if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
12744
12745cat >>confdefs.h <<_ACEOF
12746#define HAVE_STRUCT_SOCKADDR_STORAGE 1
12747_ACEOF
12748
12749
12750fi
12751
12752ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12753#include <sys/socket.h>
12754"
12755if test "x$ac_cv_type_socklen_t" = xyes; then :
12756
12757cat >>confdefs.h <<_ACEOF
12758#define HAVE_SOCKLEN_T 1
12759_ACEOF
12760
12761
12762fi
12763
12764
12765for ac_header in vfork.h
12766do :
12767  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12768if test "x$ac_cv_header_vfork_h" = xyes; then :
12769  cat >>confdefs.h <<_ACEOF
12770#define HAVE_VFORK_H 1
12771_ACEOF
12772
12773fi
12774
12775done
12776
12777for ac_func in fork vfork
12778do :
12779  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12780ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12781if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12782  cat >>confdefs.h <<_ACEOF
12783#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12784_ACEOF
12785
12786fi
12787done
12788
12789if test "x$ac_cv_func_fork" = xyes; then
12790  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12791$as_echo_n "checking for working fork... " >&6; }
12792if ${ac_cv_func_fork_works+:} false; then :
12793  $as_echo_n "(cached) " >&6
12794else
12795  if test "$cross_compiling" = yes; then :
12796  ac_cv_func_fork_works=cross
12797else
12798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12799/* end confdefs.h.  */
12800$ac_includes_default
12801int
12802main ()
12803{
12804
12805	  /* By Ruediger Kuhlmann. */
12806	  return fork () < 0;
12807
12808  ;
12809  return 0;
12810}
12811_ACEOF
12812if ac_fn_c_try_run "$LINENO"; then :
12813  ac_cv_func_fork_works=yes
12814else
12815  ac_cv_func_fork_works=no
12816fi
12817rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12818  conftest.$ac_objext conftest.beam conftest.$ac_ext
12819fi
12820
12821fi
12822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12823$as_echo "$ac_cv_func_fork_works" >&6; }
12824
12825else
12826  ac_cv_func_fork_works=$ac_cv_func_fork
12827fi
12828if test "x$ac_cv_func_fork_works" = xcross; then
12829  case $host in
12830    *-*-amigaos* | *-*-msdosdjgpp*)
12831      # Override, as these systems have only a dummy fork() stub
12832      ac_cv_func_fork_works=no
12833      ;;
12834    *)
12835      ac_cv_func_fork_works=yes
12836      ;;
12837  esac
12838  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12839$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12840fi
12841ac_cv_func_vfork_works=$ac_cv_func_vfork
12842if test "x$ac_cv_func_vfork" = xyes; then
12843  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12844$as_echo_n "checking for working vfork... " >&6; }
12845if ${ac_cv_func_vfork_works+:} false; then :
12846  $as_echo_n "(cached) " >&6
12847else
12848  if test "$cross_compiling" = yes; then :
12849  ac_cv_func_vfork_works=cross
12850else
12851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12852/* end confdefs.h.  */
12853/* Thanks to Paul Eggert for this test.  */
12854$ac_includes_default
12855#include <sys/wait.h>
12856#ifdef HAVE_VFORK_H
12857# include <vfork.h>
12858#endif
12859/* On some sparc systems, changes by the child to local and incoming
12860   argument registers are propagated back to the parent.  The compiler
12861   is told about this with #include <vfork.h>, but some compilers
12862   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
12863   static variable whose address is put into a register that is
12864   clobbered by the vfork.  */
12865static void
12866#ifdef __cplusplus
12867sparc_address_test (int arg)
12868# else
12869sparc_address_test (arg) int arg;
12870#endif
12871{
12872  static pid_t child;
12873  if (!child) {
12874    child = vfork ();
12875    if (child < 0) {
12876      perror ("vfork");
12877      _exit(2);
12878    }
12879    if (!child) {
12880      arg = getpid();
12881      write(-1, "", 0);
12882      _exit (arg);
12883    }
12884  }
12885}
12886
12887int
12888main ()
12889{
12890  pid_t parent = getpid ();
12891  pid_t child;
12892
12893  sparc_address_test (0);
12894
12895  child = vfork ();
12896
12897  if (child == 0) {
12898    /* Here is another test for sparc vfork register problems.  This
12899       test uses lots of local variables, at least as many local
12900       variables as main has allocated so far including compiler
12901       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
12902       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
12903       reuse the register of parent for one of the local variables,
12904       since it will think that parent can't possibly be used any more
12905       in this routine.  Assigning to the local variable will thus
12906       munge parent in the parent process.  */
12907    pid_t
12908      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12909      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12910    /* Convince the compiler that p..p7 are live; otherwise, it might
12911       use the same hardware register for all 8 local variables.  */
12912    if (p != p1 || p != p2 || p != p3 || p != p4
12913	|| p != p5 || p != p6 || p != p7)
12914      _exit(1);
12915
12916    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12917       from child file descriptors.  If the child closes a descriptor
12918       before it execs or exits, this munges the parent's descriptor
12919       as well.  Test for this by closing stdout in the child.  */
12920    _exit(close(fileno(stdout)) != 0);
12921  } else {
12922    int status;
12923    struct stat st;
12924
12925    while (wait(&status) != child)
12926      ;
12927    return (
12928	 /* Was there some problem with vforking?  */
12929	 child < 0
12930
12931	 /* Did the child fail?  (This shouldn't happen.)  */
12932	 || status
12933
12934	 /* Did the vfork/compiler bug occur?  */
12935	 || parent != getpid()
12936
12937	 /* Did the file descriptor bug occur?  */
12938	 || fstat(fileno(stdout), &st) != 0
12939	 );
12940  }
12941}
12942_ACEOF
12943if ac_fn_c_try_run "$LINENO"; then :
12944  ac_cv_func_vfork_works=yes
12945else
12946  ac_cv_func_vfork_works=no
12947fi
12948rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12949  conftest.$ac_objext conftest.beam conftest.$ac_ext
12950fi
12951
12952fi
12953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12954$as_echo "$ac_cv_func_vfork_works" >&6; }
12955
12956fi;
12957if test "x$ac_cv_func_fork_works" = xcross; then
12958  ac_cv_func_vfork_works=$ac_cv_func_vfork
12959  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12960$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12961fi
12962
12963if test "x$ac_cv_func_vfork_works" = xyes; then
12964
12965$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12966
12967else
12968
12969$as_echo "#define vfork fork" >>confdefs.h
12970
12971fi
12972if test "x$ac_cv_func_fork_works" = xyes; then
12973
12974$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12975
12976fi
12977
12978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
12979$as_echo_n "checking return type of signal handlers... " >&6; }
12980if ${ac_cv_type_signal+:} false; then :
12981  $as_echo_n "(cached) " >&6
12982else
12983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12984/* end confdefs.h.  */
12985#include <sys/types.h>
12986#include <signal.h>
12987
12988int
12989main ()
12990{
12991return *(signal (0, 0)) (0) == 1;
12992  ;
12993  return 0;
12994}
12995_ACEOF
12996if ac_fn_c_try_compile "$LINENO"; then :
12997  ac_cv_type_signal=int
12998else
12999  ac_cv_type_signal=void
13000fi
13001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13002fi
13003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13004$as_echo "$ac_cv_type_signal" >&6; }
13005
13006cat >>confdefs.h <<_ACEOF
13007#define RETSIGTYPE $ac_cv_type_signal
13008_ACEOF
13009
13010
13011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
13012$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
13013if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
13014  $as_echo_n "(cached) " >&6
13015else
13016  rm -f conftest.sym conftest.file
13017echo >conftest.file
13018if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
13019  if test "$cross_compiling" = yes; then :
13020  ac_cv_func_lstat_dereferences_slashed_symlink=no
13021else
13022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13023/* end confdefs.h.  */
13024$ac_includes_default
13025int
13026main ()
13027{
13028struct stat sbuf;
13029     /* Linux will dereference the symlink and fail, as required by POSIX.
13030	That is better in the sense that it means we will not
13031	have to compile and use the lstat wrapper.  */
13032     return lstat ("conftest.sym/", &sbuf) == 0;
13033  ;
13034  return 0;
13035}
13036_ACEOF
13037if ac_fn_c_try_run "$LINENO"; then :
13038  ac_cv_func_lstat_dereferences_slashed_symlink=yes
13039else
13040  ac_cv_func_lstat_dereferences_slashed_symlink=no
13041fi
13042rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13043  conftest.$ac_objext conftest.beam conftest.$ac_ext
13044fi
13045
13046else
13047  # If the `ln -s' command failed, then we probably don't even
13048  # have an lstat function.
13049  ac_cv_func_lstat_dereferences_slashed_symlink=no
13050fi
13051rm -f conftest.sym conftest.file
13052
13053fi
13054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13055$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13056
13057test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13058
13059cat >>confdefs.h <<_ACEOF
13060#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13061_ACEOF
13062
13063
13064if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
13065  case " $LIBOBJS " in
13066  *" lstat.$ac_objext "* ) ;;
13067  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
13068 ;;
13069esac
13070
13071fi
13072
13073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
13074$as_echo_n "checking whether stat accepts an empty string... " >&6; }
13075if ${ac_cv_func_stat_empty_string_bug+:} false; then :
13076  $as_echo_n "(cached) " >&6
13077else
13078  if test "$cross_compiling" = yes; then :
13079  ac_cv_func_stat_empty_string_bug=yes
13080else
13081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13082/* end confdefs.h.  */
13083$ac_includes_default
13084int
13085main ()
13086{
13087struct stat sbuf;
13088  return stat ("", &sbuf) == 0;
13089  ;
13090  return 0;
13091}
13092_ACEOF
13093if ac_fn_c_try_run "$LINENO"; then :
13094  ac_cv_func_stat_empty_string_bug=no
13095else
13096  ac_cv_func_stat_empty_string_bug=yes
13097fi
13098rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13099  conftest.$ac_objext conftest.beam conftest.$ac_ext
13100fi
13101
13102fi
13103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
13104$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
13105if test $ac_cv_func_stat_empty_string_bug = yes; then
13106  case " $LIBOBJS " in
13107  *" stat.$ac_objext "* ) ;;
13108  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
13109 ;;
13110esac
13111
13112
13113cat >>confdefs.h <<_ACEOF
13114#define HAVE_STAT_EMPTY_STRING_BUG 1
13115_ACEOF
13116
13117fi
13118
13119for ac_func in strftime
13120do :
13121  ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
13122if test "x$ac_cv_func_strftime" = xyes; then :
13123  cat >>confdefs.h <<_ACEOF
13124#define HAVE_STRFTIME 1
13125_ACEOF
13126
13127else
13128  # strftime is in -lintl on SCO UNIX.
13129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
13130$as_echo_n "checking for strftime in -lintl... " >&6; }
13131if ${ac_cv_lib_intl_strftime+:} false; then :
13132  $as_echo_n "(cached) " >&6
13133else
13134  ac_check_lib_save_LIBS=$LIBS
13135LIBS="-lintl  $LIBS"
13136cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13137/* end confdefs.h.  */
13138
13139/* Override any GCC internal prototype to avoid an error.
13140   Use char because int might match the return type of a GCC
13141   builtin and then its argument prototype would still apply.  */
13142#ifdef __cplusplus
13143extern "C"
13144#endif
13145char strftime ();
13146int
13147main ()
13148{
13149return strftime ();
13150  ;
13151  return 0;
13152}
13153_ACEOF
13154if ac_fn_c_try_link "$LINENO"; then :
13155  ac_cv_lib_intl_strftime=yes
13156else
13157  ac_cv_lib_intl_strftime=no
13158fi
13159rm -f core conftest.err conftest.$ac_objext \
13160    conftest$ac_exeext conftest.$ac_ext
13161LIBS=$ac_check_lib_save_LIBS
13162fi
13163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
13164$as_echo "$ac_cv_lib_intl_strftime" >&6; }
13165if test "x$ac_cv_lib_intl_strftime" = xyes; then :
13166  $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
13167
13168LIBS="-lintl $LIBS"
13169fi
13170
13171fi
13172done
13173
13174for ac_func in issetugid inet_pton
13175do :
13176  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13177ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13178if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13179  cat >>confdefs.h <<_ACEOF
13180#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13181_ACEOF
13182
13183fi
13184done
13185
13186
13187if test -z "$PKG_CONFIG"; then
13188  # Extract the first word of "pkg-config", so it can be a program name with args.
13189set dummy pkg-config; ac_word=$2
13190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13191$as_echo_n "checking for $ac_word... " >&6; }
13192if ${ac_cv_path_PKG_CONFIG+:} false; then :
13193  $as_echo_n "(cached) " >&6
13194else
13195  case $PKG_CONFIG in
13196  [\\/]* | ?:[\\/]*)
13197  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13198  ;;
13199  *)
13200  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13201for as_dir in $PATH
13202do
13203  IFS=$as_save_IFS
13204  test -z "$as_dir" && as_dir=.
13205    for ac_exec_ext in '' $ac_executable_extensions; do
13206  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13207    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13208    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13209    break 2
13210  fi
13211done
13212  done
13213IFS=$as_save_IFS
13214
13215  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13216  ;;
13217esac
13218fi
13219PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13220if test -n "$PKG_CONFIG"; then
13221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13222$as_echo "$PKG_CONFIG" >&6; }
13223else
13224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13225$as_echo "no" >&6; }
13226fi
13227
13228
13229fi
13230
13231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libev support" >&5
13232$as_echo_n "checking for libev support... " >&6; }
13233
13234# Check whether --with-libev was given.
13235if test "${with_libev+set}" = set; then :
13236  withval=$with_libev; WITH_LIBEV=$withval
13237else
13238  WITH_LIBEV=no
13239fi
13240
13241
13242LIBEV_CFLAGS=""
13243LIBEV_LIBS=""
13244
13245if test "$WITH_LIBEV" != "no"; then
13246
13247
13248
13249
13250
13251
13252
13253if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13254	if test -n "$ac_tool_prefix"; then
13255  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13256set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13258$as_echo_n "checking for $ac_word... " >&6; }
13259if ${ac_cv_path_PKG_CONFIG+:} false; then :
13260  $as_echo_n "(cached) " >&6
13261else
13262  case $PKG_CONFIG in
13263  [\\/]* | ?:[\\/]*)
13264  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13265  ;;
13266  *)
13267  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13268for as_dir in $PATH
13269do
13270  IFS=$as_save_IFS
13271  test -z "$as_dir" && as_dir=.
13272    for ac_exec_ext in '' $ac_executable_extensions; do
13273  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13274    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13275    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13276    break 2
13277  fi
13278done
13279  done
13280IFS=$as_save_IFS
13281
13282  ;;
13283esac
13284fi
13285PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13286if test -n "$PKG_CONFIG"; then
13287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13288$as_echo "$PKG_CONFIG" >&6; }
13289else
13290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13291$as_echo "no" >&6; }
13292fi
13293
13294
13295fi
13296if test -z "$ac_cv_path_PKG_CONFIG"; then
13297  ac_pt_PKG_CONFIG=$PKG_CONFIG
13298  # Extract the first word of "pkg-config", so it can be a program name with args.
13299set dummy pkg-config; ac_word=$2
13300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13301$as_echo_n "checking for $ac_word... " >&6; }
13302if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13303  $as_echo_n "(cached) " >&6
13304else
13305  case $ac_pt_PKG_CONFIG in
13306  [\\/]* | ?:[\\/]*)
13307  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13308  ;;
13309  *)
13310  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13311for as_dir in $PATH
13312do
13313  IFS=$as_save_IFS
13314  test -z "$as_dir" && as_dir=.
13315    for ac_exec_ext in '' $ac_executable_extensions; do
13316  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13317    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13318    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13319    break 2
13320  fi
13321done
13322  done
13323IFS=$as_save_IFS
13324
13325  ;;
13326esac
13327fi
13328ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13329if test -n "$ac_pt_PKG_CONFIG"; then
13330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13331$as_echo "$ac_pt_PKG_CONFIG" >&6; }
13332else
13333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13334$as_echo "no" >&6; }
13335fi
13336
13337  if test "x$ac_pt_PKG_CONFIG" = x; then
13338    PKG_CONFIG=""
13339  else
13340    case $cross_compiling:$ac_tool_warned in
13341yes:)
13342{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13343$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13344ac_tool_warned=yes ;;
13345esac
13346    PKG_CONFIG=$ac_pt_PKG_CONFIG
13347  fi
13348else
13349  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13350fi
13351
13352fi
13353if test -n "$PKG_CONFIG"; then
13354	_pkg_min_version=0.9.0
13355	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13356$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13357	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13358		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13359$as_echo "yes" >&6; }
13360	else
13361		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13362$as_echo "no" >&6; }
13363		PKG_CONFIG=""
13364	fi
13365fi
13366
13367pkg_failed=no
13368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBEV" >&5
13369$as_echo_n "checking for LIBEV... " >&6; }
13370
13371if test -n "$LIBEV_CFLAGS"; then
13372    pkg_cv_LIBEV_CFLAGS="$LIBEV_CFLAGS"
13373 elif test -n "$PKG_CONFIG"; then
13374    if test -n "$PKG_CONFIG" && \
13375    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libev\""; } >&5
13376  ($PKG_CONFIG --exists --print-errors "libev") 2>&5
13377  ac_status=$?
13378  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13379  test $ac_status = 0; }; then
13380  pkg_cv_LIBEV_CFLAGS=`$PKG_CONFIG --cflags "libev" 2>/dev/null`
13381		      test "x$?" != "x0" && pkg_failed=yes
13382else
13383  pkg_failed=yes
13384fi
13385 else
13386    pkg_failed=untried
13387fi
13388if test -n "$LIBEV_LIBS"; then
13389    pkg_cv_LIBEV_LIBS="$LIBEV_LIBS"
13390 elif test -n "$PKG_CONFIG"; then
13391    if test -n "$PKG_CONFIG" && \
13392    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libev\""; } >&5
13393  ($PKG_CONFIG --exists --print-errors "libev") 2>&5
13394  ac_status=$?
13395  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13396  test $ac_status = 0; }; then
13397  pkg_cv_LIBEV_LIBS=`$PKG_CONFIG --libs "libev" 2>/dev/null`
13398		      test "x$?" != "x0" && pkg_failed=yes
13399else
13400  pkg_failed=yes
13401fi
13402 else
13403    pkg_failed=untried
13404fi
13405
13406
13407
13408if test $pkg_failed = yes; then
13409   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13410$as_echo "no" >&6; }
13411
13412if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13413        _pkg_short_errors_supported=yes
13414else
13415        _pkg_short_errors_supported=no
13416fi
13417        if test $_pkg_short_errors_supported = yes; then
13418	        LIBEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libev" 2>&1`
13419        else
13420	        LIBEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libev" 2>&1`
13421        fi
13422	# Put the nasty error message in config.log where it belongs
13423	echo "$LIBEV_PKG_ERRORS" >&5
13424
13425
13426
13427		if test "$WITH_LIBEV" != "yes"; then
13428			LIBEV_CFLAGS="-I$WITH_LIBEV/include"
13429			LIBEV_LIBS="-L$WITH_LIBEV/lib -lev"
13430		else
13431			for ac_header in ev.h
13432do :
13433  ac_fn_c_check_header_mongrel "$LINENO" "ev.h" "ac_cv_header_ev_h" "$ac_includes_default"
13434if test "x$ac_cv_header_ev_h" = xyes; then :
13435  cat >>confdefs.h <<_ACEOF
13436#define HAVE_EV_H 1
13437_ACEOF
13438
13439				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ev_time in -lev" >&5
13440$as_echo_n "checking for ev_time in -lev... " >&6; }
13441if ${ac_cv_lib_ev_ev_time+:} false; then :
13442  $as_echo_n "(cached) " >&6
13443else
13444  ac_check_lib_save_LIBS=$LIBS
13445LIBS="-lev  $LIBS"
13446cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13447/* end confdefs.h.  */
13448
13449/* Override any GCC internal prototype to avoid an error.
13450   Use char because int might match the return type of a GCC
13451   builtin and then its argument prototype would still apply.  */
13452#ifdef __cplusplus
13453extern "C"
13454#endif
13455char ev_time ();
13456int
13457main ()
13458{
13459return ev_time ();
13460  ;
13461  return 0;
13462}
13463_ACEOF
13464if ac_fn_c_try_link "$LINENO"; then :
13465  ac_cv_lib_ev_ev_time=yes
13466else
13467  ac_cv_lib_ev_ev_time=no
13468fi
13469rm -f core conftest.err conftest.$ac_objext \
13470    conftest$ac_exeext conftest.$ac_ext
13471LIBS=$ac_check_lib_save_LIBS
13472fi
13473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ev_ev_time" >&5
13474$as_echo "$ac_cv_lib_ev_ev_time" >&6; }
13475if test "x$ac_cv_lib_ev_ev_time" = xyes; then :
13476
13477						LIBEV_CFLAGS=""
13478						LIBEV_LIBS="-lev"
13479
13480else
13481
13482					as_fn_error $? "libev not found" "$LINENO" 5
13483
13484
13485fi
13486
13487else
13488
13489					as_fn_error $? "libev not found" "$LINENO" 5
13490
13491
13492fi
13493
13494done
13495
13496		fi
13497
13498elif test $pkg_failed = untried; then
13499     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13500$as_echo "no" >&6; }
13501
13502
13503		if test "$WITH_LIBEV" != "yes"; then
13504			LIBEV_CFLAGS="-I$WITH_LIBEV/include"
13505			LIBEV_LIBS="-L$WITH_LIBEV/lib -lev"
13506		else
13507			for ac_header in ev.h
13508do :
13509  ac_fn_c_check_header_mongrel "$LINENO" "ev.h" "ac_cv_header_ev_h" "$ac_includes_default"
13510if test "x$ac_cv_header_ev_h" = xyes; then :
13511  cat >>confdefs.h <<_ACEOF
13512#define HAVE_EV_H 1
13513_ACEOF
13514
13515				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ev_time in -lev" >&5
13516$as_echo_n "checking for ev_time in -lev... " >&6; }
13517if ${ac_cv_lib_ev_ev_time+:} false; then :
13518  $as_echo_n "(cached) " >&6
13519else
13520  ac_check_lib_save_LIBS=$LIBS
13521LIBS="-lev  $LIBS"
13522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13523/* end confdefs.h.  */
13524
13525/* Override any GCC internal prototype to avoid an error.
13526   Use char because int might match the return type of a GCC
13527   builtin and then its argument prototype would still apply.  */
13528#ifdef __cplusplus
13529extern "C"
13530#endif
13531char ev_time ();
13532int
13533main ()
13534{
13535return ev_time ();
13536  ;
13537  return 0;
13538}
13539_ACEOF
13540if ac_fn_c_try_link "$LINENO"; then :
13541  ac_cv_lib_ev_ev_time=yes
13542else
13543  ac_cv_lib_ev_ev_time=no
13544fi
13545rm -f core conftest.err conftest.$ac_objext \
13546    conftest$ac_exeext conftest.$ac_ext
13547LIBS=$ac_check_lib_save_LIBS
13548fi
13549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ev_ev_time" >&5
13550$as_echo "$ac_cv_lib_ev_ev_time" >&6; }
13551if test "x$ac_cv_lib_ev_ev_time" = xyes; then :
13552
13553						LIBEV_CFLAGS=""
13554						LIBEV_LIBS="-lev"
13555
13556else
13557
13558					as_fn_error $? "libev not found" "$LINENO" 5
13559
13560
13561fi
13562
13563else
13564
13565					as_fn_error $? "libev not found" "$LINENO" 5
13566
13567
13568fi
13569
13570done
13571
13572		fi
13573
13574else
13575	LIBEV_CFLAGS=$pkg_cv_LIBEV_CFLAGS
13576	LIBEV_LIBS=$pkg_cv_LIBEV_LIBS
13577        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13578$as_echo "yes" >&6; }
13579
13580fi
13581
13582
13583$as_echo "#define HAVE_LIBEV 1" >>confdefs.h
13584
13585fi
13586
13587
13588
13589
13590MYSQL_INCLUDE=""
13591MYSQL_LIBS=""
13592
13593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
13594$as_echo_n "checking for MySQL support... " >&6; }
13595
13596# Check whether --with-mysql was given.
13597if test "${with_mysql+set}" = set; then :
13598  withval=$with_mysql; WITH_MYSQL=$withval
13599else
13600  WITH_MYSQL=no
13601fi
13602
13603
13604if test "$WITH_MYSQL" != "no"; then
13605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13606$as_echo "yes" >&6; }
13607  if test "$WITH_MYSQL" = "yes"; then
13608    # Extract the first word of "mysql_config", so it can be a program name with args.
13609set dummy mysql_config; ac_word=$2
13610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13611$as_echo_n "checking for $ac_word... " >&6; }
13612if ${ac_cv_path_MYSQL_CONFIG+:} false; then :
13613  $as_echo_n "(cached) " >&6
13614else
13615  case $MYSQL_CONFIG in
13616  [\\/]* | ?:[\\/]*)
13617  ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
13618  ;;
13619  *)
13620  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13621for as_dir in $PATH
13622do
13623  IFS=$as_save_IFS
13624  test -z "$as_dir" && as_dir=.
13625    for ac_exec_ext in '' $ac_executable_extensions; do
13626  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13627    ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13628    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13629    break 2
13630  fi
13631done
13632  done
13633IFS=$as_save_IFS
13634
13635  ;;
13636esac
13637fi
13638MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
13639if test -n "$MYSQL_CONFIG"; then
13640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
13641$as_echo "$MYSQL_CONFIG" >&6; }
13642else
13643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13644$as_echo "no" >&6; }
13645fi
13646
13647
13648  else
13649    MYSQL_CONFIG=$WITH_MYSQL
13650  fi
13651
13652  if test "$MYSQL_CONFIG" = ""; then
13653    as_fn_error $? "mysql_config is not found" "$LINENO" 5
13654  fi
13655  if test \! -x $MYSQL_CONFIG; then
13656    as_fn_error use --with-mysql=path-to-mysql_config "mysql_config not exists or not executable" "$LINENO" 5
13657  fi
13658
13659  if $MYSQL_CONFIG | grep -- '--include' > /dev/null ; then
13660    MYSQL_INCLUDE="`$MYSQL_CONFIG --include | sed s/\'//g`"
13661  else
13662    MYSQL_INCLUDE="`$MYSQL_CONFIG --cflags | sed s/\'//g`"
13663  fi
13664  MYSQL_LIBS="`$MYSQL_CONFIG --libs | sed s/\'//g`"
13665
13666  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL includes at" >&5
13667$as_echo_n "checking for MySQL includes at... " >&6; }
13668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_INCLUDE" >&5
13669$as_echo "$MYSQL_INCLUDE" >&6; }
13670
13671  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL libraries at" >&5
13672$as_echo_n "checking for MySQL libraries at... " >&6; }
13673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_LIBS" >&5
13674$as_echo "$MYSQL_LIBS" >&6; }
13675  old_CPPFLAGS="$CPPFLAGS"
13676  CPPFLAGS="$CPPFLAGS $MYSQL_INCLUDE"
13677  for ac_header in errmsg.h mysql.h
13678do :
13679  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13680ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13681if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13682  cat >>confdefs.h <<_ACEOF
13683#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13684_ACEOF
13685
13686fi
13687
13688done
13689
13690  CPPFLAGS="$old_CPPFLAGS"
13691
13692
13693$as_echo "#define HAVE_MYSQL 1" >>confdefs.h
13694
13695else
13696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13697$as_echo "no" >&6; }
13698fi
13699
13700
13701
13702
13703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP support" >&5
13704$as_echo_n "checking for LDAP support... " >&6; }
13705
13706# Check whether --with-ldap was given.
13707if test "${with_ldap+set}" = set; then :
13708  withval=$with_ldap; WITH_LDAP=$withval
13709else
13710  WITH_LDAP=no
13711fi
13712
13713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
13714$as_echo "$withval" >&6; }
13715if test "$WITH_LDAP" != "no"; then
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap" >&5
13717$as_echo_n "checking for ldap_bind in -lldap... " >&6; }
13718if ${ac_cv_lib_ldap_ldap_bind+:} false; then :
13719  $as_echo_n "(cached) " >&6
13720else
13721  ac_check_lib_save_LIBS=$LIBS
13722LIBS="-lldap  $LIBS"
13723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13724/* end confdefs.h.  */
13725
13726/* Override any GCC internal prototype to avoid an error.
13727   Use char because int might match the return type of a GCC
13728   builtin and then its argument prototype would still apply.  */
13729#ifdef __cplusplus
13730extern "C"
13731#endif
13732char ldap_bind ();
13733int
13734main ()
13735{
13736return ldap_bind ();
13737  ;
13738  return 0;
13739}
13740_ACEOF
13741if ac_fn_c_try_link "$LINENO"; then :
13742  ac_cv_lib_ldap_ldap_bind=yes
13743else
13744  ac_cv_lib_ldap_ldap_bind=no
13745fi
13746rm -f core conftest.err conftest.$ac_objext \
13747    conftest$ac_exeext conftest.$ac_ext
13748LIBS=$ac_check_lib_save_LIBS
13749fi
13750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_bind" >&5
13751$as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
13752if test "x$ac_cv_lib_ldap_ldap_bind" = xyes; then :
13753
13754  for ac_header in ldap.h
13755do :
13756  ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
13757if test "x$ac_cv_header_ldap_h" = xyes; then :
13758  cat >>confdefs.h <<_ACEOF
13759#define HAVE_LDAP_H 1
13760_ACEOF
13761
13762    LDAP_LIB=-lldap
13763
13764$as_echo "#define HAVE_LIBLDAP 1" >>confdefs.h
13765
13766    $as_echo "#define HAVE_LDAP_H 1" >>confdefs.h
13767
13768
13769$as_echo "#define LDAP_DEPRECATED 1" >>confdefs.h
13770
13771
13772fi
13773
13774done
13775
13776
13777fi
13778
13779
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_printf in -llber" >&5
13781$as_echo_n "checking for ber_printf in -llber... " >&6; }
13782if ${ac_cv_lib_lber_ber_printf+:} false; then :
13783  $as_echo_n "(cached) " >&6
13784else
13785  ac_check_lib_save_LIBS=$LIBS
13786LIBS="-llber  $LIBS"
13787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13788/* end confdefs.h.  */
13789
13790/* Override any GCC internal prototype to avoid an error.
13791   Use char because int might match the return type of a GCC
13792   builtin and then its argument prototype would still apply.  */
13793#ifdef __cplusplus
13794extern "C"
13795#endif
13796char ber_printf ();
13797int
13798main ()
13799{
13800return ber_printf ();
13801  ;
13802  return 0;
13803}
13804_ACEOF
13805if ac_fn_c_try_link "$LINENO"; then :
13806  ac_cv_lib_lber_ber_printf=yes
13807else
13808  ac_cv_lib_lber_ber_printf=no
13809fi
13810rm -f core conftest.err conftest.$ac_objext \
13811    conftest$ac_exeext conftest.$ac_ext
13812LIBS=$ac_check_lib_save_LIBS
13813fi
13814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_printf" >&5
13815$as_echo "$ac_cv_lib_lber_ber_printf" >&6; }
13816if test "x$ac_cv_lib_lber_ber_printf" = xyes; then :
13817
13818  for ac_header in lber.h
13819do :
13820  ac_fn_c_check_header_mongrel "$LINENO" "lber.h" "ac_cv_header_lber_h" "$ac_includes_default"
13821if test "x$ac_cv_header_lber_h" = xyes; then :
13822  cat >>confdefs.h <<_ACEOF
13823#define HAVE_LBER_H 1
13824_ACEOF
13825
13826    LBER_LIB=-llber
13827
13828$as_echo "#define HAVE_LIBLBER 1" >>confdefs.h
13829
13830    $as_echo "#define HAVE_LBER_H 1" >>confdefs.h
13831
13832
13833fi
13834
13835done
13836
13837
13838fi
13839
13840
13841fi
13842
13843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended attributes support" >&5
13844$as_echo_n "checking for extended attributes support... " >&6; }
13845
13846# Check whether --with-attr was given.
13847if test "${with_attr+set}" = set; then :
13848  withval=$with_attr; WITH_ATTR=$withval
13849else
13850  WITH_ATTR=no
13851fi
13852
13853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
13854$as_echo "$withval" >&6; }
13855if test "$WITH_ATTR" != "no"; then
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for attr_get in -lattr" >&5
13857$as_echo_n "checking for attr_get in -lattr... " >&6; }
13858if ${ac_cv_lib_attr_attr_get+:} false; then :
13859  $as_echo_n "(cached) " >&6
13860else
13861  ac_check_lib_save_LIBS=$LIBS
13862LIBS="-lattr  $LIBS"
13863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13864/* end confdefs.h.  */
13865
13866/* Override any GCC internal prototype to avoid an error.
13867   Use char because int might match the return type of a GCC
13868   builtin and then its argument prototype would still apply.  */
13869#ifdef __cplusplus
13870extern "C"
13871#endif
13872char attr_get ();
13873int
13874main ()
13875{
13876return attr_get ();
13877  ;
13878  return 0;
13879}
13880_ACEOF
13881if ac_fn_c_try_link "$LINENO"; then :
13882  ac_cv_lib_attr_attr_get=yes
13883else
13884  ac_cv_lib_attr_attr_get=no
13885fi
13886rm -f core conftest.err conftest.$ac_objext \
13887    conftest$ac_exeext conftest.$ac_ext
13888LIBS=$ac_check_lib_save_LIBS
13889fi
13890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_attr_get" >&5
13891$as_echo "$ac_cv_lib_attr_attr_get" >&6; }
13892if test "x$ac_cv_lib_attr_attr_get" = xyes; then :
13893
13894	for ac_header in attr/attributes.h
13895do :
13896  ac_fn_c_check_header_mongrel "$LINENO" "attr/attributes.h" "ac_cv_header_attr_attributes_h" "$ac_includes_default"
13897if test "x$ac_cv_header_attr_attributes_h" = xyes; then :
13898  cat >>confdefs.h <<_ACEOF
13899#define HAVE_ATTR_ATTRIBUTES_H 1
13900_ACEOF
13901
13902		ATTR_LIB=-lattr
13903
13904$as_echo "#define HAVE_XATTR 1" >>confdefs.h
13905
13906		$as_echo "#define HAVE_ATTR_ATTRIBUTES_H 1" >>confdefs.h
13907
13908
13909fi
13910
13911done
13912
13913
13914fi
13915
13916
13917fi
13918
13919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13920$as_echo_n "checking for library containing socket... " >&6; }
13921if ${ac_cv_search_socket+:} false; then :
13922  $as_echo_n "(cached) " >&6
13923else
13924  ac_func_search_save_LIBS=$LIBS
13925cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13926/* end confdefs.h.  */
13927
13928/* Override any GCC internal prototype to avoid an error.
13929   Use char because int might match the return type of a GCC
13930   builtin and then its argument prototype would still apply.  */
13931#ifdef __cplusplus
13932extern "C"
13933#endif
13934char socket ();
13935int
13936main ()
13937{
13938return socket ();
13939  ;
13940  return 0;
13941}
13942_ACEOF
13943for ac_lib in '' socket; do
13944  if test -z "$ac_lib"; then
13945    ac_res="none required"
13946  else
13947    ac_res=-l$ac_lib
13948    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13949  fi
13950  if ac_fn_c_try_link "$LINENO"; then :
13951  ac_cv_search_socket=$ac_res
13952fi
13953rm -f core conftest.err conftest.$ac_objext \
13954    conftest$ac_exeext
13955  if ${ac_cv_search_socket+:} false; then :
13956  break
13957fi
13958done
13959if ${ac_cv_search_socket+:} false; then :
13960
13961else
13962  ac_cv_search_socket=no
13963fi
13964rm conftest.$ac_ext
13965LIBS=$ac_func_search_save_LIBS
13966fi
13967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13968$as_echo "$ac_cv_search_socket" >&6; }
13969ac_res=$ac_cv_search_socket
13970if test "$ac_res" != no; then :
13971  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13972
13973fi
13974
13975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13976$as_echo_n "checking for library containing gethostbyname... " >&6; }
13977if ${ac_cv_search_gethostbyname+:} false; then :
13978  $as_echo_n "(cached) " >&6
13979else
13980  ac_func_search_save_LIBS=$LIBS
13981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13982/* end confdefs.h.  */
13983
13984/* Override any GCC internal prototype to avoid an error.
13985   Use char because int might match the return type of a GCC
13986   builtin and then its argument prototype would still apply.  */
13987#ifdef __cplusplus
13988extern "C"
13989#endif
13990char gethostbyname ();
13991int
13992main ()
13993{
13994return gethostbyname ();
13995  ;
13996  return 0;
13997}
13998_ACEOF
13999for ac_lib in '' nsl socket; do
14000  if test -z "$ac_lib"; then
14001    ac_res="none required"
14002  else
14003    ac_res=-l$ac_lib
14004    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14005  fi
14006  if ac_fn_c_try_link "$LINENO"; then :
14007  ac_cv_search_gethostbyname=$ac_res
14008fi
14009rm -f core conftest.err conftest.$ac_objext \
14010    conftest$ac_exeext
14011  if ${ac_cv_search_gethostbyname+:} false; then :
14012  break
14013fi
14014done
14015if ${ac_cv_search_gethostbyname+:} false; then :
14016
14017else
14018  ac_cv_search_gethostbyname=no
14019fi
14020rm conftest.$ac_ext
14021LIBS=$ac_func_search_save_LIBS
14022fi
14023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
14024$as_echo "$ac_cv_search_gethostbyname" >&6; }
14025ac_res=$ac_cv_search_gethostbyname
14026if test "$ac_res" != no; then :
14027  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14028
14029fi
14030
14031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
14032$as_echo_n "checking for library containing hstrerror... " >&6; }
14033if ${ac_cv_search_hstrerror+:} false; then :
14034  $as_echo_n "(cached) " >&6
14035else
14036  ac_func_search_save_LIBS=$LIBS
14037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14038/* end confdefs.h.  */
14039
14040/* Override any GCC internal prototype to avoid an error.
14041   Use char because int might match the return type of a GCC
14042   builtin and then its argument prototype would still apply.  */
14043#ifdef __cplusplus
14044extern "C"
14045#endif
14046char hstrerror ();
14047int
14048main ()
14049{
14050return hstrerror ();
14051  ;
14052  return 0;
14053}
14054_ACEOF
14055for ac_lib in '' resolv; do
14056  if test -z "$ac_lib"; then
14057    ac_res="none required"
14058  else
14059    ac_res=-l$ac_lib
14060    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14061  fi
14062  if ac_fn_c_try_link "$LINENO"; then :
14063  ac_cv_search_hstrerror=$ac_res
14064fi
14065rm -f core conftest.err conftest.$ac_objext \
14066    conftest$ac_exeext
14067  if ${ac_cv_search_hstrerror+:} false; then :
14068  break
14069fi
14070done
14071if ${ac_cv_search_hstrerror+:} false; then :
14072
14073else
14074  ac_cv_search_hstrerror=no
14075fi
14076rm conftest.$ac_ext
14077LIBS=$ac_func_search_save_LIBS
14078fi
14079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
14080$as_echo "$ac_cv_search_hstrerror" >&6; }
14081ac_res=$ac_cv_search_hstrerror
14082if test "$ac_res" != no; then :
14083  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14084
14085fi
14086
14087
14088save_LIBS=$LIBS
14089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14090$as_echo_n "checking for library containing dlopen... " >&6; }
14091if ${ac_cv_search_dlopen+:} false; then :
14092  $as_echo_n "(cached) " >&6
14093else
14094  ac_func_search_save_LIBS=$LIBS
14095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14096/* end confdefs.h.  */
14097
14098/* Override any GCC internal prototype to avoid an error.
14099   Use char because int might match the return type of a GCC
14100   builtin and then its argument prototype would still apply.  */
14101#ifdef __cplusplus
14102extern "C"
14103#endif
14104char dlopen ();
14105int
14106main ()
14107{
14108return dlopen ();
14109  ;
14110  return 0;
14111}
14112_ACEOF
14113for ac_lib in '' dl; do
14114  if test -z "$ac_lib"; then
14115    ac_res="none required"
14116  else
14117    ac_res=-l$ac_lib
14118    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14119  fi
14120  if ac_fn_c_try_link "$LINENO"; then :
14121  ac_cv_search_dlopen=$ac_res
14122fi
14123rm -f core conftest.err conftest.$ac_objext \
14124    conftest$ac_exeext
14125  if ${ac_cv_search_dlopen+:} false; then :
14126  break
14127fi
14128done
14129if ${ac_cv_search_dlopen+:} false; then :
14130
14131else
14132  ac_cv_search_dlopen=no
14133fi
14134rm conftest.$ac_ext
14135LIBS=$ac_func_search_save_LIBS
14136fi
14137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14138$as_echo "$ac_cv_search_dlopen" >&6; }
14139ac_res=$ac_cv_search_dlopen
14140if test "$ac_res" != no; then :
14141  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14142
14143  for ac_header in dlfcn.h
14144do :
14145  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
14146if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14147  cat >>confdefs.h <<_ACEOF
14148#define HAVE_DLFCN_H 1
14149_ACEOF
14150
14151    if test "$ac_cv_search_dlopen" != no; then
14152      test "$ac_cv_search_dlopen" = "none required" || DL_LIB="$ac_cv_search_dlopen"
14153    fi
14154
14155
14156$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
14157
14158    $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
14159
14160
14161fi
14162
14163done
14164
14165
14166fi
14167
14168LIBS=$save_LIBS
14169
14170
14171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for valgrind" >&5
14172$as_echo_n "checking for valgrind... " >&6; }
14173
14174# Check whether --with-valgrind was given.
14175if test "${with_valgrind+set}" = set; then :
14176  withval=$with_valgrind; WITH_VALGRIND=$withval
14177else
14178  WITH_VALGRIND=no
14179fi
14180
14181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_VALGRIND" >&5
14182$as_echo "$WITH_VALGRIND" >&6; }
14183if test "$WITH_VALGRIND" != "no"; then
14184 for ac_header in valgrind/valgrind.h
14185do :
14186  ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
14187if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then :
14188  cat >>confdefs.h <<_ACEOF
14189#define HAVE_VALGRIND_VALGRIND_H 1
14190_ACEOF
14191
14192fi
14193
14194done
14195
14196fi
14197
14198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
14199$as_echo_n "checking for OpenSSL... " >&6; }
14200
14201# Check whether --with-openssl was given.
14202if test "${with_openssl+set}" = set; then :
14203  withval=$with_openssl; WITH_OPENSSL=$withval
14204else
14205  WITH_OPENSSL=no
14206fi
14207
14208
14209if test "$WITH_OPENSSL" != "no"; then
14210    use_openssl=yes
14211    if test "$WITH_OPENSSL" != "yes"; then
14212	CPPFLAGS="$CPPFLAGS -I$WITH_OPENSSL/include"
14213	LDFLAGS="$LDFLAGS -L$WITH_OPENSSL/lib"
14214    fi
14215else
14216    use_openssl=no
14217fi
14218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_openssl" >&5
14219$as_echo "$use_openssl" >&6; }
14220
14221
14222# Check whether --with-openssl-includes was given.
14223if test "${with_openssl_includes+set}" = set; then :
14224  withval=$with_openssl_includes;  use_openssl=yes CPPFLAGS="$CPPFLAGS -I$withval"
14225
14226fi
14227
14228
14229
14230# Check whether --with-openssl-libs was given.
14231if test "${with_openssl_libs+set}" = set; then :
14232  withval=$with_openssl_libs;  use_openssl=yes LDFLAGS="$LDFLAGS -L$withval"
14233
14234fi
14235
14236
14237
14238# Check whether --with-kerberos5 was given.
14239if test "${with_kerberos5+set}" = set; then :
14240  withval=$with_kerberos5;  use_kerberos=yes
14241else
14242  use_kerberos=no
14243
14244fi
14245
14246
14247if test "x$use_openssl" = "xyes"; then
14248    if test "x$use_kerberos" != "xyes"; then
14249        CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
14250    fi
14251
14252    for ac_header in openssl/ssl.h
14253do :
14254  ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
14255if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
14256  cat >>confdefs.h <<_ACEOF
14257#define HAVE_OPENSSL_SSL_H 1
14258_ACEOF
14259
14260fi
14261
14262done
14263
14264    OLDLIBS="$LIBS"
14265    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIO_f_base64 in -lcrypto" >&5
14266$as_echo_n "checking for BIO_f_base64 in -lcrypto... " >&6; }
14267if ${ac_cv_lib_crypto_BIO_f_base64+:} false; then :
14268  $as_echo_n "(cached) " >&6
14269else
14270  ac_check_lib_save_LIBS=$LIBS
14271LIBS="-lcrypto  $LIBS"
14272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14273/* end confdefs.h.  */
14274
14275/* Override any GCC internal prototype to avoid an error.
14276   Use char because int might match the return type of a GCC
14277   builtin and then its argument prototype would still apply.  */
14278#ifdef __cplusplus
14279extern "C"
14280#endif
14281char BIO_f_base64 ();
14282int
14283main ()
14284{
14285return BIO_f_base64 ();
14286  ;
14287  return 0;
14288}
14289_ACEOF
14290if ac_fn_c_try_link "$LINENO"; then :
14291  ac_cv_lib_crypto_BIO_f_base64=yes
14292else
14293  ac_cv_lib_crypto_BIO_f_base64=no
14294fi
14295rm -f core conftest.err conftest.$ac_objext \
14296    conftest$ac_exeext conftest.$ac_ext
14297LIBS=$ac_check_lib_save_LIBS
14298fi
14299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BIO_f_base64" >&5
14300$as_echo "$ac_cv_lib_crypto_BIO_f_base64" >&6; }
14301if test "x$ac_cv_lib_crypto_BIO_f_base64" = xyes; then :
14302
14303      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
14304$as_echo_n "checking for SSL_new in -lssl... " >&6; }
14305if ${ac_cv_lib_ssl_SSL_new+:} false; then :
14306  $as_echo_n "(cached) " >&6
14307else
14308  ac_check_lib_save_LIBS=$LIBS
14309LIBS="-lssl  -lcrypto "$DL_LIB"  $LIBS"
14310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14311/* end confdefs.h.  */
14312
14313/* Override any GCC internal prototype to avoid an error.
14314   Use char because int might match the return type of a GCC
14315   builtin and then its argument prototype would still apply.  */
14316#ifdef __cplusplus
14317extern "C"
14318#endif
14319char SSL_new ();
14320int
14321main ()
14322{
14323return SSL_new ();
14324  ;
14325  return 0;
14326}
14327_ACEOF
14328if ac_fn_c_try_link "$LINENO"; then :
14329  ac_cv_lib_ssl_SSL_new=yes
14330else
14331  ac_cv_lib_ssl_SSL_new=no
14332fi
14333rm -f core conftest.err conftest.$ac_objext \
14334    conftest$ac_exeext conftest.$ac_ext
14335LIBS=$ac_check_lib_save_LIBS
14336fi
14337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
14338$as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
14339if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
14340   SSL_LIB="-lssl -lcrypto"
14341
14342$as_echo "#define HAVE_LIBSSL /**/" >>confdefs.h
14343
14344fi
14345
14346
14347fi
14348
14349    LIBS="$OLDLIBS"
14350
14351fi
14352
14353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl regular expressions support" >&5
14354$as_echo_n "checking for perl regular expressions support... " >&6; }
14355
14356# Check whether --with-pcre was given.
14357if test "${with_pcre+set}" = set; then :
14358  withval=$with_pcre; WITH_PCRE=$withval
14359else
14360  WITH_PCRE=yes
14361fi
14362
14363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_PCRE" >&5
14364$as_echo "$WITH_PCRE" >&6; }
14365
14366if test "$WITH_PCRE" != "no"; then
14367  # Extract the first word of "pcre-config", so it can be a program name with args.
14368set dummy pcre-config; ac_word=$2
14369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14370$as_echo_n "checking for $ac_word... " >&6; }
14371if ${ac_cv_path_PCRECONFIG+:} false; then :
14372  $as_echo_n "(cached) " >&6
14373else
14374  case $PCRECONFIG in
14375  [\\/]* | ?:[\\/]*)
14376  ac_cv_path_PCRECONFIG="$PCRECONFIG" # Let the user override the test with a path.
14377  ;;
14378  *)
14379  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14380for as_dir in $PATH
14381do
14382  IFS=$as_save_IFS
14383  test -z "$as_dir" && as_dir=.
14384    for ac_exec_ext in '' $ac_executable_extensions; do
14385  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14386    ac_cv_path_PCRECONFIG="$as_dir/$ac_word$ac_exec_ext"
14387    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14388    break 2
14389  fi
14390done
14391  done
14392IFS=$as_save_IFS
14393
14394  ;;
14395esac
14396fi
14397PCRECONFIG=$ac_cv_path_PCRECONFIG
14398if test -n "$PCRECONFIG"; then
14399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRECONFIG" >&5
14400$as_echo "$PCRECONFIG" >&6; }
14401else
14402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14403$as_echo "no" >&6; }
14404fi
14405
14406
14407
14408  if test x"$PCRECONFIG" != x; then
14409    PCRE_LIB=`$PCRECONFIG --libs`
14410    CPPFLAGS="$CPPFLAGS `$PCRECONFIG --cflags`"
14411
14412$as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h
14413
14414
14415$as_echo "#define HAVE_PCRE_H 1" >>confdefs.h
14416
14417  else
14418     as_fn_error $? "pcre-config not found, install the pcre-devel package or build with --without-pcre" "$LINENO" 5
14419  fi
14420fi
14421
14422
14423
14424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib support" >&5
14425$as_echo_n "checking for zlib support... " >&6; }
14426
14427# Check whether --with-zlib was given.
14428if test "${with_zlib+set}" = set; then :
14429  withval=$with_zlib; WITH_ZLIB=$withval
14430else
14431  WITH_ZLIB=yes
14432fi
14433
14434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_ZLIB" >&5
14435$as_echo "$WITH_ZLIB" >&6; }
14436
14437if test "$WITH_ZLIB" != "no"; then
14438  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
14439$as_echo_n "checking for deflate in -lz... " >&6; }
14440if ${ac_cv_lib_z_deflate+:} false; then :
14441  $as_echo_n "(cached) " >&6
14442else
14443  ac_check_lib_save_LIBS=$LIBS
14444LIBS="-lz  $LIBS"
14445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14446/* end confdefs.h.  */
14447
14448/* Override any GCC internal prototype to avoid an error.
14449   Use char because int might match the return type of a GCC
14450   builtin and then its argument prototype would still apply.  */
14451#ifdef __cplusplus
14452extern "C"
14453#endif
14454char deflate ();
14455int
14456main ()
14457{
14458return deflate ();
14459  ;
14460  return 0;
14461}
14462_ACEOF
14463if ac_fn_c_try_link "$LINENO"; then :
14464  ac_cv_lib_z_deflate=yes
14465else
14466  ac_cv_lib_z_deflate=no
14467fi
14468rm -f core conftest.err conftest.$ac_objext \
14469    conftest$ac_exeext conftest.$ac_ext
14470LIBS=$ac_check_lib_save_LIBS
14471fi
14472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
14473$as_echo "$ac_cv_lib_z_deflate" >&6; }
14474if test "x$ac_cv_lib_z_deflate" = xyes; then :
14475
14476    for ac_header in zlib.h
14477do :
14478  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
14479if test "x$ac_cv_header_zlib_h" = xyes; then :
14480  cat >>confdefs.h <<_ACEOF
14481#define HAVE_ZLIB_H 1
14482_ACEOF
14483
14484      Z_LIB=-lz
14485
14486$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
14487
14488      $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
14489
14490
14491fi
14492
14493done
14494
14495
14496fi
14497
14498  if test x$Z_LIB = x; then
14499     as_fn_error $? "zlib-headers and/or libs where not found, install them or build with --without-zlib" "$LINENO" 5
14500  fi
14501fi
14502
14503
14504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bzip2 support" >&5
14505$as_echo_n "checking for bzip2 support... " >&6; }
14506
14507# Check whether --with-bzip2 was given.
14508if test "${with_bzip2+set}" = set; then :
14509  withval=$with_bzip2; WITH_BZIP2=$withval
14510else
14511  WITH_BZIP2=yes
14512fi
14513
14514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_BZIP2" >&5
14515$as_echo "$WITH_BZIP2" >&6; }
14516
14517if test "$WITH_BZIP2" != "no"; then
14518  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompress in -lbz2" >&5
14519$as_echo_n "checking for BZ2_bzCompress in -lbz2... " >&6; }
14520if ${ac_cv_lib_bz2_BZ2_bzCompress+:} false; then :
14521  $as_echo_n "(cached) " >&6
14522else
14523  ac_check_lib_save_LIBS=$LIBS
14524LIBS="-lbz2  $LIBS"
14525cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14526/* end confdefs.h.  */
14527
14528/* Override any GCC internal prototype to avoid an error.
14529   Use char because int might match the return type of a GCC
14530   builtin and then its argument prototype would still apply.  */
14531#ifdef __cplusplus
14532extern "C"
14533#endif
14534char BZ2_bzCompress ();
14535int
14536main ()
14537{
14538return BZ2_bzCompress ();
14539  ;
14540  return 0;
14541}
14542_ACEOF
14543if ac_fn_c_try_link "$LINENO"; then :
14544  ac_cv_lib_bz2_BZ2_bzCompress=yes
14545else
14546  ac_cv_lib_bz2_BZ2_bzCompress=no
14547fi
14548rm -f core conftest.err conftest.$ac_objext \
14549    conftest$ac_exeext conftest.$ac_ext
14550LIBS=$ac_check_lib_save_LIBS
14551fi
14552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompress" >&5
14553$as_echo "$ac_cv_lib_bz2_BZ2_bzCompress" >&6; }
14554if test "x$ac_cv_lib_bz2_BZ2_bzCompress" = xyes; then :
14555
14556    for ac_header in bzlib.h
14557do :
14558  ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
14559if test "x$ac_cv_header_bzlib_h" = xyes; then :
14560  cat >>confdefs.h <<_ACEOF
14561#define HAVE_BZLIB_H 1
14562_ACEOF
14563
14564      BZ_LIB=-lbz2
14565
14566$as_echo "#define HAVE_LIBBZ2 1" >>confdefs.h
14567
14568      $as_echo "#define HAVE_BZLIB_H 1" >>confdefs.h
14569
14570
14571fi
14572
14573done
14574
14575
14576fi
14577
14578  if test x$BZ_LIB = x; then
14579     as_fn_error $? "bzip2-headers and/or libs where not found, install them or build with --without-bzip2" "$LINENO" 5
14580  fi
14581fi
14582
14583
14584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAM" >&5
14585$as_echo_n "checking for FAM... " >&6; }
14586
14587# Check whether --with-fam was given.
14588if test "${with_fam+set}" = set; then :
14589  withval=$with_fam; WITH_FAM=$withval
14590else
14591  WITH_FAM=no
14592fi
14593
14594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_FAM" >&5
14595$as_echo "$WITH_FAM" >&6; }
14596
14597if test "$WITH_FAM" != "no"; then
14598  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAMOpen2 in -lfam" >&5
14599$as_echo_n "checking for FAMOpen2 in -lfam... " >&6; }
14600if ${ac_cv_lib_fam_FAMOpen2+:} false; then :
14601  $as_echo_n "(cached) " >&6
14602else
14603  ac_check_lib_save_LIBS=$LIBS
14604LIBS="-lfam  $LIBS"
14605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14606/* end confdefs.h.  */
14607
14608/* Override any GCC internal prototype to avoid an error.
14609   Use char because int might match the return type of a GCC
14610   builtin and then its argument prototype would still apply.  */
14611#ifdef __cplusplus
14612extern "C"
14613#endif
14614char FAMOpen2 ();
14615int
14616main ()
14617{
14618return FAMOpen2 ();
14619  ;
14620  return 0;
14621}
14622_ACEOF
14623if ac_fn_c_try_link "$LINENO"; then :
14624  ac_cv_lib_fam_FAMOpen2=yes
14625else
14626  ac_cv_lib_fam_FAMOpen2=no
14627fi
14628rm -f core conftest.err conftest.$ac_objext \
14629    conftest$ac_exeext conftest.$ac_ext
14630LIBS=$ac_check_lib_save_LIBS
14631fi
14632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fam_FAMOpen2" >&5
14633$as_echo "$ac_cv_lib_fam_FAMOpen2" >&6; }
14634if test "x$ac_cv_lib_fam_FAMOpen2" = xyes; then :
14635
14636    for ac_header in fam.h
14637do :
14638  ac_fn_c_check_header_mongrel "$LINENO" "fam.h" "ac_cv_header_fam_h" "$ac_includes_default"
14639if test "x$ac_cv_header_fam_h" = xyes; then :
14640  cat >>confdefs.h <<_ACEOF
14641#define HAVE_FAM_H 1
14642_ACEOF
14643
14644      FAM_LIBS=-lfam
14645
14646$as_echo "#define HAVE_LIBFAM 1" >>confdefs.h
14647
14648
14649$as_echo "#define HAVE_FAM_H 1" >>confdefs.h
14650
14651
14652fi
14653
14654done
14655
14656
14657fi
14658
14659  if test "x$FAM_LIBS" = x; then
14660
14661pkg_failed=no
14662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAM" >&5
14663$as_echo_n "checking for FAM... " >&6; }
14664
14665if test -n "$FAM_CFLAGS"; then
14666    pkg_cv_FAM_CFLAGS="$FAM_CFLAGS"
14667 elif test -n "$PKG_CONFIG"; then
14668    if test -n "$PKG_CONFIG" && \
14669    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gamin >= 0.1.0\""; } >&5
14670  ($PKG_CONFIG --exists --print-errors "gamin >= 0.1.0") 2>&5
14671  ac_status=$?
14672  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14673  test $ac_status = 0; }; then
14674  pkg_cv_FAM_CFLAGS=`$PKG_CONFIG --cflags "gamin >= 0.1.0" 2>/dev/null`
14675		      test "x$?" != "x0" && pkg_failed=yes
14676else
14677  pkg_failed=yes
14678fi
14679 else
14680    pkg_failed=untried
14681fi
14682if test -n "$FAM_LIBS"; then
14683    pkg_cv_FAM_LIBS="$FAM_LIBS"
14684 elif test -n "$PKG_CONFIG"; then
14685    if test -n "$PKG_CONFIG" && \
14686    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gamin >= 0.1.0\""; } >&5
14687  ($PKG_CONFIG --exists --print-errors "gamin >= 0.1.0") 2>&5
14688  ac_status=$?
14689  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14690  test $ac_status = 0; }; then
14691  pkg_cv_FAM_LIBS=`$PKG_CONFIG --libs "gamin >= 0.1.0" 2>/dev/null`
14692		      test "x$?" != "x0" && pkg_failed=yes
14693else
14694  pkg_failed=yes
14695fi
14696 else
14697    pkg_failed=untried
14698fi
14699
14700
14701
14702if test $pkg_failed = yes; then
14703   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14704$as_echo "no" >&6; }
14705
14706if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14707        _pkg_short_errors_supported=yes
14708else
14709        _pkg_short_errors_supported=no
14710fi
14711        if test $_pkg_short_errors_supported = yes; then
14712	        FAM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gamin >= 0.1.0" 2>&1`
14713        else
14714	        FAM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gamin >= 0.1.0" 2>&1`
14715        fi
14716	# Put the nasty error message in config.log where it belongs
14717	echo "$FAM_PKG_ERRORS" >&5
14718
14719	as_fn_error $? "Package requirements (gamin >= 0.1.0) were not met:
14720
14721$FAM_PKG_ERRORS
14722
14723Consider adjusting the PKG_CONFIG_PATH environment variable if you
14724installed software in a non-standard prefix.
14725
14726Alternatively, you may set the environment variables FAM_CFLAGS
14727and FAM_LIBS to avoid the need to call pkg-config.
14728See the pkg-config man page for more details." "$LINENO" 5
14729elif test $pkg_failed = untried; then
14730     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14731$as_echo "no" >&6; }
14732	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14733$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14734as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14735is in your PATH or set the PKG_CONFIG environment variable to the full
14736path to pkg-config.
14737
14738Alternatively, you may set the environment variables FAM_CFLAGS
14739and FAM_LIBS to avoid the need to call pkg-config.
14740See the pkg-config man page for more details.
14741
14742To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14743See \`config.log' for more details" "$LINENO" 5; }
14744else
14745	FAM_CFLAGS=$pkg_cv_FAM_CFLAGS
14746	FAM_LIBS=$pkg_cv_FAM_LIBS
14747        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14748$as_echo "yes" >&6; }
14749
14750
14751$as_echo "#define HAVE_LIBFAM 1" >>confdefs.h
14752
14753
14754$as_echo "#define HAVE_FAM_H 1" >>confdefs.h
14755
14756
14757fi
14758  fi
14759  OLD_LIBS=$LIBS
14760  LIBS=$FAM_LIBS
14761  for ac_func in FAMNoExists
14762do :
14763  ac_fn_c_check_func "$LINENO" "FAMNoExists" "ac_cv_func_FAMNoExists"
14764if test "x$ac_cv_func_FAMNoExists" = xyes; then :
14765  cat >>confdefs.h <<_ACEOF
14766#define HAVE_FAMNOEXISTS 1
14767_ACEOF
14768
14769fi
14770done
14771
14772  LIBS=$OLD_LIBS
14773
14774  if test x$FAM_LIBS = x; then
14775     as_fn_error $? "fam/gamin-headers and/or libs where not found, install them or build with --without-fam" "$LINENO" 5
14776  fi
14777fi
14778
14779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for properties in mod_webdav" >&5
14780$as_echo_n "checking for properties in mod_webdav... " >&6; }
14781
14782# Check whether --with-webdav-props was given.
14783if test "${with_webdav_props+set}" = set; then :
14784  withval=$with_webdav_props; WITH_WEBDAV_PROPS=$withval
14785else
14786  WITH_WEBDAV_PROPS=no
14787fi
14788
14789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_WEBDAV_PROPS" >&5
14790$as_echo "$WITH_WEBDAV_PROPS" >&6; }
14791
14792if test "$WITH_WEBDAV_PROPS" != "no"; then
14793
14794pkg_failed=no
14795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
14796$as_echo_n "checking for XML... " >&6; }
14797
14798if test -n "$XML_CFLAGS"; then
14799    pkg_cv_XML_CFLAGS="$XML_CFLAGS"
14800 elif test -n "$PKG_CONFIG"; then
14801    if test -n "$PKG_CONFIG" && \
14802    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
14803  ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
14804  ac_status=$?
14805  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14806  test $ac_status = 0; }; then
14807  pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
14808		      test "x$?" != "x0" && pkg_failed=yes
14809else
14810  pkg_failed=yes
14811fi
14812 else
14813    pkg_failed=untried
14814fi
14815if test -n "$XML_LIBS"; then
14816    pkg_cv_XML_LIBS="$XML_LIBS"
14817 elif test -n "$PKG_CONFIG"; then
14818    if test -n "$PKG_CONFIG" && \
14819    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
14820  ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
14821  ac_status=$?
14822  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14823  test $ac_status = 0; }; then
14824  pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
14825		      test "x$?" != "x0" && pkg_failed=yes
14826else
14827  pkg_failed=yes
14828fi
14829 else
14830    pkg_failed=untried
14831fi
14832
14833
14834
14835if test $pkg_failed = yes; then
14836   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14837$as_echo "no" >&6; }
14838
14839if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14840        _pkg_short_errors_supported=yes
14841else
14842        _pkg_short_errors_supported=no
14843fi
14844        if test $_pkg_short_errors_supported = yes; then
14845	        XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
14846        else
14847	        XML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
14848        fi
14849	# Put the nasty error message in config.log where it belongs
14850	echo "$XML_PKG_ERRORS" >&5
14851
14852	as_fn_error $? "Package requirements (libxml-2.0) were not met:
14853
14854$XML_PKG_ERRORS
14855
14856Consider adjusting the PKG_CONFIG_PATH environment variable if you
14857installed software in a non-standard prefix.
14858
14859Alternatively, you may set the environment variables XML_CFLAGS
14860and XML_LIBS to avoid the need to call pkg-config.
14861See the pkg-config man page for more details." "$LINENO" 5
14862elif test $pkg_failed = untried; then
14863     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14864$as_echo "no" >&6; }
14865	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14866$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14867as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14868is in your PATH or set the PKG_CONFIG environment variable to the full
14869path to pkg-config.
14870
14871Alternatively, you may set the environment variables XML_CFLAGS
14872and XML_LIBS to avoid the need to call pkg-config.
14873See the pkg-config man page for more details.
14874
14875To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14876See \`config.log' for more details" "$LINENO" 5; }
14877else
14878	XML_CFLAGS=$pkg_cv_XML_CFLAGS
14879	XML_LIBS=$pkg_cv_XML_LIBS
14880        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14881$as_echo "yes" >&6; }
14882
14883
14884$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
14885
14886
14887$as_echo "#define HAVE_LIBXML_H 1" >>confdefs.h
14888
14889
14890fi
14891
14892pkg_failed=no
14893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5
14894$as_echo_n "checking for SQLITE... " >&6; }
14895
14896if test -n "$SQLITE_CFLAGS"; then
14897    pkg_cv_SQLITE_CFLAGS="$SQLITE_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 \"sqlite3\""; } >&5
14901  ($PKG_CONFIG --exists --print-errors "sqlite3") 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_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 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 "$SQLITE_LIBS"; then
14914    pkg_cv_SQLITE_LIBS="$SQLITE_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 \"sqlite3\""; } >&5
14918  ($PKG_CONFIG --exists --print-errors "sqlite3") 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_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 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	        SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1`
14944        else
14945	        SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1`
14946        fi
14947	# Put the nasty error message in config.log where it belongs
14948	echo "$SQLITE_PKG_ERRORS" >&5
14949
14950	as_fn_error $? "Package requirements (sqlite3) were not met:
14951
14952$SQLITE_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 SQLITE_CFLAGS
14958and SQLITE_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 SQLITE_CFLAGS
14970and SQLITE_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	SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS
14977	SQLITE_LIBS=$pkg_cv_SQLITE_LIBS
14978        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14979$as_echo "yes" >&6; }
14980
14981
14982$as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
14983
14984
14985$as_echo "#define HAVE_SQLITE3_H 1" >>confdefs.h
14986
14987
14988fi
14989
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locks in mod_webdav" >&5
14991$as_echo_n "checking for locks in mod_webdav... " >&6; }
14992
14993# Check whether --with-webdav-locks was given.
14994if test "${with_webdav_locks+set}" = set; then :
14995  withval=$with_webdav_locks; WITH_WEBDAV_LOCKS=$withval
14996else
14997  WITH_WEBDAV_LOCKS=no
14998fi
14999
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_WEBDAV_LOCKS" >&5
15001$as_echo "$WITH_WEBDAV_LOCKS" >&6; }
15002
15003 if test "$WITH_WEBDAV_LOCKS" != "no"; then
15004   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_unparse in -luuid" >&5
15005$as_echo_n "checking for uuid_unparse in -luuid... " >&6; }
15006if ${ac_cv_lib_uuid_uuid_unparse+:} false; then :
15007  $as_echo_n "(cached) " >&6
15008else
15009  ac_check_lib_save_LIBS=$LIBS
15010LIBS="-luuid  $LIBS"
15011cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15012/* end confdefs.h.  */
15013
15014/* Override any GCC internal prototype to avoid an error.
15015   Use char because int might match the return type of a GCC
15016   builtin and then its argument prototype would still apply.  */
15017#ifdef __cplusplus
15018extern "C"
15019#endif
15020char uuid_unparse ();
15021int
15022main ()
15023{
15024return uuid_unparse ();
15025  ;
15026  return 0;
15027}
15028_ACEOF
15029if ac_fn_c_try_link "$LINENO"; then :
15030  ac_cv_lib_uuid_uuid_unparse=yes
15031else
15032  ac_cv_lib_uuid_uuid_unparse=no
15033fi
15034rm -f core conftest.err conftest.$ac_objext \
15035    conftest$ac_exeext conftest.$ac_ext
15036LIBS=$ac_check_lib_save_LIBS
15037fi
15038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_unparse" >&5
15039$as_echo "$ac_cv_lib_uuid_uuid_unparse" >&6; }
15040if test "x$ac_cv_lib_uuid_uuid_unparse" = xyes; then :
15041
15042         for ac_header in uuid/uuid.h
15043do :
15044  ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
15045if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
15046  cat >>confdefs.h <<_ACEOF
15047#define HAVE_UUID_UUID_H 1
15048_ACEOF
15049
15050                 UUID_LIBS=-luuid
15051
15052$as_echo "#define HAVE_UUID 1" >>confdefs.h
15053
15054
15055$as_echo "#define HAVE_UUID_H 1" >>confdefs.h
15056
15057
15058fi
15059
15060done
15061
15062
15063fi
15064
15065
15066 fi
15067fi
15068
15069
15070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm" >&5
15071$as_echo_n "checking for gdbm... " >&6; }
15072
15073# Check whether --with-gdbm was given.
15074if test "${with_gdbm+set}" = set; then :
15075  withval=$with_gdbm; WITH_GDBM=$withval
15076else
15077  WITH_GDBM=no
15078fi
15079
15080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_GDBM" >&5
15081$as_echo "$WITH_GDBM" >&6; }
15082
15083if test "$WITH_GDBM" != "no"; then
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
15085$as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
15086if ${ac_cv_lib_gdbm_gdbm_open+:} false; then :
15087  $as_echo_n "(cached) " >&6
15088else
15089  ac_check_lib_save_LIBS=$LIBS
15090LIBS="-lgdbm  $LIBS"
15091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15092/* end confdefs.h.  */
15093
15094/* Override any GCC internal prototype to avoid an error.
15095   Use char because int might match the return type of a GCC
15096   builtin and then its argument prototype would still apply.  */
15097#ifdef __cplusplus
15098extern "C"
15099#endif
15100char gdbm_open ();
15101int
15102main ()
15103{
15104return gdbm_open ();
15105  ;
15106  return 0;
15107}
15108_ACEOF
15109if ac_fn_c_try_link "$LINENO"; then :
15110  ac_cv_lib_gdbm_gdbm_open=yes
15111else
15112  ac_cv_lib_gdbm_gdbm_open=no
15113fi
15114rm -f core conftest.err conftest.$ac_objext \
15115    conftest$ac_exeext conftest.$ac_ext
15116LIBS=$ac_check_lib_save_LIBS
15117fi
15118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
15119$as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
15120if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then :
15121
15122         for ac_header in gdbm.h
15123do :
15124  ac_fn_c_check_header_mongrel "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default"
15125if test "x$ac_cv_header_gdbm_h" = xyes; then :
15126  cat >>confdefs.h <<_ACEOF
15127#define HAVE_GDBM_H 1
15128_ACEOF
15129
15130                 GDBM_LIB=-lgdbm
15131
15132$as_echo "#define HAVE_GDBM 1" >>confdefs.h
15133
15134		 $as_echo "#define HAVE_GDBM_H 1" >>confdefs.h
15135
15136
15137fi
15138
15139done
15140
15141
15142fi
15143
15144
15145fi
15146
15147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for memcache" >&5
15148$as_echo_n "checking for memcache... " >&6; }
15149
15150# Check whether --with-memcache was given.
15151if test "${with_memcache+set}" = set; then :
15152  withval=$with_memcache; WITH_MEMCACHE=$withval
15153else
15154  WITH_MEMCACHE=no
15155fi
15156
15157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_MEMCACHE" >&5
15158$as_echo "$WITH_MEMCACHE" >&6; }
15159if test "$WITH_MEMCACHE" != "no"; then
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mc_new in -lmemcache" >&5
15161$as_echo_n "checking for mc_new in -lmemcache... " >&6; }
15162if ${ac_cv_lib_memcache_mc_new+:} false; then :
15163  $as_echo_n "(cached) " >&6
15164else
15165  ac_check_lib_save_LIBS=$LIBS
15166LIBS="-lmemcache  $LIBS"
15167cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15168/* end confdefs.h.  */
15169
15170/* Override any GCC internal prototype to avoid an error.
15171   Use char because int might match the return type of a GCC
15172   builtin and then its argument prototype would still apply.  */
15173#ifdef __cplusplus
15174extern "C"
15175#endif
15176char mc_new ();
15177int
15178main ()
15179{
15180return mc_new ();
15181  ;
15182  return 0;
15183}
15184_ACEOF
15185if ac_fn_c_try_link "$LINENO"; then :
15186  ac_cv_lib_memcache_mc_new=yes
15187else
15188  ac_cv_lib_memcache_mc_new=no
15189fi
15190rm -f core conftest.err conftest.$ac_objext \
15191    conftest$ac_exeext conftest.$ac_ext
15192LIBS=$ac_check_lib_save_LIBS
15193fi
15194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_memcache_mc_new" >&5
15195$as_echo "$ac_cv_lib_memcache_mc_new" >&6; }
15196if test "x$ac_cv_lib_memcache_mc_new" = xyes; then :
15197
15198         for ac_header in memcache.h
15199do :
15200  ac_fn_c_check_header_mongrel "$LINENO" "memcache.h" "ac_cv_header_memcache_h" "$ac_includes_default"
15201if test "x$ac_cv_header_memcache_h" = xyes; then :
15202  cat >>confdefs.h <<_ACEOF
15203#define HAVE_MEMCACHE_H 1
15204_ACEOF
15205
15206                 MEMCACHE_LIB=-lmemcache
15207
15208$as_echo "#define HAVE_MEMCACHE 1" >>confdefs.h
15209
15210
15211$as_echo "#define HAVE_MEMCACHE_H 1" >>confdefs.h
15212
15213
15214fi
15215
15216done
15217
15218
15219fi
15220
15221
15222fi
15223
15224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua-support is requested" >&5
15225$as_echo_n "checking if lua-support is requested... " >&6; }
15226
15227# Check whether --with-lua was given.
15228if test "${with_lua+set}" = set; then :
15229  withval=$with_lua; WITH_LUA=$withval
15230else
15231  WITH_LUA=no
15232fi
15233
15234
15235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_LUA" >&5
15236$as_echo "$WITH_LUA" >&6; }
15237if test "$WITH_LUA" != "no"; then
15238 if test "$WITH_LUA" = "yes"; then
15239  WITH_LUA=lua
15240 fi
15241
15242pkg_failed=no
15243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
15244$as_echo_n "checking for LUA... " >&6; }
15245
15246if test -n "$LUA_CFLAGS"; then
15247    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
15248 elif test -n "$PKG_CONFIG"; then
15249    if test -n "$PKG_CONFIG" && \
15250    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WITH_LUA >= 5.1\""; } >&5
15251  ($PKG_CONFIG --exists --print-errors "$WITH_LUA >= 5.1") 2>&5
15252  ac_status=$?
15253  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15254  test $ac_status = 0; }; then
15255  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "$WITH_LUA >= 5.1" 2>/dev/null`
15256		      test "x$?" != "x0" && pkg_failed=yes
15257else
15258  pkg_failed=yes
15259fi
15260 else
15261    pkg_failed=untried
15262fi
15263if test -n "$LUA_LIBS"; then
15264    pkg_cv_LUA_LIBS="$LUA_LIBS"
15265 elif test -n "$PKG_CONFIG"; then
15266    if test -n "$PKG_CONFIG" && \
15267    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WITH_LUA >= 5.1\""; } >&5
15268  ($PKG_CONFIG --exists --print-errors "$WITH_LUA >= 5.1") 2>&5
15269  ac_status=$?
15270  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15271  test $ac_status = 0; }; then
15272  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "$WITH_LUA >= 5.1" 2>/dev/null`
15273		      test "x$?" != "x0" && pkg_failed=yes
15274else
15275  pkg_failed=yes
15276fi
15277 else
15278    pkg_failed=untried
15279fi
15280
15281
15282
15283if test $pkg_failed = yes; then
15284   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15285$as_echo "no" >&6; }
15286
15287if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15288        _pkg_short_errors_supported=yes
15289else
15290        _pkg_short_errors_supported=no
15291fi
15292        if test $_pkg_short_errors_supported = yes; then
15293	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$WITH_LUA >= 5.1" 2>&1`
15294        else
15295	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$WITH_LUA >= 5.1" 2>&1`
15296        fi
15297	# Put the nasty error message in config.log where it belongs
15298	echo "$LUA_PKG_ERRORS" >&5
15299
15300
15301
15302pkg_failed=no
15303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
15304$as_echo_n "checking for LUA... " >&6; }
15305
15306if test -n "$LUA_CFLAGS"; then
15307    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
15308 elif test -n "$PKG_CONFIG"; then
15309    if test -n "$PKG_CONFIG" && \
15310    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
15311  ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
15312  ac_status=$?
15313  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15314  test $ac_status = 0; }; then
15315  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
15316		      test "x$?" != "x0" && pkg_failed=yes
15317else
15318  pkg_failed=yes
15319fi
15320 else
15321    pkg_failed=untried
15322fi
15323if test -n "$LUA_LIBS"; then
15324    pkg_cv_LUA_LIBS="$LUA_LIBS"
15325 elif test -n "$PKG_CONFIG"; then
15326    if test -n "$PKG_CONFIG" && \
15327    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
15328  ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
15329  ac_status=$?
15330  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15331  test $ac_status = 0; }; then
15332  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
15333		      test "x$?" != "x0" && pkg_failed=yes
15334else
15335  pkg_failed=yes
15336fi
15337 else
15338    pkg_failed=untried
15339fi
15340
15341
15342
15343if test $pkg_failed = yes; then
15344   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15345$as_echo "no" >&6; }
15346
15347if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15348        _pkg_short_errors_supported=yes
15349else
15350        _pkg_short_errors_supported=no
15351fi
15352        if test $_pkg_short_errors_supported = yes; then
15353	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1 >= 5.1" 2>&1`
15354        else
15355	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1 >= 5.1" 2>&1`
15356        fi
15357	# Put the nasty error message in config.log where it belongs
15358	echo "$LUA_PKG_ERRORS" >&5
15359
15360
15361
15362pkg_failed=no
15363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
15364$as_echo_n "checking for LUA... " >&6; }
15365
15366if test -n "$LUA_CFLAGS"; then
15367    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
15368 elif test -n "$PKG_CONFIG"; then
15369    if test -n "$PKG_CONFIG" && \
15370    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
15371  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
15372  ac_status=$?
15373  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15374  test $ac_status = 0; }; then
15375  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
15376		      test "x$?" != "x0" && pkg_failed=yes
15377else
15378  pkg_failed=yes
15379fi
15380 else
15381    pkg_failed=untried
15382fi
15383if test -n "$LUA_LIBS"; then
15384    pkg_cv_LUA_LIBS="$LUA_LIBS"
15385 elif test -n "$PKG_CONFIG"; then
15386    if test -n "$PKG_CONFIG" && \
15387    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
15388  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
15389  ac_status=$?
15390  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15391  test $ac_status = 0; }; then
15392  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
15393		      test "x$?" != "x0" && pkg_failed=yes
15394else
15395  pkg_failed=yes
15396fi
15397 else
15398    pkg_failed=untried
15399fi
15400
15401
15402
15403if test $pkg_failed = yes; then
15404   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15405$as_echo "no" >&6; }
15406
15407if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15408        _pkg_short_errors_supported=yes
15409else
15410        _pkg_short_errors_supported=no
15411fi
15412        if test $_pkg_short_errors_supported = yes; then
15413	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1 >= 5.1" 2>&1`
15414        else
15415	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1 >= 5.1" 2>&1`
15416        fi
15417	# Put the nasty error message in config.log where it belongs
15418	echo "$LUA_PKG_ERRORS" >&5
15419
15420	as_fn_error $? "Package requirements (lua-5.1 >= 5.1) were not met:
15421
15422$LUA_PKG_ERRORS
15423
15424Consider adjusting the PKG_CONFIG_PATH environment variable if you
15425installed software in a non-standard prefix.
15426
15427Alternatively, you may set the environment variables LUA_CFLAGS
15428and LUA_LIBS to avoid the need to call pkg-config.
15429See the pkg-config man page for more details." "$LINENO" 5
15430elif test $pkg_failed = untried; then
15431     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15432$as_echo "no" >&6; }
15433	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15434$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15435as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15436is in your PATH or set the PKG_CONFIG environment variable to the full
15437path to pkg-config.
15438
15439Alternatively, you may set the environment variables LUA_CFLAGS
15440and LUA_LIBS to avoid the need to call pkg-config.
15441See the pkg-config man page for more details.
15442
15443To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15444See \`config.log' for more details" "$LINENO" 5; }
15445else
15446	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
15447	LUA_LIBS=$pkg_cv_LUA_LIBS
15448        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15449$as_echo "yes" >&6; }
15450
15451
15452$as_echo "#define HAVE_LUA 1" >>confdefs.h
15453
15454
15455$as_echo "#define HAVE_LUA_H 1" >>confdefs.h
15456
15457
15458fi
15459
15460elif test $pkg_failed = untried; then
15461     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15462$as_echo "no" >&6; }
15463
15464
15465pkg_failed=no
15466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
15467$as_echo_n "checking for LUA... " >&6; }
15468
15469if test -n "$LUA_CFLAGS"; then
15470    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
15471 elif test -n "$PKG_CONFIG"; then
15472    if test -n "$PKG_CONFIG" && \
15473    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
15474  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
15475  ac_status=$?
15476  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15477  test $ac_status = 0; }; then
15478  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
15479		      test "x$?" != "x0" && pkg_failed=yes
15480else
15481  pkg_failed=yes
15482fi
15483 else
15484    pkg_failed=untried
15485fi
15486if test -n "$LUA_LIBS"; then
15487    pkg_cv_LUA_LIBS="$LUA_LIBS"
15488 elif test -n "$PKG_CONFIG"; then
15489    if test -n "$PKG_CONFIG" && \
15490    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
15491  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
15492  ac_status=$?
15493  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15494  test $ac_status = 0; }; then
15495  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
15496		      test "x$?" != "x0" && pkg_failed=yes
15497else
15498  pkg_failed=yes
15499fi
15500 else
15501    pkg_failed=untried
15502fi
15503
15504
15505
15506if test $pkg_failed = yes; then
15507   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15508$as_echo "no" >&6; }
15509
15510if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15511        _pkg_short_errors_supported=yes
15512else
15513        _pkg_short_errors_supported=no
15514fi
15515        if test $_pkg_short_errors_supported = yes; then
15516	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1 >= 5.1" 2>&1`
15517        else
15518	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1 >= 5.1" 2>&1`
15519        fi
15520	# Put the nasty error message in config.log where it belongs
15521	echo "$LUA_PKG_ERRORS" >&5
15522
15523	as_fn_error $? "Package requirements (lua-5.1 >= 5.1) were not met:
15524
15525$LUA_PKG_ERRORS
15526
15527Consider adjusting the PKG_CONFIG_PATH environment variable if you
15528installed software in a non-standard prefix.
15529
15530Alternatively, you may set the environment variables LUA_CFLAGS
15531and LUA_LIBS to avoid the need to call pkg-config.
15532See the pkg-config man page for more details." "$LINENO" 5
15533elif test $pkg_failed = untried; then
15534     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15535$as_echo "no" >&6; }
15536	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15537$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15538as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15539is in your PATH or set the PKG_CONFIG environment variable to the full
15540path to pkg-config.
15541
15542Alternatively, you may set the environment variables LUA_CFLAGS
15543and LUA_LIBS to avoid the need to call pkg-config.
15544See the pkg-config man page for more details.
15545
15546To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15547See \`config.log' for more details" "$LINENO" 5; }
15548else
15549	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
15550	LUA_LIBS=$pkg_cv_LUA_LIBS
15551        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15552$as_echo "yes" >&6; }
15553
15554
15555$as_echo "#define HAVE_LUA 1" >>confdefs.h
15556
15557
15558$as_echo "#define HAVE_LUA_H 1" >>confdefs.h
15559
15560
15561fi
15562
15563else
15564	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
15565	LUA_LIBS=$pkg_cv_LUA_LIBS
15566        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15567$as_echo "yes" >&6; }
15568
15569
15570$as_echo "#define HAVE_LUA 1" >>confdefs.h
15571
15572
15573$as_echo "#define HAVE_LUA_H 1" >>confdefs.h
15574
15575
15576fi
15577
15578elif test $pkg_failed = untried; then
15579     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15580$as_echo "no" >&6; }
15581
15582
15583pkg_failed=no
15584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
15585$as_echo_n "checking for LUA... " >&6; }
15586
15587if test -n "$LUA_CFLAGS"; then
15588    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
15589 elif test -n "$PKG_CONFIG"; then
15590    if test -n "$PKG_CONFIG" && \
15591    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
15592  ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
15593  ac_status=$?
15594  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15595  test $ac_status = 0; }; then
15596  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
15597		      test "x$?" != "x0" && pkg_failed=yes
15598else
15599  pkg_failed=yes
15600fi
15601 else
15602    pkg_failed=untried
15603fi
15604if test -n "$LUA_LIBS"; then
15605    pkg_cv_LUA_LIBS="$LUA_LIBS"
15606 elif test -n "$PKG_CONFIG"; then
15607    if test -n "$PKG_CONFIG" && \
15608    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
15609  ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
15610  ac_status=$?
15611  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15612  test $ac_status = 0; }; then
15613  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
15614		      test "x$?" != "x0" && pkg_failed=yes
15615else
15616  pkg_failed=yes
15617fi
15618 else
15619    pkg_failed=untried
15620fi
15621
15622
15623
15624if test $pkg_failed = yes; then
15625   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15626$as_echo "no" >&6; }
15627
15628if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15629        _pkg_short_errors_supported=yes
15630else
15631        _pkg_short_errors_supported=no
15632fi
15633        if test $_pkg_short_errors_supported = yes; then
15634	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1 >= 5.1" 2>&1`
15635        else
15636	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1 >= 5.1" 2>&1`
15637        fi
15638	# Put the nasty error message in config.log where it belongs
15639	echo "$LUA_PKG_ERRORS" >&5
15640
15641
15642
15643pkg_failed=no
15644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
15645$as_echo_n "checking for LUA... " >&6; }
15646
15647if test -n "$LUA_CFLAGS"; then
15648    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
15649 elif test -n "$PKG_CONFIG"; then
15650    if test -n "$PKG_CONFIG" && \
15651    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
15652  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
15653  ac_status=$?
15654  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15655  test $ac_status = 0; }; then
15656  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
15657		      test "x$?" != "x0" && pkg_failed=yes
15658else
15659  pkg_failed=yes
15660fi
15661 else
15662    pkg_failed=untried
15663fi
15664if test -n "$LUA_LIBS"; then
15665    pkg_cv_LUA_LIBS="$LUA_LIBS"
15666 elif test -n "$PKG_CONFIG"; then
15667    if test -n "$PKG_CONFIG" && \
15668    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
15669  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
15670  ac_status=$?
15671  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15672  test $ac_status = 0; }; then
15673  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
15674		      test "x$?" != "x0" && pkg_failed=yes
15675else
15676  pkg_failed=yes
15677fi
15678 else
15679    pkg_failed=untried
15680fi
15681
15682
15683
15684if test $pkg_failed = yes; then
15685   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15686$as_echo "no" >&6; }
15687
15688if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15689        _pkg_short_errors_supported=yes
15690else
15691        _pkg_short_errors_supported=no
15692fi
15693        if test $_pkg_short_errors_supported = yes; then
15694	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1 >= 5.1" 2>&1`
15695        else
15696	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1 >= 5.1" 2>&1`
15697        fi
15698	# Put the nasty error message in config.log where it belongs
15699	echo "$LUA_PKG_ERRORS" >&5
15700
15701	as_fn_error $? "Package requirements (lua-5.1 >= 5.1) were not met:
15702
15703$LUA_PKG_ERRORS
15704
15705Consider adjusting the PKG_CONFIG_PATH environment variable if you
15706installed software in a non-standard prefix.
15707
15708Alternatively, you may set the environment variables LUA_CFLAGS
15709and LUA_LIBS to avoid the need to call pkg-config.
15710See the pkg-config man page for more details." "$LINENO" 5
15711elif test $pkg_failed = untried; then
15712     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15713$as_echo "no" >&6; }
15714	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15715$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15716as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15717is in your PATH or set the PKG_CONFIG environment variable to the full
15718path to pkg-config.
15719
15720Alternatively, you may set the environment variables LUA_CFLAGS
15721and LUA_LIBS to avoid the need to call pkg-config.
15722See the pkg-config man page for more details.
15723
15724To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15725See \`config.log' for more details" "$LINENO" 5; }
15726else
15727	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
15728	LUA_LIBS=$pkg_cv_LUA_LIBS
15729        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15730$as_echo "yes" >&6; }
15731
15732
15733$as_echo "#define HAVE_LUA 1" >>confdefs.h
15734
15735
15736$as_echo "#define HAVE_LUA_H 1" >>confdefs.h
15737
15738
15739fi
15740
15741elif test $pkg_failed = untried; then
15742     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15743$as_echo "no" >&6; }
15744
15745
15746pkg_failed=no
15747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
15748$as_echo_n "checking for LUA... " >&6; }
15749
15750if test -n "$LUA_CFLAGS"; then
15751    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
15752 elif test -n "$PKG_CONFIG"; then
15753    if test -n "$PKG_CONFIG" && \
15754    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
15755  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
15756  ac_status=$?
15757  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15758  test $ac_status = 0; }; then
15759  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
15760		      test "x$?" != "x0" && pkg_failed=yes
15761else
15762  pkg_failed=yes
15763fi
15764 else
15765    pkg_failed=untried
15766fi
15767if test -n "$LUA_LIBS"; then
15768    pkg_cv_LUA_LIBS="$LUA_LIBS"
15769 elif test -n "$PKG_CONFIG"; then
15770    if test -n "$PKG_CONFIG" && \
15771    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
15772  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
15773  ac_status=$?
15774  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15775  test $ac_status = 0; }; then
15776  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
15777		      test "x$?" != "x0" && pkg_failed=yes
15778else
15779  pkg_failed=yes
15780fi
15781 else
15782    pkg_failed=untried
15783fi
15784
15785
15786
15787if test $pkg_failed = yes; then
15788   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15789$as_echo "no" >&6; }
15790
15791if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15792        _pkg_short_errors_supported=yes
15793else
15794        _pkg_short_errors_supported=no
15795fi
15796        if test $_pkg_short_errors_supported = yes; then
15797	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1 >= 5.1" 2>&1`
15798        else
15799	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1 >= 5.1" 2>&1`
15800        fi
15801	# Put the nasty error message in config.log where it belongs
15802	echo "$LUA_PKG_ERRORS" >&5
15803
15804	as_fn_error $? "Package requirements (lua-5.1 >= 5.1) were not met:
15805
15806$LUA_PKG_ERRORS
15807
15808Consider adjusting the PKG_CONFIG_PATH environment variable if you
15809installed software in a non-standard prefix.
15810
15811Alternatively, you may set the environment variables LUA_CFLAGS
15812and LUA_LIBS to avoid the need to call pkg-config.
15813See the pkg-config man page for more details." "$LINENO" 5
15814elif test $pkg_failed = untried; then
15815     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15816$as_echo "no" >&6; }
15817	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15818$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15819as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15820is in your PATH or set the PKG_CONFIG environment variable to the full
15821path to pkg-config.
15822
15823Alternatively, you may set the environment variables LUA_CFLAGS
15824and LUA_LIBS to avoid the need to call pkg-config.
15825See the pkg-config man page for more details.
15826
15827To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15828See \`config.log' for more details" "$LINENO" 5; }
15829else
15830	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
15831	LUA_LIBS=$pkg_cv_LUA_LIBS
15832        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15833$as_echo "yes" >&6; }
15834
15835
15836$as_echo "#define HAVE_LUA 1" >>confdefs.h
15837
15838
15839$as_echo "#define HAVE_LUA_H 1" >>confdefs.h
15840
15841
15842fi
15843
15844else
15845	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
15846	LUA_LIBS=$pkg_cv_LUA_LIBS
15847        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15848$as_echo "yes" >&6; }
15849
15850
15851$as_echo "#define HAVE_LUA 1" >>confdefs.h
15852
15853
15854$as_echo "#define HAVE_LUA_H 1" >>confdefs.h
15855
15856
15857fi
15858
15859else
15860	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
15861	LUA_LIBS=$pkg_cv_LUA_LIBS
15862        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15863$as_echo "yes" >&6; }
15864
15865
15866$as_echo "#define HAVE_LUA 1" >>confdefs.h
15867
15868
15869$as_echo "#define HAVE_LUA_H 1" >>confdefs.h
15870
15871
15872fi
15873
15874
15875
15876fi
15877
15878save_LIBS=$LIBS
15879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
15880$as_echo_n "checking for library containing crypt... " >&6; }
15881if ${ac_cv_search_crypt+:} false; then :
15882  $as_echo_n "(cached) " >&6
15883else
15884  ac_func_search_save_LIBS=$LIBS
15885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15886/* end confdefs.h.  */
15887
15888/* Override any GCC internal prototype to avoid an error.
15889   Use char because int might match the return type of a GCC
15890   builtin and then its argument prototype would still apply.  */
15891#ifdef __cplusplus
15892extern "C"
15893#endif
15894char crypt ();
15895int
15896main ()
15897{
15898return crypt ();
15899  ;
15900  return 0;
15901}
15902_ACEOF
15903for ac_lib in '' crypt; do
15904  if test -z "$ac_lib"; then
15905    ac_res="none required"
15906  else
15907    ac_res=-l$ac_lib
15908    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15909  fi
15910  if ac_fn_c_try_link "$LINENO"; then :
15911  ac_cv_search_crypt=$ac_res
15912fi
15913rm -f core conftest.err conftest.$ac_objext \
15914    conftest$ac_exeext
15915  if ${ac_cv_search_crypt+:} false; then :
15916  break
15917fi
15918done
15919if ${ac_cv_search_crypt+:} false; then :
15920
15921else
15922  ac_cv_search_crypt=no
15923fi
15924rm conftest.$ac_ext
15925LIBS=$ac_func_search_save_LIBS
15926fi
15927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
15928$as_echo "$ac_cv_search_crypt" >&6; }
15929ac_res=$ac_cv_search_crypt
15930if test "$ac_res" != no; then :
15931  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15932
15933  for ac_header in crypt.h
15934do :
15935  ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
15936if test "x$ac_cv_header_crypt_h" = xyes; then :
15937  cat >>confdefs.h <<_ACEOF
15938#define HAVE_CRYPT_H 1
15939_ACEOF
15940
15941    $as_echo "#define HAVE_CRYPT_H 1" >>confdefs.h
15942
15943
15944fi
15945
15946done
15947
15948
15949
15950$as_echo "#define HAVE_LIBCRYPT 1" >>confdefs.h
15951
15952  if test "$ac_cv_search_crypt" != no; then
15953    test "$ac_cv_search_crypt" = "none required" || CRYPT_LIB="$ac_cv_search_crypt"
15954  fi
15955
15956fi
15957
15958LIBS=$save_LIBS
15959
15960
15961save_LIBS=$LIBS
15962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfilev" >&5
15963$as_echo_n "checking for library containing sendfilev... " >&6; }
15964if ${ac_cv_search_sendfilev+:} false; then :
15965  $as_echo_n "(cached) " >&6
15966else
15967  ac_func_search_save_LIBS=$LIBS
15968cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15969/* end confdefs.h.  */
15970
15971/* Override any GCC internal prototype to avoid an error.
15972   Use char because int might match the return type of a GCC
15973   builtin and then its argument prototype would still apply.  */
15974#ifdef __cplusplus
15975extern "C"
15976#endif
15977char sendfilev ();
15978int
15979main ()
15980{
15981return sendfilev ();
15982  ;
15983  return 0;
15984}
15985_ACEOF
15986for ac_lib in '' sendfile; do
15987  if test -z "$ac_lib"; then
15988    ac_res="none required"
15989  else
15990    ac_res=-l$ac_lib
15991    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15992  fi
15993  if ac_fn_c_try_link "$LINENO"; then :
15994  ac_cv_search_sendfilev=$ac_res
15995fi
15996rm -f core conftest.err conftest.$ac_objext \
15997    conftest$ac_exeext
15998  if ${ac_cv_search_sendfilev+:} false; then :
15999  break
16000fi
16001done
16002if ${ac_cv_search_sendfilev+:} false; then :
16003
16004else
16005  ac_cv_search_sendfilev=no
16006fi
16007rm conftest.$ac_ext
16008LIBS=$ac_func_search_save_LIBS
16009fi
16010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfilev" >&5
16011$as_echo "$ac_cv_search_sendfilev" >&6; }
16012ac_res=$ac_cv_search_sendfilev
16013if test "$ac_res" != no; then :
16014  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16015
16016  if test "$ac_cv_search_sendfilev" != no; then
16017    test "$ac_cv_search_sendfilev" = "none required" || SENDFILE_LIB="$ac_cv_search_sendfilev"
16018
16019$as_echo "#define HAVE_SENDFILEV 1" >>confdefs.h
16020
16021  fi
16022
16023fi
16024
16025LIBS=$save_LIBS
16026
16027
16028case $host_os in
16029	*mingw* ) LIBS="$LIBS -lwsock32";;
16030        * ) ;;
16031esac
16032
16033for ac_func in dup2 getcwd inet_ntoa inet_ntop memset mmap munmap strchr \
16034		  strdup strerror strstr strtol sendfile  getopt socket lstat \
16035		  gethostbyname poll epoll_ctl getrlimit chroot \
16036		  getuid select signal pathconf madvise posix_fadvise posix_madvise \
16037		  writev sigaction sendfile64 send_file kqueue port_create localtime_r gmtime_r
16038do :
16039  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16040ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16041if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16042  cat >>confdefs.h <<_ACEOF
16043#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16044_ACEOF
16045
16046fi
16047done
16048
16049
16050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Large File System support" >&5
16051$as_echo_n "checking for Large File System support... " >&6; }
16052# Check whether --enable-lfs was given.
16053if test "${enable_lfs+set}" = set; then :
16054  enableval=$enable_lfs; case "${enableval}" in
16055   yes) CPPFLAGS="${CPPFLAGS} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES" ;;
16056    no) ;;
16057     *) as_fn_error $? "bad value ${enableval} for --enable-lfs" "$LINENO" 5 ;;
16058  esac
16059else
16060  CPPFLAGS="${CPPFLAGS} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES"
16061	 enable_lfs=yes
16062fi
16063
16064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
16065$as_echo "$enableval" >&6; }
16066
16067# The cast to long int works around a bug in the HP C Compiler
16068# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16069# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16070# This bug is HP SR number 8606223364.
16071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16072$as_echo_n "checking size of long... " >&6; }
16073if ${ac_cv_sizeof_long+:} false; then :
16074  $as_echo_n "(cached) " >&6
16075else
16076  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
16077
16078else
16079  if test "$ac_cv_type_long" = yes; then
16080     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16081$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16082as_fn_error 77 "cannot compute sizeof (long)
16083See \`config.log' for more details" "$LINENO" 5; }
16084   else
16085     ac_cv_sizeof_long=0
16086   fi
16087fi
16088
16089fi
16090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16091$as_echo "$ac_cv_sizeof_long" >&6; }
16092
16093
16094
16095cat >>confdefs.h <<_ACEOF
16096#define SIZEOF_LONG $ac_cv_sizeof_long
16097_ACEOF
16098
16099
16100# The cast to long int works around a bug in the HP C Compiler
16101# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16102# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16103# This bug is HP SR number 8606223364.
16104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
16105$as_echo_n "checking size of off_t... " >&6; }
16106if ${ac_cv_sizeof_off_t+:} false; then :
16107  $as_echo_n "(cached) " >&6
16108else
16109  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
16110
16111else
16112  if test "$ac_cv_type_off_t" = yes; then
16113     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16114$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16115as_fn_error 77 "cannot compute sizeof (off_t)
16116See \`config.log' for more details" "$LINENO" 5; }
16117   else
16118     ac_cv_sizeof_off_t=0
16119   fi
16120fi
16121
16122fi
16123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
16124$as_echo "$ac_cv_sizeof_off_t" >&6; }
16125
16126
16127
16128cat >>confdefs.h <<_ACEOF
16129#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
16130_ACEOF
16131
16132
16133
16134if test "x$ac_cv_func_sendfile" = xyes; then
16135	        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sendfile works" >&5
16136$as_echo_n "checking if sendfile works... " >&6; }
16137	if test "x$cross_compiling" = xno; then
16138	if test "$cross_compiling" = yes; then :
16139  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16140$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16141as_fn_error $? "cannot run test program while cross compiling
16142See \`config.log' for more details" "$LINENO" 5; }
16143else
16144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16145/* end confdefs.h.  */
16146
16147		    #ifdef HAVE_SYS_SENDFILE_H
16148		    #include <sys/sendfile.h>
16149		    #endif /* HAVE_SYS_SENDFILE_H */
16150		    #include <errno.h>
16151		    int main() {
16152		      int o = 0;
16153		      if (-1 == sendfile(-1, 0, &o, 0) && errno == ENOSYS) return -1;
16154		      return 0;
16155		    }
16156_ACEOF
16157if ac_fn_c_try_run "$LINENO"; then :
16158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16159$as_echo "yes" >&6; }
16160else
16161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16162$as_echo "no" >&6; }
16163
16164$as_echo "#define HAVE_SENDFILE_BROKEN 1" >>confdefs.h
16165
16166fi
16167rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16168  conftest.$ac_objext conftest.beam conftest.$ac_ext
16169fi
16170
16171	else
16172	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16173$as_echo "no" >&6; }
16174
16175$as_echo "#define HAVE_SENDFILE_BROKEN 1" >>confdefs.h
16176
16177	fi
16178fi
16179
16180
16181# Check whether --enable-ipv6 was given.
16182if test "${enable_ipv6+set}" = set; then :
16183  enableval=$enable_ipv6; case "${enableval}" in
16184   yes) ipv6=true ;;
16185    no) ipv6=false ;;
16186     *) as_fn_error $? "bad value ${enableval} for --enable-ipv6" "$LINENO" 5 ;;
16187  esac
16188else
16189  ipv6=true
16190fi
16191
16192
16193if test x$ipv6 = xtrue; then
16194  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 support" >&5
16195$as_echo_n "checking for IPv6 support... " >&6; }
16196if ${ac_cv_ipv6_support+:} false; then :
16197  $as_echo_n "(cached) " >&6
16198else
16199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16200/* end confdefs.h.  */
16201 #include <sys/types.h>
16202#include <sys/socket.h>
16203#include <netinet/in.h>
16204int
16205main ()
16206{
16207struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
16208  ;
16209  return 0;
16210}
16211_ACEOF
16212if ac_fn_c_try_link "$LINENO"; then :
16213  ac_cv_ipv6_support=yes
16214else
16215  ac_cv_ipv6_support=no
16216fi
16217rm -f core conftest.err conftest.$ac_objext \
16218    conftest$ac_exeext conftest.$ac_ext
16219fi
16220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ipv6_support" >&5
16221$as_echo "$ac_cv_ipv6_support" >&6; }
16222
16223  if test "$ac_cv_ipv6_support" = yes; then
16224
16225$as_echo "#define HAVE_IPV6 1" >>confdefs.h
16226
16227  fi
16228fi
16229
16230# disable mmap by default; if a mmapped file gets truncated, the process gets a SIGBUS signal
16231# on reading the truncated area which we can't handle (yet).
16232# lighttpd may always use mmap with files it owns (created tmp files)
16233# Check whether --enable-mmap was given.
16234if test "${enable_mmap+set}" = set; then :
16235  enableval=$enable_mmap; case "${enableval}" in
16236   yes) mmap=true ;;
16237    no) mmap=false ;;
16238     *) as_fn_error $? "bad value ${enableval} for --enable-mmap" "$LINENO" 5 ;;
16239  esac
16240else
16241  mmap=false
16242fi
16243
16244
16245if test x$mmap = xtrue; then
16246
16247$as_echo "#define ENABLE_MMAP 1" >>confdefs.h
16248
16249fi
16250
16251
16252 if test "x$cross_compiling" = xyes; then
16253  CROSS_COMPILING_TRUE=
16254  CROSS_COMPILING_FALSE='#'
16255else
16256  CROSS_COMPILING_TRUE='#'
16257  CROSS_COMPILING_FALSE=
16258fi
16259
16260
16261fastcgi_found=no
16262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FCGI_Accept in -lfcgi" >&5
16263$as_echo_n "checking for FCGI_Accept in -lfcgi... " >&6; }
16264if ${ac_cv_lib_fcgi_FCGI_Accept+:} false; then :
16265  $as_echo_n "(cached) " >&6
16266else
16267  ac_check_lib_save_LIBS=$LIBS
16268LIBS="-lfcgi  $LIBS"
16269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16270/* end confdefs.h.  */
16271
16272/* Override any GCC internal prototype to avoid an error.
16273   Use char because int might match the return type of a GCC
16274   builtin and then its argument prototype would still apply.  */
16275#ifdef __cplusplus
16276extern "C"
16277#endif
16278char FCGI_Accept ();
16279int
16280main ()
16281{
16282return FCGI_Accept ();
16283  ;
16284  return 0;
16285}
16286_ACEOF
16287if ac_fn_c_try_link "$LINENO"; then :
16288  ac_cv_lib_fcgi_FCGI_Accept=yes
16289else
16290  ac_cv_lib_fcgi_FCGI_Accept=no
16291fi
16292rm -f core conftest.err conftest.$ac_objext \
16293    conftest$ac_exeext conftest.$ac_ext
16294LIBS=$ac_check_lib_save_LIBS
16295fi
16296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcgi_FCGI_Accept" >&5
16297$as_echo "$ac_cv_lib_fcgi_FCGI_Accept" >&6; }
16298if test "x$ac_cv_lib_fcgi_FCGI_Accept" = xyes; then :
16299
16300 for ac_header in fastcgi.h fastcgi/fastcgi.h
16301do :
16302  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16303ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16304if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16305  cat >>confdefs.h <<_ACEOF
16306#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16307_ACEOF
16308
16309   fastcgi_found=yes
16310
16311fi
16312
16313done
16314
16315
16316fi
16317
16318
16319 if test "x$fastcgi_found" = xyes; then
16320  CHECK_WITH_FASTCGI_TRUE=
16321  CHECK_WITH_FASTCGI_FALSE='#'
16322else
16323  CHECK_WITH_FASTCGI_TRUE='#'
16324  CHECK_WITH_FASTCGI_FALSE=
16325fi
16326
16327
16328
16329if test "${GCC}" = "yes"; then
16330    CFLAGS="${CFLAGS} -Wall -W -Wshadow -pedantic -std=gnu99"
16331fi
16332
16333# Check whether --enable-extra-warnings was given.
16334if test "${enable_extra_warnings+set}" = set; then :
16335  enableval=$enable_extra_warnings; case "${enableval}" in
16336   yes) extrawarnings=true ;;
16337    no) extrawarnings=false ;;
16338     *) as_fn_error $? "bad value ${enableval} for --enable-extra-warnings" "$LINENO" 5 ;;
16339  esac
16340else
16341  extrawarnings=false
16342fi
16343
16344
16345if test x$extrawarnings = xtrue; then
16346    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"
16347fi
16348
16349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multi-threading mode" >&5
16350$as_echo_n "checking for multi-threading mode... " >&6; }
16351# Check whether --enable-multithreading was given.
16352if test "${enable_multithreading+set}" = set; then :
16353  enableval=$enable_multithreading; case "${enableval}" in
16354   yes) multithreading=true ;;
16355    no) multithreading=false ;;
16356     *) as_fn_error $? "bad value ${enableval} for --enable-multithreading" "$LINENO" 5 ;;
16357  esac
16358else
16359  multithreading=false
16360fi
16361
16362
16363if test x$multithreading = xtrue; then
16364    CFLAGS="${CFLAGS} -DMULTI_THREADED"
16365    LDFLAGS="${LDFLAGS} -lpthread -lnuma"
16366    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16367$as_echo "yes" >&6; }
16368else
16369    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16370$as_echo "no" >&6; }
16371fi
16372
16373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mtcp support (multhreading mode enabled)" >&5
16374$as_echo_n "checking for mtcp support (multhreading mode enabled)... " >&6; }
16375
16376# Check whether --with-libmtcp was given.
16377if test "${with_libmtcp+set}" = set; then :
16378  withval=$with_libmtcp; WITH_LIBMTCP=$withval
16379else
16380  WITH_LIBMTCP=no
16381fi
16382
16383
16384LIBMTCP_CFLAGS=""
16385LIBMTCP_LIBS=""
16386
16387if test "$WITH_LIBMTCP" != "no"; then
16388	LIBMTCP_CFLAGS="-I$WITH_LIBMTCP/lib/ -I$WITH_LIBMTCP/src/include/ -DMULTI_THREADED"
16389	LIBMTCP_LIBS="$WITH_LIBMTCP/lib/libmtcp.a -lpthread -lnuma -lrt"
16390	CFLAGS="${CFLAGS} ${LIBMTCP_CFLAGS}"
16391
16392$as_echo "#define HAVE_LIBMTCP 1" >>confdefs.h
16393
16394	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16395$as_echo "yes" >&6; }
16396else
16397	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16398$as_echo "no" >&6; }
16399fi
16400
16401
16402
16403
16404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for psio support" >&5
16405$as_echo_n "checking for psio support... " >&6; }
16406
16407# Check whether --with-libpsio was given.
16408if test "${with_libpsio+set}" = set; then :
16409  withval=$with_libpsio; WITH_LIBPSIO=$withval
16410else
16411  WITH_LIBPSIO=no
16412fi
16413
16414
16415LIBPSIO_CFLAGS=""
16416LIBPSIO_LIBS=""
16417
16418if test "$WITH_LIBPSIO" != "no"; then
16419	LIBPSIO_CFLAGS="-I$WITH_LIBPSIO/include/"
16420	LIBPSIO_LIBS="$WITH_LIBPSIO/lib/libps.a"
16421	CFLAGS="${CFLAGS} ${LIBPSIO_CFLAGS}"
16422
16423$as_echo "#define HAVE_LIBPSIO 1" >>confdefs.h
16424
16425	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16426$as_echo "yes" >&6; }
16427else
16428	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16429$as_echo "no" >&6; }
16430fi
16431
16432
16433
16434
16435
16436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dpdk support" >&5
16437$as_echo_n "checking for dpdk support... " >&6; }
16438
16439# Check whether --with-libdpdk was given.
16440if test "${with_libdpdk+set}" = set; then :
16441  withval=$with_libdpdk; WITH_LIBDPDK=$withval
16442else
16443  WITH_LIBDPDK=no
16444fi
16445
16446
16447LIBDPDK_CFLAGS=""
16448LIBDPDK_LIBS=""
16449
16450if test "$WITH_LIBDPDK" != "no"; then
16451	LIBDPDK_CFLAGS="-I$WITH_LIBDPDK/include/"
16452	LIBDPDK_LDFLAGS=`cat $WITH_LIBDPDK/lib/ldflags.txt`
16453	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"
16454	CFLAGS="${CFLAGS} ${LIBDPDK_CFLAGS}"
16455
16456$as_echo "#define HAVE_LIBDPDK 1" >>confdefs.h
16457
16458	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16459$as_echo "yes" >&6; }
16460else
16461	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16462$as_echo "no" >&6; }
16463fi
16464
16465
16466
16467
16468LIGHTTPD_VERSION_ID=`echo $PACKAGE_VERSION | $AWK -F '.' '{print "(" $1 " << 16 | " $2 " << 8 | " $3 ")"}'`
16469
16470cat >>confdefs.h <<_ACEOF
16471#define LIGHTTPD_VERSION_ID $LIGHTTPD_VERSION_ID
16472_ACEOF
16473
16474
16475ac_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"
16476
16477cat >confcache <<\_ACEOF
16478# This file is a shell script that caches the results of configure
16479# tests run on this system so they can be shared between configure
16480# scripts and configure runs, see configure's option --config-cache.
16481# It is not useful on other systems.  If it contains results you don't
16482# want to keep, you may remove or edit it.
16483#
16484# config.status only pays attention to the cache file if you give it
16485# the --recheck option to rerun configure.
16486#
16487# `ac_cv_env_foo' variables (set or unset) will be overridden when
16488# loading this file, other *unset* `ac_cv_foo' will be assigned the
16489# following values.
16490
16491_ACEOF
16492
16493# The following way of writing the cache mishandles newlines in values,
16494# but we know of no workaround that is simple, portable, and efficient.
16495# So, we kill variables containing newlines.
16496# Ultrix sh set writes to stderr and can't be redirected directly,
16497# and sets the high bit in the cache file unless we assign to the vars.
16498(
16499  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16500    eval ac_val=\$$ac_var
16501    case $ac_val in #(
16502    *${as_nl}*)
16503      case $ac_var in #(
16504      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16505$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16506      esac
16507      case $ac_var in #(
16508      _ | IFS | as_nl) ;; #(
16509      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16510      *) { eval $ac_var=; unset $ac_var;} ;;
16511      esac ;;
16512    esac
16513  done
16514
16515  (set) 2>&1 |
16516    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16517    *${as_nl}ac_space=\ *)
16518      # `set' does not quote correctly, so add quotes: double-quote
16519      # substitution turns \\\\ into \\, and sed turns \\ into \.
16520      sed -n \
16521	"s/'/'\\\\''/g;
16522	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16523      ;; #(
16524    *)
16525      # `set' quotes correctly as required by POSIX, so do not add quotes.
16526      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16527      ;;
16528    esac |
16529    sort
16530) |
16531  sed '
16532     /^ac_cv_env_/b end
16533     t clear
16534     :clear
16535     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16536     t end
16537     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16538     :end' >>confcache
16539if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16540  if test -w "$cache_file"; then
16541    if test "x$cache_file" != "x/dev/null"; then
16542      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16543$as_echo "$as_me: updating cache $cache_file" >&6;}
16544      if test ! -f "$cache_file" || test -h "$cache_file"; then
16545	cat confcache >"$cache_file"
16546      else
16547        case $cache_file in #(
16548        */* | ?:*)
16549	  mv -f confcache "$cache_file"$$ &&
16550	  mv -f "$cache_file"$$ "$cache_file" ;; #(
16551        *)
16552	  mv -f confcache "$cache_file" ;;
16553	esac
16554      fi
16555    fi
16556  else
16557    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16558$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16559  fi
16560fi
16561rm -f confcache
16562
16563test "x$prefix" = xNONE && prefix=$ac_default_prefix
16564# Let make expand exec_prefix.
16565test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16566
16567DEFS=-DHAVE_CONFIG_H
16568
16569ac_libobjs=
16570ac_ltlibobjs=
16571U=
16572for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16573  # 1. Remove the extension, and $U if already installed.
16574  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16575  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16576  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16577  #    will be set to the directory where LIBOBJS objects are built.
16578  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16579  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16580done
16581LIBOBJS=$ac_libobjs
16582
16583LTLIBOBJS=$ac_ltlibobjs
16584
16585
16586 if test -n "$EXEEXT"; then
16587  am__EXEEXT_TRUE=
16588  am__EXEEXT_FALSE='#'
16589else
16590  am__EXEEXT_TRUE='#'
16591  am__EXEEXT_FALSE=
16592fi
16593
16594if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16595  as_fn_error $? "conditional \"AMDEP\" was never defined.
16596Usually this means the macro was only invoked conditionally." "$LINENO" 5
16597fi
16598if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16599  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16600Usually this means the macro was only invoked conditionally." "$LINENO" 5
16601fi
16602if test -z "${NO_RDYNAMIC_TRUE}" && test -z "${NO_RDYNAMIC_FALSE}"; then
16603  as_fn_error $? "conditional \"NO_RDYNAMIC\" was never defined.
16604Usually this means the macro was only invoked conditionally." "$LINENO" 5
16605fi
16606if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
16607  as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
16608Usually this means the macro was only invoked conditionally." "$LINENO" 5
16609fi
16610if test -z "${CHECK_WITH_FASTCGI_TRUE}" && test -z "${CHECK_WITH_FASTCGI_FALSE}"; then
16611  as_fn_error $? "conditional \"CHECK_WITH_FASTCGI\" was never defined.
16612Usually this means the macro was only invoked conditionally." "$LINENO" 5
16613fi
16614
16615: "${CONFIG_STATUS=./config.status}"
16616ac_write_fail=0
16617ac_clean_files_save=$ac_clean_files
16618ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16619{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16620$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16621as_write_fail=0
16622cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16623#! $SHELL
16624# Generated by $as_me.
16625# Run this file to recreate the current configuration.
16626# Compiler output produced by configure, useful for debugging
16627# configure, is in config.log if it exists.
16628
16629debug=false
16630ac_cs_recheck=false
16631ac_cs_silent=false
16632
16633SHELL=\${CONFIG_SHELL-$SHELL}
16634export SHELL
16635_ASEOF
16636cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16637## -------------------- ##
16638## M4sh Initialization. ##
16639## -------------------- ##
16640
16641# Be more Bourne compatible
16642DUALCASE=1; export DUALCASE # for MKS sh
16643if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16644  emulate sh
16645  NULLCMD=:
16646  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16647  # is contrary to our usage.  Disable this feature.
16648  alias -g '${1+"$@"}'='"$@"'
16649  setopt NO_GLOB_SUBST
16650else
16651  case `(set -o) 2>/dev/null` in #(
16652  *posix*) :
16653    set -o posix ;; #(
16654  *) :
16655     ;;
16656esac
16657fi
16658
16659
16660as_nl='
16661'
16662export as_nl
16663# Printing a long string crashes Solaris 7 /usr/bin/printf.
16664as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16665as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16666as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16667# Prefer a ksh shell builtin over an external printf program on Solaris,
16668# but without wasting forks for bash or zsh.
16669if test -z "$BASH_VERSION$ZSH_VERSION" \
16670    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16671  as_echo='print -r --'
16672  as_echo_n='print -rn --'
16673elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16674  as_echo='printf %s\n'
16675  as_echo_n='printf %s'
16676else
16677  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16678    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16679    as_echo_n='/usr/ucb/echo -n'
16680  else
16681    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16682    as_echo_n_body='eval
16683      arg=$1;
16684      case $arg in #(
16685      *"$as_nl"*)
16686	expr "X$arg" : "X\\(.*\\)$as_nl";
16687	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16688      esac;
16689      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16690    '
16691    export as_echo_n_body
16692    as_echo_n='sh -c $as_echo_n_body as_echo'
16693  fi
16694  export as_echo_body
16695  as_echo='sh -c $as_echo_body as_echo'
16696fi
16697
16698# The user is always right.
16699if test "${PATH_SEPARATOR+set}" != set; then
16700  PATH_SEPARATOR=:
16701  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16702    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16703      PATH_SEPARATOR=';'
16704  }
16705fi
16706
16707
16708# IFS
16709# We need space, tab and new line, in precisely that order.  Quoting is
16710# there to prevent editors from complaining about space-tab.
16711# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16712# splitting by setting IFS to empty value.)
16713IFS=" ""	$as_nl"
16714
16715# Find who we are.  Look in the path if we contain no directory separator.
16716as_myself=
16717case $0 in #((
16718  *[\\/]* ) as_myself=$0 ;;
16719  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16720for as_dir in $PATH
16721do
16722  IFS=$as_save_IFS
16723  test -z "$as_dir" && as_dir=.
16724    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16725  done
16726IFS=$as_save_IFS
16727
16728     ;;
16729esac
16730# We did not find ourselves, most probably we were run as `sh COMMAND'
16731# in which case we are not to be found in the path.
16732if test "x$as_myself" = x; then
16733  as_myself=$0
16734fi
16735if test ! -f "$as_myself"; then
16736  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16737  exit 1
16738fi
16739
16740# Unset variables that we do not need and which cause bugs (e.g. in
16741# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16742# suppresses any "Segmentation fault" message there.  '((' could
16743# trigger a bug in pdksh 5.2.14.
16744for as_var in BASH_ENV ENV MAIL MAILPATH
16745do eval test x\${$as_var+set} = xset \
16746  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16747done
16748PS1='$ '
16749PS2='> '
16750PS4='+ '
16751
16752# NLS nuisances.
16753LC_ALL=C
16754export LC_ALL
16755LANGUAGE=C
16756export LANGUAGE
16757
16758# CDPATH.
16759(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16760
16761
16762# as_fn_error STATUS ERROR [LINENO LOG_FD]
16763# ----------------------------------------
16764# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16765# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16766# script with STATUS, using 1 if that was 0.
16767as_fn_error ()
16768{
16769  as_status=$1; test $as_status -eq 0 && as_status=1
16770  if test "$4"; then
16771    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16772    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16773  fi
16774  $as_echo "$as_me: error: $2" >&2
16775  as_fn_exit $as_status
16776} # as_fn_error
16777
16778
16779# as_fn_set_status STATUS
16780# -----------------------
16781# Set $? to STATUS, without forking.
16782as_fn_set_status ()
16783{
16784  return $1
16785} # as_fn_set_status
16786
16787# as_fn_exit STATUS
16788# -----------------
16789# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16790as_fn_exit ()
16791{
16792  set +e
16793  as_fn_set_status $1
16794  exit $1
16795} # as_fn_exit
16796
16797# as_fn_unset VAR
16798# ---------------
16799# Portably unset VAR.
16800as_fn_unset ()
16801{
16802  { eval $1=; unset $1;}
16803}
16804as_unset=as_fn_unset
16805# as_fn_append VAR VALUE
16806# ----------------------
16807# Append the text in VALUE to the end of the definition contained in VAR. Take
16808# advantage of any shell optimizations that allow amortized linear growth over
16809# repeated appends, instead of the typical quadratic growth present in naive
16810# implementations.
16811if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16812  eval 'as_fn_append ()
16813  {
16814    eval $1+=\$2
16815  }'
16816else
16817  as_fn_append ()
16818  {
16819    eval $1=\$$1\$2
16820  }
16821fi # as_fn_append
16822
16823# as_fn_arith ARG...
16824# ------------------
16825# Perform arithmetic evaluation on the ARGs, and store the result in the
16826# global $as_val. Take advantage of shells that can avoid forks. The arguments
16827# must be portable across $(()) and expr.
16828if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16829  eval 'as_fn_arith ()
16830  {
16831    as_val=$(( $* ))
16832  }'
16833else
16834  as_fn_arith ()
16835  {
16836    as_val=`expr "$@" || test $? -eq 1`
16837  }
16838fi # as_fn_arith
16839
16840
16841if expr a : '\(a\)' >/dev/null 2>&1 &&
16842   test "X`expr 00001 : '.*\(...\)'`" = X001; then
16843  as_expr=expr
16844else
16845  as_expr=false
16846fi
16847
16848if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16849  as_basename=basename
16850else
16851  as_basename=false
16852fi
16853
16854if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16855  as_dirname=dirname
16856else
16857  as_dirname=false
16858fi
16859
16860as_me=`$as_basename -- "$0" ||
16861$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16862	 X"$0" : 'X\(//\)$' \| \
16863	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16864$as_echo X/"$0" |
16865    sed '/^.*\/\([^/][^/]*\)\/*$/{
16866	    s//\1/
16867	    q
16868	  }
16869	  /^X\/\(\/\/\)$/{
16870	    s//\1/
16871	    q
16872	  }
16873	  /^X\/\(\/\).*/{
16874	    s//\1/
16875	    q
16876	  }
16877	  s/.*/./; q'`
16878
16879# Avoid depending upon Character Ranges.
16880as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16881as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16882as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16883as_cr_digits='0123456789'
16884as_cr_alnum=$as_cr_Letters$as_cr_digits
16885
16886ECHO_C= ECHO_N= ECHO_T=
16887case `echo -n x` in #(((((
16888-n*)
16889  case `echo 'xy\c'` in
16890  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
16891  xy)  ECHO_C='\c';;
16892  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16893       ECHO_T='	';;
16894  esac;;
16895*)
16896  ECHO_N='-n';;
16897esac
16898
16899rm -f conf$$ conf$$.exe conf$$.file
16900if test -d conf$$.dir; then
16901  rm -f conf$$.dir/conf$$.file
16902else
16903  rm -f conf$$.dir
16904  mkdir conf$$.dir 2>/dev/null
16905fi
16906if (echo >conf$$.file) 2>/dev/null; then
16907  if ln -s conf$$.file conf$$ 2>/dev/null; then
16908    as_ln_s='ln -s'
16909    # ... but there are two gotchas:
16910    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16911    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16912    # In both cases, we have to default to `cp -pR'.
16913    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16914      as_ln_s='cp -pR'
16915  elif ln conf$$.file conf$$ 2>/dev/null; then
16916    as_ln_s=ln
16917  else
16918    as_ln_s='cp -pR'
16919  fi
16920else
16921  as_ln_s='cp -pR'
16922fi
16923rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16924rmdir conf$$.dir 2>/dev/null
16925
16926
16927# as_fn_mkdir_p
16928# -------------
16929# Create "$as_dir" as a directory, including parents if necessary.
16930as_fn_mkdir_p ()
16931{
16932
16933  case $as_dir in #(
16934  -*) as_dir=./$as_dir;;
16935  esac
16936  test -d "$as_dir" || eval $as_mkdir_p || {
16937    as_dirs=
16938    while :; do
16939      case $as_dir in #(
16940      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16941      *) as_qdir=$as_dir;;
16942      esac
16943      as_dirs="'$as_qdir' $as_dirs"
16944      as_dir=`$as_dirname -- "$as_dir" ||
16945$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16946	 X"$as_dir" : 'X\(//\)[^/]' \| \
16947	 X"$as_dir" : 'X\(//\)$' \| \
16948	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16949$as_echo X"$as_dir" |
16950    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16951	    s//\1/
16952	    q
16953	  }
16954	  /^X\(\/\/\)[^/].*/{
16955	    s//\1/
16956	    q
16957	  }
16958	  /^X\(\/\/\)$/{
16959	    s//\1/
16960	    q
16961	  }
16962	  /^X\(\/\).*/{
16963	    s//\1/
16964	    q
16965	  }
16966	  s/.*/./; q'`
16967      test -d "$as_dir" && break
16968    done
16969    test -z "$as_dirs" || eval "mkdir $as_dirs"
16970  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16971
16972
16973} # as_fn_mkdir_p
16974if mkdir -p . 2>/dev/null; then
16975  as_mkdir_p='mkdir -p "$as_dir"'
16976else
16977  test -d ./-p && rmdir ./-p
16978  as_mkdir_p=false
16979fi
16980
16981
16982# as_fn_executable_p FILE
16983# -----------------------
16984# Test if FILE is an executable regular file.
16985as_fn_executable_p ()
16986{
16987  test -f "$1" && test -x "$1"
16988} # as_fn_executable_p
16989as_test_x='test -x'
16990as_executable_p=as_fn_executable_p
16991
16992# Sed expression to map a string onto a valid CPP name.
16993as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16994
16995# Sed expression to map a string onto a valid variable name.
16996as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16997
16998
16999exec 6>&1
17000## ----------------------------------- ##
17001## Main body of $CONFIG_STATUS script. ##
17002## ----------------------------------- ##
17003_ASEOF
17004test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17005
17006cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17007# Save the log message, to keep $0 and so on meaningful, and to
17008# report actual input values of CONFIG_FILES etc. instead of their
17009# values after options handling.
17010ac_log="
17011This file was extended by lighttpd $as_me 1.4.32, which was
17012generated by GNU Autoconf 2.69.  Invocation command line was
17013
17014  CONFIG_FILES    = $CONFIG_FILES
17015  CONFIG_HEADERS  = $CONFIG_HEADERS
17016  CONFIG_LINKS    = $CONFIG_LINKS
17017  CONFIG_COMMANDS = $CONFIG_COMMANDS
17018  $ $0 $@
17019
17020on `(hostname || uname -n) 2>/dev/null | sed 1q`
17021"
17022
17023_ACEOF
17024
17025case $ac_config_files in *"
17026"*) set x $ac_config_files; shift; ac_config_files=$*;;
17027esac
17028
17029case $ac_config_headers in *"
17030"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17031esac
17032
17033
17034cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17035# Files that config.status was made for.
17036config_files="$ac_config_files"
17037config_headers="$ac_config_headers"
17038config_commands="$ac_config_commands"
17039
17040_ACEOF
17041
17042cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17043ac_cs_usage="\
17044\`$as_me' instantiates files and other configuration actions
17045from templates according to the current configuration.  Unless the files
17046and actions are specified as TAGs, all are instantiated by default.
17047
17048Usage: $0 [OPTION]... [TAG]...
17049
17050  -h, --help       print this help, then exit
17051  -V, --version    print version number and configuration settings, then exit
17052      --config     print configuration, then exit
17053  -q, --quiet, --silent
17054                   do not print progress messages
17055  -d, --debug      don't remove temporary files
17056      --recheck    update $as_me by reconfiguring in the same conditions
17057      --file=FILE[:TEMPLATE]
17058                   instantiate the configuration file FILE
17059      --header=FILE[:TEMPLATE]
17060                   instantiate the configuration header FILE
17061
17062Configuration files:
17063$config_files
17064
17065Configuration headers:
17066$config_headers
17067
17068Configuration commands:
17069$config_commands
17070
17071Report bugs to <[email protected]>."
17072
17073_ACEOF
17074cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17075ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17076ac_cs_version="\\
17077lighttpd config.status 1.4.32
17078configured by $0, generated by GNU Autoconf 2.69,
17079  with options \\"\$ac_cs_config\\"
17080
17081Copyright (C) 2012 Free Software Foundation, Inc.
17082This config.status script is free software; the Free Software Foundation
17083gives unlimited permission to copy, distribute and modify it."
17084
17085ac_pwd='$ac_pwd'
17086srcdir='$srcdir'
17087INSTALL='$INSTALL'
17088MKDIR_P='$MKDIR_P'
17089AWK='$AWK'
17090test -n "\$AWK" || AWK=awk
17091_ACEOF
17092
17093cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17094# The default lists apply if the user does not specify any file.
17095ac_need_defaults=:
17096while test $# != 0
17097do
17098  case $1 in
17099  --*=?*)
17100    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17101    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17102    ac_shift=:
17103    ;;
17104  --*=)
17105    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17106    ac_optarg=
17107    ac_shift=:
17108    ;;
17109  *)
17110    ac_option=$1
17111    ac_optarg=$2
17112    ac_shift=shift
17113    ;;
17114  esac
17115
17116  case $ac_option in
17117  # Handling of the options.
17118  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17119    ac_cs_recheck=: ;;
17120  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17121    $as_echo "$ac_cs_version"; exit ;;
17122  --config | --confi | --conf | --con | --co | --c )
17123    $as_echo "$ac_cs_config"; exit ;;
17124  --debug | --debu | --deb | --de | --d | -d )
17125    debug=: ;;
17126  --file | --fil | --fi | --f )
17127    $ac_shift
17128    case $ac_optarg in
17129    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17130    '') as_fn_error $? "missing file argument" ;;
17131    esac
17132    as_fn_append CONFIG_FILES " '$ac_optarg'"
17133    ac_need_defaults=false;;
17134  --header | --heade | --head | --hea )
17135    $ac_shift
17136    case $ac_optarg in
17137    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17138    esac
17139    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17140    ac_need_defaults=false;;
17141  --he | --h)
17142    # Conflict between --help and --header
17143    as_fn_error $? "ambiguous option: \`$1'
17144Try \`$0 --help' for more information.";;
17145  --help | --hel | -h )
17146    $as_echo "$ac_cs_usage"; exit ;;
17147  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17148  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17149    ac_cs_silent=: ;;
17150
17151  # This is an error.
17152  -*) as_fn_error $? "unrecognized option: \`$1'
17153Try \`$0 --help' for more information." ;;
17154
17155  *) as_fn_append ac_config_targets " $1"
17156     ac_need_defaults=false ;;
17157
17158  esac
17159  shift
17160done
17161
17162ac_configure_extra_args=
17163
17164if $ac_cs_silent; then
17165  exec 6>/dev/null
17166  ac_configure_extra_args="$ac_configure_extra_args --silent"
17167fi
17168
17169_ACEOF
17170cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17171if \$ac_cs_recheck; then
17172  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17173  shift
17174  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17175  CONFIG_SHELL='$SHELL'
17176  export CONFIG_SHELL
17177  exec "\$@"
17178fi
17179
17180_ACEOF
17181cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17182exec 5>>config.log
17183{
17184  echo
17185  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17186## Running $as_me. ##
17187_ASBOX
17188  $as_echo "$ac_log"
17189} >&5
17190
17191_ACEOF
17192cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17193#
17194# INIT-COMMANDS
17195#
17196AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17197
17198
17199# The HP-UX ksh and POSIX shell print the target directory to stdout
17200# if CDPATH is set.
17201(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17202
17203sed_quote_subst='$sed_quote_subst'
17204double_quote_subst='$double_quote_subst'
17205delay_variable_subst='$delay_variable_subst'
17206SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17207Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17208GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17209EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17210FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17211SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17212ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17213LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17214enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17215enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17216macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17217macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17218pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17219enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17220PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17221host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17222host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17223host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17224build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17225build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17226build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17227NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17228LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17229max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17230ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17231exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17232lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17233lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17234lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17235lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17236lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17237reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17238reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17239OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17240deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17241file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17242file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17243want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17244DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17245sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17246AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17247AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17248archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17249STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17250RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17251old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17252old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17253old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17254lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17255CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17256CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17257compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17258GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17259lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17260lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17261lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17262lt_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"`'
17263nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17264lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17265objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17266MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17267lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17268lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17269lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17270lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17271lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17272need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17273MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17274DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17275NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17276LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17277OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17278OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17279libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17280shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17281extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17282archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17283enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17284export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17285whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17286compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17287old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17288old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17289archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17290archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17291module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17292module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17293with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17294allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17295no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17296hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17297hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17298hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17299hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17300hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17301hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17302hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17303inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17304link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17305always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17306export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17307exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17308include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17309prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17310postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17311file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17312variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17313need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17314need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17315version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17316runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17317shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17318shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17319libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17320library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17321soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17322install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17323postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17324postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17325finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17326finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17327hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17328sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17329sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17330hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17331enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17332enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17333enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17334old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17335striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17336
17337LTCC='$LTCC'
17338LTCFLAGS='$LTCFLAGS'
17339compiler='$compiler_DEFAULT'
17340
17341# A function that is used when there is no print builtin or printf.
17342func_fallback_echo ()
17343{
17344  eval 'cat <<_LTECHO_EOF
17345\$1
17346_LTECHO_EOF'
17347}
17348
17349# Quote evaled strings.
17350for var in SED \
17351GREP \
17352EGREP \
17353FGREP \
17354SHELL \
17355ECHO \
17356LD \
17357PATH_SEPARATOR \
17358NM \
17359LN_S \
17360lt_SP2NL \
17361lt_NL2SP \
17362reload_flag \
17363OBJDUMP \
17364deplibs_check_method \
17365file_magic_cmd \
17366file_magic_glob \
17367want_nocaseglob \
17368DLLTOOL \
17369sharedlib_from_linklib_cmd \
17370AR \
17371AR_FLAGS \
17372archiver_list_spec \
17373STRIP \
17374RANLIB \
17375CC \
17376CFLAGS \
17377compiler \
17378lt_cv_sys_global_symbol_pipe \
17379lt_cv_sys_global_symbol_to_cdecl \
17380lt_cv_sys_global_symbol_to_c_name_address \
17381lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17382nm_file_list_spec \
17383lt_prog_compiler_no_builtin_flag \
17384lt_prog_compiler_pic \
17385lt_prog_compiler_wl \
17386lt_prog_compiler_static \
17387lt_cv_prog_compiler_c_o \
17388need_locks \
17389MANIFEST_TOOL \
17390DSYMUTIL \
17391NMEDIT \
17392LIPO \
17393OTOOL \
17394OTOOL64 \
17395shrext_cmds \
17396export_dynamic_flag_spec \
17397whole_archive_flag_spec \
17398compiler_needs_object \
17399with_gnu_ld \
17400allow_undefined_flag \
17401no_undefined_flag \
17402hardcode_libdir_flag_spec \
17403hardcode_libdir_separator \
17404exclude_expsyms \
17405include_expsyms \
17406file_list_spec \
17407variables_saved_for_relink \
17408libname_spec \
17409library_names_spec \
17410soname_spec \
17411install_override_mode \
17412finish_eval \
17413old_striplib \
17414striplib; do
17415    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17416    *[\\\\\\\`\\"\\\$]*)
17417      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17418      ;;
17419    *)
17420      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17421      ;;
17422    esac
17423done
17424
17425# Double-quote double-evaled strings.
17426for var in reload_cmds \
17427old_postinstall_cmds \
17428old_postuninstall_cmds \
17429old_archive_cmds \
17430extract_expsyms_cmds \
17431old_archive_from_new_cmds \
17432old_archive_from_expsyms_cmds \
17433archive_cmds \
17434archive_expsym_cmds \
17435module_cmds \
17436module_expsym_cmds \
17437export_symbols_cmds \
17438prelink_cmds \
17439postlink_cmds \
17440postinstall_cmds \
17441postuninstall_cmds \
17442finish_cmds \
17443sys_lib_search_path_spec \
17444sys_lib_dlsearch_path_spec; do
17445    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17446    *[\\\\\\\`\\"\\\$]*)
17447      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17448      ;;
17449    *)
17450      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17451      ;;
17452    esac
17453done
17454
17455ac_aux_dir='$ac_aux_dir'
17456xsi_shell='$xsi_shell'
17457lt_shell_append='$lt_shell_append'
17458
17459# See if we are running on zsh, and set the options which allow our
17460# commands through without removal of \ escapes INIT.
17461if test -n "\${ZSH_VERSION+set}" ; then
17462   setopt NO_GLOB_SUBST
17463fi
17464
17465
17466    PACKAGE='$PACKAGE'
17467    VERSION='$VERSION'
17468    TIMESTAMP='$TIMESTAMP'
17469    RM='$RM'
17470    ofile='$ofile'
17471
17472
17473
17474
17475_ACEOF
17476
17477cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17478
17479# Handling of arguments.
17480for ac_config_target in $ac_config_targets
17481do
17482  case $ac_config_target in
17483    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17484    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17485    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17486    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17487    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17488    "doc/config/conf.d/Makefile") CONFIG_FILES="$CONFIG_FILES doc/config/conf.d/Makefile" ;;
17489    "doc/config/vhosts.d/Makefile") CONFIG_FILES="$CONFIG_FILES doc/config/vhosts.d/Makefile" ;;
17490    "doc/config/Makefile") CONFIG_FILES="$CONFIG_FILES doc/config/Makefile" ;;
17491    "doc/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES doc/scripts/Makefile" ;;
17492    "doc/initscripts/Makefile") CONFIG_FILES="$CONFIG_FILES doc/initscripts/Makefile" ;;
17493    "doc/systemd/Makefile") CONFIG_FILES="$CONFIG_FILES doc/systemd/Makefile" ;;
17494    "doc/outdated/Makefile") CONFIG_FILES="$CONFIG_FILES doc/outdated/Makefile" ;;
17495    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17496    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17497    "tests/docroot/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/Makefile" ;;
17498    "tests/docroot/123/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/123/Makefile" ;;
17499    "tests/docroot/www/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/www/Makefile" ;;
17500    "tests/docroot/www/go/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/www/go/Makefile" ;;
17501    "tests/docroot/www/indexfile/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/www/indexfile/Makefile" ;;
17502    "tests/docroot/www/expire/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/www/expire/Makefile" ;;
17503    "distribute.sh") CONFIG_FILES="$CONFIG_FILES distribute.sh" ;;
17504
17505  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17506  esac
17507done
17508
17509
17510# If the user did not use the arguments to specify the items to instantiate,
17511# then the envvar interface is used.  Set only those that are not.
17512# We use the long form for the default assignment because of an extremely
17513# bizarre bug on SunOS 4.1.3.
17514if $ac_need_defaults; then
17515  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17516  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17517  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17518fi
17519
17520# Have a temporary directory for convenience.  Make it in the build tree
17521# simply because there is no reason against having it here, and in addition,
17522# creating and moving files from /tmp can sometimes cause problems.
17523# Hook for its removal unless debugging.
17524# Note that there is a small window in which the directory will not be cleaned:
17525# after its creation but before its name has been assigned to `$tmp'.
17526$debug ||
17527{
17528  tmp= ac_tmp=
17529  trap 'exit_status=$?
17530  : "${ac_tmp:=$tmp}"
17531  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17532' 0
17533  trap 'as_fn_exit 1' 1 2 13 15
17534}
17535# Create a (secure) tmp directory for tmp files.
17536
17537{
17538  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17539  test -d "$tmp"
17540}  ||
17541{
17542  tmp=./conf$$-$RANDOM
17543  (umask 077 && mkdir "$tmp")
17544} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17545ac_tmp=$tmp
17546
17547# Set up the scripts for CONFIG_FILES section.
17548# No need to generate them if there are no CONFIG_FILES.
17549# This happens for instance with `./config.status config.h'.
17550if test -n "$CONFIG_FILES"; then
17551
17552
17553ac_cr=`echo X | tr X '\015'`
17554# On cygwin, bash can eat \r inside `` if the user requested igncr.
17555# But we know of no other shell where ac_cr would be empty at this
17556# point, so we can use a bashism as a fallback.
17557if test "x$ac_cr" = x; then
17558  eval ac_cr=\$\'\\r\'
17559fi
17560ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17561if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17562  ac_cs_awk_cr='\\r'
17563else
17564  ac_cs_awk_cr=$ac_cr
17565fi
17566
17567echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17568_ACEOF
17569
17570
17571{
17572  echo "cat >conf$$subs.awk <<_ACEOF" &&
17573  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17574  echo "_ACEOF"
17575} >conf$$subs.sh ||
17576  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17577ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17578ac_delim='%!_!# '
17579for ac_last_try in false false false false false :; do
17580  . ./conf$$subs.sh ||
17581    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17582
17583  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17584  if test $ac_delim_n = $ac_delim_num; then
17585    break
17586  elif $ac_last_try; then
17587    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17588  else
17589    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17590  fi
17591done
17592rm -f conf$$subs.sh
17593
17594cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17595cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17596_ACEOF
17597sed -n '
17598h
17599s/^/S["/; s/!.*/"]=/
17600p
17601g
17602s/^[^!]*!//
17603:repl
17604t repl
17605s/'"$ac_delim"'$//
17606t delim
17607:nl
17608h
17609s/\(.\{148\}\)..*/\1/
17610t more1
17611s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17612p
17613n
17614b repl
17615:more1
17616s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17617p
17618g
17619s/.\{148\}//
17620t nl
17621:delim
17622h
17623s/\(.\{148\}\)..*/\1/
17624t more2
17625s/["\\]/\\&/g; s/^/"/; s/$/"/
17626p
17627b
17628:more2
17629s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17630p
17631g
17632s/.\{148\}//
17633t delim
17634' <conf$$subs.awk | sed '
17635/^[^""]/{
17636  N
17637  s/\n//
17638}
17639' >>$CONFIG_STATUS || ac_write_fail=1
17640rm -f conf$$subs.awk
17641cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17642_ACAWK
17643cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17644  for (key in S) S_is_set[key] = 1
17645  FS = ""
17646
17647}
17648{
17649  line = $ 0
17650  nfields = split(line, field, "@")
17651  substed = 0
17652  len = length(field[1])
17653  for (i = 2; i < nfields; i++) {
17654    key = field[i]
17655    keylen = length(key)
17656    if (S_is_set[key]) {
17657      value = S[key]
17658      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17659      len += length(value) + length(field[++i])
17660      substed = 1
17661    } else
17662      len += 1 + keylen
17663  }
17664
17665  print line
17666}
17667
17668_ACAWK
17669_ACEOF
17670cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17671if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17672  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17673else
17674  cat
17675fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17676  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17677_ACEOF
17678
17679# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17680# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17681# trailing colons and then remove the whole line if VPATH becomes empty
17682# (actually we leave an empty line to preserve line numbers).
17683if test "x$srcdir" = x.; then
17684  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
17685h
17686s///
17687s/^/:/
17688s/[	 ]*$/:/
17689s/:\$(srcdir):/:/g
17690s/:\${srcdir}:/:/g
17691s/:@srcdir@:/:/g
17692s/^:*//
17693s/:*$//
17694x
17695s/\(=[	 ]*\).*/\1/
17696G
17697s/\n//
17698s/^[^=]*=[	 ]*$//
17699}'
17700fi
17701
17702cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17703fi # test -n "$CONFIG_FILES"
17704
17705# Set up the scripts for CONFIG_HEADERS section.
17706# No need to generate them if there are no CONFIG_HEADERS.
17707# This happens for instance with `./config.status Makefile'.
17708if test -n "$CONFIG_HEADERS"; then
17709cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17710BEGIN {
17711_ACEOF
17712
17713# Transform confdefs.h into an awk script `defines.awk', embedded as
17714# here-document in config.status, that substitutes the proper values into
17715# config.h.in to produce config.h.
17716
17717# Create a delimiter string that does not exist in confdefs.h, to ease
17718# handling of long lines.
17719ac_delim='%!_!# '
17720for ac_last_try in false false :; do
17721  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17722  if test -z "$ac_tt"; then
17723    break
17724  elif $ac_last_try; then
17725    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17726  else
17727    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17728  fi
17729done
17730
17731# For the awk script, D is an array of macro values keyed by name,
17732# likewise P contains macro parameters if any.  Preserve backslash
17733# newline sequences.
17734
17735ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17736sed -n '
17737s/.\{148\}/&'"$ac_delim"'/g
17738t rset
17739:rset
17740s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
17741t def
17742d
17743:def
17744s/\\$//
17745t bsnl
17746s/["\\]/\\&/g
17747s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17748D["\1"]=" \3"/p
17749s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
17750d
17751:bsnl
17752s/["\\]/\\&/g
17753s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17754D["\1"]=" \3\\\\\\n"\\/p
17755t cont
17756s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17757t cont
17758d
17759:cont
17760n
17761s/.\{148\}/&'"$ac_delim"'/g
17762t clear
17763:clear
17764s/\\$//
17765t bsnlc
17766s/["\\]/\\&/g; s/^/"/; s/$/"/p
17767d
17768:bsnlc
17769s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17770b cont
17771' <confdefs.h | sed '
17772s/'"$ac_delim"'/"\\\
17773"/g' >>$CONFIG_STATUS || ac_write_fail=1
17774
17775cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17776  for (key in D) D_is_set[key] = 1
17777  FS = ""
17778}
17779/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17780  line = \$ 0
17781  split(line, arg, " ")
17782  if (arg[1] == "#") {
17783    defundef = arg[2]
17784    mac1 = arg[3]
17785  } else {
17786    defundef = substr(arg[1], 2)
17787    mac1 = arg[2]
17788  }
17789  split(mac1, mac2, "(") #)
17790  macro = mac2[1]
17791  prefix = substr(line, 1, index(line, defundef) - 1)
17792  if (D_is_set[macro]) {
17793    # Preserve the white space surrounding the "#".
17794    print prefix "define", macro P[macro] D[macro]
17795    next
17796  } else {
17797    # Replace #undef with comments.  This is necessary, for example,
17798    # in the case of _POSIX_SOURCE, which is predefined and required
17799    # on some systems where configure will not decide to define it.
17800    if (defundef == "undef") {
17801      print "/*", prefix defundef, macro, "*/"
17802      next
17803    }
17804  }
17805}
17806{ print }
17807_ACAWK
17808_ACEOF
17809cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17810  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17811fi # test -n "$CONFIG_HEADERS"
17812
17813
17814eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17815shift
17816for ac_tag
17817do
17818  case $ac_tag in
17819  :[FHLC]) ac_mode=$ac_tag; continue;;
17820  esac
17821  case $ac_mode$ac_tag in
17822  :[FHL]*:*);;
17823  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17824  :[FH]-) ac_tag=-:-;;
17825  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17826  esac
17827  ac_save_IFS=$IFS
17828  IFS=:
17829  set x $ac_tag
17830  IFS=$ac_save_IFS
17831  shift
17832  ac_file=$1
17833  shift
17834
17835  case $ac_mode in
17836  :L) ac_source=$1;;
17837  :[FH])
17838    ac_file_inputs=
17839    for ac_f
17840    do
17841      case $ac_f in
17842      -) ac_f="$ac_tmp/stdin";;
17843      *) # Look for the file first in the build tree, then in the source tree
17844	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
17845	 # because $ac_f cannot contain `:'.
17846	 test -f "$ac_f" ||
17847	   case $ac_f in
17848	   [\\/$]*) false;;
17849	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17850	   esac ||
17851	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17852      esac
17853      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17854      as_fn_append ac_file_inputs " '$ac_f'"
17855    done
17856
17857    # Let's still pretend it is `configure' which instantiates (i.e., don't
17858    # use $as_me), people would be surprised to read:
17859    #    /* config.h.  Generated by config.status.  */
17860    configure_input='Generated from '`
17861	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17862	`' by configure.'
17863    if test x"$ac_file" != x-; then
17864      configure_input="$ac_file.  $configure_input"
17865      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17866$as_echo "$as_me: creating $ac_file" >&6;}
17867    fi
17868    # Neutralize special characters interpreted by sed in replacement strings.
17869    case $configure_input in #(
17870    *\&* | *\|* | *\\* )
17871       ac_sed_conf_input=`$as_echo "$configure_input" |
17872       sed 's/[\\\\&|]/\\\\&/g'`;; #(
17873    *) ac_sed_conf_input=$configure_input;;
17874    esac
17875
17876    case $ac_tag in
17877    *:-:* | *:-) cat >"$ac_tmp/stdin" \
17878      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17879    esac
17880    ;;
17881  esac
17882
17883  ac_dir=`$as_dirname -- "$ac_file" ||
17884$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17885	 X"$ac_file" : 'X\(//\)[^/]' \| \
17886	 X"$ac_file" : 'X\(//\)$' \| \
17887	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17888$as_echo X"$ac_file" |
17889    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17890	    s//\1/
17891	    q
17892	  }
17893	  /^X\(\/\/\)[^/].*/{
17894	    s//\1/
17895	    q
17896	  }
17897	  /^X\(\/\/\)$/{
17898	    s//\1/
17899	    q
17900	  }
17901	  /^X\(\/\).*/{
17902	    s//\1/
17903	    q
17904	  }
17905	  s/.*/./; q'`
17906  as_dir="$ac_dir"; as_fn_mkdir_p
17907  ac_builddir=.
17908
17909case "$ac_dir" in
17910.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17911*)
17912  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17913  # A ".." for each directory in $ac_dir_suffix.
17914  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17915  case $ac_top_builddir_sub in
17916  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17917  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17918  esac ;;
17919esac
17920ac_abs_top_builddir=$ac_pwd
17921ac_abs_builddir=$ac_pwd$ac_dir_suffix
17922# for backward compatibility:
17923ac_top_builddir=$ac_top_build_prefix
17924
17925case $srcdir in
17926  .)  # We are building in place.
17927    ac_srcdir=.
17928    ac_top_srcdir=$ac_top_builddir_sub
17929    ac_abs_top_srcdir=$ac_pwd ;;
17930  [\\/]* | ?:[\\/]* )  # Absolute name.
17931    ac_srcdir=$srcdir$ac_dir_suffix;
17932    ac_top_srcdir=$srcdir
17933    ac_abs_top_srcdir=$srcdir ;;
17934  *) # Relative name.
17935    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17936    ac_top_srcdir=$ac_top_build_prefix$srcdir
17937    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17938esac
17939ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17940
17941
17942  case $ac_mode in
17943  :F)
17944  #
17945  # CONFIG_FILE
17946  #
17947
17948  case $INSTALL in
17949  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17950  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17951  esac
17952  ac_MKDIR_P=$MKDIR_P
17953  case $MKDIR_P in
17954  [\\/$]* | ?:[\\/]* ) ;;
17955  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17956  esac
17957_ACEOF
17958
17959cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17960# If the template does not know about datarootdir, expand it.
17961# FIXME: This hack should be removed a few years after 2.60.
17962ac_datarootdir_hack=; ac_datarootdir_seen=
17963ac_sed_dataroot='
17964/datarootdir/ {
17965  p
17966  q
17967}
17968/@datadir@/p
17969/@docdir@/p
17970/@infodir@/p
17971/@localedir@/p
17972/@mandir@/p'
17973case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17974*datarootdir*) ac_datarootdir_seen=yes;;
17975*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17976  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17977$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17978_ACEOF
17979cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17980  ac_datarootdir_hack='
17981  s&@datadir@&$datadir&g
17982  s&@docdir@&$docdir&g
17983  s&@infodir@&$infodir&g
17984  s&@localedir@&$localedir&g
17985  s&@mandir@&$mandir&g
17986  s&\\\${datarootdir}&$datarootdir&g' ;;
17987esac
17988_ACEOF
17989
17990# Neutralize VPATH when `$srcdir' = `.'.
17991# Shell code in configure.ac might set extrasub.
17992# FIXME: do we really want to maintain this feature?
17993cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17994ac_sed_extra="$ac_vpsub
17995$extrasub
17996_ACEOF
17997cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17998:t
17999/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18000s|@configure_input@|$ac_sed_conf_input|;t t
18001s&@top_builddir@&$ac_top_builddir_sub&;t t
18002s&@top_build_prefix@&$ac_top_build_prefix&;t t
18003s&@srcdir@&$ac_srcdir&;t t
18004s&@abs_srcdir@&$ac_abs_srcdir&;t t
18005s&@top_srcdir@&$ac_top_srcdir&;t t
18006s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18007s&@builddir@&$ac_builddir&;t t
18008s&@abs_builddir@&$ac_abs_builddir&;t t
18009s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18010s&@INSTALL@&$ac_INSTALL&;t t
18011s&@MKDIR_P@&$ac_MKDIR_P&;t t
18012$ac_datarootdir_hack
18013"
18014eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18015  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18016
18017test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18018  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18019  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
18020      "$ac_tmp/out"`; test -z "$ac_out"; } &&
18021  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18022which seems to be undefined.  Please make sure it is defined" >&5
18023$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18024which seems to be undefined.  Please make sure it is defined" >&2;}
18025
18026  rm -f "$ac_tmp/stdin"
18027  case $ac_file in
18028  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18029  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18030  esac \
18031  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18032 ;;
18033  :H)
18034  #
18035  # CONFIG_HEADER
18036  #
18037  if test x"$ac_file" != x-; then
18038    {
18039      $as_echo "/* $configure_input  */" \
18040      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18041    } >"$ac_tmp/config.h" \
18042      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18043    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18044      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18045$as_echo "$as_me: $ac_file is unchanged" >&6;}
18046    else
18047      rm -f "$ac_file"
18048      mv "$ac_tmp/config.h" "$ac_file" \
18049	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18050    fi
18051  else
18052    $as_echo "/* $configure_input  */" \
18053      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18054      || as_fn_error $? "could not create -" "$LINENO" 5
18055  fi
18056# Compute "$ac_file"'s index in $config_headers.
18057_am_arg="$ac_file"
18058_am_stamp_count=1
18059for _am_header in $config_headers :; do
18060  case $_am_header in
18061    $_am_arg | $_am_arg:* )
18062      break ;;
18063    * )
18064      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18065  esac
18066done
18067echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18068$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18069	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18070	 X"$_am_arg" : 'X\(//\)$' \| \
18071	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18072$as_echo X"$_am_arg" |
18073    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18074	    s//\1/
18075	    q
18076	  }
18077	  /^X\(\/\/\)[^/].*/{
18078	    s//\1/
18079	    q
18080	  }
18081	  /^X\(\/\/\)$/{
18082	    s//\1/
18083	    q
18084	  }
18085	  /^X\(\/\).*/{
18086	    s//\1/
18087	    q
18088	  }
18089	  s/.*/./; q'`/stamp-h$_am_stamp_count
18090 ;;
18091
18092  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18093$as_echo "$as_me: executing $ac_file commands" >&6;}
18094 ;;
18095  esac
18096
18097
18098  case $ac_file$ac_mode in
18099    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18100  # Autoconf 2.62 quotes --file arguments for eval, but not when files
18101  # are listed without --file.  Let's play safe and only enable the eval
18102  # if we detect the quoting.
18103  case $CONFIG_FILES in
18104  *\'*) eval set x "$CONFIG_FILES" ;;
18105  *)   set x $CONFIG_FILES ;;
18106  esac
18107  shift
18108  for mf
18109  do
18110    # Strip MF so we end up with the name of the file.
18111    mf=`echo "$mf" | sed -e 's/:.*$//'`
18112    # Check whether this is an Automake generated Makefile or not.
18113    # We used to match only the files named `Makefile.in', but
18114    # some people rename them; so instead we look at the file content.
18115    # Grep'ing the first line is not enough: some people post-process
18116    # each Makefile.in and add a new line on top of each file to say so.
18117    # Grep'ing the whole file is not good either: AIX grep has a line
18118    # limit of 2048, but all sed's we know have understand at least 4000.
18119    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18120      dirpart=`$as_dirname -- "$mf" ||
18121$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18122	 X"$mf" : 'X\(//\)[^/]' \| \
18123	 X"$mf" : 'X\(//\)$' \| \
18124	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18125$as_echo X"$mf" |
18126    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18127	    s//\1/
18128	    q
18129	  }
18130	  /^X\(\/\/\)[^/].*/{
18131	    s//\1/
18132	    q
18133	  }
18134	  /^X\(\/\/\)$/{
18135	    s//\1/
18136	    q
18137	  }
18138	  /^X\(\/\).*/{
18139	    s//\1/
18140	    q
18141	  }
18142	  s/.*/./; q'`
18143    else
18144      continue
18145    fi
18146    # Extract the definition of DEPDIR, am__include, and am__quote
18147    # from the Makefile without running `make'.
18148    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18149    test -z "$DEPDIR" && continue
18150    am__include=`sed -n 's/^am__include = //p' < "$mf"`
18151    test -z "am__include" && continue
18152    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18153    # When using ansi2knr, U may be empty or an underscore; expand it
18154    U=`sed -n 's/^U = //p' < "$mf"`
18155    # Find all dependency output files, they are included files with
18156    # $(DEPDIR) in their names.  We invoke sed twice because it is the
18157    # simplest approach to changing $(DEPDIR) to its actual value in the
18158    # expansion.
18159    for file in `sed -n "
18160      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18161	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18162      # Make sure the directory exists.
18163      test -f "$dirpart/$file" && continue
18164      fdir=`$as_dirname -- "$file" ||
18165$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18166	 X"$file" : 'X\(//\)[^/]' \| \
18167	 X"$file" : 'X\(//\)$' \| \
18168	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18169$as_echo X"$file" |
18170    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18171	    s//\1/
18172	    q
18173	  }
18174	  /^X\(\/\/\)[^/].*/{
18175	    s//\1/
18176	    q
18177	  }
18178	  /^X\(\/\/\)$/{
18179	    s//\1/
18180	    q
18181	  }
18182	  /^X\(\/\).*/{
18183	    s//\1/
18184	    q
18185	  }
18186	  s/.*/./; q'`
18187      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18188      # echo "creating $dirpart/$file"
18189      echo '# dummy' > "$dirpart/$file"
18190    done
18191  done
18192}
18193 ;;
18194    "libtool":C)
18195
18196    # See if we are running on zsh, and set the options which allow our
18197    # commands through without removal of \ escapes.
18198    if test -n "${ZSH_VERSION+set}" ; then
18199      setopt NO_GLOB_SUBST
18200    fi
18201
18202    cfgfile="${ofile}T"
18203    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18204    $RM "$cfgfile"
18205
18206    cat <<_LT_EOF >> "$cfgfile"
18207#! $SHELL
18208
18209# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18210# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18211# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18212# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18213#
18214#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18215#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18216#                 Foundation, Inc.
18217#   Written by Gordon Matzigkeit, 1996
18218#
18219#   This file is part of GNU Libtool.
18220#
18221# GNU Libtool is free software; you can redistribute it and/or
18222# modify it under the terms of the GNU General Public License as
18223# published by the Free Software Foundation; either version 2 of
18224# the License, or (at your option) any later version.
18225#
18226# As a special exception to the GNU General Public License,
18227# if you distribute this file as part of a program or library that
18228# is built using GNU Libtool, you may include this file under the
18229# same distribution terms that you use for the rest of that program.
18230#
18231# GNU Libtool is distributed in the hope that it will be useful,
18232# but WITHOUT ANY WARRANTY; without even the implied warranty of
18233# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18234# GNU General Public License for more details.
18235#
18236# You should have received a copy of the GNU General Public License
18237# along with GNU Libtool; see the file COPYING.  If not, a copy
18238# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18239# obtained by writing to the Free Software Foundation, Inc.,
18240# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18241
18242
18243# The names of the tagged configurations supported by this script.
18244available_tags=""
18245
18246# ### BEGIN LIBTOOL CONFIG
18247
18248# A sed program that does not truncate output.
18249SED=$lt_SED
18250
18251# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18252Xsed="\$SED -e 1s/^X//"
18253
18254# A grep program that handles long lines.
18255GREP=$lt_GREP
18256
18257# An ERE matcher.
18258EGREP=$lt_EGREP
18259
18260# A literal string matcher.
18261FGREP=$lt_FGREP
18262
18263# Shell to use when invoking shell scripts.
18264SHELL=$lt_SHELL
18265
18266# An echo program that protects backslashes.
18267ECHO=$lt_ECHO
18268
18269# Whether or not to build static libraries.
18270build_old_libs=$enable_static
18271
18272# Whether or not to build shared libraries.
18273build_libtool_libs=$enable_shared
18274
18275# Which release of libtool.m4 was used?
18276macro_version=$macro_version
18277macro_revision=$macro_revision
18278
18279# What type of objects to build.
18280pic_mode=$pic_mode
18281
18282# Whether or not to optimize for fast installation.
18283fast_install=$enable_fast_install
18284
18285# The PATH separator for the build system.
18286PATH_SEPARATOR=$lt_PATH_SEPARATOR
18287
18288# The host system.
18289host_alias=$host_alias
18290host=$host
18291host_os=$host_os
18292
18293# The build system.
18294build_alias=$build_alias
18295build=$build
18296build_os=$build_os
18297
18298# A BSD- or MS-compatible name lister.
18299NM=$lt_NM
18300
18301# Whether we need soft or hard links.
18302LN_S=$lt_LN_S
18303
18304# What is the maximum length of a command?
18305max_cmd_len=$max_cmd_len
18306
18307# Object file suffix (normally "o").
18308objext=$ac_objext
18309
18310# Executable file suffix (normally "").
18311exeext=$exeext
18312
18313# whether the shell understands "unset".
18314lt_unset=$lt_unset
18315
18316# turn spaces into newlines.
18317SP2NL=$lt_lt_SP2NL
18318
18319# turn newlines into spaces.
18320NL2SP=$lt_lt_NL2SP
18321
18322# convert \$build file names to \$host format.
18323to_host_file_cmd=$lt_cv_to_host_file_cmd
18324
18325# convert \$build files to toolchain format.
18326to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18327
18328# An object symbol dumper.
18329OBJDUMP=$lt_OBJDUMP
18330
18331# Method to check whether dependent libraries are shared objects.
18332deplibs_check_method=$lt_deplibs_check_method
18333
18334# Command to use when deplibs_check_method = "file_magic".
18335file_magic_cmd=$lt_file_magic_cmd
18336
18337# How to find potential files when deplibs_check_method = "file_magic".
18338file_magic_glob=$lt_file_magic_glob
18339
18340# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18341want_nocaseglob=$lt_want_nocaseglob
18342
18343# DLL creation program.
18344DLLTOOL=$lt_DLLTOOL
18345
18346# Command to associate shared and link libraries.
18347sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18348
18349# The archiver.
18350AR=$lt_AR
18351
18352# Flags to create an archive.
18353AR_FLAGS=$lt_AR_FLAGS
18354
18355# How to feed a file listing to the archiver.
18356archiver_list_spec=$lt_archiver_list_spec
18357
18358# A symbol stripping program.
18359STRIP=$lt_STRIP
18360
18361# Commands used to install an old-style archive.
18362RANLIB=$lt_RANLIB
18363old_postinstall_cmds=$lt_old_postinstall_cmds
18364old_postuninstall_cmds=$lt_old_postuninstall_cmds
18365
18366# Whether to use a lock for old archive extraction.
18367lock_old_archive_extraction=$lock_old_archive_extraction
18368
18369# A C compiler.
18370LTCC=$lt_CC
18371
18372# LTCC compiler flags.
18373LTCFLAGS=$lt_CFLAGS
18374
18375# Take the output of nm and produce a listing of raw symbols and C names.
18376global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18377
18378# Transform the output of nm in a proper C declaration.
18379global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18380
18381# Transform the output of nm in a C name address pair.
18382global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18383
18384# Transform the output of nm in a C name address pair when lib prefix is needed.
18385global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18386
18387# Specify filename containing input files for \$NM.
18388nm_file_list_spec=$lt_nm_file_list_spec
18389
18390# The root where to search for dependent libraries,and in which our libraries should be installed.
18391lt_sysroot=$lt_sysroot
18392
18393# The name of the directory that contains temporary libtool files.
18394objdir=$objdir
18395
18396# Used to examine libraries when file_magic_cmd begins with "file".
18397MAGIC_CMD=$MAGIC_CMD
18398
18399# Must we lock files when doing compilation?
18400need_locks=$lt_need_locks
18401
18402# Manifest tool.
18403MANIFEST_TOOL=$lt_MANIFEST_TOOL
18404
18405# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18406DSYMUTIL=$lt_DSYMUTIL
18407
18408# Tool to change global to local symbols on Mac OS X.
18409NMEDIT=$lt_NMEDIT
18410
18411# Tool to manipulate fat objects and archives on Mac OS X.
18412LIPO=$lt_LIPO
18413
18414# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18415OTOOL=$lt_OTOOL
18416
18417# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18418OTOOL64=$lt_OTOOL64
18419
18420# Old archive suffix (normally "a").
18421libext=$libext
18422
18423# Shared library suffix (normally ".so").
18424shrext_cmds=$lt_shrext_cmds
18425
18426# The commands to extract the exported symbol list from a shared archive.
18427extract_expsyms_cmds=$lt_extract_expsyms_cmds
18428
18429# Variables whose values should be saved in libtool wrapper scripts and
18430# restored at link time.
18431variables_saved_for_relink=$lt_variables_saved_for_relink
18432
18433# Do we need the "lib" prefix for modules?
18434need_lib_prefix=$need_lib_prefix
18435
18436# Do we need a version for libraries?
18437need_version=$need_version
18438
18439# Library versioning type.
18440version_type=$version_type
18441
18442# Shared library runtime path variable.
18443runpath_var=$runpath_var
18444
18445# Shared library path variable.
18446shlibpath_var=$shlibpath_var
18447
18448# Is shlibpath searched before the hard-coded library search path?
18449shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18450
18451# Format of library name prefix.
18452libname_spec=$lt_libname_spec
18453
18454# List of archive names.  First name is the real one, the rest are links.
18455# The last name is the one that the linker finds with -lNAME
18456library_names_spec=$lt_library_names_spec
18457
18458# The coded name of the library, if different from the real name.
18459soname_spec=$lt_soname_spec
18460
18461# Permission mode override for installation of shared libraries.
18462install_override_mode=$lt_install_override_mode
18463
18464# Command to use after installation of a shared archive.
18465postinstall_cmds=$lt_postinstall_cmds
18466
18467# Command to use after uninstallation of a shared archive.
18468postuninstall_cmds=$lt_postuninstall_cmds
18469
18470# Commands used to finish a libtool library installation in a directory.
18471finish_cmds=$lt_finish_cmds
18472
18473# As "finish_cmds", except a single script fragment to be evaled but
18474# not shown.
18475finish_eval=$lt_finish_eval
18476
18477# Whether we should hardcode library paths into libraries.
18478hardcode_into_libs=$hardcode_into_libs
18479
18480# Compile-time system search path for libraries.
18481sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18482
18483# Run-time system search path for libraries.
18484sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18485
18486# Whether dlopen is supported.
18487dlopen_support=$enable_dlopen
18488
18489# Whether dlopen of programs is supported.
18490dlopen_self=$enable_dlopen_self
18491
18492# Whether dlopen of statically linked programs is supported.
18493dlopen_self_static=$enable_dlopen_self_static
18494
18495# Commands to strip libraries.
18496old_striplib=$lt_old_striplib
18497striplib=$lt_striplib
18498
18499
18500# The linker used to build libraries.
18501LD=$lt_LD
18502
18503# How to create reloadable object files.
18504reload_flag=$lt_reload_flag
18505reload_cmds=$lt_reload_cmds
18506
18507# Commands used to build an old-style archive.
18508old_archive_cmds=$lt_old_archive_cmds
18509
18510# A language specific compiler.
18511CC=$lt_compiler
18512
18513# Is the compiler the GNU compiler?
18514with_gcc=$GCC
18515
18516# Compiler flag to turn off builtin functions.
18517no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18518
18519# Additional compiler flags for building library objects.
18520pic_flag=$lt_lt_prog_compiler_pic
18521
18522# How to pass a linker flag through the compiler.
18523wl=$lt_lt_prog_compiler_wl
18524
18525# Compiler flag to prevent dynamic linking.
18526link_static_flag=$lt_lt_prog_compiler_static
18527
18528# Does compiler simultaneously support -c and -o options?
18529compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18530
18531# Whether or not to add -lc for building shared libraries.
18532build_libtool_need_lc=$archive_cmds_need_lc
18533
18534# Whether or not to disallow shared libs when runtime libs are static.
18535allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18536
18537# Compiler flag to allow reflexive dlopens.
18538export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18539
18540# Compiler flag to generate shared objects directly from archives.
18541whole_archive_flag_spec=$lt_whole_archive_flag_spec
18542
18543# Whether the compiler copes with passing no objects directly.
18544compiler_needs_object=$lt_compiler_needs_object
18545
18546# Create an old-style archive from a shared archive.
18547old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18548
18549# Create a temporary old-style archive to link instead of a shared archive.
18550old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18551
18552# Commands used to build a shared archive.
18553archive_cmds=$lt_archive_cmds
18554archive_expsym_cmds=$lt_archive_expsym_cmds
18555
18556# Commands used to build a loadable module if different from building
18557# a shared archive.
18558module_cmds=$lt_module_cmds
18559module_expsym_cmds=$lt_module_expsym_cmds
18560
18561# Whether we are building with GNU ld or not.
18562with_gnu_ld=$lt_with_gnu_ld
18563
18564# Flag that allows shared libraries with undefined symbols to be built.
18565allow_undefined_flag=$lt_allow_undefined_flag
18566
18567# Flag that enforces no undefined symbols.
18568no_undefined_flag=$lt_no_undefined_flag
18569
18570# Flag to hardcode \$libdir into a binary during linking.
18571# This must work even if \$libdir does not exist
18572hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18573
18574# Whether we need a single "-rpath" flag with a separated argument.
18575hardcode_libdir_separator=$lt_hardcode_libdir_separator
18576
18577# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18578# DIR into the resulting binary.
18579hardcode_direct=$hardcode_direct
18580
18581# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18582# DIR into the resulting binary and the resulting library dependency is
18583# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18584# library is relocated.
18585hardcode_direct_absolute=$hardcode_direct_absolute
18586
18587# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18588# into the resulting binary.
18589hardcode_minus_L=$hardcode_minus_L
18590
18591# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18592# into the resulting binary.
18593hardcode_shlibpath_var=$hardcode_shlibpath_var
18594
18595# Set to "yes" if building a shared library automatically hardcodes DIR
18596# into the library and all subsequent libraries and executables linked
18597# against it.
18598hardcode_automatic=$hardcode_automatic
18599
18600# Set to yes if linker adds runtime paths of dependent libraries
18601# to runtime path list.
18602inherit_rpath=$inherit_rpath
18603
18604# Whether libtool must link a program against all its dependency libraries.
18605link_all_deplibs=$link_all_deplibs
18606
18607# Set to "yes" if exported symbols are required.
18608always_export_symbols=$always_export_symbols
18609
18610# The commands to list exported symbols.
18611export_symbols_cmds=$lt_export_symbols_cmds
18612
18613# Symbols that should not be listed in the preloaded symbols.
18614exclude_expsyms=$lt_exclude_expsyms
18615
18616# Symbols that must always be exported.
18617include_expsyms=$lt_include_expsyms
18618
18619# Commands necessary for linking programs (against libraries) with templates.
18620prelink_cmds=$lt_prelink_cmds
18621
18622# Commands necessary for finishing linking programs.
18623postlink_cmds=$lt_postlink_cmds
18624
18625# Specify filename containing input files.
18626file_list_spec=$lt_file_list_spec
18627
18628# How to hardcode a shared library path into an executable.
18629hardcode_action=$hardcode_action
18630
18631# ### END LIBTOOL CONFIG
18632
18633_LT_EOF
18634
18635  case $host_os in
18636  aix3*)
18637    cat <<\_LT_EOF >> "$cfgfile"
18638# AIX sometimes has problems with the GCC collect2 program.  For some
18639# reason, if we set the COLLECT_NAMES environment variable, the problems
18640# vanish in a puff of smoke.
18641if test "X${COLLECT_NAMES+set}" != Xset; then
18642  COLLECT_NAMES=
18643  export COLLECT_NAMES
18644fi
18645_LT_EOF
18646    ;;
18647  esac
18648
18649
18650ltmain="$ac_aux_dir/ltmain.sh"
18651
18652
18653  # We use sed instead of cat because bash on DJGPP gets confused if
18654  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18655  # text mode, it properly converts lines to CR/LF.  This bash problem
18656  # is reportedly fixed, but why not run on old versions too?
18657  sed '$q' "$ltmain" >> "$cfgfile" \
18658     || (rm -f "$cfgfile"; exit 1)
18659
18660  if test x"$xsi_shell" = xyes; then
18661  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18662func_dirname ()\
18663{\
18664\    case ${1} in\
18665\      */*) func_dirname_result="${1%/*}${2}" ;;\
18666\      *  ) func_dirname_result="${3}" ;;\
18667\    esac\
18668} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18669  && mv -f "$cfgfile.tmp" "$cfgfile" \
18670    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18671test 0 -eq $? || _lt_function_replace_fail=:
18672
18673
18674  sed -e '/^func_basename ()$/,/^} # func_basename /c\
18675func_basename ()\
18676{\
18677\    func_basename_result="${1##*/}"\
18678} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18679  && mv -f "$cfgfile.tmp" "$cfgfile" \
18680    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18681test 0 -eq $? || _lt_function_replace_fail=:
18682
18683
18684  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18685func_dirname_and_basename ()\
18686{\
18687\    case ${1} in\
18688\      */*) func_dirname_result="${1%/*}${2}" ;;\
18689\      *  ) func_dirname_result="${3}" ;;\
18690\    esac\
18691\    func_basename_result="${1##*/}"\
18692} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18693  && mv -f "$cfgfile.tmp" "$cfgfile" \
18694    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18695test 0 -eq $? || _lt_function_replace_fail=:
18696
18697
18698  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18699func_stripname ()\
18700{\
18701\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18702\    # positional parameters, so assign one to ordinary parameter first.\
18703\    func_stripname_result=${3}\
18704\    func_stripname_result=${func_stripname_result#"${1}"}\
18705\    func_stripname_result=${func_stripname_result%"${2}"}\
18706} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18707  && mv -f "$cfgfile.tmp" "$cfgfile" \
18708    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18709test 0 -eq $? || _lt_function_replace_fail=:
18710
18711
18712  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18713func_split_long_opt ()\
18714{\
18715\    func_split_long_opt_name=${1%%=*}\
18716\    func_split_long_opt_arg=${1#*=}\
18717} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18718  && mv -f "$cfgfile.tmp" "$cfgfile" \
18719    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18720test 0 -eq $? || _lt_function_replace_fail=:
18721
18722
18723  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18724func_split_short_opt ()\
18725{\
18726\    func_split_short_opt_arg=${1#??}\
18727\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18728} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18729  && mv -f "$cfgfile.tmp" "$cfgfile" \
18730    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18731test 0 -eq $? || _lt_function_replace_fail=:
18732
18733
18734  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18735func_lo2o ()\
18736{\
18737\    case ${1} in\
18738\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18739\      *)    func_lo2o_result=${1} ;;\
18740\    esac\
18741} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18742  && mv -f "$cfgfile.tmp" "$cfgfile" \
18743    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18744test 0 -eq $? || _lt_function_replace_fail=:
18745
18746
18747  sed -e '/^func_xform ()$/,/^} # func_xform /c\
18748func_xform ()\
18749{\
18750    func_xform_result=${1%.*}.lo\
18751} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18752  && mv -f "$cfgfile.tmp" "$cfgfile" \
18753    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18754test 0 -eq $? || _lt_function_replace_fail=:
18755
18756
18757  sed -e '/^func_arith ()$/,/^} # func_arith /c\
18758func_arith ()\
18759{\
18760    func_arith_result=$(( $* ))\
18761} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18762  && mv -f "$cfgfile.tmp" "$cfgfile" \
18763    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18764test 0 -eq $? || _lt_function_replace_fail=:
18765
18766
18767  sed -e '/^func_len ()$/,/^} # func_len /c\
18768func_len ()\
18769{\
18770    func_len_result=${#1}\
18771} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18772  && mv -f "$cfgfile.tmp" "$cfgfile" \
18773    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18774test 0 -eq $? || _lt_function_replace_fail=:
18775
18776fi
18777
18778if test x"$lt_shell_append" = xyes; then
18779  sed -e '/^func_append ()$/,/^} # func_append /c\
18780func_append ()\
18781{\
18782    eval "${1}+=\\${2}"\
18783} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18784  && mv -f "$cfgfile.tmp" "$cfgfile" \
18785    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18786test 0 -eq $? || _lt_function_replace_fail=:
18787
18788
18789  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18790func_append_quoted ()\
18791{\
18792\    func_quote_for_eval "${2}"\
18793\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18794} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18795  && mv -f "$cfgfile.tmp" "$cfgfile" \
18796    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18797test 0 -eq $? || _lt_function_replace_fail=:
18798
18799
18800  # Save a `func_append' function call where possible by direct use of '+='
18801  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18802    && mv -f "$cfgfile.tmp" "$cfgfile" \
18803      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18804  test 0 -eq $? || _lt_function_replace_fail=:
18805else
18806  # Save a `func_append' function call even when '+=' is not available
18807  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18808    && mv -f "$cfgfile.tmp" "$cfgfile" \
18809      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18810  test 0 -eq $? || _lt_function_replace_fail=:
18811fi
18812
18813if test x"$_lt_function_replace_fail" = x":"; then
18814  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18815$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18816fi
18817
18818
18819   mv -f "$cfgfile" "$ofile" ||
18820    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18821  chmod +x "$ofile"
18822
18823 ;;
18824
18825  esac
18826done # for ac_tag
18827
18828
18829as_fn_exit 0
18830_ACEOF
18831ac_clean_files=$ac_clean_files_save
18832
18833test $ac_write_fail = 0 ||
18834  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18835
18836
18837# configure is writing to config.log, and then calls config.status.
18838# config.status does its own redirection, appending to config.log.
18839# Unfortunately, on DOS this fails, as config.log is still kept open
18840# by configure, so config.status won't be able to write to it; its
18841# output is simply discarded.  So we exec the FD to /dev/null,
18842# effectively closing config.log, so it can be properly (re)opened and
18843# appended to by config.status.  When coming back to configure, we
18844# need to make the FD available again.
18845if test "$no_create" != yes; then
18846  ac_cs_success=:
18847  ac_config_status_args=
18848  test "$silent" = yes &&
18849    ac_config_status_args="$ac_config_status_args --quiet"
18850  exec 5>/dev/null
18851  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18852  exec 5>>config.log
18853  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18854  # would make configure fail if this is the last instruction.
18855  $ac_cs_success || as_fn_exit 1
18856fi
18857if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18858  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18859$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18860fi
18861
18862
18863
18864do_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"
18865do_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"
18866
18867plugins="mod_rewrite mod_redirect mod_ssi mod_trigger_b4_dl"
18868features="regex-conditionals"
18869if test ! "x$PCRE_LIB" = x; then
18870	do_build="$do_build $plugins"
18871	enable_feature="$features"
18872else
18873	no_build="$no_build $plugins"
18874	disable_feature="$features"
18875fi
18876
18877plugins="mod_mysql_vhost"
18878if test ! "x$MYSQL_LIBS" = x; then
18879	do_build="$do_build $plugins"
18880else
18881	no_build="$no_build $plugins"
18882fi
18883
18884plugins="mod_cml mod_magnet"
18885if test ! "x$LUA_LIBS" = x; then
18886	do_build="$do_build $plugins"
18887else
18888	no_build="$no_build $plugins"
18889fi
18890
18891features="storage-gdbm"
18892if test ! "x$GDBM_LIB" = x; then
18893	enable_feature="$enable_feature $features"
18894else
18895	disable_feature="$disable_feature $features"
18896fi
18897
18898features="storage-memcache"
18899if test ! "x$MEMCACHE_LIB" = x; then
18900	enable_feature="$enable_feature $features"
18901else
18902	disable_feature="$disable_feature $features"
18903fi
18904
18905features="compress-gzip compress-deflate"
18906if test ! "x$Z_LIB" = x; then
18907	enable_feature="$enable_feature $features"
18908else
18909	disable_feature="$disable_feature $features"
18910fi
18911
18912features="compress-bzip2"
18913if test ! "x$BZ_LIB" = x; then
18914	enable_feature="$enable_feature $features"
18915else
18916	disable_feature="$disable_feature $features"
18917fi
18918
18919features="auth-ldap"
18920if test ! "x$LDAP_LIB" = x; then
18921	enable_feature="$enable_feature $features"
18922else
18923	disable_feature="$disable_feature $features"
18924fi
18925
18926features="network-openssl"
18927if test ! "x$SSL_LIB" = x; then
18928	enable_feature="$enable_feature $features"
18929else
18930	disable_feature="$disable_feature $features"
18931fi
18932
18933features="auth-crypt"
18934if test "$ac_cv_search_crypt" = no; then
18935	disable_feature="$disable_feature $features"
18936else
18937	enable_feature="$enable_feature $features"
18938fi
18939
18940features="network-ipv6"
18941if test "$ac_cv_ipv6_support" = yes; then
18942	enable_feature="$enable_feature $features"
18943else
18944	disable_feature="$disable_feature $features"
18945fi
18946
18947features="large-files"
18948if test "$enable_lfs" = yes; then
18949	enable_feature="$enable_feature $features"
18950else
18951	disable_feature="$disable_feature $features"
18952fi
18953
18954features="multithreading"
18955if test "$enable_multithreading" = yes; then
18956	enable_feature="$enable_feature $features"
18957else
18958	disable_feature="$disable_feature $features"
18959fi
18960
18961features="stat-cache-fam"
18962if test ! "x$FAM_LIBS" = x; then
18963	enable_feature="$enable_feature $features"
18964else
18965	disable_feature="$disable_feature $features"
18966fi
18967
18968features="webdav-properties"
18969if test "x$XML_LIBS" \!= x -a "x$SQLITE_LIBS" \!= x; then
18970	enable_feature="$enable_feature $features"
18971else
18972	disable_feature="$disable_feature $features"
18973fi
18974
18975features="webdav-locks"
18976if test "x$UUID_LIBS" \!= x; then
18977	enable_feature="$enable_feature $features"
18978else
18979	disable_feature="$disable_feature $features"
18980fi
18981
18982
18983
18984$ECHO
18985$ECHO "Plugins:"
18986$ECHO
18987
18988$ECHO "enabled: "
18989for p in $do_build; do
18990	$ECHO "  $p"
18991done | sort
18992
18993$ECHO "disabled: "
18994for p in $no_build; do
18995	$ECHO "  $p"
18996done | sort
18997
18998$ECHO
18999$ECHO "Features:"
19000$ECHO
19001
19002$ECHO "enabled: "
19003for p in $enable_feature; do
19004	$ECHO "  $p"
19005done | sort
19006
19007$ECHO "disabled: "
19008for p in $disable_feature; do
19009	$ECHO "  $p"
19010done | sort
19011
19012$ECHO
19013