1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.67 for lighttpd 1.4.39.
4#
5# Report bugs to <contact@lighttpd.net>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140  emulate sh
141  NULLCMD=:
142  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143  # is contrary to our usage.  Disable this feature.
144  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145  setopt NO_GLOB_SUBST
146else
147  case \`(set -o) 2>/dev/null\` in #(
148  *posix*) :
149    set -o posix ;; #(
150  *) :
151     ;;
152esac
153fi
154"
155  as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169  exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1
177
178  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182    PATH=/empty FPATH=/empty; export PATH FPATH
183    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
185  if (eval "$as_required") 2>/dev/null; then :
186  as_have_required=yes
187else
188  as_have_required=no
189fi
190  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191
192else
193  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194as_found=false
195for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196do
197  IFS=$as_save_IFS
198  test -z "$as_dir" && as_dir=.
199  as_found=:
200  case $as_dir in #(
201	 /*)
202	   for as_base in sh bash ksh sh5; do
203	     # Try only shells that exist, to save several forks.
204	     as_shell=$as_dir/$as_base
205	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207  CONFIG_SHELL=$as_shell as_have_required=yes
208		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209  break 2
210fi
211fi
212	   done;;
213       esac
214  as_found=false
215done
216$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218  CONFIG_SHELL=$SHELL as_have_required=yes
219fi; }
220IFS=$as_save_IFS
221
222
223      if test "x$CONFIG_SHELL" != x; then :
224  # We cannot yet assume a decent shell, so we have to provide a
225	# neutralization value for shells without unset; and this also
226	# works around shells that cannot unset nonexistent variables.
227	BASH_ENV=/dev/null
228	ENV=/dev/null
229	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230	export CONFIG_SHELL
231	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232fi
233
234    if test x$as_have_required = xno; then :
235  $as_echo "$0: This script requires a shell more modern than all"
236  $as_echo "$0: the shells that I found on your system."
237  if test x${ZSH_VERSION+set} = xset ; then
238    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240  else
241    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: contact@lighttpd.net about your system, including any
243$0: error possibly output before this message. Then install
244$0: a modern shell, or manually run the script under such a
245$0: shell if you do have one."
246  fi
247  exit 1
248fi
249fi
250fi
251SHELL=${CONFIG_SHELL-/bin/sh}
252export SHELL
253# Unset more variables known to interfere with behavior of common tools.
254CLICOLOR_FORCE= GREP_OPTIONS=
255unset CLICOLOR_FORCE GREP_OPTIONS
256
257## --------------------- ##
258## M4sh Shell Functions. ##
259## --------------------- ##
260# as_fn_unset VAR
261# ---------------
262# Portably unset VAR.
263as_fn_unset ()
264{
265  { eval $1=; unset $1;}
266}
267as_unset=as_fn_unset
268
269# as_fn_set_status STATUS
270# -----------------------
271# Set $? to STATUS, without forking.
272as_fn_set_status ()
273{
274  return $1
275} # as_fn_set_status
276
277# as_fn_exit STATUS
278# -----------------
279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280as_fn_exit ()
281{
282  set +e
283  as_fn_set_status $1
284  exit $1
285} # as_fn_exit
286
287# as_fn_mkdir_p
288# -------------
289# Create "$as_dir" as a directory, including parents if necessary.
290as_fn_mkdir_p ()
291{
292
293  case $as_dir in #(
294  -*) as_dir=./$as_dir;;
295  esac
296  test -d "$as_dir" || eval $as_mkdir_p || {
297    as_dirs=
298    while :; do
299      case $as_dir in #(
300      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301      *) as_qdir=$as_dir;;
302      esac
303      as_dirs="'$as_qdir' $as_dirs"
304      as_dir=`$as_dirname -- "$as_dir" ||
305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306	 X"$as_dir" : 'X\(//\)[^/]' \| \
307	 X"$as_dir" : 'X\(//\)$' \| \
308	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309$as_echo X"$as_dir" |
310    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311	    s//\1/
312	    q
313	  }
314	  /^X\(\/\/\)[^/].*/{
315	    s//\1/
316	    q
317	  }
318	  /^X\(\/\/\)$/{
319	    s//\1/
320	    q
321	  }
322	  /^X\(\/\).*/{
323	    s//\1/
324	    q
325	  }
326	  s/.*/./; q'`
327      test -d "$as_dir" && break
328    done
329    test -z "$as_dirs" || eval "mkdir $as_dirs"
330  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331
332
333} # as_fn_mkdir_p
334# as_fn_append VAR VALUE
335# ----------------------
336# Append the text in VALUE to the end of the definition contained in VAR. Take
337# advantage of any shell optimizations that allow amortized linear growth over
338# repeated appends, instead of the typical quadratic growth present in naive
339# implementations.
340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341  eval 'as_fn_append ()
342  {
343    eval $1+=\$2
344  }'
345else
346  as_fn_append ()
347  {
348    eval $1=\$$1\$2
349  }
350fi # as_fn_append
351
352# as_fn_arith ARG...
353# ------------------
354# Perform arithmetic evaluation on the ARGs, and store the result in the
355# global $as_val. Take advantage of shells that can avoid forks. The arguments
356# must be portable across $(()) and expr.
357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358  eval 'as_fn_arith ()
359  {
360    as_val=$(( $* ))
361  }'
362else
363  as_fn_arith ()
364  {
365    as_val=`expr "$@" || test $? -eq 1`
366  }
367fi # as_fn_arith
368
369
370# as_fn_error STATUS ERROR [LINENO LOG_FD]
371# ----------------------------------------
372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374# script with STATUS, using 1 if that was 0.
375as_fn_error ()
376{
377  as_status=$1; test $as_status -eq 0 && as_status=1
378  if test "$4"; then
379    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381  fi
382  $as_echo "$as_me: error: $2" >&2
383  as_fn_exit $as_status
384} # as_fn_error
385
386if expr a : '\(a\)' >/dev/null 2>&1 &&
387   test "X`expr 00001 : '.*\(...\)'`" = X001; then
388  as_expr=expr
389else
390  as_expr=false
391fi
392
393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394  as_basename=basename
395else
396  as_basename=false
397fi
398
399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400  as_dirname=dirname
401else
402  as_dirname=false
403fi
404
405as_me=`$as_basename -- "$0" ||
406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407	 X"$0" : 'X\(//\)$' \| \
408	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409$as_echo X/"$0" |
410    sed '/^.*\/\([^/][^/]*\)\/*$/{
411	    s//\1/
412	    q
413	  }
414	  /^X\/\(\/\/\)$/{
415	    s//\1/
416	    q
417	  }
418	  /^X\/\(\/\).*/{
419	    s//\1/
420	    q
421	  }
422	  s/.*/./; q'`
423
424# Avoid depending upon Character Ranges.
425as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428as_cr_digits='0123456789'
429as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432  as_lineno_1=$LINENO as_lineno_1a=$LINENO
433  as_lineno_2=$LINENO as_lineno_2a=$LINENO
434  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
437  sed -n '
438    p
439    /[$]LINENO/=
440  ' <$as_myself |
441    sed '
442      s/[$]LINENO.*/&-/
443      t lineno
444      b
445      :lineno
446      N
447      :loop
448      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449      t loop
450      s/-\n.*//
451    ' >$as_me.lineno &&
452  chmod +x "$as_me.lineno" ||
453    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455  # Don't try to exec as it changes $[0], causing all sort of problems
456  # (the dirname of $[0] is not the place where we might find the
457  # original and so on.  Autoconf is especially sensitive to this).
458  . "./$as_me.lineno"
459  # Exit status is that of the last command.
460  exit
461}
462
463ECHO_C= ECHO_N= ECHO_T=
464case `echo -n x` in #(((((
465-n*)
466  case `echo 'xy\c'` in
467  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
468  xy)  ECHO_C='\c';;
469  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470       ECHO_T='	';;
471  esac;;
472*)
473  ECHO_N='-n';;
474esac
475
476rm -f conf$$ conf$$.exe conf$$.file
477if test -d conf$$.dir; then
478  rm -f conf$$.dir/conf$$.file
479else
480  rm -f conf$$.dir
481  mkdir conf$$.dir 2>/dev/null
482fi
483if (echo >conf$$.file) 2>/dev/null; then
484  if ln -s conf$$.file conf$$ 2>/dev/null; then
485    as_ln_s='ln -s'
486    # ... but there are two gotchas:
487    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489    # In both cases, we have to default to `cp -p'.
490    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491      as_ln_s='cp -p'
492  elif ln conf$$.file conf$$ 2>/dev/null; then
493    as_ln_s=ln
494  else
495    as_ln_s='cp -p'
496  fi
497else
498  as_ln_s='cp -p'
499fi
500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501rmdir conf$$.dir 2>/dev/null
502
503if mkdir -p . 2>/dev/null; then
504  as_mkdir_p='mkdir -p "$as_dir"'
505else
506  test -d ./-p && rmdir ./-p
507  as_mkdir_p=false
508fi
509
510if test -x / >/dev/null 2>&1; then
511  as_test_x='test -x'
512else
513  if ls -dL / >/dev/null 2>&1; then
514    as_ls_L_option=L
515  else
516    as_ls_L_option=
517  fi
518  as_test_x='
519    eval sh -c '\''
520      if test -d "$1"; then
521	test -d "$1/.";
522      else
523	case $1 in #(
524	-*)set "./$1";;
525	esac;
526	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527	???[sx]*):;;*)false;;esac;fi
528    '\'' sh
529  '
530fi
531as_executable_p=$as_test_x
532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539SHELL=${CONFIG_SHELL-/bin/sh}
540
541
542test -n "$DJDIR" || exec 7<&0 </dev/null
543exec 6>&1
544
545# Name of the host.
546# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
547# so uname gets run too.
548ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549
550#
551# Initializations.
552#
553ac_default_prefix=/usr/local
554ac_clean_files=
555ac_config_libobj_dir=.
556LIBOBJS=
557cross_compiling=no
558subdirs=
559MFLAGS=
560MAKEFLAGS=
561
562# Identity of this package.
563PACKAGE_NAME='lighttpd'
564PACKAGE_TARNAME='lighttpd'
565PACKAGE_VERSION='1.4.39'
566PACKAGE_STRING='lighttpd 1.4.39'
567PACKAGE_BUGREPORT='contact@lighttpd.net'
568PACKAGE_URL=''
569
570ac_unique_file="src/server.c"
571# Factoring default headers for most tests.
572ac_includes_default="\
573#include <stdio.h>
574#ifdef HAVE_SYS_TYPES_H
575# include <sys/types.h>
576#endif
577#ifdef HAVE_SYS_STAT_H
578# include <sys/stat.h>
579#endif
580#ifdef STDC_HEADERS
581# include <stdlib.h>
582# include <stddef.h>
583#else
584# ifdef HAVE_STDLIB_H
585#  include <stdlib.h>
586# endif
587#endif
588#ifdef HAVE_STRING_H
589# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
590#  include <memory.h>
591# endif
592# include <string.h>
593#endif
594#ifdef HAVE_STRINGS_H
595# include <strings.h>
596#endif
597#ifdef HAVE_INTTYPES_H
598# include <inttypes.h>
599#endif
600#ifdef HAVE_STDINT_H
601# include <stdint.h>
602#endif
603#ifdef HAVE_UNISTD_H
604# include <unistd.h>
605#endif"
606
607ac_subst_vars='am__EXEEXT_FALSE
608am__EXEEXT_TRUE
609LTLIBOBJS
610CHECK_WITH_FASTCGI_FALSE
611CHECK_WITH_FASTCGI_TRUE
612CROSS_COMPILING_FALSE
613CROSS_COMPILING_TRUE
614SENDFILE_LIB
615CRYPT_LIB
616LUA_LIBS
617LUA_CFLAGS
618MEMCACHE_LIB
619GDBM_LIB
620UUID_LIBS
621SQLITE_LIBS
622SQLITE_CFLAGS
623XML_LIBS
624XML_CFLAGS
625FAM_LIBS
626FAM_CFLAGS
627BZ_LIB
628Z_LIB
629PCRE_LIB
630PCRECONFIG
631SSL_LIB
632DL_LIB
633ATTR_LIB
634LBER_LIB
635LDAP_LIB
636MYSQL_INCLUDE
637MYSQL_LIBS
638MYSQL_CONFIG
639LIBSMBCLIENT_LIBS
640LIBSMBCLIENT_CFLAGS
641LIBEV_LIBS
642LIBEV_CFLAGS
643PKG_CONFIG_LIBDIR
644PKG_CONFIG_PATH
645PKG_CONFIG
646LIBOBJS
647OTOOL64
648OTOOL
649LIPO
650NMEDIT
651DSYMUTIL
652MANIFEST_TOOL
653RANLIB
654ac_ct_AR
655AR
656DLLTOOL
657OBJDUMP
658NM
659ac_ct_DUMPBIN
660DUMPBIN
661LIBTOOL
662ANSI2KNR
663U
664NO_RDYNAMIC_FALSE
665NO_RDYNAMIC_TRUE
666LN_S
667CPP
668LD
669FGREP
670EGREP
671GREP
672SED
673am__fastdepCC_FALSE
674am__fastdepCC_TRUE
675CCDEPMODE
676AMDEPBACKSLASH
677AMDEP_FALSE
678AMDEP_TRUE
679am__quote
680am__include
681DEPDIR
682OBJEXT
683EXEEXT
684ac_ct_CC
685CPPFLAGS
686LDFLAGS
687CFLAGS
688CC
689AM_BACKSLASH
690AM_DEFAULT_VERBOSITY
691am__untar
692am__tar
693AMTAR
694am__leading_dot
695SET_MAKE
696AWK
697mkdir_p
698MKDIR_P
699INSTALL_STRIP_PROGRAM
700STRIP
701install_sh
702MAKEINFO
703AUTOHEADER
704AUTOMAKE
705AUTOCONF
706ACLOCAL
707VERSION
708PACKAGE
709CYGPATH_W
710am__isrc
711INSTALL_DATA
712INSTALL_SCRIPT
713INSTALL_PROGRAM
714target_os
715target_vendor
716target_cpu
717target
718host_os
719host_vendor
720host_cpu
721host
722build_os
723build_vendor
724build_cpu
725build
726target_alias
727host_alias
728build_alias
729LIBS
730ECHO_T
731ECHO_N
732ECHO_C
733DEFS
734mandir
735localedir
736libdir
737psdir
738pdfdir
739dvidir
740htmldir
741infodir
742docdir
743oldincludedir
744includedir
745localstatedir
746sharedstatedir
747sysconfdir
748datadir
749datarootdir
750libexecdir
751sbindir
752bindir
753program_transform_name
754prefix
755exec_prefix
756PACKAGE_URL
757PACKAGE_BUGREPORT
758PACKAGE_STRING
759PACKAGE_VERSION
760PACKAGE_TARNAME
761PACKAGE_NAME
762PATH_SEPARATOR
763SHELL'
764ac_subst_files=''
765ac_user_opts='
766enable_option_checking
767enable_silent_rules
768enable_dependency_tracking
769with_gnu_ld
770enable_static
771enable_shared
772with_pic
773enable_fast_install
774with_sysroot
775enable_libtool_lock
776with_libev
777with_libsmbclient
778with_mysql
779with_ldap
780with_attr
781with_valgrind
782with_openssl
783with_openssl_includes
784with_openssl_libs
785with_kerberos5
786with_pcre
787with_zlib
788with_bzip2
789with_fam
790with_webdav_props
791with_webdav_locks
792with_smbdav_props
793with_smbdav_locks
794with_gdbm
795with_memcache
796with_lua
797enable_lfs
798enable_ipv6
799enable_extra_warnings
800'
801      ac_precious_vars='build_alias
802host_alias
803target_alias
804CC
805CFLAGS
806LDFLAGS
807LIBS
808CPPFLAGS
809CPP
810PKG_CONFIG
811PKG_CONFIG_PATH
812PKG_CONFIG_LIBDIR
813LIBEV_CFLAGS
814LIBEV_LIBS
815LIBSMBCLIENT_CFLAGS
816LIBSMBCLIENT_LIBS
817FAM_CFLAGS
818FAM_LIBS
819XML_CFLAGS
820XML_LIBS
821SQLITE_CFLAGS
822SQLITE_LIBS
823LUA_CFLAGS
824LUA_LIBS'
825
826
827# Initialize some variables set by options.
828ac_init_help=
829ac_init_version=false
830ac_unrecognized_opts=
831ac_unrecognized_sep=
832# The variables have the same names as the options, with
833# dashes changed to underlines.
834cache_file=/dev/null
835exec_prefix=NONE
836no_create=
837no_recursion=
838prefix=NONE
839program_prefix=NONE
840program_suffix=NONE
841program_transform_name=s,x,x,
842silent=
843site=
844srcdir=
845verbose=
846x_includes=NONE
847x_libraries=NONE
848
849# Installation directory options.
850# These are left unexpanded so users can "make install exec_prefix=/foo"
851# and all the variables that are supposed to be based on exec_prefix
852# by default will actually change.
853# Use braces instead of parens because sh, perl, etc. also accept them.
854# (The list follows the same order as the GNU Coding Standards.)
855bindir='${exec_prefix}/bin'
856sbindir='${exec_prefix}/sbin'
857libexecdir='${exec_prefix}/libexec'
858datarootdir='${prefix}/share'
859datadir='${datarootdir}'
860sysconfdir='${prefix}/etc'
861sharedstatedir='${prefix}/com'
862localstatedir='${prefix}/var'
863includedir='${prefix}/include'
864oldincludedir='/usr/include'
865docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
866infodir='${datarootdir}/info'
867htmldir='${docdir}'
868dvidir='${docdir}'
869pdfdir='${docdir}'
870psdir='${docdir}'
871libdir='${exec_prefix}/lib'
872localedir='${datarootdir}/locale'
873mandir='${datarootdir}/man'
874
875ac_prev=
876ac_dashdash=
877for ac_option
878do
879  # If the previous option needs an argument, assign it.
880  if test -n "$ac_prev"; then
881    eval $ac_prev=\$ac_option
882    ac_prev=
883    continue
884  fi
885
886  case $ac_option in
887  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
888  *=)   ac_optarg= ;;
889  *)    ac_optarg=yes ;;
890  esac
891
892  # Accept the important Cygnus configure options, so we can diagnose typos.
893
894  case $ac_dashdash$ac_option in
895  --)
896    ac_dashdash=yes ;;
897
898  -bindir | --bindir | --bindi | --bind | --bin | --bi)
899    ac_prev=bindir ;;
900  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
901    bindir=$ac_optarg ;;
902
903  -build | --build | --buil | --bui | --bu)
904    ac_prev=build_alias ;;
905  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
906    build_alias=$ac_optarg ;;
907
908  -cache-file | --cache-file | --cache-fil | --cache-fi \
909  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
910    ac_prev=cache_file ;;
911  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
912  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
913    cache_file=$ac_optarg ;;
914
915  --config-cache | -C)
916    cache_file=config.cache ;;
917
918  -datadir | --datadir | --datadi | --datad)
919    ac_prev=datadir ;;
920  -datadir=* | --datadir=* | --datadi=* | --datad=*)
921    datadir=$ac_optarg ;;
922
923  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
924  | --dataroo | --dataro | --datar)
925    ac_prev=datarootdir ;;
926  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
927  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
928    datarootdir=$ac_optarg ;;
929
930  -disable-* | --disable-*)
931    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
932    # Reject names that are not valid shell variable names.
933    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934      as_fn_error $? "invalid feature name: $ac_useropt"
935    ac_useropt_orig=$ac_useropt
936    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
937    case $ac_user_opts in
938      *"
939"enable_$ac_useropt"
940"*) ;;
941      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
942	 ac_unrecognized_sep=', ';;
943    esac
944    eval enable_$ac_useropt=no ;;
945
946  -docdir | --docdir | --docdi | --doc | --do)
947    ac_prev=docdir ;;
948  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
949    docdir=$ac_optarg ;;
950
951  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
952    ac_prev=dvidir ;;
953  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
954    dvidir=$ac_optarg ;;
955
956  -enable-* | --enable-*)
957    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
958    # Reject names that are not valid shell variable names.
959    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
960      as_fn_error $? "invalid feature name: $ac_useropt"
961    ac_useropt_orig=$ac_useropt
962    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
963    case $ac_user_opts in
964      *"
965"enable_$ac_useropt"
966"*) ;;
967      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
968	 ac_unrecognized_sep=', ';;
969    esac
970    eval enable_$ac_useropt=\$ac_optarg ;;
971
972  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
973  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
974  | --exec | --exe | --ex)
975    ac_prev=exec_prefix ;;
976  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
977  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
978  | --exec=* | --exe=* | --ex=*)
979    exec_prefix=$ac_optarg ;;
980
981  -gas | --gas | --ga | --g)
982    # Obsolete; use --with-gas.
983    with_gas=yes ;;
984
985  -help | --help | --hel | --he | -h)
986    ac_init_help=long ;;
987  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
988    ac_init_help=recursive ;;
989  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
990    ac_init_help=short ;;
991
992  -host | --host | --hos | --ho)
993    ac_prev=host_alias ;;
994  -host=* | --host=* | --hos=* | --ho=*)
995    host_alias=$ac_optarg ;;
996
997  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
998    ac_prev=htmldir ;;
999  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1000  | --ht=*)
1001    htmldir=$ac_optarg ;;
1002
1003  -includedir | --includedir | --includedi | --included | --include \
1004  | --includ | --inclu | --incl | --inc)
1005    ac_prev=includedir ;;
1006  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1007  | --includ=* | --inclu=* | --incl=* | --inc=*)
1008    includedir=$ac_optarg ;;
1009
1010  -infodir | --infodir | --infodi | --infod | --info | --inf)
1011    ac_prev=infodir ;;
1012  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1013    infodir=$ac_optarg ;;
1014
1015  -libdir | --libdir | --libdi | --libd)
1016    ac_prev=libdir ;;
1017  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1018    libdir=$ac_optarg ;;
1019
1020  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1021  | --libexe | --libex | --libe)
1022    ac_prev=libexecdir ;;
1023  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1024  | --libexe=* | --libex=* | --libe=*)
1025    libexecdir=$ac_optarg ;;
1026
1027  -localedir | --localedir | --localedi | --localed | --locale)
1028    ac_prev=localedir ;;
1029  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1030    localedir=$ac_optarg ;;
1031
1032  -localstatedir | --localstatedir | --localstatedi | --localstated \
1033  | --localstate | --localstat | --localsta | --localst | --locals)
1034    ac_prev=localstatedir ;;
1035  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1036  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1037    localstatedir=$ac_optarg ;;
1038
1039  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1040    ac_prev=mandir ;;
1041  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1042    mandir=$ac_optarg ;;
1043
1044  -nfp | --nfp | --nf)
1045    # Obsolete; use --without-fp.
1046    with_fp=no ;;
1047
1048  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1049  | --no-cr | --no-c | -n)
1050    no_create=yes ;;
1051
1052  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1053  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1054    no_recursion=yes ;;
1055
1056  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1057  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1058  | --oldin | --oldi | --old | --ol | --o)
1059    ac_prev=oldincludedir ;;
1060  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1061  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1062  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1063    oldincludedir=$ac_optarg ;;
1064
1065  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1066    ac_prev=prefix ;;
1067  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1068    prefix=$ac_optarg ;;
1069
1070  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1071  | --program-pre | --program-pr | --program-p)
1072    ac_prev=program_prefix ;;
1073  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1074  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1075    program_prefix=$ac_optarg ;;
1076
1077  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1078  | --program-suf | --program-su | --program-s)
1079    ac_prev=program_suffix ;;
1080  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1081  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1082    program_suffix=$ac_optarg ;;
1083
1084  -program-transform-name | --program-transform-name \
1085  | --program-transform-nam | --program-transform-na \
1086  | --program-transform-n | --program-transform- \
1087  | --program-transform | --program-transfor \
1088  | --program-transfo | --program-transf \
1089  | --program-trans | --program-tran \
1090  | --progr-tra | --program-tr | --program-t)
1091    ac_prev=program_transform_name ;;
1092  -program-transform-name=* | --program-transform-name=* \
1093  | --program-transform-nam=* | --program-transform-na=* \
1094  | --program-transform-n=* | --program-transform-=* \
1095  | --program-transform=* | --program-transfor=* \
1096  | --program-transfo=* | --program-transf=* \
1097  | --program-trans=* | --program-tran=* \
1098  | --progr-tra=* | --program-tr=* | --program-t=*)
1099    program_transform_name=$ac_optarg ;;
1100
1101  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1102    ac_prev=pdfdir ;;
1103  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1104    pdfdir=$ac_optarg ;;
1105
1106  -psdir | --psdir | --psdi | --psd | --ps)
1107    ac_prev=psdir ;;
1108  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1109    psdir=$ac_optarg ;;
1110
1111  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1112  | -silent | --silent | --silen | --sile | --sil)
1113    silent=yes ;;
1114
1115  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1116    ac_prev=sbindir ;;
1117  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1118  | --sbi=* | --sb=*)
1119    sbindir=$ac_optarg ;;
1120
1121  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1122  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1123  | --sharedst | --shareds | --shared | --share | --shar \
1124  | --sha | --sh)
1125    ac_prev=sharedstatedir ;;
1126  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1127  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1128  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1129  | --sha=* | --sh=*)
1130    sharedstatedir=$ac_optarg ;;
1131
1132  -site | --site | --sit)
1133    ac_prev=site ;;
1134  -site=* | --site=* | --sit=*)
1135    site=$ac_optarg ;;
1136
1137  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1138    ac_prev=srcdir ;;
1139  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1140    srcdir=$ac_optarg ;;
1141
1142  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1143  | --syscon | --sysco | --sysc | --sys | --sy)
1144    ac_prev=sysconfdir ;;
1145  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1146  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1147    sysconfdir=$ac_optarg ;;
1148
1149  -target | --target | --targe | --targ | --tar | --ta | --t)
1150    ac_prev=target_alias ;;
1151  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1152    target_alias=$ac_optarg ;;
1153
1154  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1155    verbose=yes ;;
1156
1157  -version | --version | --versio | --versi | --vers | -V)
1158    ac_init_version=: ;;
1159
1160  -with-* | --with-*)
1161    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1162    # Reject names that are not valid shell variable names.
1163    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164      as_fn_error $? "invalid package name: $ac_useropt"
1165    ac_useropt_orig=$ac_useropt
1166    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167    case $ac_user_opts in
1168      *"
1169"with_$ac_useropt"
1170"*) ;;
1171      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1172	 ac_unrecognized_sep=', ';;
1173    esac
1174    eval with_$ac_useropt=\$ac_optarg ;;
1175
1176  -without-* | --without-*)
1177    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1178    # Reject names that are not valid shell variable names.
1179    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180      as_fn_error $? "invalid package name: $ac_useropt"
1181    ac_useropt_orig=$ac_useropt
1182    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183    case $ac_user_opts in
1184      *"
1185"with_$ac_useropt"
1186"*) ;;
1187      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1188	 ac_unrecognized_sep=', ';;
1189    esac
1190    eval with_$ac_useropt=no ;;
1191
1192  --x)
1193    # Obsolete; use --with-x.
1194    with_x=yes ;;
1195
1196  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1197  | --x-incl | --x-inc | --x-in | --x-i)
1198    ac_prev=x_includes ;;
1199  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1200  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1201    x_includes=$ac_optarg ;;
1202
1203  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1204  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1205    ac_prev=x_libraries ;;
1206  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1207  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1208    x_libraries=$ac_optarg ;;
1209
1210  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1211Try \`$0 --help' for more information"
1212    ;;
1213
1214  *=*)
1215    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1216    # Reject names that are not valid shell variable names.
1217    case $ac_envvar in #(
1218      '' | [0-9]* | *[!_$as_cr_alnum]* )
1219      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1220    esac
1221    eval $ac_envvar=\$ac_optarg
1222    export $ac_envvar ;;
1223
1224  *)
1225    # FIXME: should be removed in autoconf 3.0.
1226    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1227    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1228      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1229    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1230    ;;
1231
1232  esac
1233done
1234
1235if test -n "$ac_prev"; then
1236  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1237  as_fn_error $? "missing argument to $ac_option"
1238fi
1239
1240if test -n "$ac_unrecognized_opts"; then
1241  case $enable_option_checking in
1242    no) ;;
1243    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1244    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1245  esac
1246fi
1247
1248# Check all directory arguments for consistency.
1249for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1250		datadir sysconfdir sharedstatedir localstatedir includedir \
1251		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1252		libdir localedir mandir
1253do
1254  eval ac_val=\$$ac_var
1255  # Remove trailing slashes.
1256  case $ac_val in
1257    */ )
1258      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1259      eval $ac_var=\$ac_val;;
1260  esac
1261  # Be sure to have absolute directory names.
1262  case $ac_val in
1263    [\\/$]* | ?:[\\/]* )  continue;;
1264    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1265  esac
1266  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1267done
1268
1269# There might be people who depend on the old broken behavior: `$host'
1270# used to hold the argument of --host etc.
1271# FIXME: To remove some day.
1272build=$build_alias
1273host=$host_alias
1274target=$target_alias
1275
1276# FIXME: To remove some day.
1277if test "x$host_alias" != x; then
1278  if test "x$build_alias" = x; then
1279    cross_compiling=maybe
1280    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1281    If a cross compiler is detected then cross compile mode will be used" >&2
1282  elif test "x$build_alias" != "x$host_alias"; then
1283    cross_compiling=yes
1284  fi
1285fi
1286
1287ac_tool_prefix=
1288test -n "$host_alias" && ac_tool_prefix=$host_alias-
1289
1290test "$silent" = yes && exec 6>/dev/null
1291
1292
1293ac_pwd=`pwd` && test -n "$ac_pwd" &&
1294ac_ls_di=`ls -di .` &&
1295ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1296  as_fn_error $? "working directory cannot be determined"
1297test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1298  as_fn_error $? "pwd does not report name of working directory"
1299
1300
1301# Find the source files, if location was not specified.
1302if test -z "$srcdir"; then
1303  ac_srcdir_defaulted=yes
1304  # Try the directory containing this script, then the parent directory.
1305  ac_confdir=`$as_dirname -- "$as_myself" ||
1306$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1307	 X"$as_myself" : 'X\(//\)[^/]' \| \
1308	 X"$as_myself" : 'X\(//\)$' \| \
1309	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1310$as_echo X"$as_myself" |
1311    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1312	    s//\1/
1313	    q
1314	  }
1315	  /^X\(\/\/\)[^/].*/{
1316	    s//\1/
1317	    q
1318	  }
1319	  /^X\(\/\/\)$/{
1320	    s//\1/
1321	    q
1322	  }
1323	  /^X\(\/\).*/{
1324	    s//\1/
1325	    q
1326	  }
1327	  s/.*/./; q'`
1328  srcdir=$ac_confdir
1329  if test ! -r "$srcdir/$ac_unique_file"; then
1330    srcdir=..
1331  fi
1332else
1333  ac_srcdir_defaulted=no
1334fi
1335if test ! -r "$srcdir/$ac_unique_file"; then
1336  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1337  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1338fi
1339ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1340ac_abs_confdir=`(
1341	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1342	pwd)`
1343# When building in place, set srcdir=.
1344if test "$ac_abs_confdir" = "$ac_pwd"; then
1345  srcdir=.
1346fi
1347# Remove unnecessary trailing slashes from srcdir.
1348# Double slashes in file names in object file debugging info
1349# mess up M-x gdb in Emacs.
1350case $srcdir in
1351*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1352esac
1353for ac_var in $ac_precious_vars; do
1354  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1355  eval ac_env_${ac_var}_value=\$${ac_var}
1356  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1357  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1358done
1359
1360#
1361# Report the --help message.
1362#
1363if test "$ac_init_help" = "long"; then
1364  # Omit some internal or obsolete options to make the list less imposing.
1365  # This message is too long to be a string in the A/UX 3.1 sh.
1366  cat <<_ACEOF
1367\`configure' configures lighttpd 1.4.39 to adapt to many kinds of systems.
1368
1369Usage: $0 [OPTION]... [VAR=VALUE]...
1370
1371To assign environment variables (e.g., CC, CFLAGS...), specify them as
1372VAR=VALUE.  See below for descriptions of some of the useful variables.
1373
1374Defaults for the options are specified in brackets.
1375
1376Configuration:
1377  -h, --help              display this help and exit
1378      --help=short        display options specific to this package
1379      --help=recursive    display the short help of all the included packages
1380  -V, --version           display version information and exit
1381  -q, --quiet, --silent   do not print \`checking ...' messages
1382      --cache-file=FILE   cache test results in FILE [disabled]
1383  -C, --config-cache      alias for \`--cache-file=config.cache'
1384  -n, --no-create         do not create output files
1385      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1386
1387Installation directories:
1388  --prefix=PREFIX         install architecture-independent files in PREFIX
1389                          [$ac_default_prefix]
1390  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1391                          [PREFIX]
1392
1393By default, \`make install' will install all the files in
1394\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1395an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1396for instance \`--prefix=\$HOME'.
1397
1398For better control, use the options below.
1399
1400Fine tuning of the installation directories:
1401  --bindir=DIR            user executables [EPREFIX/bin]
1402  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1403  --libexecdir=DIR        program executables [EPREFIX/libexec]
1404  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1405  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1406  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1407  --libdir=DIR            object code libraries [EPREFIX/lib]
1408  --includedir=DIR        C header files [PREFIX/include]
1409  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1410  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1411  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1412  --infodir=DIR           info documentation [DATAROOTDIR/info]
1413  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1414  --mandir=DIR            man documentation [DATAROOTDIR/man]
1415  --docdir=DIR            documentation root [DATAROOTDIR/doc/lighttpd]
1416  --htmldir=DIR           html documentation [DOCDIR]
1417  --dvidir=DIR            dvi documentation [DOCDIR]
1418  --pdfdir=DIR            pdf documentation [DOCDIR]
1419  --psdir=DIR             ps documentation [DOCDIR]
1420_ACEOF
1421
1422  cat <<\_ACEOF
1423
1424Program names:
1425  --program-prefix=PREFIX            prepend PREFIX to installed program names
1426  --program-suffix=SUFFIX            append SUFFIX to installed program names
1427  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1428
1429System types:
1430  --build=BUILD     configure for building on BUILD [guessed]
1431  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1432  --target=TARGET   configure for building compilers for TARGET [HOST]
1433_ACEOF
1434fi
1435
1436if test -n "$ac_init_help"; then
1437  case $ac_init_help in
1438     short | recursive ) echo "Configuration of lighttpd 1.4.39:";;
1439   esac
1440  cat <<\_ACEOF
1441
1442Optional Features:
1443  --disable-option-checking  ignore unrecognized --enable/--with options
1444  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1445  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1446  --enable-silent-rules          less verbose build output (undo: `make V=1')
1447  --disable-silent-rules         verbose build output (undo: `make V=0')
1448  --disable-dependency-tracking  speeds up one-time build
1449  --enable-dependency-tracking   do not reject slow dependency extractors
1450  --enable-static[=PKGS]  build static libraries [default=no]
1451  --enable-shared[=PKGS]  build shared libraries [default=yes]
1452  --enable-fast-install[=PKGS]
1453                          optimize for fast installation [default=yes]
1454  --disable-libtool-lock  avoid locking (might break parallel builds)
1455  --enable-lfs            Turn on Large File System (default)
1456  --disable-ipv6          disable IPv6 support
1457  --enable-extra-warnings enable extra warnings (gcc specific)
1458
1459Optional Packages:
1460  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1461  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1462  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1463  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1464                          both]
1465  --with-sysroot=DIR Search for dependent libraries within DIR
1466                        (or the compiler's sysroot if not specified).
1467  --with-libev[=PATH]     Include libev support for fdevent handlers in
1468                          PATH/include and PATH/lib
1469  --with-libsmbclient[=PATH]
1470                          Include libsmbclient support for fdevent handlers in
1471                          PATH/include and PATH/bin
1472  --with-mysql[=PATH]     Include MySQL support. PATH is the path to
1473                          'mysql_config'
1474  --with-ldap             enable LDAP support
1475  --with-attr             enable extended attribute support
1476  --with-valgrind         enable internal support for valgrind
1477  --with-openssl[=DIR]    Include openssl support (default no)
1478  --with-openssl-includes=DIR
1479                          OpenSSL includes
1480  --with-openssl-libs=DIR OpenSSL libraries
1481  --with-kerberos5        use Kerberos5 support with OpenSSL
1482  --with-pcre             Enable pcre support (default yes)
1483  --with-zlib             Enable zlib support for mod_compress
1484  --with-bzip2            Enable bzip2 support for mod_compress
1485  --with-fam              fam/gamin for reducing number of stat() calls
1486  --with-webdav-props     properties in mod_webdav
1487  --with-webdav-locks     locks in mod_webdav
1488  --with-smbdav-props     properties in mod_smbdav
1489  --with-smbdav-locks     locks in mod_smbdav
1490  --with-gdbm             gdbm storage for mod_trigger_b4_dl
1491  --with-memcache         memcached storage for mod_trigger_b4_dl
1492  --with-lua              lua engine for mod_cml
1493
1494Some influential environment variables:
1495  CC          C compiler command
1496  CFLAGS      C compiler flags
1497  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1498              nonstandard directory <lib dir>
1499  LIBS        libraries to pass to the linker, e.g. -l<library>
1500  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1501              you have headers in a nonstandard directory <include dir>
1502  CPP         C preprocessor
1503  PKG_CONFIG  path to pkg-config utility
1504  PKG_CONFIG_PATH
1505              directories to add to pkg-config's search path
1506  PKG_CONFIG_LIBDIR
1507              path overriding pkg-config's built-in search path
1508  LIBEV_CFLAGS
1509              C compiler flags for LIBEV, overriding pkg-config
1510  LIBEV_LIBS  linker flags for LIBEV, overriding pkg-config
1511  LIBSMBCLIENT_CFLAGS
1512              C compiler flags for LIBSMBCLIENT, overriding pkg-config
1513  LIBSMBCLIENT_LIBS
1514              linker flags for LIBSMBCLIENT, overriding pkg-config
1515  FAM_CFLAGS  C compiler flags for FAM, overriding pkg-config
1516  FAM_LIBS    linker flags for FAM, overriding pkg-config
1517  XML_CFLAGS  C compiler flags for XML, overriding pkg-config
1518  XML_LIBS    linker flags for XML, overriding pkg-config
1519  SQLITE_CFLAGS
1520              C compiler flags for SQLITE, overriding pkg-config
1521  SQLITE_LIBS linker flags for SQLITE, overriding pkg-config
1522  LUA_CFLAGS  C compiler flags for LUA, overriding pkg-config
1523  LUA_LIBS    linker flags for LUA, overriding pkg-config
1524
1525Use these variables to override the choices made by `configure' or to help
1526it to find libraries and programs with nonstandard names/locations.
1527
1528Report bugs to <contact@lighttpd.net>.
1529_ACEOF
1530ac_status=$?
1531fi
1532
1533if test "$ac_init_help" = "recursive"; then
1534  # If there are subdirs, report their specific --help.
1535  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1536    test -d "$ac_dir" ||
1537      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1538      continue
1539    ac_builddir=.
1540
1541case "$ac_dir" in
1542.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543*)
1544  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1545  # A ".." for each directory in $ac_dir_suffix.
1546  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1547  case $ac_top_builddir_sub in
1548  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1550  esac ;;
1551esac
1552ac_abs_top_builddir=$ac_pwd
1553ac_abs_builddir=$ac_pwd$ac_dir_suffix
1554# for backward compatibility:
1555ac_top_builddir=$ac_top_build_prefix
1556
1557case $srcdir in
1558  .)  # We are building in place.
1559    ac_srcdir=.
1560    ac_top_srcdir=$ac_top_builddir_sub
1561    ac_abs_top_srcdir=$ac_pwd ;;
1562  [\\/]* | ?:[\\/]* )  # Absolute name.
1563    ac_srcdir=$srcdir$ac_dir_suffix;
1564    ac_top_srcdir=$srcdir
1565    ac_abs_top_srcdir=$srcdir ;;
1566  *) # Relative name.
1567    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1568    ac_top_srcdir=$ac_top_build_prefix$srcdir
1569    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1570esac
1571ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1572
1573    cd "$ac_dir" || { ac_status=$?; continue; }
1574    # Check for guested configure.
1575    if test -f "$ac_srcdir/configure.gnu"; then
1576      echo &&
1577      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1578    elif test -f "$ac_srcdir/configure"; then
1579      echo &&
1580      $SHELL "$ac_srcdir/configure" --help=recursive
1581    else
1582      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1583    fi || ac_status=$?
1584    cd "$ac_pwd" || { ac_status=$?; break; }
1585  done
1586fi
1587
1588test -n "$ac_init_help" && exit $ac_status
1589if $ac_init_version; then
1590  cat <<\_ACEOF
1591lighttpd configure 1.4.39
1592generated by GNU Autoconf 2.67
1593
1594Copyright (C) 2010 Free Software Foundation, Inc.
1595This configure script is free software; the Free Software Foundation
1596gives unlimited permission to copy, distribute and modify it.
1597_ACEOF
1598  exit
1599fi
1600
1601## ------------------------ ##
1602## Autoconf initialization. ##
1603## ------------------------ ##
1604
1605# ac_fn_c_try_compile LINENO
1606# --------------------------
1607# Try to compile conftest.$ac_ext, and return whether this succeeded.
1608ac_fn_c_try_compile ()
1609{
1610  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611  rm -f conftest.$ac_objext
1612  if { { ac_try="$ac_compile"
1613case "(($ac_try" in
1614  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1615  *) ac_try_echo=$ac_try;;
1616esac
1617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1618$as_echo "$ac_try_echo"; } >&5
1619  (eval "$ac_compile") 2>conftest.err
1620  ac_status=$?
1621  if test -s conftest.err; then
1622    grep -v '^ *+' conftest.err >conftest.er1
1623    cat conftest.er1 >&5
1624    mv -f conftest.er1 conftest.err
1625  fi
1626  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627  test $ac_status = 0; } && {
1628	 test -z "$ac_c_werror_flag" ||
1629	 test ! -s conftest.err
1630       } && test -s conftest.$ac_objext; then :
1631  ac_retval=0
1632else
1633  $as_echo "$as_me: failed program was:" >&5
1634sed 's/^/| /' conftest.$ac_ext >&5
1635
1636	ac_retval=1
1637fi
1638  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1639  as_fn_set_status $ac_retval
1640
1641} # ac_fn_c_try_compile
1642
1643# ac_fn_c_try_cpp LINENO
1644# ----------------------
1645# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1646ac_fn_c_try_cpp ()
1647{
1648  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649  if { { ac_try="$ac_cpp conftest.$ac_ext"
1650case "(($ac_try" in
1651  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652  *) ac_try_echo=$ac_try;;
1653esac
1654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655$as_echo "$ac_try_echo"; } >&5
1656  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1657  ac_status=$?
1658  if test -s conftest.err; then
1659    grep -v '^ *+' conftest.err >conftest.er1
1660    cat conftest.er1 >&5
1661    mv -f conftest.er1 conftest.err
1662  fi
1663  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664  test $ac_status = 0; } > conftest.i && {
1665	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1666	 test ! -s conftest.err
1667       }; then :
1668  ac_retval=0
1669else
1670  $as_echo "$as_me: failed program was:" >&5
1671sed 's/^/| /' conftest.$ac_ext >&5
1672
1673    ac_retval=1
1674fi
1675  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1676  as_fn_set_status $ac_retval
1677
1678} # ac_fn_c_try_cpp
1679
1680# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1681# -------------------------------------------------------
1682# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1683# the include files in INCLUDES and setting the cache variable VAR
1684# accordingly.
1685ac_fn_c_check_header_mongrel ()
1686{
1687  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688  if eval "test \"\${$3+set}\"" = set; then :
1689  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1690$as_echo_n "checking for $2... " >&6; }
1691if eval "test \"\${$3+set}\"" = set; then :
1692  $as_echo_n "(cached) " >&6
1693fi
1694eval ac_res=\$$3
1695	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1696$as_echo "$ac_res" >&6; }
1697else
1698  # Is the header compilable?
1699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1700$as_echo_n "checking $2 usability... " >&6; }
1701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1702/* end confdefs.h.  */
1703$4
1704#include <$2>
1705_ACEOF
1706if ac_fn_c_try_compile "$LINENO"; then :
1707  ac_header_compiler=yes
1708else
1709  ac_header_compiler=no
1710fi
1711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1713$as_echo "$ac_header_compiler" >&6; }
1714
1715# Is the header present?
1716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1717$as_echo_n "checking $2 presence... " >&6; }
1718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719/* end confdefs.h.  */
1720#include <$2>
1721_ACEOF
1722if ac_fn_c_try_cpp "$LINENO"; then :
1723  ac_header_preproc=yes
1724else
1725  ac_header_preproc=no
1726fi
1727rm -f conftest.err conftest.i conftest.$ac_ext
1728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1729$as_echo "$ac_header_preproc" >&6; }
1730
1731# So?  What about this header?
1732case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1733  yes:no: )
1734    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1735$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1736    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1737$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1738    ;;
1739  no:yes:* )
1740    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1741$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1742    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1743$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1744    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1745$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1746    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1747$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1748    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1749$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1750( $as_echo "## ----------------------------------- ##
1751## Report this to contact@lighttpd.net ##
1752## ----------------------------------- ##"
1753     ) | sed "s/^/$as_me: WARNING:     /" >&2
1754    ;;
1755esac
1756  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757$as_echo_n "checking for $2... " >&6; }
1758if eval "test \"\${$3+set}\"" = set; then :
1759  $as_echo_n "(cached) " >&6
1760else
1761  eval "$3=\$ac_header_compiler"
1762fi
1763eval ac_res=\$$3
1764	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1765$as_echo "$ac_res" >&6; }
1766fi
1767  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1768
1769} # ac_fn_c_check_header_mongrel
1770
1771# ac_fn_c_try_run LINENO
1772# ----------------------
1773# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1774# that executables *can* be run.
1775ac_fn_c_try_run ()
1776{
1777  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778  if { { ac_try="$ac_link"
1779case "(($ac_try" in
1780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781  *) ac_try_echo=$ac_try;;
1782esac
1783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784$as_echo "$ac_try_echo"; } >&5
1785  (eval "$ac_link") 2>&5
1786  ac_status=$?
1787  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1789  { { case "(($ac_try" in
1790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791  *) ac_try_echo=$ac_try;;
1792esac
1793eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794$as_echo "$ac_try_echo"; } >&5
1795  (eval "$ac_try") 2>&5
1796  ac_status=$?
1797  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798  test $ac_status = 0; }; }; then :
1799  ac_retval=0
1800else
1801  $as_echo "$as_me: program exited with status $ac_status" >&5
1802       $as_echo "$as_me: failed program was:" >&5
1803sed 's/^/| /' conftest.$ac_ext >&5
1804
1805       ac_retval=$ac_status
1806fi
1807  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809  as_fn_set_status $ac_retval
1810
1811} # ac_fn_c_try_run
1812
1813# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1814# -------------------------------------------------------
1815# Tests whether HEADER exists and can be compiled using the include files in
1816# INCLUDES, setting the cache variable VAR accordingly.
1817ac_fn_c_check_header_compile ()
1818{
1819  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821$as_echo_n "checking for $2... " >&6; }
1822if eval "test \"\${$3+set}\"" = set; then :
1823  $as_echo_n "(cached) " >&6
1824else
1825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826/* end confdefs.h.  */
1827$4
1828#include <$2>
1829_ACEOF
1830if ac_fn_c_try_compile "$LINENO"; then :
1831  eval "$3=yes"
1832else
1833  eval "$3=no"
1834fi
1835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1836fi
1837eval ac_res=\$$3
1838	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839$as_echo "$ac_res" >&6; }
1840  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1841
1842} # ac_fn_c_check_header_compile
1843
1844# ac_fn_c_try_link LINENO
1845# -----------------------
1846# Try to link conftest.$ac_ext, and return whether this succeeded.
1847ac_fn_c_try_link ()
1848{
1849  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850  rm -f conftest.$ac_objext conftest$ac_exeext
1851  if { { ac_try="$ac_link"
1852case "(($ac_try" in
1853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854  *) ac_try_echo=$ac_try;;
1855esac
1856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857$as_echo "$ac_try_echo"; } >&5
1858  (eval "$ac_link") 2>conftest.err
1859  ac_status=$?
1860  if test -s conftest.err; then
1861    grep -v '^ *+' conftest.err >conftest.er1
1862    cat conftest.er1 >&5
1863    mv -f conftest.er1 conftest.err
1864  fi
1865  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866  test $ac_status = 0; } && {
1867	 test -z "$ac_c_werror_flag" ||
1868	 test ! -s conftest.err
1869       } && test -s conftest$ac_exeext && {
1870	 test "$cross_compiling" = yes ||
1871	 $as_test_x conftest$ac_exeext
1872       }; then :
1873  ac_retval=0
1874else
1875  $as_echo "$as_me: failed program was:" >&5
1876sed 's/^/| /' conftest.$ac_ext >&5
1877
1878	ac_retval=1
1879fi
1880  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1881  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1882  # interfere with the next link command; also delete a directory that is
1883  # left behind by Apple's compiler.  We do this before executing the actions.
1884  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1885  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1886  as_fn_set_status $ac_retval
1887
1888} # ac_fn_c_try_link
1889
1890# ac_fn_c_check_func LINENO FUNC VAR
1891# ----------------------------------
1892# Tests whether FUNC exists, setting the cache variable VAR accordingly
1893ac_fn_c_check_func ()
1894{
1895  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1897$as_echo_n "checking for $2... " >&6; }
1898if eval "test \"\${$3+set}\"" = set; then :
1899  $as_echo_n "(cached) " >&6
1900else
1901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902/* end confdefs.h.  */
1903/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1904   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1905#define $2 innocuous_$2
1906
1907/* System header to define __stub macros and hopefully few prototypes,
1908    which can conflict with char $2 (); below.
1909    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1910    <limits.h> exists even on freestanding compilers.  */
1911
1912#ifdef __STDC__
1913# include <limits.h>
1914#else
1915# include <assert.h>
1916#endif
1917
1918#undef $2
1919
1920/* Override any GCC internal prototype to avoid an error.
1921   Use char because int might match the return type of a GCC
1922   builtin and then its argument prototype would still apply.  */
1923#ifdef __cplusplus
1924extern "C"
1925#endif
1926char $2 ();
1927/* The GNU C library defines this for functions which it implements
1928    to always fail with ENOSYS.  Some functions are actually named
1929    something starting with __ and the normal name is an alias.  */
1930#if defined __stub_$2 || defined __stub___$2
1931choke me
1932#endif
1933
1934int
1935main ()
1936{
1937return $2 ();
1938  ;
1939  return 0;
1940}
1941_ACEOF
1942if ac_fn_c_try_link "$LINENO"; then :
1943  eval "$3=yes"
1944else
1945  eval "$3=no"
1946fi
1947rm -f core conftest.err conftest.$ac_objext \
1948    conftest$ac_exeext conftest.$ac_ext
1949fi
1950eval ac_res=\$$3
1951	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952$as_echo "$ac_res" >&6; }
1953  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1954
1955} # ac_fn_c_check_func
1956
1957# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1958# -------------------------------------------
1959# Tests whether TYPE exists after having included INCLUDES, setting cache
1960# variable VAR accordingly.
1961ac_fn_c_check_type ()
1962{
1963  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1965$as_echo_n "checking for $2... " >&6; }
1966if eval "test \"\${$3+set}\"" = set; then :
1967  $as_echo_n "(cached) " >&6
1968else
1969  eval "$3=no"
1970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971/* end confdefs.h.  */
1972$4
1973int
1974main ()
1975{
1976if (sizeof ($2))
1977	 return 0;
1978  ;
1979  return 0;
1980}
1981_ACEOF
1982if ac_fn_c_try_compile "$LINENO"; then :
1983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984/* end confdefs.h.  */
1985$4
1986int
1987main ()
1988{
1989if (sizeof (($2)))
1990	    return 0;
1991  ;
1992  return 0;
1993}
1994_ACEOF
1995if ac_fn_c_try_compile "$LINENO"; then :
1996
1997else
1998  eval "$3=yes"
1999fi
2000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001fi
2002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003fi
2004eval ac_res=\$$3
2005	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2006$as_echo "$ac_res" >&6; }
2007  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2008
2009} # ac_fn_c_check_type
2010
2011# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2012# ----------------------------------------------------
2013# Tries to find if the field MEMBER exists in type AGGR, after including
2014# INCLUDES, setting cache variable VAR accordingly.
2015ac_fn_c_check_member ()
2016{
2017  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2019$as_echo_n "checking for $2.$3... " >&6; }
2020if eval "test \"\${$4+set}\"" = set; then :
2021  $as_echo_n "(cached) " >&6
2022else
2023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024/* end confdefs.h.  */
2025$5
2026int
2027main ()
2028{
2029static $2 ac_aggr;
2030if (ac_aggr.$3)
2031return 0;
2032  ;
2033  return 0;
2034}
2035_ACEOF
2036if ac_fn_c_try_compile "$LINENO"; then :
2037  eval "$4=yes"
2038else
2039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040/* end confdefs.h.  */
2041$5
2042int
2043main ()
2044{
2045static $2 ac_aggr;
2046if (sizeof ac_aggr.$3)
2047return 0;
2048  ;
2049  return 0;
2050}
2051_ACEOF
2052if ac_fn_c_try_compile "$LINENO"; then :
2053  eval "$4=yes"
2054else
2055  eval "$4=no"
2056fi
2057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058fi
2059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060fi
2061eval ac_res=\$$4
2062	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2063$as_echo "$ac_res" >&6; }
2064  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2065
2066} # ac_fn_c_check_member
2067
2068# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2069# --------------------------------------------
2070# Tries to find the compile-time value of EXPR in a program that includes
2071# INCLUDES, setting VAR accordingly. Returns whether the value could be
2072# computed
2073ac_fn_c_compute_int ()
2074{
2075  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2076  if test "$cross_compiling" = yes; then
2077    # Depending upon the size, compute the lo and hi bounds.
2078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079/* end confdefs.h.  */
2080$4
2081int
2082main ()
2083{
2084static int test_array [1 - 2 * !(($2) >= 0)];
2085test_array [0] = 0
2086
2087  ;
2088  return 0;
2089}
2090_ACEOF
2091if ac_fn_c_try_compile "$LINENO"; then :
2092  ac_lo=0 ac_mid=0
2093  while :; do
2094    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095/* end confdefs.h.  */
2096$4
2097int
2098main ()
2099{
2100static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2101test_array [0] = 0
2102
2103  ;
2104  return 0;
2105}
2106_ACEOF
2107if ac_fn_c_try_compile "$LINENO"; then :
2108  ac_hi=$ac_mid; break
2109else
2110  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2111			if test $ac_lo -le $ac_mid; then
2112			  ac_lo= ac_hi=
2113			  break
2114			fi
2115			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2116fi
2117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2118  done
2119else
2120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121/* end confdefs.h.  */
2122$4
2123int
2124main ()
2125{
2126static int test_array [1 - 2 * !(($2) < 0)];
2127test_array [0] = 0
2128
2129  ;
2130  return 0;
2131}
2132_ACEOF
2133if ac_fn_c_try_compile "$LINENO"; then :
2134  ac_hi=-1 ac_mid=-1
2135  while :; do
2136    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137/* end confdefs.h.  */
2138$4
2139int
2140main ()
2141{
2142static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2143test_array [0] = 0
2144
2145  ;
2146  return 0;
2147}
2148_ACEOF
2149if ac_fn_c_try_compile "$LINENO"; then :
2150  ac_lo=$ac_mid; break
2151else
2152  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2153			if test $ac_mid -le $ac_hi; then
2154			  ac_lo= ac_hi=
2155			  break
2156			fi
2157			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2158fi
2159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160  done
2161else
2162  ac_lo= ac_hi=
2163fi
2164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165fi
2166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167# Binary search between lo and hi bounds.
2168while test "x$ac_lo" != "x$ac_hi"; do
2169  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171/* end confdefs.h.  */
2172$4
2173int
2174main ()
2175{
2176static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2177test_array [0] = 0
2178
2179  ;
2180  return 0;
2181}
2182_ACEOF
2183if ac_fn_c_try_compile "$LINENO"; then :
2184  ac_hi=$ac_mid
2185else
2186  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2187fi
2188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189done
2190case $ac_lo in #((
2191?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2192'') ac_retval=1 ;;
2193esac
2194  else
2195    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196/* end confdefs.h.  */
2197$4
2198static long int longval () { return $2; }
2199static unsigned long int ulongval () { return $2; }
2200#include <stdio.h>
2201#include <stdlib.h>
2202int
2203main ()
2204{
2205
2206  FILE *f = fopen ("conftest.val", "w");
2207  if (! f)
2208    return 1;
2209  if (($2) < 0)
2210    {
2211      long int i = longval ();
2212      if (i != ($2))
2213	return 1;
2214      fprintf (f, "%ld", i);
2215    }
2216  else
2217    {
2218      unsigned long int i = ulongval ();
2219      if (i != ($2))
2220	return 1;
2221      fprintf (f, "%lu", i);
2222    }
2223  /* Do not output a trailing newline, as this causes \r\n confusion
2224     on some platforms.  */
2225  return ferror (f) || fclose (f) != 0;
2226
2227  ;
2228  return 0;
2229}
2230_ACEOF
2231if ac_fn_c_try_run "$LINENO"; then :
2232  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2233else
2234  ac_retval=1
2235fi
2236rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2237  conftest.$ac_objext conftest.beam conftest.$ac_ext
2238rm -f conftest.val
2239
2240  fi
2241  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2242  as_fn_set_status $ac_retval
2243
2244} # ac_fn_c_compute_int
2245cat >config.log <<_ACEOF
2246This file contains any messages produced by compilers while
2247running configure, to aid debugging if configure makes a mistake.
2248
2249It was created by lighttpd $as_me 1.4.39, which was
2250generated by GNU Autoconf 2.67.  Invocation command line was
2251
2252  $ $0 $@
2253
2254_ACEOF
2255exec 5>>config.log
2256{
2257cat <<_ASUNAME
2258## --------- ##
2259## Platform. ##
2260## --------- ##
2261
2262hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2263uname -m = `(uname -m) 2>/dev/null || echo unknown`
2264uname -r = `(uname -r) 2>/dev/null || echo unknown`
2265uname -s = `(uname -s) 2>/dev/null || echo unknown`
2266uname -v = `(uname -v) 2>/dev/null || echo unknown`
2267
2268/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2269/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2270
2271/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2272/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2273/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2274/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2275/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2276/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2277/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2278
2279_ASUNAME
2280
2281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2282for as_dir in $PATH
2283do
2284  IFS=$as_save_IFS
2285  test -z "$as_dir" && as_dir=.
2286    $as_echo "PATH: $as_dir"
2287  done
2288IFS=$as_save_IFS
2289
2290} >&5
2291
2292cat >&5 <<_ACEOF
2293
2294
2295## ----------- ##
2296## Core tests. ##
2297## ----------- ##
2298
2299_ACEOF
2300
2301
2302# Keep a trace of the command line.
2303# Strip out --no-create and --no-recursion so they do not pile up.
2304# Strip out --silent because we don't want to record it for future runs.
2305# Also quote any args containing shell meta-characters.
2306# Make two passes to allow for proper duplicate-argument suppression.
2307ac_configure_args=
2308ac_configure_args0=
2309ac_configure_args1=
2310ac_must_keep_next=false
2311for ac_pass in 1 2
2312do
2313  for ac_arg
2314  do
2315    case $ac_arg in
2316    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2317    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2318    | -silent | --silent | --silen | --sile | --sil)
2319      continue ;;
2320    *\'*)
2321      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2322    esac
2323    case $ac_pass in
2324    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2325    2)
2326      as_fn_append ac_configure_args1 " '$ac_arg'"
2327      if test $ac_must_keep_next = true; then
2328	ac_must_keep_next=false # Got value, back to normal.
2329      else
2330	case $ac_arg in
2331	  *=* | --config-cache | -C | -disable-* | --disable-* \
2332	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2333	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2334	  | -with-* | --with-* | -without-* | --without-* | --x)
2335	    case "$ac_configure_args0 " in
2336	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2337	    esac
2338	    ;;
2339	  -* ) ac_must_keep_next=true ;;
2340	esac
2341      fi
2342      as_fn_append ac_configure_args " '$ac_arg'"
2343      ;;
2344    esac
2345  done
2346done
2347{ ac_configure_args0=; unset ac_configure_args0;}
2348{ ac_configure_args1=; unset ac_configure_args1;}
2349
2350# When interrupted or exit'd, cleanup temporary files, and complete
2351# config.log.  We remove comments because anyway the quotes in there
2352# would cause problems or look ugly.
2353# WARNING: Use '\'' to represent an apostrophe within the trap.
2354# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2355trap 'exit_status=$?
2356  # Save into config.log some information that might help in debugging.
2357  {
2358    echo
2359
2360    $as_echo "## ---------------- ##
2361## Cache variables. ##
2362## ---------------- ##"
2363    echo
2364    # The following way of writing the cache mishandles newlines in values,
2365(
2366  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2367    eval ac_val=\$$ac_var
2368    case $ac_val in #(
2369    *${as_nl}*)
2370      case $ac_var in #(
2371      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2372$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2373      esac
2374      case $ac_var in #(
2375      _ | IFS | as_nl) ;; #(
2376      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2377      *) { eval $ac_var=; unset $ac_var;} ;;
2378      esac ;;
2379    esac
2380  done
2381  (set) 2>&1 |
2382    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2383    *${as_nl}ac_space=\ *)
2384      sed -n \
2385	"s/'\''/'\''\\\\'\'''\''/g;
2386	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2387      ;; #(
2388    *)
2389      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2390      ;;
2391    esac |
2392    sort
2393)
2394    echo
2395
2396    $as_echo "## ----------------- ##
2397## Output variables. ##
2398## ----------------- ##"
2399    echo
2400    for ac_var in $ac_subst_vars
2401    do
2402      eval ac_val=\$$ac_var
2403      case $ac_val in
2404      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2405      esac
2406      $as_echo "$ac_var='\''$ac_val'\''"
2407    done | sort
2408    echo
2409
2410    if test -n "$ac_subst_files"; then
2411      $as_echo "## ------------------- ##
2412## File substitutions. ##
2413## ------------------- ##"
2414      echo
2415      for ac_var in $ac_subst_files
2416      do
2417	eval ac_val=\$$ac_var
2418	case $ac_val in
2419	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2420	esac
2421	$as_echo "$ac_var='\''$ac_val'\''"
2422      done | sort
2423      echo
2424    fi
2425
2426    if test -s confdefs.h; then
2427      $as_echo "## ----------- ##
2428## confdefs.h. ##
2429## ----------- ##"
2430      echo
2431      cat confdefs.h
2432      echo
2433    fi
2434    test "$ac_signal" != 0 &&
2435      $as_echo "$as_me: caught signal $ac_signal"
2436    $as_echo "$as_me: exit $exit_status"
2437  } >&5
2438  rm -f core *.core core.conftest.* &&
2439    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2440    exit $exit_status
2441' 0
2442for ac_signal in 1 2 13 15; do
2443  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2444done
2445ac_signal=0
2446
2447# confdefs.h avoids OS command line length limits that DEFS can exceed.
2448rm -f -r conftest* confdefs.h
2449
2450$as_echo "/* confdefs.h */" > confdefs.h
2451
2452# Predefined preprocessor variables.
2453
2454cat >>confdefs.h <<_ACEOF
2455#define PACKAGE_NAME "$PACKAGE_NAME"
2456_ACEOF
2457
2458cat >>confdefs.h <<_ACEOF
2459#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2460_ACEOF
2461
2462cat >>confdefs.h <<_ACEOF
2463#define PACKAGE_VERSION "$PACKAGE_VERSION"
2464_ACEOF
2465
2466cat >>confdefs.h <<_ACEOF
2467#define PACKAGE_STRING "$PACKAGE_STRING"
2468_ACEOF
2469
2470cat >>confdefs.h <<_ACEOF
2471#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2472_ACEOF
2473
2474cat >>confdefs.h <<_ACEOF
2475#define PACKAGE_URL "$PACKAGE_URL"
2476_ACEOF
2477
2478
2479# Let the site file select an alternate cache file if it wants to.
2480# Prefer an explicitly selected file to automatically selected ones.
2481ac_site_file1=NONE
2482ac_site_file2=NONE
2483if test -n "$CONFIG_SITE"; then
2484  # We do not want a PATH search for config.site.
2485  case $CONFIG_SITE in #((
2486    -*)  ac_site_file1=./$CONFIG_SITE;;
2487    */*) ac_site_file1=$CONFIG_SITE;;
2488    *)   ac_site_file1=./$CONFIG_SITE;;
2489  esac
2490elif test "x$prefix" != xNONE; then
2491  ac_site_file1=$prefix/share/config.site
2492  ac_site_file2=$prefix/etc/config.site
2493else
2494  ac_site_file1=$ac_default_prefix/share/config.site
2495  ac_site_file2=$ac_default_prefix/etc/config.site
2496fi
2497for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2498do
2499  test "x$ac_site_file" = xNONE && continue
2500  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2501    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2502$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2503    sed 's/^/| /' "$ac_site_file" >&5
2504    . "$ac_site_file" \
2505      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2506$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2507as_fn_error $? "failed to load site script $ac_site_file
2508See \`config.log' for more details" "$LINENO" 5 ; }
2509  fi
2510done
2511
2512if test -r "$cache_file"; then
2513  # Some versions of bash will fail to source /dev/null (special files
2514  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2515  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2516    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2517$as_echo "$as_me: loading cache $cache_file" >&6;}
2518    case $cache_file in
2519      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2520      *)                      . "./$cache_file";;
2521    esac
2522  fi
2523else
2524  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2525$as_echo "$as_me: creating cache $cache_file" >&6;}
2526  >$cache_file
2527fi
2528
2529# Check that the precious variables saved in the cache have kept the same
2530# value.
2531ac_cache_corrupted=false
2532for ac_var in $ac_precious_vars; do
2533  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2534  eval ac_new_set=\$ac_env_${ac_var}_set
2535  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2536  eval ac_new_val=\$ac_env_${ac_var}_value
2537  case $ac_old_set,$ac_new_set in
2538    set,)
2539      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2540$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2541      ac_cache_corrupted=: ;;
2542    ,set)
2543      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2544$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2545      ac_cache_corrupted=: ;;
2546    ,);;
2547    *)
2548      if test "x$ac_old_val" != "x$ac_new_val"; then
2549	# differences in whitespace do not lead to failure.
2550	ac_old_val_w=`echo x $ac_old_val`
2551	ac_new_val_w=`echo x $ac_new_val`
2552	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2553	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2554$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2555	  ac_cache_corrupted=:
2556	else
2557	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2558$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2559	  eval $ac_var=\$ac_old_val
2560	fi
2561	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2562$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2563	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2564$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2565      fi;;
2566  esac
2567  # Pass precious variables to config.status.
2568  if test "$ac_new_set" = set; then
2569    case $ac_new_val in
2570    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2571    *) ac_arg=$ac_var=$ac_new_val ;;
2572    esac
2573    case " $ac_configure_args " in
2574      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2575      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2576    esac
2577  fi
2578done
2579if $ac_cache_corrupted; then
2580  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2581$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2582  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2583$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2584  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2585fi
2586## -------------------- ##
2587## Main body of script. ##
2588## -------------------- ##
2589
2590ac_ext=c
2591ac_cpp='$CPP $CPPFLAGS'
2592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2594ac_compiler_gnu=$ac_cv_c_compiler_gnu
2595
2596
2597
2598ac_config_headers="$ac_config_headers config.h"
2599
2600
2601
2602ac_aux_dir=
2603for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2604  if test -f "$ac_dir/install-sh"; then
2605    ac_aux_dir=$ac_dir
2606    ac_install_sh="$ac_aux_dir/install-sh -c"
2607    break
2608  elif test -f "$ac_dir/install.sh"; then
2609    ac_aux_dir=$ac_dir
2610    ac_install_sh="$ac_aux_dir/install.sh -c"
2611    break
2612  elif test -f "$ac_dir/shtool"; then
2613    ac_aux_dir=$ac_dir
2614    ac_install_sh="$ac_aux_dir/shtool install -c"
2615    break
2616  fi
2617done
2618if test -z "$ac_aux_dir"; then
2619  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2620fi
2621
2622# These three variables are undocumented and unsupported,
2623# and are intended to be withdrawn in a future Autoconf release.
2624# They can cause serious problems if a builder's source tree is in a directory
2625# whose full name contains unusual characters.
2626ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2627ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2628ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2629
2630
2631# Make sure we can run config.sub.
2632$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2633  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2634
2635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2636$as_echo_n "checking build system type... " >&6; }
2637if test "${ac_cv_build+set}" = set; then :
2638  $as_echo_n "(cached) " >&6
2639else
2640  ac_build_alias=$build_alias
2641test "x$ac_build_alias" = x &&
2642  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2643test "x$ac_build_alias" = x &&
2644  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2645ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2646  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2647
2648fi
2649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2650$as_echo "$ac_cv_build" >&6; }
2651case $ac_cv_build in
2652*-*-*) ;;
2653*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2654esac
2655build=$ac_cv_build
2656ac_save_IFS=$IFS; IFS='-'
2657set x $ac_cv_build
2658shift
2659build_cpu=$1
2660build_vendor=$2
2661shift; shift
2662# Remember, the first character of IFS is used to create $*,
2663# except with old shells:
2664build_os=$*
2665IFS=$ac_save_IFS
2666case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2667
2668
2669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2670$as_echo_n "checking host system type... " >&6; }
2671if test "${ac_cv_host+set}" = set; then :
2672  $as_echo_n "(cached) " >&6
2673else
2674  if test "x$host_alias" = x; then
2675  ac_cv_host=$ac_cv_build
2676else
2677  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2678    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2679fi
2680
2681fi
2682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2683$as_echo "$ac_cv_host" >&6; }
2684case $ac_cv_host in
2685*-*-*) ;;
2686*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2687esac
2688host=$ac_cv_host
2689ac_save_IFS=$IFS; IFS='-'
2690set x $ac_cv_host
2691shift
2692host_cpu=$1
2693host_vendor=$2
2694shift; shift
2695# Remember, the first character of IFS is used to create $*,
2696# except with old shells:
2697host_os=$*
2698IFS=$ac_save_IFS
2699case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2700
2701
2702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2703$as_echo_n "checking target system type... " >&6; }
2704if test "${ac_cv_target+set}" = set; then :
2705  $as_echo_n "(cached) " >&6
2706else
2707  if test "x$target_alias" = x; then
2708  ac_cv_target=$ac_cv_host
2709else
2710  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2711    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2712fi
2713
2714fi
2715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2716$as_echo "$ac_cv_target" >&6; }
2717case $ac_cv_target in
2718*-*-*) ;;
2719*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
2720esac
2721target=$ac_cv_target
2722ac_save_IFS=$IFS; IFS='-'
2723set x $ac_cv_target
2724shift
2725target_cpu=$1
2726target_vendor=$2
2727shift; shift
2728# Remember, the first character of IFS is used to create $*,
2729# except with old shells:
2730target_os=$*
2731IFS=$ac_save_IFS
2732case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2733
2734
2735# The aliases save the names the user supplied, while $host etc.
2736# will get canonicalized.
2737test -n "$target_alias" &&
2738  test "$program_prefix$program_suffix$program_transform_name" = \
2739    NONENONEs,x,x, &&
2740  program_prefix=${target_alias}-
2741
2742am__api_version='1.11'
2743
2744# Find a good install program.  We prefer a C program (faster),
2745# so one script is as good as another.  But avoid the broken or
2746# incompatible versions:
2747# SysV /etc/install, /usr/sbin/install
2748# SunOS /usr/etc/install
2749# IRIX /sbin/install
2750# AIX /bin/install
2751# AmigaOS /C/install, which installs bootblocks on floppy discs
2752# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2753# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2754# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2755# OS/2's system install, which has a completely different semantic
2756# ./install, which can be erroneously created by make from ./install.sh.
2757# Reject install programs that cannot install multiple files.
2758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2759$as_echo_n "checking for a BSD-compatible install... " >&6; }
2760if test -z "$INSTALL"; then
2761if test "${ac_cv_path_install+set}" = set; then :
2762  $as_echo_n "(cached) " >&6
2763else
2764  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765for as_dir in $PATH
2766do
2767  IFS=$as_save_IFS
2768  test -z "$as_dir" && as_dir=.
2769    # Account for people who put trailing slashes in PATH elements.
2770case $as_dir/ in #((
2771  ./ | .// | /[cC]/* | \
2772  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2773  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2774  /usr/ucb/* ) ;;
2775  *)
2776    # OSF1 and SCO ODT 3.0 have their own names for install.
2777    # Don't use installbsd from OSF since it installs stuff as root
2778    # by default.
2779    for ac_prog in ginstall scoinst install; do
2780      for ac_exec_ext in '' $ac_executable_extensions; do
2781	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2782	  if test $ac_prog = install &&
2783	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2784	    # AIX install.  It has an incompatible calling convention.
2785	    :
2786	  elif test $ac_prog = install &&
2787	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2788	    # program-specific install script used by HP pwplus--don't use.
2789	    :
2790	  else
2791	    rm -rf conftest.one conftest.two conftest.dir
2792	    echo one > conftest.one
2793	    echo two > conftest.two
2794	    mkdir conftest.dir
2795	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2796	      test -s conftest.one && test -s conftest.two &&
2797	      test -s conftest.dir/conftest.one &&
2798	      test -s conftest.dir/conftest.two
2799	    then
2800	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2801	      break 3
2802	    fi
2803	  fi
2804	fi
2805      done
2806    done
2807    ;;
2808esac
2809
2810  done
2811IFS=$as_save_IFS
2812
2813rm -rf conftest.one conftest.two conftest.dir
2814
2815fi
2816  if test "${ac_cv_path_install+set}" = set; then
2817    INSTALL=$ac_cv_path_install
2818  else
2819    # As a last resort, use the slow shell script.  Don't cache a
2820    # value for INSTALL within a source directory, because that will
2821    # break other packages using the cache if that directory is
2822    # removed, or if the value is a relative name.
2823    INSTALL=$ac_install_sh
2824  fi
2825fi
2826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2827$as_echo "$INSTALL" >&6; }
2828
2829# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2830# It thinks the first close brace ends the variable substitution.
2831test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2832
2833test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2834
2835test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2836
2837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2838$as_echo_n "checking whether build environment is sane... " >&6; }
2839# Just in case
2840sleep 1
2841echo timestamp > conftest.file
2842# Reject unsafe characters in $srcdir or the absolute working directory
2843# name.  Accept space and tab only in the latter.
2844am_lf='
2845'
2846case `pwd` in
2847  *[\\\"\#\$\&\'\`$am_lf]*)
2848    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2849esac
2850case $srcdir in
2851  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2852    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2853esac
2854
2855# Do `set' in a subshell so we don't clobber the current shell's
2856# arguments.  Must try -L first in case configure is actually a
2857# symlink; some systems play weird games with the mod time of symlinks
2858# (eg FreeBSD returns the mod time of the symlink's containing
2859# directory).
2860if (
2861   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2862   if test "$*" = "X"; then
2863      # -L didn't work.
2864      set X `ls -t "$srcdir/configure" conftest.file`
2865   fi
2866   rm -f conftest.file
2867   if test "$*" != "X $srcdir/configure conftest.file" \
2868      && test "$*" != "X conftest.file $srcdir/configure"; then
2869
2870      # If neither matched, then we have a broken ls.  This can happen
2871      # if, for instance, CONFIG_SHELL is bash and it inherits a
2872      # broken ls alias from the environment.  This has actually
2873      # happened.  Such a system could not be considered "sane".
2874      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2875alias in your environment" "$LINENO" 5
2876   fi
2877
2878   test "$2" = conftest.file
2879   )
2880then
2881   # Ok.
2882   :
2883else
2884   as_fn_error $? "newly created file is older than distributed files!
2885Check your system clock" "$LINENO" 5
2886fi
2887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2888$as_echo "yes" >&6; }
2889test "$program_prefix" != NONE &&
2890  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2891# Use a double $ so make ignores it.
2892test "$program_suffix" != NONE &&
2893  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2894# Double any \ or $.
2895# By default was `s,x,x', remove it if useless.
2896ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2897program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2898
2899# expand $ac_aux_dir to an absolute path
2900am_aux_dir=`cd $ac_aux_dir && pwd`
2901
2902if test x"${MISSING+set}" != xset; then
2903  case $am_aux_dir in
2904  *\ * | *\	*)
2905    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2906  *)
2907    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2908  esac
2909fi
2910# Use eval to expand $SHELL
2911if eval "$MISSING --run true"; then
2912  am_missing_run="$MISSING --run "
2913else
2914  am_missing_run=
2915  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2916$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2917fi
2918
2919if test x"${install_sh}" != xset; then
2920  case $am_aux_dir in
2921  *\ * | *\	*)
2922    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2923  *)
2924    install_sh="\${SHELL} $am_aux_dir/install-sh"
2925  esac
2926fi
2927
2928# Installed binaries are usually stripped using `strip' when the user
2929# run `make install-strip'.  However `strip' might not be the right
2930# tool to use in cross-compilation environments, therefore Automake
2931# will honor the `STRIP' environment variable to overrule this program.
2932if test "$cross_compiling" != no; then
2933  if test -n "$ac_tool_prefix"; then
2934  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2935set dummy ${ac_tool_prefix}strip; ac_word=$2
2936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937$as_echo_n "checking for $ac_word... " >&6; }
2938if test "${ac_cv_prog_STRIP+set}" = set; then :
2939  $as_echo_n "(cached) " >&6
2940else
2941  if test -n "$STRIP"; then
2942  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2943else
2944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945for as_dir in $PATH
2946do
2947  IFS=$as_save_IFS
2948  test -z "$as_dir" && as_dir=.
2949    for ac_exec_ext in '' $ac_executable_extensions; do
2950  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2951    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2952    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2953    break 2
2954  fi
2955done
2956  done
2957IFS=$as_save_IFS
2958
2959fi
2960fi
2961STRIP=$ac_cv_prog_STRIP
2962if test -n "$STRIP"; then
2963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2964$as_echo "$STRIP" >&6; }
2965else
2966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967$as_echo "no" >&6; }
2968fi
2969
2970
2971fi
2972if test -z "$ac_cv_prog_STRIP"; then
2973  ac_ct_STRIP=$STRIP
2974  # Extract the first word of "strip", so it can be a program name with args.
2975set dummy strip; ac_word=$2
2976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2977$as_echo_n "checking for $ac_word... " >&6; }
2978if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2979  $as_echo_n "(cached) " >&6
2980else
2981  if test -n "$ac_ct_STRIP"; then
2982  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2983else
2984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985for as_dir in $PATH
2986do
2987  IFS=$as_save_IFS
2988  test -z "$as_dir" && as_dir=.
2989    for ac_exec_ext in '' $ac_executable_extensions; do
2990  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2991    ac_cv_prog_ac_ct_STRIP="strip"
2992    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2993    break 2
2994  fi
2995done
2996  done
2997IFS=$as_save_IFS
2998
2999fi
3000fi
3001ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3002if test -n "$ac_ct_STRIP"; then
3003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3004$as_echo "$ac_ct_STRIP" >&6; }
3005else
3006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007$as_echo "no" >&6; }
3008fi
3009
3010  if test "x$ac_ct_STRIP" = x; then
3011    STRIP=":"
3012  else
3013    case $cross_compiling:$ac_tool_warned in
3014yes:)
3015{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3016$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3017ac_tool_warned=yes ;;
3018esac
3019    STRIP=$ac_ct_STRIP
3020  fi
3021else
3022  STRIP="$ac_cv_prog_STRIP"
3023fi
3024
3025fi
3026INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3027
3028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3029$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3030if test -z "$MKDIR_P"; then
3031  if test "${ac_cv_path_mkdir+set}" = set; then :
3032  $as_echo_n "(cached) " >&6
3033else
3034  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3036do
3037  IFS=$as_save_IFS
3038  test -z "$as_dir" && as_dir=.
3039    for ac_prog in mkdir gmkdir; do
3040	 for ac_exec_ext in '' $ac_executable_extensions; do
3041	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3042	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3043	     'mkdir (GNU coreutils) '* | \
3044	     'mkdir (coreutils) '* | \
3045	     'mkdir (fileutils) '4.1*)
3046	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3047	       break 3;;
3048	   esac
3049	 done
3050       done
3051  done
3052IFS=$as_save_IFS
3053
3054fi
3055
3056  test -d ./--version && rmdir ./--version
3057  if test "${ac_cv_path_mkdir+set}" = set; then
3058    MKDIR_P="$ac_cv_path_mkdir -p"
3059  else
3060    # As a last resort, use the slow shell script.  Don't cache a
3061    # value for MKDIR_P within a source directory, because that will
3062    # break other packages using the cache if that directory is
3063    # removed, or if the value is a relative name.
3064    MKDIR_P="$ac_install_sh -d"
3065  fi
3066fi
3067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3068$as_echo "$MKDIR_P" >&6; }
3069
3070mkdir_p="$MKDIR_P"
3071case $mkdir_p in
3072  [\\/$]* | ?:[\\/]*) ;;
3073  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3074esac
3075
3076for ac_prog in gawk mawk nawk awk
3077do
3078  # Extract the first word of "$ac_prog", so it can be a program name with args.
3079set dummy $ac_prog; ac_word=$2
3080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081$as_echo_n "checking for $ac_word... " >&6; }
3082if test "${ac_cv_prog_AWK+set}" = set; then :
3083  $as_echo_n "(cached) " >&6
3084else
3085  if test -n "$AWK"; then
3086  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3087else
3088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089for as_dir in $PATH
3090do
3091  IFS=$as_save_IFS
3092  test -z "$as_dir" && as_dir=.
3093    for ac_exec_ext in '' $ac_executable_extensions; do
3094  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3095    ac_cv_prog_AWK="$ac_prog"
3096    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3097    break 2
3098  fi
3099done
3100  done
3101IFS=$as_save_IFS
3102
3103fi
3104fi
3105AWK=$ac_cv_prog_AWK
3106if test -n "$AWK"; then
3107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3108$as_echo "$AWK" >&6; }
3109else
3110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111$as_echo "no" >&6; }
3112fi
3113
3114
3115  test -n "$AWK" && break
3116done
3117
3118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3119$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3120set x ${MAKE-make}
3121ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3122if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3123  $as_echo_n "(cached) " >&6
3124else
3125  cat >conftest.make <<\_ACEOF
3126SHELL = /bin/sh
3127all:
3128	@echo '@@@%%%=$(MAKE)=@@@%%%'
3129_ACEOF
3130# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3131case `${MAKE-make} -f conftest.make 2>/dev/null` in
3132  *@@@%%%=?*=@@@%%%*)
3133    eval ac_cv_prog_make_${ac_make}_set=yes;;
3134  *)
3135    eval ac_cv_prog_make_${ac_make}_set=no;;
3136esac
3137rm -f conftest.make
3138fi
3139if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3141$as_echo "yes" >&6; }
3142  SET_MAKE=
3143else
3144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145$as_echo "no" >&6; }
3146  SET_MAKE="MAKE=${MAKE-make}"
3147fi
3148
3149rm -rf .tst 2>/dev/null
3150mkdir .tst 2>/dev/null
3151if test -d .tst; then
3152  am__leading_dot=.
3153else
3154  am__leading_dot=_
3155fi
3156rmdir .tst 2>/dev/null
3157
3158if test "`cd $srcdir && pwd`" != "`pwd`"; then
3159  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3160  # is not polluted with repeated "-I."
3161  am__isrc=' -I$(srcdir)'
3162  # test to see if srcdir already configured
3163  if test -f $srcdir/config.status; then
3164    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3165  fi
3166fi
3167
3168# test whether we have cygpath
3169if test -z "$CYGPATH_W"; then
3170  if (cygpath --version) >/dev/null 2>/dev/null; then
3171    CYGPATH_W='cygpath -w'
3172  else
3173    CYGPATH_W=echo
3174  fi
3175fi
3176
3177
3178# Define the identity of the package.
3179 PACKAGE='lighttpd'
3180 VERSION='1.4.39'
3181
3182
3183cat >>confdefs.h <<_ACEOF
3184#define PACKAGE "$PACKAGE"
3185_ACEOF
3186
3187
3188cat >>confdefs.h <<_ACEOF
3189#define VERSION "$VERSION"
3190_ACEOF
3191
3192# Some tools Automake needs.
3193
3194ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3195
3196
3197AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3198
3199
3200AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3201
3202
3203AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3204
3205
3206MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3207
3208# We need awk for the "check" target.  The system "awk" is bad on
3209# some platforms.
3210# Always define AMTAR for backward compatibility.
3211
3212AMTAR=${AMTAR-"${am_missing_run}tar"}
3213
3214
3215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3216$as_echo_n "checking how to create a ustar tar archive... " >&6; }
3217# Loop over all known methods to create a tar archive until one works.
3218_am_tools='gnutar plaintar pax cpio none'
3219_am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3220# Do not fold the above two line into one, because Tru64 sh and
3221# Solaris sh will not grok spaces in the rhs of `-'.
3222for _am_tool in $_am_tools
3223do
3224  case $_am_tool in
3225  gnutar)
3226    for _am_tar in tar gnutar gtar;
3227    do
3228      { echo "$as_me:$LINENO: $_am_tar --version" >&5
3229   ($_am_tar --version) >&5 2>&5
3230   ac_status=$?
3231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232   (exit $ac_status); } && break
3233    done
3234    am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3235    am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3236    am__untar="$_am_tar -xf -"
3237    ;;
3238  plaintar)
3239    # Must skip GNU tar: if it does not support --format= it doesn't create
3240    # ustar tarball either.
3241    (tar --version) >/dev/null 2>&1 && continue
3242    am__tar='tar chf - "$$tardir"'
3243    am__tar_='tar chf - "$tardir"'
3244    am__untar='tar xf -'
3245    ;;
3246  pax)
3247    am__tar='pax -L -x ustar -w "$$tardir"'
3248    am__tar_='pax -L -x ustar -w "$tardir"'
3249    am__untar='pax -r'
3250    ;;
3251  cpio)
3252    am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3253    am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3254    am__untar='cpio -i -H ustar -d'
3255    ;;
3256  none)
3257    am__tar=false
3258    am__tar_=false
3259    am__untar=false
3260    ;;
3261  esac
3262
3263  # If the value was cached, stop now.  We just wanted to have am__tar
3264  # and am__untar set.
3265  test -n "${am_cv_prog_tar_ustar}" && break
3266
3267  # tar/untar a dummy directory, and stop if the command works
3268  rm -rf conftest.dir
3269  mkdir conftest.dir
3270  echo GrepMe > conftest.dir/file
3271  { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3272   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3273   ac_status=$?
3274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275   (exit $ac_status); }
3276  rm -rf conftest.dir
3277  if test -s conftest.tar; then
3278    { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3279   ($am__untar <conftest.tar) >&5 2>&5
3280   ac_status=$?
3281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282   (exit $ac_status); }
3283    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3284  fi
3285done
3286rm -rf conftest.dir
3287
3288if test "${am_cv_prog_tar_ustar+set}" = set; then :
3289  $as_echo_n "(cached) " >&6
3290else
3291  am_cv_prog_tar_ustar=$_am_tool
3292fi
3293
3294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3295$as_echo "$am_cv_prog_tar_ustar" >&6; }
3296
3297
3298
3299
3300
3301
3302# Check whether --enable-silent-rules was given.
3303if test "${enable_silent_rules+set}" = set; then :
3304  enableval=$enable_silent_rules;
3305fi
3306
3307case $enable_silent_rules in
3308yes) AM_DEFAULT_VERBOSITY=0;;
3309no)  AM_DEFAULT_VERBOSITY=1;;
3310*)   AM_DEFAULT_VERBOSITY=1;;
3311esac
3312AM_BACKSLASH='\'
3313
3314
3315ac_ext=c
3316ac_cpp='$CPP $CPPFLAGS'
3317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3319ac_compiler_gnu=$ac_cv_c_compiler_gnu
3320if test -n "$ac_tool_prefix"; then
3321  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3322set dummy ${ac_tool_prefix}gcc; ac_word=$2
3323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3324$as_echo_n "checking for $ac_word... " >&6; }
3325if test "${ac_cv_prog_CC+set}" = set; then :
3326  $as_echo_n "(cached) " >&6
3327else
3328  if test -n "$CC"; then
3329  ac_cv_prog_CC="$CC" # Let the user override the test.
3330else
3331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332for as_dir in $PATH
3333do
3334  IFS=$as_save_IFS
3335  test -z "$as_dir" && as_dir=.
3336    for ac_exec_ext in '' $ac_executable_extensions; do
3337  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3338    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3339    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3340    break 2
3341  fi
3342done
3343  done
3344IFS=$as_save_IFS
3345
3346fi
3347fi
3348CC=$ac_cv_prog_CC
3349if test -n "$CC"; then
3350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3351$as_echo "$CC" >&6; }
3352else
3353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354$as_echo "no" >&6; }
3355fi
3356
3357
3358fi
3359if test -z "$ac_cv_prog_CC"; then
3360  ac_ct_CC=$CC
3361  # Extract the first word of "gcc", so it can be a program name with args.
3362set dummy gcc; ac_word=$2
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3364$as_echo_n "checking for $ac_word... " >&6; }
3365if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3366  $as_echo_n "(cached) " >&6
3367else
3368  if test -n "$ac_ct_CC"; then
3369  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3370else
3371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372for as_dir in $PATH
3373do
3374  IFS=$as_save_IFS
3375  test -z "$as_dir" && as_dir=.
3376    for ac_exec_ext in '' $ac_executable_extensions; do
3377  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3378    ac_cv_prog_ac_ct_CC="gcc"
3379    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3380    break 2
3381  fi
3382done
3383  done
3384IFS=$as_save_IFS
3385
3386fi
3387fi
3388ac_ct_CC=$ac_cv_prog_ac_ct_CC
3389if test -n "$ac_ct_CC"; then
3390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3391$as_echo "$ac_ct_CC" >&6; }
3392else
3393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3394$as_echo "no" >&6; }
3395fi
3396
3397  if test "x$ac_ct_CC" = x; then
3398    CC=""
3399  else
3400    case $cross_compiling:$ac_tool_warned in
3401yes:)
3402{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3403$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3404ac_tool_warned=yes ;;
3405esac
3406    CC=$ac_ct_CC
3407  fi
3408else
3409  CC="$ac_cv_prog_CC"
3410fi
3411
3412if test -z "$CC"; then
3413          if test -n "$ac_tool_prefix"; then
3414    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3415set dummy ${ac_tool_prefix}cc; ac_word=$2
3416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3417$as_echo_n "checking for $ac_word... " >&6; }
3418if test "${ac_cv_prog_CC+set}" = set; then :
3419  $as_echo_n "(cached) " >&6
3420else
3421  if test -n "$CC"; then
3422  ac_cv_prog_CC="$CC" # Let the user override the test.
3423else
3424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425for as_dir in $PATH
3426do
3427  IFS=$as_save_IFS
3428  test -z "$as_dir" && as_dir=.
3429    for ac_exec_ext in '' $ac_executable_extensions; do
3430  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3431    ac_cv_prog_CC="${ac_tool_prefix}cc"
3432    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3433    break 2
3434  fi
3435done
3436  done
3437IFS=$as_save_IFS
3438
3439fi
3440fi
3441CC=$ac_cv_prog_CC
3442if test -n "$CC"; then
3443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3444$as_echo "$CC" >&6; }
3445else
3446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447$as_echo "no" >&6; }
3448fi
3449
3450
3451  fi
3452fi
3453if test -z "$CC"; then
3454  # Extract the first word of "cc", so it can be a program name with args.
3455set dummy cc; ac_word=$2
3456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3457$as_echo_n "checking for $ac_word... " >&6; }
3458if test "${ac_cv_prog_CC+set}" = set; then :
3459  $as_echo_n "(cached) " >&6
3460else
3461  if test -n "$CC"; then
3462  ac_cv_prog_CC="$CC" # Let the user override the test.
3463else
3464  ac_prog_rejected=no
3465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466for as_dir in $PATH
3467do
3468  IFS=$as_save_IFS
3469  test -z "$as_dir" && as_dir=.
3470    for ac_exec_ext in '' $ac_executable_extensions; do
3471  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3472    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3473       ac_prog_rejected=yes
3474       continue
3475     fi
3476    ac_cv_prog_CC="cc"
3477    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3478    break 2
3479  fi
3480done
3481  done
3482IFS=$as_save_IFS
3483
3484if test $ac_prog_rejected = yes; then
3485  # We found a bogon in the path, so make sure we never use it.
3486  set dummy $ac_cv_prog_CC
3487  shift
3488  if test $# != 0; then
3489    # We chose a different compiler from the bogus one.
3490    # However, it has the same basename, so the bogon will be chosen
3491    # first if we set CC to just the basename; use the full file name.
3492    shift
3493    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3494  fi
3495fi
3496fi
3497fi
3498CC=$ac_cv_prog_CC
3499if test -n "$CC"; then
3500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3501$as_echo "$CC" >&6; }
3502else
3503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3504$as_echo "no" >&6; }
3505fi
3506
3507
3508fi
3509if test -z "$CC"; then
3510  if test -n "$ac_tool_prefix"; then
3511  for ac_prog in cl.exe
3512  do
3513    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3514set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3516$as_echo_n "checking for $ac_word... " >&6; }
3517if test "${ac_cv_prog_CC+set}" = set; then :
3518  $as_echo_n "(cached) " >&6
3519else
3520  if test -n "$CC"; then
3521  ac_cv_prog_CC="$CC" # Let the user override the test.
3522else
3523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524for as_dir in $PATH
3525do
3526  IFS=$as_save_IFS
3527  test -z "$as_dir" && as_dir=.
3528    for ac_exec_ext in '' $ac_executable_extensions; do
3529  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3530    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3531    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3532    break 2
3533  fi
3534done
3535  done
3536IFS=$as_save_IFS
3537
3538fi
3539fi
3540CC=$ac_cv_prog_CC
3541if test -n "$CC"; then
3542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3543$as_echo "$CC" >&6; }
3544else
3545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3546$as_echo "no" >&6; }
3547fi
3548
3549
3550    test -n "$CC" && break
3551  done
3552fi
3553if test -z "$CC"; then
3554  ac_ct_CC=$CC
3555  for ac_prog in cl.exe
3556do
3557  # Extract the first word of "$ac_prog", so it can be a program name with args.
3558set dummy $ac_prog; ac_word=$2
3559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3560$as_echo_n "checking for $ac_word... " >&6; }
3561if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3562  $as_echo_n "(cached) " >&6
3563else
3564  if test -n "$ac_ct_CC"; then
3565  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3566else
3567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3568for as_dir in $PATH
3569do
3570  IFS=$as_save_IFS
3571  test -z "$as_dir" && as_dir=.
3572    for ac_exec_ext in '' $ac_executable_extensions; do
3573  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3574    ac_cv_prog_ac_ct_CC="$ac_prog"
3575    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3576    break 2
3577  fi
3578done
3579  done
3580IFS=$as_save_IFS
3581
3582fi
3583fi
3584ac_ct_CC=$ac_cv_prog_ac_ct_CC
3585if test -n "$ac_ct_CC"; then
3586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3587$as_echo "$ac_ct_CC" >&6; }
3588else
3589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3590$as_echo "no" >&6; }
3591fi
3592
3593
3594  test -n "$ac_ct_CC" && break
3595done
3596
3597  if test "x$ac_ct_CC" = x; then
3598    CC=""
3599  else
3600    case $cross_compiling:$ac_tool_warned in
3601yes:)
3602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3604ac_tool_warned=yes ;;
3605esac
3606    CC=$ac_ct_CC
3607  fi
3608fi
3609
3610fi
3611
3612
3613test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3614$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3615as_fn_error $? "no acceptable C compiler found in \$PATH
3616See \`config.log' for more details" "$LINENO" 5 ; }
3617
3618# Provide some information about the compiler.
3619$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3620set X $ac_compile
3621ac_compiler=$2
3622for ac_option in --version -v -V -qversion; do
3623  { { ac_try="$ac_compiler $ac_option >&5"
3624case "(($ac_try" in
3625  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626  *) ac_try_echo=$ac_try;;
3627esac
3628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3629$as_echo "$ac_try_echo"; } >&5
3630  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3631  ac_status=$?
3632  if test -s conftest.err; then
3633    sed '10a\
3634... rest of stderr output deleted ...
3635         10q' conftest.err >conftest.er1
3636    cat conftest.er1 >&5
3637  fi
3638  rm -f conftest.er1 conftest.err
3639  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3640  test $ac_status = 0; }
3641done
3642
3643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644/* end confdefs.h.  */
3645
3646int
3647main ()
3648{
3649
3650  ;
3651  return 0;
3652}
3653_ACEOF
3654ac_clean_files_save=$ac_clean_files
3655ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3656# Try to create an executable without -o first, disregard a.out.
3657# It will help us diagnose broken compilers, and finding out an intuition
3658# of exeext.
3659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3660$as_echo_n "checking whether the C compiler works... " >&6; }
3661ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3662
3663# The possible output files:
3664ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3665
3666ac_rmfiles=
3667for ac_file in $ac_files
3668do
3669  case $ac_file in
3670    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3671    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3672  esac
3673done
3674rm -f $ac_rmfiles
3675
3676if { { ac_try="$ac_link_default"
3677case "(($ac_try" in
3678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679  *) ac_try_echo=$ac_try;;
3680esac
3681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3682$as_echo "$ac_try_echo"; } >&5
3683  (eval "$ac_link_default") 2>&5
3684  ac_status=$?
3685  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3686  test $ac_status = 0; }; then :
3687  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3688# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3689# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3690# so that the user can short-circuit this test for compilers unknown to
3691# Autoconf.
3692for ac_file in $ac_files ''
3693do
3694  test -f "$ac_file" || continue
3695  case $ac_file in
3696    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3697	;;
3698    [ab].out )
3699	# We found the default executable, but exeext='' is most
3700	# certainly right.
3701	break;;
3702    *.* )
3703	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3704	then :; else
3705	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3706	fi
3707	# We set ac_cv_exeext here because the later test for it is not
3708	# safe: cross compilers may not add the suffix if given an `-o'
3709	# argument, so we may need to know it at that point already.
3710	# Even if this section looks crufty: it has the advantage of
3711	# actually working.
3712	break;;
3713    * )
3714	break;;
3715  esac
3716done
3717test "$ac_cv_exeext" = no && ac_cv_exeext=
3718
3719else
3720  ac_file=''
3721fi
3722if test -z "$ac_file"; then :
3723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3724$as_echo "no" >&6; }
3725$as_echo "$as_me: failed program was:" >&5
3726sed 's/^/| /' conftest.$ac_ext >&5
3727
3728{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3729$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3730as_fn_error 77 "C compiler cannot create executables
3731See \`config.log' for more details" "$LINENO" 5 ; }
3732else
3733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3734$as_echo "yes" >&6; }
3735fi
3736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3737$as_echo_n "checking for C compiler default output file name... " >&6; }
3738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3739$as_echo "$ac_file" >&6; }
3740ac_exeext=$ac_cv_exeext
3741
3742rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3743ac_clean_files=$ac_clean_files_save
3744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3745$as_echo_n "checking for suffix of executables... " >&6; }
3746if { { ac_try="$ac_link"
3747case "(($ac_try" in
3748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3749  *) ac_try_echo=$ac_try;;
3750esac
3751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3752$as_echo "$ac_try_echo"; } >&5
3753  (eval "$ac_link") 2>&5
3754  ac_status=$?
3755  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3756  test $ac_status = 0; }; then :
3757  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3758# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3759# work properly (i.e., refer to `conftest.exe'), while it won't with
3760# `rm'.
3761for ac_file in conftest.exe conftest conftest.*; do
3762  test -f "$ac_file" || continue
3763  case $ac_file in
3764    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3765    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3766	  break;;
3767    * ) break;;
3768  esac
3769done
3770else
3771  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3772$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3773as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3774See \`config.log' for more details" "$LINENO" 5 ; }
3775fi
3776rm -f conftest conftest$ac_cv_exeext
3777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3778$as_echo "$ac_cv_exeext" >&6; }
3779
3780rm -f conftest.$ac_ext
3781EXEEXT=$ac_cv_exeext
3782ac_exeext=$EXEEXT
3783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784/* end confdefs.h.  */
3785#include <stdio.h>
3786int
3787main ()
3788{
3789FILE *f = fopen ("conftest.out", "w");
3790 return ferror (f) || fclose (f) != 0;
3791
3792  ;
3793  return 0;
3794}
3795_ACEOF
3796ac_clean_files="$ac_clean_files conftest.out"
3797# Check that the compiler produces executables we can run.  If not, either
3798# the compiler is broken, or we cross compile.
3799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3800$as_echo_n "checking whether we are cross compiling... " >&6; }
3801if test "$cross_compiling" != yes; then
3802  { { ac_try="$ac_link"
3803case "(($ac_try" in
3804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805  *) ac_try_echo=$ac_try;;
3806esac
3807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3808$as_echo "$ac_try_echo"; } >&5
3809  (eval "$ac_link") 2>&5
3810  ac_status=$?
3811  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3812  test $ac_status = 0; }
3813  if { ac_try='./conftest$ac_cv_exeext'
3814  { { case "(($ac_try" in
3815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816  *) ac_try_echo=$ac_try;;
3817esac
3818eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3819$as_echo "$ac_try_echo"; } >&5
3820  (eval "$ac_try") 2>&5
3821  ac_status=$?
3822  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3823  test $ac_status = 0; }; }; then
3824    cross_compiling=no
3825  else
3826    if test "$cross_compiling" = maybe; then
3827	cross_compiling=yes
3828    else
3829	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3830$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3831as_fn_error $? "cannot run C compiled programs.
3832If you meant to cross compile, use \`--host'.
3833See \`config.log' for more details" "$LINENO" 5 ; }
3834    fi
3835  fi
3836fi
3837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3838$as_echo "$cross_compiling" >&6; }
3839
3840rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3841ac_clean_files=$ac_clean_files_save
3842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3843$as_echo_n "checking for suffix of object files... " >&6; }
3844if test "${ac_cv_objext+set}" = set; then :
3845  $as_echo_n "(cached) " >&6
3846else
3847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848/* end confdefs.h.  */
3849
3850int
3851main ()
3852{
3853
3854  ;
3855  return 0;
3856}
3857_ACEOF
3858rm -f conftest.o conftest.obj
3859if { { ac_try="$ac_compile"
3860case "(($ac_try" in
3861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3862  *) ac_try_echo=$ac_try;;
3863esac
3864eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3865$as_echo "$ac_try_echo"; } >&5
3866  (eval "$ac_compile") 2>&5
3867  ac_status=$?
3868  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3869  test $ac_status = 0; }; then :
3870  for ac_file in conftest.o conftest.obj conftest.*; do
3871  test -f "$ac_file" || continue;
3872  case $ac_file in
3873    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3874    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3875       break;;
3876  esac
3877done
3878else
3879  $as_echo "$as_me: failed program was:" >&5
3880sed 's/^/| /' conftest.$ac_ext >&5
3881
3882{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3883$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3884as_fn_error $? "cannot compute suffix of object files: cannot compile
3885See \`config.log' for more details" "$LINENO" 5 ; }
3886fi
3887rm -f conftest.$ac_cv_objext conftest.$ac_ext
3888fi
3889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3890$as_echo "$ac_cv_objext" >&6; }
3891OBJEXT=$ac_cv_objext
3892ac_objext=$OBJEXT
3893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3894$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3895if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3896  $as_echo_n "(cached) " >&6
3897else
3898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3899/* end confdefs.h.  */
3900
3901int
3902main ()
3903{
3904#ifndef __GNUC__
3905       choke me
3906#endif
3907
3908  ;
3909  return 0;
3910}
3911_ACEOF
3912if ac_fn_c_try_compile "$LINENO"; then :
3913  ac_compiler_gnu=yes
3914else
3915  ac_compiler_gnu=no
3916fi
3917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3918ac_cv_c_compiler_gnu=$ac_compiler_gnu
3919
3920fi
3921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3922$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3923if test $ac_compiler_gnu = yes; then
3924  GCC=yes
3925else
3926  GCC=
3927fi
3928ac_test_CFLAGS=${CFLAGS+set}
3929ac_save_CFLAGS=$CFLAGS
3930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3931$as_echo_n "checking whether $CC accepts -g... " >&6; }
3932if test "${ac_cv_prog_cc_g+set}" = set; then :
3933  $as_echo_n "(cached) " >&6
3934else
3935  ac_save_c_werror_flag=$ac_c_werror_flag
3936   ac_c_werror_flag=yes
3937   ac_cv_prog_cc_g=no
3938   CFLAGS="-g"
3939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940/* end confdefs.h.  */
3941
3942int
3943main ()
3944{
3945
3946  ;
3947  return 0;
3948}
3949_ACEOF
3950if ac_fn_c_try_compile "$LINENO"; then :
3951  ac_cv_prog_cc_g=yes
3952else
3953  CFLAGS=""
3954      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955/* end confdefs.h.  */
3956
3957int
3958main ()
3959{
3960
3961  ;
3962  return 0;
3963}
3964_ACEOF
3965if ac_fn_c_try_compile "$LINENO"; then :
3966
3967else
3968  ac_c_werror_flag=$ac_save_c_werror_flag
3969	 CFLAGS="-g"
3970	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971/* end confdefs.h.  */
3972
3973int
3974main ()
3975{
3976
3977  ;
3978  return 0;
3979}
3980_ACEOF
3981if ac_fn_c_try_compile "$LINENO"; then :
3982  ac_cv_prog_cc_g=yes
3983fi
3984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3985fi
3986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3987fi
3988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3989   ac_c_werror_flag=$ac_save_c_werror_flag
3990fi
3991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3992$as_echo "$ac_cv_prog_cc_g" >&6; }
3993if test "$ac_test_CFLAGS" = set; then
3994  CFLAGS=$ac_save_CFLAGS
3995elif test $ac_cv_prog_cc_g = yes; then
3996  if test "$GCC" = yes; then
3997    CFLAGS="-g -O2"
3998  else
3999    CFLAGS="-g"
4000  fi
4001else
4002  if test "$GCC" = yes; then
4003    CFLAGS="-O2"
4004  else
4005    CFLAGS=
4006  fi
4007fi
4008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4009$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4010if test "${ac_cv_prog_cc_c89+set}" = set; then :
4011  $as_echo_n "(cached) " >&6
4012else
4013  ac_cv_prog_cc_c89=no
4014ac_save_CC=$CC
4015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4016/* end confdefs.h.  */
4017#include <stdarg.h>
4018#include <stdio.h>
4019#include <sys/types.h>
4020#include <sys/stat.h>
4021/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4022struct buf { int x; };
4023FILE * (*rcsopen) (struct buf *, struct stat *, int);
4024static char *e (p, i)
4025     char **p;
4026     int i;
4027{
4028  return p[i];
4029}
4030static char *f (char * (*g) (char **, int), char **p, ...)
4031{
4032  char *s;
4033  va_list v;
4034  va_start (v,p);
4035  s = g (p, va_arg (v,int));
4036  va_end (v);
4037  return s;
4038}
4039
4040/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4041   function prototypes and stuff, but not '\xHH' hex character constants.
4042   These don't provoke an error unfortunately, instead are silently treated
4043   as 'x'.  The following induces an error, until -std is added to get
4044   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4045   array size at least.  It's necessary to write '\x00'==0 to get something
4046   that's true only with -std.  */
4047int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4048
4049/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4050   inside strings and character constants.  */
4051#define FOO(x) 'x'
4052int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4053
4054int test (int i, double x);
4055struct s1 {int (*f) (int a);};
4056struct s2 {int (*f) (double a);};
4057int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4058int argc;
4059char **argv;
4060int
4061main ()
4062{
4063return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4064  ;
4065  return 0;
4066}
4067_ACEOF
4068for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4069	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4070do
4071  CC="$ac_save_CC $ac_arg"
4072  if ac_fn_c_try_compile "$LINENO"; then :
4073  ac_cv_prog_cc_c89=$ac_arg
4074fi
4075rm -f core conftest.err conftest.$ac_objext
4076  test "x$ac_cv_prog_cc_c89" != "xno" && break
4077done
4078rm -f conftest.$ac_ext
4079CC=$ac_save_CC
4080
4081fi
4082# AC_CACHE_VAL
4083case "x$ac_cv_prog_cc_c89" in
4084  x)
4085    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4086$as_echo "none needed" >&6; } ;;
4087  xno)
4088    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4089$as_echo "unsupported" >&6; } ;;
4090  *)
4091    CC="$CC $ac_cv_prog_cc_c89"
4092    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4093$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4094esac
4095if test "x$ac_cv_prog_cc_c89" != xno; then :
4096
4097fi
4098
4099ac_ext=c
4100ac_cpp='$CPP $CPPFLAGS'
4101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4103ac_compiler_gnu=$ac_cv_c_compiler_gnu
4104DEPDIR="${am__leading_dot}deps"
4105
4106ac_config_commands="$ac_config_commands depfiles"
4107
4108
4109am_make=${MAKE-make}
4110cat > confinc << 'END'
4111am__doit:
4112	@echo this is the am__doit target
4113.PHONY: am__doit
4114END
4115# If we don't find an include directive, just comment out the code.
4116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4117$as_echo_n "checking for style of include used by $am_make... " >&6; }
4118am__include="#"
4119am__quote=
4120_am_result=none
4121# First try GNU make style include.
4122echo "include confinc" > confmf
4123# Ignore all kinds of additional output from `make'.
4124case `$am_make -s -f confmf 2> /dev/null` in #(
4125*the\ am__doit\ target*)
4126  am__include=include
4127  am__quote=
4128  _am_result=GNU
4129  ;;
4130esac
4131# Now try BSD make style include.
4132if test "$am__include" = "#"; then
4133   echo '.include "confinc"' > confmf
4134   case `$am_make -s -f confmf 2> /dev/null` in #(
4135   *the\ am__doit\ target*)
4136     am__include=.include
4137     am__quote="\""
4138     _am_result=BSD
4139     ;;
4140   esac
4141fi
4142
4143
4144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4145$as_echo "$_am_result" >&6; }
4146rm -f confinc confmf
4147
4148# Check whether --enable-dependency-tracking was given.
4149if test "${enable_dependency_tracking+set}" = set; then :
4150  enableval=$enable_dependency_tracking;
4151fi
4152
4153if test "x$enable_dependency_tracking" != xno; then
4154  am_depcomp="$ac_aux_dir/depcomp"
4155  AMDEPBACKSLASH='\'
4156fi
4157 if test "x$enable_dependency_tracking" != xno; then
4158  AMDEP_TRUE=
4159  AMDEP_FALSE='#'
4160else
4161  AMDEP_TRUE='#'
4162  AMDEP_FALSE=
4163fi
4164
4165
4166
4167depcc="$CC"   am_compiler_list=
4168
4169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4170$as_echo_n "checking dependency style of $depcc... " >&6; }
4171if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4172  $as_echo_n "(cached) " >&6
4173else
4174  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4175  # We make a subdir and do the tests there.  Otherwise we can end up
4176  # making bogus files that we don't know about and never remove.  For
4177  # instance it was reported that on HP-UX the gcc test will end up
4178  # making a dummy file named `D' -- because `-MD' means `put the output
4179  # in D'.
4180  mkdir conftest.dir
4181  # Copy depcomp to subdir because otherwise we won't find it if we're
4182  # using a relative directory.
4183  cp "$am_depcomp" conftest.dir
4184  cd conftest.dir
4185  # We will build objects and dependencies in a subdirectory because
4186  # it helps to detect inapplicable dependency modes.  For instance
4187  # both Tru64's cc and ICC support -MD to output dependencies as a
4188  # side effect of compilation, but ICC will put the dependencies in
4189  # the current directory while Tru64 will put them in the object
4190  # directory.
4191  mkdir sub
4192
4193  am_cv_CC_dependencies_compiler_type=none
4194  if test "$am_compiler_list" = ""; then
4195     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4196  fi
4197  am__universal=false
4198  case " $depcc " in #(
4199     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4200     esac
4201
4202  for depmode in $am_compiler_list; do
4203    # Setup a source with many dependencies, because some compilers
4204    # like to wrap large dependency lists on column 80 (with \), and
4205    # we should not choose a depcomp mode which is confused by this.
4206    #
4207    # We need to recreate these files for each test, as the compiler may
4208    # overwrite some of them when testing with obscure command lines.
4209    # This happens at least with the AIX C compiler.
4210    : > sub/conftest.c
4211    for i in 1 2 3 4 5 6; do
4212      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4213      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4214      # Solaris 8's {/usr,}/bin/sh.
4215      touch sub/conftst$i.h
4216    done
4217    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4218
4219    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4220    # mode.  It turns out that the SunPro C++ compiler does not properly
4221    # handle `-M -o', and we need to detect this.  Also, some Intel
4222    # versions had trouble with output in subdirs
4223    am__obj=sub/conftest.${OBJEXT-o}
4224    am__minus_obj="-o $am__obj"
4225    case $depmode in
4226    gcc)
4227      # This depmode causes a compiler race in universal mode.
4228      test "$am__universal" = false || continue
4229      ;;
4230    nosideeffect)
4231      # after this tag, mechanisms are not by side-effect, so they'll
4232      # only be used when explicitly requested
4233      if test "x$enable_dependency_tracking" = xyes; then
4234	continue
4235      else
4236	break
4237      fi
4238      ;;
4239    msvisualcpp | msvcmsys)
4240      # This compiler won't grok `-c -o', but also, the minuso test has
4241      # not run yet.  These depmodes are late enough in the game, and
4242      # so weak that their functioning should not be impacted.
4243      am__obj=conftest.${OBJEXT-o}
4244      am__minus_obj=
4245      ;;
4246    none) break ;;
4247    esac
4248    if depmode=$depmode \
4249       source=sub/conftest.c object=$am__obj \
4250       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4251       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4252         >/dev/null 2>conftest.err &&
4253       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4254       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4255       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4256       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4257      # icc doesn't choke on unknown options, it will just issue warnings
4258      # or remarks (even with -Werror).  So we grep stderr for any message
4259      # that says an option was ignored or not supported.
4260      # When given -MP, icc 7.0 and 7.1 complain thusly:
4261      #   icc: Command line warning: ignoring option '-M'; no argument required
4262      # The diagnosis changed in icc 8.0:
4263      #   icc: Command line remark: option '-MP' not supported
4264      if (grep 'ignoring option' conftest.err ||
4265          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4266        am_cv_CC_dependencies_compiler_type=$depmode
4267        break
4268      fi
4269    fi
4270  done
4271
4272  cd ..
4273  rm -rf conftest.dir
4274else
4275  am_cv_CC_dependencies_compiler_type=none
4276fi
4277
4278fi
4279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4280$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4281CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4282
4283 if
4284  test "x$enable_dependency_tracking" != xno \
4285  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4286  am__fastdepCC_TRUE=
4287  am__fastdepCC_FALSE='#'
4288else
4289  am__fastdepCC_TRUE='#'
4290  am__fastdepCC_FALSE=
4291fi
4292
4293
4294if test "x$CC" != xcc; then
4295  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4296$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4297else
4298  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4299$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4300fi
4301set dummy $CC; ac_cc=`$as_echo "$2" |
4302		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4303if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
4304  $as_echo_n "(cached) " >&6
4305else
4306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307/* end confdefs.h.  */
4308
4309int
4310main ()
4311{
4312
4313  ;
4314  return 0;
4315}
4316_ACEOF
4317# Make sure it works both with $CC and with simple cc.
4318# We do the test twice because some compilers refuse to overwrite an
4319# existing .o file with -o, though they will create one.
4320ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4321rm -f conftest2.*
4322if { { case "(($ac_try" in
4323  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324  *) ac_try_echo=$ac_try;;
4325esac
4326eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4327$as_echo "$ac_try_echo"; } >&5
4328  (eval "$ac_try") 2>&5
4329  ac_status=$?
4330  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4331  test $ac_status = 0; } &&
4332   test -f conftest2.$ac_objext && { { case "(($ac_try" in
4333  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334  *) ac_try_echo=$ac_try;;
4335esac
4336eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4337$as_echo "$ac_try_echo"; } >&5
4338  (eval "$ac_try") 2>&5
4339  ac_status=$?
4340  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4341  test $ac_status = 0; };
4342then
4343  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4344  if test "x$CC" != xcc; then
4345    # Test first that cc exists at all.
4346    if { ac_try='cc -c conftest.$ac_ext >&5'
4347  { { case "(($ac_try" in
4348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349  *) ac_try_echo=$ac_try;;
4350esac
4351eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4352$as_echo "$ac_try_echo"; } >&5
4353  (eval "$ac_try") 2>&5
4354  ac_status=$?
4355  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4356  test $ac_status = 0; }; }; then
4357      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4358      rm -f conftest2.*
4359      if { { case "(($ac_try" in
4360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361  *) ac_try_echo=$ac_try;;
4362esac
4363eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4364$as_echo "$ac_try_echo"; } >&5
4365  (eval "$ac_try") 2>&5
4366  ac_status=$?
4367  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4368  test $ac_status = 0; } &&
4369	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371  *) ac_try_echo=$ac_try;;
4372esac
4373eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4374$as_echo "$ac_try_echo"; } >&5
4375  (eval "$ac_try") 2>&5
4376  ac_status=$?
4377  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4378  test $ac_status = 0; };
4379      then
4380	# cc works too.
4381	:
4382      else
4383	# cc exists but doesn't like -o.
4384	eval ac_cv_prog_cc_${ac_cc}_c_o=no
4385      fi
4386    fi
4387  fi
4388else
4389  eval ac_cv_prog_cc_${ac_cc}_c_o=no
4390fi
4391rm -f core conftest*
4392
4393fi
4394if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4396$as_echo "yes" >&6; }
4397else
4398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4399$as_echo "no" >&6; }
4400
4401$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4402
4403fi
4404
4405# FIXME: we rely on the cache variable name because
4406# there is no other way.
4407set dummy $CC
4408am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4409eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4410if test "$am_t" != yes; then
4411   # Losing compiler, so override with the script.
4412   # FIXME: It is wrong to rewrite CC.
4413   # But if we don't then we get into trouble of one sort or another.
4414   # A longer-term fix would be to have automake use am__CC in this case,
4415   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4416   CC="$am_aux_dir/compile $CC"
4417fi
4418
4419
4420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4421$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4422if test "${ac_cv_path_SED+set}" = set; then :
4423  $as_echo_n "(cached) " >&6
4424else
4425            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4426     for ac_i in 1 2 3 4 5 6 7; do
4427       ac_script="$ac_script$as_nl$ac_script"
4428     done
4429     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4430     { ac_script=; unset ac_script;}
4431     if test -z "$SED"; then
4432  ac_path_SED_found=false
4433  # Loop through the user's path and test for each of PROGNAME-LIST
4434  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435for as_dir in $PATH
4436do
4437  IFS=$as_save_IFS
4438  test -z "$as_dir" && as_dir=.
4439    for ac_prog in sed gsed; do
4440    for ac_exec_ext in '' $ac_executable_extensions; do
4441      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4442      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4443# Check for GNU ac_path_SED and select it if it is found.
4444  # Check for GNU $ac_path_SED
4445case `"$ac_path_SED" --version 2>&1` in
4446*GNU*)
4447  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4448*)
4449  ac_count=0
4450  $as_echo_n 0123456789 >"conftest.in"
4451  while :
4452  do
4453    cat "conftest.in" "conftest.in" >"conftest.tmp"
4454    mv "conftest.tmp" "conftest.in"
4455    cp "conftest.in" "conftest.nl"
4456    $as_echo '' >> "conftest.nl"
4457    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4458    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4459    as_fn_arith $ac_count + 1 && ac_count=$as_val
4460    if test $ac_count -gt ${ac_path_SED_max-0}; then
4461      # Best one so far, save it but keep looking for a better one
4462      ac_cv_path_SED="$ac_path_SED"
4463      ac_path_SED_max=$ac_count
4464    fi
4465    # 10*(2^10) chars as input seems more than enough
4466    test $ac_count -gt 10 && break
4467  done
4468  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4469esac
4470
4471      $ac_path_SED_found && break 3
4472    done
4473  done
4474  done
4475IFS=$as_save_IFS
4476  if test -z "$ac_cv_path_SED"; then
4477    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4478  fi
4479else
4480  ac_cv_path_SED=$SED
4481fi
4482
4483fi
4484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4485$as_echo "$ac_cv_path_SED" >&6; }
4486 SED="$ac_cv_path_SED"
4487  rm -f conftest.sed
4488
4489test -z "$SED" && SED=sed
4490Xsed="$SED -e 1s/^X//"
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4503$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4504if test "${ac_cv_path_GREP+set}" = set; then :
4505  $as_echo_n "(cached) " >&6
4506else
4507  if test -z "$GREP"; then
4508  ac_path_GREP_found=false
4509  # Loop through the user's path and test for each of PROGNAME-LIST
4510  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4512do
4513  IFS=$as_save_IFS
4514  test -z "$as_dir" && as_dir=.
4515    for ac_prog in grep ggrep; do
4516    for ac_exec_ext in '' $ac_executable_extensions; do
4517      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4518      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4519# Check for GNU ac_path_GREP and select it if it is found.
4520  # Check for GNU $ac_path_GREP
4521case `"$ac_path_GREP" --version 2>&1` in
4522*GNU*)
4523  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4524*)
4525  ac_count=0
4526  $as_echo_n 0123456789 >"conftest.in"
4527  while :
4528  do
4529    cat "conftest.in" "conftest.in" >"conftest.tmp"
4530    mv "conftest.tmp" "conftest.in"
4531    cp "conftest.in" "conftest.nl"
4532    $as_echo 'GREP' >> "conftest.nl"
4533    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4534    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4535    as_fn_arith $ac_count + 1 && ac_count=$as_val
4536    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4537      # Best one so far, save it but keep looking for a better one
4538      ac_cv_path_GREP="$ac_path_GREP"
4539      ac_path_GREP_max=$ac_count
4540    fi
4541    # 10*(2^10) chars as input seems more than enough
4542    test $ac_count -gt 10 && break
4543  done
4544  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4545esac
4546
4547      $ac_path_GREP_found && break 3
4548    done
4549  done
4550  done
4551IFS=$as_save_IFS
4552  if test -z "$ac_cv_path_GREP"; then
4553    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4554  fi
4555else
4556  ac_cv_path_GREP=$GREP
4557fi
4558
4559fi
4560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4561$as_echo "$ac_cv_path_GREP" >&6; }
4562 GREP="$ac_cv_path_GREP"
4563
4564
4565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4566$as_echo_n "checking for egrep... " >&6; }
4567if test "${ac_cv_path_EGREP+set}" = set; then :
4568  $as_echo_n "(cached) " >&6
4569else
4570  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4571   then ac_cv_path_EGREP="$GREP -E"
4572   else
4573     if test -z "$EGREP"; then
4574  ac_path_EGREP_found=false
4575  # Loop through the user's path and test for each of PROGNAME-LIST
4576  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4578do
4579  IFS=$as_save_IFS
4580  test -z "$as_dir" && as_dir=.
4581    for ac_prog in egrep; do
4582    for ac_exec_ext in '' $ac_executable_extensions; do
4583      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4584      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4585# Check for GNU ac_path_EGREP and select it if it is found.
4586  # Check for GNU $ac_path_EGREP
4587case `"$ac_path_EGREP" --version 2>&1` in
4588*GNU*)
4589  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4590*)
4591  ac_count=0
4592  $as_echo_n 0123456789 >"conftest.in"
4593  while :
4594  do
4595    cat "conftest.in" "conftest.in" >"conftest.tmp"
4596    mv "conftest.tmp" "conftest.in"
4597    cp "conftest.in" "conftest.nl"
4598    $as_echo 'EGREP' >> "conftest.nl"
4599    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4600    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4601    as_fn_arith $ac_count + 1 && ac_count=$as_val
4602    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4603      # Best one so far, save it but keep looking for a better one
4604      ac_cv_path_EGREP="$ac_path_EGREP"
4605      ac_path_EGREP_max=$ac_count
4606    fi
4607    # 10*(2^10) chars as input seems more than enough
4608    test $ac_count -gt 10 && break
4609  done
4610  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4611esac
4612
4613      $ac_path_EGREP_found && break 3
4614    done
4615  done
4616  done
4617IFS=$as_save_IFS
4618  if test -z "$ac_cv_path_EGREP"; then
4619    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4620  fi
4621else
4622  ac_cv_path_EGREP=$EGREP
4623fi
4624
4625   fi
4626fi
4627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4628$as_echo "$ac_cv_path_EGREP" >&6; }
4629 EGREP="$ac_cv_path_EGREP"
4630
4631
4632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4633$as_echo_n "checking for fgrep... " >&6; }
4634if test "${ac_cv_path_FGREP+set}" = set; then :
4635  $as_echo_n "(cached) " >&6
4636else
4637  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4638   then ac_cv_path_FGREP="$GREP -F"
4639   else
4640     if test -z "$FGREP"; then
4641  ac_path_FGREP_found=false
4642  # Loop through the user's path and test for each of PROGNAME-LIST
4643  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4645do
4646  IFS=$as_save_IFS
4647  test -z "$as_dir" && as_dir=.
4648    for ac_prog in fgrep; do
4649    for ac_exec_ext in '' $ac_executable_extensions; do
4650      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4651      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4652# Check for GNU ac_path_FGREP and select it if it is found.
4653  # Check for GNU $ac_path_FGREP
4654case `"$ac_path_FGREP" --version 2>&1` in
4655*GNU*)
4656  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4657*)
4658  ac_count=0
4659  $as_echo_n 0123456789 >"conftest.in"
4660  while :
4661  do
4662    cat "conftest.in" "conftest.in" >"conftest.tmp"
4663    mv "conftest.tmp" "conftest.in"
4664    cp "conftest.in" "conftest.nl"
4665    $as_echo 'FGREP' >> "conftest.nl"
4666    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4667    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4668    as_fn_arith $ac_count + 1 && ac_count=$as_val
4669    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4670      # Best one so far, save it but keep looking for a better one
4671      ac_cv_path_FGREP="$ac_path_FGREP"
4672      ac_path_FGREP_max=$ac_count
4673    fi
4674    # 10*(2^10) chars as input seems more than enough
4675    test $ac_count -gt 10 && break
4676  done
4677  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4678esac
4679
4680      $ac_path_FGREP_found && break 3
4681    done
4682  done
4683  done
4684IFS=$as_save_IFS
4685  if test -z "$ac_cv_path_FGREP"; then
4686    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4687  fi
4688else
4689  ac_cv_path_FGREP=$FGREP
4690fi
4691
4692   fi
4693fi
4694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4695$as_echo "$ac_cv_path_FGREP" >&6; }
4696 FGREP="$ac_cv_path_FGREP"
4697
4698
4699test -z "$GREP" && GREP=grep
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4718ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4719ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4720
4721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4722$as_echo_n "checking how to print strings... " >&6; }
4723# Test print first, because it will be a builtin if present.
4724if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4725   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4726  ECHO='print -r --'
4727elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4728  ECHO='printf %s\n'
4729else
4730  # Use this function as a fallback that always works.
4731  func_fallback_echo ()
4732  {
4733    eval 'cat <<_LTECHO_EOF
4734$1
4735_LTECHO_EOF'
4736  }
4737  ECHO='func_fallback_echo'
4738fi
4739
4740# func_echo_all arg...
4741# Invoke $ECHO with all args, space-separated.
4742func_echo_all ()
4743{
4744    $ECHO ""
4745}
4746
4747case "$ECHO" in
4748  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4749$as_echo "printf" >&6; } ;;
4750  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4751$as_echo "print -r" >&6; } ;;
4752  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4753$as_echo "cat" >&6; } ;;
4754esac
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771# Check whether --with-gnu-ld was given.
4772if test "${with_gnu_ld+set}" = set; then :
4773  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4774else
4775  with_gnu_ld=no
4776fi
4777
4778ac_prog=ld
4779if test "$GCC" = yes; then
4780  # Check if gcc -print-prog-name=ld gives a path.
4781  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4782$as_echo_n "checking for ld used by $CC... " >&6; }
4783  case $host in
4784  *-*-mingw*)
4785    # gcc leaves a trailing carriage return which upsets mingw
4786    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4787  *)
4788    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4789  esac
4790  case $ac_prog in
4791    # Accept absolute paths.
4792    [\\/]* | ?:[\\/]*)
4793      re_direlt='/[^/][^/]*/\.\./'
4794      # Canonicalize the pathname of ld
4795      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4796      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4797	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4798      done
4799      test -z "$LD" && LD="$ac_prog"
4800      ;;
4801  "")
4802    # If it fails, then pretend we aren't using GCC.
4803    ac_prog=ld
4804    ;;
4805  *)
4806    # If it is relative, then search for the first ld in PATH.
4807    with_gnu_ld=unknown
4808    ;;
4809  esac
4810elif test "$with_gnu_ld" = yes; then
4811  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4812$as_echo_n "checking for GNU ld... " >&6; }
4813else
4814  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4815$as_echo_n "checking for non-GNU ld... " >&6; }
4816fi
4817if test "${lt_cv_path_LD+set}" = set; then :
4818  $as_echo_n "(cached) " >&6
4819else
4820  if test -z "$LD"; then
4821  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4822  for ac_dir in $PATH; do
4823    IFS="$lt_save_ifs"
4824    test -z "$ac_dir" && ac_dir=.
4825    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4826      lt_cv_path_LD="$ac_dir/$ac_prog"
4827      # Check to see if the program is GNU ld.  I'd rather use --version,
4828      # but apparently some variants of GNU ld only accept -v.
4829      # Break only if it was the GNU/non-GNU ld that we prefer.
4830      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4831      *GNU* | *'with BFD'*)
4832	test "$with_gnu_ld" != no && break
4833	;;
4834      *)
4835	test "$with_gnu_ld" != yes && break
4836	;;
4837      esac
4838    fi
4839  done
4840  IFS="$lt_save_ifs"
4841else
4842  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4843fi
4844fi
4845
4846LD="$lt_cv_path_LD"
4847if test -n "$LD"; then
4848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4849$as_echo "$LD" >&6; }
4850else
4851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852$as_echo "no" >&6; }
4853fi
4854test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4856$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4857if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4858  $as_echo_n "(cached) " >&6
4859else
4860  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4861case `$LD -v 2>&1 </dev/null` in
4862*GNU* | *'with BFD'*)
4863  lt_cv_prog_gnu_ld=yes
4864  ;;
4865*)
4866  lt_cv_prog_gnu_ld=no
4867  ;;
4868esac
4869fi
4870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4871$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4872with_gnu_ld=$lt_cv_prog_gnu_ld
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883for ac_prog in gawk mawk nawk awk
4884do
4885  # Extract the first word of "$ac_prog", so it can be a program name with args.
4886set dummy $ac_prog; ac_word=$2
4887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4888$as_echo_n "checking for $ac_word... " >&6; }
4889if test "${ac_cv_prog_AWK+set}" = set; then :
4890  $as_echo_n "(cached) " >&6
4891else
4892  if test -n "$AWK"; then
4893  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4894else
4895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896for as_dir in $PATH
4897do
4898  IFS=$as_save_IFS
4899  test -z "$as_dir" && as_dir=.
4900    for ac_exec_ext in '' $ac_executable_extensions; do
4901  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4902    ac_cv_prog_AWK="$ac_prog"
4903    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4904    break 2
4905  fi
4906done
4907  done
4908IFS=$as_save_IFS
4909
4910fi
4911fi
4912AWK=$ac_cv_prog_AWK
4913if test -n "$AWK"; then
4914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4915$as_echo "$AWK" >&6; }
4916else
4917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4918$as_echo "no" >&6; }
4919fi
4920
4921
4922  test -n "$AWK" && break
4923done
4924
4925ac_ext=c
4926ac_cpp='$CPP $CPPFLAGS'
4927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4929ac_compiler_gnu=$ac_cv_c_compiler_gnu
4930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4931$as_echo_n "checking how to run the C preprocessor... " >&6; }
4932# On Suns, sometimes $CPP names a directory.
4933if test -n "$CPP" && test -d "$CPP"; then
4934  CPP=
4935fi
4936if test -z "$CPP"; then
4937  if test "${ac_cv_prog_CPP+set}" = set; then :
4938  $as_echo_n "(cached) " >&6
4939else
4940      # Double quotes because CPP needs to be expanded
4941    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4942    do
4943      ac_preproc_ok=false
4944for ac_c_preproc_warn_flag in '' yes
4945do
4946  # Use a header file that comes with gcc, so configuring glibc
4947  # with a fresh cross-compiler works.
4948  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4949  # <limits.h> exists even on freestanding compilers.
4950  # On the NeXT, cc -E runs the code through the compiler's parser,
4951  # not just through cpp. "Syntax error" is here to catch this case.
4952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953/* end confdefs.h.  */
4954#ifdef __STDC__
4955# include <limits.h>
4956#else
4957# include <assert.h>
4958#endif
4959		     Syntax error
4960_ACEOF
4961if ac_fn_c_try_cpp "$LINENO"; then :
4962
4963else
4964  # Broken: fails on valid input.
4965continue
4966fi
4967rm -f conftest.err conftest.i conftest.$ac_ext
4968
4969  # OK, works on sane cases.  Now check whether nonexistent headers
4970  # can be detected and how.
4971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4972/* end confdefs.h.  */
4973#include <ac_nonexistent.h>
4974_ACEOF
4975if ac_fn_c_try_cpp "$LINENO"; then :
4976  # Broken: success on invalid input.
4977continue
4978else
4979  # Passes both tests.
4980ac_preproc_ok=:
4981break
4982fi
4983rm -f conftest.err conftest.i conftest.$ac_ext
4984
4985done
4986# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4987rm -f conftest.i conftest.err conftest.$ac_ext
4988if $ac_preproc_ok; then :
4989  break
4990fi
4991
4992    done
4993    ac_cv_prog_CPP=$CPP
4994
4995fi
4996  CPP=$ac_cv_prog_CPP
4997else
4998  ac_cv_prog_CPP=$CPP
4999fi
5000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5001$as_echo "$CPP" >&6; }
5002ac_preproc_ok=false
5003for ac_c_preproc_warn_flag in '' yes
5004do
5005  # Use a header file that comes with gcc, so configuring glibc
5006  # with a fresh cross-compiler works.
5007  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5008  # <limits.h> exists even on freestanding compilers.
5009  # On the NeXT, cc -E runs the code through the compiler's parser,
5010  # not just through cpp. "Syntax error" is here to catch this case.
5011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012/* end confdefs.h.  */
5013#ifdef __STDC__
5014# include <limits.h>
5015#else
5016# include <assert.h>
5017#endif
5018		     Syntax error
5019_ACEOF
5020if ac_fn_c_try_cpp "$LINENO"; then :
5021
5022else
5023  # Broken: fails on valid input.
5024continue
5025fi
5026rm -f conftest.err conftest.i conftest.$ac_ext
5027
5028  # OK, works on sane cases.  Now check whether nonexistent headers
5029  # can be detected and how.
5030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5031/* end confdefs.h.  */
5032#include <ac_nonexistent.h>
5033_ACEOF
5034if ac_fn_c_try_cpp "$LINENO"; then :
5035  # Broken: success on invalid input.
5036continue
5037else
5038  # Passes both tests.
5039ac_preproc_ok=:
5040break
5041fi
5042rm -f conftest.err conftest.i conftest.$ac_ext
5043
5044done
5045# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5046rm -f conftest.i conftest.err conftest.$ac_ext
5047if $ac_preproc_ok; then :
5048
5049else
5050  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5051$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5052as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5053See \`config.log' for more details" "$LINENO" 5 ; }
5054fi
5055
5056ac_ext=c
5057ac_cpp='$CPP $CPPFLAGS'
5058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5060ac_compiler_gnu=$ac_cv_c_compiler_gnu
5061
5062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5063$as_echo_n "checking whether ln -s works... " >&6; }
5064LN_S=$as_ln_s
5065if test "$LN_S" = "ln -s"; then
5066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5067$as_echo "yes" >&6; }
5068else
5069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5070$as_echo "no, using $LN_S" >&6; }
5071fi
5072
5073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5074$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5075set x ${MAKE-make}
5076ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5077if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
5078  $as_echo_n "(cached) " >&6
5079else
5080  cat >conftest.make <<\_ACEOF
5081SHELL = /bin/sh
5082all:
5083	@echo '@@@%%%=$(MAKE)=@@@%%%'
5084_ACEOF
5085# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5086case `${MAKE-make} -f conftest.make 2>/dev/null` in
5087  *@@@%%%=?*=@@@%%%*)
5088    eval ac_cv_prog_make_${ac_make}_set=yes;;
5089  *)
5090    eval ac_cv_prog_make_${ac_make}_set=no;;
5091esac
5092rm -f conftest.make
5093fi
5094if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5096$as_echo "yes" >&6; }
5097  SET_MAKE=
5098else
5099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100$as_echo "no" >&6; }
5101  SET_MAKE="MAKE=${MAKE-make}"
5102fi
5103
5104
5105
5106
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5108$as_echo_n "checking for ANSI C header files... " >&6; }
5109if test "${ac_cv_header_stdc+set}" = set; then :
5110  $as_echo_n "(cached) " >&6
5111else
5112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5113/* end confdefs.h.  */
5114#include <stdlib.h>
5115#include <stdarg.h>
5116#include <string.h>
5117#include <float.h>
5118
5119int
5120main ()
5121{
5122
5123  ;
5124  return 0;
5125}
5126_ACEOF
5127if ac_fn_c_try_compile "$LINENO"; then :
5128  ac_cv_header_stdc=yes
5129else
5130  ac_cv_header_stdc=no
5131fi
5132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5133
5134if test $ac_cv_header_stdc = yes; then
5135  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137/* end confdefs.h.  */
5138#include <string.h>
5139
5140_ACEOF
5141if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5142  $EGREP "memchr" >/dev/null 2>&1; then :
5143
5144else
5145  ac_cv_header_stdc=no
5146fi
5147rm -f conftest*
5148
5149fi
5150
5151if test $ac_cv_header_stdc = yes; then
5152  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5154/* end confdefs.h.  */
5155#include <stdlib.h>
5156
5157_ACEOF
5158if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5159  $EGREP "free" >/dev/null 2>&1; then :
5160
5161else
5162  ac_cv_header_stdc=no
5163fi
5164rm -f conftest*
5165
5166fi
5167
5168if test $ac_cv_header_stdc = yes; then
5169  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5170  if test "$cross_compiling" = yes; then :
5171  :
5172else
5173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5174/* end confdefs.h.  */
5175#include <ctype.h>
5176#include <stdlib.h>
5177#if ((' ' & 0x0FF) == 0x020)
5178# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5179# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5180#else
5181# define ISLOWER(c) \
5182		   (('a' <= (c) && (c) <= 'i') \
5183		     || ('j' <= (c) && (c) <= 'r') \
5184		     || ('s' <= (c) && (c) <= 'z'))
5185# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5186#endif
5187
5188#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5189int
5190main ()
5191{
5192  int i;
5193  for (i = 0; i < 256; i++)
5194    if (XOR (islower (i), ISLOWER (i))
5195	|| toupper (i) != TOUPPER (i))
5196      return 2;
5197  return 0;
5198}
5199_ACEOF
5200if ac_fn_c_try_run "$LINENO"; then :
5201
5202else
5203  ac_cv_header_stdc=no
5204fi
5205rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5206  conftest.$ac_objext conftest.beam conftest.$ac_ext
5207fi
5208
5209fi
5210fi
5211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5212$as_echo "$ac_cv_header_stdc" >&6; }
5213if test $ac_cv_header_stdc = yes; then
5214
5215$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5216
5217fi
5218
5219# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5220for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5221		  inttypes.h stdint.h unistd.h
5222do :
5223  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5224ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5225"
5226if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5227  cat >>confdefs.h <<_ACEOF
5228#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5229_ACEOF
5230
5231fi
5232
5233done
5234
5235
5236
5237  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5238if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5239  MINIX=yes
5240else
5241  MINIX=
5242fi
5243
5244
5245  if test "$MINIX" = yes; then
5246
5247$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5248
5249
5250$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5251
5252
5253$as_echo "#define _MINIX 1" >>confdefs.h
5254
5255  fi
5256
5257
5258  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5259$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5260if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5261  $as_echo_n "(cached) " >&6
5262else
5263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5264/* end confdefs.h.  */
5265
5266#	  define __EXTENSIONS__ 1
5267	  $ac_includes_default
5268int
5269main ()
5270{
5271
5272  ;
5273  return 0;
5274}
5275_ACEOF
5276if ac_fn_c_try_compile "$LINENO"; then :
5277  ac_cv_safe_to_define___extensions__=yes
5278else
5279  ac_cv_safe_to_define___extensions__=no
5280fi
5281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5282fi
5283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5284$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5285  test $ac_cv_safe_to_define___extensions__ = yes &&
5286    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5287
5288  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5289
5290  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5291
5292  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5293
5294  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5295
5296
5297
5298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5299$as_echo_n "checking for library containing strerror... " >&6; }
5300if test "${ac_cv_search_strerror+set}" = set; then :
5301  $as_echo_n "(cached) " >&6
5302else
5303  ac_func_search_save_LIBS=$LIBS
5304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305/* end confdefs.h.  */
5306
5307/* Override any GCC internal prototype to avoid an error.
5308   Use char because int might match the return type of a GCC
5309   builtin and then its argument prototype would still apply.  */
5310#ifdef __cplusplus
5311extern "C"
5312#endif
5313char strerror ();
5314int
5315main ()
5316{
5317return strerror ();
5318  ;
5319  return 0;
5320}
5321_ACEOF
5322for ac_lib in '' cposix; do
5323  if test -z "$ac_lib"; then
5324    ac_res="none required"
5325  else
5326    ac_res=-l$ac_lib
5327    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5328  fi
5329  if ac_fn_c_try_link "$LINENO"; then :
5330  ac_cv_search_strerror=$ac_res
5331fi
5332rm -f core conftest.err conftest.$ac_objext \
5333    conftest$ac_exeext
5334  if test "${ac_cv_search_strerror+set}" = set; then :
5335  break
5336fi
5337done
5338if test "${ac_cv_search_strerror+set}" = set; then :
5339
5340else
5341  ac_cv_search_strerror=no
5342fi
5343rm conftest.$ac_ext
5344LIBS=$ac_func_search_save_LIBS
5345fi
5346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5347$as_echo "$ac_cv_search_strerror" >&6; }
5348ac_res=$ac_cv_search_strerror
5349if test "$ac_res" != no; then :
5350  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5351
5352fi
5353
5354
5355
5356case $host_os in
5357	*darwin*|*cygwin*|*aix*|*mingw* ) NO_RDYNAMIC=yes;;
5358	* ) NO_RDYNAMIC=no;;
5359esac
5360 if test x$NO_RDYNAMIC = xyes; then
5361  NO_RDYNAMIC_TRUE=
5362  NO_RDYNAMIC_FALSE='#'
5363else
5364  NO_RDYNAMIC_TRUE='#'
5365  NO_RDYNAMIC_FALSE=
5366fi
5367
5368
5369
5370
5371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
5372$as_echo_n "checking for function prototypes... " >&6; }
5373if test "$ac_cv_prog_cc_c89" != no; then
5374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5375$as_echo "yes" >&6; }
5376
5377$as_echo "#define PROTOTYPES 1" >>confdefs.h
5378
5379
5380$as_echo "#define __PROTOTYPES 1" >>confdefs.h
5381
5382else
5383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5384$as_echo "no" >&6; }
5385fi
5386
5387
5388if test "$ac_cv_prog_cc_stdc" != no; then
5389  U= ANSI2KNR=
5390else
5391  U=_ ANSI2KNR=./ansi2knr
5392fi
5393# Ensure some checks needed by ansi2knr itself.
5394
5395for ac_header in string.h
5396do :
5397  ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5398if test "x$ac_cv_header_string_h" = x""yes; then :
5399  cat >>confdefs.h <<_ACEOF
5400#define HAVE_STRING_H 1
5401_ACEOF
5402
5403fi
5404
5405done
5406
5407
5408
5409# Check whether --enable-static was given.
5410if test "${enable_static+set}" = set; then :
5411  enableval=$enable_static; p=${PACKAGE-default}
5412    case $enableval in
5413    yes) enable_static=yes ;;
5414    no) enable_static=no ;;
5415    *)
5416     enable_static=no
5417      # Look at the argument we got.  We use all the common list separators.
5418      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5419      for pkg in $enableval; do
5420	IFS="$lt_save_ifs"
5421	if test "X$pkg" = "X$p"; then
5422	  enable_static=yes
5423	fi
5424      done
5425      IFS="$lt_save_ifs"
5426      ;;
5427    esac
5428else
5429  enable_static=no
5430fi
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440# Check whether --enable-shared was given.
5441if test "${enable_shared+set}" = set; then :
5442  enableval=$enable_shared; p=${PACKAGE-default}
5443    case $enableval in
5444    yes) enable_shared=yes ;;
5445    no) enable_shared=no ;;
5446    *)
5447      enable_shared=no
5448      # Look at the argument we got.  We use all the common list separators.
5449      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5450      for pkg in $enableval; do
5451	IFS="$lt_save_ifs"
5452	if test "X$pkg" = "X$p"; then
5453	  enable_shared=yes
5454	fi
5455      done
5456      IFS="$lt_save_ifs"
5457      ;;
5458    esac
5459else
5460  enable_shared=yes
5461fi
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472enable_dlopen=yes
5473
5474
5475
5476case `pwd` in
5477  *\ * | *\	*)
5478    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5479$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5480esac
5481
5482
5483
5484macro_version='2.4.2'
5485macro_revision='1.3337'
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499ltmain="$ac_aux_dir/ltmain.sh"
5500
5501# Backslashify metacharacters that are still active within
5502# double-quoted strings.
5503sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5504
5505# Same as above, but do not quote variable references.
5506double_quote_subst='s/\(["`\\]\)/\\\1/g'
5507
5508# Sed substitution to delay expansion of an escaped shell variable in a
5509# double_quote_subst'ed string.
5510delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5511
5512# Sed substitution to delay expansion of an escaped single quote.
5513delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5514
5515# Sed substitution to avoid accidental globbing in evaled expressions
5516no_glob_subst='s/\*/\\\*/g'
5517
5518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5519$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5520if test "${lt_cv_path_NM+set}" = set; then :
5521  $as_echo_n "(cached) " >&6
5522else
5523  if test -n "$NM"; then
5524  # Let the user override the test.
5525  lt_cv_path_NM="$NM"
5526else
5527  lt_nm_to_check="${ac_tool_prefix}nm"
5528  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5529    lt_nm_to_check="$lt_nm_to_check nm"
5530  fi
5531  for lt_tmp_nm in $lt_nm_to_check; do
5532    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5533    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5534      IFS="$lt_save_ifs"
5535      test -z "$ac_dir" && ac_dir=.
5536      tmp_nm="$ac_dir/$lt_tmp_nm"
5537      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5538	# Check to see if the nm accepts a BSD-compat flag.
5539	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5540	#   nm: unknown option "B" ignored
5541	# Tru64's nm complains that /dev/null is an invalid object file
5542	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5543	*/dev/null* | *'Invalid file or object type'*)
5544	  lt_cv_path_NM="$tmp_nm -B"
5545	  break
5546	  ;;
5547	*)
5548	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5549	  */dev/null*)
5550	    lt_cv_path_NM="$tmp_nm -p"
5551	    break
5552	    ;;
5553	  *)
5554	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5555	    continue # so that we can try to find one that supports BSD flags
5556	    ;;
5557	  esac
5558	  ;;
5559	esac
5560      fi
5561    done
5562    IFS="$lt_save_ifs"
5563  done
5564  : ${lt_cv_path_NM=no}
5565fi
5566fi
5567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5568$as_echo "$lt_cv_path_NM" >&6; }
5569if test "$lt_cv_path_NM" != "no"; then
5570  NM="$lt_cv_path_NM"
5571else
5572  # Didn't find any BSD compatible name lister, look for dumpbin.
5573  if test -n "$DUMPBIN"; then :
5574    # Let the user override the test.
5575  else
5576    if test -n "$ac_tool_prefix"; then
5577  for ac_prog in dumpbin "link -dump"
5578  do
5579    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5580set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5582$as_echo_n "checking for $ac_word... " >&6; }
5583if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5584  $as_echo_n "(cached) " >&6
5585else
5586  if test -n "$DUMPBIN"; then
5587  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5588else
5589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590for as_dir in $PATH
5591do
5592  IFS=$as_save_IFS
5593  test -z "$as_dir" && as_dir=.
5594    for ac_exec_ext in '' $ac_executable_extensions; do
5595  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5596    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5597    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5598    break 2
5599  fi
5600done
5601  done
5602IFS=$as_save_IFS
5603
5604fi
5605fi
5606DUMPBIN=$ac_cv_prog_DUMPBIN
5607if test -n "$DUMPBIN"; then
5608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5609$as_echo "$DUMPBIN" >&6; }
5610else
5611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5612$as_echo "no" >&6; }
5613fi
5614
5615
5616    test -n "$DUMPBIN" && break
5617  done
5618fi
5619if test -z "$DUMPBIN"; then
5620  ac_ct_DUMPBIN=$DUMPBIN
5621  for ac_prog in dumpbin "link -dump"
5622do
5623  # Extract the first word of "$ac_prog", so it can be a program name with args.
5624set dummy $ac_prog; ac_word=$2
5625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626$as_echo_n "checking for $ac_word... " >&6; }
5627if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5628  $as_echo_n "(cached) " >&6
5629else
5630  if test -n "$ac_ct_DUMPBIN"; then
5631  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5632else
5633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634for as_dir in $PATH
5635do
5636  IFS=$as_save_IFS
5637  test -z "$as_dir" && as_dir=.
5638    for ac_exec_ext in '' $ac_executable_extensions; do
5639  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5640    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5641    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5642    break 2
5643  fi
5644done
5645  done
5646IFS=$as_save_IFS
5647
5648fi
5649fi
5650ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5651if test -n "$ac_ct_DUMPBIN"; then
5652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5653$as_echo "$ac_ct_DUMPBIN" >&6; }
5654else
5655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656$as_echo "no" >&6; }
5657fi
5658
5659
5660  test -n "$ac_ct_DUMPBIN" && break
5661done
5662
5663  if test "x$ac_ct_DUMPBIN" = x; then
5664    DUMPBIN=":"
5665  else
5666    case $cross_compiling:$ac_tool_warned in
5667yes:)
5668{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5669$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5670ac_tool_warned=yes ;;
5671esac
5672    DUMPBIN=$ac_ct_DUMPBIN
5673  fi
5674fi
5675
5676    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5677    *COFF*)
5678      DUMPBIN="$DUMPBIN -symbols"
5679      ;;
5680    *)
5681      DUMPBIN=:
5682      ;;
5683    esac
5684  fi
5685
5686  if test "$DUMPBIN" != ":"; then
5687    NM="$DUMPBIN"
5688  fi
5689fi
5690test -z "$NM" && NM=nm
5691
5692
5693
5694
5695
5696
5697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5698$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5699if test "${lt_cv_nm_interface+set}" = set; then :
5700  $as_echo_n "(cached) " >&6
5701else
5702  lt_cv_nm_interface="BSD nm"
5703  echo "int some_variable = 0;" > conftest.$ac_ext
5704  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5705  (eval "$ac_compile" 2>conftest.err)
5706  cat conftest.err >&5
5707  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5708  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5709  cat conftest.err >&5
5710  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5711  cat conftest.out >&5
5712  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5713    lt_cv_nm_interface="MS dumpbin"
5714  fi
5715  rm -f conftest*
5716fi
5717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5718$as_echo "$lt_cv_nm_interface" >&6; }
5719
5720# find the maximum length of command line arguments
5721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5722$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5723if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5724  $as_echo_n "(cached) " >&6
5725else
5726    i=0
5727  teststring="ABCD"
5728
5729  case $build_os in
5730  msdosdjgpp*)
5731    # On DJGPP, this test can blow up pretty badly due to problems in libc
5732    # (any single argument exceeding 2000 bytes causes a buffer overrun
5733    # during glob expansion).  Even if it were fixed, the result of this
5734    # check would be larger than it should be.
5735    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5736    ;;
5737
5738  gnu*)
5739    # Under GNU Hurd, this test is not required because there is
5740    # no limit to the length of command line arguments.
5741    # Libtool will interpret -1 as no limit whatsoever
5742    lt_cv_sys_max_cmd_len=-1;
5743    ;;
5744
5745  cygwin* | mingw* | cegcc*)
5746    # On Win9x/ME, this test blows up -- it succeeds, but takes
5747    # about 5 minutes as the teststring grows exponentially.
5748    # Worse, since 9x/ME are not pre-emptively multitasking,
5749    # you end up with a "frozen" computer, even though with patience
5750    # the test eventually succeeds (with a max line length of 256k).
5751    # Instead, let's just punt: use the minimum linelength reported by
5752    # all of the supported platforms: 8192 (on NT/2K/XP).
5753    lt_cv_sys_max_cmd_len=8192;
5754    ;;
5755
5756  mint*)
5757    # On MiNT this can take a long time and run out of memory.
5758    lt_cv_sys_max_cmd_len=8192;
5759    ;;
5760
5761  amigaos*)
5762    # On AmigaOS with pdksh, this test takes hours, literally.
5763    # So we just punt and use a minimum line length of 8192.
5764    lt_cv_sys_max_cmd_len=8192;
5765    ;;
5766
5767  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5768    # This has been around since 386BSD, at least.  Likely further.
5769    if test -x /sbin/sysctl; then
5770      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5771    elif test -x /usr/sbin/sysctl; then
5772      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5773    else
5774      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5775    fi
5776    # And add a safety zone
5777    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5778    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5779    ;;
5780
5781  interix*)
5782    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5783    lt_cv_sys_max_cmd_len=196608
5784    ;;
5785
5786  os2*)
5787    # The test takes a long time on OS/2.
5788    lt_cv_sys_max_cmd_len=8192
5789    ;;
5790
5791  osf*)
5792    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5793    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5794    # nice to cause kernel panics so lets avoid the loop below.
5795    # First set a reasonable default.
5796    lt_cv_sys_max_cmd_len=16384
5797    #
5798    if test -x /sbin/sysconfig; then
5799      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5800        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5801      esac
5802    fi
5803    ;;
5804  sco3.2v5*)
5805    lt_cv_sys_max_cmd_len=102400
5806    ;;
5807  sysv5* | sco5v6* | sysv4.2uw2*)
5808    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5809    if test -n "$kargmax"; then
5810      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5811    else
5812      lt_cv_sys_max_cmd_len=32768
5813    fi
5814    ;;
5815  *)
5816    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5817    if test -n "$lt_cv_sys_max_cmd_len" && \
5818	test undefined != "$lt_cv_sys_max_cmd_len"; then
5819      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5820      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5821    else
5822      # Make teststring a little bigger before we do anything with it.
5823      # a 1K string should be a reasonable start.
5824      for i in 1 2 3 4 5 6 7 8 ; do
5825        teststring=$teststring$teststring
5826      done
5827      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5828      # If test is not a shell built-in, we'll probably end up computing a
5829      # maximum length that is only half of the actual maximum length, but
5830      # we can't tell.
5831      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5832	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5833	      test $i != 17 # 1/2 MB should be enough
5834      do
5835        i=`expr $i + 1`
5836        teststring=$teststring$teststring
5837      done
5838      # Only check the string length outside the loop.
5839      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5840      teststring=
5841      # Add a significant safety factor because C++ compilers can tack on
5842      # massive amounts of additional arguments before passing them to the
5843      # linker.  It appears as though 1/2 is a usable value.
5844      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5845    fi
5846    ;;
5847  esac
5848
5849fi
5850
5851if test -n $lt_cv_sys_max_cmd_len ; then
5852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5853$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5854else
5855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5856$as_echo "none" >&6; }
5857fi
5858max_cmd_len=$lt_cv_sys_max_cmd_len
5859
5860
5861
5862
5863
5864
5865: ${CP="cp -f"}
5866: ${MV="mv -f"}
5867: ${RM="rm -f"}
5868
5869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5870$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5871# Try some XSI features
5872xsi_shell=no
5873( _lt_dummy="a/b/c"
5874  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5875      = c,a/b,b/c, \
5876    && eval 'test $(( 1 + 1 )) -eq 2 \
5877    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5878  && xsi_shell=yes
5879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5880$as_echo "$xsi_shell" >&6; }
5881
5882
5883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5884$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5885lt_shell_append=no
5886( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5887    >/dev/null 2>&1 \
5888  && lt_shell_append=yes
5889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5890$as_echo "$lt_shell_append" >&6; }
5891
5892
5893if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5894  lt_unset=unset
5895else
5896  lt_unset=false
5897fi
5898
5899
5900
5901
5902
5903# test EBCDIC or ASCII
5904case `echo X|tr X '\101'` in
5905 A) # ASCII based system
5906    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5907  lt_SP2NL='tr \040 \012'
5908  lt_NL2SP='tr \015\012 \040\040'
5909  ;;
5910 *) # EBCDIC based system
5911  lt_SP2NL='tr \100 \n'
5912  lt_NL2SP='tr \r\n \100\100'
5913  ;;
5914esac
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5925$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5926if test "${lt_cv_to_host_file_cmd+set}" = set; then :
5927  $as_echo_n "(cached) " >&6
5928else
5929  case $host in
5930  *-*-mingw* )
5931    case $build in
5932      *-*-mingw* ) # actually msys
5933        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5934        ;;
5935      *-*-cygwin* )
5936        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5937        ;;
5938      * ) # otherwise, assume *nix
5939        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5940        ;;
5941    esac
5942    ;;
5943  *-*-cygwin* )
5944    case $build in
5945      *-*-mingw* ) # actually msys
5946        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5947        ;;
5948      *-*-cygwin* )
5949        lt_cv_to_host_file_cmd=func_convert_file_noop
5950        ;;
5951      * ) # otherwise, assume *nix
5952        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5953        ;;
5954    esac
5955    ;;
5956  * ) # unhandled hosts (and "normal" native builds)
5957    lt_cv_to_host_file_cmd=func_convert_file_noop
5958    ;;
5959esac
5960
5961fi
5962
5963to_host_file_cmd=$lt_cv_to_host_file_cmd
5964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5965$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5966
5967
5968
5969
5970
5971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5972$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5973if test "${lt_cv_to_tool_file_cmd+set}" = set; then :
5974  $as_echo_n "(cached) " >&6
5975else
5976  #assume ordinary cross tools, or native build.
5977lt_cv_to_tool_file_cmd=func_convert_file_noop
5978case $host in
5979  *-*-mingw* )
5980    case $build in
5981      *-*-mingw* ) # actually msys
5982        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5983        ;;
5984    esac
5985    ;;
5986esac
5987
5988fi
5989
5990to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5992$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5993
5994
5995
5996
5997
5998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5999$as_echo_n "checking for $LD option to reload object files... " >&6; }
6000if test "${lt_cv_ld_reload_flag+set}" = set; then :
6001  $as_echo_n "(cached) " >&6
6002else
6003  lt_cv_ld_reload_flag='-r'
6004fi
6005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6006$as_echo "$lt_cv_ld_reload_flag" >&6; }
6007reload_flag=$lt_cv_ld_reload_flag
6008case $reload_flag in
6009"" | " "*) ;;
6010*) reload_flag=" $reload_flag" ;;
6011esac
6012reload_cmds='$LD$reload_flag -o $output$reload_objs'
6013case $host_os in
6014  cygwin* | mingw* | pw32* | cegcc*)
6015    if test "$GCC" != yes; then
6016      reload_cmds=false
6017    fi
6018    ;;
6019  darwin*)
6020    if test "$GCC" = yes; then
6021      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6022    else
6023      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6024    fi
6025    ;;
6026esac
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036if test -n "$ac_tool_prefix"; then
6037  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6038set dummy ${ac_tool_prefix}objdump; ac_word=$2
6039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6040$as_echo_n "checking for $ac_word... " >&6; }
6041if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6042  $as_echo_n "(cached) " >&6
6043else
6044  if test -n "$OBJDUMP"; then
6045  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6046else
6047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6048for as_dir in $PATH
6049do
6050  IFS=$as_save_IFS
6051  test -z "$as_dir" && as_dir=.
6052    for ac_exec_ext in '' $ac_executable_extensions; do
6053  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6054    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6055    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6056    break 2
6057  fi
6058done
6059  done
6060IFS=$as_save_IFS
6061
6062fi
6063fi
6064OBJDUMP=$ac_cv_prog_OBJDUMP
6065if test -n "$OBJDUMP"; then
6066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6067$as_echo "$OBJDUMP" >&6; }
6068else
6069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6070$as_echo "no" >&6; }
6071fi
6072
6073
6074fi
6075if test -z "$ac_cv_prog_OBJDUMP"; then
6076  ac_ct_OBJDUMP=$OBJDUMP
6077  # Extract the first word of "objdump", so it can be a program name with args.
6078set dummy objdump; ac_word=$2
6079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6080$as_echo_n "checking for $ac_word... " >&6; }
6081if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6082  $as_echo_n "(cached) " >&6
6083else
6084  if test -n "$ac_ct_OBJDUMP"; then
6085  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6086else
6087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088for as_dir in $PATH
6089do
6090  IFS=$as_save_IFS
6091  test -z "$as_dir" && as_dir=.
6092    for ac_exec_ext in '' $ac_executable_extensions; do
6093  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6094    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6095    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6096    break 2
6097  fi
6098done
6099  done
6100IFS=$as_save_IFS
6101
6102fi
6103fi
6104ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6105if test -n "$ac_ct_OBJDUMP"; then
6106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6107$as_echo "$ac_ct_OBJDUMP" >&6; }
6108else
6109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110$as_echo "no" >&6; }
6111fi
6112
6113  if test "x$ac_ct_OBJDUMP" = x; then
6114    OBJDUMP="false"
6115  else
6116    case $cross_compiling:$ac_tool_warned in
6117yes:)
6118{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6119$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6120ac_tool_warned=yes ;;
6121esac
6122    OBJDUMP=$ac_ct_OBJDUMP
6123  fi
6124else
6125  OBJDUMP="$ac_cv_prog_OBJDUMP"
6126fi
6127
6128test -z "$OBJDUMP" && OBJDUMP=objdump
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6139$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6140if test "${lt_cv_deplibs_check_method+set}" = set; then :
6141  $as_echo_n "(cached) " >&6
6142else
6143  lt_cv_file_magic_cmd='$MAGIC_CMD'
6144lt_cv_file_magic_test_file=
6145lt_cv_deplibs_check_method='unknown'
6146# Need to set the preceding variable on all platforms that support
6147# interlibrary dependencies.
6148# 'none' -- dependencies not supported.
6149# `unknown' -- same as none, but documents that we really don't know.
6150# 'pass_all' -- all dependencies passed with no checks.
6151# 'test_compile' -- check by making test program.
6152# 'file_magic [[regex]]' -- check by looking for files in library path
6153# which responds to the $file_magic_cmd with a given extended regex.
6154# If you have `file' or equivalent on your system and you're not sure
6155# whether `pass_all' will *always* work, you probably want this one.
6156
6157case $host_os in
6158aix[4-9]*)
6159  lt_cv_deplibs_check_method=pass_all
6160  ;;
6161
6162beos*)
6163  lt_cv_deplibs_check_method=pass_all
6164  ;;
6165
6166bsdi[45]*)
6167  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6168  lt_cv_file_magic_cmd='/usr/bin/file -L'
6169  lt_cv_file_magic_test_file=/shlib/libc.so
6170  ;;
6171
6172cygwin*)
6173  # func_win32_libid is a shell function defined in ltmain.sh
6174  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6175  lt_cv_file_magic_cmd='func_win32_libid'
6176  ;;
6177
6178mingw* | pw32*)
6179  # Base MSYS/MinGW do not provide the 'file' command needed by
6180  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6181  # unless we find 'file', for example because we are cross-compiling.
6182  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6183  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6184    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6185    lt_cv_file_magic_cmd='func_win32_libid'
6186  else
6187    # Keep this pattern in sync with the one in func_win32_libid.
6188    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6189    lt_cv_file_magic_cmd='$OBJDUMP -f'
6190  fi
6191  ;;
6192
6193cegcc*)
6194  # use the weaker test based on 'objdump'. See mingw*.
6195  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6196  lt_cv_file_magic_cmd='$OBJDUMP -f'
6197  ;;
6198
6199darwin* | rhapsody*)
6200  lt_cv_deplibs_check_method=pass_all
6201  ;;
6202
6203freebsd* | dragonfly*)
6204  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6205    case $host_cpu in
6206    i*86 )
6207      # Not sure whether the presence of OpenBSD here was a mistake.
6208      # Let's accept both of them until this is cleared up.
6209      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6210      lt_cv_file_magic_cmd=/usr/bin/file
6211      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6212      ;;
6213    esac
6214  else
6215    lt_cv_deplibs_check_method=pass_all
6216  fi
6217  ;;
6218
6219haiku*)
6220  lt_cv_deplibs_check_method=pass_all
6221  ;;
6222
6223hpux10.20* | hpux11*)
6224  lt_cv_file_magic_cmd=/usr/bin/file
6225  case $host_cpu in
6226  ia64*)
6227    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6228    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6229    ;;
6230  hppa*64*)
6231    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]'
6232    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6233    ;;
6234  *)
6235    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6236    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6237    ;;
6238  esac
6239  ;;
6240
6241interix[3-9]*)
6242  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6243  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6244  ;;
6245
6246irix5* | irix6* | nonstopux*)
6247  case $LD in
6248  *-32|*"-32 ") libmagic=32-bit;;
6249  *-n32|*"-n32 ") libmagic=N32;;
6250  *-64|*"-64 ") libmagic=64-bit;;
6251  *) libmagic=never-match;;
6252  esac
6253  lt_cv_deplibs_check_method=pass_all
6254  ;;
6255
6256# This must be glibc/ELF.
6257linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6258  lt_cv_deplibs_check_method=pass_all
6259  ;;
6260
6261netbsd* | netbsdelf*-gnu)
6262  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6263    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6264  else
6265    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6266  fi
6267  ;;
6268
6269newos6*)
6270  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6271  lt_cv_file_magic_cmd=/usr/bin/file
6272  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6273  ;;
6274
6275*nto* | *qnx*)
6276  lt_cv_deplibs_check_method=pass_all
6277  ;;
6278
6279openbsd*)
6280  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6281    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6282  else
6283    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6284  fi
6285  ;;
6286
6287osf3* | osf4* | osf5*)
6288  lt_cv_deplibs_check_method=pass_all
6289  ;;
6290
6291rdos*)
6292  lt_cv_deplibs_check_method=pass_all
6293  ;;
6294
6295solaris*)
6296  lt_cv_deplibs_check_method=pass_all
6297  ;;
6298
6299sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6300  lt_cv_deplibs_check_method=pass_all
6301  ;;
6302
6303sysv4 | sysv4.3*)
6304  case $host_vendor in
6305  motorola)
6306    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]'
6307    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6308    ;;
6309  ncr)
6310    lt_cv_deplibs_check_method=pass_all
6311    ;;
6312  sequent)
6313    lt_cv_file_magic_cmd='/bin/file'
6314    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6315    ;;
6316  sni)
6317    lt_cv_file_magic_cmd='/bin/file'
6318    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6319    lt_cv_file_magic_test_file=/lib/libc.so
6320    ;;
6321  siemens)
6322    lt_cv_deplibs_check_method=pass_all
6323    ;;
6324  pc)
6325    lt_cv_deplibs_check_method=pass_all
6326    ;;
6327  esac
6328  ;;
6329
6330tpf*)
6331  lt_cv_deplibs_check_method=pass_all
6332  ;;
6333esac
6334
6335fi
6336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6337$as_echo "$lt_cv_deplibs_check_method" >&6; }
6338
6339file_magic_glob=
6340want_nocaseglob=no
6341if test "$build" = "$host"; then
6342  case $host_os in
6343  mingw* | pw32*)
6344    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6345      want_nocaseglob=yes
6346    else
6347      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6348    fi
6349    ;;
6350  esac
6351fi
6352
6353file_magic_cmd=$lt_cv_file_magic_cmd
6354deplibs_check_method=$lt_cv_deplibs_check_method
6355test -z "$deplibs_check_method" && deplibs_check_method=unknown
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378if test -n "$ac_tool_prefix"; then
6379  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6380set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6382$as_echo_n "checking for $ac_word... " >&6; }
6383if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6384  $as_echo_n "(cached) " >&6
6385else
6386  if test -n "$DLLTOOL"; then
6387  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6388else
6389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390for as_dir in $PATH
6391do
6392  IFS=$as_save_IFS
6393  test -z "$as_dir" && as_dir=.
6394    for ac_exec_ext in '' $ac_executable_extensions; do
6395  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6396    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6397    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6398    break 2
6399  fi
6400done
6401  done
6402IFS=$as_save_IFS
6403
6404fi
6405fi
6406DLLTOOL=$ac_cv_prog_DLLTOOL
6407if test -n "$DLLTOOL"; then
6408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6409$as_echo "$DLLTOOL" >&6; }
6410else
6411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412$as_echo "no" >&6; }
6413fi
6414
6415
6416fi
6417if test -z "$ac_cv_prog_DLLTOOL"; then
6418  ac_ct_DLLTOOL=$DLLTOOL
6419  # Extract the first word of "dlltool", so it can be a program name with args.
6420set dummy dlltool; ac_word=$2
6421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6422$as_echo_n "checking for $ac_word... " >&6; }
6423if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6424  $as_echo_n "(cached) " >&6
6425else
6426  if test -n "$ac_ct_DLLTOOL"; then
6427  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6428else
6429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430for as_dir in $PATH
6431do
6432  IFS=$as_save_IFS
6433  test -z "$as_dir" && as_dir=.
6434    for ac_exec_ext in '' $ac_executable_extensions; do
6435  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6436    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6437    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6438    break 2
6439  fi
6440done
6441  done
6442IFS=$as_save_IFS
6443
6444fi
6445fi
6446ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6447if test -n "$ac_ct_DLLTOOL"; then
6448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6449$as_echo "$ac_ct_DLLTOOL" >&6; }
6450else
6451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452$as_echo "no" >&6; }
6453fi
6454
6455  if test "x$ac_ct_DLLTOOL" = x; then
6456    DLLTOOL="false"
6457  else
6458    case $cross_compiling:$ac_tool_warned in
6459yes:)
6460{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6461$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6462ac_tool_warned=yes ;;
6463esac
6464    DLLTOOL=$ac_ct_DLLTOOL
6465  fi
6466else
6467  DLLTOOL="$ac_cv_prog_DLLTOOL"
6468fi
6469
6470test -z "$DLLTOOL" && DLLTOOL=dlltool
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6482$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6483if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then :
6484  $as_echo_n "(cached) " >&6
6485else
6486  lt_cv_sharedlib_from_linklib_cmd='unknown'
6487
6488case $host_os in
6489cygwin* | mingw* | pw32* | cegcc*)
6490  # two different shell functions defined in ltmain.sh
6491  # decide which to use based on capabilities of $DLLTOOL
6492  case `$DLLTOOL --help 2>&1` in
6493  *--identify-strict*)
6494    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6495    ;;
6496  *)
6497    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6498    ;;
6499  esac
6500  ;;
6501*)
6502  # fallback: assume linklib IS sharedlib
6503  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6504  ;;
6505esac
6506
6507fi
6508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6509$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6510sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6511test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6512
6513
6514
6515
6516
6517
6518
6519if test -n "$ac_tool_prefix"; then
6520  for ac_prog in ar
6521  do
6522    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6523set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6525$as_echo_n "checking for $ac_word... " >&6; }
6526if test "${ac_cv_prog_AR+set}" = set; then :
6527  $as_echo_n "(cached) " >&6
6528else
6529  if test -n "$AR"; then
6530  ac_cv_prog_AR="$AR" # Let the user override the test.
6531else
6532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533for as_dir in $PATH
6534do
6535  IFS=$as_save_IFS
6536  test -z "$as_dir" && as_dir=.
6537    for ac_exec_ext in '' $ac_executable_extensions; do
6538  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6539    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6540    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6541    break 2
6542  fi
6543done
6544  done
6545IFS=$as_save_IFS
6546
6547fi
6548fi
6549AR=$ac_cv_prog_AR
6550if test -n "$AR"; then
6551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6552$as_echo "$AR" >&6; }
6553else
6554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6555$as_echo "no" >&6; }
6556fi
6557
6558
6559    test -n "$AR" && break
6560  done
6561fi
6562if test -z "$AR"; then
6563  ac_ct_AR=$AR
6564  for ac_prog in ar
6565do
6566  # Extract the first word of "$ac_prog", so it can be a program name with args.
6567set dummy $ac_prog; ac_word=$2
6568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6569$as_echo_n "checking for $ac_word... " >&6; }
6570if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6571  $as_echo_n "(cached) " >&6
6572else
6573  if test -n "$ac_ct_AR"; then
6574  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6575else
6576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6577for as_dir in $PATH
6578do
6579  IFS=$as_save_IFS
6580  test -z "$as_dir" && as_dir=.
6581    for ac_exec_ext in '' $ac_executable_extensions; do
6582  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6583    ac_cv_prog_ac_ct_AR="$ac_prog"
6584    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6585    break 2
6586  fi
6587done
6588  done
6589IFS=$as_save_IFS
6590
6591fi
6592fi
6593ac_ct_AR=$ac_cv_prog_ac_ct_AR
6594if test -n "$ac_ct_AR"; then
6595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6596$as_echo "$ac_ct_AR" >&6; }
6597else
6598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6599$as_echo "no" >&6; }
6600fi
6601
6602
6603  test -n "$ac_ct_AR" && break
6604done
6605
6606  if test "x$ac_ct_AR" = x; then
6607    AR="false"
6608  else
6609    case $cross_compiling:$ac_tool_warned in
6610yes:)
6611{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6612$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6613ac_tool_warned=yes ;;
6614esac
6615    AR=$ac_ct_AR
6616  fi
6617fi
6618
6619: ${AR=ar}
6620: ${AR_FLAGS=cru}
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6633$as_echo_n "checking for archiver @FILE support... " >&6; }
6634if test "${lt_cv_ar_at_file+set}" = set; then :
6635  $as_echo_n "(cached) " >&6
6636else
6637  lt_cv_ar_at_file=no
6638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6639/* end confdefs.h.  */
6640
6641int
6642main ()
6643{
6644
6645  ;
6646  return 0;
6647}
6648_ACEOF
6649if ac_fn_c_try_compile "$LINENO"; then :
6650  echo conftest.$ac_objext > conftest.lst
6651      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6652      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6653  (eval $lt_ar_try) 2>&5
6654  ac_status=$?
6655  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6656  test $ac_status = 0; }
6657      if test "$ac_status" -eq 0; then
6658	# Ensure the archiver fails upon bogus file names.
6659	rm -f conftest.$ac_objext libconftest.a
6660	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6661  (eval $lt_ar_try) 2>&5
6662  ac_status=$?
6663  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6664  test $ac_status = 0; }
6665	if test "$ac_status" -ne 0; then
6666          lt_cv_ar_at_file=@
6667        fi
6668      fi
6669      rm -f conftest.* libconftest.a
6670
6671fi
6672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6673
6674fi
6675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6676$as_echo "$lt_cv_ar_at_file" >&6; }
6677
6678if test "x$lt_cv_ar_at_file" = xno; then
6679  archiver_list_spec=
6680else
6681  archiver_list_spec=$lt_cv_ar_at_file
6682fi
6683
6684
6685
6686
6687
6688
6689
6690if test -n "$ac_tool_prefix"; then
6691  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6692set dummy ${ac_tool_prefix}strip; ac_word=$2
6693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6694$as_echo_n "checking for $ac_word... " >&6; }
6695if test "${ac_cv_prog_STRIP+set}" = set; then :
6696  $as_echo_n "(cached) " >&6
6697else
6698  if test -n "$STRIP"; then
6699  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6700else
6701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702for as_dir in $PATH
6703do
6704  IFS=$as_save_IFS
6705  test -z "$as_dir" && as_dir=.
6706    for ac_exec_ext in '' $ac_executable_extensions; do
6707  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6708    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6709    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6710    break 2
6711  fi
6712done
6713  done
6714IFS=$as_save_IFS
6715
6716fi
6717fi
6718STRIP=$ac_cv_prog_STRIP
6719if test -n "$STRIP"; then
6720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6721$as_echo "$STRIP" >&6; }
6722else
6723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6724$as_echo "no" >&6; }
6725fi
6726
6727
6728fi
6729if test -z "$ac_cv_prog_STRIP"; then
6730  ac_ct_STRIP=$STRIP
6731  # Extract the first word of "strip", so it can be a program name with args.
6732set dummy strip; ac_word=$2
6733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6734$as_echo_n "checking for $ac_word... " >&6; }
6735if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6736  $as_echo_n "(cached) " >&6
6737else
6738  if test -n "$ac_ct_STRIP"; then
6739  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6740else
6741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742for as_dir in $PATH
6743do
6744  IFS=$as_save_IFS
6745  test -z "$as_dir" && as_dir=.
6746    for ac_exec_ext in '' $ac_executable_extensions; do
6747  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6748    ac_cv_prog_ac_ct_STRIP="strip"
6749    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6750    break 2
6751  fi
6752done
6753  done
6754IFS=$as_save_IFS
6755
6756fi
6757fi
6758ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6759if test -n "$ac_ct_STRIP"; then
6760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6761$as_echo "$ac_ct_STRIP" >&6; }
6762else
6763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6764$as_echo "no" >&6; }
6765fi
6766
6767  if test "x$ac_ct_STRIP" = x; then
6768    STRIP=":"
6769  else
6770    case $cross_compiling:$ac_tool_warned in
6771yes:)
6772{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6773$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6774ac_tool_warned=yes ;;
6775esac
6776    STRIP=$ac_ct_STRIP
6777  fi
6778else
6779  STRIP="$ac_cv_prog_STRIP"
6780fi
6781
6782test -z "$STRIP" && STRIP=:
6783
6784
6785
6786
6787
6788
6789if test -n "$ac_tool_prefix"; then
6790  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6791set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6793$as_echo_n "checking for $ac_word... " >&6; }
6794if test "${ac_cv_prog_RANLIB+set}" = set; then :
6795  $as_echo_n "(cached) " >&6
6796else
6797  if test -n "$RANLIB"; then
6798  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6799else
6800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801for as_dir in $PATH
6802do
6803  IFS=$as_save_IFS
6804  test -z "$as_dir" && as_dir=.
6805    for ac_exec_ext in '' $ac_executable_extensions; do
6806  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6807    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6808    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6809    break 2
6810  fi
6811done
6812  done
6813IFS=$as_save_IFS
6814
6815fi
6816fi
6817RANLIB=$ac_cv_prog_RANLIB
6818if test -n "$RANLIB"; then
6819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6820$as_echo "$RANLIB" >&6; }
6821else
6822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6823$as_echo "no" >&6; }
6824fi
6825
6826
6827fi
6828if test -z "$ac_cv_prog_RANLIB"; then
6829  ac_ct_RANLIB=$RANLIB
6830  # Extract the first word of "ranlib", so it can be a program name with args.
6831set dummy ranlib; ac_word=$2
6832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6833$as_echo_n "checking for $ac_word... " >&6; }
6834if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6835  $as_echo_n "(cached) " >&6
6836else
6837  if test -n "$ac_ct_RANLIB"; then
6838  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6839else
6840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841for as_dir in $PATH
6842do
6843  IFS=$as_save_IFS
6844  test -z "$as_dir" && as_dir=.
6845    for ac_exec_ext in '' $ac_executable_extensions; do
6846  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6847    ac_cv_prog_ac_ct_RANLIB="ranlib"
6848    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6849    break 2
6850  fi
6851done
6852  done
6853IFS=$as_save_IFS
6854
6855fi
6856fi
6857ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6858if test -n "$ac_ct_RANLIB"; then
6859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6860$as_echo "$ac_ct_RANLIB" >&6; }
6861else
6862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6863$as_echo "no" >&6; }
6864fi
6865
6866  if test "x$ac_ct_RANLIB" = x; then
6867    RANLIB=":"
6868  else
6869    case $cross_compiling:$ac_tool_warned in
6870yes:)
6871{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6872$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6873ac_tool_warned=yes ;;
6874esac
6875    RANLIB=$ac_ct_RANLIB
6876  fi
6877else
6878  RANLIB="$ac_cv_prog_RANLIB"
6879fi
6880
6881test -z "$RANLIB" && RANLIB=:
6882
6883
6884
6885
6886
6887
6888# Determine commands to create old-style static archives.
6889old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6890old_postinstall_cmds='chmod 644 $oldlib'
6891old_postuninstall_cmds=
6892
6893if test -n "$RANLIB"; then
6894  case $host_os in
6895  openbsd*)
6896    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6897    ;;
6898  *)
6899    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6900    ;;
6901  esac
6902  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6903fi
6904
6905case $host_os in
6906  darwin*)
6907    lock_old_archive_extraction=yes ;;
6908  *)
6909    lock_old_archive_extraction=no ;;
6910esac
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950# If no C compiler was specified, use CC.
6951LTCC=${LTCC-"$CC"}
6952
6953# If no C compiler flags were specified, use CFLAGS.
6954LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6955
6956# Allow CC to be a program name with arguments.
6957compiler=$CC
6958
6959
6960# Check for command to grab the raw symbol name followed by C symbol from nm.
6961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6962$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6963if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6964  $as_echo_n "(cached) " >&6
6965else
6966
6967# These are sane defaults that work on at least a few old systems.
6968# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6969
6970# Character class describing NM global symbol codes.
6971symcode='[BCDEGRST]'
6972
6973# Regexp to match symbols that can be accessed directly from C.
6974sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6975
6976# Define system-specific variables.
6977case $host_os in
6978aix*)
6979  symcode='[BCDT]'
6980  ;;
6981cygwin* | mingw* | pw32* | cegcc*)
6982  symcode='[ABCDGISTW]'
6983  ;;
6984hpux*)
6985  if test "$host_cpu" = ia64; then
6986    symcode='[ABCDEGRST]'
6987  fi
6988  ;;
6989irix* | nonstopux*)
6990  symcode='[BCDEGRST]'
6991  ;;
6992osf*)
6993  symcode='[BCDEGQRST]'
6994  ;;
6995solaris*)
6996  symcode='[BDRT]'
6997  ;;
6998sco3.2v5*)
6999  symcode='[DT]'
7000  ;;
7001sysv4.2uw2*)
7002  symcode='[DT]'
7003  ;;
7004sysv5* | sco5v6* | unixware* | OpenUNIX*)
7005  symcode='[ABDT]'
7006  ;;
7007sysv4)
7008  symcode='[DFNSTU]'
7009  ;;
7010esac
7011
7012# If we're using GNU nm, then use its standard symbol codes.
7013case `$NM -V 2>&1` in
7014*GNU* | *'with BFD'*)
7015  symcode='[ABCDGIRSTW]' ;;
7016esac
7017
7018# Transform an extracted symbol line into a proper C declaration.
7019# Some systems (esp. on ia64) link data and code symbols differently,
7020# so use this general approach.
7021lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7022
7023# Transform an extracted symbol line into symbol name and symbol address
7024lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7025lt_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'"
7026
7027# Handle CRLF in mingw tool chain
7028opt_cr=
7029case $build_os in
7030mingw*)
7031  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7032  ;;
7033esac
7034
7035# Try without a prefix underscore, then with it.
7036for ac_symprfx in "" "_"; do
7037
7038  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7039  symxfrm="\\1 $ac_symprfx\\2 \\2"
7040
7041  # Write the raw and C identifiers.
7042  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7043    # Fake it for dumpbin and say T for any non-static function
7044    # and D for any global variable.
7045    # Also find C++ and __fastcall symbols from MSVC++,
7046    # which start with @ or ?.
7047    lt_cv_sys_global_symbol_pipe="$AWK '"\
7048"     {last_section=section; section=\$ 3};"\
7049"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7050"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7051"     \$ 0!~/External *\|/{next};"\
7052"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7053"     {if(hide[section]) next};"\
7054"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7055"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7056"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7057"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7058"     ' prfx=^$ac_symprfx"
7059  else
7060    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7061  fi
7062  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7063
7064  # Check to see that the pipe works correctly.
7065  pipe_works=no
7066
7067  rm -f conftest*
7068  cat > conftest.$ac_ext <<_LT_EOF
7069#ifdef __cplusplus
7070extern "C" {
7071#endif
7072char nm_test_var;
7073void nm_test_func(void);
7074void nm_test_func(void){}
7075#ifdef __cplusplus
7076}
7077#endif
7078int main(){nm_test_var='a';nm_test_func();return(0);}
7079_LT_EOF
7080
7081  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7082  (eval $ac_compile) 2>&5
7083  ac_status=$?
7084  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7085  test $ac_status = 0; }; then
7086    # Now try to grab the symbols.
7087    nlist=conftest.nm
7088    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7089  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7090  ac_status=$?
7091  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7092  test $ac_status = 0; } && test -s "$nlist"; then
7093      # Try sorting and uniquifying the output.
7094      if sort "$nlist" | uniq > "$nlist"T; then
7095	mv -f "$nlist"T "$nlist"
7096      else
7097	rm -f "$nlist"T
7098      fi
7099
7100      # Make sure that we snagged all the symbols we need.
7101      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7102	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7103	  cat <<_LT_EOF > conftest.$ac_ext
7104/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7105#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7106/* DATA imports from DLLs on WIN32 con't be const, because runtime
7107   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7108# define LT_DLSYM_CONST
7109#elif defined(__osf__)
7110/* This system does not cope well with relocations in const data.  */
7111# define LT_DLSYM_CONST
7112#else
7113# define LT_DLSYM_CONST const
7114#endif
7115
7116#ifdef __cplusplus
7117extern "C" {
7118#endif
7119
7120_LT_EOF
7121	  # Now generate the symbol file.
7122	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7123
7124	  cat <<_LT_EOF >> conftest.$ac_ext
7125
7126/* The mapping between symbol names and symbols.  */
7127LT_DLSYM_CONST struct {
7128  const char *name;
7129  void       *address;
7130}
7131lt__PROGRAM__LTX_preloaded_symbols[] =
7132{
7133  { "@PROGRAM@", (void *) 0 },
7134_LT_EOF
7135	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7136	  cat <<\_LT_EOF >> conftest.$ac_ext
7137  {0, (void *) 0}
7138};
7139
7140/* This works around a problem in FreeBSD linker */
7141#ifdef FREEBSD_WORKAROUND
7142static const void *lt_preloaded_setup() {
7143  return lt__PROGRAM__LTX_preloaded_symbols;
7144}
7145#endif
7146
7147#ifdef __cplusplus
7148}
7149#endif
7150_LT_EOF
7151	  # Now try linking the two files.
7152	  mv conftest.$ac_objext conftstm.$ac_objext
7153	  lt_globsym_save_LIBS=$LIBS
7154	  lt_globsym_save_CFLAGS=$CFLAGS
7155	  LIBS="conftstm.$ac_objext"
7156	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7157	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7158  (eval $ac_link) 2>&5
7159  ac_status=$?
7160  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7161  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7162	    pipe_works=yes
7163	  fi
7164	  LIBS=$lt_globsym_save_LIBS
7165	  CFLAGS=$lt_globsym_save_CFLAGS
7166	else
7167	  echo "cannot find nm_test_func in $nlist" >&5
7168	fi
7169      else
7170	echo "cannot find nm_test_var in $nlist" >&5
7171      fi
7172    else
7173      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7174    fi
7175  else
7176    echo "$progname: failed program was:" >&5
7177    cat conftest.$ac_ext >&5
7178  fi
7179  rm -rf conftest* conftst*
7180
7181  # Do not use the global_symbol_pipe unless it works.
7182  if test "$pipe_works" = yes; then
7183    break
7184  else
7185    lt_cv_sys_global_symbol_pipe=
7186  fi
7187done
7188
7189fi
7190
7191if test -z "$lt_cv_sys_global_symbol_pipe"; then
7192  lt_cv_sys_global_symbol_to_cdecl=
7193fi
7194if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7196$as_echo "failed" >&6; }
7197else
7198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7199$as_echo "ok" >&6; }
7200fi
7201
7202# Response file support.
7203if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7204  nm_file_list_spec='@'
7205elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7206  nm_file_list_spec='@'
7207fi
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7236$as_echo_n "checking for sysroot... " >&6; }
7237
7238# Check whether --with-sysroot was given.
7239if test "${with_sysroot+set}" = set; then :
7240  withval=$with_sysroot;
7241else
7242  with_sysroot=no
7243fi
7244
7245
7246lt_sysroot=
7247case ${with_sysroot} in #(
7248 yes)
7249   if test "$GCC" = yes; then
7250     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7251   fi
7252   ;; #(
7253 /*)
7254   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7255   ;; #(
7256 no|'')
7257   ;; #(
7258 *)
7259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7260$as_echo "${with_sysroot}" >&6; }
7261   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7262   ;;
7263esac
7264
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7266$as_echo "${lt_sysroot:-no}" >&6; }
7267
7268
7269
7270
7271
7272# Check whether --enable-libtool-lock was given.
7273if test "${enable_libtool_lock+set}" = set; then :
7274  enableval=$enable_libtool_lock;
7275fi
7276
7277test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7278
7279# Some flags need to be propagated to the compiler or linker for good
7280# libtool support.
7281case $host in
7282ia64-*-hpux*)
7283  # Find out which ABI we are using.
7284  echo 'int i;' > conftest.$ac_ext
7285  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7286  (eval $ac_compile) 2>&5
7287  ac_status=$?
7288  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7289  test $ac_status = 0; }; then
7290    case `/usr/bin/file conftest.$ac_objext` in
7291      *ELF-32*)
7292	HPUX_IA64_MODE="32"
7293	;;
7294      *ELF-64*)
7295	HPUX_IA64_MODE="64"
7296	;;
7297    esac
7298  fi
7299  rm -rf conftest*
7300  ;;
7301*-*-irix6*)
7302  # Find out which ABI we are using.
7303  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7304  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7305  (eval $ac_compile) 2>&5
7306  ac_status=$?
7307  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7308  test $ac_status = 0; }; then
7309    if test "$lt_cv_prog_gnu_ld" = yes; then
7310      case `/usr/bin/file conftest.$ac_objext` in
7311	*32-bit*)
7312	  LD="${LD-ld} -melf32bsmip"
7313	  ;;
7314	*N32*)
7315	  LD="${LD-ld} -melf32bmipn32"
7316	  ;;
7317	*64-bit*)
7318	  LD="${LD-ld} -melf64bmip"
7319	;;
7320      esac
7321    else
7322      case `/usr/bin/file conftest.$ac_objext` in
7323	*32-bit*)
7324	  LD="${LD-ld} -32"
7325	  ;;
7326	*N32*)
7327	  LD="${LD-ld} -n32"
7328	  ;;
7329	*64-bit*)
7330	  LD="${LD-ld} -64"
7331	  ;;
7332      esac
7333    fi
7334  fi
7335  rm -rf conftest*
7336  ;;
7337
7338x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7339s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7340  # Find out which ABI we are using.
7341  echo 'int i;' > conftest.$ac_ext
7342  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7343  (eval $ac_compile) 2>&5
7344  ac_status=$?
7345  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7346  test $ac_status = 0; }; then
7347    case `/usr/bin/file conftest.o` in
7348      *32-bit*)
7349	case $host in
7350	  x86_64-*kfreebsd*-gnu)
7351	    LD="${LD-ld} -m elf_i386_fbsd"
7352	    ;;
7353	  x86_64-*linux*)
7354	    case `/usr/bin/file conftest.o` in
7355	      *x86-64*)
7356		LD="${LD-ld} -m elf32_x86_64"
7357		;;
7358	      *)
7359		LD="${LD-ld} -m elf_i386"
7360		;;
7361	    esac
7362	    ;;
7363	  powerpc64le-*)
7364	    LD="${LD-ld} -m elf32lppclinux"
7365	    ;;
7366	  powerpc64-*)
7367	    LD="${LD-ld} -m elf32ppclinux"
7368	    ;;
7369	  s390x-*linux*)
7370	    LD="${LD-ld} -m elf_s390"
7371	    ;;
7372	  sparc64-*linux*)
7373	    LD="${LD-ld} -m elf32_sparc"
7374	    ;;
7375	esac
7376	;;
7377      *64-bit*)
7378	case $host in
7379	  x86_64-*kfreebsd*-gnu)
7380	    LD="${LD-ld} -m elf_x86_64_fbsd"
7381	    ;;
7382	  x86_64-*linux*)
7383	    LD="${LD-ld} -m elf_x86_64"
7384	    ;;
7385	  powerpcle-*)
7386	    LD="${LD-ld} -m elf64lppc"
7387	    ;;
7388	  powerpc-*)
7389	    LD="${LD-ld} -m elf64ppc"
7390	    ;;
7391	  s390*-*linux*|s390*-*tpf*)
7392	    LD="${LD-ld} -m elf64_s390"
7393	    ;;
7394	  sparc*-*linux*)
7395	    LD="${LD-ld} -m elf64_sparc"
7396	    ;;
7397	esac
7398	;;
7399    esac
7400  fi
7401  rm -rf conftest*
7402  ;;
7403
7404*-*-sco3.2v5*)
7405  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7406  SAVE_CFLAGS="$CFLAGS"
7407  CFLAGS="$CFLAGS -belf"
7408  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7409$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7410if test "${lt_cv_cc_needs_belf+set}" = set; then :
7411  $as_echo_n "(cached) " >&6
7412else
7413  ac_ext=c
7414ac_cpp='$CPP $CPPFLAGS'
7415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7417ac_compiler_gnu=$ac_cv_c_compiler_gnu
7418
7419     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7420/* end confdefs.h.  */
7421
7422int
7423main ()
7424{
7425
7426  ;
7427  return 0;
7428}
7429_ACEOF
7430if ac_fn_c_try_link "$LINENO"; then :
7431  lt_cv_cc_needs_belf=yes
7432else
7433  lt_cv_cc_needs_belf=no
7434fi
7435rm -f core conftest.err conftest.$ac_objext \
7436    conftest$ac_exeext conftest.$ac_ext
7437     ac_ext=c
7438ac_cpp='$CPP $CPPFLAGS'
7439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7441ac_compiler_gnu=$ac_cv_c_compiler_gnu
7442
7443fi
7444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7445$as_echo "$lt_cv_cc_needs_belf" >&6; }
7446  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7447    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7448    CFLAGS="$SAVE_CFLAGS"
7449  fi
7450  ;;
7451*-*solaris*)
7452  # Find out which ABI we are using.
7453  echo 'int i;' > conftest.$ac_ext
7454  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7455  (eval $ac_compile) 2>&5
7456  ac_status=$?
7457  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7458  test $ac_status = 0; }; then
7459    case `/usr/bin/file conftest.o` in
7460    *64-bit*)
7461      case $lt_cv_prog_gnu_ld in
7462      yes*)
7463        case $host in
7464        i?86-*-solaris*)
7465          LD="${LD-ld} -m elf_x86_64"
7466          ;;
7467        sparc*-*-solaris*)
7468          LD="${LD-ld} -m elf64_sparc"
7469          ;;
7470        esac
7471        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7472        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7473          LD="${LD-ld}_sol2"
7474        fi
7475        ;;
7476      *)
7477	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7478	  LD="${LD-ld} -64"
7479	fi
7480	;;
7481      esac
7482      ;;
7483    esac
7484  fi
7485  rm -rf conftest*
7486  ;;
7487esac
7488
7489need_locks="$enable_libtool_lock"
7490
7491if test -n "$ac_tool_prefix"; then
7492  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7493set dummy ${ac_tool_prefix}mt; ac_word=$2
7494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7495$as_echo_n "checking for $ac_word... " >&6; }
7496if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then :
7497  $as_echo_n "(cached) " >&6
7498else
7499  if test -n "$MANIFEST_TOOL"; then
7500  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7501else
7502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503for as_dir in $PATH
7504do
7505  IFS=$as_save_IFS
7506  test -z "$as_dir" && as_dir=.
7507    for ac_exec_ext in '' $ac_executable_extensions; do
7508  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7509    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7510    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7511    break 2
7512  fi
7513done
7514  done
7515IFS=$as_save_IFS
7516
7517fi
7518fi
7519MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7520if test -n "$MANIFEST_TOOL"; then
7521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7522$as_echo "$MANIFEST_TOOL" >&6; }
7523else
7524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7525$as_echo "no" >&6; }
7526fi
7527
7528
7529fi
7530if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7531  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7532  # Extract the first word of "mt", so it can be a program name with args.
7533set dummy mt; ac_word=$2
7534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7535$as_echo_n "checking for $ac_word... " >&6; }
7536if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then :
7537  $as_echo_n "(cached) " >&6
7538else
7539  if test -n "$ac_ct_MANIFEST_TOOL"; then
7540  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7541else
7542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543for as_dir in $PATH
7544do
7545  IFS=$as_save_IFS
7546  test -z "$as_dir" && as_dir=.
7547    for ac_exec_ext in '' $ac_executable_extensions; do
7548  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7549    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7550    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7551    break 2
7552  fi
7553done
7554  done
7555IFS=$as_save_IFS
7556
7557fi
7558fi
7559ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7560if test -n "$ac_ct_MANIFEST_TOOL"; then
7561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7562$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7563else
7564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7565$as_echo "no" >&6; }
7566fi
7567
7568  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7569    MANIFEST_TOOL=":"
7570  else
7571    case $cross_compiling:$ac_tool_warned in
7572yes:)
7573{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7574$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7575ac_tool_warned=yes ;;
7576esac
7577    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7578  fi
7579else
7580  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7581fi
7582
7583test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7585$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7586if test "${lt_cv_path_mainfest_tool+set}" = set; then :
7587  $as_echo_n "(cached) " >&6
7588else
7589  lt_cv_path_mainfest_tool=no
7590  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7591  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7592  cat conftest.err >&5
7593  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7594    lt_cv_path_mainfest_tool=yes
7595  fi
7596  rm -f conftest*
7597fi
7598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7599$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7600if test "x$lt_cv_path_mainfest_tool" != xyes; then
7601  MANIFEST_TOOL=:
7602fi
7603
7604
7605
7606
7607
7608
7609  case $host_os in
7610    rhapsody* | darwin*)
7611    if test -n "$ac_tool_prefix"; then
7612  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7613set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7615$as_echo_n "checking for $ac_word... " >&6; }
7616if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7617  $as_echo_n "(cached) " >&6
7618else
7619  if test -n "$DSYMUTIL"; then
7620  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7621else
7622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7623for as_dir in $PATH
7624do
7625  IFS=$as_save_IFS
7626  test -z "$as_dir" && as_dir=.
7627    for ac_exec_ext in '' $ac_executable_extensions; do
7628  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7629    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7630    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7631    break 2
7632  fi
7633done
7634  done
7635IFS=$as_save_IFS
7636
7637fi
7638fi
7639DSYMUTIL=$ac_cv_prog_DSYMUTIL
7640if test -n "$DSYMUTIL"; then
7641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7642$as_echo "$DSYMUTIL" >&6; }
7643else
7644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7645$as_echo "no" >&6; }
7646fi
7647
7648
7649fi
7650if test -z "$ac_cv_prog_DSYMUTIL"; then
7651  ac_ct_DSYMUTIL=$DSYMUTIL
7652  # Extract the first word of "dsymutil", so it can be a program name with args.
7653set dummy dsymutil; ac_word=$2
7654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7655$as_echo_n "checking for $ac_word... " >&6; }
7656if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7657  $as_echo_n "(cached) " >&6
7658else
7659  if test -n "$ac_ct_DSYMUTIL"; then
7660  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7661else
7662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7663for as_dir in $PATH
7664do
7665  IFS=$as_save_IFS
7666  test -z "$as_dir" && as_dir=.
7667    for ac_exec_ext in '' $ac_executable_extensions; do
7668  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7669    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7670    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7671    break 2
7672  fi
7673done
7674  done
7675IFS=$as_save_IFS
7676
7677fi
7678fi
7679ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7680if test -n "$ac_ct_DSYMUTIL"; then
7681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7682$as_echo "$ac_ct_DSYMUTIL" >&6; }
7683else
7684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7685$as_echo "no" >&6; }
7686fi
7687
7688  if test "x$ac_ct_DSYMUTIL" = x; then
7689    DSYMUTIL=":"
7690  else
7691    case $cross_compiling:$ac_tool_warned in
7692yes:)
7693{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7695ac_tool_warned=yes ;;
7696esac
7697    DSYMUTIL=$ac_ct_DSYMUTIL
7698  fi
7699else
7700  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7701fi
7702
7703    if test -n "$ac_tool_prefix"; then
7704  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7705set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707$as_echo_n "checking for $ac_word... " >&6; }
7708if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7709  $as_echo_n "(cached) " >&6
7710else
7711  if test -n "$NMEDIT"; then
7712  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7713else
7714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715for as_dir in $PATH
7716do
7717  IFS=$as_save_IFS
7718  test -z "$as_dir" && as_dir=.
7719    for ac_exec_ext in '' $ac_executable_extensions; do
7720  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7721    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7722    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7723    break 2
7724  fi
7725done
7726  done
7727IFS=$as_save_IFS
7728
7729fi
7730fi
7731NMEDIT=$ac_cv_prog_NMEDIT
7732if test -n "$NMEDIT"; then
7733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7734$as_echo "$NMEDIT" >&6; }
7735else
7736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737$as_echo "no" >&6; }
7738fi
7739
7740
7741fi
7742if test -z "$ac_cv_prog_NMEDIT"; then
7743  ac_ct_NMEDIT=$NMEDIT
7744  # Extract the first word of "nmedit", so it can be a program name with args.
7745set dummy nmedit; ac_word=$2
7746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7747$as_echo_n "checking for $ac_word... " >&6; }
7748if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7749  $as_echo_n "(cached) " >&6
7750else
7751  if test -n "$ac_ct_NMEDIT"; then
7752  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7753else
7754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755for as_dir in $PATH
7756do
7757  IFS=$as_save_IFS
7758  test -z "$as_dir" && as_dir=.
7759    for ac_exec_ext in '' $ac_executable_extensions; do
7760  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7761    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7762    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7763    break 2
7764  fi
7765done
7766  done
7767IFS=$as_save_IFS
7768
7769fi
7770fi
7771ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7772if test -n "$ac_ct_NMEDIT"; then
7773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7774$as_echo "$ac_ct_NMEDIT" >&6; }
7775else
7776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7777$as_echo "no" >&6; }
7778fi
7779
7780  if test "x$ac_ct_NMEDIT" = x; then
7781    NMEDIT=":"
7782  else
7783    case $cross_compiling:$ac_tool_warned in
7784yes:)
7785{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7786$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7787ac_tool_warned=yes ;;
7788esac
7789    NMEDIT=$ac_ct_NMEDIT
7790  fi
7791else
7792  NMEDIT="$ac_cv_prog_NMEDIT"
7793fi
7794
7795    if test -n "$ac_tool_prefix"; then
7796  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7797set dummy ${ac_tool_prefix}lipo; ac_word=$2
7798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7799$as_echo_n "checking for $ac_word... " >&6; }
7800if test "${ac_cv_prog_LIPO+set}" = set; then :
7801  $as_echo_n "(cached) " >&6
7802else
7803  if test -n "$LIPO"; then
7804  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7805else
7806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807for as_dir in $PATH
7808do
7809  IFS=$as_save_IFS
7810  test -z "$as_dir" && as_dir=.
7811    for ac_exec_ext in '' $ac_executable_extensions; do
7812  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7813    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7814    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7815    break 2
7816  fi
7817done
7818  done
7819IFS=$as_save_IFS
7820
7821fi
7822fi
7823LIPO=$ac_cv_prog_LIPO
7824if test -n "$LIPO"; then
7825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7826$as_echo "$LIPO" >&6; }
7827else
7828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7829$as_echo "no" >&6; }
7830fi
7831
7832
7833fi
7834if test -z "$ac_cv_prog_LIPO"; then
7835  ac_ct_LIPO=$LIPO
7836  # Extract the first word of "lipo", so it can be a program name with args.
7837set dummy lipo; ac_word=$2
7838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7839$as_echo_n "checking for $ac_word... " >&6; }
7840if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7841  $as_echo_n "(cached) " >&6
7842else
7843  if test -n "$ac_ct_LIPO"; then
7844  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7845else
7846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7847for as_dir in $PATH
7848do
7849  IFS=$as_save_IFS
7850  test -z "$as_dir" && as_dir=.
7851    for ac_exec_ext in '' $ac_executable_extensions; do
7852  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7853    ac_cv_prog_ac_ct_LIPO="lipo"
7854    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7855    break 2
7856  fi
7857done
7858  done
7859IFS=$as_save_IFS
7860
7861fi
7862fi
7863ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7864if test -n "$ac_ct_LIPO"; then
7865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7866$as_echo "$ac_ct_LIPO" >&6; }
7867else
7868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869$as_echo "no" >&6; }
7870fi
7871
7872  if test "x$ac_ct_LIPO" = x; then
7873    LIPO=":"
7874  else
7875    case $cross_compiling:$ac_tool_warned in
7876yes:)
7877{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7878$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7879ac_tool_warned=yes ;;
7880esac
7881    LIPO=$ac_ct_LIPO
7882  fi
7883else
7884  LIPO="$ac_cv_prog_LIPO"
7885fi
7886
7887    if test -n "$ac_tool_prefix"; then
7888  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7889set dummy ${ac_tool_prefix}otool; ac_word=$2
7890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7891$as_echo_n "checking for $ac_word... " >&6; }
7892if test "${ac_cv_prog_OTOOL+set}" = set; then :
7893  $as_echo_n "(cached) " >&6
7894else
7895  if test -n "$OTOOL"; then
7896  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7897else
7898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899for as_dir in $PATH
7900do
7901  IFS=$as_save_IFS
7902  test -z "$as_dir" && as_dir=.
7903    for ac_exec_ext in '' $ac_executable_extensions; do
7904  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7905    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7906    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7907    break 2
7908  fi
7909done
7910  done
7911IFS=$as_save_IFS
7912
7913fi
7914fi
7915OTOOL=$ac_cv_prog_OTOOL
7916if test -n "$OTOOL"; then
7917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7918$as_echo "$OTOOL" >&6; }
7919else
7920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7921$as_echo "no" >&6; }
7922fi
7923
7924
7925fi
7926if test -z "$ac_cv_prog_OTOOL"; then
7927  ac_ct_OTOOL=$OTOOL
7928  # Extract the first word of "otool", so it can be a program name with args.
7929set dummy otool; ac_word=$2
7930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7931$as_echo_n "checking for $ac_word... " >&6; }
7932if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7933  $as_echo_n "(cached) " >&6
7934else
7935  if test -n "$ac_ct_OTOOL"; then
7936  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7937else
7938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7939for as_dir in $PATH
7940do
7941  IFS=$as_save_IFS
7942  test -z "$as_dir" && as_dir=.
7943    for ac_exec_ext in '' $ac_executable_extensions; do
7944  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7945    ac_cv_prog_ac_ct_OTOOL="otool"
7946    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7947    break 2
7948  fi
7949done
7950  done
7951IFS=$as_save_IFS
7952
7953fi
7954fi
7955ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7956if test -n "$ac_ct_OTOOL"; then
7957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7958$as_echo "$ac_ct_OTOOL" >&6; }
7959else
7960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7961$as_echo "no" >&6; }
7962fi
7963
7964  if test "x$ac_ct_OTOOL" = x; then
7965    OTOOL=":"
7966  else
7967    case $cross_compiling:$ac_tool_warned in
7968yes:)
7969{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7970$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7971ac_tool_warned=yes ;;
7972esac
7973    OTOOL=$ac_ct_OTOOL
7974  fi
7975else
7976  OTOOL="$ac_cv_prog_OTOOL"
7977fi
7978
7979    if test -n "$ac_tool_prefix"; then
7980  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7981set dummy ${ac_tool_prefix}otool64; ac_word=$2
7982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7983$as_echo_n "checking for $ac_word... " >&6; }
7984if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7985  $as_echo_n "(cached) " >&6
7986else
7987  if test -n "$OTOOL64"; then
7988  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7989else
7990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991for as_dir in $PATH
7992do
7993  IFS=$as_save_IFS
7994  test -z "$as_dir" && as_dir=.
7995    for ac_exec_ext in '' $ac_executable_extensions; do
7996  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7997    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7999    break 2
8000  fi
8001done
8002  done
8003IFS=$as_save_IFS
8004
8005fi
8006fi
8007OTOOL64=$ac_cv_prog_OTOOL64
8008if test -n "$OTOOL64"; then
8009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8010$as_echo "$OTOOL64" >&6; }
8011else
8012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8013$as_echo "no" >&6; }
8014fi
8015
8016
8017fi
8018if test -z "$ac_cv_prog_OTOOL64"; then
8019  ac_ct_OTOOL64=$OTOOL64
8020  # Extract the first word of "otool64", so it can be a program name with args.
8021set dummy otool64; ac_word=$2
8022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8023$as_echo_n "checking for $ac_word... " >&6; }
8024if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8025  $as_echo_n "(cached) " >&6
8026else
8027  if test -n "$ac_ct_OTOOL64"; then
8028  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8029else
8030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031for as_dir in $PATH
8032do
8033  IFS=$as_save_IFS
8034  test -z "$as_dir" && as_dir=.
8035    for ac_exec_ext in '' $ac_executable_extensions; do
8036  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8037    ac_cv_prog_ac_ct_OTOOL64="otool64"
8038    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8039    break 2
8040  fi
8041done
8042  done
8043IFS=$as_save_IFS
8044
8045fi
8046fi
8047ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8048if test -n "$ac_ct_OTOOL64"; then
8049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8050$as_echo "$ac_ct_OTOOL64" >&6; }
8051else
8052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053$as_echo "no" >&6; }
8054fi
8055
8056  if test "x$ac_ct_OTOOL64" = x; then
8057    OTOOL64=":"
8058  else
8059    case $cross_compiling:$ac_tool_warned in
8060yes:)
8061{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8062$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8063ac_tool_warned=yes ;;
8064esac
8065    OTOOL64=$ac_ct_OTOOL64
8066  fi
8067else
8068  OTOOL64="$ac_cv_prog_OTOOL64"
8069fi
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8098$as_echo_n "checking for -single_module linker flag... " >&6; }
8099if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8100  $as_echo_n "(cached) " >&6
8101else
8102  lt_cv_apple_cc_single_mod=no
8103      if test -z "${LT_MULTI_MODULE}"; then
8104	# By default we will add the -single_module flag. You can override
8105	# by either setting the environment variable LT_MULTI_MODULE
8106	# non-empty at configure time, or by adding -multi_module to the
8107	# link flags.
8108	rm -rf libconftest.dylib*
8109	echo "int foo(void){return 1;}" > conftest.c
8110	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8111-dynamiclib -Wl,-single_module conftest.c" >&5
8112	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8113	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8114        _lt_result=$?
8115	# If there is a non-empty error log, and "single_module"
8116	# appears in it, assume the flag caused a linker warning
8117        if test -s conftest.err && $GREP single_module conftest.err; then
8118	  cat conftest.err >&5
8119	# Otherwise, if the output was created with a 0 exit code from
8120	# the compiler, it worked.
8121	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8122	  lt_cv_apple_cc_single_mod=yes
8123	else
8124	  cat conftest.err >&5
8125	fi
8126	rm -rf libconftest.dylib*
8127	rm -f conftest.*
8128      fi
8129fi
8130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8131$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8132
8133    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8134$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8135if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8136  $as_echo_n "(cached) " >&6
8137else
8138  lt_cv_ld_exported_symbols_list=no
8139      save_LDFLAGS=$LDFLAGS
8140      echo "_main" > conftest.sym
8141      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8142      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8143/* end confdefs.h.  */
8144
8145int
8146main ()
8147{
8148
8149  ;
8150  return 0;
8151}
8152_ACEOF
8153if ac_fn_c_try_link "$LINENO"; then :
8154  lt_cv_ld_exported_symbols_list=yes
8155else
8156  lt_cv_ld_exported_symbols_list=no
8157fi
8158rm -f core conftest.err conftest.$ac_objext \
8159    conftest$ac_exeext conftest.$ac_ext
8160	LDFLAGS="$save_LDFLAGS"
8161
8162fi
8163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8164$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8165
8166    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8167$as_echo_n "checking for -force_load linker flag... " >&6; }
8168if test "${lt_cv_ld_force_load+set}" = set; then :
8169  $as_echo_n "(cached) " >&6
8170else
8171  lt_cv_ld_force_load=no
8172      cat > conftest.c << _LT_EOF
8173int forced_loaded() { return 2;}
8174_LT_EOF
8175      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8176      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8177      echo "$AR cru libconftest.a conftest.o" >&5
8178      $AR cru libconftest.a conftest.o 2>&5
8179      echo "$RANLIB libconftest.a" >&5
8180      $RANLIB libconftest.a 2>&5
8181      cat > conftest.c << _LT_EOF
8182int main() { return 0;}
8183_LT_EOF
8184      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8185      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8186      _lt_result=$?
8187      if test -s conftest.err && $GREP force_load conftest.err; then
8188	cat conftest.err >&5
8189      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8190	lt_cv_ld_force_load=yes
8191      else
8192	cat conftest.err >&5
8193      fi
8194        rm -f conftest.err libconftest.a conftest conftest.c
8195        rm -rf conftest.dSYM
8196
8197fi
8198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8199$as_echo "$lt_cv_ld_force_load" >&6; }
8200    case $host_os in
8201    rhapsody* | darwin1.[012])
8202      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8203    darwin1.*)
8204      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8205    darwin*) # darwin 5.x on
8206      # if running on 10.5 or later, the deployment target defaults
8207      # to the OS version, if on x86, and 10.4, the deployment
8208      # target defaults to 10.4. Don't you love it?
8209      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8210	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8211	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8212	10.[012]*)
8213	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8214	10.*)
8215	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8216      esac
8217    ;;
8218  esac
8219    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8220      _lt_dar_single_mod='$single_module'
8221    fi
8222    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8223      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8224    else
8225      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8226    fi
8227    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8228      _lt_dsymutil='~$DSYMUTIL $lib || :'
8229    else
8230      _lt_dsymutil=
8231    fi
8232    ;;
8233  esac
8234
8235for ac_header in dlfcn.h
8236do :
8237  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8238"
8239if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8240  cat >>confdefs.h <<_ACEOF
8241#define HAVE_DLFCN_H 1
8242_ACEOF
8243
8244fi
8245
8246done
8247
8248
8249
8250
8251
8252# Set options
8253
8254
8255
8256
8257  enable_win32_dll=no
8258
8259
8260
8261
8262
8263# Check whether --with-pic was given.
8264if test "${with_pic+set}" = set; then :
8265  withval=$with_pic; lt_p=${PACKAGE-default}
8266    case $withval in
8267    yes|no) pic_mode=$withval ;;
8268    *)
8269      pic_mode=default
8270      # Look at the argument we got.  We use all the common list separators.
8271      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8272      for lt_pkg in $withval; do
8273	IFS="$lt_save_ifs"
8274	if test "X$lt_pkg" = "X$lt_p"; then
8275	  pic_mode=yes
8276	fi
8277      done
8278      IFS="$lt_save_ifs"
8279      ;;
8280    esac
8281else
8282  pic_mode=default
8283fi
8284
8285
8286test -z "$pic_mode" && pic_mode=default
8287
8288
8289
8290
8291
8292
8293
8294  # Check whether --enable-fast-install was given.
8295if test "${enable_fast_install+set}" = set; then :
8296  enableval=$enable_fast_install; p=${PACKAGE-default}
8297    case $enableval in
8298    yes) enable_fast_install=yes ;;
8299    no) enable_fast_install=no ;;
8300    *)
8301      enable_fast_install=no
8302      # Look at the argument we got.  We use all the common list separators.
8303      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8304      for pkg in $enableval; do
8305	IFS="$lt_save_ifs"
8306	if test "X$pkg" = "X$p"; then
8307	  enable_fast_install=yes
8308	fi
8309      done
8310      IFS="$lt_save_ifs"
8311      ;;
8312    esac
8313else
8314  enable_fast_install=yes
8315fi
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327# This can be used to rebuild libtool when needed
8328LIBTOOL_DEPS="$ltmain"
8329
8330# Always use our own libtool.
8331LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362test -z "$LN_S" && LN_S="ln -s"
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377if test -n "${ZSH_VERSION+set}" ; then
8378   setopt NO_GLOB_SUBST
8379fi
8380
8381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8382$as_echo_n "checking for objdir... " >&6; }
8383if test "${lt_cv_objdir+set}" = set; then :
8384  $as_echo_n "(cached) " >&6
8385else
8386  rm -f .libs 2>/dev/null
8387mkdir .libs 2>/dev/null
8388if test -d .libs; then
8389  lt_cv_objdir=.libs
8390else
8391  # MS-DOS does not allow filenames that begin with a dot.
8392  lt_cv_objdir=_libs
8393fi
8394rmdir .libs 2>/dev/null
8395fi
8396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8397$as_echo "$lt_cv_objdir" >&6; }
8398objdir=$lt_cv_objdir
8399
8400
8401
8402
8403
8404cat >>confdefs.h <<_ACEOF
8405#define LT_OBJDIR "$lt_cv_objdir/"
8406_ACEOF
8407
8408
8409
8410
8411case $host_os in
8412aix3*)
8413  # AIX sometimes has problems with the GCC collect2 program.  For some
8414  # reason, if we set the COLLECT_NAMES environment variable, the problems
8415  # vanish in a puff of smoke.
8416  if test "X${COLLECT_NAMES+set}" != Xset; then
8417    COLLECT_NAMES=
8418    export COLLECT_NAMES
8419  fi
8420  ;;
8421esac
8422
8423# Global variables:
8424ofile=libtool
8425can_build_shared=yes
8426
8427# All known linkers require a `.a' archive for static linking (except MSVC,
8428# which needs '.lib').
8429libext=a
8430
8431with_gnu_ld="$lt_cv_prog_gnu_ld"
8432
8433old_CC="$CC"
8434old_CFLAGS="$CFLAGS"
8435
8436# Set sane defaults for various variables
8437test -z "$CC" && CC=cc
8438test -z "$LTCC" && LTCC=$CC
8439test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8440test -z "$LD" && LD=ld
8441test -z "$ac_objext" && ac_objext=o
8442
8443for cc_temp in $compiler""; do
8444  case $cc_temp in
8445    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8446    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8447    \-*) ;;
8448    *) break;;
8449  esac
8450done
8451cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8452
8453
8454# Only perform the check for file, if the check method requires it
8455test -z "$MAGIC_CMD" && MAGIC_CMD=file
8456case $deplibs_check_method in
8457file_magic*)
8458  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8459    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8460$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8461if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8462  $as_echo_n "(cached) " >&6
8463else
8464  case $MAGIC_CMD in
8465[\\/*] |  ?:[\\/]*)
8466  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8467  ;;
8468*)
8469  lt_save_MAGIC_CMD="$MAGIC_CMD"
8470  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8471  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8472  for ac_dir in $ac_dummy; do
8473    IFS="$lt_save_ifs"
8474    test -z "$ac_dir" && ac_dir=.
8475    if test -f $ac_dir/${ac_tool_prefix}file; then
8476      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8477      if test -n "$file_magic_test_file"; then
8478	case $deplibs_check_method in
8479	"file_magic "*)
8480	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8481	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8482	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8483	    $EGREP "$file_magic_regex" > /dev/null; then
8484	    :
8485	  else
8486	    cat <<_LT_EOF 1>&2
8487
8488*** Warning: the command libtool uses to detect shared libraries,
8489*** $file_magic_cmd, produces output that libtool cannot recognize.
8490*** The result is that libtool may fail to recognize shared libraries
8491*** as such.  This will affect the creation of libtool libraries that
8492*** depend on shared libraries, but programs linked with such libtool
8493*** libraries will work regardless of this problem.  Nevertheless, you
8494*** may want to report the problem to your system manager and/or to
8495*** bug-libtool@gnu.org
8496
8497_LT_EOF
8498	  fi ;;
8499	esac
8500      fi
8501      break
8502    fi
8503  done
8504  IFS="$lt_save_ifs"
8505  MAGIC_CMD="$lt_save_MAGIC_CMD"
8506  ;;
8507esac
8508fi
8509
8510MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8511if test -n "$MAGIC_CMD"; then
8512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8513$as_echo "$MAGIC_CMD" >&6; }
8514else
8515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8516$as_echo "no" >&6; }
8517fi
8518
8519
8520
8521
8522
8523if test -z "$lt_cv_path_MAGIC_CMD"; then
8524  if test -n "$ac_tool_prefix"; then
8525    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8526$as_echo_n "checking for file... " >&6; }
8527if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8528  $as_echo_n "(cached) " >&6
8529else
8530  case $MAGIC_CMD in
8531[\\/*] |  ?:[\\/]*)
8532  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8533  ;;
8534*)
8535  lt_save_MAGIC_CMD="$MAGIC_CMD"
8536  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8537  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8538  for ac_dir in $ac_dummy; do
8539    IFS="$lt_save_ifs"
8540    test -z "$ac_dir" && ac_dir=.
8541    if test -f $ac_dir/file; then
8542      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8543      if test -n "$file_magic_test_file"; then
8544	case $deplibs_check_method in
8545	"file_magic "*)
8546	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8547	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8548	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8549	    $EGREP "$file_magic_regex" > /dev/null; then
8550	    :
8551	  else
8552	    cat <<_LT_EOF 1>&2
8553
8554*** Warning: the command libtool uses to detect shared libraries,
8555*** $file_magic_cmd, produces output that libtool cannot recognize.
8556*** The result is that libtool may fail to recognize shared libraries
8557*** as such.  This will affect the creation of libtool libraries that
8558*** depend on shared libraries, but programs linked with such libtool
8559*** libraries will work regardless of this problem.  Nevertheless, you
8560*** may want to report the problem to your system manager and/or to
8561*** bug-libtool@gnu.org
8562
8563_LT_EOF
8564	  fi ;;
8565	esac
8566      fi
8567      break
8568    fi
8569  done
8570  IFS="$lt_save_ifs"
8571  MAGIC_CMD="$lt_save_MAGIC_CMD"
8572  ;;
8573esac
8574fi
8575
8576MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8577if test -n "$MAGIC_CMD"; then
8578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8579$as_echo "$MAGIC_CMD" >&6; }
8580else
8581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8582$as_echo "no" >&6; }
8583fi
8584
8585
8586  else
8587    MAGIC_CMD=:
8588  fi
8589fi
8590
8591  fi
8592  ;;
8593esac
8594
8595# Use C for the default configuration in the libtool script
8596
8597lt_save_CC="$CC"
8598ac_ext=c
8599ac_cpp='$CPP $CPPFLAGS'
8600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8602ac_compiler_gnu=$ac_cv_c_compiler_gnu
8603
8604
8605# Source file extension for C test sources.
8606ac_ext=c
8607
8608# Object file extension for compiled C test sources.
8609objext=o
8610objext=$objext
8611
8612# Code to be used in simple compile tests
8613lt_simple_compile_test_code="int some_variable = 0;"
8614
8615# Code to be used in simple link tests
8616lt_simple_link_test_code='int main(){return(0);}'
8617
8618
8619
8620
8621
8622
8623
8624# If no C compiler was specified, use CC.
8625LTCC=${LTCC-"$CC"}
8626
8627# If no C compiler flags were specified, use CFLAGS.
8628LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8629
8630# Allow CC to be a program name with arguments.
8631compiler=$CC
8632
8633# Save the default compiler, since it gets overwritten when the other
8634# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8635compiler_DEFAULT=$CC
8636
8637# save warnings/boilerplate of simple test code
8638ac_outfile=conftest.$ac_objext
8639echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8640eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8641_lt_compiler_boilerplate=`cat conftest.err`
8642$RM conftest*
8643
8644ac_outfile=conftest.$ac_objext
8645echo "$lt_simple_link_test_code" >conftest.$ac_ext
8646eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8647_lt_linker_boilerplate=`cat conftest.err`
8648$RM -r conftest*
8649
8650
8651## CAVEAT EMPTOR:
8652## There is no encapsulation within the following macros, do not change
8653## the running order or otherwise move them around unless you know exactly
8654## what you are doing...
8655if test -n "$compiler"; then
8656
8657lt_prog_compiler_no_builtin_flag=
8658
8659if test "$GCC" = yes; then
8660  case $cc_basename in
8661  nvcc*)
8662    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8663  *)
8664    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8665  esac
8666
8667  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8668$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8669if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8670  $as_echo_n "(cached) " >&6
8671else
8672  lt_cv_prog_compiler_rtti_exceptions=no
8673   ac_outfile=conftest.$ac_objext
8674   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8675   lt_compiler_flag="-fno-rtti -fno-exceptions"
8676   # Insert the option either (1) after the last *FLAGS variable, or
8677   # (2) before a word containing "conftest.", or (3) at the end.
8678   # Note that $ac_compile itself does not contain backslashes and begins
8679   # with a dollar sign (not a hyphen), so the echo should work correctly.
8680   # The option is referenced via a variable to avoid confusing sed.
8681   lt_compile=`echo "$ac_compile" | $SED \
8682   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8683   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8684   -e 's:$: $lt_compiler_flag:'`
8685   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8686   (eval "$lt_compile" 2>conftest.err)
8687   ac_status=$?
8688   cat conftest.err >&5
8689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690   if (exit $ac_status) && test -s "$ac_outfile"; then
8691     # The compiler can only warn and ignore the option if not recognized
8692     # So say no if there are warnings other than the usual output.
8693     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8694     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8695     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8696       lt_cv_prog_compiler_rtti_exceptions=yes
8697     fi
8698   fi
8699   $RM conftest*
8700
8701fi
8702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8703$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8704
8705if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8706    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8707else
8708    :
8709fi
8710
8711fi
8712
8713
8714
8715
8716
8717
8718  lt_prog_compiler_wl=
8719lt_prog_compiler_pic=
8720lt_prog_compiler_static=
8721
8722
8723  if test "$GCC" = yes; then
8724    lt_prog_compiler_wl='-Wl,'
8725    lt_prog_compiler_static='-static'
8726
8727    case $host_os in
8728      aix*)
8729      # All AIX code is PIC.
8730      if test "$host_cpu" = ia64; then
8731	# AIX 5 now supports IA64 processor
8732	lt_prog_compiler_static='-Bstatic'
8733      fi
8734      ;;
8735
8736    amigaos*)
8737      case $host_cpu in
8738      powerpc)
8739            # see comment about AmigaOS4 .so support
8740            lt_prog_compiler_pic='-fPIC'
8741        ;;
8742      m68k)
8743            # FIXME: we need at least 68020 code to build shared libraries, but
8744            # adding the `-m68020' flag to GCC prevents building anything better,
8745            # like `-m68040'.
8746            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8747        ;;
8748      esac
8749      ;;
8750
8751    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8752      # PIC is the default for these OSes.
8753      ;;
8754
8755    mingw* | cygwin* | pw32* | os2* | cegcc*)
8756      # This hack is so that the source file can tell whether it is being
8757      # built for inclusion in a dll (and should export symbols for example).
8758      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8759      # (--disable-auto-import) libraries
8760      lt_prog_compiler_pic='-DDLL_EXPORT'
8761      ;;
8762
8763    darwin* | rhapsody*)
8764      # PIC is the default on this platform
8765      # Common symbols not allowed in MH_DYLIB files
8766      lt_prog_compiler_pic='-fno-common'
8767      ;;
8768
8769    haiku*)
8770      # PIC is the default for Haiku.
8771      # The "-static" flag exists, but is broken.
8772      lt_prog_compiler_static=
8773      ;;
8774
8775    hpux*)
8776      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8777      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8778      # sets the default TLS model and affects inlining.
8779      case $host_cpu in
8780      hppa*64*)
8781	# +Z the default
8782	;;
8783      *)
8784	lt_prog_compiler_pic='-fPIC'
8785	;;
8786      esac
8787      ;;
8788
8789    interix[3-9]*)
8790      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8791      # Instead, we relocate shared libraries at runtime.
8792      ;;
8793
8794    msdosdjgpp*)
8795      # Just because we use GCC doesn't mean we suddenly get shared libraries
8796      # on systems that don't support them.
8797      lt_prog_compiler_can_build_shared=no
8798      enable_shared=no
8799      ;;
8800
8801    *nto* | *qnx*)
8802      # QNX uses GNU C++, but need to define -shared option too, otherwise
8803      # it will coredump.
8804      lt_prog_compiler_pic='-fPIC -shared'
8805      ;;
8806
8807    sysv4*MP*)
8808      if test -d /usr/nec; then
8809	lt_prog_compiler_pic=-Kconform_pic
8810      fi
8811      ;;
8812
8813    *)
8814      lt_prog_compiler_pic='-fPIC'
8815      ;;
8816    esac
8817
8818    case $cc_basename in
8819    nvcc*) # Cuda Compiler Driver 2.2
8820      lt_prog_compiler_wl='-Xlinker '
8821      if test -n "$lt_prog_compiler_pic"; then
8822        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8823      fi
8824      ;;
8825    esac
8826  else
8827    # PORTME Check for flag to pass linker flags through the system compiler.
8828    case $host_os in
8829    aix*)
8830      lt_prog_compiler_wl='-Wl,'
8831      if test "$host_cpu" = ia64; then
8832	# AIX 5 now supports IA64 processor
8833	lt_prog_compiler_static='-Bstatic'
8834      else
8835	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8836      fi
8837      ;;
8838
8839    mingw* | cygwin* | pw32* | os2* | cegcc*)
8840      # This hack is so that the source file can tell whether it is being
8841      # built for inclusion in a dll (and should export symbols for example).
8842      lt_prog_compiler_pic='-DDLL_EXPORT'
8843      ;;
8844
8845    hpux9* | hpux10* | hpux11*)
8846      lt_prog_compiler_wl='-Wl,'
8847      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8848      # not for PA HP-UX.
8849      case $host_cpu in
8850      hppa*64*|ia64*)
8851	# +Z the default
8852	;;
8853      *)
8854	lt_prog_compiler_pic='+Z'
8855	;;
8856      esac
8857      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8858      lt_prog_compiler_static='${wl}-a ${wl}archive'
8859      ;;
8860
8861    irix5* | irix6* | nonstopux*)
8862      lt_prog_compiler_wl='-Wl,'
8863      # PIC (with -KPIC) is the default.
8864      lt_prog_compiler_static='-non_shared'
8865      ;;
8866
8867    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8868      case $cc_basename in
8869      # old Intel for x86_64 which still supported -KPIC.
8870      ecc*)
8871	lt_prog_compiler_wl='-Wl,'
8872	lt_prog_compiler_pic='-KPIC'
8873	lt_prog_compiler_static='-static'
8874        ;;
8875      # icc used to be incompatible with GCC.
8876      # ICC 10 doesn't accept -KPIC any more.
8877      icc* | ifort*)
8878	lt_prog_compiler_wl='-Wl,'
8879	lt_prog_compiler_pic='-fPIC'
8880	lt_prog_compiler_static='-static'
8881        ;;
8882      # Lahey Fortran 8.1.
8883      lf95*)
8884	lt_prog_compiler_wl='-Wl,'
8885	lt_prog_compiler_pic='--shared'
8886	lt_prog_compiler_static='--static'
8887	;;
8888      nagfor*)
8889	# NAG Fortran compiler
8890	lt_prog_compiler_wl='-Wl,-Wl,,'
8891	lt_prog_compiler_pic='-PIC'
8892	lt_prog_compiler_static='-Bstatic'
8893	;;
8894      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8895        # Portland Group compilers (*not* the Pentium gcc compiler,
8896	# which looks to be a dead project)
8897	lt_prog_compiler_wl='-Wl,'
8898	lt_prog_compiler_pic='-fpic'
8899	lt_prog_compiler_static='-Bstatic'
8900        ;;
8901      ccc*)
8902        lt_prog_compiler_wl='-Wl,'
8903        # All Alpha code is PIC.
8904        lt_prog_compiler_static='-non_shared'
8905        ;;
8906      xl* | bgxl* | bgf* | mpixl*)
8907	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8908	lt_prog_compiler_wl='-Wl,'
8909	lt_prog_compiler_pic='-qpic'
8910	lt_prog_compiler_static='-qstaticlink'
8911	;;
8912      *)
8913	case `$CC -V 2>&1 | sed 5q` in
8914	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8915	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8916	  lt_prog_compiler_pic='-KPIC'
8917	  lt_prog_compiler_static='-Bstatic'
8918	  lt_prog_compiler_wl=''
8919	  ;;
8920	*Sun\ F* | *Sun*Fortran*)
8921	  lt_prog_compiler_pic='-KPIC'
8922	  lt_prog_compiler_static='-Bstatic'
8923	  lt_prog_compiler_wl='-Qoption ld '
8924	  ;;
8925	*Sun\ C*)
8926	  # Sun C 5.9
8927	  lt_prog_compiler_pic='-KPIC'
8928	  lt_prog_compiler_static='-Bstatic'
8929	  lt_prog_compiler_wl='-Wl,'
8930	  ;;
8931        *Intel*\ [CF]*Compiler*)
8932	  lt_prog_compiler_wl='-Wl,'
8933	  lt_prog_compiler_pic='-fPIC'
8934	  lt_prog_compiler_static='-static'
8935	  ;;
8936	*Portland\ Group*)
8937	  lt_prog_compiler_wl='-Wl,'
8938	  lt_prog_compiler_pic='-fpic'
8939	  lt_prog_compiler_static='-Bstatic'
8940	  ;;
8941	esac
8942	;;
8943      esac
8944      ;;
8945
8946    newsos6)
8947      lt_prog_compiler_pic='-KPIC'
8948      lt_prog_compiler_static='-Bstatic'
8949      ;;
8950
8951    *nto* | *qnx*)
8952      # QNX uses GNU C++, but need to define -shared option too, otherwise
8953      # it will coredump.
8954      lt_prog_compiler_pic='-fPIC -shared'
8955      ;;
8956
8957    osf3* | osf4* | osf5*)
8958      lt_prog_compiler_wl='-Wl,'
8959      # All OSF/1 code is PIC.
8960      lt_prog_compiler_static='-non_shared'
8961      ;;
8962
8963    rdos*)
8964      lt_prog_compiler_static='-non_shared'
8965      ;;
8966
8967    solaris*)
8968      lt_prog_compiler_pic='-KPIC'
8969      lt_prog_compiler_static='-Bstatic'
8970      case $cc_basename in
8971      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8972	lt_prog_compiler_wl='-Qoption ld ';;
8973      *)
8974	lt_prog_compiler_wl='-Wl,';;
8975      esac
8976      ;;
8977
8978    sunos4*)
8979      lt_prog_compiler_wl='-Qoption ld '
8980      lt_prog_compiler_pic='-PIC'
8981      lt_prog_compiler_static='-Bstatic'
8982      ;;
8983
8984    sysv4 | sysv4.2uw2* | sysv4.3*)
8985      lt_prog_compiler_wl='-Wl,'
8986      lt_prog_compiler_pic='-KPIC'
8987      lt_prog_compiler_static='-Bstatic'
8988      ;;
8989
8990    sysv4*MP*)
8991      if test -d /usr/nec ;then
8992	lt_prog_compiler_pic='-Kconform_pic'
8993	lt_prog_compiler_static='-Bstatic'
8994      fi
8995      ;;
8996
8997    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8998      lt_prog_compiler_wl='-Wl,'
8999      lt_prog_compiler_pic='-KPIC'
9000      lt_prog_compiler_static='-Bstatic'
9001      ;;
9002
9003    unicos*)
9004      lt_prog_compiler_wl='-Wl,'
9005      lt_prog_compiler_can_build_shared=no
9006      ;;
9007
9008    uts4*)
9009      lt_prog_compiler_pic='-pic'
9010      lt_prog_compiler_static='-Bstatic'
9011      ;;
9012
9013    *)
9014      lt_prog_compiler_can_build_shared=no
9015      ;;
9016    esac
9017  fi
9018
9019case $host_os in
9020  # For platforms which do not support PIC, -DPIC is meaningless:
9021  *djgpp*)
9022    lt_prog_compiler_pic=
9023    ;;
9024  *)
9025    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9026    ;;
9027esac
9028
9029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9030$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9031if test "${lt_cv_prog_compiler_pic+set}" = set; then :
9032  $as_echo_n "(cached) " >&6
9033else
9034  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9035fi
9036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9037$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9038lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9039
9040#
9041# Check to make sure the PIC flag actually works.
9042#
9043if test -n "$lt_prog_compiler_pic"; then
9044  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9045$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9046if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9047  $as_echo_n "(cached) " >&6
9048else
9049  lt_cv_prog_compiler_pic_works=no
9050   ac_outfile=conftest.$ac_objext
9051   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9052   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9053   # Insert the option either (1) after the last *FLAGS variable, or
9054   # (2) before a word containing "conftest.", or (3) at the end.
9055   # Note that $ac_compile itself does not contain backslashes and begins
9056   # with a dollar sign (not a hyphen), so the echo should work correctly.
9057   # The option is referenced via a variable to avoid confusing sed.
9058   lt_compile=`echo "$ac_compile" | $SED \
9059   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9060   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9061   -e 's:$: $lt_compiler_flag:'`
9062   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9063   (eval "$lt_compile" 2>conftest.err)
9064   ac_status=$?
9065   cat conftest.err >&5
9066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067   if (exit $ac_status) && test -s "$ac_outfile"; then
9068     # The compiler can only warn and ignore the option if not recognized
9069     # So say no if there are warnings other than the usual output.
9070     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9071     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9072     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9073       lt_cv_prog_compiler_pic_works=yes
9074     fi
9075   fi
9076   $RM conftest*
9077
9078fi
9079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9080$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9081
9082if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9083    case $lt_prog_compiler_pic in
9084     "" | " "*) ;;
9085     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9086     esac
9087else
9088    lt_prog_compiler_pic=
9089     lt_prog_compiler_can_build_shared=no
9090fi
9091
9092fi
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104#
9105# Check to make sure the static flag actually works.
9106#
9107wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9109$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9110if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9111  $as_echo_n "(cached) " >&6
9112else
9113  lt_cv_prog_compiler_static_works=no
9114   save_LDFLAGS="$LDFLAGS"
9115   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9116   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9117   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9118     # The linker can only warn and ignore the option if not recognized
9119     # So say no if there are warnings
9120     if test -s conftest.err; then
9121       # Append any errors to the config.log.
9122       cat conftest.err 1>&5
9123       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9124       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9125       if diff conftest.exp conftest.er2 >/dev/null; then
9126         lt_cv_prog_compiler_static_works=yes
9127       fi
9128     else
9129       lt_cv_prog_compiler_static_works=yes
9130     fi
9131   fi
9132   $RM -r conftest*
9133   LDFLAGS="$save_LDFLAGS"
9134
9135fi
9136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9137$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9138
9139if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9140    :
9141else
9142    lt_prog_compiler_static=
9143fi
9144
9145
9146
9147
9148
9149
9150
9151  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9152$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9153if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9154  $as_echo_n "(cached) " >&6
9155else
9156  lt_cv_prog_compiler_c_o=no
9157   $RM -r conftest 2>/dev/null
9158   mkdir conftest
9159   cd conftest
9160   mkdir out
9161   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9162
9163   lt_compiler_flag="-o out/conftest2.$ac_objext"
9164   # Insert the option either (1) after the last *FLAGS variable, or
9165   # (2) before a word containing "conftest.", or (3) at the end.
9166   # Note that $ac_compile itself does not contain backslashes and begins
9167   # with a dollar sign (not a hyphen), so the echo should work correctly.
9168   lt_compile=`echo "$ac_compile" | $SED \
9169   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9170   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9171   -e 's:$: $lt_compiler_flag:'`
9172   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9173   (eval "$lt_compile" 2>out/conftest.err)
9174   ac_status=$?
9175   cat out/conftest.err >&5
9176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9178   then
9179     # The compiler can only warn and ignore the option if not recognized
9180     # So say no if there are warnings
9181     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9182     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9183     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9184       lt_cv_prog_compiler_c_o=yes
9185     fi
9186   fi
9187   chmod u+w . 2>&5
9188   $RM conftest*
9189   # SGI C++ compiler will create directory out/ii_files/ for
9190   # template instantiation
9191   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9192   $RM out/* && rmdir out
9193   cd ..
9194   $RM -r conftest
9195   $RM conftest*
9196
9197fi
9198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9199$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9200
9201
9202
9203
9204
9205
9206  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9207$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9208if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9209  $as_echo_n "(cached) " >&6
9210else
9211  lt_cv_prog_compiler_c_o=no
9212   $RM -r conftest 2>/dev/null
9213   mkdir conftest
9214   cd conftest
9215   mkdir out
9216   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9217
9218   lt_compiler_flag="-o out/conftest2.$ac_objext"
9219   # Insert the option either (1) after the last *FLAGS variable, or
9220   # (2) before a word containing "conftest.", or (3) at the end.
9221   # Note that $ac_compile itself does not contain backslashes and begins
9222   # with a dollar sign (not a hyphen), so the echo should work correctly.
9223   lt_compile=`echo "$ac_compile" | $SED \
9224   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9225   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9226   -e 's:$: $lt_compiler_flag:'`
9227   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9228   (eval "$lt_compile" 2>out/conftest.err)
9229   ac_status=$?
9230   cat out/conftest.err >&5
9231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9233   then
9234     # The compiler can only warn and ignore the option if not recognized
9235     # So say no if there are warnings
9236     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9237     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9238     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9239       lt_cv_prog_compiler_c_o=yes
9240     fi
9241   fi
9242   chmod u+w . 2>&5
9243   $RM conftest*
9244   # SGI C++ compiler will create directory out/ii_files/ for
9245   # template instantiation
9246   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9247   $RM out/* && rmdir out
9248   cd ..
9249   $RM -r conftest
9250   $RM conftest*
9251
9252fi
9253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9254$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9255
9256
9257
9258
9259hard_links="nottested"
9260if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9261  # do not overwrite the value of need_locks provided by the user
9262  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9263$as_echo_n "checking if we can lock with hard links... " >&6; }
9264  hard_links=yes
9265  $RM conftest*
9266  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9267  touch conftest.a
9268  ln conftest.a conftest.b 2>&5 || hard_links=no
9269  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9271$as_echo "$hard_links" >&6; }
9272  if test "$hard_links" = no; then
9273    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9274$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9275    need_locks=warn
9276  fi
9277else
9278  need_locks=no
9279fi
9280
9281
9282
9283
9284
9285
9286  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9287$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9288
9289  runpath_var=
9290  allow_undefined_flag=
9291  always_export_symbols=no
9292  archive_cmds=
9293  archive_expsym_cmds=
9294  compiler_needs_object=no
9295  enable_shared_with_static_runtimes=no
9296  export_dynamic_flag_spec=
9297  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9298  hardcode_automatic=no
9299  hardcode_direct=no
9300  hardcode_direct_absolute=no
9301  hardcode_libdir_flag_spec=
9302  hardcode_libdir_separator=
9303  hardcode_minus_L=no
9304  hardcode_shlibpath_var=unsupported
9305  inherit_rpath=no
9306  link_all_deplibs=unknown
9307  module_cmds=
9308  module_expsym_cmds=
9309  old_archive_from_new_cmds=
9310  old_archive_from_expsyms_cmds=
9311  thread_safe_flag_spec=
9312  whole_archive_flag_spec=
9313  # include_expsyms should be a list of space-separated symbols to be *always*
9314  # included in the symbol list
9315  include_expsyms=
9316  # exclude_expsyms can be an extended regexp of symbols to exclude
9317  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9318  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9319  # as well as any symbol that contains `d'.
9320  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9321  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9322  # platforms (ab)use it in PIC code, but their linkers get confused if
9323  # the symbol is explicitly referenced.  Since portable code cannot
9324  # rely on this symbol name, it's probably fine to never include it in
9325  # preloaded symbol tables.
9326  # Exclude shared library initialization/finalization symbols.
9327  extract_expsyms_cmds=
9328
9329  case $host_os in
9330  cygwin* | mingw* | pw32* | cegcc*)
9331    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9332    # When not using gcc, we currently assume that we are using
9333    # Microsoft Visual C++.
9334    if test "$GCC" != yes; then
9335      with_gnu_ld=no
9336    fi
9337    ;;
9338  interix*)
9339    # we just hope/assume this is gcc and not c89 (= MSVC++)
9340    with_gnu_ld=yes
9341    ;;
9342  openbsd*)
9343    with_gnu_ld=no
9344    ;;
9345  linux* | k*bsd*-gnu | gnu*)
9346    link_all_deplibs=no
9347    ;;
9348  esac
9349
9350  ld_shlibs=yes
9351
9352  # On some targets, GNU ld is compatible enough with the native linker
9353  # that we're better off using the native interface for both.
9354  lt_use_gnu_ld_interface=no
9355  if test "$with_gnu_ld" = yes; then
9356    case $host_os in
9357      aix*)
9358	# The AIX port of GNU ld has always aspired to compatibility
9359	# with the native linker.  However, as the warning in the GNU ld
9360	# block says, versions before 2.19.5* couldn't really create working
9361	# shared libraries, regardless of the interface used.
9362	case `$LD -v 2>&1` in
9363	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9364	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9365	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9366	  *)
9367	    lt_use_gnu_ld_interface=yes
9368	    ;;
9369	esac
9370	;;
9371      *)
9372	lt_use_gnu_ld_interface=yes
9373	;;
9374    esac
9375  fi
9376
9377  if test "$lt_use_gnu_ld_interface" = yes; then
9378    # If archive_cmds runs LD, not CC, wlarc should be empty
9379    wlarc='${wl}'
9380
9381    # Set some defaults for GNU ld with shared library support. These
9382    # are reset later if shared libraries are not supported. Putting them
9383    # here allows them to be overridden if necessary.
9384    runpath_var=LD_RUN_PATH
9385    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9386    export_dynamic_flag_spec='${wl}--export-dynamic'
9387    # ancient GNU ld didn't support --whole-archive et. al.
9388    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9389      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9390    else
9391      whole_archive_flag_spec=
9392    fi
9393    supports_anon_versioning=no
9394    case `$LD -v 2>&1` in
9395      *GNU\ gold*) supports_anon_versioning=yes ;;
9396      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9397      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9398      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9399      *\ 2.11.*) ;; # other 2.11 versions
9400      *) supports_anon_versioning=yes ;;
9401    esac
9402
9403    # See if GNU ld supports shared libraries.
9404    case $host_os in
9405    aix[3-9]*)
9406      # On AIX/PPC, the GNU linker is very broken
9407      if test "$host_cpu" != ia64; then
9408	ld_shlibs=no
9409	cat <<_LT_EOF 1>&2
9410
9411*** Warning: the GNU linker, at least up to release 2.19, is reported
9412*** to be unable to reliably create shared libraries on AIX.
9413*** Therefore, libtool is disabling shared libraries support.  If you
9414*** really care for shared libraries, you may want to install binutils
9415*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9416*** You will then need to restart the configuration process.
9417
9418_LT_EOF
9419      fi
9420      ;;
9421
9422    amigaos*)
9423      case $host_cpu in
9424      powerpc)
9425            # see comment about AmigaOS4 .so support
9426            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9427            archive_expsym_cmds=''
9428        ;;
9429      m68k)
9430            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)'
9431            hardcode_libdir_flag_spec='-L$libdir'
9432            hardcode_minus_L=yes
9433        ;;
9434      esac
9435      ;;
9436
9437    beos*)
9438      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9439	allow_undefined_flag=unsupported
9440	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9441	# support --undefined.  This deserves some investigation.  FIXME
9442	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9443      else
9444	ld_shlibs=no
9445      fi
9446      ;;
9447
9448    cygwin* | mingw* | pw32* | cegcc*)
9449      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9450      # as there is no search path for DLLs.
9451      hardcode_libdir_flag_spec='-L$libdir'
9452      export_dynamic_flag_spec='${wl}--export-all-symbols'
9453      allow_undefined_flag=unsupported
9454      always_export_symbols=no
9455      enable_shared_with_static_runtimes=yes
9456      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'
9457      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9458
9459      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9460        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9461	# If the export-symbols file already is a .def file (1st line
9462	# is EXPORTS), use it as is; otherwise, prepend...
9463	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9464	  cp $export_symbols $output_objdir/$soname.def;
9465	else
9466	  echo EXPORTS > $output_objdir/$soname.def;
9467	  cat $export_symbols >> $output_objdir/$soname.def;
9468	fi~
9469	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9470      else
9471	ld_shlibs=no
9472      fi
9473      ;;
9474
9475    haiku*)
9476      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9477      link_all_deplibs=yes
9478      ;;
9479
9480    interix[3-9]*)
9481      hardcode_direct=no
9482      hardcode_shlibpath_var=no
9483      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9484      export_dynamic_flag_spec='${wl}-E'
9485      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9486      # Instead, shared libraries are loaded at an image base (0x10000000 by
9487      # default) and relocated if they conflict, which is a slow very memory
9488      # consuming and fragmenting process.  To avoid this, we pick a random,
9489      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9490      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9491      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9492      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'
9493      ;;
9494
9495    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9496      tmp_diet=no
9497      if test "$host_os" = linux-dietlibc; then
9498	case $cc_basename in
9499	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9500	esac
9501      fi
9502      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9503	 && test "$tmp_diet" = no
9504      then
9505	tmp_addflag=' $pic_flag'
9506	tmp_sharedflag='-shared'
9507	case $cc_basename,$host_cpu in
9508        pgcc*)				# Portland Group C compiler
9509	  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'
9510	  tmp_addflag=' $pic_flag'
9511	  ;;
9512	pgf77* | pgf90* | pgf95* | pgfortran*)
9513					# Portland Group f77 and f90 compilers
9514	  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'
9515	  tmp_addflag=' $pic_flag -Mnomain' ;;
9516	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9517	  tmp_addflag=' -i_dynamic' ;;
9518	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9519	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9520	ifc* | ifort*)			# Intel Fortran compiler
9521	  tmp_addflag=' -nofor_main' ;;
9522	lf95*)				# Lahey Fortran 8.1
9523	  whole_archive_flag_spec=
9524	  tmp_sharedflag='--shared' ;;
9525	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9526	  tmp_sharedflag='-qmkshrobj'
9527	  tmp_addflag= ;;
9528	nvcc*)	# Cuda Compiler Driver 2.2
9529	  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'
9530	  compiler_needs_object=yes
9531	  ;;
9532	esac
9533	case `$CC -V 2>&1 | sed 5q` in
9534	*Sun\ C*)			# Sun C 5.9
9535	  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'
9536	  compiler_needs_object=yes
9537	  tmp_sharedflag='-G' ;;
9538	*Sun\ F*)			# Sun Fortran 8.3
9539	  tmp_sharedflag='-G' ;;
9540	esac
9541	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9542
9543        if test "x$supports_anon_versioning" = xyes; then
9544          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9545	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9546	    echo "local: *; };" >> $output_objdir/$libname.ver~
9547	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9548        fi
9549
9550	case $cc_basename in
9551	xlf* | bgf* | bgxlf* | mpixlf*)
9552	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9553	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9554	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9555	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9556	  if test "x$supports_anon_versioning" = xyes; then
9557	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9558	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9559	      echo "local: *; };" >> $output_objdir/$libname.ver~
9560	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9561	  fi
9562	  ;;
9563	esac
9564      else
9565        ld_shlibs=no
9566      fi
9567      ;;
9568
9569    netbsd* | netbsdelf*-gnu)
9570      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9571	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9572	wlarc=
9573      else
9574	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9575	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9576      fi
9577      ;;
9578
9579    solaris*)
9580      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9581	ld_shlibs=no
9582	cat <<_LT_EOF 1>&2
9583
9584*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9585*** create shared libraries on Solaris systems.  Therefore, libtool
9586*** is disabling shared libraries support.  We urge you to upgrade GNU
9587*** binutils to release 2.9.1 or newer.  Another option is to modify
9588*** your PATH or compiler configuration so that the native linker is
9589*** used, and then restart.
9590
9591_LT_EOF
9592      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9593	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9594	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9595      else
9596	ld_shlibs=no
9597      fi
9598      ;;
9599
9600    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9601      case `$LD -v 2>&1` in
9602        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9603	ld_shlibs=no
9604	cat <<_LT_EOF 1>&2
9605
9606*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9607*** reliably create shared libraries on SCO systems.  Therefore, libtool
9608*** is disabling shared libraries support.  We urge you to upgrade GNU
9609*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9610*** your PATH or compiler configuration so that the native linker is
9611*** used, and then restart.
9612
9613_LT_EOF
9614	;;
9615	*)
9616	  # For security reasons, it is highly recommended that you always
9617	  # use absolute paths for naming shared libraries, and exclude the
9618	  # DT_RUNPATH tag from executables and libraries.  But doing so
9619	  # requires that you compile everything twice, which is a pain.
9620	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9621	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9622	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9623	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9624	  else
9625	    ld_shlibs=no
9626	  fi
9627	;;
9628      esac
9629      ;;
9630
9631    sunos4*)
9632      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9633      wlarc=
9634      hardcode_direct=yes
9635      hardcode_shlibpath_var=no
9636      ;;
9637
9638    *)
9639      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9640	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9641	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9642      else
9643	ld_shlibs=no
9644      fi
9645      ;;
9646    esac
9647
9648    if test "$ld_shlibs" = no; then
9649      runpath_var=
9650      hardcode_libdir_flag_spec=
9651      export_dynamic_flag_spec=
9652      whole_archive_flag_spec=
9653    fi
9654  else
9655    # PORTME fill in a description of your system's linker (not GNU ld)
9656    case $host_os in
9657    aix3*)
9658      allow_undefined_flag=unsupported
9659      always_export_symbols=yes
9660      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'
9661      # Note: this linker hardcodes the directories in LIBPATH if there
9662      # are no directories specified by -L.
9663      hardcode_minus_L=yes
9664      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9665	# Neither direct hardcoding nor static linking is supported with a
9666	# broken collect2.
9667	hardcode_direct=unsupported
9668      fi
9669      ;;
9670
9671    aix[4-9]*)
9672      if test "$host_cpu" = ia64; then
9673	# On IA64, the linker does run time linking by default, so we don't
9674	# have to do anything special.
9675	aix_use_runtimelinking=no
9676	exp_sym_flag='-Bexport'
9677	no_entry_flag=""
9678      else
9679	# If we're using GNU nm, then we don't want the "-C" option.
9680	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9681	# Also, AIX nm treats weak defined symbols like other global
9682	# defined symbols, whereas GNU nm marks them as "W".
9683	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9684	  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'
9685	else
9686	  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'
9687	fi
9688	aix_use_runtimelinking=no
9689
9690	# Test if we are trying to use run time linking or normal
9691	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9692	# need to do runtime linking.
9693	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9694	  for ld_flag in $LDFLAGS; do
9695	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9696	    aix_use_runtimelinking=yes
9697	    break
9698	  fi
9699	  done
9700	  ;;
9701	esac
9702
9703	exp_sym_flag='-bexport'
9704	no_entry_flag='-bnoentry'
9705      fi
9706
9707      # When large executables or shared objects are built, AIX ld can
9708      # have problems creating the table of contents.  If linking a library
9709      # or program results in "error TOC overflow" add -mminimal-toc to
9710      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9711      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9712
9713      archive_cmds=''
9714      hardcode_direct=yes
9715      hardcode_direct_absolute=yes
9716      hardcode_libdir_separator=':'
9717      link_all_deplibs=yes
9718      file_list_spec='${wl}-f,'
9719
9720      if test "$GCC" = yes; then
9721	case $host_os in aix4.[012]|aix4.[012].*)
9722	# We only want to do this on AIX 4.2 and lower, the check
9723	# below for broken collect2 doesn't work under 4.3+
9724	  collect2name=`${CC} -print-prog-name=collect2`
9725	  if test -f "$collect2name" &&
9726	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9727	  then
9728	  # We have reworked collect2
9729	  :
9730	  else
9731	  # We have old collect2
9732	  hardcode_direct=unsupported
9733	  # It fails to find uninstalled libraries when the uninstalled
9734	  # path is not listed in the libpath.  Setting hardcode_minus_L
9735	  # to unsupported forces relinking
9736	  hardcode_minus_L=yes
9737	  hardcode_libdir_flag_spec='-L$libdir'
9738	  hardcode_libdir_separator=
9739	  fi
9740	  ;;
9741	esac
9742	shared_flag='-shared'
9743	if test "$aix_use_runtimelinking" = yes; then
9744	  shared_flag="$shared_flag "'${wl}-G'
9745	fi
9746	link_all_deplibs=no
9747      else
9748	# not using gcc
9749	if test "$host_cpu" = ia64; then
9750	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9751	# chokes on -Wl,-G. The following line is correct:
9752	  shared_flag='-G'
9753	else
9754	  if test "$aix_use_runtimelinking" = yes; then
9755	    shared_flag='${wl}-G'
9756	  else
9757	    shared_flag='${wl}-bM:SRE'
9758	  fi
9759	fi
9760      fi
9761
9762      export_dynamic_flag_spec='${wl}-bexpall'
9763      # It seems that -bexpall does not export symbols beginning with
9764      # underscore (_), so it is better to generate a list of symbols to export.
9765      always_export_symbols=yes
9766      if test "$aix_use_runtimelinking" = yes; then
9767	# Warning - without using the other runtime loading flags (-brtl),
9768	# -berok will link without error, but may produce a broken library.
9769	allow_undefined_flag='-berok'
9770        # Determine the default libpath from the value encoded in an
9771        # empty executable.
9772        if test "${lt_cv_aix_libpath+set}" = set; then
9773  aix_libpath=$lt_cv_aix_libpath
9774else
9775  if test "${lt_cv_aix_libpath_+set}" = set; then :
9776  $as_echo_n "(cached) " >&6
9777else
9778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9779/* end confdefs.h.  */
9780
9781int
9782main ()
9783{
9784
9785  ;
9786  return 0;
9787}
9788_ACEOF
9789if ac_fn_c_try_link "$LINENO"; then :
9790
9791  lt_aix_libpath_sed='
9792      /Import File Strings/,/^$/ {
9793	  /^0/ {
9794	      s/^0  *\([^ ]*\) *$/\1/
9795	      p
9796	  }
9797      }'
9798  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9799  # Check for a 64-bit object if we didn't find anything.
9800  if test -z "$lt_cv_aix_libpath_"; then
9801    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9802  fi
9803fi
9804rm -f core conftest.err conftest.$ac_objext \
9805    conftest$ac_exeext conftest.$ac_ext
9806  if test -z "$lt_cv_aix_libpath_"; then
9807    lt_cv_aix_libpath_="/usr/lib:/lib"
9808  fi
9809
9810fi
9811
9812  aix_libpath=$lt_cv_aix_libpath_
9813fi
9814
9815        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9816        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"
9817      else
9818	if test "$host_cpu" = ia64; then
9819	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9820	  allow_undefined_flag="-z nodefs"
9821	  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"
9822	else
9823	 # Determine the default libpath from the value encoded in an
9824	 # empty executable.
9825	 if test "${lt_cv_aix_libpath+set}" = set; then
9826  aix_libpath=$lt_cv_aix_libpath
9827else
9828  if test "${lt_cv_aix_libpath_+set}" = set; then :
9829  $as_echo_n "(cached) " >&6
9830else
9831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9832/* end confdefs.h.  */
9833
9834int
9835main ()
9836{
9837
9838  ;
9839  return 0;
9840}
9841_ACEOF
9842if ac_fn_c_try_link "$LINENO"; then :
9843
9844  lt_aix_libpath_sed='
9845      /Import File Strings/,/^$/ {
9846	  /^0/ {
9847	      s/^0  *\([^ ]*\) *$/\1/
9848	      p
9849	  }
9850      }'
9851  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9852  # Check for a 64-bit object if we didn't find anything.
9853  if test -z "$lt_cv_aix_libpath_"; then
9854    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9855  fi
9856fi
9857rm -f core conftest.err conftest.$ac_objext \
9858    conftest$ac_exeext conftest.$ac_ext
9859  if test -z "$lt_cv_aix_libpath_"; then
9860    lt_cv_aix_libpath_="/usr/lib:/lib"
9861  fi
9862
9863fi
9864
9865  aix_libpath=$lt_cv_aix_libpath_
9866fi
9867
9868	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9869	  # Warning - without using the other run time loading flags,
9870	  # -berok will link without error, but may produce a broken library.
9871	  no_undefined_flag=' ${wl}-bernotok'
9872	  allow_undefined_flag=' ${wl}-berok'
9873	  if test "$with_gnu_ld" = yes; then
9874	    # We only use this code for GNU lds that support --whole-archive.
9875	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9876	  else
9877	    # Exported symbols can be pulled into shared objects from archives
9878	    whole_archive_flag_spec='$convenience'
9879	  fi
9880	  archive_cmds_need_lc=yes
9881	  # This is similar to how AIX traditionally builds its shared libraries.
9882	  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'
9883	fi
9884      fi
9885      ;;
9886
9887    amigaos*)
9888      case $host_cpu in
9889      powerpc)
9890            # see comment about AmigaOS4 .so support
9891            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9892            archive_expsym_cmds=''
9893        ;;
9894      m68k)
9895            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)'
9896            hardcode_libdir_flag_spec='-L$libdir'
9897            hardcode_minus_L=yes
9898        ;;
9899      esac
9900      ;;
9901
9902    bsdi[45]*)
9903      export_dynamic_flag_spec=-rdynamic
9904      ;;
9905
9906    cygwin* | mingw* | pw32* | cegcc*)
9907      # When not using gcc, we currently assume that we are using
9908      # Microsoft Visual C++.
9909      # hardcode_libdir_flag_spec is actually meaningless, as there is
9910      # no search path for DLLs.
9911      case $cc_basename in
9912      cl*)
9913	# Native MSVC
9914	hardcode_libdir_flag_spec=' '
9915	allow_undefined_flag=unsupported
9916	always_export_symbols=yes
9917	file_list_spec='@'
9918	# Tell ltmain to make .lib files, not .a files.
9919	libext=lib
9920	# Tell ltmain to make .dll files, not .so files.
9921	shrext_cmds=".dll"
9922	# FIXME: Setting linknames here is a bad hack.
9923	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9924	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9925	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9926	  else
9927	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9928	  fi~
9929	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9930	  linknames='
9931	# The linker will not automatically build a static lib if we build a DLL.
9932	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9933	enable_shared_with_static_runtimes=yes
9934	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9935	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9936	# Don't use ranlib
9937	old_postinstall_cmds='chmod 644 $oldlib'
9938	postlink_cmds='lt_outputfile="@OUTPUT@"~
9939	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9940	  case $lt_outputfile in
9941	    *.exe|*.EXE) ;;
9942	    *)
9943	      lt_outputfile="$lt_outputfile.exe"
9944	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9945	      ;;
9946	  esac~
9947	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9948	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9949	    $RM "$lt_outputfile.manifest";
9950	  fi'
9951	;;
9952      *)
9953	# Assume MSVC wrapper
9954	hardcode_libdir_flag_spec=' '
9955	allow_undefined_flag=unsupported
9956	# Tell ltmain to make .lib files, not .a files.
9957	libext=lib
9958	# Tell ltmain to make .dll files, not .so files.
9959	shrext_cmds=".dll"
9960	# FIXME: Setting linknames here is a bad hack.
9961	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9962	# The linker will automatically build a .lib file if we build a DLL.
9963	old_archive_from_new_cmds='true'
9964	# FIXME: Should let the user specify the lib program.
9965	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9966	enable_shared_with_static_runtimes=yes
9967	;;
9968      esac
9969      ;;
9970
9971    darwin* | rhapsody*)
9972
9973
9974  archive_cmds_need_lc=no
9975  hardcode_direct=no
9976  hardcode_automatic=yes
9977  hardcode_shlibpath_var=unsupported
9978  if test "$lt_cv_ld_force_load" = "yes"; then
9979    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\"`'
9980
9981  else
9982    whole_archive_flag_spec=''
9983  fi
9984  link_all_deplibs=yes
9985  allow_undefined_flag="$_lt_dar_allow_undefined"
9986  case $cc_basename in
9987     ifort*) _lt_dar_can_shared=yes ;;
9988     *) _lt_dar_can_shared=$GCC ;;
9989  esac
9990  if test "$_lt_dar_can_shared" = "yes"; then
9991    output_verbose_link_cmd=func_echo_all
9992    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9993    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9994    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}"
9995    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}"
9996
9997  else
9998  ld_shlibs=no
9999  fi
10000
10001      ;;
10002
10003    dgux*)
10004      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10005      hardcode_libdir_flag_spec='-L$libdir'
10006      hardcode_shlibpath_var=no
10007      ;;
10008
10009    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10010    # support.  Future versions do this automatically, but an explicit c++rt0.o
10011    # does not break anything, and helps significantly (at the cost of a little
10012    # extra space).
10013    freebsd2.2*)
10014      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10015      hardcode_libdir_flag_spec='-R$libdir'
10016      hardcode_direct=yes
10017      hardcode_shlibpath_var=no
10018      ;;
10019
10020    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10021    freebsd2.*)
10022      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10023      hardcode_direct=yes
10024      hardcode_minus_L=yes
10025      hardcode_shlibpath_var=no
10026      ;;
10027
10028    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10029    freebsd* | dragonfly*)
10030      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10031      hardcode_libdir_flag_spec='-R$libdir'
10032      hardcode_direct=yes
10033      hardcode_shlibpath_var=no
10034      ;;
10035
10036    hpux9*)
10037      if test "$GCC" = yes; then
10038	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'
10039      else
10040	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'
10041      fi
10042      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10043      hardcode_libdir_separator=:
10044      hardcode_direct=yes
10045
10046      # hardcode_minus_L: Not really in the search PATH,
10047      # but as the default location of the library.
10048      hardcode_minus_L=yes
10049      export_dynamic_flag_spec='${wl}-E'
10050      ;;
10051
10052    hpux10*)
10053      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10054	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10055      else
10056	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10057      fi
10058      if test "$with_gnu_ld" = no; then
10059	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10060	hardcode_libdir_separator=:
10061	hardcode_direct=yes
10062	hardcode_direct_absolute=yes
10063	export_dynamic_flag_spec='${wl}-E'
10064	# hardcode_minus_L: Not really in the search PATH,
10065	# but as the default location of the library.
10066	hardcode_minus_L=yes
10067      fi
10068      ;;
10069
10070    hpux11*)
10071      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10072	case $host_cpu in
10073	hppa*64*)
10074	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10075	  ;;
10076	ia64*)
10077	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10078	  ;;
10079	*)
10080	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10081	  ;;
10082	esac
10083      else
10084	case $host_cpu in
10085	hppa*64*)
10086	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10087	  ;;
10088	ia64*)
10089	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10090	  ;;
10091	*)
10092
10093	  # Older versions of the 11.00 compiler do not understand -b yet
10094	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10095	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10096$as_echo_n "checking if $CC understands -b... " >&6; }
10097if test "${lt_cv_prog_compiler__b+set}" = set; then :
10098  $as_echo_n "(cached) " >&6
10099else
10100  lt_cv_prog_compiler__b=no
10101   save_LDFLAGS="$LDFLAGS"
10102   LDFLAGS="$LDFLAGS -b"
10103   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10104   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10105     # The linker can only warn and ignore the option if not recognized
10106     # So say no if there are warnings
10107     if test -s conftest.err; then
10108       # Append any errors to the config.log.
10109       cat conftest.err 1>&5
10110       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10111       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10112       if diff conftest.exp conftest.er2 >/dev/null; then
10113         lt_cv_prog_compiler__b=yes
10114       fi
10115     else
10116       lt_cv_prog_compiler__b=yes
10117     fi
10118   fi
10119   $RM -r conftest*
10120   LDFLAGS="$save_LDFLAGS"
10121
10122fi
10123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10124$as_echo "$lt_cv_prog_compiler__b" >&6; }
10125
10126if test x"$lt_cv_prog_compiler__b" = xyes; then
10127    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10128else
10129    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10130fi
10131
10132	  ;;
10133	esac
10134      fi
10135      if test "$with_gnu_ld" = no; then
10136	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10137	hardcode_libdir_separator=:
10138
10139	case $host_cpu in
10140	hppa*64*|ia64*)
10141	  hardcode_direct=no
10142	  hardcode_shlibpath_var=no
10143	  ;;
10144	*)
10145	  hardcode_direct=yes
10146	  hardcode_direct_absolute=yes
10147	  export_dynamic_flag_spec='${wl}-E'
10148
10149	  # hardcode_minus_L: Not really in the search PATH,
10150	  # but as the default location of the library.
10151	  hardcode_minus_L=yes
10152	  ;;
10153	esac
10154      fi
10155      ;;
10156
10157    irix5* | irix6* | nonstopux*)
10158      if test "$GCC" = yes; then
10159	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'
10160	# Try to use the -exported_symbol ld option, if it does not
10161	# work, assume that -exports_file does not work either and
10162	# implicitly export all symbols.
10163	# This should be the same for all languages, so no per-tag cache variable.
10164	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10165$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10166if test "${lt_cv_irix_exported_symbol+set}" = set; then :
10167  $as_echo_n "(cached) " >&6
10168else
10169  save_LDFLAGS="$LDFLAGS"
10170	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10171	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10172/* end confdefs.h.  */
10173int foo (void) { return 0; }
10174_ACEOF
10175if ac_fn_c_try_link "$LINENO"; then :
10176  lt_cv_irix_exported_symbol=yes
10177else
10178  lt_cv_irix_exported_symbol=no
10179fi
10180rm -f core conftest.err conftest.$ac_objext \
10181    conftest$ac_exeext conftest.$ac_ext
10182           LDFLAGS="$save_LDFLAGS"
10183fi
10184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10185$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10186	if test "$lt_cv_irix_exported_symbol" = yes; then
10187          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'
10188	fi
10189      else
10190	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'
10191	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'
10192      fi
10193      archive_cmds_need_lc='no'
10194      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10195      hardcode_libdir_separator=:
10196      inherit_rpath=yes
10197      link_all_deplibs=yes
10198      ;;
10199
10200    netbsd* | netbsdelf*-gnu)
10201      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10202	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10203      else
10204	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10205      fi
10206      hardcode_libdir_flag_spec='-R$libdir'
10207      hardcode_direct=yes
10208      hardcode_shlibpath_var=no
10209      ;;
10210
10211    newsos6)
10212      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10213      hardcode_direct=yes
10214      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10215      hardcode_libdir_separator=:
10216      hardcode_shlibpath_var=no
10217      ;;
10218
10219    *nto* | *qnx*)
10220      ;;
10221
10222    openbsd*)
10223      if test -f /usr/libexec/ld.so; then
10224	hardcode_direct=yes
10225	hardcode_shlibpath_var=no
10226	hardcode_direct_absolute=yes
10227	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10228	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10229	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10230	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10231	  export_dynamic_flag_spec='${wl}-E'
10232	else
10233	  case $host_os in
10234	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10235	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10236	     hardcode_libdir_flag_spec='-R$libdir'
10237	     ;;
10238	   *)
10239	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10240	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10241	     ;;
10242	  esac
10243	fi
10244      else
10245	ld_shlibs=no
10246      fi
10247      ;;
10248
10249    os2*)
10250      hardcode_libdir_flag_spec='-L$libdir'
10251      hardcode_minus_L=yes
10252      allow_undefined_flag=unsupported
10253      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'
10254      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10255      ;;
10256
10257    osf3*)
10258      if test "$GCC" = yes; then
10259	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10260	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'
10261      else
10262	allow_undefined_flag=' -expect_unresolved \*'
10263	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'
10264      fi
10265      archive_cmds_need_lc='no'
10266      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10267      hardcode_libdir_separator=:
10268      ;;
10269
10270    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10271      if test "$GCC" = yes; then
10272	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10273	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'
10274	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10275      else
10276	allow_undefined_flag=' -expect_unresolved \*'
10277	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'
10278	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~
10279	$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'
10280
10281	# Both c and cxx compiler support -rpath directly
10282	hardcode_libdir_flag_spec='-rpath $libdir'
10283      fi
10284      archive_cmds_need_lc='no'
10285      hardcode_libdir_separator=:
10286      ;;
10287
10288    solaris*)
10289      no_undefined_flag=' -z defs'
10290      if test "$GCC" = yes; then
10291	wlarc='${wl}'
10292	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10293	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10294	  $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'
10295      else
10296	case `$CC -V 2>&1` in
10297	*"Compilers 5.0"*)
10298	  wlarc=''
10299	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10300	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10301	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10302	  ;;
10303	*)
10304	  wlarc='${wl}'
10305	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10306	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10307	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10308	  ;;
10309	esac
10310      fi
10311      hardcode_libdir_flag_spec='-R$libdir'
10312      hardcode_shlibpath_var=no
10313      case $host_os in
10314      solaris2.[0-5] | solaris2.[0-5].*) ;;
10315      *)
10316	# The compiler driver will combine and reorder linker options,
10317	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10318	# but is careful enough not to reorder.
10319	# Supported since Solaris 2.6 (maybe 2.5.1?)
10320	if test "$GCC" = yes; then
10321	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10322	else
10323	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10324	fi
10325	;;
10326      esac
10327      link_all_deplibs=yes
10328      ;;
10329
10330    sunos4*)
10331      if test "x$host_vendor" = xsequent; then
10332	# Use $CC to link under sequent, because it throws in some extra .o
10333	# files that make .init and .fini sections work.
10334	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10335      else
10336	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10337      fi
10338      hardcode_libdir_flag_spec='-L$libdir'
10339      hardcode_direct=yes
10340      hardcode_minus_L=yes
10341      hardcode_shlibpath_var=no
10342      ;;
10343
10344    sysv4)
10345      case $host_vendor in
10346	sni)
10347	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10348	  hardcode_direct=yes # is this really true???
10349	;;
10350	siemens)
10351	  ## LD is ld it makes a PLAMLIB
10352	  ## CC just makes a GrossModule.
10353	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10354	  reload_cmds='$CC -r -o $output$reload_objs'
10355	  hardcode_direct=no
10356        ;;
10357	motorola)
10358	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10359	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10360	;;
10361      esac
10362      runpath_var='LD_RUN_PATH'
10363      hardcode_shlibpath_var=no
10364      ;;
10365
10366    sysv4.3*)
10367      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10368      hardcode_shlibpath_var=no
10369      export_dynamic_flag_spec='-Bexport'
10370      ;;
10371
10372    sysv4*MP*)
10373      if test -d /usr/nec; then
10374	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10375	hardcode_shlibpath_var=no
10376	runpath_var=LD_RUN_PATH
10377	hardcode_runpath_var=yes
10378	ld_shlibs=yes
10379      fi
10380      ;;
10381
10382    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10383      no_undefined_flag='${wl}-z,text'
10384      archive_cmds_need_lc=no
10385      hardcode_shlibpath_var=no
10386      runpath_var='LD_RUN_PATH'
10387
10388      if test "$GCC" = yes; then
10389	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10390	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10391      else
10392	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10393	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10394      fi
10395      ;;
10396
10397    sysv5* | sco3.2v5* | sco5v6*)
10398      # Note: We can NOT use -z defs as we might desire, because we do not
10399      # link with -lc, and that would cause any symbols used from libc to
10400      # always be unresolved, which means just about no library would
10401      # ever link correctly.  If we're not using GNU ld we use -z text
10402      # though, which does catch some bad symbols but isn't as heavy-handed
10403      # as -z defs.
10404      no_undefined_flag='${wl}-z,text'
10405      allow_undefined_flag='${wl}-z,nodefs'
10406      archive_cmds_need_lc=no
10407      hardcode_shlibpath_var=no
10408      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10409      hardcode_libdir_separator=':'
10410      link_all_deplibs=yes
10411      export_dynamic_flag_spec='${wl}-Bexport'
10412      runpath_var='LD_RUN_PATH'
10413
10414      if test "$GCC" = yes; then
10415	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10416	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10417      else
10418	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10419	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10420      fi
10421      ;;
10422
10423    uts4*)
10424      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10425      hardcode_libdir_flag_spec='-L$libdir'
10426      hardcode_shlibpath_var=no
10427      ;;
10428
10429    *)
10430      ld_shlibs=no
10431      ;;
10432    esac
10433
10434    if test x$host_vendor = xsni; then
10435      case $host in
10436      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10437	export_dynamic_flag_spec='${wl}-Blargedynsym'
10438	;;
10439      esac
10440    fi
10441  fi
10442
10443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10444$as_echo "$ld_shlibs" >&6; }
10445test "$ld_shlibs" = no && can_build_shared=no
10446
10447with_gnu_ld=$with_gnu_ld
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463#
10464# Do we need to explicitly link libc?
10465#
10466case "x$archive_cmds_need_lc" in
10467x|xyes)
10468  # Assume -lc should be added
10469  archive_cmds_need_lc=yes
10470
10471  if test "$enable_shared" = yes && test "$GCC" = yes; then
10472    case $archive_cmds in
10473    *'~'*)
10474      # FIXME: we may have to deal with multi-command sequences.
10475      ;;
10476    '$CC '*)
10477      # Test whether the compiler implicitly links with -lc since on some
10478      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10479      # to ld, don't add -lc before -lgcc.
10480      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10481$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10482if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10483  $as_echo_n "(cached) " >&6
10484else
10485  $RM conftest*
10486	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10487
10488	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10489  (eval $ac_compile) 2>&5
10490  ac_status=$?
10491  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10492  test $ac_status = 0; } 2>conftest.err; then
10493	  soname=conftest
10494	  lib=conftest
10495	  libobjs=conftest.$ac_objext
10496	  deplibs=
10497	  wl=$lt_prog_compiler_wl
10498	  pic_flag=$lt_prog_compiler_pic
10499	  compiler_flags=-v
10500	  linker_flags=-v
10501	  verstring=
10502	  output_objdir=.
10503	  libname=conftest
10504	  lt_save_allow_undefined_flag=$allow_undefined_flag
10505	  allow_undefined_flag=
10506	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10507  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10508  ac_status=$?
10509  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10510  test $ac_status = 0; }
10511	  then
10512	    lt_cv_archive_cmds_need_lc=no
10513	  else
10514	    lt_cv_archive_cmds_need_lc=yes
10515	  fi
10516	  allow_undefined_flag=$lt_save_allow_undefined_flag
10517	else
10518	  cat conftest.err 1>&5
10519	fi
10520	$RM conftest*
10521
10522fi
10523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10524$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10525      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10526      ;;
10527    esac
10528  fi
10529  ;;
10530esac
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10684$as_echo_n "checking dynamic linker characteristics... " >&6; }
10685
10686if test "$GCC" = yes; then
10687  case $host_os in
10688    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10689    *) lt_awk_arg="/^libraries:/" ;;
10690  esac
10691  case $host_os in
10692    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10693    *) lt_sed_strip_eq="s,=/,/,g" ;;
10694  esac
10695  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10696  case $lt_search_path_spec in
10697  *\;*)
10698    # if the path contains ";" then we assume it to be the separator
10699    # otherwise default to the standard path separator (i.e. ":") - it is
10700    # assumed that no part of a normal pathname contains ";" but that should
10701    # okay in the real world where ";" in dirpaths is itself problematic.
10702    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10703    ;;
10704  *)
10705    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10706    ;;
10707  esac
10708  # Ok, now we have the path, separated by spaces, we can step through it
10709  # and add multilib dir if necessary.
10710  lt_tmp_lt_search_path_spec=
10711  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10712  for lt_sys_path in $lt_search_path_spec; do
10713    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10714      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10715    else
10716      test -d "$lt_sys_path" && \
10717	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10718    fi
10719  done
10720  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10721BEGIN {RS=" "; FS="/|\n";} {
10722  lt_foo="";
10723  lt_count=0;
10724  for (lt_i = NF; lt_i > 0; lt_i--) {
10725    if ($lt_i != "" && $lt_i != ".") {
10726      if ($lt_i == "..") {
10727        lt_count++;
10728      } else {
10729        if (lt_count == 0) {
10730          lt_foo="/" $lt_i lt_foo;
10731        } else {
10732          lt_count--;
10733        }
10734      }
10735    }
10736  }
10737  if (lt_foo != "") { lt_freq[lt_foo]++; }
10738  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10739}'`
10740  # AWK program above erroneously prepends '/' to C:/dos/paths
10741  # for these hosts.
10742  case $host_os in
10743    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10744      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10745  esac
10746  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10747else
10748  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10749fi
10750library_names_spec=
10751libname_spec='lib$name'
10752soname_spec=
10753shrext_cmds=".so"
10754postinstall_cmds=
10755postuninstall_cmds=
10756finish_cmds=
10757finish_eval=
10758shlibpath_var=
10759shlibpath_overrides_runpath=unknown
10760version_type=none
10761dynamic_linker="$host_os ld.so"
10762sys_lib_dlsearch_path_spec="/lib /usr/lib"
10763need_lib_prefix=unknown
10764hardcode_into_libs=no
10765
10766# when you set need_version to no, make sure it does not cause -set_version
10767# flags to be left without arguments
10768need_version=unknown
10769
10770case $host_os in
10771aix3*)
10772  version_type=linux # correct to gnu/linux during the next big refactor
10773  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10774  shlibpath_var=LIBPATH
10775
10776  # AIX 3 has no versioning support, so we append a major version to the name.
10777  soname_spec='${libname}${release}${shared_ext}$major'
10778  ;;
10779
10780aix[4-9]*)
10781  version_type=linux # correct to gnu/linux during the next big refactor
10782  need_lib_prefix=no
10783  need_version=no
10784  hardcode_into_libs=yes
10785  if test "$host_cpu" = ia64; then
10786    # AIX 5 supports IA64
10787    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10788    shlibpath_var=LD_LIBRARY_PATH
10789  else
10790    # With GCC up to 2.95.x, collect2 would create an import file
10791    # for dependence libraries.  The import file would start with
10792    # the line `#! .'.  This would cause the generated library to
10793    # depend on `.', always an invalid library.  This was fixed in
10794    # development snapshots of GCC prior to 3.0.
10795    case $host_os in
10796      aix4 | aix4.[01] | aix4.[01].*)
10797      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10798	   echo ' yes '
10799	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10800	:
10801      else
10802	can_build_shared=no
10803      fi
10804      ;;
10805    esac
10806    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10807    # soname into executable. Probably we can add versioning support to
10808    # collect2, so additional links can be useful in future.
10809    if test "$aix_use_runtimelinking" = yes; then
10810      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10811      # instead of lib<name>.a to let people know that these are not
10812      # typical AIX shared libraries.
10813      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10814    else
10815      # We preserve .a as extension for shared libraries through AIX4.2
10816      # and later when we are not doing run time linking.
10817      library_names_spec='${libname}${release}.a $libname.a'
10818      soname_spec='${libname}${release}${shared_ext}$major'
10819    fi
10820    shlibpath_var=LIBPATH
10821  fi
10822  ;;
10823
10824amigaos*)
10825  case $host_cpu in
10826  powerpc)
10827    # Since July 2007 AmigaOS4 officially supports .so libraries.
10828    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10829    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10830    ;;
10831  m68k)
10832    library_names_spec='$libname.ixlibrary $libname.a'
10833    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10834    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'
10835    ;;
10836  esac
10837  ;;
10838
10839beos*)
10840  library_names_spec='${libname}${shared_ext}'
10841  dynamic_linker="$host_os ld.so"
10842  shlibpath_var=LIBRARY_PATH
10843  ;;
10844
10845bsdi[45]*)
10846  version_type=linux # correct to gnu/linux during the next big refactor
10847  need_version=no
10848  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10849  soname_spec='${libname}${release}${shared_ext}$major'
10850  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10851  shlibpath_var=LD_LIBRARY_PATH
10852  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10853  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10854  # the default ld.so.conf also contains /usr/contrib/lib and
10855  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10856  # libtool to hard-code these into programs
10857  ;;
10858
10859cygwin* | mingw* | pw32* | cegcc*)
10860  version_type=windows
10861  shrext_cmds=".dll"
10862  need_version=no
10863  need_lib_prefix=no
10864
10865  case $GCC,$cc_basename in
10866  yes,*)
10867    # gcc
10868    library_names_spec='$libname.dll.a'
10869    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10870    postinstall_cmds='base_file=`basename \${file}`~
10871      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10872      dldir=$destdir/`dirname \$dlpath`~
10873      test -d \$dldir || mkdir -p \$dldir~
10874      $install_prog $dir/$dlname \$dldir/$dlname~
10875      chmod a+x \$dldir/$dlname~
10876      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10877        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10878      fi'
10879    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10880      dlpath=$dir/\$dldll~
10881       $RM \$dlpath'
10882    shlibpath_overrides_runpath=yes
10883
10884    case $host_os in
10885    cygwin*)
10886      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10887      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10888
10889      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10890      ;;
10891    mingw* | cegcc*)
10892      # MinGW DLLs use traditional 'lib' prefix
10893      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10894      ;;
10895    pw32*)
10896      # pw32 DLLs use 'pw' prefix rather than 'lib'
10897      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10898      ;;
10899    esac
10900    dynamic_linker='Win32 ld.exe'
10901    ;;
10902
10903  *,cl*)
10904    # Native MSVC
10905    libname_spec='$name'
10906    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10907    library_names_spec='${libname}.dll.lib'
10908
10909    case $build_os in
10910    mingw*)
10911      sys_lib_search_path_spec=
10912      lt_save_ifs=$IFS
10913      IFS=';'
10914      for lt_path in $LIB
10915      do
10916        IFS=$lt_save_ifs
10917        # Let DOS variable expansion print the short 8.3 style file name.
10918        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10919        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10920      done
10921      IFS=$lt_save_ifs
10922      # Convert to MSYS style.
10923      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10924      ;;
10925    cygwin*)
10926      # Convert to unix form, then to dos form, then back to unix form
10927      # but this time dos style (no spaces!) so that the unix form looks
10928      # like /cygdrive/c/PROGRA~1:/cygdr...
10929      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10930      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10931      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10932      ;;
10933    *)
10934      sys_lib_search_path_spec="$LIB"
10935      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10936        # It is most probably a Windows format PATH.
10937        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10938      else
10939        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10940      fi
10941      # FIXME: find the short name or the path components, as spaces are
10942      # common. (e.g. "Program Files" -> "PROGRA~1")
10943      ;;
10944    esac
10945
10946    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10947    postinstall_cmds='base_file=`basename \${file}`~
10948      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10949      dldir=$destdir/`dirname \$dlpath`~
10950      test -d \$dldir || mkdir -p \$dldir~
10951      $install_prog $dir/$dlname \$dldir/$dlname'
10952    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10953      dlpath=$dir/\$dldll~
10954       $RM \$dlpath'
10955    shlibpath_overrides_runpath=yes
10956    dynamic_linker='Win32 link.exe'
10957    ;;
10958
10959  *)
10960    # Assume MSVC wrapper
10961    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10962    dynamic_linker='Win32 ld.exe'
10963    ;;
10964  esac
10965  # FIXME: first we should search . and the directory the executable is in
10966  shlibpath_var=PATH
10967  ;;
10968
10969darwin* | rhapsody*)
10970  dynamic_linker="$host_os dyld"
10971  version_type=darwin
10972  need_lib_prefix=no
10973  need_version=no
10974  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10975  soname_spec='${libname}${release}${major}$shared_ext'
10976  shlibpath_overrides_runpath=yes
10977  shlibpath_var=DYLD_LIBRARY_PATH
10978  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10979
10980  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10981  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10982  ;;
10983
10984dgux*)
10985  version_type=linux # correct to gnu/linux during the next big refactor
10986  need_lib_prefix=no
10987  need_version=no
10988  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10989  soname_spec='${libname}${release}${shared_ext}$major'
10990  shlibpath_var=LD_LIBRARY_PATH
10991  ;;
10992
10993freebsd* | dragonfly*)
10994  # DragonFly does not have aout.  When/if they implement a new
10995  # versioning mechanism, adjust this.
10996  if test -x /usr/bin/objformat; then
10997    objformat=`/usr/bin/objformat`
10998  else
10999    case $host_os in
11000    freebsd[23].*) objformat=aout ;;
11001    *) objformat=elf ;;
11002    esac
11003  fi
11004  version_type=freebsd-$objformat
11005  case $version_type in
11006    freebsd-elf*)
11007      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11008      need_version=no
11009      need_lib_prefix=no
11010      ;;
11011    freebsd-*)
11012      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11013      need_version=yes
11014      ;;
11015  esac
11016  shlibpath_var=LD_LIBRARY_PATH
11017  case $host_os in
11018  freebsd2.*)
11019    shlibpath_overrides_runpath=yes
11020    ;;
11021  freebsd3.[01]* | freebsdelf3.[01]*)
11022    shlibpath_overrides_runpath=yes
11023    hardcode_into_libs=yes
11024    ;;
11025  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11026  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11027    shlibpath_overrides_runpath=no
11028    hardcode_into_libs=yes
11029    ;;
11030  *) # from 4.6 on, and DragonFly
11031    shlibpath_overrides_runpath=yes
11032    hardcode_into_libs=yes
11033    ;;
11034  esac
11035  ;;
11036
11037haiku*)
11038  version_type=linux # correct to gnu/linux during the next big refactor
11039  need_lib_prefix=no
11040  need_version=no
11041  dynamic_linker="$host_os runtime_loader"
11042  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11043  soname_spec='${libname}${release}${shared_ext}$major'
11044  shlibpath_var=LIBRARY_PATH
11045  shlibpath_overrides_runpath=yes
11046  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11047  hardcode_into_libs=yes
11048  ;;
11049
11050hpux9* | hpux10* | hpux11*)
11051  # Give a soname corresponding to the major version so that dld.sl refuses to
11052  # link against other versions.
11053  version_type=sunos
11054  need_lib_prefix=no
11055  need_version=no
11056  case $host_cpu in
11057  ia64*)
11058    shrext_cmds='.so'
11059    hardcode_into_libs=yes
11060    dynamic_linker="$host_os dld.so"
11061    shlibpath_var=LD_LIBRARY_PATH
11062    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11063    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11064    soname_spec='${libname}${release}${shared_ext}$major'
11065    if test "X$HPUX_IA64_MODE" = X32; then
11066      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11067    else
11068      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11069    fi
11070    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11071    ;;
11072  hppa*64*)
11073    shrext_cmds='.sl'
11074    hardcode_into_libs=yes
11075    dynamic_linker="$host_os dld.sl"
11076    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11077    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11078    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11079    soname_spec='${libname}${release}${shared_ext}$major'
11080    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11081    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11082    ;;
11083  *)
11084    shrext_cmds='.sl'
11085    dynamic_linker="$host_os dld.sl"
11086    shlibpath_var=SHLIB_PATH
11087    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11088    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11089    soname_spec='${libname}${release}${shared_ext}$major'
11090    ;;
11091  esac
11092  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11093  postinstall_cmds='chmod 555 $lib'
11094  # or fails outright, so override atomically:
11095  install_override_mode=555
11096  ;;
11097
11098interix[3-9]*)
11099  version_type=linux # correct to gnu/linux during the next big refactor
11100  need_lib_prefix=no
11101  need_version=no
11102  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11103  soname_spec='${libname}${release}${shared_ext}$major'
11104  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11105  shlibpath_var=LD_LIBRARY_PATH
11106  shlibpath_overrides_runpath=no
11107  hardcode_into_libs=yes
11108  ;;
11109
11110irix5* | irix6* | nonstopux*)
11111  case $host_os in
11112    nonstopux*) version_type=nonstopux ;;
11113    *)
11114	if test "$lt_cv_prog_gnu_ld" = yes; then
11115		version_type=linux # correct to gnu/linux during the next big refactor
11116	else
11117		version_type=irix
11118	fi ;;
11119  esac
11120  need_lib_prefix=no
11121  need_version=no
11122  soname_spec='${libname}${release}${shared_ext}$major'
11123  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11124  case $host_os in
11125  irix5* | nonstopux*)
11126    libsuff= shlibsuff=
11127    ;;
11128  *)
11129    case $LD in # libtool.m4 will add one of these switches to LD
11130    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11131      libsuff= shlibsuff= libmagic=32-bit;;
11132    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11133      libsuff=32 shlibsuff=N32 libmagic=N32;;
11134    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11135      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11136    *) libsuff= shlibsuff= libmagic=never-match;;
11137    esac
11138    ;;
11139  esac
11140  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11141  shlibpath_overrides_runpath=no
11142  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11143  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11144  hardcode_into_libs=yes
11145  ;;
11146
11147# No shared lib support for Linux oldld, aout, or coff.
11148linux*oldld* | linux*aout* | linux*coff*)
11149  dynamic_linker=no
11150  ;;
11151
11152# This must be glibc/ELF.
11153linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11154  version_type=linux # correct to gnu/linux during the next big refactor
11155  need_lib_prefix=no
11156  need_version=no
11157  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11158  soname_spec='${libname}${release}${shared_ext}$major'
11159  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11160  shlibpath_var=LD_LIBRARY_PATH
11161  shlibpath_overrides_runpath=no
11162
11163  # Some binutils ld are patched to set DT_RUNPATH
11164  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11165  $as_echo_n "(cached) " >&6
11166else
11167  lt_cv_shlibpath_overrides_runpath=no
11168    save_LDFLAGS=$LDFLAGS
11169    save_libdir=$libdir
11170    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11171	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11172    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11173/* end confdefs.h.  */
11174
11175int
11176main ()
11177{
11178
11179  ;
11180  return 0;
11181}
11182_ACEOF
11183if ac_fn_c_try_link "$LINENO"; then :
11184  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11185  lt_cv_shlibpath_overrides_runpath=yes
11186fi
11187fi
11188rm -f core conftest.err conftest.$ac_objext \
11189    conftest$ac_exeext conftest.$ac_ext
11190    LDFLAGS=$save_LDFLAGS
11191    libdir=$save_libdir
11192
11193fi
11194
11195  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11196
11197  # This implies no fast_install, which is unacceptable.
11198  # Some rework will be needed to allow for fast_install
11199  # before this can be enabled.
11200  hardcode_into_libs=yes
11201
11202  # Append ld.so.conf contents to the search path
11203  if test -f /etc/ld.so.conf; then
11204    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' ' '`
11205    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11206  fi
11207
11208  # We used to test for /lib/ld.so.1 and disable shared libraries on
11209  # powerpc, because MkLinux only supported shared libraries with the
11210  # GNU dynamic linker.  Since this was broken with cross compilers,
11211  # most powerpc-linux boxes support dynamic linking these days and
11212  # people can always --disable-shared, the test was removed, and we
11213  # assume the GNU/Linux dynamic linker is in use.
11214  dynamic_linker='GNU/Linux ld.so'
11215  ;;
11216
11217netbsdelf*-gnu)
11218  version_type=linux
11219  need_lib_prefix=no
11220  need_version=no
11221  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11222  soname_spec='${libname}${release}${shared_ext}$major'
11223  shlibpath_var=LD_LIBRARY_PATH
11224  shlibpath_overrides_runpath=no
11225  hardcode_into_libs=yes
11226  dynamic_linker='NetBSD ld.elf_so'
11227  ;;
11228
11229netbsd*)
11230  version_type=sunos
11231  need_lib_prefix=no
11232  need_version=no
11233  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11234    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11235    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11236    dynamic_linker='NetBSD (a.out) ld.so'
11237  else
11238    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11239    soname_spec='${libname}${release}${shared_ext}$major'
11240    dynamic_linker='NetBSD ld.elf_so'
11241  fi
11242  shlibpath_var=LD_LIBRARY_PATH
11243  shlibpath_overrides_runpath=yes
11244  hardcode_into_libs=yes
11245  ;;
11246
11247newsos6)
11248  version_type=linux # correct to gnu/linux during the next big refactor
11249  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11250  shlibpath_var=LD_LIBRARY_PATH
11251  shlibpath_overrides_runpath=yes
11252  ;;
11253
11254*nto* | *qnx*)
11255  version_type=qnx
11256  need_lib_prefix=no
11257  need_version=no
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  shlibpath_var=LD_LIBRARY_PATH
11261  shlibpath_overrides_runpath=no
11262  hardcode_into_libs=yes
11263  dynamic_linker='ldqnx.so'
11264  ;;
11265
11266openbsd*)
11267  version_type=sunos
11268  sys_lib_dlsearch_path_spec="/usr/lib"
11269  need_lib_prefix=no
11270  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11271  case $host_os in
11272    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11273    *)				need_version=no  ;;
11274  esac
11275  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11276  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11277  shlibpath_var=LD_LIBRARY_PATH
11278  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11279    case $host_os in
11280      openbsd2.[89] | openbsd2.[89].*)
11281	shlibpath_overrides_runpath=no
11282	;;
11283      *)
11284	shlibpath_overrides_runpath=yes
11285	;;
11286      esac
11287  else
11288    shlibpath_overrides_runpath=yes
11289  fi
11290  ;;
11291
11292os2*)
11293  libname_spec='$name'
11294  shrext_cmds=".dll"
11295  need_lib_prefix=no
11296  library_names_spec='$libname${shared_ext} $libname.a'
11297  dynamic_linker='OS/2 ld.exe'
11298  shlibpath_var=LIBPATH
11299  ;;
11300
11301osf3* | osf4* | osf5*)
11302  version_type=osf
11303  need_lib_prefix=no
11304  need_version=no
11305  soname_spec='${libname}${release}${shared_ext}$major'
11306  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11307  shlibpath_var=LD_LIBRARY_PATH
11308  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11309  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11310  ;;
11311
11312rdos*)
11313  dynamic_linker=no
11314  ;;
11315
11316solaris*)
11317  version_type=linux # correct to gnu/linux during the next big refactor
11318  need_lib_prefix=no
11319  need_version=no
11320  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11321  soname_spec='${libname}${release}${shared_ext}$major'
11322  shlibpath_var=LD_LIBRARY_PATH
11323  shlibpath_overrides_runpath=yes
11324  hardcode_into_libs=yes
11325  # ldd complains unless libraries are executable
11326  postinstall_cmds='chmod +x $lib'
11327  ;;
11328
11329sunos4*)
11330  version_type=sunos
11331  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11332  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11333  shlibpath_var=LD_LIBRARY_PATH
11334  shlibpath_overrides_runpath=yes
11335  if test "$with_gnu_ld" = yes; then
11336    need_lib_prefix=no
11337  fi
11338  need_version=yes
11339  ;;
11340
11341sysv4 | sysv4.3*)
11342  version_type=linux # correct to gnu/linux during the next big refactor
11343  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11344  soname_spec='${libname}${release}${shared_ext}$major'
11345  shlibpath_var=LD_LIBRARY_PATH
11346  case $host_vendor in
11347    sni)
11348      shlibpath_overrides_runpath=no
11349      need_lib_prefix=no
11350      runpath_var=LD_RUN_PATH
11351      ;;
11352    siemens)
11353      need_lib_prefix=no
11354      ;;
11355    motorola)
11356      need_lib_prefix=no
11357      need_version=no
11358      shlibpath_overrides_runpath=no
11359      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11360      ;;
11361  esac
11362  ;;
11363
11364sysv4*MP*)
11365  if test -d /usr/nec ;then
11366    version_type=linux # correct to gnu/linux during the next big refactor
11367    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11368    soname_spec='$libname${shared_ext}.$major'
11369    shlibpath_var=LD_LIBRARY_PATH
11370  fi
11371  ;;
11372
11373sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11374  version_type=freebsd-elf
11375  need_lib_prefix=no
11376  need_version=no
11377  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11378  soname_spec='${libname}${release}${shared_ext}$major'
11379  shlibpath_var=LD_LIBRARY_PATH
11380  shlibpath_overrides_runpath=yes
11381  hardcode_into_libs=yes
11382  if test "$with_gnu_ld" = yes; then
11383    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11384  else
11385    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11386    case $host_os in
11387      sco3.2v5*)
11388        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11389	;;
11390    esac
11391  fi
11392  sys_lib_dlsearch_path_spec='/usr/lib'
11393  ;;
11394
11395tpf*)
11396  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11397  version_type=linux # correct to gnu/linux during the next big refactor
11398  need_lib_prefix=no
11399  need_version=no
11400  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11401  shlibpath_var=LD_LIBRARY_PATH
11402  shlibpath_overrides_runpath=no
11403  hardcode_into_libs=yes
11404  ;;
11405
11406uts4*)
11407  version_type=linux # correct to gnu/linux during the next big refactor
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  shlibpath_var=LD_LIBRARY_PATH
11411  ;;
11412
11413*)
11414  dynamic_linker=no
11415  ;;
11416esac
11417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11418$as_echo "$dynamic_linker" >&6; }
11419test "$dynamic_linker" = no && can_build_shared=no
11420
11421variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11422if test "$GCC" = yes; then
11423  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11424fi
11425
11426if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11427  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11428fi
11429if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11430  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11431fi
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11525$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11526hardcode_action=
11527if test -n "$hardcode_libdir_flag_spec" ||
11528   test -n "$runpath_var" ||
11529   test "X$hardcode_automatic" = "Xyes" ; then
11530
11531  # We can hardcode non-existent directories.
11532  if test "$hardcode_direct" != no &&
11533     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11534     # have to relink, otherwise we might link with an installed library
11535     # when we should be linking with a yet-to-be-installed one
11536     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11537     test "$hardcode_minus_L" != no; then
11538    # Linking always hardcodes the temporary library directory.
11539    hardcode_action=relink
11540  else
11541    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11542    hardcode_action=immediate
11543  fi
11544else
11545  # We cannot hardcode anything, or else we can only hardcode existing
11546  # directories.
11547  hardcode_action=unsupported
11548fi
11549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11550$as_echo "$hardcode_action" >&6; }
11551
11552if test "$hardcode_action" = relink ||
11553   test "$inherit_rpath" = yes; then
11554  # Fast installation is not supported
11555  enable_fast_install=no
11556elif test "$shlibpath_overrides_runpath" = yes ||
11557     test "$enable_shared" = no; then
11558  # Fast installation is not necessary
11559  enable_fast_install=needless
11560fi
11561
11562
11563
11564
11565
11566
11567  if test "x$enable_dlopen" != xyes; then
11568  enable_dlopen=unknown
11569  enable_dlopen_self=unknown
11570  enable_dlopen_self_static=unknown
11571else
11572  lt_cv_dlopen=no
11573  lt_cv_dlopen_libs=
11574
11575  case $host_os in
11576  beos*)
11577    lt_cv_dlopen="load_add_on"
11578    lt_cv_dlopen_libs=
11579    lt_cv_dlopen_self=yes
11580    ;;
11581
11582  mingw* | pw32* | cegcc*)
11583    lt_cv_dlopen="LoadLibrary"
11584    lt_cv_dlopen_libs=
11585    ;;
11586
11587  cygwin*)
11588    lt_cv_dlopen="dlopen"
11589    lt_cv_dlopen_libs=
11590    ;;
11591
11592  darwin*)
11593  # if libdl is installed we need to link against it
11594    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11595$as_echo_n "checking for dlopen in -ldl... " >&6; }
11596if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11597  $as_echo_n "(cached) " >&6
11598else
11599  ac_check_lib_save_LIBS=$LIBS
11600LIBS="-ldl  $LIBS"
11601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11602/* end confdefs.h.  */
11603
11604/* Override any GCC internal prototype to avoid an error.
11605   Use char because int might match the return type of a GCC
11606   builtin and then its argument prototype would still apply.  */
11607#ifdef __cplusplus
11608extern "C"
11609#endif
11610char dlopen ();
11611int
11612main ()
11613{
11614return dlopen ();
11615  ;
11616  return 0;
11617}
11618_ACEOF
11619if ac_fn_c_try_link "$LINENO"; then :
11620  ac_cv_lib_dl_dlopen=yes
11621else
11622  ac_cv_lib_dl_dlopen=no
11623fi
11624rm -f core conftest.err conftest.$ac_objext \
11625    conftest$ac_exeext conftest.$ac_ext
11626LIBS=$ac_check_lib_save_LIBS
11627fi
11628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11629$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11630if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11631  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11632else
11633
11634    lt_cv_dlopen="dyld"
11635    lt_cv_dlopen_libs=
11636    lt_cv_dlopen_self=yes
11637
11638fi
11639
11640    ;;
11641
11642  *)
11643    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11644if test "x$ac_cv_func_shl_load" = x""yes; then :
11645  lt_cv_dlopen="shl_load"
11646else
11647  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11648$as_echo_n "checking for shl_load in -ldld... " >&6; }
11649if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11650  $as_echo_n "(cached) " >&6
11651else
11652  ac_check_lib_save_LIBS=$LIBS
11653LIBS="-ldld  $LIBS"
11654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11655/* end confdefs.h.  */
11656
11657/* Override any GCC internal prototype to avoid an error.
11658   Use char because int might match the return type of a GCC
11659   builtin and then its argument prototype would still apply.  */
11660#ifdef __cplusplus
11661extern "C"
11662#endif
11663char shl_load ();
11664int
11665main ()
11666{
11667return shl_load ();
11668  ;
11669  return 0;
11670}
11671_ACEOF
11672if ac_fn_c_try_link "$LINENO"; then :
11673  ac_cv_lib_dld_shl_load=yes
11674else
11675  ac_cv_lib_dld_shl_load=no
11676fi
11677rm -f core conftest.err conftest.$ac_objext \
11678    conftest$ac_exeext conftest.$ac_ext
11679LIBS=$ac_check_lib_save_LIBS
11680fi
11681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11682$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11683if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11684  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11685else
11686  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11687if test "x$ac_cv_func_dlopen" = x""yes; then :
11688  lt_cv_dlopen="dlopen"
11689else
11690  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11691$as_echo_n "checking for dlopen in -ldl... " >&6; }
11692if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11693  $as_echo_n "(cached) " >&6
11694else
11695  ac_check_lib_save_LIBS=$LIBS
11696LIBS="-ldl  $LIBS"
11697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11698/* end confdefs.h.  */
11699
11700/* Override any GCC internal prototype to avoid an error.
11701   Use char because int might match the return type of a GCC
11702   builtin and then its argument prototype would still apply.  */
11703#ifdef __cplusplus
11704extern "C"
11705#endif
11706char dlopen ();
11707int
11708main ()
11709{
11710return dlopen ();
11711  ;
11712  return 0;
11713}
11714_ACEOF
11715if ac_fn_c_try_link "$LINENO"; then :
11716  ac_cv_lib_dl_dlopen=yes
11717else
11718  ac_cv_lib_dl_dlopen=no
11719fi
11720rm -f core conftest.err conftest.$ac_objext \
11721    conftest$ac_exeext conftest.$ac_ext
11722LIBS=$ac_check_lib_save_LIBS
11723fi
11724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11725$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11726if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11727  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11728else
11729  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11730$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11731if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11732  $as_echo_n "(cached) " >&6
11733else
11734  ac_check_lib_save_LIBS=$LIBS
11735LIBS="-lsvld  $LIBS"
11736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11737/* end confdefs.h.  */
11738
11739/* Override any GCC internal prototype to avoid an error.
11740   Use char because int might match the return type of a GCC
11741   builtin and then its argument prototype would still apply.  */
11742#ifdef __cplusplus
11743extern "C"
11744#endif
11745char dlopen ();
11746int
11747main ()
11748{
11749return dlopen ();
11750  ;
11751  return 0;
11752}
11753_ACEOF
11754if ac_fn_c_try_link "$LINENO"; then :
11755  ac_cv_lib_svld_dlopen=yes
11756else
11757  ac_cv_lib_svld_dlopen=no
11758fi
11759rm -f core conftest.err conftest.$ac_objext \
11760    conftest$ac_exeext conftest.$ac_ext
11761LIBS=$ac_check_lib_save_LIBS
11762fi
11763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11764$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11765if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11766  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11767else
11768  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11769$as_echo_n "checking for dld_link in -ldld... " >&6; }
11770if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11771  $as_echo_n "(cached) " >&6
11772else
11773  ac_check_lib_save_LIBS=$LIBS
11774LIBS="-ldld  $LIBS"
11775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11776/* end confdefs.h.  */
11777
11778/* Override any GCC internal prototype to avoid an error.
11779   Use char because int might match the return type of a GCC
11780   builtin and then its argument prototype would still apply.  */
11781#ifdef __cplusplus
11782extern "C"
11783#endif
11784char dld_link ();
11785int
11786main ()
11787{
11788return dld_link ();
11789  ;
11790  return 0;
11791}
11792_ACEOF
11793if ac_fn_c_try_link "$LINENO"; then :
11794  ac_cv_lib_dld_dld_link=yes
11795else
11796  ac_cv_lib_dld_dld_link=no
11797fi
11798rm -f core conftest.err conftest.$ac_objext \
11799    conftest$ac_exeext conftest.$ac_ext
11800LIBS=$ac_check_lib_save_LIBS
11801fi
11802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11803$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11804if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11805  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11806fi
11807
11808
11809fi
11810
11811
11812fi
11813
11814
11815fi
11816
11817
11818fi
11819
11820
11821fi
11822
11823    ;;
11824  esac
11825
11826  if test "x$lt_cv_dlopen" != xno; then
11827    enable_dlopen=yes
11828  else
11829    enable_dlopen=no
11830  fi
11831
11832  case $lt_cv_dlopen in
11833  dlopen)
11834    save_CPPFLAGS="$CPPFLAGS"
11835    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11836
11837    save_LDFLAGS="$LDFLAGS"
11838    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11839
11840    save_LIBS="$LIBS"
11841    LIBS="$lt_cv_dlopen_libs $LIBS"
11842
11843    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11844$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11845if test "${lt_cv_dlopen_self+set}" = set; then :
11846  $as_echo_n "(cached) " >&6
11847else
11848  	  if test "$cross_compiling" = yes; then :
11849  lt_cv_dlopen_self=cross
11850else
11851  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11852  lt_status=$lt_dlunknown
11853  cat > conftest.$ac_ext <<_LT_EOF
11854#line $LINENO "configure"
11855#include "confdefs.h"
11856
11857#if HAVE_DLFCN_H
11858#include <dlfcn.h>
11859#endif
11860
11861#include <stdio.h>
11862
11863#ifdef RTLD_GLOBAL
11864#  define LT_DLGLOBAL		RTLD_GLOBAL
11865#else
11866#  ifdef DL_GLOBAL
11867#    define LT_DLGLOBAL		DL_GLOBAL
11868#  else
11869#    define LT_DLGLOBAL		0
11870#  endif
11871#endif
11872
11873/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11874   find out it does not work in some platform. */
11875#ifndef LT_DLLAZY_OR_NOW
11876#  ifdef RTLD_LAZY
11877#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11878#  else
11879#    ifdef DL_LAZY
11880#      define LT_DLLAZY_OR_NOW		DL_LAZY
11881#    else
11882#      ifdef RTLD_NOW
11883#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11884#      else
11885#        ifdef DL_NOW
11886#          define LT_DLLAZY_OR_NOW	DL_NOW
11887#        else
11888#          define LT_DLLAZY_OR_NOW	0
11889#        endif
11890#      endif
11891#    endif
11892#  endif
11893#endif
11894
11895/* When -fvisbility=hidden is used, assume the code has been annotated
11896   correspondingly for the symbols needed.  */
11897#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11898int fnord () __attribute__((visibility("default")));
11899#endif
11900
11901int fnord () { return 42; }
11902int main ()
11903{
11904  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11905  int status = $lt_dlunknown;
11906
11907  if (self)
11908    {
11909      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11910      else
11911        {
11912	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11913          else puts (dlerror ());
11914	}
11915      /* dlclose (self); */
11916    }
11917  else
11918    puts (dlerror ());
11919
11920  return status;
11921}
11922_LT_EOF
11923  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11924  (eval $ac_link) 2>&5
11925  ac_status=$?
11926  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11927  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11928    (./conftest; exit; ) >&5 2>/dev/null
11929    lt_status=$?
11930    case x$lt_status in
11931      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11932      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11933      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11934    esac
11935  else :
11936    # compilation failed
11937    lt_cv_dlopen_self=no
11938  fi
11939fi
11940rm -fr conftest*
11941
11942
11943fi
11944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11945$as_echo "$lt_cv_dlopen_self" >&6; }
11946
11947    if test "x$lt_cv_dlopen_self" = xyes; then
11948      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11949      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11950$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11951if test "${lt_cv_dlopen_self_static+set}" = set; then :
11952  $as_echo_n "(cached) " >&6
11953else
11954  	  if test "$cross_compiling" = yes; then :
11955  lt_cv_dlopen_self_static=cross
11956else
11957  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11958  lt_status=$lt_dlunknown
11959  cat > conftest.$ac_ext <<_LT_EOF
11960#line $LINENO "configure"
11961#include "confdefs.h"
11962
11963#if HAVE_DLFCN_H
11964#include <dlfcn.h>
11965#endif
11966
11967#include <stdio.h>
11968
11969#ifdef RTLD_GLOBAL
11970#  define LT_DLGLOBAL		RTLD_GLOBAL
11971#else
11972#  ifdef DL_GLOBAL
11973#    define LT_DLGLOBAL		DL_GLOBAL
11974#  else
11975#    define LT_DLGLOBAL		0
11976#  endif
11977#endif
11978
11979/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11980   find out it does not work in some platform. */
11981#ifndef LT_DLLAZY_OR_NOW
11982#  ifdef RTLD_LAZY
11983#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11984#  else
11985#    ifdef DL_LAZY
11986#      define LT_DLLAZY_OR_NOW		DL_LAZY
11987#    else
11988#      ifdef RTLD_NOW
11989#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11990#      else
11991#        ifdef DL_NOW
11992#          define LT_DLLAZY_OR_NOW	DL_NOW
11993#        else
11994#          define LT_DLLAZY_OR_NOW	0
11995#        endif
11996#      endif
11997#    endif
11998#  endif
11999#endif
12000
12001/* When -fvisbility=hidden is used, assume the code has been annotated
12002   correspondingly for the symbols needed.  */
12003#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12004int fnord () __attribute__((visibility("default")));
12005#endif
12006
12007int fnord () { return 42; }
12008int main ()
12009{
12010  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12011  int status = $lt_dlunknown;
12012
12013  if (self)
12014    {
12015      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12016      else
12017        {
12018	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12019          else puts (dlerror ());
12020	}
12021      /* dlclose (self); */
12022    }
12023  else
12024    puts (dlerror ());
12025
12026  return status;
12027}
12028_LT_EOF
12029  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12030  (eval $ac_link) 2>&5
12031  ac_status=$?
12032  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12033  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12034    (./conftest; exit; ) >&5 2>/dev/null
12035    lt_status=$?
12036    case x$lt_status in
12037      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12038      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12039      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12040    esac
12041  else :
12042    # compilation failed
12043    lt_cv_dlopen_self_static=no
12044  fi
12045fi
12046rm -fr conftest*
12047
12048
12049fi
12050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12051$as_echo "$lt_cv_dlopen_self_static" >&6; }
12052    fi
12053
12054    CPPFLAGS="$save_CPPFLAGS"
12055    LDFLAGS="$save_LDFLAGS"
12056    LIBS="$save_LIBS"
12057    ;;
12058  esac
12059
12060  case $lt_cv_dlopen_self in
12061  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12062  *) enable_dlopen_self=unknown ;;
12063  esac
12064
12065  case $lt_cv_dlopen_self_static in
12066  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12067  *) enable_dlopen_self_static=unknown ;;
12068  esac
12069fi
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087striplib=
12088old_striplib=
12089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12090$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12091if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12092  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12093  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12095$as_echo "yes" >&6; }
12096else
12097# FIXME - insert some real tests, host_os isn't really good enough
12098  case $host_os in
12099  darwin*)
12100    if test -n "$STRIP" ; then
12101      striplib="$STRIP -x"
12102      old_striplib="$STRIP -S"
12103      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12104$as_echo "yes" >&6; }
12105    else
12106      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12107$as_echo "no" >&6; }
12108    fi
12109    ;;
12110  *)
12111    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12112$as_echo "no" >&6; }
12113    ;;
12114  esac
12115fi
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128  # Report which library types will actually be built
12129  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12130$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12132$as_echo "$can_build_shared" >&6; }
12133
12134  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12135$as_echo_n "checking whether to build shared libraries... " >&6; }
12136  test "$can_build_shared" = "no" && enable_shared=no
12137
12138  # On AIX, shared libraries and static libraries use the same namespace, and
12139  # are all built from PIC.
12140  case $host_os in
12141  aix3*)
12142    test "$enable_shared" = yes && enable_static=no
12143    if test -n "$RANLIB"; then
12144      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12145      postinstall_cmds='$RANLIB $lib'
12146    fi
12147    ;;
12148
12149  aix[4-9]*)
12150    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12151      test "$enable_shared" = yes && enable_static=no
12152    fi
12153    ;;
12154  esac
12155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12156$as_echo "$enable_shared" >&6; }
12157
12158  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12159$as_echo_n "checking whether to build static libraries... " >&6; }
12160  # Make sure either enable_shared or enable_static is yes.
12161  test "$enable_shared" = yes || enable_static=yes
12162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12163$as_echo "$enable_static" >&6; }
12164
12165
12166
12167
12168fi
12169ac_ext=c
12170ac_cpp='$CPP $CPPFLAGS'
12171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12173ac_compiler_gnu=$ac_cv_c_compiler_gnu
12174
12175CC="$lt_save_CC"
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191        ac_config_commands="$ac_config_commands libtool"
12192
12193
12194
12195
12196# Only expand once:
12197
12198
12199
12200CPPFLAGS="${CPPFLAGS} -D_REENTRANT -D__EXTENSIONS__"
12201
12202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12203$as_echo_n "checking for ANSI C header files... " >&6; }
12204if test "${ac_cv_header_stdc+set}" = set; then :
12205  $as_echo_n "(cached) " >&6
12206else
12207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12208/* end confdefs.h.  */
12209#include <stdlib.h>
12210#include <stdarg.h>
12211#include <string.h>
12212#include <float.h>
12213
12214int
12215main ()
12216{
12217
12218  ;
12219  return 0;
12220}
12221_ACEOF
12222if ac_fn_c_try_compile "$LINENO"; then :
12223  ac_cv_header_stdc=yes
12224else
12225  ac_cv_header_stdc=no
12226fi
12227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12228
12229if test $ac_cv_header_stdc = yes; then
12230  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12232/* end confdefs.h.  */
12233#include <string.h>
12234
12235_ACEOF
12236if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12237  $EGREP "memchr" >/dev/null 2>&1; then :
12238
12239else
12240  ac_cv_header_stdc=no
12241fi
12242rm -f conftest*
12243
12244fi
12245
12246if test $ac_cv_header_stdc = yes; then
12247  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12249/* end confdefs.h.  */
12250#include <stdlib.h>
12251
12252_ACEOF
12253if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12254  $EGREP "free" >/dev/null 2>&1; then :
12255
12256else
12257  ac_cv_header_stdc=no
12258fi
12259rm -f conftest*
12260
12261fi
12262
12263if test $ac_cv_header_stdc = yes; then
12264  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12265  if test "$cross_compiling" = yes; then :
12266  :
12267else
12268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12269/* end confdefs.h.  */
12270#include <ctype.h>
12271#include <stdlib.h>
12272#if ((' ' & 0x0FF) == 0x020)
12273# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12274# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12275#else
12276# define ISLOWER(c) \
12277		   (('a' <= (c) && (c) <= 'i') \
12278		     || ('j' <= (c) && (c) <= 'r') \
12279		     || ('s' <= (c) && (c) <= 'z'))
12280# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12281#endif
12282
12283#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12284int
12285main ()
12286{
12287  int i;
12288  for (i = 0; i < 256; i++)
12289    if (XOR (islower (i), ISLOWER (i))
12290	|| toupper (i) != TOUPPER (i))
12291      return 2;
12292  return 0;
12293}
12294_ACEOF
12295if ac_fn_c_try_run "$LINENO"; then :
12296
12297else
12298  ac_cv_header_stdc=no
12299fi
12300rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12301  conftest.$ac_objext conftest.beam conftest.$ac_ext
12302fi
12303
12304fi
12305fi
12306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12307$as_echo "$ac_cv_header_stdc" >&6; }
12308if test $ac_cv_header_stdc = yes; then
12309
12310$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12311
12312fi
12313
12314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12315$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12316if test "${ac_cv_header_sys_wait_h+set}" = set; then :
12317  $as_echo_n "(cached) " >&6
12318else
12319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12320/* end confdefs.h.  */
12321#include <sys/types.h>
12322#include <sys/wait.h>
12323#ifndef WEXITSTATUS
12324# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12325#endif
12326#ifndef WIFEXITED
12327# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12328#endif
12329
12330int
12331main ()
12332{
12333  int s;
12334  wait (&s);
12335  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12336  ;
12337  return 0;
12338}
12339_ACEOF
12340if ac_fn_c_try_compile "$LINENO"; then :
12341  ac_cv_header_sys_wait_h=yes
12342else
12343  ac_cv_header_sys_wait_h=no
12344fi
12345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12346fi
12347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12348$as_echo "$ac_cv_header_sys_wait_h" >&6; }
12349if test $ac_cv_header_sys_wait_h = yes; then
12350
12351$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12352
12353fi
12354
12355for ac_header in arpa/inet.h fcntl.h netinet/in.h stdlib.h string.h \
12356sys/socket.h sys/time.h unistd.h sys/sendfile.h sys/uio.h \
12357getopt.h sys/epoll.h sys/select.h poll.h sys/poll.h sys/devpoll.h sys/filio.h \
12358sys/mman.h sys/event.h port.h pwd.h sys/syslimits.h \
12359sys/resource.h sys/un.h syslog.h sys/prctl.h uuid/uuid.h
12360do :
12361  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12362ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12363if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12364  cat >>confdefs.h <<_ACEOF
12365#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12366_ACEOF
12367
12368fi
12369
12370done
12371
12372
12373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12374$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12375if test "${ac_cv_c_const+set}" = set; then :
12376  $as_echo_n "(cached) " >&6
12377else
12378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12379/* end confdefs.h.  */
12380
12381int
12382main ()
12383{
12384/* FIXME: Include the comments suggested by Paul. */
12385#ifndef __cplusplus
12386  /* Ultrix mips cc rejects this.  */
12387  typedef int charset[2];
12388  const charset cs;
12389  /* SunOS 4.1.1 cc rejects this.  */
12390  char const *const *pcpcc;
12391  char **ppc;
12392  /* NEC SVR4.0.2 mips cc rejects this.  */
12393  struct point {int x, y;};
12394  static struct point const zero = {0,0};
12395  /* AIX XL C 1.02.0.0 rejects this.
12396     It does not let you subtract one const X* pointer from another in
12397     an arm of an if-expression whose if-part is not a constant
12398     expression */
12399  const char *g = "string";
12400  pcpcc = &g + (g ? g-g : 0);
12401  /* HPUX 7.0 cc rejects these. */
12402  ++pcpcc;
12403  ppc = (char**) pcpcc;
12404  pcpcc = (char const *const *) ppc;
12405  { /* SCO 3.2v4 cc rejects this.  */
12406    char *t;
12407    char const *s = 0 ? (char *) 0 : (char const *) 0;
12408
12409    *t++ = 0;
12410    if (s) return 0;
12411  }
12412  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12413    int x[] = {25, 17};
12414    const int *foo = &x[0];
12415    ++foo;
12416  }
12417  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12418    typedef const int *iptr;
12419    iptr p = 0;
12420    ++p;
12421  }
12422  { /* AIX XL C 1.02.0.0 rejects this saying
12423       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12424    struct s { int j; const int *ap[3]; };
12425    struct s *b; b->j = 5;
12426  }
12427  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12428    const int foo = 10;
12429    if (!foo) return 0;
12430  }
12431  return !cs[0] && !zero.x;
12432#endif
12433
12434  ;
12435  return 0;
12436}
12437_ACEOF
12438if ac_fn_c_try_compile "$LINENO"; then :
12439  ac_cv_c_const=yes
12440else
12441  ac_cv_c_const=no
12442fi
12443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12444fi
12445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12446$as_echo "$ac_cv_c_const" >&6; }
12447if test $ac_cv_c_const = no; then
12448
12449$as_echo "#define const /**/" >>confdefs.h
12450
12451fi
12452
12453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12454$as_echo_n "checking for inline... " >&6; }
12455if test "${ac_cv_c_inline+set}" = set; then :
12456  $as_echo_n "(cached) " >&6
12457else
12458  ac_cv_c_inline=no
12459for ac_kw in inline __inline__ __inline; do
12460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12461/* end confdefs.h.  */
12462#ifndef __cplusplus
12463typedef int foo_t;
12464static $ac_kw foo_t static_foo () {return 0; }
12465$ac_kw foo_t foo () {return 0; }
12466#endif
12467
12468_ACEOF
12469if ac_fn_c_try_compile "$LINENO"; then :
12470  ac_cv_c_inline=$ac_kw
12471fi
12472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12473  test "$ac_cv_c_inline" != no && break
12474done
12475
12476fi
12477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12478$as_echo "$ac_cv_c_inline" >&6; }
12479
12480case $ac_cv_c_inline in
12481  inline | yes) ;;
12482  *)
12483    case $ac_cv_c_inline in
12484      no) ac_val=;;
12485      *) ac_val=$ac_cv_c_inline;;
12486    esac
12487    cat >>confdefs.h <<_ACEOF
12488#ifndef __cplusplus
12489#define inline $ac_val
12490#endif
12491_ACEOF
12492    ;;
12493esac
12494
12495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
12496$as_echo_n "checking whether char is unsigned... " >&6; }
12497if test "${ac_cv_c_char_unsigned+set}" = set; then :
12498  $as_echo_n "(cached) " >&6
12499else
12500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12501/* end confdefs.h.  */
12502$ac_includes_default
12503int
12504main ()
12505{
12506static int test_array [1 - 2 * !(((char) -1) < 0)];
12507test_array [0] = 0
12508
12509  ;
12510  return 0;
12511}
12512_ACEOF
12513if ac_fn_c_try_compile "$LINENO"; then :
12514  ac_cv_c_char_unsigned=no
12515else
12516  ac_cv_c_char_unsigned=yes
12517fi
12518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12519fi
12520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
12521$as_echo "$ac_cv_c_char_unsigned" >&6; }
12522if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
12523  $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
12524
12525fi
12526
12527ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12528if test "x$ac_cv_type_off_t" = x""yes; then :
12529
12530else
12531
12532cat >>confdefs.h <<_ACEOF
12533#define off_t long int
12534_ACEOF
12535
12536fi
12537
12538ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12539if test "x$ac_cv_type_pid_t" = x""yes; then :
12540
12541else
12542
12543cat >>confdefs.h <<_ACEOF
12544#define pid_t int
12545_ACEOF
12546
12547fi
12548
12549ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12550if test "x$ac_cv_type_size_t" = x""yes; then :
12551
12552else
12553
12554cat >>confdefs.h <<_ACEOF
12555#define size_t unsigned int
12556_ACEOF
12557
12558fi
12559
12560
12561ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
12562"
12563if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
12564
12565$as_echo "#define HAVE_STRUCT_TM_GMTOFF 1" >>confdefs.h
12566
12567fi
12568
12569ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/socket.h>
12570"
12571if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then :
12572
12573cat >>confdefs.h <<_ACEOF
12574#define HAVE_STRUCT_SOCKADDR_STORAGE 1
12575_ACEOF
12576
12577
12578fi
12579
12580ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12581#include <sys/socket.h>
12582"
12583if test "x$ac_cv_type_socklen_t" = x""yes; then :
12584
12585cat >>confdefs.h <<_ACEOF
12586#define HAVE_SOCKLEN_T 1
12587_ACEOF
12588
12589
12590fi
12591
12592
12593for ac_header in vfork.h
12594do :
12595  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12596if test "x$ac_cv_header_vfork_h" = x""yes; then :
12597  cat >>confdefs.h <<_ACEOF
12598#define HAVE_VFORK_H 1
12599_ACEOF
12600
12601fi
12602
12603done
12604
12605for ac_func in fork vfork
12606do :
12607  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12608ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12609if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12610  cat >>confdefs.h <<_ACEOF
12611#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12612_ACEOF
12613
12614fi
12615done
12616
12617if test "x$ac_cv_func_fork" = xyes; then
12618  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12619$as_echo_n "checking for working fork... " >&6; }
12620if test "${ac_cv_func_fork_works+set}" = set; then :
12621  $as_echo_n "(cached) " >&6
12622else
12623  if test "$cross_compiling" = yes; then :
12624  ac_cv_func_fork_works=cross
12625else
12626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12627/* end confdefs.h.  */
12628$ac_includes_default
12629int
12630main ()
12631{
12632
12633	  /* By Ruediger Kuhlmann. */
12634	  return fork () < 0;
12635
12636  ;
12637  return 0;
12638}
12639_ACEOF
12640if ac_fn_c_try_run "$LINENO"; then :
12641  ac_cv_func_fork_works=yes
12642else
12643  ac_cv_func_fork_works=no
12644fi
12645rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12646  conftest.$ac_objext conftest.beam conftest.$ac_ext
12647fi
12648
12649fi
12650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12651$as_echo "$ac_cv_func_fork_works" >&6; }
12652
12653else
12654  ac_cv_func_fork_works=$ac_cv_func_fork
12655fi
12656if test "x$ac_cv_func_fork_works" = xcross; then
12657  case $host in
12658    *-*-amigaos* | *-*-msdosdjgpp*)
12659      # Override, as these systems have only a dummy fork() stub
12660      ac_cv_func_fork_works=no
12661      ;;
12662    *)
12663      ac_cv_func_fork_works=yes
12664      ;;
12665  esac
12666  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12667$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12668fi
12669ac_cv_func_vfork_works=$ac_cv_func_vfork
12670if test "x$ac_cv_func_vfork" = xyes; then
12671  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12672$as_echo_n "checking for working vfork... " >&6; }
12673if test "${ac_cv_func_vfork_works+set}" = set; then :
12674  $as_echo_n "(cached) " >&6
12675else
12676  if test "$cross_compiling" = yes; then :
12677  ac_cv_func_vfork_works=cross
12678else
12679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12680/* end confdefs.h.  */
12681/* Thanks to Paul Eggert for this test.  */
12682$ac_includes_default
12683#include <sys/wait.h>
12684#ifdef HAVE_VFORK_H
12685# include <vfork.h>
12686#endif
12687/* On some sparc systems, changes by the child to local and incoming
12688   argument registers are propagated back to the parent.  The compiler
12689   is told about this with #include <vfork.h>, but some compilers
12690   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
12691   static variable whose address is put into a register that is
12692   clobbered by the vfork.  */
12693static void
12694#ifdef __cplusplus
12695sparc_address_test (int arg)
12696# else
12697sparc_address_test (arg) int arg;
12698#endif
12699{
12700  static pid_t child;
12701  if (!child) {
12702    child = vfork ();
12703    if (child < 0) {
12704      perror ("vfork");
12705      _exit(2);
12706    }
12707    if (!child) {
12708      arg = getpid();
12709      write(-1, "", 0);
12710      _exit (arg);
12711    }
12712  }
12713}
12714
12715int
12716main ()
12717{
12718  pid_t parent = getpid ();
12719  pid_t child;
12720
12721  sparc_address_test (0);
12722
12723  child = vfork ();
12724
12725  if (child == 0) {
12726    /* Here is another test for sparc vfork register problems.  This
12727       test uses lots of local variables, at least as many local
12728       variables as main has allocated so far including compiler
12729       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
12730       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
12731       reuse the register of parent for one of the local variables,
12732       since it will think that parent can't possibly be used any more
12733       in this routine.  Assigning to the local variable will thus
12734       munge parent in the parent process.  */
12735    pid_t
12736      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12737      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12738    /* Convince the compiler that p..p7 are live; otherwise, it might
12739       use the same hardware register for all 8 local variables.  */
12740    if (p != p1 || p != p2 || p != p3 || p != p4
12741	|| p != p5 || p != p6 || p != p7)
12742      _exit(1);
12743
12744    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12745       from child file descriptors.  If the child closes a descriptor
12746       before it execs or exits, this munges the parent's descriptor
12747       as well.  Test for this by closing stdout in the child.  */
12748    _exit(close(fileno(stdout)) != 0);
12749  } else {
12750    int status;
12751    struct stat st;
12752
12753    while (wait(&status) != child)
12754      ;
12755    return (
12756	 /* Was there some problem with vforking?  */
12757	 child < 0
12758
12759	 /* Did the child fail?  (This shouldn't happen.)  */
12760	 || status
12761
12762	 /* Did the vfork/compiler bug occur?  */
12763	 || parent != getpid()
12764
12765	 /* Did the file descriptor bug occur?  */
12766	 || fstat(fileno(stdout), &st) != 0
12767	 );
12768  }
12769}
12770_ACEOF
12771if ac_fn_c_try_run "$LINENO"; then :
12772  ac_cv_func_vfork_works=yes
12773else
12774  ac_cv_func_vfork_works=no
12775fi
12776rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12777  conftest.$ac_objext conftest.beam conftest.$ac_ext
12778fi
12779
12780fi
12781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12782$as_echo "$ac_cv_func_vfork_works" >&6; }
12783
12784fi;
12785if test "x$ac_cv_func_fork_works" = xcross; then
12786  ac_cv_func_vfork_works=$ac_cv_func_vfork
12787  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12788$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12789fi
12790
12791if test "x$ac_cv_func_vfork_works" = xyes; then
12792
12793$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12794
12795else
12796
12797$as_echo "#define vfork fork" >>confdefs.h
12798
12799fi
12800if test "x$ac_cv_func_fork_works" = xyes; then
12801
12802$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12803
12804fi
12805
12806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
12807$as_echo_n "checking return type of signal handlers... " >&6; }
12808if test "${ac_cv_type_signal+set}" = set; then :
12809  $as_echo_n "(cached) " >&6
12810else
12811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12812/* end confdefs.h.  */
12813#include <sys/types.h>
12814#include <signal.h>
12815
12816int
12817main ()
12818{
12819return *(signal (0, 0)) (0) == 1;
12820  ;
12821  return 0;
12822}
12823_ACEOF
12824if ac_fn_c_try_compile "$LINENO"; then :
12825  ac_cv_type_signal=int
12826else
12827  ac_cv_type_signal=void
12828fi
12829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12830fi
12831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
12832$as_echo "$ac_cv_type_signal" >&6; }
12833
12834cat >>confdefs.h <<_ACEOF
12835#define RETSIGTYPE $ac_cv_type_signal
12836_ACEOF
12837
12838
12839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
12840$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
12841if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
12842  $as_echo_n "(cached) " >&6
12843else
12844  rm -f conftest.sym conftest.file
12845echo >conftest.file
12846if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
12847  if test "$cross_compiling" = yes; then :
12848  ac_cv_func_lstat_dereferences_slashed_symlink=no
12849else
12850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12851/* end confdefs.h.  */
12852$ac_includes_default
12853int
12854main ()
12855{
12856struct stat sbuf;
12857     /* Linux will dereference the symlink and fail, as required by POSIX.
12858	That is better in the sense that it means we will not
12859	have to compile and use the lstat wrapper.  */
12860     return lstat ("conftest.sym/", &sbuf) == 0;
12861  ;
12862  return 0;
12863}
12864_ACEOF
12865if ac_fn_c_try_run "$LINENO"; then :
12866  ac_cv_func_lstat_dereferences_slashed_symlink=yes
12867else
12868  ac_cv_func_lstat_dereferences_slashed_symlink=no
12869fi
12870rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12871  conftest.$ac_objext conftest.beam conftest.$ac_ext
12872fi
12873
12874else
12875  # If the `ln -s' command failed, then we probably don't even
12876  # have an lstat function.
12877  ac_cv_func_lstat_dereferences_slashed_symlink=no
12878fi
12879rm -f conftest.sym conftest.file
12880
12881fi
12882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
12883$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
12884
12885test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
12886
12887cat >>confdefs.h <<_ACEOF
12888#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
12889_ACEOF
12890
12891
12892if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
12893  case " $LIBOBJS " in
12894  *" lstat.$ac_objext "* ) ;;
12895  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
12896 ;;
12897esac
12898
12899fi
12900
12901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
12902$as_echo_n "checking whether stat accepts an empty string... " >&6; }
12903if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
12904  $as_echo_n "(cached) " >&6
12905else
12906  if test "$cross_compiling" = yes; then :
12907  ac_cv_func_stat_empty_string_bug=yes
12908else
12909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12910/* end confdefs.h.  */
12911$ac_includes_default
12912int
12913main ()
12914{
12915struct stat sbuf;
12916  return stat ("", &sbuf) == 0;
12917  ;
12918  return 0;
12919}
12920_ACEOF
12921if ac_fn_c_try_run "$LINENO"; then :
12922  ac_cv_func_stat_empty_string_bug=no
12923else
12924  ac_cv_func_stat_empty_string_bug=yes
12925fi
12926rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12927  conftest.$ac_objext conftest.beam conftest.$ac_ext
12928fi
12929
12930fi
12931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
12932$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
12933if test $ac_cv_func_stat_empty_string_bug = yes; then
12934  case " $LIBOBJS " in
12935  *" stat.$ac_objext "* ) ;;
12936  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
12937 ;;
12938esac
12939
12940
12941cat >>confdefs.h <<_ACEOF
12942#define HAVE_STAT_EMPTY_STRING_BUG 1
12943_ACEOF
12944
12945fi
12946
12947for ac_func in strftime
12948do :
12949  ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12950if test "x$ac_cv_func_strftime" = x""yes; then :
12951  cat >>confdefs.h <<_ACEOF
12952#define HAVE_STRFTIME 1
12953_ACEOF
12954
12955else
12956  # strftime is in -lintl on SCO UNIX.
12957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12958$as_echo_n "checking for strftime in -lintl... " >&6; }
12959if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12960  $as_echo_n "(cached) " >&6
12961else
12962  ac_check_lib_save_LIBS=$LIBS
12963LIBS="-lintl  $LIBS"
12964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12965/* end confdefs.h.  */
12966
12967/* Override any GCC internal prototype to avoid an error.
12968   Use char because int might match the return type of a GCC
12969   builtin and then its argument prototype would still apply.  */
12970#ifdef __cplusplus
12971extern "C"
12972#endif
12973char strftime ();
12974int
12975main ()
12976{
12977return strftime ();
12978  ;
12979  return 0;
12980}
12981_ACEOF
12982if ac_fn_c_try_link "$LINENO"; then :
12983  ac_cv_lib_intl_strftime=yes
12984else
12985  ac_cv_lib_intl_strftime=no
12986fi
12987rm -f core conftest.err conftest.$ac_objext \
12988    conftest$ac_exeext conftest.$ac_ext
12989LIBS=$ac_check_lib_save_LIBS
12990fi
12991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12992$as_echo "$ac_cv_lib_intl_strftime" >&6; }
12993if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
12994  $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12995
12996LIBS="-lintl $LIBS"
12997fi
12998
12999fi
13000done
13001
13002for ac_func in issetugid inet_pton
13003do :
13004  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13005ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13006if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13007  cat >>confdefs.h <<_ACEOF
13008#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13009_ACEOF
13010
13011fi
13012done
13013
13014
13015if test -z "$PKG_CONFIG"; then
13016  # Extract the first word of "pkg-config", so it can be a program name with args.
13017set dummy pkg-config; ac_word=$2
13018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13019$as_echo_n "checking for $ac_word... " >&6; }
13020if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13021  $as_echo_n "(cached) " >&6
13022else
13023  case $PKG_CONFIG in
13024  [\\/]* | ?:[\\/]*)
13025  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13026  ;;
13027  *)
13028  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13029for as_dir in $PATH
13030do
13031  IFS=$as_save_IFS
13032  test -z "$as_dir" && as_dir=.
13033    for ac_exec_ext in '' $ac_executable_extensions; do
13034  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13035    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13036    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13037    break 2
13038  fi
13039done
13040  done
13041IFS=$as_save_IFS
13042
13043  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13044  ;;
13045esac
13046fi
13047PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13048if test -n "$PKG_CONFIG"; then
13049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13050$as_echo "$PKG_CONFIG" >&6; }
13051else
13052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13053$as_echo "no" >&6; }
13054fi
13055
13056
13057fi
13058
13059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libev support" >&5
13060$as_echo_n "checking for libev support... " >&6; }
13061
13062# Check whether --with-libev was given.
13063if test "${with_libev+set}" = set; then :
13064  withval=$with_libev; WITH_LIBEV=$withval
13065else
13066  WITH_LIBEV=no
13067fi
13068
13069
13070LIBEV_CFLAGS=""
13071LIBEV_LIBS=""
13072
13073if test "$WITH_LIBEV" != "no"; then
13074
13075
13076
13077
13078
13079
13080if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13081	if test -n "$ac_tool_prefix"; then
13082  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13083set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13085$as_echo_n "checking for $ac_word... " >&6; }
13086if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13087  $as_echo_n "(cached) " >&6
13088else
13089  case $PKG_CONFIG in
13090  [\\/]* | ?:[\\/]*)
13091  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13092  ;;
13093  *)
13094  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13095for as_dir in $PATH
13096do
13097  IFS=$as_save_IFS
13098  test -z "$as_dir" && as_dir=.
13099    for ac_exec_ext in '' $ac_executable_extensions; do
13100  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13101    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13102    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13103    break 2
13104  fi
13105done
13106  done
13107IFS=$as_save_IFS
13108
13109  ;;
13110esac
13111fi
13112PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13113if test -n "$PKG_CONFIG"; then
13114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13115$as_echo "$PKG_CONFIG" >&6; }
13116else
13117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13118$as_echo "no" >&6; }
13119fi
13120
13121
13122fi
13123if test -z "$ac_cv_path_PKG_CONFIG"; then
13124  ac_pt_PKG_CONFIG=$PKG_CONFIG
13125  # Extract the first word of "pkg-config", so it can be a program name with args.
13126set dummy pkg-config; ac_word=$2
13127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13128$as_echo_n "checking for $ac_word... " >&6; }
13129if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
13130  $as_echo_n "(cached) " >&6
13131else
13132  case $ac_pt_PKG_CONFIG in
13133  [\\/]* | ?:[\\/]*)
13134  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13135  ;;
13136  *)
13137  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13138for as_dir in $PATH
13139do
13140  IFS=$as_save_IFS
13141  test -z "$as_dir" && as_dir=.
13142    for ac_exec_ext in '' $ac_executable_extensions; do
13143  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13144    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13145    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13146    break 2
13147  fi
13148done
13149  done
13150IFS=$as_save_IFS
13151
13152  ;;
13153esac
13154fi
13155ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13156if test -n "$ac_pt_PKG_CONFIG"; then
13157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13158$as_echo "$ac_pt_PKG_CONFIG" >&6; }
13159else
13160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13161$as_echo "no" >&6; }
13162fi
13163
13164  if test "x$ac_pt_PKG_CONFIG" = x; then
13165    PKG_CONFIG=""
13166  else
13167    case $cross_compiling:$ac_tool_warned in
13168yes:)
13169{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13170$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13171ac_tool_warned=yes ;;
13172esac
13173    PKG_CONFIG=$ac_pt_PKG_CONFIG
13174  fi
13175else
13176  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13177fi
13178
13179fi
13180if test -n "$PKG_CONFIG"; then
13181	_pkg_min_version=0.9.0
13182	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13183$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13184	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13185		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13186$as_echo "yes" >&6; }
13187	else
13188		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13189$as_echo "no" >&6; }
13190		PKG_CONFIG=""
13191	fi
13192fi
13193
13194pkg_failed=no
13195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBEV" >&5
13196$as_echo_n "checking for LIBEV... " >&6; }
13197
13198if test -n "$LIBEV_CFLAGS"; then
13199    pkg_cv_LIBEV_CFLAGS="$LIBEV_CFLAGS"
13200 elif test -n "$PKG_CONFIG"; then
13201    if test -n "$PKG_CONFIG" && \
13202    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libev\""; } >&5
13203  ($PKG_CONFIG --exists --print-errors "libev") 2>&5
13204  ac_status=$?
13205  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13206  test $ac_status = 0; }; then
13207  pkg_cv_LIBEV_CFLAGS=`$PKG_CONFIG --cflags "libev" 2>/dev/null`
13208else
13209  pkg_failed=yes
13210fi
13211 else
13212    pkg_failed=untried
13213fi
13214if test -n "$LIBEV_LIBS"; then
13215    pkg_cv_LIBEV_LIBS="$LIBEV_LIBS"
13216 elif test -n "$PKG_CONFIG"; then
13217    if test -n "$PKG_CONFIG" && \
13218    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libev\""; } >&5
13219  ($PKG_CONFIG --exists --print-errors "libev") 2>&5
13220  ac_status=$?
13221  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13222  test $ac_status = 0; }; then
13223  pkg_cv_LIBEV_LIBS=`$PKG_CONFIG --libs "libev" 2>/dev/null`
13224else
13225  pkg_failed=yes
13226fi
13227 else
13228    pkg_failed=untried
13229fi
13230
13231
13232
13233if test $pkg_failed = yes; then
13234   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13235$as_echo "no" >&6; }
13236
13237if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13238        _pkg_short_errors_supported=yes
13239else
13240        _pkg_short_errors_supported=no
13241fi
13242        if test $_pkg_short_errors_supported = yes; then
13243	        LIBEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libev" 2>&1`
13244        else
13245	        LIBEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libev" 2>&1`
13246        fi
13247	# Put the nasty error message in config.log where it belongs
13248	echo "$LIBEV_PKG_ERRORS" >&5
13249
13250
13251
13252		if test "$WITH_LIBEV" != "yes"; then
13253			LIBEV_CFLAGS="-I$WITH_LIBEV/include"
13254			LIBEV_LIBS="-L$WITH_LIBEV/lib -lev"
13255		else
13256			for ac_header in ev.h
13257do :
13258  ac_fn_c_check_header_mongrel "$LINENO" "ev.h" "ac_cv_header_ev_h" "$ac_includes_default"
13259if test "x$ac_cv_header_ev_h" = x""yes; then :
13260  cat >>confdefs.h <<_ACEOF
13261#define HAVE_EV_H 1
13262_ACEOF
13263
13264				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ev_time in -lev" >&5
13265$as_echo_n "checking for ev_time in -lev... " >&6; }
13266if test "${ac_cv_lib_ev_ev_time+set}" = set; then :
13267  $as_echo_n "(cached) " >&6
13268else
13269  ac_check_lib_save_LIBS=$LIBS
13270LIBS="-lev  $LIBS"
13271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13272/* end confdefs.h.  */
13273
13274/* Override any GCC internal prototype to avoid an error.
13275   Use char because int might match the return type of a GCC
13276   builtin and then its argument prototype would still apply.  */
13277#ifdef __cplusplus
13278extern "C"
13279#endif
13280char ev_time ();
13281int
13282main ()
13283{
13284return ev_time ();
13285  ;
13286  return 0;
13287}
13288_ACEOF
13289if ac_fn_c_try_link "$LINENO"; then :
13290  ac_cv_lib_ev_ev_time=yes
13291else
13292  ac_cv_lib_ev_ev_time=no
13293fi
13294rm -f core conftest.err conftest.$ac_objext \
13295    conftest$ac_exeext conftest.$ac_ext
13296LIBS=$ac_check_lib_save_LIBS
13297fi
13298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ev_ev_time" >&5
13299$as_echo "$ac_cv_lib_ev_ev_time" >&6; }
13300if test "x$ac_cv_lib_ev_ev_time" = x""yes; then :
13301
13302						LIBEV_CFLAGS=""
13303						LIBEV_LIBS="-lev"
13304
13305else
13306
13307					as_fn_error $? "libev not found" "$LINENO" 5
13308
13309
13310fi
13311
13312else
13313
13314					as_fn_error $? "libev not found" "$LINENO" 5
13315
13316
13317fi
13318
13319done
13320
13321		fi
13322
13323elif test $pkg_failed = untried; then
13324     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13325$as_echo "no" >&6; }
13326
13327
13328		if test "$WITH_LIBEV" != "yes"; then
13329			LIBEV_CFLAGS="-I$WITH_LIBEV/include"
13330			LIBEV_LIBS="-L$WITH_LIBEV/lib -lev"
13331		else
13332			for ac_header in ev.h
13333do :
13334  ac_fn_c_check_header_mongrel "$LINENO" "ev.h" "ac_cv_header_ev_h" "$ac_includes_default"
13335if test "x$ac_cv_header_ev_h" = x""yes; then :
13336  cat >>confdefs.h <<_ACEOF
13337#define HAVE_EV_H 1
13338_ACEOF
13339
13340				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ev_time in -lev" >&5
13341$as_echo_n "checking for ev_time in -lev... " >&6; }
13342if test "${ac_cv_lib_ev_ev_time+set}" = set; then :
13343  $as_echo_n "(cached) " >&6
13344else
13345  ac_check_lib_save_LIBS=$LIBS
13346LIBS="-lev  $LIBS"
13347cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13348/* end confdefs.h.  */
13349
13350/* Override any GCC internal prototype to avoid an error.
13351   Use char because int might match the return type of a GCC
13352   builtin and then its argument prototype would still apply.  */
13353#ifdef __cplusplus
13354extern "C"
13355#endif
13356char ev_time ();
13357int
13358main ()
13359{
13360return ev_time ();
13361  ;
13362  return 0;
13363}
13364_ACEOF
13365if ac_fn_c_try_link "$LINENO"; then :
13366  ac_cv_lib_ev_ev_time=yes
13367else
13368  ac_cv_lib_ev_ev_time=no
13369fi
13370rm -f core conftest.err conftest.$ac_objext \
13371    conftest$ac_exeext conftest.$ac_ext
13372LIBS=$ac_check_lib_save_LIBS
13373fi
13374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ev_ev_time" >&5
13375$as_echo "$ac_cv_lib_ev_ev_time" >&6; }
13376if test "x$ac_cv_lib_ev_ev_time" = x""yes; then :
13377
13378						LIBEV_CFLAGS=""
13379						LIBEV_LIBS="-lev"
13380
13381else
13382
13383					as_fn_error $? "libev not found" "$LINENO" 5
13384
13385
13386fi
13387
13388else
13389
13390					as_fn_error $? "libev not found" "$LINENO" 5
13391
13392
13393fi
13394
13395done
13396
13397		fi
13398
13399else
13400	LIBEV_CFLAGS=$pkg_cv_LIBEV_CFLAGS
13401	LIBEV_LIBS=$pkg_cv_LIBEV_LIBS
13402        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13403$as_echo "yes" >&6; }
13404
13405fi
13406
13407
13408$as_echo "#define HAVE_LIBEV 1" >>confdefs.h
13409
13410fi
13411
13412
13413
13414
13415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsmbclient support" >&5
13416$as_echo_n "checking for libsmbclient support... " >&6; }
13417
13418# Check whether --with-libsmbclient was given.
13419if test "${with_libsmbclient+set}" = set; then :
13420  withval=$with_libsmbclient; WITH_LIBSMBCLIENT=$withval
13421else
13422  WITH_LIBSMBCLIENT=no
13423fi
13424
13425
13426LIBSMBCLIENT_CFLAGS=""
13427LIBSMBCLIENT_LIBS=""
13428
13429if test "$WITH_LIBSMBCLIENT" != "no"; then
13430
13431pkg_failed=no
13432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSMBCLIENT" >&5
13433$as_echo_n "checking for LIBSMBCLIENT... " >&6; }
13434
13435if test -n "$LIBSMBCLIENT_CFLAGS"; then
13436    pkg_cv_LIBSMBCLIENT_CFLAGS="$LIBSMBCLIENT_CFLAGS"
13437 elif test -n "$PKG_CONFIG"; then
13438    if test -n "$PKG_CONFIG" && \
13439    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsmbclient\""; } >&5
13440  ($PKG_CONFIG --exists --print-errors "libsmbclient") 2>&5
13441  ac_status=$?
13442  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13443  test $ac_status = 0; }; then
13444  pkg_cv_LIBSMBCLIENT_CFLAGS=`$PKG_CONFIG --cflags "libsmbclient" 2>/dev/null`
13445else
13446  pkg_failed=yes
13447fi
13448 else
13449    pkg_failed=untried
13450fi
13451if test -n "$LIBSMBCLIENT_LIBS"; then
13452    pkg_cv_LIBSMBCLIENT_LIBS="$LIBSMBCLIENT_LIBS"
13453 elif test -n "$PKG_CONFIG"; then
13454    if test -n "$PKG_CONFIG" && \
13455    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsmbclient\""; } >&5
13456  ($PKG_CONFIG --exists --print-errors "libsmbclient") 2>&5
13457  ac_status=$?
13458  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13459  test $ac_status = 0; }; then
13460  pkg_cv_LIBSMBCLIENT_LIBS=`$PKG_CONFIG --libs "libsmbclient" 2>/dev/null`
13461else
13462  pkg_failed=yes
13463fi
13464 else
13465    pkg_failed=untried
13466fi
13467
13468
13469
13470if test $pkg_failed = yes; then
13471   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13472$as_echo "no" >&6; }
13473
13474if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13475        _pkg_short_errors_supported=yes
13476else
13477        _pkg_short_errors_supported=no
13478fi
13479        if test $_pkg_short_errors_supported = yes; then
13480	        LIBSMBCLIENT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libsmbclient" 2>&1`
13481        else
13482	        LIBSMBCLIENT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libsmbclient" 2>&1`
13483        fi
13484	# Put the nasty error message in config.log where it belongs
13485	echo "$LIBSMBCLIENT_PKG_ERRORS" >&5
13486
13487
13488
13489		if test "$WITH_LIBSMBCLINET" != "yes"; then
13490			LIBSMBCLIENT_CFLAGS="-I$WITH_LIBSMBCLIENT/include"
13491			LIBSMBCLIENT_LIBS="-L$WITH_LIBSMBCLIENT/bin -lsmbclient"
13492		else
13493			for ac_header in libsmbclient.h
13494do :
13495  ac_fn_c_check_header_mongrel "$LINENO" "libsmbclient.h" "ac_cv_header_libsmbclient_h" "$ac_includes_default"
13496if test "x$ac_cv_header_libsmbclient_h" = x""yes; then :
13497  cat >>confdefs.h <<_ACEOF
13498#define HAVE_LIBSMBCLIENT_H 1
13499_ACEOF
13500
13501				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for smbc_open in -lsmbclient" >&5
13502$as_echo_n "checking for smbc_open in -lsmbclient... " >&6; }
13503if test "${ac_cv_lib_smbclient_smbc_open+set}" = set; then :
13504  $as_echo_n "(cached) " >&6
13505else
13506  ac_check_lib_save_LIBS=$LIBS
13507LIBS="-lsmbclient  $LIBS"
13508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13509/* end confdefs.h.  */
13510
13511/* Override any GCC internal prototype to avoid an error.
13512   Use char because int might match the return type of a GCC
13513   builtin and then its argument prototype would still apply.  */
13514#ifdef __cplusplus
13515extern "C"
13516#endif
13517char smbc_open ();
13518int
13519main ()
13520{
13521return smbc_open ();
13522  ;
13523  return 0;
13524}
13525_ACEOF
13526if ac_fn_c_try_link "$LINENO"; then :
13527  ac_cv_lib_smbclient_smbc_open=yes
13528else
13529  ac_cv_lib_smbclient_smbc_open=no
13530fi
13531rm -f core conftest.err conftest.$ac_objext \
13532    conftest$ac_exeext conftest.$ac_ext
13533LIBS=$ac_check_lib_save_LIBS
13534fi
13535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_smbclient_smbc_open" >&5
13536$as_echo "$ac_cv_lib_smbclient_smbc_open" >&6; }
13537if test "x$ac_cv_lib_smbclient_smbc_open" = x""yes; then :
13538
13539						LIBSMBCLIENT_CFLAGS=""
13540						LIBSMBCLIENT_LIBS="-lsmbclient"
13541
13542else
13543
13544					as_fn_error $? "libsmbclient not found" "$LINENO" 5
13545
13546
13547fi
13548
13549else
13550
13551					as_fn_error $? "libsmbclient not found" "$LINENO" 5
13552
13553
13554fi
13555
13556done
13557
13558		fi
13559
13560elif test $pkg_failed = untried; then
13561     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13562$as_echo "no" >&6; }
13563
13564
13565		if test "$WITH_LIBSMBCLINET" != "yes"; then
13566			LIBSMBCLIENT_CFLAGS="-I$WITH_LIBSMBCLIENT/include"
13567			LIBSMBCLIENT_LIBS="-L$WITH_LIBSMBCLIENT/bin -lsmbclient"
13568		else
13569			for ac_header in libsmbclient.h
13570do :
13571  ac_fn_c_check_header_mongrel "$LINENO" "libsmbclient.h" "ac_cv_header_libsmbclient_h" "$ac_includes_default"
13572if test "x$ac_cv_header_libsmbclient_h" = x""yes; then :
13573  cat >>confdefs.h <<_ACEOF
13574#define HAVE_LIBSMBCLIENT_H 1
13575_ACEOF
13576
13577				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for smbc_open in -lsmbclient" >&5
13578$as_echo_n "checking for smbc_open in -lsmbclient... " >&6; }
13579if test "${ac_cv_lib_smbclient_smbc_open+set}" = set; then :
13580  $as_echo_n "(cached) " >&6
13581else
13582  ac_check_lib_save_LIBS=$LIBS
13583LIBS="-lsmbclient  $LIBS"
13584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13585/* end confdefs.h.  */
13586
13587/* Override any GCC internal prototype to avoid an error.
13588   Use char because int might match the return type of a GCC
13589   builtin and then its argument prototype would still apply.  */
13590#ifdef __cplusplus
13591extern "C"
13592#endif
13593char smbc_open ();
13594int
13595main ()
13596{
13597return smbc_open ();
13598  ;
13599  return 0;
13600}
13601_ACEOF
13602if ac_fn_c_try_link "$LINENO"; then :
13603  ac_cv_lib_smbclient_smbc_open=yes
13604else
13605  ac_cv_lib_smbclient_smbc_open=no
13606fi
13607rm -f core conftest.err conftest.$ac_objext \
13608    conftest$ac_exeext conftest.$ac_ext
13609LIBS=$ac_check_lib_save_LIBS
13610fi
13611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_smbclient_smbc_open" >&5
13612$as_echo "$ac_cv_lib_smbclient_smbc_open" >&6; }
13613if test "x$ac_cv_lib_smbclient_smbc_open" = x""yes; then :
13614
13615						LIBSMBCLIENT_CFLAGS=""
13616						LIBSMBCLIENT_LIBS="-lsmbclient"
13617
13618else
13619
13620					as_fn_error $? "libsmbclient not found" "$LINENO" 5
13621
13622
13623fi
13624
13625else
13626
13627					as_fn_error $? "libsmbclient not found" "$LINENO" 5
13628
13629
13630fi
13631
13632done
13633
13634		fi
13635
13636else
13637	LIBSMBCLIENT_CFLAGS=$pkg_cv_LIBSMBCLIENT_CFLAGS
13638	LIBSMBCLIENT_LIBS=$pkg_cv_LIBSMBCLIENT_LIBS
13639        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13640$as_echo "yes" >&6; }
13641
13642fi
13643
13644
13645$as_echo "#define HAVE_LIBSMBCLIENT 1" >>confdefs.h
13646
13647    	$as_echo "#define HAVE_LIBSMBCLIENT_H 1" >>confdefs.h
13648
13649fi
13650
13651
13652
13653
13654
13655
13656
13657MYSQL_INCLUDE=""
13658MYSQL_LIBS=""
13659
13660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
13661$as_echo_n "checking for MySQL support... " >&6; }
13662
13663# Check whether --with-mysql was given.
13664if test "${with_mysql+set}" = set; then :
13665  withval=$with_mysql; WITH_MYSQL=$withval
13666else
13667  WITH_MYSQL=no
13668fi
13669
13670
13671if test "$WITH_MYSQL" != "no"; then
13672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13673$as_echo "yes" >&6; }
13674  if test "$WITH_MYSQL" = "yes"; then
13675    # Extract the first word of "mysql_config", so it can be a program name with args.
13676set dummy mysql_config; ac_word=$2
13677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13678$as_echo_n "checking for $ac_word... " >&6; }
13679if test "${ac_cv_path_MYSQL_CONFIG+set}" = set; then :
13680  $as_echo_n "(cached) " >&6
13681else
13682  case $MYSQL_CONFIG in
13683  [\\/]* | ?:[\\/]*)
13684  ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
13685  ;;
13686  *)
13687  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13688for as_dir in $PATH
13689do
13690  IFS=$as_save_IFS
13691  test -z "$as_dir" && as_dir=.
13692    for ac_exec_ext in '' $ac_executable_extensions; do
13693  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13694    ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13695    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13696    break 2
13697  fi
13698done
13699  done
13700IFS=$as_save_IFS
13701
13702  ;;
13703esac
13704fi
13705MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
13706if test -n "$MYSQL_CONFIG"; then
13707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
13708$as_echo "$MYSQL_CONFIG" >&6; }
13709else
13710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13711$as_echo "no" >&6; }
13712fi
13713
13714
13715  else
13716    MYSQL_CONFIG=$WITH_MYSQL
13717  fi
13718
13719  if test "$MYSQL_CONFIG" = ""; then
13720    as_fn_error $? "mysql_config is not found" "$LINENO" 5
13721  fi
13722  if test \! -x $MYSQL_CONFIG; then
13723    as_fn_error use --with-mysql=path-to-mysql_config "mysql_config not exists or not executable" "$LINENO" 5
13724  fi
13725
13726  if $MYSQL_CONFIG | grep -- '--include' > /dev/null ; then
13727    MYSQL_INCLUDE="`$MYSQL_CONFIG --include | sed s/\'//g`"
13728  else
13729    MYSQL_INCLUDE="`$MYSQL_CONFIG --cflags | sed s/\'//g`"
13730  fi
13731  MYSQL_LIBS="`$MYSQL_CONFIG --libs | sed s/\'//g`"
13732
13733  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL includes at" >&5
13734$as_echo_n "checking for MySQL includes at... " >&6; }
13735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_INCLUDE" >&5
13736$as_echo "$MYSQL_INCLUDE" >&6; }
13737
13738  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL libraries at" >&5
13739$as_echo_n "checking for MySQL libraries at... " >&6; }
13740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_LIBS" >&5
13741$as_echo "$MYSQL_LIBS" >&6; }
13742  old_CPPFLAGS="$CPPFLAGS"
13743  CPPFLAGS="$CPPFLAGS $MYSQL_INCLUDE"
13744  for ac_header in errmsg.h mysql.h
13745do :
13746  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13747ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13748if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13749  cat >>confdefs.h <<_ACEOF
13750#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13751_ACEOF
13752
13753fi
13754
13755done
13756
13757  CPPFLAGS="$old_CPPFLAGS"
13758
13759
13760$as_echo "#define HAVE_MYSQL 1" >>confdefs.h
13761
13762else
13763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13764$as_echo "no" >&6; }
13765fi
13766
13767
13768
13769
13770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP support" >&5
13771$as_echo_n "checking for LDAP support... " >&6; }
13772
13773# Check whether --with-ldap was given.
13774if test "${with_ldap+set}" = set; then :
13775  withval=$with_ldap; WITH_LDAP=$withval
13776else
13777  WITH_LDAP=no
13778fi
13779
13780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
13781$as_echo "$withval" >&6; }
13782if test "$WITH_LDAP" != "no"; then
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap" >&5
13784$as_echo_n "checking for ldap_bind in -lldap... " >&6; }
13785if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then :
13786  $as_echo_n "(cached) " >&6
13787else
13788  ac_check_lib_save_LIBS=$LIBS
13789LIBS="-lldap  $LIBS"
13790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13791/* end confdefs.h.  */
13792
13793/* Override any GCC internal prototype to avoid an error.
13794   Use char because int might match the return type of a GCC
13795   builtin and then its argument prototype would still apply.  */
13796#ifdef __cplusplus
13797extern "C"
13798#endif
13799char ldap_bind ();
13800int
13801main ()
13802{
13803return ldap_bind ();
13804  ;
13805  return 0;
13806}
13807_ACEOF
13808if ac_fn_c_try_link "$LINENO"; then :
13809  ac_cv_lib_ldap_ldap_bind=yes
13810else
13811  ac_cv_lib_ldap_ldap_bind=no
13812fi
13813rm -f core conftest.err conftest.$ac_objext \
13814    conftest$ac_exeext conftest.$ac_ext
13815LIBS=$ac_check_lib_save_LIBS
13816fi
13817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_bind" >&5
13818$as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
13819if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then :
13820
13821  for ac_header in ldap.h
13822do :
13823  ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
13824if test "x$ac_cv_header_ldap_h" = x""yes; then :
13825  cat >>confdefs.h <<_ACEOF
13826#define HAVE_LDAP_H 1
13827_ACEOF
13828
13829    LDAP_LIB=-lldap
13830
13831$as_echo "#define HAVE_LIBLDAP 1" >>confdefs.h
13832
13833    $as_echo "#define HAVE_LDAP_H 1" >>confdefs.h
13834
13835
13836$as_echo "#define LDAP_DEPRECATED 1" >>confdefs.h
13837
13838
13839fi
13840
13841done
13842
13843
13844fi
13845
13846
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_printf in -llber" >&5
13848$as_echo_n "checking for ber_printf in -llber... " >&6; }
13849if test "${ac_cv_lib_lber_ber_printf+set}" = set; then :
13850  $as_echo_n "(cached) " >&6
13851else
13852  ac_check_lib_save_LIBS=$LIBS
13853LIBS="-llber  $LIBS"
13854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13855/* end confdefs.h.  */
13856
13857/* Override any GCC internal prototype to avoid an error.
13858   Use char because int might match the return type of a GCC
13859   builtin and then its argument prototype would still apply.  */
13860#ifdef __cplusplus
13861extern "C"
13862#endif
13863char ber_printf ();
13864int
13865main ()
13866{
13867return ber_printf ();
13868  ;
13869  return 0;
13870}
13871_ACEOF
13872if ac_fn_c_try_link "$LINENO"; then :
13873  ac_cv_lib_lber_ber_printf=yes
13874else
13875  ac_cv_lib_lber_ber_printf=no
13876fi
13877rm -f core conftest.err conftest.$ac_objext \
13878    conftest$ac_exeext conftest.$ac_ext
13879LIBS=$ac_check_lib_save_LIBS
13880fi
13881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_printf" >&5
13882$as_echo "$ac_cv_lib_lber_ber_printf" >&6; }
13883if test "x$ac_cv_lib_lber_ber_printf" = x""yes; then :
13884
13885  for ac_header in lber.h
13886do :
13887  ac_fn_c_check_header_mongrel "$LINENO" "lber.h" "ac_cv_header_lber_h" "$ac_includes_default"
13888if test "x$ac_cv_header_lber_h" = x""yes; then :
13889  cat >>confdefs.h <<_ACEOF
13890#define HAVE_LBER_H 1
13891_ACEOF
13892
13893    LBER_LIB=-llber
13894
13895$as_echo "#define HAVE_LIBLBER 1" >>confdefs.h
13896
13897    $as_echo "#define HAVE_LBER_H 1" >>confdefs.h
13898
13899
13900fi
13901
13902done
13903
13904
13905fi
13906
13907
13908fi
13909
13910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended attributes support" >&5
13911$as_echo_n "checking for extended attributes support... " >&6; }
13912
13913# Check whether --with-attr was given.
13914if test "${with_attr+set}" = set; then :
13915  withval=$with_attr; WITH_ATTR=$withval
13916else
13917  WITH_ATTR=no
13918fi
13919
13920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
13921$as_echo "$withval" >&6; }
13922if test "$WITH_ATTR" != "no"; then
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for attr_get in -lattr" >&5
13924$as_echo_n "checking for attr_get in -lattr... " >&6; }
13925if test "${ac_cv_lib_attr_attr_get+set}" = set; then :
13926  $as_echo_n "(cached) " >&6
13927else
13928  ac_check_lib_save_LIBS=$LIBS
13929LIBS="-lattr  $LIBS"
13930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13931/* end confdefs.h.  */
13932
13933/* Override any GCC internal prototype to avoid an error.
13934   Use char because int might match the return type of a GCC
13935   builtin and then its argument prototype would still apply.  */
13936#ifdef __cplusplus
13937extern "C"
13938#endif
13939char attr_get ();
13940int
13941main ()
13942{
13943return attr_get ();
13944  ;
13945  return 0;
13946}
13947_ACEOF
13948if ac_fn_c_try_link "$LINENO"; then :
13949  ac_cv_lib_attr_attr_get=yes
13950else
13951  ac_cv_lib_attr_attr_get=no
13952fi
13953rm -f core conftest.err conftest.$ac_objext \
13954    conftest$ac_exeext conftest.$ac_ext
13955LIBS=$ac_check_lib_save_LIBS
13956fi
13957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_attr_get" >&5
13958$as_echo "$ac_cv_lib_attr_attr_get" >&6; }
13959if test "x$ac_cv_lib_attr_attr_get" = x""yes; then :
13960
13961	for ac_header in attr/attributes.h
13962do :
13963  ac_fn_c_check_header_mongrel "$LINENO" "attr/attributes.h" "ac_cv_header_attr_attributes_h" "$ac_includes_default"
13964if test "x$ac_cv_header_attr_attributes_h" = x""yes; then :
13965  cat >>confdefs.h <<_ACEOF
13966#define HAVE_ATTR_ATTRIBUTES_H 1
13967_ACEOF
13968
13969		ATTR_LIB=-lattr
13970
13971$as_echo "#define HAVE_XATTR 1" >>confdefs.h
13972
13973		$as_echo "#define HAVE_ATTR_ATTRIBUTES_H 1" >>confdefs.h
13974
13975
13976fi
13977
13978done
13979
13980
13981fi
13982
13983
13984fi
13985
13986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13987$as_echo_n "checking for library containing socket... " >&6; }
13988if test "${ac_cv_search_socket+set}" = set; then :
13989  $as_echo_n "(cached) " >&6
13990else
13991  ac_func_search_save_LIBS=$LIBS
13992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13993/* end confdefs.h.  */
13994
13995/* Override any GCC internal prototype to avoid an error.
13996   Use char because int might match the return type of a GCC
13997   builtin and then its argument prototype would still apply.  */
13998#ifdef __cplusplus
13999extern "C"
14000#endif
14001char socket ();
14002int
14003main ()
14004{
14005return socket ();
14006  ;
14007  return 0;
14008}
14009_ACEOF
14010for ac_lib in '' socket; do
14011  if test -z "$ac_lib"; then
14012    ac_res="none required"
14013  else
14014    ac_res=-l$ac_lib
14015    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14016  fi
14017  if ac_fn_c_try_link "$LINENO"; then :
14018  ac_cv_search_socket=$ac_res
14019fi
14020rm -f core conftest.err conftest.$ac_objext \
14021    conftest$ac_exeext
14022  if test "${ac_cv_search_socket+set}" = set; then :
14023  break
14024fi
14025done
14026if test "${ac_cv_search_socket+set}" = set; then :
14027
14028else
14029  ac_cv_search_socket=no
14030fi
14031rm conftest.$ac_ext
14032LIBS=$ac_func_search_save_LIBS
14033fi
14034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
14035$as_echo "$ac_cv_search_socket" >&6; }
14036ac_res=$ac_cv_search_socket
14037if test "$ac_res" != no; then :
14038  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14039
14040fi
14041
14042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
14043$as_echo_n "checking for library containing gethostbyname... " >&6; }
14044if test "${ac_cv_search_gethostbyname+set}" = set; then :
14045  $as_echo_n "(cached) " >&6
14046else
14047  ac_func_search_save_LIBS=$LIBS
14048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14049/* end confdefs.h.  */
14050
14051/* Override any GCC internal prototype to avoid an error.
14052   Use char because int might match the return type of a GCC
14053   builtin and then its argument prototype would still apply.  */
14054#ifdef __cplusplus
14055extern "C"
14056#endif
14057char gethostbyname ();
14058int
14059main ()
14060{
14061return gethostbyname ();
14062  ;
14063  return 0;
14064}
14065_ACEOF
14066for ac_lib in '' nsl socket; do
14067  if test -z "$ac_lib"; then
14068    ac_res="none required"
14069  else
14070    ac_res=-l$ac_lib
14071    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14072  fi
14073  if ac_fn_c_try_link "$LINENO"; then :
14074  ac_cv_search_gethostbyname=$ac_res
14075fi
14076rm -f core conftest.err conftest.$ac_objext \
14077    conftest$ac_exeext
14078  if test "${ac_cv_search_gethostbyname+set}" = set; then :
14079  break
14080fi
14081done
14082if test "${ac_cv_search_gethostbyname+set}" = set; then :
14083
14084else
14085  ac_cv_search_gethostbyname=no
14086fi
14087rm conftest.$ac_ext
14088LIBS=$ac_func_search_save_LIBS
14089fi
14090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
14091$as_echo "$ac_cv_search_gethostbyname" >&6; }
14092ac_res=$ac_cv_search_gethostbyname
14093if test "$ac_res" != no; then :
14094  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14095
14096fi
14097
14098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
14099$as_echo_n "checking for library containing hstrerror... " >&6; }
14100if test "${ac_cv_search_hstrerror+set}" = set; then :
14101  $as_echo_n "(cached) " >&6
14102else
14103  ac_func_search_save_LIBS=$LIBS
14104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14105/* end confdefs.h.  */
14106
14107/* Override any GCC internal prototype to avoid an error.
14108   Use char because int might match the return type of a GCC
14109   builtin and then its argument prototype would still apply.  */
14110#ifdef __cplusplus
14111extern "C"
14112#endif
14113char hstrerror ();
14114int
14115main ()
14116{
14117return hstrerror ();
14118  ;
14119  return 0;
14120}
14121_ACEOF
14122for ac_lib in '' resolv; do
14123  if test -z "$ac_lib"; then
14124    ac_res="none required"
14125  else
14126    ac_res=-l$ac_lib
14127    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14128  fi
14129  if ac_fn_c_try_link "$LINENO"; then :
14130  ac_cv_search_hstrerror=$ac_res
14131fi
14132rm -f core conftest.err conftest.$ac_objext \
14133    conftest$ac_exeext
14134  if test "${ac_cv_search_hstrerror+set}" = set; then :
14135  break
14136fi
14137done
14138if test "${ac_cv_search_hstrerror+set}" = set; then :
14139
14140else
14141  ac_cv_search_hstrerror=no
14142fi
14143rm conftest.$ac_ext
14144LIBS=$ac_func_search_save_LIBS
14145fi
14146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
14147$as_echo "$ac_cv_search_hstrerror" >&6; }
14148ac_res=$ac_cv_search_hstrerror
14149if test "$ac_res" != no; then :
14150  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14151
14152fi
14153
14154
14155save_LIBS=$LIBS
14156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14157$as_echo_n "checking for library containing dlopen... " >&6; }
14158if test "${ac_cv_search_dlopen+set}" = set; then :
14159  $as_echo_n "(cached) " >&6
14160else
14161  ac_func_search_save_LIBS=$LIBS
14162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14163/* end confdefs.h.  */
14164
14165/* Override any GCC internal prototype to avoid an error.
14166   Use char because int might match the return type of a GCC
14167   builtin and then its argument prototype would still apply.  */
14168#ifdef __cplusplus
14169extern "C"
14170#endif
14171char dlopen ();
14172int
14173main ()
14174{
14175return dlopen ();
14176  ;
14177  return 0;
14178}
14179_ACEOF
14180for ac_lib in '' dl; do
14181  if test -z "$ac_lib"; then
14182    ac_res="none required"
14183  else
14184    ac_res=-l$ac_lib
14185    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14186  fi
14187  if ac_fn_c_try_link "$LINENO"; then :
14188  ac_cv_search_dlopen=$ac_res
14189fi
14190rm -f core conftest.err conftest.$ac_objext \
14191    conftest$ac_exeext
14192  if test "${ac_cv_search_dlopen+set}" = set; then :
14193  break
14194fi
14195done
14196if test "${ac_cv_search_dlopen+set}" = set; then :
14197
14198else
14199  ac_cv_search_dlopen=no
14200fi
14201rm conftest.$ac_ext
14202LIBS=$ac_func_search_save_LIBS
14203fi
14204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14205$as_echo "$ac_cv_search_dlopen" >&6; }
14206ac_res=$ac_cv_search_dlopen
14207if test "$ac_res" != no; then :
14208  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14209
14210  for ac_header in dlfcn.h
14211do :
14212  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
14213if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14214  cat >>confdefs.h <<_ACEOF
14215#define HAVE_DLFCN_H 1
14216_ACEOF
14217
14218    if test "$ac_cv_search_dlopen" != no; then
14219      test "$ac_cv_search_dlopen" = "none required" || DL_LIB="$ac_cv_search_dlopen"
14220    fi
14221
14222
14223$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
14224
14225    $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
14226
14227
14228fi
14229
14230done
14231
14232
14233fi
14234
14235LIBS=$save_LIBS
14236
14237
14238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for valgrind" >&5
14239$as_echo_n "checking for valgrind... " >&6; }
14240
14241# Check whether --with-valgrind was given.
14242if test "${with_valgrind+set}" = set; then :
14243  withval=$with_valgrind; WITH_VALGRIND=$withval
14244else
14245  WITH_VALGRIND=no
14246fi
14247
14248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_VALGRIND" >&5
14249$as_echo "$WITH_VALGRIND" >&6; }
14250if test "$WITH_VALGRIND" != "no"; then
14251 for ac_header in valgrind/valgrind.h
14252do :
14253  ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
14254if test "x$ac_cv_header_valgrind_valgrind_h" = x""yes; then :
14255  cat >>confdefs.h <<_ACEOF
14256#define HAVE_VALGRIND_VALGRIND_H 1
14257_ACEOF
14258
14259fi
14260
14261done
14262
14263fi
14264
14265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
14266$as_echo_n "checking for OpenSSL... " >&6; }
14267
14268# Check whether --with-openssl was given.
14269if test "${with_openssl+set}" = set; then :
14270  withval=$with_openssl; WITH_OPENSSL=$withval
14271else
14272  WITH_OPENSSL=no
14273fi
14274
14275
14276if test "$WITH_OPENSSL" != "no"; then
14277    use_openssl=yes
14278    if test "$WITH_OPENSSL" != "yes"; then
14279	CPPFLAGS="$CPPFLAGS -I$WITH_OPENSSL/include"
14280	LDFLAGS="$LDFLAGS -L$WITH_OPENSSL/lib"
14281    fi
14282else
14283    use_openssl=no
14284fi
14285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_openssl" >&5
14286$as_echo "$use_openssl" >&6; }
14287
14288
14289# Check whether --with-openssl-includes was given.
14290if test "${with_openssl_includes+set}" = set; then :
14291  withval=$with_openssl_includes;  use_openssl=yes CPPFLAGS="$CPPFLAGS -I$withval"
14292
14293fi
14294
14295
14296
14297# Check whether --with-openssl-libs was given.
14298if test "${with_openssl_libs+set}" = set; then :
14299  withval=$with_openssl_libs;  use_openssl=yes LDFLAGS="$LDFLAGS -L$withval"
14300
14301fi
14302
14303
14304
14305# Check whether --with-kerberos5 was given.
14306if test "${with_kerberos5+set}" = set; then :
14307  withval=$with_kerberos5;  use_kerberos=yes
14308else
14309  use_kerberos=no
14310
14311fi
14312
14313
14314if test "x$use_openssl" = "xyes"; then
14315    if test "x$use_kerberos" != "xyes"; then
14316        CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
14317    fi
14318
14319    for ac_header in openssl/ssl.h
14320do :
14321  ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
14322if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then :
14323  cat >>confdefs.h <<_ACEOF
14324#define HAVE_OPENSSL_SSL_H 1
14325_ACEOF
14326
14327fi
14328
14329done
14330
14331    OLDLIBS="$LIBS"
14332    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIO_f_base64 in -lcrypto" >&5
14333$as_echo_n "checking for BIO_f_base64 in -lcrypto... " >&6; }
14334if test "${ac_cv_lib_crypto_BIO_f_base64+set}" = set; then :
14335  $as_echo_n "(cached) " >&6
14336else
14337  ac_check_lib_save_LIBS=$LIBS
14338LIBS="-lcrypto  $LIBS"
14339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14340/* end confdefs.h.  */
14341
14342/* Override any GCC internal prototype to avoid an error.
14343   Use char because int might match the return type of a GCC
14344   builtin and then its argument prototype would still apply.  */
14345#ifdef __cplusplus
14346extern "C"
14347#endif
14348char BIO_f_base64 ();
14349int
14350main ()
14351{
14352return BIO_f_base64 ();
14353  ;
14354  return 0;
14355}
14356_ACEOF
14357if ac_fn_c_try_link "$LINENO"; then :
14358  ac_cv_lib_crypto_BIO_f_base64=yes
14359else
14360  ac_cv_lib_crypto_BIO_f_base64=no
14361fi
14362rm -f core conftest.err conftest.$ac_objext \
14363    conftest$ac_exeext conftest.$ac_ext
14364LIBS=$ac_check_lib_save_LIBS
14365fi
14366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BIO_f_base64" >&5
14367$as_echo "$ac_cv_lib_crypto_BIO_f_base64" >&6; }
14368if test "x$ac_cv_lib_crypto_BIO_f_base64" = x""yes; then :
14369
14370      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
14371$as_echo_n "checking for SSL_new in -lssl... " >&6; }
14372if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then :
14373  $as_echo_n "(cached) " >&6
14374else
14375  ac_check_lib_save_LIBS=$LIBS
14376LIBS="-lssl  -lcrypto "$DL_LIB"  $LIBS"
14377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14378/* end confdefs.h.  */
14379
14380/* Override any GCC internal prototype to avoid an error.
14381   Use char because int might match the return type of a GCC
14382   builtin and then its argument prototype would still apply.  */
14383#ifdef __cplusplus
14384extern "C"
14385#endif
14386char SSL_new ();
14387int
14388main ()
14389{
14390return SSL_new ();
14391  ;
14392  return 0;
14393}
14394_ACEOF
14395if ac_fn_c_try_link "$LINENO"; then :
14396  ac_cv_lib_ssl_SSL_new=yes
14397else
14398  ac_cv_lib_ssl_SSL_new=no
14399fi
14400rm -f core conftest.err conftest.$ac_objext \
14401    conftest$ac_exeext conftest.$ac_ext
14402LIBS=$ac_check_lib_save_LIBS
14403fi
14404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
14405$as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
14406if test "x$ac_cv_lib_ssl_SSL_new" = x""yes; then :
14407   SSL_LIB="-lssl -lcrypto"
14408
14409$as_echo "#define HAVE_LIBSSL /**/" >>confdefs.h
14410
14411fi
14412
14413
14414fi
14415
14416    LIBS="$OLDLIBS"
14417
14418fi
14419
14420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl regular expressions support" >&5
14421$as_echo_n "checking for perl regular expressions support... " >&6; }
14422
14423# Check whether --with-pcre was given.
14424if test "${with_pcre+set}" = set; then :
14425  withval=$with_pcre; WITH_PCRE=$withval
14426else
14427  WITH_PCRE=yes
14428fi
14429
14430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_PCRE" >&5
14431$as_echo "$WITH_PCRE" >&6; }
14432
14433if test "$WITH_PCRE" != "no"; then
14434  # Extract the first word of "pcre-config", so it can be a program name with args.
14435set dummy pcre-config; ac_word=$2
14436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14437$as_echo_n "checking for $ac_word... " >&6; }
14438if test "${ac_cv_path_PCRECONFIG+set}" = set; then :
14439  $as_echo_n "(cached) " >&6
14440else
14441  case $PCRECONFIG in
14442  [\\/]* | ?:[\\/]*)
14443  ac_cv_path_PCRECONFIG="$PCRECONFIG" # Let the user override the test with a path.
14444  ;;
14445  *)
14446  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14447for as_dir in $PATH
14448do
14449  IFS=$as_save_IFS
14450  test -z "$as_dir" && as_dir=.
14451    for ac_exec_ext in '' $ac_executable_extensions; do
14452  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14453    ac_cv_path_PCRECONFIG="$as_dir/$ac_word$ac_exec_ext"
14454    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14455    break 2
14456  fi
14457done
14458  done
14459IFS=$as_save_IFS
14460
14461  ;;
14462esac
14463fi
14464PCRECONFIG=$ac_cv_path_PCRECONFIG
14465if test -n "$PCRECONFIG"; then
14466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRECONFIG" >&5
14467$as_echo "$PCRECONFIG" >&6; }
14468else
14469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14470$as_echo "no" >&6; }
14471fi
14472
14473
14474
14475  if test x"$PCRECONFIG" != x; then
14476    PCRE_LIB=`$PCRECONFIG --libs`
14477    CPPFLAGS="$CPPFLAGS `$PCRECONFIG --cflags`"
14478
14479$as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h
14480
14481
14482$as_echo "#define HAVE_PCRE_H 1" >>confdefs.h
14483
14484  else
14485     as_fn_error $? "pcre-config not found, install the pcre-devel package or build with --without-pcre" "$LINENO" 5
14486  fi
14487fi
14488
14489
14490
14491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib support" >&5
14492$as_echo_n "checking for zlib support... " >&6; }
14493
14494# Check whether --with-zlib was given.
14495if test "${with_zlib+set}" = set; then :
14496  withval=$with_zlib; WITH_ZLIB=$withval
14497else
14498  WITH_ZLIB=yes
14499fi
14500
14501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_ZLIB" >&5
14502$as_echo "$WITH_ZLIB" >&6; }
14503
14504if test "$WITH_ZLIB" != "no"; then
14505  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
14506$as_echo_n "checking for deflate in -lz... " >&6; }
14507if test "${ac_cv_lib_z_deflate+set}" = set; then :
14508  $as_echo_n "(cached) " >&6
14509else
14510  ac_check_lib_save_LIBS=$LIBS
14511LIBS="-lz  $LIBS"
14512cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14513/* end confdefs.h.  */
14514
14515/* Override any GCC internal prototype to avoid an error.
14516   Use char because int might match the return type of a GCC
14517   builtin and then its argument prototype would still apply.  */
14518#ifdef __cplusplus
14519extern "C"
14520#endif
14521char deflate ();
14522int
14523main ()
14524{
14525return deflate ();
14526  ;
14527  return 0;
14528}
14529_ACEOF
14530if ac_fn_c_try_link "$LINENO"; then :
14531  ac_cv_lib_z_deflate=yes
14532else
14533  ac_cv_lib_z_deflate=no
14534fi
14535rm -f core conftest.err conftest.$ac_objext \
14536    conftest$ac_exeext conftest.$ac_ext
14537LIBS=$ac_check_lib_save_LIBS
14538fi
14539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
14540$as_echo "$ac_cv_lib_z_deflate" >&6; }
14541if test "x$ac_cv_lib_z_deflate" = x""yes; then :
14542
14543    for ac_header in zlib.h
14544do :
14545  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
14546if test "x$ac_cv_header_zlib_h" = x""yes; then :
14547  cat >>confdefs.h <<_ACEOF
14548#define HAVE_ZLIB_H 1
14549_ACEOF
14550
14551      Z_LIB=-lz
14552
14553$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
14554
14555      $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
14556
14557
14558fi
14559
14560done
14561
14562
14563fi
14564
14565  if test x$Z_LIB = x; then
14566     as_fn_error $? "zlib-headers and/or libs where not found, install them or build with --without-zlib" "$LINENO" 5
14567  fi
14568fi
14569
14570
14571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bzip2 support" >&5
14572$as_echo_n "checking for bzip2 support... " >&6; }
14573
14574# Check whether --with-bzip2 was given.
14575if test "${with_bzip2+set}" = set; then :
14576  withval=$with_bzip2; WITH_BZIP2=$withval
14577else
14578  WITH_BZIP2=yes
14579fi
14580
14581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_BZIP2" >&5
14582$as_echo "$WITH_BZIP2" >&6; }
14583
14584if test "$WITH_BZIP2" != "no"; then
14585  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompress in -lbz2" >&5
14586$as_echo_n "checking for BZ2_bzCompress in -lbz2... " >&6; }
14587if test "${ac_cv_lib_bz2_BZ2_bzCompress+set}" = set; then :
14588  $as_echo_n "(cached) " >&6
14589else
14590  ac_check_lib_save_LIBS=$LIBS
14591LIBS="-lbz2  $LIBS"
14592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14593/* end confdefs.h.  */
14594
14595/* Override any GCC internal prototype to avoid an error.
14596   Use char because int might match the return type of a GCC
14597   builtin and then its argument prototype would still apply.  */
14598#ifdef __cplusplus
14599extern "C"
14600#endif
14601char BZ2_bzCompress ();
14602int
14603main ()
14604{
14605return BZ2_bzCompress ();
14606  ;
14607  return 0;
14608}
14609_ACEOF
14610if ac_fn_c_try_link "$LINENO"; then :
14611  ac_cv_lib_bz2_BZ2_bzCompress=yes
14612else
14613  ac_cv_lib_bz2_BZ2_bzCompress=no
14614fi
14615rm -f core conftest.err conftest.$ac_objext \
14616    conftest$ac_exeext conftest.$ac_ext
14617LIBS=$ac_check_lib_save_LIBS
14618fi
14619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompress" >&5
14620$as_echo "$ac_cv_lib_bz2_BZ2_bzCompress" >&6; }
14621if test "x$ac_cv_lib_bz2_BZ2_bzCompress" = x""yes; then :
14622
14623    for ac_header in bzlib.h
14624do :
14625  ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
14626if test "x$ac_cv_header_bzlib_h" = x""yes; then :
14627  cat >>confdefs.h <<_ACEOF
14628#define HAVE_BZLIB_H 1
14629_ACEOF
14630
14631      BZ_LIB=-lbz2
14632
14633$as_echo "#define HAVE_LIBBZ2 1" >>confdefs.h
14634
14635      $as_echo "#define HAVE_BZLIB_H 1" >>confdefs.h
14636
14637
14638fi
14639
14640done
14641
14642
14643fi
14644
14645  if test x$BZ_LIB = x; then
14646     as_fn_error $? "bzip2-headers and/or libs where not found, install them or build with --without-bzip2" "$LINENO" 5
14647  fi
14648fi
14649
14650
14651
14652
14653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAM" >&5
14654$as_echo_n "checking for FAM... " >&6; }
14655
14656# Check whether --with-fam was given.
14657if test "${with_fam+set}" = set; then :
14658  withval=$with_fam; WITH_FAM=$withval
14659else
14660  WITH_FAM=no
14661fi
14662
14663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_FAM" >&5
14664$as_echo "$WITH_FAM" >&6; }
14665
14666if test "$WITH_FAM" != "no"; then
14667  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAMOpen2 in -lfam" >&5
14668$as_echo_n "checking for FAMOpen2 in -lfam... " >&6; }
14669if test "${ac_cv_lib_fam_FAMOpen2+set}" = set; then :
14670  $as_echo_n "(cached) " >&6
14671else
14672  ac_check_lib_save_LIBS=$LIBS
14673LIBS="-lfam  $LIBS"
14674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14675/* end confdefs.h.  */
14676
14677/* Override any GCC internal prototype to avoid an error.
14678   Use char because int might match the return type of a GCC
14679   builtin and then its argument prototype would still apply.  */
14680#ifdef __cplusplus
14681extern "C"
14682#endif
14683char FAMOpen2 ();
14684int
14685main ()
14686{
14687return FAMOpen2 ();
14688  ;
14689  return 0;
14690}
14691_ACEOF
14692if ac_fn_c_try_link "$LINENO"; then :
14693  ac_cv_lib_fam_FAMOpen2=yes
14694else
14695  ac_cv_lib_fam_FAMOpen2=no
14696fi
14697rm -f core conftest.err conftest.$ac_objext \
14698    conftest$ac_exeext conftest.$ac_ext
14699LIBS=$ac_check_lib_save_LIBS
14700fi
14701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fam_FAMOpen2" >&5
14702$as_echo "$ac_cv_lib_fam_FAMOpen2" >&6; }
14703if test "x$ac_cv_lib_fam_FAMOpen2" = x""yes; then :
14704
14705    for ac_header in fam.h
14706do :
14707  ac_fn_c_check_header_mongrel "$LINENO" "fam.h" "ac_cv_header_fam_h" "$ac_includes_default"
14708if test "x$ac_cv_header_fam_h" = x""yes; then :
14709  cat >>confdefs.h <<_ACEOF
14710#define HAVE_FAM_H 1
14711_ACEOF
14712
14713      FAM_LIBS=-lfam
14714
14715$as_echo "#define HAVE_LIBFAM 1" >>confdefs.h
14716
14717
14718$as_echo "#define HAVE_FAM_H 1" >>confdefs.h
14719
14720
14721fi
14722
14723done
14724
14725
14726fi
14727
14728  if test "x$FAM_LIBS" = x; then
14729
14730pkg_failed=no
14731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAM" >&5
14732$as_echo_n "checking for FAM... " >&6; }
14733
14734if test -n "$FAM_CFLAGS"; then
14735    pkg_cv_FAM_CFLAGS="$FAM_CFLAGS"
14736 elif test -n "$PKG_CONFIG"; then
14737    if test -n "$PKG_CONFIG" && \
14738    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gamin >= 0.1.0\""; } >&5
14739  ($PKG_CONFIG --exists --print-errors "gamin >= 0.1.0") 2>&5
14740  ac_status=$?
14741  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14742  test $ac_status = 0; }; then
14743  pkg_cv_FAM_CFLAGS=`$PKG_CONFIG --cflags "gamin >= 0.1.0" 2>/dev/null`
14744else
14745  pkg_failed=yes
14746fi
14747 else
14748    pkg_failed=untried
14749fi
14750if test -n "$FAM_LIBS"; then
14751    pkg_cv_FAM_LIBS="$FAM_LIBS"
14752 elif test -n "$PKG_CONFIG"; then
14753    if test -n "$PKG_CONFIG" && \
14754    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gamin >= 0.1.0\""; } >&5
14755  ($PKG_CONFIG --exists --print-errors "gamin >= 0.1.0") 2>&5
14756  ac_status=$?
14757  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14758  test $ac_status = 0; }; then
14759  pkg_cv_FAM_LIBS=`$PKG_CONFIG --libs "gamin >= 0.1.0" 2>/dev/null`
14760else
14761  pkg_failed=yes
14762fi
14763 else
14764    pkg_failed=untried
14765fi
14766
14767
14768
14769if test $pkg_failed = yes; then
14770   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14771$as_echo "no" >&6; }
14772
14773if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14774        _pkg_short_errors_supported=yes
14775else
14776        _pkg_short_errors_supported=no
14777fi
14778        if test $_pkg_short_errors_supported = yes; then
14779	        FAM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gamin >= 0.1.0" 2>&1`
14780        else
14781	        FAM_PKG_ERRORS=`$PKG_CONFIG --print-errors "gamin >= 0.1.0" 2>&1`
14782        fi
14783	# Put the nasty error message in config.log where it belongs
14784	echo "$FAM_PKG_ERRORS" >&5
14785
14786	as_fn_error $? "Package requirements (gamin >= 0.1.0) were not met:
14787
14788$FAM_PKG_ERRORS
14789
14790Consider adjusting the PKG_CONFIG_PATH environment variable if you
14791installed software in a non-standard prefix.
14792
14793Alternatively, you may set the environment variables FAM_CFLAGS
14794and FAM_LIBS to avoid the need to call pkg-config.
14795See the pkg-config man page for more details." "$LINENO" 5
14796elif test $pkg_failed = untried; then
14797     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14798$as_echo "no" >&6; }
14799	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14800$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14801as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14802is in your PATH or set the PKG_CONFIG environment variable to the full
14803path to pkg-config.
14804
14805Alternatively, you may set the environment variables FAM_CFLAGS
14806and FAM_LIBS to avoid the need to call pkg-config.
14807See the pkg-config man page for more details.
14808
14809To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14810See \`config.log' for more details" "$LINENO" 5 ; }
14811else
14812	FAM_CFLAGS=$pkg_cv_FAM_CFLAGS
14813	FAM_LIBS=$pkg_cv_FAM_LIBS
14814        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14815$as_echo "yes" >&6; }
14816
14817
14818$as_echo "#define HAVE_LIBFAM 1" >>confdefs.h
14819
14820
14821$as_echo "#define HAVE_FAM_H 1" >>confdefs.h
14822
14823
14824fi
14825  fi
14826  OLD_LIBS=$LIBS
14827  LIBS=$FAM_LIBS
14828  for ac_func in FAMNoExists
14829do :
14830  ac_fn_c_check_func "$LINENO" "FAMNoExists" "ac_cv_func_FAMNoExists"
14831if test "x$ac_cv_func_FAMNoExists" = x""yes; then :
14832  cat >>confdefs.h <<_ACEOF
14833#define HAVE_FAMNOEXISTS 1
14834_ACEOF
14835
14836fi
14837done
14838
14839  LIBS=$OLD_LIBS
14840
14841  if test x$FAM_LIBS = x; then
14842     as_fn_error $? "fam/gamin-headers and/or libs where not found, install them or build with --without-fam" "$LINENO" 5
14843  fi
14844fi
14845
14846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for properties in mod_webdav" >&5
14847$as_echo_n "checking for properties in mod_webdav... " >&6; }
14848
14849# Check whether --with-webdav-props was given.
14850if test "${with_webdav_props+set}" = set; then :
14851  withval=$with_webdav_props; WITH_WEBDAV_PROPS=$withval
14852else
14853  WITH_WEBDAV_PROPS=no
14854fi
14855
14856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_WEBDAV_PROPS" >&5
14857$as_echo "$WITH_WEBDAV_PROPS" >&6; }
14858
14859if test "$WITH_WEBDAV_PROPS" != "no"; then
14860
14861pkg_failed=no
14862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
14863$as_echo_n "checking for XML... " >&6; }
14864
14865if test -n "$XML_CFLAGS"; then
14866    pkg_cv_XML_CFLAGS="$XML_CFLAGS"
14867 elif test -n "$PKG_CONFIG"; then
14868    if test -n "$PKG_CONFIG" && \
14869    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
14870  ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
14871  ac_status=$?
14872  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14873  test $ac_status = 0; }; then
14874  pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
14875else
14876  pkg_failed=yes
14877fi
14878 else
14879    pkg_failed=untried
14880fi
14881if test -n "$XML_LIBS"; then
14882    pkg_cv_XML_LIBS="$XML_LIBS"
14883 elif test -n "$PKG_CONFIG"; then
14884    if test -n "$PKG_CONFIG" && \
14885    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
14886  ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
14887  ac_status=$?
14888  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14889  test $ac_status = 0; }; then
14890  pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
14891else
14892  pkg_failed=yes
14893fi
14894 else
14895    pkg_failed=untried
14896fi
14897
14898
14899
14900if test $pkg_failed = yes; then
14901   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14902$as_echo "no" >&6; }
14903
14904if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14905        _pkg_short_errors_supported=yes
14906else
14907        _pkg_short_errors_supported=no
14908fi
14909        if test $_pkg_short_errors_supported = yes; then
14910	        XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libxml-2.0" 2>&1`
14911        else
14912	        XML_PKG_ERRORS=`$PKG_CONFIG --print-errors "libxml-2.0" 2>&1`
14913        fi
14914	# Put the nasty error message in config.log where it belongs
14915	echo "$XML_PKG_ERRORS" >&5
14916
14917	as_fn_error $? "Package requirements (libxml-2.0) were not met:
14918
14919$XML_PKG_ERRORS
14920
14921Consider adjusting the PKG_CONFIG_PATH environment variable if you
14922installed software in a non-standard prefix.
14923
14924Alternatively, you may set the environment variables XML_CFLAGS
14925and XML_LIBS to avoid the need to call pkg-config.
14926See the pkg-config man page for more details." "$LINENO" 5
14927elif test $pkg_failed = untried; then
14928     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14929$as_echo "no" >&6; }
14930	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14931$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14932as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14933is in your PATH or set the PKG_CONFIG environment variable to the full
14934path to pkg-config.
14935
14936Alternatively, you may set the environment variables XML_CFLAGS
14937and XML_LIBS to avoid the need to call pkg-config.
14938See the pkg-config man page for more details.
14939
14940To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14941See \`config.log' for more details" "$LINENO" 5 ; }
14942else
14943	XML_CFLAGS=$pkg_cv_XML_CFLAGS
14944	XML_LIBS=$pkg_cv_XML_LIBS
14945        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14946$as_echo "yes" >&6; }
14947
14948
14949$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
14950
14951
14952$as_echo "#define HAVE_LIBXML_H 1" >>confdefs.h
14953
14954
14955fi
14956
14957pkg_failed=no
14958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5
14959$as_echo_n "checking for SQLITE... " >&6; }
14960
14961if test -n "$SQLITE_CFLAGS"; then
14962    pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS"
14963 elif test -n "$PKG_CONFIG"; then
14964    if test -n "$PKG_CONFIG" && \
14965    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
14966  ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
14967  ac_status=$?
14968  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14969  test $ac_status = 0; }; then
14970  pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
14971else
14972  pkg_failed=yes
14973fi
14974 else
14975    pkg_failed=untried
14976fi
14977if test -n "$SQLITE_LIBS"; then
14978    pkg_cv_SQLITE_LIBS="$SQLITE_LIBS"
14979 elif test -n "$PKG_CONFIG"; then
14980    if test -n "$PKG_CONFIG" && \
14981    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
14982  ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
14983  ac_status=$?
14984  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14985  test $ac_status = 0; }; then
14986  pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
14987else
14988  pkg_failed=yes
14989fi
14990 else
14991    pkg_failed=untried
14992fi
14993
14994
14995
14996if test $pkg_failed = yes; then
14997   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14998$as_echo "no" >&6; }
14999
15000if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15001        _pkg_short_errors_supported=yes
15002else
15003        _pkg_short_errors_supported=no
15004fi
15005        if test $_pkg_short_errors_supported = yes; then
15006	        SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sqlite3" 2>&1`
15007        else
15008	        SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors "sqlite3" 2>&1`
15009        fi
15010	# Put the nasty error message in config.log where it belongs
15011	echo "$SQLITE_PKG_ERRORS" >&5
15012
15013	as_fn_error $? "Package requirements (sqlite3) were not met:
15014
15015$SQLITE_PKG_ERRORS
15016
15017Consider adjusting the PKG_CONFIG_PATH environment variable if you
15018installed software in a non-standard prefix.
15019
15020Alternatively, you may set the environment variables SQLITE_CFLAGS
15021and SQLITE_LIBS to avoid the need to call pkg-config.
15022See the pkg-config man page for more details." "$LINENO" 5
15023elif test $pkg_failed = untried; then
15024     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15025$as_echo "no" >&6; }
15026	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15027$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15028as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15029is in your PATH or set the PKG_CONFIG environment variable to the full
15030path to pkg-config.
15031
15032Alternatively, you may set the environment variables SQLITE_CFLAGS
15033and SQLITE_LIBS to avoid the need to call pkg-config.
15034See the pkg-config man page for more details.
15035
15036To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15037See \`config.log' for more details" "$LINENO" 5 ; }
15038else
15039	SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS
15040	SQLITE_LIBS=$pkg_cv_SQLITE_LIBS
15041        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15042$as_echo "yes" >&6; }
15043
15044
15045$as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
15046
15047
15048$as_echo "#define HAVE_SQLITE3_H 1" >>confdefs.h
15049
15050
15051fi
15052
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locks in mod_webdav" >&5
15054$as_echo_n "checking for locks in mod_webdav... " >&6; }
15055
15056# Check whether --with-webdav-locks was given.
15057if test "${with_webdav_locks+set}" = set; then :
15058  withval=$with_webdav_locks; WITH_WEBDAV_LOCKS=$withval
15059else
15060  WITH_WEBDAV_LOCKS=no
15061fi
15062
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_WEBDAV_LOCKS" >&5
15064$as_echo "$WITH_WEBDAV_LOCKS" >&6; }
15065
15066 if test "$WITH_WEBDAV_LOCKS" != "no"; then
15067   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_unparse in -luuid" >&5
15068$as_echo_n "checking for uuid_unparse in -luuid... " >&6; }
15069if test "${ac_cv_lib_uuid_uuid_unparse+set}" = set; then :
15070  $as_echo_n "(cached) " >&6
15071else
15072  ac_check_lib_save_LIBS=$LIBS
15073LIBS="-luuid  $LIBS"
15074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15075/* end confdefs.h.  */
15076
15077/* Override any GCC internal prototype to avoid an error.
15078   Use char because int might match the return type of a GCC
15079   builtin and then its argument prototype would still apply.  */
15080#ifdef __cplusplus
15081extern "C"
15082#endif
15083char uuid_unparse ();
15084int
15085main ()
15086{
15087return uuid_unparse ();
15088  ;
15089  return 0;
15090}
15091_ACEOF
15092if ac_fn_c_try_link "$LINENO"; then :
15093  ac_cv_lib_uuid_uuid_unparse=yes
15094else
15095  ac_cv_lib_uuid_uuid_unparse=no
15096fi
15097rm -f core conftest.err conftest.$ac_objext \
15098    conftest$ac_exeext conftest.$ac_ext
15099LIBS=$ac_check_lib_save_LIBS
15100fi
15101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_unparse" >&5
15102$as_echo "$ac_cv_lib_uuid_uuid_unparse" >&6; }
15103if test "x$ac_cv_lib_uuid_uuid_unparse" = x""yes; then :
15104
15105         for ac_header in uuid/uuid.h
15106do :
15107  ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
15108if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then :
15109  cat >>confdefs.h <<_ACEOF
15110#define HAVE_UUID_UUID_H 1
15111_ACEOF
15112
15113                 UUID_LIBS=-luuid
15114
15115$as_echo "#define HAVE_UUID 1" >>confdefs.h
15116
15117
15118$as_echo "#define HAVE_UUID_H 1" >>confdefs.h
15119
15120
15121fi
15122
15123done
15124
15125
15126fi
15127
15128
15129 fi
15130fi
15131
15132
15133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for properties in mod_smbdav" >&5
15134$as_echo_n "checking for properties in mod_smbdav... " >&6; }
15135
15136# Check whether --with-smbdav-props was given.
15137if test "${with_smbdav_props+set}" = set; then :
15138  withval=$with_smbdav_props; WITH_SMBDAV_PROPS=$withval
15139else
15140  WITH_SMBDAV_PROPS=no
15141fi
15142
15143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_SMBDAV_PROPS" >&5
15144$as_echo "$WITH_SMBDAV_PROPS" >&6; }
15145
15146if test "$WITH_SMBDAV_PROPS" != "no"; then
15147
15148pkg_failed=no
15149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
15150$as_echo_n "checking for XML... " >&6; }
15151
15152if test -n "$XML_CFLAGS"; then
15153    pkg_cv_XML_CFLAGS="$XML_CFLAGS"
15154 elif test -n "$PKG_CONFIG"; then
15155    if test -n "$PKG_CONFIG" && \
15156    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
15157  ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
15158  ac_status=$?
15159  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15160  test $ac_status = 0; }; then
15161  pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
15162else
15163  pkg_failed=yes
15164fi
15165 else
15166    pkg_failed=untried
15167fi
15168if test -n "$XML_LIBS"; then
15169    pkg_cv_XML_LIBS="$XML_LIBS"
15170 elif test -n "$PKG_CONFIG"; then
15171    if test -n "$PKG_CONFIG" && \
15172    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
15173  ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
15174  ac_status=$?
15175  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15176  test $ac_status = 0; }; then
15177  pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
15178else
15179  pkg_failed=yes
15180fi
15181 else
15182    pkg_failed=untried
15183fi
15184
15185
15186
15187if test $pkg_failed = yes; then
15188   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15189$as_echo "no" >&6; }
15190
15191if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15192        _pkg_short_errors_supported=yes
15193else
15194        _pkg_short_errors_supported=no
15195fi
15196        if test $_pkg_short_errors_supported = yes; then
15197	        XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libxml-2.0" 2>&1`
15198        else
15199	        XML_PKG_ERRORS=`$PKG_CONFIG --print-errors "libxml-2.0" 2>&1`
15200        fi
15201	# Put the nasty error message in config.log where it belongs
15202	echo "$XML_PKG_ERRORS" >&5
15203
15204	as_fn_error $? "Package requirements (libxml-2.0) were not met:
15205
15206$XML_PKG_ERRORS
15207
15208Consider adjusting the PKG_CONFIG_PATH environment variable if you
15209installed software in a non-standard prefix.
15210
15211Alternatively, you may set the environment variables XML_CFLAGS
15212and XML_LIBS to avoid the need to call pkg-config.
15213See the pkg-config man page for more details." "$LINENO" 5
15214elif test $pkg_failed = untried; then
15215     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15216$as_echo "no" >&6; }
15217	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15218$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15219as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15220is in your PATH or set the PKG_CONFIG environment variable to the full
15221path to pkg-config.
15222
15223Alternatively, you may set the environment variables XML_CFLAGS
15224and XML_LIBS to avoid the need to call pkg-config.
15225See the pkg-config man page for more details.
15226
15227To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15228See \`config.log' for more details" "$LINENO" 5 ; }
15229else
15230	XML_CFLAGS=$pkg_cv_XML_CFLAGS
15231	XML_LIBS=$pkg_cv_XML_LIBS
15232        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15233$as_echo "yes" >&6; }
15234
15235
15236$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
15237
15238
15239$as_echo "#define HAVE_LIBXML_H 1" >>confdefs.h
15240
15241
15242fi
15243
15244pkg_failed=no
15245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5
15246$as_echo_n "checking for SQLITE... " >&6; }
15247
15248if test -n "$SQLITE_CFLAGS"; then
15249    pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS"
15250 elif test -n "$PKG_CONFIG"; then
15251    if test -n "$PKG_CONFIG" && \
15252    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
15253  ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
15254  ac_status=$?
15255  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15256  test $ac_status = 0; }; then
15257  pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
15258else
15259  pkg_failed=yes
15260fi
15261 else
15262    pkg_failed=untried
15263fi
15264if test -n "$SQLITE_LIBS"; then
15265    pkg_cv_SQLITE_LIBS="$SQLITE_LIBS"
15266 elif test -n "$PKG_CONFIG"; then
15267    if test -n "$PKG_CONFIG" && \
15268    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
15269  ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
15270  ac_status=$?
15271  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15272  test $ac_status = 0; }; then
15273  pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
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	        SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sqlite3" 2>&1`
15294        else
15295	        SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors "sqlite3" 2>&1`
15296        fi
15297	# Put the nasty error message in config.log where it belongs
15298	echo "$SQLITE_PKG_ERRORS" >&5
15299
15300	as_fn_error $? "Package requirements (sqlite3) were not met:
15301
15302$SQLITE_PKG_ERRORS
15303
15304Consider adjusting the PKG_CONFIG_PATH environment variable if you
15305installed software in a non-standard prefix.
15306
15307Alternatively, you may set the environment variables SQLITE_CFLAGS
15308and SQLITE_LIBS to avoid the need to call pkg-config.
15309See the pkg-config man page for more details." "$LINENO" 5
15310elif test $pkg_failed = untried; then
15311     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15312$as_echo "no" >&6; }
15313	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15314$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15315as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15316is in your PATH or set the PKG_CONFIG environment variable to the full
15317path to pkg-config.
15318
15319Alternatively, you may set the environment variables SQLITE_CFLAGS
15320and SQLITE_LIBS to avoid the need to call pkg-config.
15321See the pkg-config man page for more details.
15322
15323To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15324See \`config.log' for more details" "$LINENO" 5 ; }
15325else
15326	SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS
15327	SQLITE_LIBS=$pkg_cv_SQLITE_LIBS
15328        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15329$as_echo "yes" >&6; }
15330
15331
15332$as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
15333
15334
15335$as_echo "#define HAVE_SQLITE3_H 1" >>confdefs.h
15336
15337
15338fi
15339
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locks in mod_smbdav" >&5
15341$as_echo_n "checking for locks in mod_smbdav... " >&6; }
15342
15343# Check whether --with-smbdav-locks was given.
15344if test "${with_smbdav_locks+set}" = set; then :
15345  withval=$with_smbdav_locks; WITH_SMBDAV_LOCKS=$withval
15346else
15347  WITH_SMBDAV_LOCKS=no
15348fi
15349
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_SMBDAV_LOCKS" >&5
15351$as_echo "$WITH_SMBDAV_LOCKS" >&6; }
15352
15353 if test "$WITH_SMBDAV_LOCKS" != "no"; then
15354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_unparse in -luuid" >&5
15355$as_echo_n "checking for uuid_unparse in -luuid... " >&6; }
15356if test "${ac_cv_lib_uuid_uuid_unparse+set}" = set; then :
15357  $as_echo_n "(cached) " >&6
15358else
15359  ac_check_lib_save_LIBS=$LIBS
15360LIBS="-luuid  $LIBS"
15361cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15362/* end confdefs.h.  */
15363
15364/* Override any GCC internal prototype to avoid an error.
15365   Use char because int might match the return type of a GCC
15366   builtin and then its argument prototype would still apply.  */
15367#ifdef __cplusplus
15368extern "C"
15369#endif
15370char uuid_unparse ();
15371int
15372main ()
15373{
15374return uuid_unparse ();
15375  ;
15376  return 0;
15377}
15378_ACEOF
15379if ac_fn_c_try_link "$LINENO"; then :
15380  ac_cv_lib_uuid_uuid_unparse=yes
15381else
15382  ac_cv_lib_uuid_uuid_unparse=no
15383fi
15384rm -f core conftest.err conftest.$ac_objext \
15385    conftest$ac_exeext conftest.$ac_ext
15386LIBS=$ac_check_lib_save_LIBS
15387fi
15388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_unparse" >&5
15389$as_echo "$ac_cv_lib_uuid_uuid_unparse" >&6; }
15390if test "x$ac_cv_lib_uuid_uuid_unparse" = x""yes; then :
15391
15392         for ac_header in uuid/uuid.h
15393do :
15394  ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
15395if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then :
15396  cat >>confdefs.h <<_ACEOF
15397#define HAVE_UUID_UUID_H 1
15398_ACEOF
15399
15400                 UUID_LIBS=-luuid
15401
15402$as_echo "#define HAVE_UUID 1" >>confdefs.h
15403
15404
15405$as_echo "#define HAVE_UUID_H 1" >>confdefs.h
15406
15407
15408fi
15409
15410done
15411
15412
15413fi
15414
15415
15416 fi
15417fi
15418
15419
15420
15421
15422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm" >&5
15423$as_echo_n "checking for gdbm... " >&6; }
15424
15425# Check whether --with-gdbm was given.
15426if test "${with_gdbm+set}" = set; then :
15427  withval=$with_gdbm; WITH_GDBM=$withval
15428else
15429  WITH_GDBM=no
15430fi
15431
15432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_GDBM" >&5
15433$as_echo "$WITH_GDBM" >&6; }
15434
15435if test "$WITH_GDBM" != "no"; then
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
15437$as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
15438if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then :
15439  $as_echo_n "(cached) " >&6
15440else
15441  ac_check_lib_save_LIBS=$LIBS
15442LIBS="-lgdbm  $LIBS"
15443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15444/* end confdefs.h.  */
15445
15446/* Override any GCC internal prototype to avoid an error.
15447   Use char because int might match the return type of a GCC
15448   builtin and then its argument prototype would still apply.  */
15449#ifdef __cplusplus
15450extern "C"
15451#endif
15452char gdbm_open ();
15453int
15454main ()
15455{
15456return gdbm_open ();
15457  ;
15458  return 0;
15459}
15460_ACEOF
15461if ac_fn_c_try_link "$LINENO"; then :
15462  ac_cv_lib_gdbm_gdbm_open=yes
15463else
15464  ac_cv_lib_gdbm_gdbm_open=no
15465fi
15466rm -f core conftest.err conftest.$ac_objext \
15467    conftest$ac_exeext conftest.$ac_ext
15468LIBS=$ac_check_lib_save_LIBS
15469fi
15470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
15471$as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
15472if test "x$ac_cv_lib_gdbm_gdbm_open" = x""yes; then :
15473
15474         for ac_header in gdbm.h
15475do :
15476  ac_fn_c_check_header_mongrel "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default"
15477if test "x$ac_cv_header_gdbm_h" = x""yes; then :
15478  cat >>confdefs.h <<_ACEOF
15479#define HAVE_GDBM_H 1
15480_ACEOF
15481
15482                 GDBM_LIB=-lgdbm
15483
15484$as_echo "#define HAVE_GDBM 1" >>confdefs.h
15485
15486		 $as_echo "#define HAVE_GDBM_H 1" >>confdefs.h
15487
15488
15489fi
15490
15491done
15492
15493
15494fi
15495
15496
15497fi
15498
15499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for memcache" >&5
15500$as_echo_n "checking for memcache... " >&6; }
15501
15502# Check whether --with-memcache was given.
15503if test "${with_memcache+set}" = set; then :
15504  withval=$with_memcache; WITH_MEMCACHE=$withval
15505else
15506  WITH_MEMCACHE=no
15507fi
15508
15509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_MEMCACHE" >&5
15510$as_echo "$WITH_MEMCACHE" >&6; }
15511if test "$WITH_MEMCACHE" != "no"; then
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mc_new in -lmemcache" >&5
15513$as_echo_n "checking for mc_new in -lmemcache... " >&6; }
15514if test "${ac_cv_lib_memcache_mc_new+set}" = set; then :
15515  $as_echo_n "(cached) " >&6
15516else
15517  ac_check_lib_save_LIBS=$LIBS
15518LIBS="-lmemcache  $LIBS"
15519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15520/* end confdefs.h.  */
15521
15522/* Override any GCC internal prototype to avoid an error.
15523   Use char because int might match the return type of a GCC
15524   builtin and then its argument prototype would still apply.  */
15525#ifdef __cplusplus
15526extern "C"
15527#endif
15528char mc_new ();
15529int
15530main ()
15531{
15532return mc_new ();
15533  ;
15534  return 0;
15535}
15536_ACEOF
15537if ac_fn_c_try_link "$LINENO"; then :
15538  ac_cv_lib_memcache_mc_new=yes
15539else
15540  ac_cv_lib_memcache_mc_new=no
15541fi
15542rm -f core conftest.err conftest.$ac_objext \
15543    conftest$ac_exeext conftest.$ac_ext
15544LIBS=$ac_check_lib_save_LIBS
15545fi
15546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_memcache_mc_new" >&5
15547$as_echo "$ac_cv_lib_memcache_mc_new" >&6; }
15548if test "x$ac_cv_lib_memcache_mc_new" = x""yes; then :
15549
15550         for ac_header in memcache.h
15551do :
15552  ac_fn_c_check_header_mongrel "$LINENO" "memcache.h" "ac_cv_header_memcache_h" "$ac_includes_default"
15553if test "x$ac_cv_header_memcache_h" = x""yes; then :
15554  cat >>confdefs.h <<_ACEOF
15555#define HAVE_MEMCACHE_H 1
15556_ACEOF
15557
15558                 MEMCACHE_LIB=-lmemcache
15559
15560$as_echo "#define HAVE_MEMCACHE 1" >>confdefs.h
15561
15562
15563$as_echo "#define HAVE_MEMCACHE_H 1" >>confdefs.h
15564
15565
15566fi
15567
15568done
15569
15570
15571fi
15572
15573
15574fi
15575
15576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua-support is requested" >&5
15577$as_echo_n "checking if lua-support is requested... " >&6; }
15578
15579# Check whether --with-lua was given.
15580if test "${with_lua+set}" = set; then :
15581  withval=$with_lua; WITH_LUA=$withval
15582else
15583  WITH_LUA=no
15584fi
15585
15586
15587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_LUA" >&5
15588$as_echo "$WITH_LUA" >&6; }
15589if test "$WITH_LUA" != "no"; then
15590 if test "$WITH_LUA" = "yes"; then
15591  WITH_LUA=lua
15592 fi
15593
15594pkg_failed=no
15595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
15596$as_echo_n "checking for LUA... " >&6; }
15597
15598if test -n "$LUA_CFLAGS"; then
15599    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
15600 elif test -n "$PKG_CONFIG"; then
15601    if test -n "$PKG_CONFIG" && \
15602    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WITH_LUA >= 5.1\""; } >&5
15603  ($PKG_CONFIG --exists --print-errors "$WITH_LUA >= 5.1") 2>&5
15604  ac_status=$?
15605  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15606  test $ac_status = 0; }; then
15607  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "$WITH_LUA >= 5.1" 2>/dev/null`
15608else
15609  pkg_failed=yes
15610fi
15611 else
15612    pkg_failed=untried
15613fi
15614if test -n "$LUA_LIBS"; then
15615    pkg_cv_LUA_LIBS="$LUA_LIBS"
15616 elif test -n "$PKG_CONFIG"; then
15617    if test -n "$PKG_CONFIG" && \
15618    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WITH_LUA >= 5.1\""; } >&5
15619  ($PKG_CONFIG --exists --print-errors "$WITH_LUA >= 5.1") 2>&5
15620  ac_status=$?
15621  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15622  test $ac_status = 0; }; then
15623  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "$WITH_LUA >= 5.1" 2>/dev/null`
15624else
15625  pkg_failed=yes
15626fi
15627 else
15628    pkg_failed=untried
15629fi
15630
15631
15632
15633if test $pkg_failed = yes; then
15634   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15635$as_echo "no" >&6; }
15636
15637if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15638        _pkg_short_errors_supported=yes
15639else
15640        _pkg_short_errors_supported=no
15641fi
15642        if test $_pkg_short_errors_supported = yes; then
15643	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$WITH_LUA >= 5.1" 2>&1`
15644        else
15645	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "$WITH_LUA >= 5.1" 2>&1`
15646        fi
15647	# Put the nasty error message in config.log where it belongs
15648	echo "$LUA_PKG_ERRORS" >&5
15649
15650
15651
15652pkg_failed=no
15653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
15654$as_echo_n "checking for LUA... " >&6; }
15655
15656if test -n "$LUA_CFLAGS"; then
15657    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
15658 elif test -n "$PKG_CONFIG"; then
15659    if test -n "$PKG_CONFIG" && \
15660    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
15661  ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
15662  ac_status=$?
15663  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15664  test $ac_status = 0; }; then
15665  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
15666else
15667  pkg_failed=yes
15668fi
15669 else
15670    pkg_failed=untried
15671fi
15672if test -n "$LUA_LIBS"; then
15673    pkg_cv_LUA_LIBS="$LUA_LIBS"
15674 elif test -n "$PKG_CONFIG"; then
15675    if test -n "$PKG_CONFIG" && \
15676    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
15677  ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
15678  ac_status=$?
15679  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15680  test $ac_status = 0; }; then
15681  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
15682else
15683  pkg_failed=yes
15684fi
15685 else
15686    pkg_failed=untried
15687fi
15688
15689
15690
15691if test $pkg_failed = yes; then
15692   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15693$as_echo "no" >&6; }
15694
15695if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15696        _pkg_short_errors_supported=yes
15697else
15698        _pkg_short_errors_supported=no
15699fi
15700        if test $_pkg_short_errors_supported = yes; then
15701	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua5.1 >= 5.1" 2>&1`
15702        else
15703	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua5.1 >= 5.1" 2>&1`
15704        fi
15705	# Put the nasty error message in config.log where it belongs
15706	echo "$LUA_PKG_ERRORS" >&5
15707
15708
15709
15710pkg_failed=no
15711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
15712$as_echo_n "checking for LUA... " >&6; }
15713
15714if test -n "$LUA_CFLAGS"; then
15715    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
15716 elif test -n "$PKG_CONFIG"; then
15717    if test -n "$PKG_CONFIG" && \
15718    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
15719  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
15720  ac_status=$?
15721  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15722  test $ac_status = 0; }; then
15723  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
15724else
15725  pkg_failed=yes
15726fi
15727 else
15728    pkg_failed=untried
15729fi
15730if test -n "$LUA_LIBS"; then
15731    pkg_cv_LUA_LIBS="$LUA_LIBS"
15732 elif test -n "$PKG_CONFIG"; then
15733    if test -n "$PKG_CONFIG" && \
15734    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
15735  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
15736  ac_status=$?
15737  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15738  test $ac_status = 0; }; then
15739  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
15740else
15741  pkg_failed=yes
15742fi
15743 else
15744    pkg_failed=untried
15745fi
15746
15747
15748
15749if test $pkg_failed = yes; then
15750   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15751$as_echo "no" >&6; }
15752
15753if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15754        _pkg_short_errors_supported=yes
15755else
15756        _pkg_short_errors_supported=no
15757fi
15758        if test $_pkg_short_errors_supported = yes; then
15759	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua-5.1 >= 5.1" 2>&1`
15760        else
15761	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua-5.1 >= 5.1" 2>&1`
15762        fi
15763	# Put the nasty error message in config.log where it belongs
15764	echo "$LUA_PKG_ERRORS" >&5
15765
15766	as_fn_error $? "Package requirements (lua-5.1 >= 5.1) were not met:
15767
15768$LUA_PKG_ERRORS
15769
15770Consider adjusting the PKG_CONFIG_PATH environment variable if you
15771installed software in a non-standard prefix.
15772
15773Alternatively, you may set the environment variables LUA_CFLAGS
15774and LUA_LIBS to avoid the need to call pkg-config.
15775See the pkg-config man page for more details." "$LINENO" 5
15776elif test $pkg_failed = untried; then
15777     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15778$as_echo "no" >&6; }
15779	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15780$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15781as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15782is in your PATH or set the PKG_CONFIG environment variable to the full
15783path to pkg-config.
15784
15785Alternatively, you may set the environment variables LUA_CFLAGS
15786and LUA_LIBS to avoid the need to call pkg-config.
15787See the pkg-config man page for more details.
15788
15789To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15790See \`config.log' for more details" "$LINENO" 5 ; }
15791else
15792	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
15793	LUA_LIBS=$pkg_cv_LUA_LIBS
15794        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15795$as_echo "yes" >&6; }
15796
15797
15798$as_echo "#define HAVE_LUA 1" >>confdefs.h
15799
15800
15801$as_echo "#define HAVE_LUA_H 1" >>confdefs.h
15802
15803
15804fi
15805
15806elif test $pkg_failed = untried; then
15807     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15808$as_echo "no" >&6; }
15809
15810
15811pkg_failed=no
15812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
15813$as_echo_n "checking for LUA... " >&6; }
15814
15815if test -n "$LUA_CFLAGS"; then
15816    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
15817 elif test -n "$PKG_CONFIG"; then
15818    if test -n "$PKG_CONFIG" && \
15819    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
15820  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
15821  ac_status=$?
15822  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15823  test $ac_status = 0; }; then
15824  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
15825else
15826  pkg_failed=yes
15827fi
15828 else
15829    pkg_failed=untried
15830fi
15831if test -n "$LUA_LIBS"; then
15832    pkg_cv_LUA_LIBS="$LUA_LIBS"
15833 elif test -n "$PKG_CONFIG"; then
15834    if test -n "$PKG_CONFIG" && \
15835    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
15836  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
15837  ac_status=$?
15838  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15839  test $ac_status = 0; }; then
15840  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
15841else
15842  pkg_failed=yes
15843fi
15844 else
15845    pkg_failed=untried
15846fi
15847
15848
15849
15850if test $pkg_failed = yes; then
15851   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15852$as_echo "no" >&6; }
15853
15854if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15855        _pkg_short_errors_supported=yes
15856else
15857        _pkg_short_errors_supported=no
15858fi
15859        if test $_pkg_short_errors_supported = yes; then
15860	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua-5.1 >= 5.1" 2>&1`
15861        else
15862	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua-5.1 >= 5.1" 2>&1`
15863        fi
15864	# Put the nasty error message in config.log where it belongs
15865	echo "$LUA_PKG_ERRORS" >&5
15866
15867	as_fn_error $? "Package requirements (lua-5.1 >= 5.1) were not met:
15868
15869$LUA_PKG_ERRORS
15870
15871Consider adjusting the PKG_CONFIG_PATH environment variable if you
15872installed software in a non-standard prefix.
15873
15874Alternatively, you may set the environment variables LUA_CFLAGS
15875and LUA_LIBS to avoid the need to call pkg-config.
15876See the pkg-config man page for more details." "$LINENO" 5
15877elif test $pkg_failed = untried; then
15878     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15879$as_echo "no" >&6; }
15880	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15881$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15882as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15883is in your PATH or set the PKG_CONFIG environment variable to the full
15884path to pkg-config.
15885
15886Alternatively, you may set the environment variables LUA_CFLAGS
15887and LUA_LIBS to avoid the need to call pkg-config.
15888See the pkg-config man page for more details.
15889
15890To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15891See \`config.log' for more details" "$LINENO" 5 ; }
15892else
15893	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
15894	LUA_LIBS=$pkg_cv_LUA_LIBS
15895        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15896$as_echo "yes" >&6; }
15897
15898
15899$as_echo "#define HAVE_LUA 1" >>confdefs.h
15900
15901
15902$as_echo "#define HAVE_LUA_H 1" >>confdefs.h
15903
15904
15905fi
15906
15907else
15908	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
15909	LUA_LIBS=$pkg_cv_LUA_LIBS
15910        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15911$as_echo "yes" >&6; }
15912
15913
15914$as_echo "#define HAVE_LUA 1" >>confdefs.h
15915
15916
15917$as_echo "#define HAVE_LUA_H 1" >>confdefs.h
15918
15919
15920fi
15921
15922elif test $pkg_failed = untried; then
15923     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15924$as_echo "no" >&6; }
15925
15926
15927pkg_failed=no
15928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
15929$as_echo_n "checking for LUA... " >&6; }
15930
15931if test -n "$LUA_CFLAGS"; then
15932    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
15933 elif test -n "$PKG_CONFIG"; then
15934    if test -n "$PKG_CONFIG" && \
15935    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
15936  ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
15937  ac_status=$?
15938  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15939  test $ac_status = 0; }; then
15940  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
15941else
15942  pkg_failed=yes
15943fi
15944 else
15945    pkg_failed=untried
15946fi
15947if test -n "$LUA_LIBS"; then
15948    pkg_cv_LUA_LIBS="$LUA_LIBS"
15949 elif test -n "$PKG_CONFIG"; then
15950    if test -n "$PKG_CONFIG" && \
15951    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
15952  ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
15953  ac_status=$?
15954  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15955  test $ac_status = 0; }; then
15956  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
15957else
15958  pkg_failed=yes
15959fi
15960 else
15961    pkg_failed=untried
15962fi
15963
15964
15965
15966if test $pkg_failed = yes; then
15967   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15968$as_echo "no" >&6; }
15969
15970if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15971        _pkg_short_errors_supported=yes
15972else
15973        _pkg_short_errors_supported=no
15974fi
15975        if test $_pkg_short_errors_supported = yes; then
15976	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua5.1 >= 5.1" 2>&1`
15977        else
15978	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua5.1 >= 5.1" 2>&1`
15979        fi
15980	# Put the nasty error message in config.log where it belongs
15981	echo "$LUA_PKG_ERRORS" >&5
15982
15983
15984
15985pkg_failed=no
15986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
15987$as_echo_n "checking for LUA... " >&6; }
15988
15989if test -n "$LUA_CFLAGS"; then
15990    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
15991 elif test -n "$PKG_CONFIG"; then
15992    if test -n "$PKG_CONFIG" && \
15993    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
15994  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
15995  ac_status=$?
15996  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15997  test $ac_status = 0; }; then
15998  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
15999else
16000  pkg_failed=yes
16001fi
16002 else
16003    pkg_failed=untried
16004fi
16005if test -n "$LUA_LIBS"; then
16006    pkg_cv_LUA_LIBS="$LUA_LIBS"
16007 elif test -n "$PKG_CONFIG"; then
16008    if test -n "$PKG_CONFIG" && \
16009    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
16010  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
16011  ac_status=$?
16012  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16013  test $ac_status = 0; }; then
16014  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
16015else
16016  pkg_failed=yes
16017fi
16018 else
16019    pkg_failed=untried
16020fi
16021
16022
16023
16024if test $pkg_failed = yes; then
16025   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16026$as_echo "no" >&6; }
16027
16028if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16029        _pkg_short_errors_supported=yes
16030else
16031        _pkg_short_errors_supported=no
16032fi
16033        if test $_pkg_short_errors_supported = yes; then
16034	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua-5.1 >= 5.1" 2>&1`
16035        else
16036	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua-5.1 >= 5.1" 2>&1`
16037        fi
16038	# Put the nasty error message in config.log where it belongs
16039	echo "$LUA_PKG_ERRORS" >&5
16040
16041	as_fn_error $? "Package requirements (lua-5.1 >= 5.1) were not met:
16042
16043$LUA_PKG_ERRORS
16044
16045Consider adjusting the PKG_CONFIG_PATH environment variable if you
16046installed software in a non-standard prefix.
16047
16048Alternatively, you may set the environment variables LUA_CFLAGS
16049and LUA_LIBS to avoid the need to call pkg-config.
16050See the pkg-config man page for more details." "$LINENO" 5
16051elif test $pkg_failed = untried; then
16052     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16053$as_echo "no" >&6; }
16054	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16055$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16056as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
16057is in your PATH or set the PKG_CONFIG environment variable to the full
16058path to pkg-config.
16059
16060Alternatively, you may set the environment variables LUA_CFLAGS
16061and LUA_LIBS to avoid the need to call pkg-config.
16062See the pkg-config man page for more details.
16063
16064To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16065See \`config.log' for more details" "$LINENO" 5 ; }
16066else
16067	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
16068	LUA_LIBS=$pkg_cv_LUA_LIBS
16069        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16070$as_echo "yes" >&6; }
16071
16072
16073$as_echo "#define HAVE_LUA 1" >>confdefs.h
16074
16075
16076$as_echo "#define HAVE_LUA_H 1" >>confdefs.h
16077
16078
16079fi
16080
16081elif test $pkg_failed = untried; then
16082     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16083$as_echo "no" >&6; }
16084
16085
16086pkg_failed=no
16087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
16088$as_echo_n "checking for LUA... " >&6; }
16089
16090if test -n "$LUA_CFLAGS"; then
16091    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
16092 elif test -n "$PKG_CONFIG"; then
16093    if test -n "$PKG_CONFIG" && \
16094    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
16095  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
16096  ac_status=$?
16097  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16098  test $ac_status = 0; }; then
16099  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
16100else
16101  pkg_failed=yes
16102fi
16103 else
16104    pkg_failed=untried
16105fi
16106if test -n "$LUA_LIBS"; then
16107    pkg_cv_LUA_LIBS="$LUA_LIBS"
16108 elif test -n "$PKG_CONFIG"; then
16109    if test -n "$PKG_CONFIG" && \
16110    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
16111  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
16112  ac_status=$?
16113  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16114  test $ac_status = 0; }; then
16115  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
16116else
16117  pkg_failed=yes
16118fi
16119 else
16120    pkg_failed=untried
16121fi
16122
16123
16124
16125if test $pkg_failed = yes; then
16126   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16127$as_echo "no" >&6; }
16128
16129if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16130        _pkg_short_errors_supported=yes
16131else
16132        _pkg_short_errors_supported=no
16133fi
16134        if test $_pkg_short_errors_supported = yes; then
16135	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua-5.1 >= 5.1" 2>&1`
16136        else
16137	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua-5.1 >= 5.1" 2>&1`
16138        fi
16139	# Put the nasty error message in config.log where it belongs
16140	echo "$LUA_PKG_ERRORS" >&5
16141
16142	as_fn_error $? "Package requirements (lua-5.1 >= 5.1) were not met:
16143
16144$LUA_PKG_ERRORS
16145
16146Consider adjusting the PKG_CONFIG_PATH environment variable if you
16147installed software in a non-standard prefix.
16148
16149Alternatively, you may set the environment variables LUA_CFLAGS
16150and LUA_LIBS to avoid the need to call pkg-config.
16151See the pkg-config man page for more details." "$LINENO" 5
16152elif test $pkg_failed = untried; then
16153     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16154$as_echo "no" >&6; }
16155	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16156$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16157as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
16158is in your PATH or set the PKG_CONFIG environment variable to the full
16159path to pkg-config.
16160
16161Alternatively, you may set the environment variables LUA_CFLAGS
16162and LUA_LIBS to avoid the need to call pkg-config.
16163See the pkg-config man page for more details.
16164
16165To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16166See \`config.log' for more details" "$LINENO" 5 ; }
16167else
16168	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
16169	LUA_LIBS=$pkg_cv_LUA_LIBS
16170        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16171$as_echo "yes" >&6; }
16172
16173
16174$as_echo "#define HAVE_LUA 1" >>confdefs.h
16175
16176
16177$as_echo "#define HAVE_LUA_H 1" >>confdefs.h
16178
16179
16180fi
16181
16182else
16183	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
16184	LUA_LIBS=$pkg_cv_LUA_LIBS
16185        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16186$as_echo "yes" >&6; }
16187
16188
16189$as_echo "#define HAVE_LUA 1" >>confdefs.h
16190
16191
16192$as_echo "#define HAVE_LUA_H 1" >>confdefs.h
16193
16194
16195fi
16196
16197else
16198	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
16199	LUA_LIBS=$pkg_cv_LUA_LIBS
16200        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16201$as_echo "yes" >&6; }
16202
16203
16204$as_echo "#define HAVE_LUA 1" >>confdefs.h
16205
16206
16207$as_echo "#define HAVE_LUA_H 1" >>confdefs.h
16208
16209
16210fi
16211
16212
16213
16214fi
16215
16216save_LIBS=$LIBS
16217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
16218$as_echo_n "checking for library containing crypt... " >&6; }
16219if test "${ac_cv_search_crypt+set}" = set; then :
16220  $as_echo_n "(cached) " >&6
16221else
16222  ac_func_search_save_LIBS=$LIBS
16223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16224/* end confdefs.h.  */
16225
16226/* Override any GCC internal prototype to avoid an error.
16227   Use char because int might match the return type of a GCC
16228   builtin and then its argument prototype would still apply.  */
16229#ifdef __cplusplus
16230extern "C"
16231#endif
16232char crypt ();
16233int
16234main ()
16235{
16236return crypt ();
16237  ;
16238  return 0;
16239}
16240_ACEOF
16241for ac_lib in '' crypt; do
16242  if test -z "$ac_lib"; then
16243    ac_res="none required"
16244  else
16245    ac_res=-l$ac_lib
16246    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16247  fi
16248  if ac_fn_c_try_link "$LINENO"; then :
16249  ac_cv_search_crypt=$ac_res
16250fi
16251rm -f core conftest.err conftest.$ac_objext \
16252    conftest$ac_exeext
16253  if test "${ac_cv_search_crypt+set}" = set; then :
16254  break
16255fi
16256done
16257if test "${ac_cv_search_crypt+set}" = set; then :
16258
16259else
16260  ac_cv_search_crypt=no
16261fi
16262rm conftest.$ac_ext
16263LIBS=$ac_func_search_save_LIBS
16264fi
16265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
16266$as_echo "$ac_cv_search_crypt" >&6; }
16267ac_res=$ac_cv_search_crypt
16268if test "$ac_res" != no; then :
16269  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16270
16271  for ac_header in crypt.h
16272do :
16273  ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
16274if test "x$ac_cv_header_crypt_h" = x""yes; then :
16275  cat >>confdefs.h <<_ACEOF
16276#define HAVE_CRYPT_H 1
16277_ACEOF
16278
16279    $as_echo "#define HAVE_CRYPT_H 1" >>confdefs.h
16280
16281
16282fi
16283
16284done
16285
16286
16287
16288$as_echo "#define HAVE_LIBCRYPT 1" >>confdefs.h
16289
16290  if test "$ac_cv_search_crypt" != no; then
16291    test "$ac_cv_search_crypt" = "none required" || CRYPT_LIB="$ac_cv_search_crypt"
16292  fi
16293
16294fi
16295
16296LIBS=$save_LIBS
16297
16298
16299save_LIBS=$LIBS
16300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfilev" >&5
16301$as_echo_n "checking for library containing sendfilev... " >&6; }
16302if test "${ac_cv_search_sendfilev+set}" = set; then :
16303  $as_echo_n "(cached) " >&6
16304else
16305  ac_func_search_save_LIBS=$LIBS
16306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16307/* end confdefs.h.  */
16308
16309/* Override any GCC internal prototype to avoid an error.
16310   Use char because int might match the return type of a GCC
16311   builtin and then its argument prototype would still apply.  */
16312#ifdef __cplusplus
16313extern "C"
16314#endif
16315char sendfilev ();
16316int
16317main ()
16318{
16319return sendfilev ();
16320  ;
16321  return 0;
16322}
16323_ACEOF
16324for ac_lib in '' sendfile; do
16325  if test -z "$ac_lib"; then
16326    ac_res="none required"
16327  else
16328    ac_res=-l$ac_lib
16329    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16330  fi
16331  if ac_fn_c_try_link "$LINENO"; then :
16332  ac_cv_search_sendfilev=$ac_res
16333fi
16334rm -f core conftest.err conftest.$ac_objext \
16335    conftest$ac_exeext
16336  if test "${ac_cv_search_sendfilev+set}" = set; then :
16337  break
16338fi
16339done
16340if test "${ac_cv_search_sendfilev+set}" = set; then :
16341
16342else
16343  ac_cv_search_sendfilev=no
16344fi
16345rm conftest.$ac_ext
16346LIBS=$ac_func_search_save_LIBS
16347fi
16348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfilev" >&5
16349$as_echo "$ac_cv_search_sendfilev" >&6; }
16350ac_res=$ac_cv_search_sendfilev
16351if test "$ac_res" != no; then :
16352  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16353
16354  if test "$ac_cv_search_sendfilev" != no; then
16355    test "$ac_cv_search_sendfilev" = "none required" || SENDFILE_LIB="$ac_cv_search_sendfilev"
16356
16357$as_echo "#define HAVE_SENDFILEV 1" >>confdefs.h
16358
16359  fi
16360
16361fi
16362
16363LIBS=$save_LIBS
16364
16365
16366case $host_os in
16367	*mingw* ) LIBS="$LIBS -lwsock32";;
16368        * ) ;;
16369esac
16370
16371for ac_func in dup2 getcwd inet_ntoa inet_ntop memset mmap munmap strchr \
16372		  strdup strerror strstr strtol sendfile  getopt socket lstat \
16373		  gethostbyname poll epoll_ctl getrlimit chroot \
16374		  getuid select signal pathconf madvise posix_fadvise posix_madvise \
16375		  writev sigaction sendfile64 send_file kqueue port_create localtime_r gmtime_r
16376do :
16377  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16378ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16379if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16380  cat >>confdefs.h <<_ACEOF
16381#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16382_ACEOF
16383
16384fi
16385done
16386
16387
16388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Large File System support" >&5
16389$as_echo_n "checking for Large File System support... " >&6; }
16390# Check whether --enable-lfs was given.
16391if test "${enable_lfs+set}" = set; then :
16392  enableval=$enable_lfs; case "${enableval}" in
16393   yes) CPPFLAGS="${CPPFLAGS} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES" ;;
16394    no) ;;
16395     *) as_fn_error $? "bad value ${enableval} for --enable-lfs" "$LINENO" 5  ;;
16396  esac
16397else
16398  CPPFLAGS="${CPPFLAGS} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES"
16399	 enable_lfs=yes
16400fi
16401
16402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
16403$as_echo "$enableval" >&6; }
16404
16405# The cast to long int works around a bug in the HP C Compiler
16406# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16407# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16408# This bug is HP SR number 8606223364.
16409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16410$as_echo_n "checking size of long... " >&6; }
16411if test "${ac_cv_sizeof_long+set}" = set; then :
16412  $as_echo_n "(cached) " >&6
16413else
16414  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
16415
16416else
16417  if test "$ac_cv_type_long" = yes; then
16418     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16419$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16420as_fn_error 77 "cannot compute sizeof (long)
16421See \`config.log' for more details" "$LINENO" 5 ; }
16422   else
16423     ac_cv_sizeof_long=0
16424   fi
16425fi
16426
16427fi
16428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16429$as_echo "$ac_cv_sizeof_long" >&6; }
16430
16431
16432
16433cat >>confdefs.h <<_ACEOF
16434#define SIZEOF_LONG $ac_cv_sizeof_long
16435_ACEOF
16436
16437
16438# The cast to long int works around a bug in the HP C Compiler
16439# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16440# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16441# This bug is HP SR number 8606223364.
16442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
16443$as_echo_n "checking size of off_t... " >&6; }
16444if test "${ac_cv_sizeof_off_t+set}" = set; then :
16445  $as_echo_n "(cached) " >&6
16446else
16447  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
16448
16449else
16450  if test "$ac_cv_type_off_t" = yes; then
16451     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16452$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16453as_fn_error 77 "cannot compute sizeof (off_t)
16454See \`config.log' for more details" "$LINENO" 5 ; }
16455   else
16456     ac_cv_sizeof_off_t=0
16457   fi
16458fi
16459
16460fi
16461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
16462$as_echo "$ac_cv_sizeof_off_t" >&6; }
16463
16464
16465
16466cat >>confdefs.h <<_ACEOF
16467#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
16468_ACEOF
16469
16470
16471
16472if test "x$ac_cv_func_sendfile" = xyes; then
16473	        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sendfile works" >&5
16474$as_echo_n "checking if sendfile works... " >&6; }
16475	if test "x$cross_compiling" = xno; then
16476	if test "$cross_compiling" = yes; then :
16477  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16479as_fn_error $? "cannot run test program while cross compiling
16480See \`config.log' for more details" "$LINENO" 5 ; }
16481else
16482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16483/* end confdefs.h.  */
16484
16485		    #ifdef HAVE_SYS_SENDFILE_H
16486		    #include <sys/sendfile.h>
16487		    #endif /* HAVE_SYS_SENDFILE_H */
16488		    #include <errno.h>
16489		    int main() {
16490		      int o = 0;
16491		      if (-1 == sendfile(-1, 0, &o, 0) && errno == ENOSYS) return -1;
16492		      return 0;
16493		    }
16494_ACEOF
16495if ac_fn_c_try_run "$LINENO"; then :
16496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16497$as_echo "yes" >&6; }
16498else
16499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16500$as_echo "no" >&6; }
16501
16502$as_echo "#define HAVE_SENDFILE_BROKEN 1" >>confdefs.h
16503
16504fi
16505rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16506  conftest.$ac_objext conftest.beam conftest.$ac_ext
16507fi
16508
16509	else
16510	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16511$as_echo "no" >&6; }
16512
16513$as_echo "#define HAVE_SENDFILE_BROKEN 1" >>confdefs.h
16514
16515	fi
16516fi
16517
16518
16519# Check whether --enable-ipv6 was given.
16520if test "${enable_ipv6+set}" = set; then :
16521  enableval=$enable_ipv6; case "${enableval}" in
16522   yes) ipv6=true ;;
16523    no) ipv6=false ;;
16524     *) as_fn_error $? "bad value ${enableval} for --enable-ipv6" "$LINENO" 5  ;;
16525  esac
16526else
16527  ipv6=true
16528fi
16529
16530
16531if test x$ipv6 = xtrue; then
16532  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 support" >&5
16533$as_echo_n "checking for IPv6 support... " >&6; }
16534if test "${ac_cv_ipv6_support+set}" = set; then :
16535  $as_echo_n "(cached) " >&6
16536else
16537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16538/* end confdefs.h.  */
16539 #include <sys/types.h>
16540#include <sys/socket.h>
16541#include <netinet/in.h>
16542int
16543main ()
16544{
16545struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
16546  ;
16547  return 0;
16548}
16549_ACEOF
16550if ac_fn_c_try_link "$LINENO"; then :
16551  ac_cv_ipv6_support=yes
16552else
16553  ac_cv_ipv6_support=no
16554fi
16555rm -f core conftest.err conftest.$ac_objext \
16556    conftest$ac_exeext conftest.$ac_ext
16557fi
16558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ipv6_support" >&5
16559$as_echo "$ac_cv_ipv6_support" >&6; }
16560
16561  if test "$ac_cv_ipv6_support" = yes; then
16562
16563$as_echo "#define HAVE_IPV6 1" >>confdefs.h
16564
16565  fi
16566fi
16567
16568
16569 if test "x$cross_compiling" = xyes; then
16570  CROSS_COMPILING_TRUE=
16571  CROSS_COMPILING_FALSE='#'
16572else
16573  CROSS_COMPILING_TRUE='#'
16574  CROSS_COMPILING_FALSE=
16575fi
16576
16577
16578fastcgi_found=no
16579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FCGI_Accept in -lfcgi" >&5
16580$as_echo_n "checking for FCGI_Accept in -lfcgi... " >&6; }
16581if test "${ac_cv_lib_fcgi_FCGI_Accept+set}" = set; then :
16582  $as_echo_n "(cached) " >&6
16583else
16584  ac_check_lib_save_LIBS=$LIBS
16585LIBS="-lfcgi  $LIBS"
16586cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16587/* end confdefs.h.  */
16588
16589/* Override any GCC internal prototype to avoid an error.
16590   Use char because int might match the return type of a GCC
16591   builtin and then its argument prototype would still apply.  */
16592#ifdef __cplusplus
16593extern "C"
16594#endif
16595char FCGI_Accept ();
16596int
16597main ()
16598{
16599return FCGI_Accept ();
16600  ;
16601  return 0;
16602}
16603_ACEOF
16604if ac_fn_c_try_link "$LINENO"; then :
16605  ac_cv_lib_fcgi_FCGI_Accept=yes
16606else
16607  ac_cv_lib_fcgi_FCGI_Accept=no
16608fi
16609rm -f core conftest.err conftest.$ac_objext \
16610    conftest$ac_exeext conftest.$ac_ext
16611LIBS=$ac_check_lib_save_LIBS
16612fi
16613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcgi_FCGI_Accept" >&5
16614$as_echo "$ac_cv_lib_fcgi_FCGI_Accept" >&6; }
16615if test "x$ac_cv_lib_fcgi_FCGI_Accept" = x""yes; then :
16616
16617 for ac_header in fastcgi.h fastcgi/fastcgi.h
16618do :
16619  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16620ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16621if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16622  cat >>confdefs.h <<_ACEOF
16623#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16624_ACEOF
16625
16626   fastcgi_found=yes
16627
16628fi
16629
16630done
16631
16632
16633fi
16634
16635
16636 if test "x$fastcgi_found" = xyes; then
16637  CHECK_WITH_FASTCGI_TRUE=
16638  CHECK_WITH_FASTCGI_FALSE='#'
16639else
16640  CHECK_WITH_FASTCGI_TRUE='#'
16641  CHECK_WITH_FASTCGI_FALSE=
16642fi
16643
16644
16645
16646if test "${GCC}" = "yes"; then
16647    CFLAGS="${CFLAGS} -Wall -W -Wshadow -pedantic -std=gnu99"
16648fi
16649
16650# Check whether --enable-extra-warnings was given.
16651if test "${enable_extra_warnings+set}" = set; then :
16652  enableval=$enable_extra_warnings; case "${enableval}" in
16653   yes) extrawarnings=true ;;
16654    no) extrawarnings=false ;;
16655     *) as_fn_error $? "bad value ${enableval} for --enable-extra-warnings" "$LINENO" 5  ;;
16656  esac
16657else
16658  extrawarnings=false
16659fi
16660
16661
16662if test x$extrawarnings = xtrue; then
16663    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"
16664fi
16665
16666LIGHTTPD_VERSION_ID=`echo $PACKAGE_VERSION | $AWK -F '.' '{print "(" $1 " << 16 | " $2 " << 8 | " $3 ")"}'`
16667
16668cat >>confdefs.h <<_ACEOF
16669#define LIGHTTPD_VERSION_ID $LIGHTTPD_VERSION_ID
16670_ACEOF
16671
16672
16673ac_config_files="$ac_config_files Makefile src/Makefile distribute.sh"
16674
16675cat >confcache <<\_ACEOF
16676# This file is a shell script that caches the results of configure
16677# tests run on this system so they can be shared between configure
16678# scripts and configure runs, see configure's option --config-cache.
16679# It is not useful on other systems.  If it contains results you don't
16680# want to keep, you may remove or edit it.
16681#
16682# config.status only pays attention to the cache file if you give it
16683# the --recheck option to rerun configure.
16684#
16685# `ac_cv_env_foo' variables (set or unset) will be overridden when
16686# loading this file, other *unset* `ac_cv_foo' will be assigned the
16687# following values.
16688
16689_ACEOF
16690
16691# The following way of writing the cache mishandles newlines in values,
16692# but we know of no workaround that is simple, portable, and efficient.
16693# So, we kill variables containing newlines.
16694# Ultrix sh set writes to stderr and can't be redirected directly,
16695# and sets the high bit in the cache file unless we assign to the vars.
16696(
16697  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16698    eval ac_val=\$$ac_var
16699    case $ac_val in #(
16700    *${as_nl}*)
16701      case $ac_var in #(
16702      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16703$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16704      esac
16705      case $ac_var in #(
16706      _ | IFS | as_nl) ;; #(
16707      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16708      *) { eval $ac_var=; unset $ac_var;} ;;
16709      esac ;;
16710    esac
16711  done
16712
16713  (set) 2>&1 |
16714    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16715    *${as_nl}ac_space=\ *)
16716      # `set' does not quote correctly, so add quotes: double-quote
16717      # substitution turns \\\\ into \\, and sed turns \\ into \.
16718      sed -n \
16719	"s/'/'\\\\''/g;
16720	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16721      ;; #(
16722    *)
16723      # `set' quotes correctly as required by POSIX, so do not add quotes.
16724      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16725      ;;
16726    esac |
16727    sort
16728) |
16729  sed '
16730     /^ac_cv_env_/b end
16731     t clear
16732     :clear
16733     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16734     t end
16735     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16736     :end' >>confcache
16737if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16738  if test -w "$cache_file"; then
16739    test "x$cache_file" != "x/dev/null" &&
16740      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16741$as_echo "$as_me: updating cache $cache_file" >&6;}
16742    cat confcache >$cache_file
16743  else
16744    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16745$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16746  fi
16747fi
16748rm -f confcache
16749
16750test "x$prefix" = xNONE && prefix=$ac_default_prefix
16751# Let make expand exec_prefix.
16752test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16753
16754DEFS=-DHAVE_CONFIG_H
16755
16756ac_libobjs=
16757ac_ltlibobjs=
16758for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16759  # 1. Remove the extension, and $U if already installed.
16760  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16761  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16762  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16763  #    will be set to the directory where LIBOBJS objects are built.
16764  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16765  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16766done
16767LIBOBJS=$ac_libobjs
16768
16769LTLIBOBJS=$ac_ltlibobjs
16770
16771
16772 if test -n "$EXEEXT"; then
16773  am__EXEEXT_TRUE=
16774  am__EXEEXT_FALSE='#'
16775else
16776  am__EXEEXT_TRUE='#'
16777  am__EXEEXT_FALSE=
16778fi
16779
16780if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16781  as_fn_error $? "conditional \"AMDEP\" was never defined.
16782Usually this means the macro was only invoked conditionally." "$LINENO" 5
16783fi
16784if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16785  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16786Usually this means the macro was only invoked conditionally." "$LINENO" 5
16787fi
16788if test -z "${NO_RDYNAMIC_TRUE}" && test -z "${NO_RDYNAMIC_FALSE}"; then
16789  as_fn_error $? "conditional \"NO_RDYNAMIC\" was never defined.
16790Usually this means the macro was only invoked conditionally." "$LINENO" 5
16791fi
16792if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
16793  as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
16794Usually this means the macro was only invoked conditionally." "$LINENO" 5
16795fi
16796if test -z "${CHECK_WITH_FASTCGI_TRUE}" && test -z "${CHECK_WITH_FASTCGI_FALSE}"; then
16797  as_fn_error $? "conditional \"CHECK_WITH_FASTCGI\" was never defined.
16798Usually this means the macro was only invoked conditionally." "$LINENO" 5
16799fi
16800
16801: ${CONFIG_STATUS=./config.status}
16802ac_write_fail=0
16803ac_clean_files_save=$ac_clean_files
16804ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16805{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16806$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16807as_write_fail=0
16808cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16809#! $SHELL
16810# Generated by $as_me.
16811# Run this file to recreate the current configuration.
16812# Compiler output produced by configure, useful for debugging
16813# configure, is in config.log if it exists.
16814
16815debug=false
16816ac_cs_recheck=false
16817ac_cs_silent=false
16818
16819SHELL=\${CONFIG_SHELL-$SHELL}
16820export SHELL
16821_ASEOF
16822cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16823## -------------------- ##
16824## M4sh Initialization. ##
16825## -------------------- ##
16826
16827# Be more Bourne compatible
16828DUALCASE=1; export DUALCASE # for MKS sh
16829if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16830  emulate sh
16831  NULLCMD=:
16832  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16833  # is contrary to our usage.  Disable this feature.
16834  alias -g '${1+"$@"}'='"$@"'
16835  setopt NO_GLOB_SUBST
16836else
16837  case `(set -o) 2>/dev/null` in #(
16838  *posix*) :
16839    set -o posix ;; #(
16840  *) :
16841     ;;
16842esac
16843fi
16844
16845
16846as_nl='
16847'
16848export as_nl
16849# Printing a long string crashes Solaris 7 /usr/bin/printf.
16850as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16851as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16852as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16853# Prefer a ksh shell builtin over an external printf program on Solaris,
16854# but without wasting forks for bash or zsh.
16855if test -z "$BASH_VERSION$ZSH_VERSION" \
16856    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16857  as_echo='print -r --'
16858  as_echo_n='print -rn --'
16859elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16860  as_echo='printf %s\n'
16861  as_echo_n='printf %s'
16862else
16863  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16864    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16865    as_echo_n='/usr/ucb/echo -n'
16866  else
16867    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16868    as_echo_n_body='eval
16869      arg=$1;
16870      case $arg in #(
16871      *"$as_nl"*)
16872	expr "X$arg" : "X\\(.*\\)$as_nl";
16873	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16874      esac;
16875      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16876    '
16877    export as_echo_n_body
16878    as_echo_n='sh -c $as_echo_n_body as_echo'
16879  fi
16880  export as_echo_body
16881  as_echo='sh -c $as_echo_body as_echo'
16882fi
16883
16884# The user is always right.
16885if test "${PATH_SEPARATOR+set}" != set; then
16886  PATH_SEPARATOR=:
16887  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16888    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16889      PATH_SEPARATOR=';'
16890  }
16891fi
16892
16893
16894# IFS
16895# We need space, tab and new line, in precisely that order.  Quoting is
16896# there to prevent editors from complaining about space-tab.
16897# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16898# splitting by setting IFS to empty value.)
16899IFS=" ""	$as_nl"
16900
16901# Find who we are.  Look in the path if we contain no directory separator.
16902case $0 in #((
16903  *[\\/]* ) as_myself=$0 ;;
16904  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16905for as_dir in $PATH
16906do
16907  IFS=$as_save_IFS
16908  test -z "$as_dir" && as_dir=.
16909    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16910  done
16911IFS=$as_save_IFS
16912
16913     ;;
16914esac
16915# We did not find ourselves, most probably we were run as `sh COMMAND'
16916# in which case we are not to be found in the path.
16917if test "x$as_myself" = x; then
16918  as_myself=$0
16919fi
16920if test ! -f "$as_myself"; then
16921  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16922  exit 1
16923fi
16924
16925# Unset variables that we do not need and which cause bugs (e.g. in
16926# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16927# suppresses any "Segmentation fault" message there.  '((' could
16928# trigger a bug in pdksh 5.2.14.
16929for as_var in BASH_ENV ENV MAIL MAILPATH
16930do eval test x\${$as_var+set} = xset \
16931  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16932done
16933PS1='$ '
16934PS2='> '
16935PS4='+ '
16936
16937# NLS nuisances.
16938LC_ALL=C
16939export LC_ALL
16940LANGUAGE=C
16941export LANGUAGE
16942
16943# CDPATH.
16944(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16945
16946
16947# as_fn_error STATUS ERROR [LINENO LOG_FD]
16948# ----------------------------------------
16949# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16950# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16951# script with STATUS, using 1 if that was 0.
16952as_fn_error ()
16953{
16954  as_status=$1; test $as_status -eq 0 && as_status=1
16955  if test "$4"; then
16956    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16957    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16958  fi
16959  $as_echo "$as_me: error: $2" >&2
16960  as_fn_exit $as_status
16961} # as_fn_error
16962
16963
16964# as_fn_set_status STATUS
16965# -----------------------
16966# Set $? to STATUS, without forking.
16967as_fn_set_status ()
16968{
16969  return $1
16970} # as_fn_set_status
16971
16972# as_fn_exit STATUS
16973# -----------------
16974# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16975as_fn_exit ()
16976{
16977  set +e
16978  as_fn_set_status $1
16979  exit $1
16980} # as_fn_exit
16981
16982# as_fn_unset VAR
16983# ---------------
16984# Portably unset VAR.
16985as_fn_unset ()
16986{
16987  { eval $1=; unset $1;}
16988}
16989as_unset=as_fn_unset
16990# as_fn_append VAR VALUE
16991# ----------------------
16992# Append the text in VALUE to the end of the definition contained in VAR. Take
16993# advantage of any shell optimizations that allow amortized linear growth over
16994# repeated appends, instead of the typical quadratic growth present in naive
16995# implementations.
16996if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16997  eval 'as_fn_append ()
16998  {
16999    eval $1+=\$2
17000  }'
17001else
17002  as_fn_append ()
17003  {
17004    eval $1=\$$1\$2
17005  }
17006fi # as_fn_append
17007
17008# as_fn_arith ARG...
17009# ------------------
17010# Perform arithmetic evaluation on the ARGs, and store the result in the
17011# global $as_val. Take advantage of shells that can avoid forks. The arguments
17012# must be portable across $(()) and expr.
17013if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17014  eval 'as_fn_arith ()
17015  {
17016    as_val=$(( $* ))
17017  }'
17018else
17019  as_fn_arith ()
17020  {
17021    as_val=`expr "$@" || test $? -eq 1`
17022  }
17023fi # as_fn_arith
17024
17025
17026if expr a : '\(a\)' >/dev/null 2>&1 &&
17027   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17028  as_expr=expr
17029else
17030  as_expr=false
17031fi
17032
17033if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17034  as_basename=basename
17035else
17036  as_basename=false
17037fi
17038
17039if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17040  as_dirname=dirname
17041else
17042  as_dirname=false
17043fi
17044
17045as_me=`$as_basename -- "$0" ||
17046$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17047	 X"$0" : 'X\(//\)$' \| \
17048	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17049$as_echo X/"$0" |
17050    sed '/^.*\/\([^/][^/]*\)\/*$/{
17051	    s//\1/
17052	    q
17053	  }
17054	  /^X\/\(\/\/\)$/{
17055	    s//\1/
17056	    q
17057	  }
17058	  /^X\/\(\/\).*/{
17059	    s//\1/
17060	    q
17061	  }
17062	  s/.*/./; q'`
17063
17064# Avoid depending upon Character Ranges.
17065as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17066as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17067as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17068as_cr_digits='0123456789'
17069as_cr_alnum=$as_cr_Letters$as_cr_digits
17070
17071ECHO_C= ECHO_N= ECHO_T=
17072case `echo -n x` in #(((((
17073-n*)
17074  case `echo 'xy\c'` in
17075  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17076  xy)  ECHO_C='\c';;
17077  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17078       ECHO_T='	';;
17079  esac;;
17080*)
17081  ECHO_N='-n';;
17082esac
17083
17084rm -f conf$$ conf$$.exe conf$$.file
17085if test -d conf$$.dir; then
17086  rm -f conf$$.dir/conf$$.file
17087else
17088  rm -f conf$$.dir
17089  mkdir conf$$.dir 2>/dev/null
17090fi
17091if (echo >conf$$.file) 2>/dev/null; then
17092  if ln -s conf$$.file conf$$ 2>/dev/null; then
17093    as_ln_s='ln -s'
17094    # ... but there are two gotchas:
17095    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17096    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17097    # In both cases, we have to default to `cp -p'.
17098    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17099      as_ln_s='cp -p'
17100  elif ln conf$$.file conf$$ 2>/dev/null; then
17101    as_ln_s=ln
17102  else
17103    as_ln_s='cp -p'
17104  fi
17105else
17106  as_ln_s='cp -p'
17107fi
17108rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17109rmdir conf$$.dir 2>/dev/null
17110
17111
17112# as_fn_mkdir_p
17113# -------------
17114# Create "$as_dir" as a directory, including parents if necessary.
17115as_fn_mkdir_p ()
17116{
17117
17118  case $as_dir in #(
17119  -*) as_dir=./$as_dir;;
17120  esac
17121  test -d "$as_dir" || eval $as_mkdir_p || {
17122    as_dirs=
17123    while :; do
17124      case $as_dir in #(
17125      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17126      *) as_qdir=$as_dir;;
17127      esac
17128      as_dirs="'$as_qdir' $as_dirs"
17129      as_dir=`$as_dirname -- "$as_dir" ||
17130$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17131	 X"$as_dir" : 'X\(//\)[^/]' \| \
17132	 X"$as_dir" : 'X\(//\)$' \| \
17133	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17134$as_echo X"$as_dir" |
17135    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17136	    s//\1/
17137	    q
17138	  }
17139	  /^X\(\/\/\)[^/].*/{
17140	    s//\1/
17141	    q
17142	  }
17143	  /^X\(\/\/\)$/{
17144	    s//\1/
17145	    q
17146	  }
17147	  /^X\(\/\).*/{
17148	    s//\1/
17149	    q
17150	  }
17151	  s/.*/./; q'`
17152      test -d "$as_dir" && break
17153    done
17154    test -z "$as_dirs" || eval "mkdir $as_dirs"
17155  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17156
17157
17158} # as_fn_mkdir_p
17159if mkdir -p . 2>/dev/null; then
17160  as_mkdir_p='mkdir -p "$as_dir"'
17161else
17162  test -d ./-p && rmdir ./-p
17163  as_mkdir_p=false
17164fi
17165
17166if test -x / >/dev/null 2>&1; then
17167  as_test_x='test -x'
17168else
17169  if ls -dL / >/dev/null 2>&1; then
17170    as_ls_L_option=L
17171  else
17172    as_ls_L_option=
17173  fi
17174  as_test_x='
17175    eval sh -c '\''
17176      if test -d "$1"; then
17177	test -d "$1/.";
17178      else
17179	case $1 in #(
17180	-*)set "./$1";;
17181	esac;
17182	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17183	???[sx]*):;;*)false;;esac;fi
17184    '\'' sh
17185  '
17186fi
17187as_executable_p=$as_test_x
17188
17189# Sed expression to map a string onto a valid CPP name.
17190as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17191
17192# Sed expression to map a string onto a valid variable name.
17193as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17194
17195
17196exec 6>&1
17197## ----------------------------------- ##
17198## Main body of $CONFIG_STATUS script. ##
17199## ----------------------------------- ##
17200_ASEOF
17201test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17202
17203cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17204# Save the log message, to keep $0 and so on meaningful, and to
17205# report actual input values of CONFIG_FILES etc. instead of their
17206# values after options handling.
17207ac_log="
17208This file was extended by lighttpd $as_me 1.4.39, which was
17209generated by GNU Autoconf 2.67.  Invocation command line was
17210
17211  CONFIG_FILES    = $CONFIG_FILES
17212  CONFIG_HEADERS  = $CONFIG_HEADERS
17213  CONFIG_LINKS    = $CONFIG_LINKS
17214  CONFIG_COMMANDS = $CONFIG_COMMANDS
17215  $ $0 $@
17216
17217on `(hostname || uname -n) 2>/dev/null | sed 1q`
17218"
17219
17220_ACEOF
17221
17222case $ac_config_files in *"
17223"*) set x $ac_config_files; shift; ac_config_files=$*;;
17224esac
17225
17226case $ac_config_headers in *"
17227"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17228esac
17229
17230
17231cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17232# Files that config.status was made for.
17233config_files="$ac_config_files"
17234config_headers="$ac_config_headers"
17235config_commands="$ac_config_commands"
17236
17237_ACEOF
17238
17239cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17240ac_cs_usage="\
17241\`$as_me' instantiates files and other configuration actions
17242from templates according to the current configuration.  Unless the files
17243and actions are specified as TAGs, all are instantiated by default.
17244
17245Usage: $0 [OPTION]... [TAG]...
17246
17247  -h, --help       print this help, then exit
17248  -V, --version    print version number and configuration settings, then exit
17249      --config     print configuration, then exit
17250  -q, --quiet, --silent
17251                   do not print progress messages
17252  -d, --debug      don't remove temporary files
17253      --recheck    update $as_me by reconfiguring in the same conditions
17254      --file=FILE[:TEMPLATE]
17255                   instantiate the configuration file FILE
17256      --header=FILE[:TEMPLATE]
17257                   instantiate the configuration header FILE
17258
17259Configuration files:
17260$config_files
17261
17262Configuration headers:
17263$config_headers
17264
17265Configuration commands:
17266$config_commands
17267
17268Report bugs to <contact@lighttpd.net>."
17269
17270_ACEOF
17271cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17272ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17273ac_cs_version="\\
17274lighttpd config.status 1.4.39
17275configured by $0, generated by GNU Autoconf 2.67,
17276  with options \\"\$ac_cs_config\\"
17277
17278Copyright (C) 2010 Free Software Foundation, Inc.
17279This config.status script is free software; the Free Software Foundation
17280gives unlimited permission to copy, distribute and modify it."
17281
17282ac_pwd='$ac_pwd'
17283srcdir='$srcdir'
17284INSTALL='$INSTALL'
17285MKDIR_P='$MKDIR_P'
17286AWK='$AWK'
17287test -n "\$AWK" || AWK=awk
17288_ACEOF
17289
17290cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17291# The default lists apply if the user does not specify any file.
17292ac_need_defaults=:
17293while test $# != 0
17294do
17295  case $1 in
17296  --*=?*)
17297    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17298    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17299    ac_shift=:
17300    ;;
17301  --*=)
17302    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17303    ac_optarg=
17304    ac_shift=:
17305    ;;
17306  *)
17307    ac_option=$1
17308    ac_optarg=$2
17309    ac_shift=shift
17310    ;;
17311  esac
17312
17313  case $ac_option in
17314  # Handling of the options.
17315  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17316    ac_cs_recheck=: ;;
17317  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17318    $as_echo "$ac_cs_version"; exit ;;
17319  --config | --confi | --conf | --con | --co | --c )
17320    $as_echo "$ac_cs_config"; exit ;;
17321  --debug | --debu | --deb | --de | --d | -d )
17322    debug=: ;;
17323  --file | --fil | --fi | --f )
17324    $ac_shift
17325    case $ac_optarg in
17326    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17327    '') as_fn_error $? "missing file argument" ;;
17328    esac
17329    as_fn_append CONFIG_FILES " '$ac_optarg'"
17330    ac_need_defaults=false;;
17331  --header | --heade | --head | --hea )
17332    $ac_shift
17333    case $ac_optarg in
17334    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17335    esac
17336    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17337    ac_need_defaults=false;;
17338  --he | --h)
17339    # Conflict between --help and --header
17340    as_fn_error $? "ambiguous option: \`$1'
17341Try \`$0 --help' for more information.";;
17342  --help | --hel | -h )
17343    $as_echo "$ac_cs_usage"; exit ;;
17344  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17345  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17346    ac_cs_silent=: ;;
17347
17348  # This is an error.
17349  -*) as_fn_error $? "unrecognized option: \`$1'
17350Try \`$0 --help' for more information." ;;
17351
17352  *) as_fn_append ac_config_targets " $1"
17353     ac_need_defaults=false ;;
17354
17355  esac
17356  shift
17357done
17358
17359ac_configure_extra_args=
17360
17361if $ac_cs_silent; then
17362  exec 6>/dev/null
17363  ac_configure_extra_args="$ac_configure_extra_args --silent"
17364fi
17365
17366_ACEOF
17367cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17368if \$ac_cs_recheck; then
17369  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17370  shift
17371  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17372  CONFIG_SHELL='$SHELL'
17373  export CONFIG_SHELL
17374  exec "\$@"
17375fi
17376
17377_ACEOF
17378cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17379exec 5>>config.log
17380{
17381  echo
17382  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17383## Running $as_me. ##
17384_ASBOX
17385  $as_echo "$ac_log"
17386} >&5
17387
17388_ACEOF
17389cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17390#
17391# INIT-COMMANDS
17392#
17393AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17394
17395
17396# The HP-UX ksh and POSIX shell print the target directory to stdout
17397# if CDPATH is set.
17398(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17399
17400sed_quote_subst='$sed_quote_subst'
17401double_quote_subst='$double_quote_subst'
17402delay_variable_subst='$delay_variable_subst'
17403SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17404Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17405GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17406EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17407FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17408SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17409ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17410LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17411enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17412enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17413macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17414macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17415pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17416enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17417PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17418host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17419host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17420host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17421build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17422build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17423build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17424NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17425LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17426max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17427ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17428exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17429lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17430lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17431lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17432lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17433lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17434reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17435reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17436OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17437deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17438file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17439file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17440want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17441DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17442sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17443AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17444AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17445archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17446STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17447RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17448old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17449old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17450old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17451lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17452CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17453CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17454compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17455GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17456lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17457lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17458lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17459lt_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"`'
17460nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17461lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17462objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17463MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17464lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17465lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17466lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17467lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17468lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17469need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17470MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17471DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17472NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17473LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17474OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17475OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17476libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17477shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17478extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17479archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17480enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17481export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17482whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17483compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17484old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17485old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17486archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17487archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17488module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17489module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17490with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17491allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17492no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17493hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17494hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17495hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17496hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17497hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17498hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17499hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17500inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17501link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17502always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17503export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17504exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17505include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17506prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17507postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17508file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17509variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17510need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17511need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17512version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17513runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17514shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17515shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17516libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17517library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17518soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17519install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17520postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17521postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17522finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17523finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17524hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17525sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17526sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17527hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17528enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17529enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17530enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17531old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17532striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17533
17534LTCC='$LTCC'
17535LTCFLAGS='$LTCFLAGS'
17536compiler='$compiler_DEFAULT'
17537
17538# A function that is used when there is no print builtin or printf.
17539func_fallback_echo ()
17540{
17541  eval 'cat <<_LTECHO_EOF
17542\$1
17543_LTECHO_EOF'
17544}
17545
17546# Quote evaled strings.
17547for var in SED \
17548GREP \
17549EGREP \
17550FGREP \
17551SHELL \
17552ECHO \
17553LD \
17554PATH_SEPARATOR \
17555NM \
17556LN_S \
17557lt_SP2NL \
17558lt_NL2SP \
17559reload_flag \
17560OBJDUMP \
17561deplibs_check_method \
17562file_magic_cmd \
17563file_magic_glob \
17564want_nocaseglob \
17565DLLTOOL \
17566sharedlib_from_linklib_cmd \
17567AR \
17568AR_FLAGS \
17569archiver_list_spec \
17570STRIP \
17571RANLIB \
17572CC \
17573CFLAGS \
17574compiler \
17575lt_cv_sys_global_symbol_pipe \
17576lt_cv_sys_global_symbol_to_cdecl \
17577lt_cv_sys_global_symbol_to_c_name_address \
17578lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17579nm_file_list_spec \
17580lt_prog_compiler_no_builtin_flag \
17581lt_prog_compiler_pic \
17582lt_prog_compiler_wl \
17583lt_prog_compiler_static \
17584lt_cv_prog_compiler_c_o \
17585need_locks \
17586MANIFEST_TOOL \
17587DSYMUTIL \
17588NMEDIT \
17589LIPO \
17590OTOOL \
17591OTOOL64 \
17592shrext_cmds \
17593export_dynamic_flag_spec \
17594whole_archive_flag_spec \
17595compiler_needs_object \
17596with_gnu_ld \
17597allow_undefined_flag \
17598no_undefined_flag \
17599hardcode_libdir_flag_spec \
17600hardcode_libdir_separator \
17601exclude_expsyms \
17602include_expsyms \
17603file_list_spec \
17604variables_saved_for_relink \
17605libname_spec \
17606library_names_spec \
17607soname_spec \
17608install_override_mode \
17609finish_eval \
17610old_striplib \
17611striplib; do
17612    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17613    *[\\\\\\\`\\"\\\$]*)
17614      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17615      ;;
17616    *)
17617      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17618      ;;
17619    esac
17620done
17621
17622# Double-quote double-evaled strings.
17623for var in reload_cmds \
17624old_postinstall_cmds \
17625old_postuninstall_cmds \
17626old_archive_cmds \
17627extract_expsyms_cmds \
17628old_archive_from_new_cmds \
17629old_archive_from_expsyms_cmds \
17630archive_cmds \
17631archive_expsym_cmds \
17632module_cmds \
17633module_expsym_cmds \
17634export_symbols_cmds \
17635prelink_cmds \
17636postlink_cmds \
17637postinstall_cmds \
17638postuninstall_cmds \
17639finish_cmds \
17640sys_lib_search_path_spec \
17641sys_lib_dlsearch_path_spec; do
17642    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17643    *[\\\\\\\`\\"\\\$]*)
17644      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17645      ;;
17646    *)
17647      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17648      ;;
17649    esac
17650done
17651
17652ac_aux_dir='$ac_aux_dir'
17653xsi_shell='$xsi_shell'
17654lt_shell_append='$lt_shell_append'
17655
17656# See if we are running on zsh, and set the options which allow our
17657# commands through without removal of \ escapes INIT.
17658if test -n "\${ZSH_VERSION+set}" ; then
17659   setopt NO_GLOB_SUBST
17660fi
17661
17662
17663    PACKAGE='$PACKAGE'
17664    VERSION='$VERSION'
17665    TIMESTAMP='$TIMESTAMP'
17666    RM='$RM'
17667    ofile='$ofile'
17668
17669
17670
17671
17672_ACEOF
17673
17674cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17675
17676# Handling of arguments.
17677for ac_config_target in $ac_config_targets
17678do
17679  case $ac_config_target in
17680    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17681    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17682    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17683    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17684    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17685    "distribute.sh") CONFIG_FILES="$CONFIG_FILES distribute.sh" ;;
17686
17687  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
17688  esac
17689done
17690
17691
17692# If the user did not use the arguments to specify the items to instantiate,
17693# then the envvar interface is used.  Set only those that are not.
17694# We use the long form for the default assignment because of an extremely
17695# bizarre bug on SunOS 4.1.3.
17696if $ac_need_defaults; then
17697  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17698  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17699  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17700fi
17701
17702# Have a temporary directory for convenience.  Make it in the build tree
17703# simply because there is no reason against having it here, and in addition,
17704# creating and moving files from /tmp can sometimes cause problems.
17705# Hook for its removal unless debugging.
17706# Note that there is a small window in which the directory will not be cleaned:
17707# after its creation but before its name has been assigned to `$tmp'.
17708$debug ||
17709{
17710  tmp=
17711  trap 'exit_status=$?
17712  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17713' 0
17714  trap 'as_fn_exit 1' 1 2 13 15
17715}
17716# Create a (secure) tmp directory for tmp files.
17717
17718{
17719  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17720  test -n "$tmp" && test -d "$tmp"
17721}  ||
17722{
17723  tmp=./conf$$-$RANDOM
17724  (umask 077 && mkdir "$tmp")
17725} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17726
17727# Set up the scripts for CONFIG_FILES section.
17728# No need to generate them if there are no CONFIG_FILES.
17729# This happens for instance with `./config.status config.h'.
17730if test -n "$CONFIG_FILES"; then
17731
17732
17733ac_cr=`echo X | tr X '\015'`
17734# On cygwin, bash can eat \r inside `` if the user requested igncr.
17735# But we know of no other shell where ac_cr would be empty at this
17736# point, so we can use a bashism as a fallback.
17737if test "x$ac_cr" = x; then
17738  eval ac_cr=\$\'\\r\'
17739fi
17740ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17741if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17742  ac_cs_awk_cr='\\r'
17743else
17744  ac_cs_awk_cr=$ac_cr
17745fi
17746
17747echo 'BEGIN {' >"$tmp/subs1.awk" &&
17748_ACEOF
17749
17750
17751{
17752  echo "cat >conf$$subs.awk <<_ACEOF" &&
17753  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17754  echo "_ACEOF"
17755} >conf$$subs.sh ||
17756  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17757ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17758ac_delim='%!_!# '
17759for ac_last_try in false false false false false :; do
17760  . ./conf$$subs.sh ||
17761    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17762
17763  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17764  if test $ac_delim_n = $ac_delim_num; then
17765    break
17766  elif $ac_last_try; then
17767    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17768  else
17769    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17770  fi
17771done
17772rm -f conf$$subs.sh
17773
17774cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17775cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17776_ACEOF
17777sed -n '
17778h
17779s/^/S["/; s/!.*/"]=/
17780p
17781g
17782s/^[^!]*!//
17783:repl
17784t repl
17785s/'"$ac_delim"'$//
17786t delim
17787:nl
17788h
17789s/\(.\{148\}\)..*/\1/
17790t more1
17791s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17792p
17793n
17794b repl
17795:more1
17796s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17797p
17798g
17799s/.\{148\}//
17800t nl
17801:delim
17802h
17803s/\(.\{148\}\)..*/\1/
17804t more2
17805s/["\\]/\\&/g; s/^/"/; s/$/"/
17806p
17807b
17808:more2
17809s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17810p
17811g
17812s/.\{148\}//
17813t delim
17814' <conf$$subs.awk | sed '
17815/^[^""]/{
17816  N
17817  s/\n//
17818}
17819' >>$CONFIG_STATUS || ac_write_fail=1
17820rm -f conf$$subs.awk
17821cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17822_ACAWK
17823cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17824  for (key in S) S_is_set[key] = 1
17825  FS = ""
17826
17827}
17828{
17829  line = $ 0
17830  nfields = split(line, field, "@")
17831  substed = 0
17832  len = length(field[1])
17833  for (i = 2; i < nfields; i++) {
17834    key = field[i]
17835    keylen = length(key)
17836    if (S_is_set[key]) {
17837      value = S[key]
17838      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17839      len += length(value) + length(field[++i])
17840      substed = 1
17841    } else
17842      len += 1 + keylen
17843  }
17844
17845  print line
17846}
17847
17848_ACAWK
17849_ACEOF
17850cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17851if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17852  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17853else
17854  cat
17855fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17856  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17857_ACEOF
17858
17859# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17860# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17861# trailing colons and then remove the whole line if VPATH becomes empty
17862# (actually we leave an empty line to preserve line numbers).
17863if test "x$srcdir" = x.; then
17864  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
17865h
17866s///
17867s/^/:/
17868s/[	 ]*$/:/
17869s/:\$(srcdir):/:/g
17870s/:\${srcdir}:/:/g
17871s/:@srcdir@:/:/g
17872s/^:*//
17873s/:*$//
17874x
17875s/\(=[	 ]*\).*/\1/
17876G
17877s/\n//
17878s/^[^=]*=[	 ]*$//
17879}'
17880fi
17881
17882cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17883fi # test -n "$CONFIG_FILES"
17884
17885# Set up the scripts for CONFIG_HEADERS section.
17886# No need to generate them if there are no CONFIG_HEADERS.
17887# This happens for instance with `./config.status Makefile'.
17888if test -n "$CONFIG_HEADERS"; then
17889cat >"$tmp/defines.awk" <<\_ACAWK ||
17890BEGIN {
17891_ACEOF
17892
17893# Transform confdefs.h into an awk script `defines.awk', embedded as
17894# here-document in config.status, that substitutes the proper values into
17895# config.h.in to produce config.h.
17896
17897# Create a delimiter string that does not exist in confdefs.h, to ease
17898# handling of long lines.
17899ac_delim='%!_!# '
17900for ac_last_try in false false :; do
17901  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17902  if test -z "$ac_t"; then
17903    break
17904  elif $ac_last_try; then
17905    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17906  else
17907    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17908  fi
17909done
17910
17911# For the awk script, D is an array of macro values keyed by name,
17912# likewise P contains macro parameters if any.  Preserve backslash
17913# newline sequences.
17914
17915ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17916sed -n '
17917s/.\{148\}/&'"$ac_delim"'/g
17918t rset
17919:rset
17920s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
17921t def
17922d
17923:def
17924s/\\$//
17925t bsnl
17926s/["\\]/\\&/g
17927s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17928D["\1"]=" \3"/p
17929s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
17930d
17931:bsnl
17932s/["\\]/\\&/g
17933s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17934D["\1"]=" \3\\\\\\n"\\/p
17935t cont
17936s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17937t cont
17938d
17939:cont
17940n
17941s/.\{148\}/&'"$ac_delim"'/g
17942t clear
17943:clear
17944s/\\$//
17945t bsnlc
17946s/["\\]/\\&/g; s/^/"/; s/$/"/p
17947d
17948:bsnlc
17949s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17950b cont
17951' <confdefs.h | sed '
17952s/'"$ac_delim"'/"\\\
17953"/g' >>$CONFIG_STATUS || ac_write_fail=1
17954
17955cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17956  for (key in D) D_is_set[key] = 1
17957  FS = ""
17958}
17959/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17960  line = \$ 0
17961  split(line, arg, " ")
17962  if (arg[1] == "#") {
17963    defundef = arg[2]
17964    mac1 = arg[3]
17965  } else {
17966    defundef = substr(arg[1], 2)
17967    mac1 = arg[2]
17968  }
17969  split(mac1, mac2, "(") #)
17970  macro = mac2[1]
17971  prefix = substr(line, 1, index(line, defundef) - 1)
17972  if (D_is_set[macro]) {
17973    # Preserve the white space surrounding the "#".
17974    print prefix "define", macro P[macro] D[macro]
17975    next
17976  } else {
17977    # Replace #undef with comments.  This is necessary, for example,
17978    # in the case of _POSIX_SOURCE, which is predefined and required
17979    # on some systems where configure will not decide to define it.
17980    if (defundef == "undef") {
17981      print "/*", prefix defundef, macro, "*/"
17982      next
17983    }
17984  }
17985}
17986{ print }
17987_ACAWK
17988_ACEOF
17989cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17990  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17991fi # test -n "$CONFIG_HEADERS"
17992
17993
17994eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17995shift
17996for ac_tag
17997do
17998  case $ac_tag in
17999  :[FHLC]) ac_mode=$ac_tag; continue;;
18000  esac
18001  case $ac_mode$ac_tag in
18002  :[FHL]*:*);;
18003  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
18004  :[FH]-) ac_tag=-:-;;
18005  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18006  esac
18007  ac_save_IFS=$IFS
18008  IFS=:
18009  set x $ac_tag
18010  IFS=$ac_save_IFS
18011  shift
18012  ac_file=$1
18013  shift
18014
18015  case $ac_mode in
18016  :L) ac_source=$1;;
18017  :[FH])
18018    ac_file_inputs=
18019    for ac_f
18020    do
18021      case $ac_f in
18022      -) ac_f="$tmp/stdin";;
18023      *) # Look for the file first in the build tree, then in the source tree
18024	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18025	 # because $ac_f cannot contain `:'.
18026	 test -f "$ac_f" ||
18027	   case $ac_f in
18028	   [\\/$]*) false;;
18029	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18030	   esac ||
18031	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
18032      esac
18033      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18034      as_fn_append ac_file_inputs " '$ac_f'"
18035    done
18036
18037    # Let's still pretend it is `configure' which instantiates (i.e., don't
18038    # use $as_me), people would be surprised to read:
18039    #    /* config.h.  Generated by config.status.  */
18040    configure_input='Generated from '`
18041	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18042	`' by configure.'
18043    if test x"$ac_file" != x-; then
18044      configure_input="$ac_file.  $configure_input"
18045      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18046$as_echo "$as_me: creating $ac_file" >&6;}
18047    fi
18048    # Neutralize special characters interpreted by sed in replacement strings.
18049    case $configure_input in #(
18050    *\&* | *\|* | *\\* )
18051       ac_sed_conf_input=`$as_echo "$configure_input" |
18052       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18053    *) ac_sed_conf_input=$configure_input;;
18054    esac
18055
18056    case $ac_tag in
18057    *:-:* | *:-) cat >"$tmp/stdin" \
18058      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
18059    esac
18060    ;;
18061  esac
18062
18063  ac_dir=`$as_dirname -- "$ac_file" ||
18064$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18065	 X"$ac_file" : 'X\(//\)[^/]' \| \
18066	 X"$ac_file" : 'X\(//\)$' \| \
18067	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18068$as_echo X"$ac_file" |
18069    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18070	    s//\1/
18071	    q
18072	  }
18073	  /^X\(\/\/\)[^/].*/{
18074	    s//\1/
18075	    q
18076	  }
18077	  /^X\(\/\/\)$/{
18078	    s//\1/
18079	    q
18080	  }
18081	  /^X\(\/\).*/{
18082	    s//\1/
18083	    q
18084	  }
18085	  s/.*/./; q'`
18086  as_dir="$ac_dir"; as_fn_mkdir_p
18087  ac_builddir=.
18088
18089case "$ac_dir" in
18090.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18091*)
18092  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18093  # A ".." for each directory in $ac_dir_suffix.
18094  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18095  case $ac_top_builddir_sub in
18096  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18097  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18098  esac ;;
18099esac
18100ac_abs_top_builddir=$ac_pwd
18101ac_abs_builddir=$ac_pwd$ac_dir_suffix
18102# for backward compatibility:
18103ac_top_builddir=$ac_top_build_prefix
18104
18105case $srcdir in
18106  .)  # We are building in place.
18107    ac_srcdir=.
18108    ac_top_srcdir=$ac_top_builddir_sub
18109    ac_abs_top_srcdir=$ac_pwd ;;
18110  [\\/]* | ?:[\\/]* )  # Absolute name.
18111    ac_srcdir=$srcdir$ac_dir_suffix;
18112    ac_top_srcdir=$srcdir
18113    ac_abs_top_srcdir=$srcdir ;;
18114  *) # Relative name.
18115    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18116    ac_top_srcdir=$ac_top_build_prefix$srcdir
18117    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18118esac
18119ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18120
18121
18122  case $ac_mode in
18123  :F)
18124  #
18125  # CONFIG_FILE
18126  #
18127
18128  case $INSTALL in
18129  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18130  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18131  esac
18132  ac_MKDIR_P=$MKDIR_P
18133  case $MKDIR_P in
18134  [\\/$]* | ?:[\\/]* ) ;;
18135  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18136  esac
18137_ACEOF
18138
18139cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18140# If the template does not know about datarootdir, expand it.
18141# FIXME: This hack should be removed a few years after 2.60.
18142ac_datarootdir_hack=; ac_datarootdir_seen=
18143ac_sed_dataroot='
18144/datarootdir/ {
18145  p
18146  q
18147}
18148/@datadir@/p
18149/@docdir@/p
18150/@infodir@/p
18151/@localedir@/p
18152/@mandir@/p'
18153case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18154*datarootdir*) ac_datarootdir_seen=yes;;
18155*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18156  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18157$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18158_ACEOF
18159cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18160  ac_datarootdir_hack='
18161  s&@datadir@&$datadir&g
18162  s&@docdir@&$docdir&g
18163  s&@infodir@&$infodir&g
18164  s&@localedir@&$localedir&g
18165  s&@mandir@&$mandir&g
18166  s&\\\${datarootdir}&$datarootdir&g' ;;
18167esac
18168_ACEOF
18169
18170# Neutralize VPATH when `$srcdir' = `.'.
18171# Shell code in configure.ac might set extrasub.
18172# FIXME: do we really want to maintain this feature?
18173cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18174ac_sed_extra="$ac_vpsub
18175$extrasub
18176_ACEOF
18177cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18178:t
18179/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18180s|@configure_input@|$ac_sed_conf_input|;t t
18181s&@top_builddir@&$ac_top_builddir_sub&;t t
18182s&@top_build_prefix@&$ac_top_build_prefix&;t t
18183s&@srcdir@&$ac_srcdir&;t t
18184s&@abs_srcdir@&$ac_abs_srcdir&;t t
18185s&@top_srcdir@&$ac_top_srcdir&;t t
18186s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18187s&@builddir@&$ac_builddir&;t t
18188s&@abs_builddir@&$ac_abs_builddir&;t t
18189s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18190s&@INSTALL@&$ac_INSTALL&;t t
18191s&@MKDIR_P@&$ac_MKDIR_P&;t t
18192$ac_datarootdir_hack
18193"
18194eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18195  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18196
18197test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18198  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18199  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18200  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18201which seems to be undefined.  Please make sure it is defined" >&5
18202$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18203which seems to be undefined.  Please make sure it is defined" >&2;}
18204
18205  rm -f "$tmp/stdin"
18206  case $ac_file in
18207  -) cat "$tmp/out" && rm -f "$tmp/out";;
18208  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18209  esac \
18210  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18211 ;;
18212  :H)
18213  #
18214  # CONFIG_HEADER
18215  #
18216  if test x"$ac_file" != x-; then
18217    {
18218      $as_echo "/* $configure_input  */" \
18219      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18220    } >"$tmp/config.h" \
18221      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18222    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18223      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18224$as_echo "$as_me: $ac_file is unchanged" >&6;}
18225    else
18226      rm -f "$ac_file"
18227      mv "$tmp/config.h" "$ac_file" \
18228	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18229    fi
18230  else
18231    $as_echo "/* $configure_input  */" \
18232      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18233      || as_fn_error $? "could not create -" "$LINENO" 5
18234  fi
18235# Compute "$ac_file"'s index in $config_headers.
18236_am_arg="$ac_file"
18237_am_stamp_count=1
18238for _am_header in $config_headers :; do
18239  case $_am_header in
18240    $_am_arg | $_am_arg:* )
18241      break ;;
18242    * )
18243      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18244  esac
18245done
18246echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18247$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18248	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18249	 X"$_am_arg" : 'X\(//\)$' \| \
18250	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18251$as_echo X"$_am_arg" |
18252    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18253	    s//\1/
18254	    q
18255	  }
18256	  /^X\(\/\/\)[^/].*/{
18257	    s//\1/
18258	    q
18259	  }
18260	  /^X\(\/\/\)$/{
18261	    s//\1/
18262	    q
18263	  }
18264	  /^X\(\/\).*/{
18265	    s//\1/
18266	    q
18267	  }
18268	  s/.*/./; q'`/stamp-h$_am_stamp_count
18269 ;;
18270
18271  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18272$as_echo "$as_me: executing $ac_file commands" >&6;}
18273 ;;
18274  esac
18275
18276
18277  case $ac_file$ac_mode in
18278    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18279  # Autoconf 2.62 quotes --file arguments for eval, but not when files
18280  # are listed without --file.  Let's play safe and only enable the eval
18281  # if we detect the quoting.
18282  case $CONFIG_FILES in
18283  *\'*) eval set x "$CONFIG_FILES" ;;
18284  *)   set x $CONFIG_FILES ;;
18285  esac
18286  shift
18287  for mf
18288  do
18289    # Strip MF so we end up with the name of the file.
18290    mf=`echo "$mf" | sed -e 's/:.*$//'`
18291    # Check whether this is an Automake generated Makefile or not.
18292    # We used to match only the files named `Makefile.in', but
18293    # some people rename them; so instead we look at the file content.
18294    # Grep'ing the first line is not enough: some people post-process
18295    # each Makefile.in and add a new line on top of each file to say so.
18296    # Grep'ing the whole file is not good either: AIX grep has a line
18297    # limit of 2048, but all sed's we know have understand at least 4000.
18298    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18299      dirpart=`$as_dirname -- "$mf" ||
18300$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18301	 X"$mf" : 'X\(//\)[^/]' \| \
18302	 X"$mf" : 'X\(//\)$' \| \
18303	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18304$as_echo X"$mf" |
18305    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18306	    s//\1/
18307	    q
18308	  }
18309	  /^X\(\/\/\)[^/].*/{
18310	    s//\1/
18311	    q
18312	  }
18313	  /^X\(\/\/\)$/{
18314	    s//\1/
18315	    q
18316	  }
18317	  /^X\(\/\).*/{
18318	    s//\1/
18319	    q
18320	  }
18321	  s/.*/./; q'`
18322    else
18323      continue
18324    fi
18325    # Extract the definition of DEPDIR, am__include, and am__quote
18326    # from the Makefile without running `make'.
18327    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18328    test -z "$DEPDIR" && continue
18329    am__include=`sed -n 's/^am__include = //p' < "$mf"`
18330    test -z "am__include" && continue
18331    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18332    # When using ansi2knr, U may be empty or an underscore; expand it
18333    U=`sed -n 's/^U = //p' < "$mf"`
18334    # Find all dependency output files, they are included files with
18335    # $(DEPDIR) in their names.  We invoke sed twice because it is the
18336    # simplest approach to changing $(DEPDIR) to its actual value in the
18337    # expansion.
18338    for file in `sed -n "
18339      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18340	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18341      # Make sure the directory exists.
18342      test -f "$dirpart/$file" && continue
18343      fdir=`$as_dirname -- "$file" ||
18344$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18345	 X"$file" : 'X\(//\)[^/]' \| \
18346	 X"$file" : 'X\(//\)$' \| \
18347	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18348$as_echo X"$file" |
18349    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18350	    s//\1/
18351	    q
18352	  }
18353	  /^X\(\/\/\)[^/].*/{
18354	    s//\1/
18355	    q
18356	  }
18357	  /^X\(\/\/\)$/{
18358	    s//\1/
18359	    q
18360	  }
18361	  /^X\(\/\).*/{
18362	    s//\1/
18363	    q
18364	  }
18365	  s/.*/./; q'`
18366      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18367      # echo "creating $dirpart/$file"
18368      echo '# dummy' > "$dirpart/$file"
18369    done
18370  done
18371}
18372 ;;
18373    "libtool":C)
18374
18375    # See if we are running on zsh, and set the options which allow our
18376    # commands through without removal of \ escapes.
18377    if test -n "${ZSH_VERSION+set}" ; then
18378      setopt NO_GLOB_SUBST
18379    fi
18380
18381    cfgfile="${ofile}T"
18382    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18383    $RM "$cfgfile"
18384
18385    cat <<_LT_EOF >> "$cfgfile"
18386#! $SHELL
18387
18388# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18389# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18390# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18391# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18392#
18393#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18394#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18395#                 Foundation, Inc.
18396#   Written by Gordon Matzigkeit, 1996
18397#
18398#   This file is part of GNU Libtool.
18399#
18400# GNU Libtool is free software; you can redistribute it and/or
18401# modify it under the terms of the GNU General Public License as
18402# published by the Free Software Foundation; either version 2 of
18403# the License, or (at your option) any later version.
18404#
18405# As a special exception to the GNU General Public License,
18406# if you distribute this file as part of a program or library that
18407# is built using GNU Libtool, you may include this file under the
18408# same distribution terms that you use for the rest of that program.
18409#
18410# GNU Libtool is distributed in the hope that it will be useful,
18411# but WITHOUT ANY WARRANTY; without even the implied warranty of
18412# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18413# GNU General Public License for more details.
18414#
18415# You should have received a copy of the GNU General Public License
18416# along with GNU Libtool; see the file COPYING.  If not, a copy
18417# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18418# obtained by writing to the Free Software Foundation, Inc.,
18419# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18420
18421
18422# The names of the tagged configurations supported by this script.
18423available_tags=""
18424
18425# ### BEGIN LIBTOOL CONFIG
18426
18427# A sed program that does not truncate output.
18428SED=$lt_SED
18429
18430# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18431Xsed="\$SED -e 1s/^X//"
18432
18433# A grep program that handles long lines.
18434GREP=$lt_GREP
18435
18436# An ERE matcher.
18437EGREP=$lt_EGREP
18438
18439# A literal string matcher.
18440FGREP=$lt_FGREP
18441
18442# Shell to use when invoking shell scripts.
18443SHELL=$lt_SHELL
18444
18445# An echo program that protects backslashes.
18446ECHO=$lt_ECHO
18447
18448# Whether or not to build static libraries.
18449build_old_libs=$enable_static
18450
18451# Whether or not to build shared libraries.
18452build_libtool_libs=$enable_shared
18453
18454# Which release of libtool.m4 was used?
18455macro_version=$macro_version
18456macro_revision=$macro_revision
18457
18458# What type of objects to build.
18459pic_mode=$pic_mode
18460
18461# Whether or not to optimize for fast installation.
18462fast_install=$enable_fast_install
18463
18464# The PATH separator for the build system.
18465PATH_SEPARATOR=$lt_PATH_SEPARATOR
18466
18467# The host system.
18468host_alias=$host_alias
18469host=$host
18470host_os=$host_os
18471
18472# The build system.
18473build_alias=$build_alias
18474build=$build
18475build_os=$build_os
18476
18477# A BSD- or MS-compatible name lister.
18478NM=$lt_NM
18479
18480# Whether we need soft or hard links.
18481LN_S=$lt_LN_S
18482
18483# What is the maximum length of a command?
18484max_cmd_len=$max_cmd_len
18485
18486# Object file suffix (normally "o").
18487objext=$ac_objext
18488
18489# Executable file suffix (normally "").
18490exeext=$exeext
18491
18492# whether the shell understands "unset".
18493lt_unset=$lt_unset
18494
18495# turn spaces into newlines.
18496SP2NL=$lt_lt_SP2NL
18497
18498# turn newlines into spaces.
18499NL2SP=$lt_lt_NL2SP
18500
18501# convert \$build file names to \$host format.
18502to_host_file_cmd=$lt_cv_to_host_file_cmd
18503
18504# convert \$build files to toolchain format.
18505to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18506
18507# An object symbol dumper.
18508OBJDUMP=$lt_OBJDUMP
18509
18510# Method to check whether dependent libraries are shared objects.
18511deplibs_check_method=$lt_deplibs_check_method
18512
18513# Command to use when deplibs_check_method = "file_magic".
18514file_magic_cmd=$lt_file_magic_cmd
18515
18516# How to find potential files when deplibs_check_method = "file_magic".
18517file_magic_glob=$lt_file_magic_glob
18518
18519# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18520want_nocaseglob=$lt_want_nocaseglob
18521
18522# DLL creation program.
18523DLLTOOL=$lt_DLLTOOL
18524
18525# Command to associate shared and link libraries.
18526sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18527
18528# The archiver.
18529AR=$lt_AR
18530
18531# Flags to create an archive.
18532AR_FLAGS=$lt_AR_FLAGS
18533
18534# How to feed a file listing to the archiver.
18535archiver_list_spec=$lt_archiver_list_spec
18536
18537# A symbol stripping program.
18538STRIP=$lt_STRIP
18539
18540# Commands used to install an old-style archive.
18541RANLIB=$lt_RANLIB
18542old_postinstall_cmds=$lt_old_postinstall_cmds
18543old_postuninstall_cmds=$lt_old_postuninstall_cmds
18544
18545# Whether to use a lock for old archive extraction.
18546lock_old_archive_extraction=$lock_old_archive_extraction
18547
18548# A C compiler.
18549LTCC=$lt_CC
18550
18551# LTCC compiler flags.
18552LTCFLAGS=$lt_CFLAGS
18553
18554# Take the output of nm and produce a listing of raw symbols and C names.
18555global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18556
18557# Transform the output of nm in a proper C declaration.
18558global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18559
18560# Transform the output of nm in a C name address pair.
18561global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18562
18563# Transform the output of nm in a C name address pair when lib prefix is needed.
18564global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18565
18566# Specify filename containing input files for \$NM.
18567nm_file_list_spec=$lt_nm_file_list_spec
18568
18569# The root where to search for dependent libraries,and in which our libraries should be installed.
18570lt_sysroot=$lt_sysroot
18571
18572# The name of the directory that contains temporary libtool files.
18573objdir=$objdir
18574
18575# Used to examine libraries when file_magic_cmd begins with "file".
18576MAGIC_CMD=$MAGIC_CMD
18577
18578# Must we lock files when doing compilation?
18579need_locks=$lt_need_locks
18580
18581# Manifest tool.
18582MANIFEST_TOOL=$lt_MANIFEST_TOOL
18583
18584# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18585DSYMUTIL=$lt_DSYMUTIL
18586
18587# Tool to change global to local symbols on Mac OS X.
18588NMEDIT=$lt_NMEDIT
18589
18590# Tool to manipulate fat objects and archives on Mac OS X.
18591LIPO=$lt_LIPO
18592
18593# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18594OTOOL=$lt_OTOOL
18595
18596# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18597OTOOL64=$lt_OTOOL64
18598
18599# Old archive suffix (normally "a").
18600libext=$libext
18601
18602# Shared library suffix (normally ".so").
18603shrext_cmds=$lt_shrext_cmds
18604
18605# The commands to extract the exported symbol list from a shared archive.
18606extract_expsyms_cmds=$lt_extract_expsyms_cmds
18607
18608# Variables whose values should be saved in libtool wrapper scripts and
18609# restored at link time.
18610variables_saved_for_relink=$lt_variables_saved_for_relink
18611
18612# Do we need the "lib" prefix for modules?
18613need_lib_prefix=$need_lib_prefix
18614
18615# Do we need a version for libraries?
18616need_version=$need_version
18617
18618# Library versioning type.
18619version_type=$version_type
18620
18621# Shared library runtime path variable.
18622runpath_var=$runpath_var
18623
18624# Shared library path variable.
18625shlibpath_var=$shlibpath_var
18626
18627# Is shlibpath searched before the hard-coded library search path?
18628shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18629
18630# Format of library name prefix.
18631libname_spec=$lt_libname_spec
18632
18633# List of archive names.  First name is the real one, the rest are links.
18634# The last name is the one that the linker finds with -lNAME
18635library_names_spec=$lt_library_names_spec
18636
18637# The coded name of the library, if different from the real name.
18638soname_spec=$lt_soname_spec
18639
18640# Permission mode override for installation of shared libraries.
18641install_override_mode=$lt_install_override_mode
18642
18643# Command to use after installation of a shared archive.
18644postinstall_cmds=$lt_postinstall_cmds
18645
18646# Command to use after uninstallation of a shared archive.
18647postuninstall_cmds=$lt_postuninstall_cmds
18648
18649# Commands used to finish a libtool library installation in a directory.
18650finish_cmds=$lt_finish_cmds
18651
18652# As "finish_cmds", except a single script fragment to be evaled but
18653# not shown.
18654finish_eval=$lt_finish_eval
18655
18656# Whether we should hardcode library paths into libraries.
18657hardcode_into_libs=$hardcode_into_libs
18658
18659# Compile-time system search path for libraries.
18660sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18661
18662# Run-time system search path for libraries.
18663sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18664
18665# Whether dlopen is supported.
18666dlopen_support=$enable_dlopen
18667
18668# Whether dlopen of programs is supported.
18669dlopen_self=$enable_dlopen_self
18670
18671# Whether dlopen of statically linked programs is supported.
18672dlopen_self_static=$enable_dlopen_self_static
18673
18674# Commands to strip libraries.
18675old_striplib=$lt_old_striplib
18676striplib=$lt_striplib
18677
18678
18679# The linker used to build libraries.
18680LD=$lt_LD
18681
18682# How to create reloadable object files.
18683reload_flag=$lt_reload_flag
18684reload_cmds=$lt_reload_cmds
18685
18686# Commands used to build an old-style archive.
18687old_archive_cmds=$lt_old_archive_cmds
18688
18689# A language specific compiler.
18690CC=$lt_compiler
18691
18692# Is the compiler the GNU compiler?
18693with_gcc=$GCC
18694
18695# Compiler flag to turn off builtin functions.
18696no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18697
18698# Additional compiler flags for building library objects.
18699pic_flag=$lt_lt_prog_compiler_pic
18700
18701# How to pass a linker flag through the compiler.
18702wl=$lt_lt_prog_compiler_wl
18703
18704# Compiler flag to prevent dynamic linking.
18705link_static_flag=$lt_lt_prog_compiler_static
18706
18707# Does compiler simultaneously support -c and -o options?
18708compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18709
18710# Whether or not to add -lc for building shared libraries.
18711build_libtool_need_lc=$archive_cmds_need_lc
18712
18713# Whether or not to disallow shared libs when runtime libs are static.
18714allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18715
18716# Compiler flag to allow reflexive dlopens.
18717export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18718
18719# Compiler flag to generate shared objects directly from archives.
18720whole_archive_flag_spec=$lt_whole_archive_flag_spec
18721
18722# Whether the compiler copes with passing no objects directly.
18723compiler_needs_object=$lt_compiler_needs_object
18724
18725# Create an old-style archive from a shared archive.
18726old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18727
18728# Create a temporary old-style archive to link instead of a shared archive.
18729old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18730
18731# Commands used to build a shared archive.
18732archive_cmds=$lt_archive_cmds
18733archive_expsym_cmds=$lt_archive_expsym_cmds
18734
18735# Commands used to build a loadable module if different from building
18736# a shared archive.
18737module_cmds=$lt_module_cmds
18738module_expsym_cmds=$lt_module_expsym_cmds
18739
18740# Whether we are building with GNU ld or not.
18741with_gnu_ld=$lt_with_gnu_ld
18742
18743# Flag that allows shared libraries with undefined symbols to be built.
18744allow_undefined_flag=$lt_allow_undefined_flag
18745
18746# Flag that enforces no undefined symbols.
18747no_undefined_flag=$lt_no_undefined_flag
18748
18749# Flag to hardcode \$libdir into a binary during linking.
18750# This must work even if \$libdir does not exist
18751hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18752
18753# Whether we need a single "-rpath" flag with a separated argument.
18754hardcode_libdir_separator=$lt_hardcode_libdir_separator
18755
18756# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18757# DIR into the resulting binary.
18758hardcode_direct=$hardcode_direct
18759
18760# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18761# DIR into the resulting binary and the resulting library dependency is
18762# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18763# library is relocated.
18764hardcode_direct_absolute=$hardcode_direct_absolute
18765
18766# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18767# into the resulting binary.
18768hardcode_minus_L=$hardcode_minus_L
18769
18770# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18771# into the resulting binary.
18772hardcode_shlibpath_var=$hardcode_shlibpath_var
18773
18774# Set to "yes" if building a shared library automatically hardcodes DIR
18775# into the library and all subsequent libraries and executables linked
18776# against it.
18777hardcode_automatic=$hardcode_automatic
18778
18779# Set to yes if linker adds runtime paths of dependent libraries
18780# to runtime path list.
18781inherit_rpath=$inherit_rpath
18782
18783# Whether libtool must link a program against all its dependency libraries.
18784link_all_deplibs=$link_all_deplibs
18785
18786# Set to "yes" if exported symbols are required.
18787always_export_symbols=$always_export_symbols
18788
18789# The commands to list exported symbols.
18790export_symbols_cmds=$lt_export_symbols_cmds
18791
18792# Symbols that should not be listed in the preloaded symbols.
18793exclude_expsyms=$lt_exclude_expsyms
18794
18795# Symbols that must always be exported.
18796include_expsyms=$lt_include_expsyms
18797
18798# Commands necessary for linking programs (against libraries) with templates.
18799prelink_cmds=$lt_prelink_cmds
18800
18801# Commands necessary for finishing linking programs.
18802postlink_cmds=$lt_postlink_cmds
18803
18804# Specify filename containing input files.
18805file_list_spec=$lt_file_list_spec
18806
18807# How to hardcode a shared library path into an executable.
18808hardcode_action=$hardcode_action
18809
18810# ### END LIBTOOL CONFIG
18811
18812_LT_EOF
18813
18814  case $host_os in
18815  aix3*)
18816    cat <<\_LT_EOF >> "$cfgfile"
18817# AIX sometimes has problems with the GCC collect2 program.  For some
18818# reason, if we set the COLLECT_NAMES environment variable, the problems
18819# vanish in a puff of smoke.
18820if test "X${COLLECT_NAMES+set}" != Xset; then
18821  COLLECT_NAMES=
18822  export COLLECT_NAMES
18823fi
18824_LT_EOF
18825    ;;
18826  esac
18827
18828
18829ltmain="$ac_aux_dir/ltmain.sh"
18830
18831
18832  # We use sed instead of cat because bash on DJGPP gets confused if
18833  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18834  # text mode, it properly converts lines to CR/LF.  This bash problem
18835  # is reportedly fixed, but why not run on old versions too?
18836  sed '$q' "$ltmain" >> "$cfgfile" \
18837     || (rm -f "$cfgfile"; exit 1)
18838
18839  if test x"$xsi_shell" = xyes; then
18840  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18841func_dirname ()\
18842{\
18843\    case ${1} in\
18844\      */*) func_dirname_result="${1%/*}${2}" ;;\
18845\      *  ) func_dirname_result="${3}" ;;\
18846\    esac\
18847} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18848  && mv -f "$cfgfile.tmp" "$cfgfile" \
18849    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18850test 0 -eq $? || _lt_function_replace_fail=:
18851
18852
18853  sed -e '/^func_basename ()$/,/^} # func_basename /c\
18854func_basename ()\
18855{\
18856\    func_basename_result="${1##*/}"\
18857} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18858  && mv -f "$cfgfile.tmp" "$cfgfile" \
18859    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18860test 0 -eq $? || _lt_function_replace_fail=:
18861
18862
18863  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18864func_dirname_and_basename ()\
18865{\
18866\    case ${1} in\
18867\      */*) func_dirname_result="${1%/*}${2}" ;;\
18868\      *  ) func_dirname_result="${3}" ;;\
18869\    esac\
18870\    func_basename_result="${1##*/}"\
18871} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18872  && mv -f "$cfgfile.tmp" "$cfgfile" \
18873    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18874test 0 -eq $? || _lt_function_replace_fail=:
18875
18876
18877  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18878func_stripname ()\
18879{\
18880\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18881\    # positional parameters, so assign one to ordinary parameter first.\
18882\    func_stripname_result=${3}\
18883\    func_stripname_result=${func_stripname_result#"${1}"}\
18884\    func_stripname_result=${func_stripname_result%"${2}"}\
18885} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18886  && mv -f "$cfgfile.tmp" "$cfgfile" \
18887    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18888test 0 -eq $? || _lt_function_replace_fail=:
18889
18890
18891  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18892func_split_long_opt ()\
18893{\
18894\    func_split_long_opt_name=${1%%=*}\
18895\    func_split_long_opt_arg=${1#*=}\
18896} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18897  && mv -f "$cfgfile.tmp" "$cfgfile" \
18898    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18899test 0 -eq $? || _lt_function_replace_fail=:
18900
18901
18902  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18903func_split_short_opt ()\
18904{\
18905\    func_split_short_opt_arg=${1#??}\
18906\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18907} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18908  && mv -f "$cfgfile.tmp" "$cfgfile" \
18909    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18910test 0 -eq $? || _lt_function_replace_fail=:
18911
18912
18913  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18914func_lo2o ()\
18915{\
18916\    case ${1} in\
18917\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18918\      *)    func_lo2o_result=${1} ;;\
18919\    esac\
18920} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18921  && mv -f "$cfgfile.tmp" "$cfgfile" \
18922    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18923test 0 -eq $? || _lt_function_replace_fail=:
18924
18925
18926  sed -e '/^func_xform ()$/,/^} # func_xform /c\
18927func_xform ()\
18928{\
18929    func_xform_result=${1%.*}.lo\
18930} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18931  && mv -f "$cfgfile.tmp" "$cfgfile" \
18932    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18933test 0 -eq $? || _lt_function_replace_fail=:
18934
18935
18936  sed -e '/^func_arith ()$/,/^} # func_arith /c\
18937func_arith ()\
18938{\
18939    func_arith_result=$(( $* ))\
18940} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18941  && mv -f "$cfgfile.tmp" "$cfgfile" \
18942    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18943test 0 -eq $? || _lt_function_replace_fail=:
18944
18945
18946  sed -e '/^func_len ()$/,/^} # func_len /c\
18947func_len ()\
18948{\
18949    func_len_result=${#1}\
18950} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18951  && mv -f "$cfgfile.tmp" "$cfgfile" \
18952    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18953test 0 -eq $? || _lt_function_replace_fail=:
18954
18955fi
18956
18957if test x"$lt_shell_append" = xyes; then
18958  sed -e '/^func_append ()$/,/^} # func_append /c\
18959func_append ()\
18960{\
18961    eval "${1}+=\\${2}"\
18962} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18963  && mv -f "$cfgfile.tmp" "$cfgfile" \
18964    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18965test 0 -eq $? || _lt_function_replace_fail=:
18966
18967
18968  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18969func_append_quoted ()\
18970{\
18971\    func_quote_for_eval "${2}"\
18972\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18973} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18974  && mv -f "$cfgfile.tmp" "$cfgfile" \
18975    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18976test 0 -eq $? || _lt_function_replace_fail=:
18977
18978
18979  # Save a `func_append' function call where possible by direct use of '+='
18980  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18981    && mv -f "$cfgfile.tmp" "$cfgfile" \
18982      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18983  test 0 -eq $? || _lt_function_replace_fail=:
18984else
18985  # Save a `func_append' function call even when '+=' is not available
18986  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18987    && mv -f "$cfgfile.tmp" "$cfgfile" \
18988      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18989  test 0 -eq $? || _lt_function_replace_fail=:
18990fi
18991
18992if test x"$_lt_function_replace_fail" = x":"; then
18993  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18994$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18995fi
18996
18997
18998   mv -f "$cfgfile" "$ofile" ||
18999    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19000  chmod +x "$ofile"
19001
19002 ;;
19003
19004  esac
19005done # for ac_tag
19006
19007
19008as_fn_exit 0
19009_ACEOF
19010ac_clean_files=$ac_clean_files_save
19011
19012test $ac_write_fail = 0 ||
19013  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19014
19015
19016# configure is writing to config.log, and then calls config.status.
19017# config.status does its own redirection, appending to config.log.
19018# Unfortunately, on DOS this fails, as config.log is still kept open
19019# by configure, so config.status won't be able to write to it; its
19020# output is simply discarded.  So we exec the FD to /dev/null,
19021# effectively closing config.log, so it can be properly (re)opened and
19022# appended to by config.status.  When coming back to configure, we
19023# need to make the FD available again.
19024if test "$no_create" != yes; then
19025  ac_cs_success=:
19026  ac_config_status_args=
19027  test "$silent" = yes &&
19028    ac_config_status_args="$ac_config_status_args --quiet"
19029  exec 5>/dev/null
19030  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19031  exec 5>>config.log
19032  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19033  # would make configure fail if this is the last instruction.
19034  $ac_cs_success || as_fn_exit 1
19035fi
19036if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19037  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19038$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19039fi
19040
19041
19042
19043do_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"
19044do_build="$do_build mod_rrdtool mod_secdownload mod_expire mod_compress mod_dirlisting mod_indexfile mod_userdir mod_webdav mod_smbdav mod_staticfile mod_scgi mod_flv_streaming"
19045
19046plugins="mod_rewrite mod_redirect mod_ssi mod_trigger_b4_dl"
19047features="regex-conditionals"
19048if test ! "x$PCRE_LIB" = x; then
19049	do_build="$do_build $plugins"
19050	enable_feature="$features"
19051else
19052	no_build="$no_build $plugins"
19053	disable_feature="$features"
19054fi
19055
19056plugins="mod_mysql_vhost"
19057if test ! "x$MYSQL_LIBS" = x; then
19058	do_build="$do_build $plugins"
19059else
19060	no_build="$no_build $plugins"
19061fi
19062
19063plugins="mod_cml mod_magnet"
19064if test ! "x$LUA_LIBS" = x; then
19065	do_build="$do_build $plugins"
19066else
19067	no_build="$no_build $plugins"
19068fi
19069
19070features="storage-gdbm"
19071if test ! "x$GDBM_LIB" = x; then
19072	enable_feature="$enable_feature $features"
19073else
19074	disable_feature="$disable_feature $features"
19075fi
19076
19077features="storage-memcache"
19078if test ! "x$MEMCACHE_LIB" = x; then
19079	enable_feature="$enable_feature $features"
19080else
19081	disable_feature="$disable_feature $features"
19082fi
19083
19084features="compress-gzip compress-deflate"
19085if test ! "x$Z_LIB" = x; then
19086	enable_feature="$enable_feature $features"
19087else
19088	disable_feature="$disable_feature $features"
19089fi
19090
19091features="compress-bzip2"
19092if test ! "x$BZ_LIB" = x; then
19093	enable_feature="$enable_feature $features"
19094else
19095	disable_feature="$disable_feature $features"
19096fi
19097
19098features="auth-ldap"
19099if test ! "x$LDAP_LIB" = x; then
19100	enable_feature="$enable_feature $features"
19101else
19102	disable_feature="$disable_feature $features"
19103fi
19104
19105features="network-openssl"
19106if test ! "x$SSL_LIB" = x; then
19107	enable_feature="$enable_feature $features"
19108else
19109	disable_feature="$disable_feature $features"
19110fi
19111
19112features="auth-crypt"
19113if test "$ac_cv_search_crypt" = no; then
19114	disable_feature="$disable_feature $features"
19115else
19116	enable_feature="$enable_feature $features"
19117fi
19118
19119features="network-ipv6"
19120if test "$ac_cv_ipv6_support" = yes; then
19121	enable_feature="$enable_feature $features"
19122else
19123	disable_feature="$disable_feature $features"
19124fi
19125
19126features="large-files"
19127if test "$enable_lfs" = yes; then
19128	enable_feature="$enable_feature $features"
19129else
19130	disable_feature="$disable_feature $features"
19131fi
19132
19133features="stat-cache-fam"
19134if test ! "x$FAM_LIBS" = x; then
19135	enable_feature="$enable_feature $features"
19136else
19137	disable_feature="$disable_feature $features"
19138fi
19139
19140
19141features="webdav-properties"
19142if test "x$XML_LIBS" \!= x -a "x$SQLITE_LIBS" \!= x; then
19143	enable_feature="$enable_feature $features"
19144else
19145	disable_feature="$disable_feature $features"
19146fi
19147
19148features="webdav-locks"
19149if test "x$UUID_LIBS" \!= x; then
19150	enable_feature="$enable_feature $features"
19151else
19152	disable_feature="$disable_feature $features"
19153fi
19154
19155features="smbdav-properties"
19156if test "x$XML_LIBS" \!= x -a "x$SQLITE_LIBS" \!= x; then
19157	enable_feature="$enable_feature $features"
19158else
19159	disable_feature="$disable_feature $features"
19160fi
19161
19162features="smbdav-locks"
19163if test "x$UUID_LIBS" \!= x; then
19164	enable_feature="$enable_feature $features"
19165else
19166	disable_feature="$disable_feature $features"
19167fi
19168
19169
19170$ECHO
19171$ECHO "Plugins:"
19172$ECHO
19173
19174$ECHO "enabled: "
19175for p in $do_build; do
19176	$ECHO "  $p"
19177done | sort
19178
19179$ECHO "disabled: "
19180for p in $no_build; do
19181	$ECHO "  $p"
19182done | sort
19183
19184$ECHO
19185$ECHO "Features:"
19186$ECHO
19187
19188$ECHO "enabled: "
19189for p in $enable_feature; do
19190	$ECHO "  $p"
19191done | sort
19192
19193$ECHO "disabled: "
19194for p in $disable_feature; do
19195	$ECHO "  $p"
19196done | sort
19197
19198$ECHO
19199