1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.66 for neon 0.29.6.
4#
5# Report bugs to <neon@lists.manyfish.co.uk>.
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# Copyright 2000-2010 Joe Orton and others
17# This configure script may be copied, distributed and modified under the
18# terms of the GNU Library General Public license; see src/COPYING.LIB for
19# more details.
20## -------------------- ##
21## M4sh Initialization. ##
22## -------------------- ##
23
24# Be more Bourne compatible
25DUALCASE=1; export DUALCASE # for MKS sh
26if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27  emulate sh
28  NULLCMD=:
29  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30  # is contrary to our usage.  Disable this feature.
31  alias -g '${1+"$@"}'='"$@"'
32  setopt NO_GLOB_SUBST
33else
34  case `(set -o) 2>/dev/null` in #(
35  *posix*) :
36    set -o posix ;; #(
37  *) :
38     ;;
39esac
40fi
41
42
43as_nl='
44'
45export as_nl
46# Printing a long string crashes Solaris 7 /usr/bin/printf.
47as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
49as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
50# Prefer a ksh shell builtin over an external printf program on Solaris,
51# but without wasting forks for bash or zsh.
52if test -z "$BASH_VERSION$ZSH_VERSION" \
53    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
54  as_echo='print -r --'
55  as_echo_n='print -rn --'
56elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
57  as_echo='printf %s\n'
58  as_echo_n='printf %s'
59else
60  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
61    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
62    as_echo_n='/usr/ucb/echo -n'
63  else
64    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
65    as_echo_n_body='eval
66      arg=$1;
67      case $arg in #(
68      *"$as_nl"*)
69	expr "X$arg" : "X\\(.*\\)$as_nl";
70	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
71      esac;
72      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
73    '
74    export as_echo_n_body
75    as_echo_n='sh -c $as_echo_n_body as_echo'
76  fi
77  export as_echo_body
78  as_echo='sh -c $as_echo_body as_echo'
79fi
80
81# The user is always right.
82if test "${PATH_SEPARATOR+set}" != set; then
83  PATH_SEPARATOR=:
84  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
85    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
86      PATH_SEPARATOR=';'
87  }
88fi
89
90
91# IFS
92# We need space, tab and new line, in precisely that order.  Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
96IFS=" ""	$as_nl"
97
98# Find who we are.  Look in the path if we contain no directory separator.
99case $0 in #((
100  *[\\/]* ) as_myself=$0 ;;
101  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104  IFS=$as_save_IFS
105  test -z "$as_dir" && as_dir=.
106    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107  done
108IFS=$as_save_IFS
109
110     ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115  as_myself=$0
116fi
117if test ! -f "$as_myself"; then
118  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119  exit 1
120fi
121
122# Unset variables that we do not need and which cause bugs (e.g. in
123# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
124# suppresses any "Segmentation fault" message there.  '((' could
125# trigger a bug in pdksh 5.2.14.
126for as_var in BASH_ENV ENV MAIL MAILPATH
127do eval test x\${$as_var+set} = xset \
128  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
129done
130PS1='$ '
131PS2='> '
132PS4='+ '
133
134# NLS nuisances.
135LC_ALL=C
136export LC_ALL
137LANGUAGE=C
138export LANGUAGE
139
140# CDPATH.
141(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
142
143if test "x$CONFIG_SHELL" = x; then
144  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
145  emulate sh
146  NULLCMD=:
147  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148  # is contrary to our usage.  Disable this feature.
149  alias -g '\${1+\"\$@\"}'='\"\$@\"'
150  setopt NO_GLOB_SUBST
151else
152  case \`(set -o) 2>/dev/null\` in #(
153  *posix*) :
154    set -o posix ;; #(
155  *) :
156     ;;
157esac
158fi
159"
160  as_required="as_fn_return () { (exit \$1); }
161as_fn_success () { as_fn_return 0; }
162as_fn_failure () { as_fn_return 1; }
163as_fn_ret_success () { return 0; }
164as_fn_ret_failure () { return 1; }
165
166exitcode=0
167as_fn_success || { exitcode=1; echo as_fn_success failed.; }
168as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
169as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
170as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
171if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
172
173else
174  exitcode=1; echo positional parameters were not saved.
175fi
176test x\$exitcode = x0 || exit 1"
177  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
178  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
179  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
180  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
181test \$(( 1 + 1 )) = 2 || exit 1
182
183  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
184    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
185    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
186    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
187    PATH=/empty FPATH=/empty; export PATH FPATH
188    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
189      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
190  if (eval "$as_required") 2>/dev/null; then :
191  as_have_required=yes
192else
193  as_have_required=no
194fi
195  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
196
197else
198  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
199as_found=false
200for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
201do
202  IFS=$as_save_IFS
203  test -z "$as_dir" && as_dir=.
204  as_found=:
205  case $as_dir in #(
206	 /*)
207	   for as_base in sh bash ksh sh5; do
208	     # Try only shells that exist, to save several forks.
209	     as_shell=$as_dir/$as_base
210	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
211		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
212  CONFIG_SHELL=$as_shell as_have_required=yes
213		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
214  break 2
215fi
216fi
217	   done;;
218       esac
219  as_found=false
220done
221$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
222	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
223  CONFIG_SHELL=$SHELL as_have_required=yes
224fi; }
225IFS=$as_save_IFS
226
227
228      if test "x$CONFIG_SHELL" != x; then :
229  # We cannot yet assume a decent shell, so we have to provide a
230	# neutralization value for shells without unset; and this also
231	# works around shells that cannot unset nonexistent variables.
232	BASH_ENV=/dev/null
233	ENV=/dev/null
234	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
235	export CONFIG_SHELL
236	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
237fi
238
239    if test x$as_have_required = xno; then :
240  $as_echo "$0: This script requires a shell more modern than all"
241  $as_echo "$0: the shells that I found on your system."
242  if test x${ZSH_VERSION+set} = xset ; then
243    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
244    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
245  else
246    $as_echo "$0: Please tell bug-autoconf@gnu.org and
247$0: neon@lists.manyfish.co.uk about your system, including
248$0: any error possibly output before this message. Then
249$0: install a modern shell, or manually run the script
250$0: under such a shell if you do have one."
251  fi
252  exit 1
253fi
254fi
255fi
256SHELL=${CONFIG_SHELL-/bin/sh}
257export SHELL
258# Unset more variables known to interfere with behavior of common tools.
259CLICOLOR_FORCE= GREP_OPTIONS=
260unset CLICOLOR_FORCE GREP_OPTIONS
261
262## --------------------- ##
263## M4sh Shell Functions. ##
264## --------------------- ##
265# as_fn_unset VAR
266# ---------------
267# Portably unset VAR.
268as_fn_unset ()
269{
270  { eval $1=; unset $1;}
271}
272as_unset=as_fn_unset
273
274# as_fn_set_status STATUS
275# -----------------------
276# Set $? to STATUS, without forking.
277as_fn_set_status ()
278{
279  return $1
280} # as_fn_set_status
281
282# as_fn_exit STATUS
283# -----------------
284# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285as_fn_exit ()
286{
287  set +e
288  as_fn_set_status $1
289  exit $1
290} # as_fn_exit
291
292# as_fn_mkdir_p
293# -------------
294# Create "$as_dir" as a directory, including parents if necessary.
295as_fn_mkdir_p ()
296{
297
298  case $as_dir in #(
299  -*) as_dir=./$as_dir;;
300  esac
301  test -d "$as_dir" || eval $as_mkdir_p || {
302    as_dirs=
303    while :; do
304      case $as_dir in #(
305      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306      *) as_qdir=$as_dir;;
307      esac
308      as_dirs="'$as_qdir' $as_dirs"
309      as_dir=`$as_dirname -- "$as_dir" ||
310$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311	 X"$as_dir" : 'X\(//\)[^/]' \| \
312	 X"$as_dir" : 'X\(//\)$' \| \
313	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314$as_echo X"$as_dir" |
315    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316	    s//\1/
317	    q
318	  }
319	  /^X\(\/\/\)[^/].*/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\/\)$/{
324	    s//\1/
325	    q
326	  }
327	  /^X\(\/\).*/{
328	    s//\1/
329	    q
330	  }
331	  s/.*/./; q'`
332      test -d "$as_dir" && break
333    done
334    test -z "$as_dirs" || eval "mkdir $as_dirs"
335  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338} # as_fn_mkdir_p
339# as_fn_append VAR VALUE
340# ----------------------
341# Append the text in VALUE to the end of the definition contained in VAR. Take
342# advantage of any shell optimizations that allow amortized linear growth over
343# repeated appends, instead of the typical quadratic growth present in naive
344# implementations.
345if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346  eval 'as_fn_append ()
347  {
348    eval $1+=\$2
349  }'
350else
351  as_fn_append ()
352  {
353    eval $1=\$$1\$2
354  }
355fi # as_fn_append
356
357# as_fn_arith ARG...
358# ------------------
359# Perform arithmetic evaluation on the ARGs, and store the result in the
360# global $as_val. Take advantage of shells that can avoid forks. The arguments
361# must be portable across $(()) and expr.
362if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363  eval 'as_fn_arith ()
364  {
365    as_val=$(( $* ))
366  }'
367else
368  as_fn_arith ()
369  {
370    as_val=`expr "$@" || test $? -eq 1`
371  }
372fi # as_fn_arith
373
374
375# as_fn_error STATUS ERROR [LINENO LOG_FD]
376# ----------------------------------------
377# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379# script with STATUS, using 1 if that was 0.
380as_fn_error ()
381{
382  as_status=$1; test $as_status -eq 0 && as_status=1
383  if test "$4"; then
384    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386  fi
387  $as_echo "$as_me: error: $2" >&2
388  as_fn_exit $as_status
389} # as_fn_error
390
391if expr a : '\(a\)' >/dev/null 2>&1 &&
392   test "X`expr 00001 : '.*\(...\)'`" = X001; then
393  as_expr=expr
394else
395  as_expr=false
396fi
397
398if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399  as_basename=basename
400else
401  as_basename=false
402fi
403
404if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405  as_dirname=dirname
406else
407  as_dirname=false
408fi
409
410as_me=`$as_basename -- "$0" ||
411$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412	 X"$0" : 'X\(//\)$' \| \
413	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414$as_echo X/"$0" |
415    sed '/^.*\/\([^/][^/]*\)\/*$/{
416	    s//\1/
417	    q
418	  }
419	  /^X\/\(\/\/\)$/{
420	    s//\1/
421	    q
422	  }
423	  /^X\/\(\/\).*/{
424	    s//\1/
425	    q
426	  }
427	  s/.*/./; q'`
428
429# Avoid depending upon Character Ranges.
430as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433as_cr_digits='0123456789'
434as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437  as_lineno_1=$LINENO as_lineno_1a=$LINENO
438  as_lineno_2=$LINENO as_lineno_2a=$LINENO
439  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
442  sed -n '
443    p
444    /[$]LINENO/=
445  ' <$as_myself |
446    sed '
447      s/[$]LINENO.*/&-/
448      t lineno
449      b
450      :lineno
451      N
452      :loop
453      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454      t loop
455      s/-\n.*//
456    ' >$as_me.lineno &&
457  chmod +x "$as_me.lineno" ||
458    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460  # Don't try to exec as it changes $[0], causing all sort of problems
461  # (the dirname of $[0] is not the place where we might find the
462  # original and so on.  Autoconf is especially sensitive to this).
463  . "./$as_me.lineno"
464  # Exit status is that of the last command.
465  exit
466}
467
468ECHO_C= ECHO_N= ECHO_T=
469case `echo -n x` in #(((((
470-n*)
471  case `echo 'xy\c'` in
472  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
473  xy)  ECHO_C='\c';;
474  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
475       ECHO_T='	';;
476  esac;;
477*)
478  ECHO_N='-n';;
479esac
480
481rm -f conf$$ conf$$.exe conf$$.file
482if test -d conf$$.dir; then
483  rm -f conf$$.dir/conf$$.file
484else
485  rm -f conf$$.dir
486  mkdir conf$$.dir 2>/dev/null
487fi
488if (echo >conf$$.file) 2>/dev/null; then
489  if ln -s conf$$.file conf$$ 2>/dev/null; then
490    as_ln_s='ln -s'
491    # ... but there are two gotchas:
492    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494    # In both cases, we have to default to `cp -p'.
495    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496      as_ln_s='cp -p'
497  elif ln conf$$.file conf$$ 2>/dev/null; then
498    as_ln_s=ln
499  else
500    as_ln_s='cp -p'
501  fi
502else
503  as_ln_s='cp -p'
504fi
505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506rmdir conf$$.dir 2>/dev/null
507
508if mkdir -p . 2>/dev/null; then
509  as_mkdir_p='mkdir -p "$as_dir"'
510else
511  test -d ./-p && rmdir ./-p
512  as_mkdir_p=false
513fi
514
515if test -x / >/dev/null 2>&1; then
516  as_test_x='test -x'
517else
518  if ls -dL / >/dev/null 2>&1; then
519    as_ls_L_option=L
520  else
521    as_ls_L_option=
522  fi
523  as_test_x='
524    eval sh -c '\''
525      if test -d "$1"; then
526	test -d "$1/.";
527      else
528	case $1 in #(
529	-*)set "./$1";;
530	esac;
531	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532	???[sx]*):;;*)false;;esac;fi
533    '\'' sh
534  '
535fi
536as_executable_p=$as_test_x
537
538# Sed expression to map a string onto a valid CPP name.
539as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541# Sed expression to map a string onto a valid variable name.
542as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547test -n "$DJDIR" || exec 7<&0 </dev/null
548exec 6>&1
549
550# Name of the host.
551# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552# so uname gets run too.
553ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555#
556# Initializations.
557#
558ac_default_prefix=/usr/local
559ac_clean_files=
560ac_config_libobj_dir=.
561LIBOBJS=
562cross_compiling=no
563subdirs=
564MFLAGS=
565MAKEFLAGS=
566
567# Identity of this package.
568PACKAGE_NAME='neon'
569PACKAGE_TARNAME='neon'
570PACKAGE_VERSION='0.29.6'
571PACKAGE_STRING='neon 0.29.6'
572PACKAGE_BUGREPORT='neon@lists.manyfish.co.uk'
573PACKAGE_URL=''
574
575ac_unique_file="src/ne_request.c"
576# Factoring default headers for most tests.
577ac_includes_default="\
578#include <stdio.h>
579#ifdef HAVE_SYS_TYPES_H
580# include <sys/types.h>
581#endif
582#ifdef HAVE_SYS_STAT_H
583# include <sys/stat.h>
584#endif
585#ifdef STDC_HEADERS
586# include <stdlib.h>
587# include <stddef.h>
588#else
589# ifdef HAVE_STDLIB_H
590#  include <stdlib.h>
591# endif
592#endif
593#ifdef HAVE_STRING_H
594# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595#  include <memory.h>
596# endif
597# include <string.h>
598#endif
599#ifdef HAVE_STRINGS_H
600# include <strings.h>
601#endif
602#ifdef HAVE_INTTYPES_H
603# include <inttypes.h>
604#endif
605#ifdef HAVE_STDINT_H
606# include <stdint.h>
607#endif
608#ifdef HAVE_UNISTD_H
609# include <unistd.h>
610#endif"
611
612ac_subst_vars='LTLIBOBJS
613ALLOW_INSTALL
614TESTS
615HELPERS
616user_LDFLAGS
617top_builddir
618NEON_BUILD_BUNDLED
619NEON_VERSION
620ALL_LINGUAS
621NEON_PC_LIBS
622TEST_LDFLAGS
623PK12UTIL
624CERTUTIL
625OPENSSL
626NE_FLAG_I18N
627XML2_CONFIG
628NEON_LINK_FLAGS
629NEON_EXTRAOBJS
630NEONOBJS
631NEON_OBJEXT
632NEON_TARGET
633NE_FLAG_DAV
634OTOOL64
635OTOOL
636LIPO
637NMEDIT
638DSYMUTIL
639AWK
640RANLIB
641STRIP
642AR
643OBJDUMP
644LN_S
645NM
646ac_ct_DUMPBIN
647DUMPBIN
648LD
649FGREP
650SED
651host_os
652host_vendor
653host_cpu
654host
655build_os
656build_vendor
657build_cpu
658build
659LIBTOOL
660NEON_LTLIBS
661NEON_LIBS
662NEON_CFLAGS
663NE_FLAG_LIBPXY
664KRB5_CONFIG
665NEON_SUPPORTS_SSL
666NE_FLAG_TS_SSL
667GNUTLS_CONFIG
668NE_FLAG_SSL
669PKG_CONFIG
670NE_FLAG_ZLIB
671NE_FLAG_IPV6
672LIBOBJS
673NE_FLAG_LFS
674SET_MAKE
675EGREP
676GREP
677CPP
678OBJEXT
679EXEEXT
680ac_ct_CC
681CPPFLAGS
682LDFLAGS
683CFLAGS
684CC
685INSTALL_DATA
686INSTALL_SCRIPT
687INSTALL_PROGRAM
688target_alias
689host_alias
690build_alias
691LIBS
692ECHO_T
693ECHO_N
694ECHO_C
695DEFS
696mandir
697localedir
698libdir
699psdir
700pdfdir
701dvidir
702htmldir
703infodir
704docdir
705oldincludedir
706includedir
707localstatedir
708sharedstatedir
709sysconfdir
710datadir
711datarootdir
712libexecdir
713sbindir
714bindir
715program_transform_name
716prefix
717exec_prefix
718PACKAGE_URL
719PACKAGE_BUGREPORT
720PACKAGE_STRING
721PACKAGE_VERSION
722PACKAGE_TARNAME
723PACKAGE_NAME
724PATH_SEPARATOR
725SHELL'
726ac_subst_files=''
727ac_user_opts='
728enable_option_checking
729with_libs
730enable_webdav
731with_zlib
732with_ssl
733with_egd
734with_pakchois
735with_ca_bundle
736enable_threadsafe_ssl
737with_gssapi
738with_libproxy
739enable_shared
740enable_static
741with_pic
742enable_fast_install
743with_gnu_ld
744enable_libtool_lock
745with_libxml2
746with_expat
747enable_nls
748enable_debug
749enable_warnings
750enable_memleak
751enable_tests_install
752enable_ld_version_script
753'
754      ac_precious_vars='build_alias
755host_alias
756target_alias
757CC
758CFLAGS
759LDFLAGS
760LIBS
761CPPFLAGS
762CPP'
763
764
765# Initialize some variables set by options.
766ac_init_help=
767ac_init_version=false
768ac_unrecognized_opts=
769ac_unrecognized_sep=
770# The variables have the same names as the options, with
771# dashes changed to underlines.
772cache_file=/dev/null
773exec_prefix=NONE
774no_create=
775no_recursion=
776prefix=NONE
777program_prefix=NONE
778program_suffix=NONE
779program_transform_name=s,x,x,
780silent=
781site=
782srcdir=
783verbose=
784x_includes=NONE
785x_libraries=NONE
786
787# Installation directory options.
788# These are left unexpanded so users can "make install exec_prefix=/foo"
789# and all the variables that are supposed to be based on exec_prefix
790# by default will actually change.
791# Use braces instead of parens because sh, perl, etc. also accept them.
792# (The list follows the same order as the GNU Coding Standards.)
793bindir='${exec_prefix}/bin'
794sbindir='${exec_prefix}/sbin'
795libexecdir='${exec_prefix}/libexec'
796datarootdir='${prefix}/share'
797datadir='${datarootdir}'
798sysconfdir='${prefix}/etc'
799sharedstatedir='${prefix}/com'
800localstatedir='${prefix}/var'
801includedir='${prefix}/include'
802oldincludedir='/usr/include'
803docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
804infodir='${datarootdir}/info'
805htmldir='${docdir}'
806dvidir='${docdir}'
807pdfdir='${docdir}'
808psdir='${docdir}'
809libdir='${exec_prefix}/lib'
810localedir='${datarootdir}/locale'
811mandir='${datarootdir}/man'
812
813ac_prev=
814ac_dashdash=
815for ac_option
816do
817  # If the previous option needs an argument, assign it.
818  if test -n "$ac_prev"; then
819    eval $ac_prev=\$ac_option
820    ac_prev=
821    continue
822  fi
823
824  case $ac_option in
825  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
826  *)	ac_optarg=yes ;;
827  esac
828
829  # Accept the important Cygnus configure options, so we can diagnose typos.
830
831  case $ac_dashdash$ac_option in
832  --)
833    ac_dashdash=yes ;;
834
835  -bindir | --bindir | --bindi | --bind | --bin | --bi)
836    ac_prev=bindir ;;
837  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
838    bindir=$ac_optarg ;;
839
840  -build | --build | --buil | --bui | --bu)
841    ac_prev=build_alias ;;
842  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
843    build_alias=$ac_optarg ;;
844
845  -cache-file | --cache-file | --cache-fil | --cache-fi \
846  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
847    ac_prev=cache_file ;;
848  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
849  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
850    cache_file=$ac_optarg ;;
851
852  --config-cache | -C)
853    cache_file=config.cache ;;
854
855  -datadir | --datadir | --datadi | --datad)
856    ac_prev=datadir ;;
857  -datadir=* | --datadir=* | --datadi=* | --datad=*)
858    datadir=$ac_optarg ;;
859
860  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
861  | --dataroo | --dataro | --datar)
862    ac_prev=datarootdir ;;
863  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
864  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
865    datarootdir=$ac_optarg ;;
866
867  -disable-* | --disable-*)
868    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
869    # Reject names that are not valid shell variable names.
870    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
871      as_fn_error $? "invalid feature name: $ac_useropt"
872    ac_useropt_orig=$ac_useropt
873    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
874    case $ac_user_opts in
875      *"
876"enable_$ac_useropt"
877"*) ;;
878      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
879	 ac_unrecognized_sep=', ';;
880    esac
881    eval enable_$ac_useropt=no ;;
882
883  -docdir | --docdir | --docdi | --doc | --do)
884    ac_prev=docdir ;;
885  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
886    docdir=$ac_optarg ;;
887
888  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
889    ac_prev=dvidir ;;
890  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
891    dvidir=$ac_optarg ;;
892
893  -enable-* | --enable-*)
894    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
895    # Reject names that are not valid shell variable names.
896    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897      as_fn_error $? "invalid feature name: $ac_useropt"
898    ac_useropt_orig=$ac_useropt
899    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900    case $ac_user_opts in
901      *"
902"enable_$ac_useropt"
903"*) ;;
904      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
905	 ac_unrecognized_sep=', ';;
906    esac
907    eval enable_$ac_useropt=\$ac_optarg ;;
908
909  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
910  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
911  | --exec | --exe | --ex)
912    ac_prev=exec_prefix ;;
913  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
914  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
915  | --exec=* | --exe=* | --ex=*)
916    exec_prefix=$ac_optarg ;;
917
918  -gas | --gas | --ga | --g)
919    # Obsolete; use --with-gas.
920    with_gas=yes ;;
921
922  -help | --help | --hel | --he | -h)
923    ac_init_help=long ;;
924  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
925    ac_init_help=recursive ;;
926  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
927    ac_init_help=short ;;
928
929  -host | --host | --hos | --ho)
930    ac_prev=host_alias ;;
931  -host=* | --host=* | --hos=* | --ho=*)
932    host_alias=$ac_optarg ;;
933
934  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
935    ac_prev=htmldir ;;
936  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
937  | --ht=*)
938    htmldir=$ac_optarg ;;
939
940  -includedir | --includedir | --includedi | --included | --include \
941  | --includ | --inclu | --incl | --inc)
942    ac_prev=includedir ;;
943  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
944  | --includ=* | --inclu=* | --incl=* | --inc=*)
945    includedir=$ac_optarg ;;
946
947  -infodir | --infodir | --infodi | --infod | --info | --inf)
948    ac_prev=infodir ;;
949  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
950    infodir=$ac_optarg ;;
951
952  -libdir | --libdir | --libdi | --libd)
953    ac_prev=libdir ;;
954  -libdir=* | --libdir=* | --libdi=* | --libd=*)
955    libdir=$ac_optarg ;;
956
957  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
958  | --libexe | --libex | --libe)
959    ac_prev=libexecdir ;;
960  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
961  | --libexe=* | --libex=* | --libe=*)
962    libexecdir=$ac_optarg ;;
963
964  -localedir | --localedir | --localedi | --localed | --locale)
965    ac_prev=localedir ;;
966  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
967    localedir=$ac_optarg ;;
968
969  -localstatedir | --localstatedir | --localstatedi | --localstated \
970  | --localstate | --localstat | --localsta | --localst | --locals)
971    ac_prev=localstatedir ;;
972  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
973  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
974    localstatedir=$ac_optarg ;;
975
976  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
977    ac_prev=mandir ;;
978  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
979    mandir=$ac_optarg ;;
980
981  -nfp | --nfp | --nf)
982    # Obsolete; use --without-fp.
983    with_fp=no ;;
984
985  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
986  | --no-cr | --no-c | -n)
987    no_create=yes ;;
988
989  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
990  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
991    no_recursion=yes ;;
992
993  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
994  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
995  | --oldin | --oldi | --old | --ol | --o)
996    ac_prev=oldincludedir ;;
997  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
998  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
999  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1000    oldincludedir=$ac_optarg ;;
1001
1002  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1003    ac_prev=prefix ;;
1004  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1005    prefix=$ac_optarg ;;
1006
1007  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1008  | --program-pre | --program-pr | --program-p)
1009    ac_prev=program_prefix ;;
1010  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1011  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1012    program_prefix=$ac_optarg ;;
1013
1014  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1015  | --program-suf | --program-su | --program-s)
1016    ac_prev=program_suffix ;;
1017  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1018  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1019    program_suffix=$ac_optarg ;;
1020
1021  -program-transform-name | --program-transform-name \
1022  | --program-transform-nam | --program-transform-na \
1023  | --program-transform-n | --program-transform- \
1024  | --program-transform | --program-transfor \
1025  | --program-transfo | --program-transf \
1026  | --program-trans | --program-tran \
1027  | --progr-tra | --program-tr | --program-t)
1028    ac_prev=program_transform_name ;;
1029  -program-transform-name=* | --program-transform-name=* \
1030  | --program-transform-nam=* | --program-transform-na=* \
1031  | --program-transform-n=* | --program-transform-=* \
1032  | --program-transform=* | --program-transfor=* \
1033  | --program-transfo=* | --program-transf=* \
1034  | --program-trans=* | --program-tran=* \
1035  | --progr-tra=* | --program-tr=* | --program-t=*)
1036    program_transform_name=$ac_optarg ;;
1037
1038  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1039    ac_prev=pdfdir ;;
1040  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1041    pdfdir=$ac_optarg ;;
1042
1043  -psdir | --psdir | --psdi | --psd | --ps)
1044    ac_prev=psdir ;;
1045  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1046    psdir=$ac_optarg ;;
1047
1048  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049  | -silent | --silent | --silen | --sile | --sil)
1050    silent=yes ;;
1051
1052  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1053    ac_prev=sbindir ;;
1054  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1055  | --sbi=* | --sb=*)
1056    sbindir=$ac_optarg ;;
1057
1058  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1059  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1060  | --sharedst | --shareds | --shared | --share | --shar \
1061  | --sha | --sh)
1062    ac_prev=sharedstatedir ;;
1063  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1064  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1065  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1066  | --sha=* | --sh=*)
1067    sharedstatedir=$ac_optarg ;;
1068
1069  -site | --site | --sit)
1070    ac_prev=site ;;
1071  -site=* | --site=* | --sit=*)
1072    site=$ac_optarg ;;
1073
1074  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1075    ac_prev=srcdir ;;
1076  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1077    srcdir=$ac_optarg ;;
1078
1079  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1080  | --syscon | --sysco | --sysc | --sys | --sy)
1081    ac_prev=sysconfdir ;;
1082  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1083  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1084    sysconfdir=$ac_optarg ;;
1085
1086  -target | --target | --targe | --targ | --tar | --ta | --t)
1087    ac_prev=target_alias ;;
1088  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1089    target_alias=$ac_optarg ;;
1090
1091  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1092    verbose=yes ;;
1093
1094  -version | --version | --versio | --versi | --vers | -V)
1095    ac_init_version=: ;;
1096
1097  -with-* | --with-*)
1098    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1099    # Reject names that are not valid shell variable names.
1100    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101      as_fn_error $? "invalid package name: $ac_useropt"
1102    ac_useropt_orig=$ac_useropt
1103    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104    case $ac_user_opts in
1105      *"
1106"with_$ac_useropt"
1107"*) ;;
1108      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1109	 ac_unrecognized_sep=', ';;
1110    esac
1111    eval with_$ac_useropt=\$ac_optarg ;;
1112
1113  -without-* | --without-*)
1114    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1115    # Reject names that are not valid shell variable names.
1116    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117      as_fn_error $? "invalid package name: $ac_useropt"
1118    ac_useropt_orig=$ac_useropt
1119    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120    case $ac_user_opts in
1121      *"
1122"with_$ac_useropt"
1123"*) ;;
1124      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1125	 ac_unrecognized_sep=', ';;
1126    esac
1127    eval with_$ac_useropt=no ;;
1128
1129  --x)
1130    # Obsolete; use --with-x.
1131    with_x=yes ;;
1132
1133  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134  | --x-incl | --x-inc | --x-in | --x-i)
1135    ac_prev=x_includes ;;
1136  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1138    x_includes=$ac_optarg ;;
1139
1140  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142    ac_prev=x_libraries ;;
1143  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1145    x_libraries=$ac_optarg ;;
1146
1147  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1148Try \`$0 --help' for more information"
1149    ;;
1150
1151  *=*)
1152    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1153    # Reject names that are not valid shell variable names.
1154    case $ac_envvar in #(
1155      '' | [0-9]* | *[!_$as_cr_alnum]* )
1156      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1157    esac
1158    eval $ac_envvar=\$ac_optarg
1159    export $ac_envvar ;;
1160
1161  *)
1162    # FIXME: should be removed in autoconf 3.0.
1163    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1167    ;;
1168
1169  esac
1170done
1171
1172if test -n "$ac_prev"; then
1173  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174  as_fn_error $? "missing argument to $ac_option"
1175fi
1176
1177if test -n "$ac_unrecognized_opts"; then
1178  case $enable_option_checking in
1179    no) ;;
1180    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1181    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1182  esac
1183fi
1184
1185# Check all directory arguments for consistency.
1186for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1187		datadir sysconfdir sharedstatedir localstatedir includedir \
1188		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1189		libdir localedir mandir
1190do
1191  eval ac_val=\$$ac_var
1192  # Remove trailing slashes.
1193  case $ac_val in
1194    */ )
1195      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1196      eval $ac_var=\$ac_val;;
1197  esac
1198  # Be sure to have absolute directory names.
1199  case $ac_val in
1200    [\\/$]* | ?:[\\/]* )  continue;;
1201    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1202  esac
1203  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1204done
1205
1206# There might be people who depend on the old broken behavior: `$host'
1207# used to hold the argument of --host etc.
1208# FIXME: To remove some day.
1209build=$build_alias
1210host=$host_alias
1211target=$target_alias
1212
1213# FIXME: To remove some day.
1214if test "x$host_alias" != x; then
1215  if test "x$build_alias" = x; then
1216    cross_compiling=maybe
1217    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1218    If a cross compiler is detected then cross compile mode will be used" >&2
1219  elif test "x$build_alias" != "x$host_alias"; then
1220    cross_compiling=yes
1221  fi
1222fi
1223
1224ac_tool_prefix=
1225test -n "$host_alias" && ac_tool_prefix=$host_alias-
1226
1227test "$silent" = yes && exec 6>/dev/null
1228
1229
1230ac_pwd=`pwd` && test -n "$ac_pwd" &&
1231ac_ls_di=`ls -di .` &&
1232ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1233  as_fn_error $? "working directory cannot be determined"
1234test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1235  as_fn_error $? "pwd does not report name of working directory"
1236
1237
1238# Find the source files, if location was not specified.
1239if test -z "$srcdir"; then
1240  ac_srcdir_defaulted=yes
1241  # Try the directory containing this script, then the parent directory.
1242  ac_confdir=`$as_dirname -- "$as_myself" ||
1243$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1244	 X"$as_myself" : 'X\(//\)[^/]' \| \
1245	 X"$as_myself" : 'X\(//\)$' \| \
1246	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1247$as_echo X"$as_myself" |
1248    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1249	    s//\1/
1250	    q
1251	  }
1252	  /^X\(\/\/\)[^/].*/{
1253	    s//\1/
1254	    q
1255	  }
1256	  /^X\(\/\/\)$/{
1257	    s//\1/
1258	    q
1259	  }
1260	  /^X\(\/\).*/{
1261	    s//\1/
1262	    q
1263	  }
1264	  s/.*/./; q'`
1265  srcdir=$ac_confdir
1266  if test ! -r "$srcdir/$ac_unique_file"; then
1267    srcdir=..
1268  fi
1269else
1270  ac_srcdir_defaulted=no
1271fi
1272if test ! -r "$srcdir/$ac_unique_file"; then
1273  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1274  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1275fi
1276ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1277ac_abs_confdir=`(
1278	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1279	pwd)`
1280# When building in place, set srcdir=.
1281if test "$ac_abs_confdir" = "$ac_pwd"; then
1282  srcdir=.
1283fi
1284# Remove unnecessary trailing slashes from srcdir.
1285# Double slashes in file names in object file debugging info
1286# mess up M-x gdb in Emacs.
1287case $srcdir in
1288*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1289esac
1290for ac_var in $ac_precious_vars; do
1291  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1292  eval ac_env_${ac_var}_value=\$${ac_var}
1293  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1294  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1295done
1296
1297#
1298# Report the --help message.
1299#
1300if test "$ac_init_help" = "long"; then
1301  # Omit some internal or obsolete options to make the list less imposing.
1302  # This message is too long to be a string in the A/UX 3.1 sh.
1303  cat <<_ACEOF
1304\`configure' configures neon 0.29.6 to adapt to many kinds of systems.
1305
1306Usage: $0 [OPTION]... [VAR=VALUE]...
1307
1308To assign environment variables (e.g., CC, CFLAGS...), specify them as
1309VAR=VALUE.  See below for descriptions of some of the useful variables.
1310
1311Defaults for the options are specified in brackets.
1312
1313Configuration:
1314  -h, --help              display this help and exit
1315      --help=short        display options specific to this package
1316      --help=recursive    display the short help of all the included packages
1317  -V, --version           display version information and exit
1318  -q, --quiet, --silent   do not print \`checking ...' messages
1319      --cache-file=FILE   cache test results in FILE [disabled]
1320  -C, --config-cache      alias for \`--cache-file=config.cache'
1321  -n, --no-create         do not create output files
1322      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1323
1324Installation directories:
1325  --prefix=PREFIX         install architecture-independent files in PREFIX
1326                          [$ac_default_prefix]
1327  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1328                          [PREFIX]
1329
1330By default, \`make install' will install all the files in
1331\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1332an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1333for instance \`--prefix=\$HOME'.
1334
1335For better control, use the options below.
1336
1337Fine tuning of the installation directories:
1338  --bindir=DIR            user executables [EPREFIX/bin]
1339  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1340  --libexecdir=DIR        program executables [EPREFIX/libexec]
1341  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1342  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1343  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1344  --libdir=DIR            object code libraries [EPREFIX/lib]
1345  --includedir=DIR        C header files [PREFIX/include]
1346  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1347  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1348  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1349  --infodir=DIR           info documentation [DATAROOTDIR/info]
1350  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1351  --mandir=DIR            man documentation [DATAROOTDIR/man]
1352  --docdir=DIR            documentation root [DATAROOTDIR/doc/neon]
1353  --htmldir=DIR           html documentation [DOCDIR]
1354  --dvidir=DIR            dvi documentation [DOCDIR]
1355  --pdfdir=DIR            pdf documentation [DOCDIR]
1356  --psdir=DIR             ps documentation [DOCDIR]
1357_ACEOF
1358
1359  cat <<\_ACEOF
1360
1361System types:
1362  --build=BUILD     configure for building on BUILD [guessed]
1363  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1364_ACEOF
1365fi
1366
1367if test -n "$ac_init_help"; then
1368  case $ac_init_help in
1369     short | recursive ) echo "Configuration of neon 0.29.6:";;
1370   esac
1371  cat <<\_ACEOF
1372
1373Optional Features:
1374  --disable-option-checking  ignore unrecognized --enable/--with options
1375  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1376  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1377  --disable-webdav        disable WebDAV support
1378  --enable-threadsafe-ssl=posix
1379                          enable SSL library thread-safety using POSIX
1380                          threads: suitable CC/CFLAGS/LIBS must be used to
1381                          make the POSIX library interfaces available
1382  --enable-shared[=PKGS]  build shared libraries [default=no]
1383  --enable-static[=PKGS]  build static libraries [default=yes]
1384  --enable-fast-install[=PKGS]
1385                          optimize for fast installation [default=yes]
1386  --disable-libtool-lock  avoid locking (might break parallel builds)
1387  --disable-nls           disable internationalization support
1388  --disable-debug         disable runtime debugging messages
1389  --enable-warnings       enable compiler warnings
1390  --enable-memleak        for test builds only: enable memory leak checking
1391  --enable-tests-install  enable installation of the test suite
1392  --enable-ld-version-script
1393                          enable linker version script (default is enabled
1394                          when possible)
1395
1396Optional Packages:
1397  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1398  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1399  --with-libs=DIR[:DIR2...] look for support libraries in DIR/{bin,lib,include}
1400  --without-zlib          disable zlib support
1401  --with-ssl=openssl|gnutls
1402                          enable SSL support (default OpenSSL)
1403  --with-egd[=PATH]       enable EGD support [using EGD socket at PATH]
1404  --without-pakchois      disable support for PKCS#11 using pakchois
1405  --with-ca-bundle        specify filename of an SSL CA root bundle
1406  --without-gssapi        disable GSSAPI support
1407  --without-libproxy      disable libproxy support
1408  --with-pic              try to use only PIC/non-PIC objects [default=use
1409                          both]
1410  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1411  --with-libxml2          force use of libxml 2.x
1412  --with-expat            force use of expat
1413
1414Some influential environment variables:
1415  CC          C compiler command
1416  CFLAGS      C compiler flags
1417  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1418              nonstandard directory <lib dir>
1419  LIBS        libraries to pass to the linker, e.g. -l<library>
1420  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1421              you have headers in a nonstandard directory <include dir>
1422  CPP         C preprocessor
1423
1424Use these variables to override the choices made by `configure' or to help
1425it to find libraries and programs with nonstandard names/locations.
1426
1427Report bugs to <neon@lists.manyfish.co.uk>.
1428_ACEOF
1429ac_status=$?
1430fi
1431
1432if test "$ac_init_help" = "recursive"; then
1433  # If there are subdirs, report their specific --help.
1434  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1435    test -d "$ac_dir" ||
1436      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1437      continue
1438    ac_builddir=.
1439
1440case "$ac_dir" in
1441.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1442*)
1443  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1444  # A ".." for each directory in $ac_dir_suffix.
1445  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1446  case $ac_top_builddir_sub in
1447  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1448  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1449  esac ;;
1450esac
1451ac_abs_top_builddir=$ac_pwd
1452ac_abs_builddir=$ac_pwd$ac_dir_suffix
1453# for backward compatibility:
1454ac_top_builddir=$ac_top_build_prefix
1455
1456case $srcdir in
1457  .)  # We are building in place.
1458    ac_srcdir=.
1459    ac_top_srcdir=$ac_top_builddir_sub
1460    ac_abs_top_srcdir=$ac_pwd ;;
1461  [\\/]* | ?:[\\/]* )  # Absolute name.
1462    ac_srcdir=$srcdir$ac_dir_suffix;
1463    ac_top_srcdir=$srcdir
1464    ac_abs_top_srcdir=$srcdir ;;
1465  *) # Relative name.
1466    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1467    ac_top_srcdir=$ac_top_build_prefix$srcdir
1468    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1469esac
1470ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1471
1472    cd "$ac_dir" || { ac_status=$?; continue; }
1473    # Check for guested configure.
1474    if test -f "$ac_srcdir/configure.gnu"; then
1475      echo &&
1476      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1477    elif test -f "$ac_srcdir/configure"; then
1478      echo &&
1479      $SHELL "$ac_srcdir/configure" --help=recursive
1480    else
1481      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1482    fi || ac_status=$?
1483    cd "$ac_pwd" || { ac_status=$?; break; }
1484  done
1485fi
1486
1487test -n "$ac_init_help" && exit $ac_status
1488if $ac_init_version; then
1489  cat <<\_ACEOF
1490neon configure 0.29.6
1491generated by GNU Autoconf 2.66
1492
1493Copyright (C) 2010 Free Software Foundation, Inc.
1494This configure script is free software; the Free Software Foundation
1495gives unlimited permission to copy, distribute and modify it.
1496
1497Copyright 2000-2010 Joe Orton and others
1498This configure script may be copied, distributed and modified under the
1499terms of the GNU Library General Public license; see src/COPYING.LIB for
1500more details.
1501_ACEOF
1502  exit
1503fi
1504
1505## ------------------------ ##
1506## Autoconf initialization. ##
1507## ------------------------ ##
1508
1509# ac_fn_c_try_compile LINENO
1510# --------------------------
1511# Try to compile conftest.$ac_ext, and return whether this succeeded.
1512ac_fn_c_try_compile ()
1513{
1514  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1515  rm -f conftest.$ac_objext
1516  if { { ac_try="$ac_compile"
1517case "(($ac_try" in
1518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1519  *) ac_try_echo=$ac_try;;
1520esac
1521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1522$as_echo "$ac_try_echo"; } >&5
1523  (eval "$ac_compile") 2>conftest.err
1524  ac_status=$?
1525  if test -s conftest.err; then
1526    grep -v '^ *+' conftest.err >conftest.er1
1527    cat conftest.er1 >&5
1528    mv -f conftest.er1 conftest.err
1529  fi
1530  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1531  test $ac_status = 0; } && {
1532	 test -z "$ac_c_werror_flag" ||
1533	 test ! -s conftest.err
1534       } && test -s conftest.$ac_objext; then :
1535  ac_retval=0
1536else
1537  $as_echo "$as_me: failed program was:" >&5
1538sed 's/^/| /' conftest.$ac_ext >&5
1539
1540	ac_retval=1
1541fi
1542  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1543  as_fn_set_status $ac_retval
1544
1545} # ac_fn_c_try_compile
1546
1547# ac_fn_c_try_cpp LINENO
1548# ----------------------
1549# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1550ac_fn_c_try_cpp ()
1551{
1552  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1553  if { { ac_try="$ac_cpp conftest.$ac_ext"
1554case "(($ac_try" in
1555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1556  *) ac_try_echo=$ac_try;;
1557esac
1558eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1559$as_echo "$ac_try_echo"; } >&5
1560  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1561  ac_status=$?
1562  if test -s conftest.err; then
1563    grep -v '^ *+' conftest.err >conftest.er1
1564    cat conftest.er1 >&5
1565    mv -f conftest.er1 conftest.err
1566  fi
1567  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568  test $ac_status = 0; } >/dev/null && {
1569	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1570	 test ! -s conftest.err
1571       }; then :
1572  ac_retval=0
1573else
1574  $as_echo "$as_me: failed program was:" >&5
1575sed 's/^/| /' conftest.$ac_ext >&5
1576
1577    ac_retval=1
1578fi
1579  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1580  as_fn_set_status $ac_retval
1581
1582} # ac_fn_c_try_cpp
1583
1584# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1585# -------------------------------------------------------
1586# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1587# the include files in INCLUDES and setting the cache variable VAR
1588# accordingly.
1589ac_fn_c_check_header_mongrel ()
1590{
1591  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592  if eval "test \"\${$3+set}\"" = set; then :
1593  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1594$as_echo_n "checking for $2... " >&6; }
1595if eval "test \"\${$3+set}\"" = set; then :
1596  $as_echo_n "(cached) " >&6
1597fi
1598eval ac_res=\$$3
1599	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1600$as_echo "$ac_res" >&6; }
1601else
1602  # Is the header compilable?
1603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1604$as_echo_n "checking $2 usability... " >&6; }
1605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1606/* end confdefs.h.  */
1607$4
1608#include <$2>
1609_ACEOF
1610if ac_fn_c_try_compile "$LINENO"; then :
1611  ac_header_compiler=yes
1612else
1613  ac_header_compiler=no
1614fi
1615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1617$as_echo "$ac_header_compiler" >&6; }
1618
1619# Is the header present?
1620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1621$as_echo_n "checking $2 presence... " >&6; }
1622cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1623/* end confdefs.h.  */
1624#include <$2>
1625_ACEOF
1626if ac_fn_c_try_cpp "$LINENO"; then :
1627  ac_header_preproc=yes
1628else
1629  ac_header_preproc=no
1630fi
1631rm -f conftest.err conftest.$ac_ext
1632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1633$as_echo "$ac_header_preproc" >&6; }
1634
1635# So?  What about this header?
1636case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1637  yes:no: )
1638    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1639$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1640    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1641$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1642    ;;
1643  no:yes:* )
1644    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1645$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1646    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1647$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1648    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1649$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1650    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1651$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1652    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1653$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1654( $as_echo "## ---------------------------------------- ##
1655## Report this to neon@lists.manyfish.co.uk ##
1656## ---------------------------------------- ##"
1657     ) | sed "s/^/$as_me: WARNING:     /" >&2
1658    ;;
1659esac
1660  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661$as_echo_n "checking for $2... " >&6; }
1662if eval "test \"\${$3+set}\"" = set; then :
1663  $as_echo_n "(cached) " >&6
1664else
1665  eval "$3=\$ac_header_compiler"
1666fi
1667eval ac_res=\$$3
1668	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1669$as_echo "$ac_res" >&6; }
1670fi
1671  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1672
1673} # ac_fn_c_check_header_mongrel
1674
1675# ac_fn_c_try_run LINENO
1676# ----------------------
1677# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1678# that executables *can* be run.
1679ac_fn_c_try_run ()
1680{
1681  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682  if { { ac_try="$ac_link"
1683case "(($ac_try" in
1684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685  *) ac_try_echo=$ac_try;;
1686esac
1687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688$as_echo "$ac_try_echo"; } >&5
1689  (eval "$ac_link") 2>&5
1690  ac_status=$?
1691  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1693  { { case "(($ac_try" in
1694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695  *) ac_try_echo=$ac_try;;
1696esac
1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698$as_echo "$ac_try_echo"; } >&5
1699  (eval "$ac_try") 2>&5
1700  ac_status=$?
1701  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702  test $ac_status = 0; }; }; then :
1703  ac_retval=0
1704else
1705  $as_echo "$as_me: program exited with status $ac_status" >&5
1706       $as_echo "$as_me: failed program was:" >&5
1707sed 's/^/| /' conftest.$ac_ext >&5
1708
1709       ac_retval=$ac_status
1710fi
1711  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1713  as_fn_set_status $ac_retval
1714
1715} # ac_fn_c_try_run
1716
1717# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1718# -------------------------------------------------------
1719# Tests whether HEADER exists and can be compiled using the include files in
1720# INCLUDES, setting the cache variable VAR accordingly.
1721ac_fn_c_check_header_compile ()
1722{
1723  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725$as_echo_n "checking for $2... " >&6; }
1726if eval "test \"\${$3+set}\"" = set; then :
1727  $as_echo_n "(cached) " >&6
1728else
1729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730/* end confdefs.h.  */
1731$4
1732#include <$2>
1733_ACEOF
1734if ac_fn_c_try_compile "$LINENO"; then :
1735  eval "$3=yes"
1736else
1737  eval "$3=no"
1738fi
1739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1740fi
1741eval ac_res=\$$3
1742	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1743$as_echo "$ac_res" >&6; }
1744  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1745
1746} # ac_fn_c_check_header_compile
1747
1748# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1749# -------------------------------------------
1750# Tests whether TYPE exists after having included INCLUDES, setting cache
1751# variable VAR accordingly.
1752ac_fn_c_check_type ()
1753{
1754  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756$as_echo_n "checking for $2... " >&6; }
1757if eval "test \"\${$3+set}\"" = set; then :
1758  $as_echo_n "(cached) " >&6
1759else
1760  eval "$3=no"
1761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762/* end confdefs.h.  */
1763$4
1764int
1765main ()
1766{
1767if (sizeof ($2))
1768	 return 0;
1769  ;
1770  return 0;
1771}
1772_ACEOF
1773if ac_fn_c_try_compile "$LINENO"; then :
1774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775/* end confdefs.h.  */
1776$4
1777int
1778main ()
1779{
1780if (sizeof (($2)))
1781	    return 0;
1782  ;
1783  return 0;
1784}
1785_ACEOF
1786if ac_fn_c_try_compile "$LINENO"; then :
1787
1788else
1789  eval "$3=yes"
1790fi
1791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1792fi
1793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1794fi
1795eval ac_res=\$$3
1796	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797$as_echo "$ac_res" >&6; }
1798  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1799
1800} # ac_fn_c_check_type
1801
1802# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1803# --------------------------------------------
1804# Tries to find the compile-time value of EXPR in a program that includes
1805# INCLUDES, setting VAR accordingly. Returns whether the value could be
1806# computed
1807ac_fn_c_compute_int ()
1808{
1809  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810  if test "$cross_compiling" = yes; then
1811    # Depending upon the size, compute the lo and hi bounds.
1812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813/* end confdefs.h.  */
1814$4
1815int
1816main ()
1817{
1818static int test_array [1 - 2 * !(($2) >= 0)];
1819test_array [0] = 0
1820
1821  ;
1822  return 0;
1823}
1824_ACEOF
1825if ac_fn_c_try_compile "$LINENO"; then :
1826  ac_lo=0 ac_mid=0
1827  while :; do
1828    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829/* end confdefs.h.  */
1830$4
1831int
1832main ()
1833{
1834static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1835test_array [0] = 0
1836
1837  ;
1838  return 0;
1839}
1840_ACEOF
1841if ac_fn_c_try_compile "$LINENO"; then :
1842  ac_hi=$ac_mid; break
1843else
1844  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1845			if test $ac_lo -le $ac_mid; then
1846			  ac_lo= ac_hi=
1847			  break
1848			fi
1849			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1850fi
1851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1852  done
1853else
1854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855/* end confdefs.h.  */
1856$4
1857int
1858main ()
1859{
1860static int test_array [1 - 2 * !(($2) < 0)];
1861test_array [0] = 0
1862
1863  ;
1864  return 0;
1865}
1866_ACEOF
1867if ac_fn_c_try_compile "$LINENO"; then :
1868  ac_hi=-1 ac_mid=-1
1869  while :; do
1870    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871/* end confdefs.h.  */
1872$4
1873int
1874main ()
1875{
1876static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1877test_array [0] = 0
1878
1879  ;
1880  return 0;
1881}
1882_ACEOF
1883if ac_fn_c_try_compile "$LINENO"; then :
1884  ac_lo=$ac_mid; break
1885else
1886  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1887			if test $ac_mid -le $ac_hi; then
1888			  ac_lo= ac_hi=
1889			  break
1890			fi
1891			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1892fi
1893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1894  done
1895else
1896  ac_lo= ac_hi=
1897fi
1898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899fi
1900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1901# Binary search between lo and hi bounds.
1902while test "x$ac_lo" != "x$ac_hi"; do
1903  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905/* end confdefs.h.  */
1906$4
1907int
1908main ()
1909{
1910static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1911test_array [0] = 0
1912
1913  ;
1914  return 0;
1915}
1916_ACEOF
1917if ac_fn_c_try_compile "$LINENO"; then :
1918  ac_hi=$ac_mid
1919else
1920  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1921fi
1922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1923done
1924case $ac_lo in #((
1925?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1926'') ac_retval=1 ;;
1927esac
1928  else
1929    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930/* end confdefs.h.  */
1931$4
1932static long int longval () { return $2; }
1933static unsigned long int ulongval () { return $2; }
1934#include <stdio.h>
1935#include <stdlib.h>
1936int
1937main ()
1938{
1939
1940  FILE *f = fopen ("conftest.val", "w");
1941  if (! f)
1942    return 1;
1943  if (($2) < 0)
1944    {
1945      long int i = longval ();
1946      if (i != ($2))
1947	return 1;
1948      fprintf (f, "%ld", i);
1949    }
1950  else
1951    {
1952      unsigned long int i = ulongval ();
1953      if (i != ($2))
1954	return 1;
1955      fprintf (f, "%lu", i);
1956    }
1957  /* Do not output a trailing newline, as this causes \r\n confusion
1958     on some platforms.  */
1959  return ferror (f) || fclose (f) != 0;
1960
1961  ;
1962  return 0;
1963}
1964_ACEOF
1965if ac_fn_c_try_run "$LINENO"; then :
1966  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1967else
1968  ac_retval=1
1969fi
1970rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1971  conftest.$ac_objext conftest.beam conftest.$ac_ext
1972rm -f conftest.val
1973
1974  fi
1975  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1976  as_fn_set_status $ac_retval
1977
1978} # ac_fn_c_compute_int
1979
1980# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1981# ---------------------------------------------
1982# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1983# accordingly.
1984ac_fn_c_check_decl ()
1985{
1986  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987  as_decl_name=`echo $2|sed 's/ *(.*//'`
1988  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1989  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1990$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1991if eval "test \"\${$3+set}\"" = set; then :
1992  $as_echo_n "(cached) " >&6
1993else
1994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995/* end confdefs.h.  */
1996$4
1997int
1998main ()
1999{
2000#ifndef $as_decl_name
2001#ifdef __cplusplus
2002  (void) $as_decl_use;
2003#else
2004  (void) $as_decl_name;
2005#endif
2006#endif
2007
2008  ;
2009  return 0;
2010}
2011_ACEOF
2012if ac_fn_c_try_compile "$LINENO"; then :
2013  eval "$3=yes"
2014else
2015  eval "$3=no"
2016fi
2017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2018fi
2019eval ac_res=\$$3
2020	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021$as_echo "$ac_res" >&6; }
2022  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2023
2024} # ac_fn_c_check_decl
2025
2026# ac_fn_c_try_link LINENO
2027# -----------------------
2028# Try to link conftest.$ac_ext, and return whether this succeeded.
2029ac_fn_c_try_link ()
2030{
2031  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032  rm -f conftest.$ac_objext conftest$ac_exeext
2033  if { { ac_try="$ac_link"
2034case "(($ac_try" in
2035  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2036  *) ac_try_echo=$ac_try;;
2037esac
2038eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2039$as_echo "$ac_try_echo"; } >&5
2040  (eval "$ac_link") 2>conftest.err
2041  ac_status=$?
2042  if test -s conftest.err; then
2043    grep -v '^ *+' conftest.err >conftest.er1
2044    cat conftest.er1 >&5
2045    mv -f conftest.er1 conftest.err
2046  fi
2047  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2048  test $ac_status = 0; } && {
2049	 test -z "$ac_c_werror_flag" ||
2050	 test ! -s conftest.err
2051       } && test -s conftest$ac_exeext && {
2052	 test "$cross_compiling" = yes ||
2053	 $as_test_x conftest$ac_exeext
2054       }; then :
2055  ac_retval=0
2056else
2057  $as_echo "$as_me: failed program was:" >&5
2058sed 's/^/| /' conftest.$ac_ext >&5
2059
2060	ac_retval=1
2061fi
2062  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2063  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2064  # interfere with the next link command; also delete a directory that is
2065  # left behind by Apple's compiler.  We do this before executing the actions.
2066  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2067  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2068  as_fn_set_status $ac_retval
2069
2070} # ac_fn_c_try_link
2071
2072# ac_fn_c_check_func LINENO FUNC VAR
2073# ----------------------------------
2074# Tests whether FUNC exists, setting the cache variable VAR accordingly
2075ac_fn_c_check_func ()
2076{
2077  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2079$as_echo_n "checking for $2... " >&6; }
2080if eval "test \"\${$3+set}\"" = set; then :
2081  $as_echo_n "(cached) " >&6
2082else
2083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084/* end confdefs.h.  */
2085/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2086   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2087#define $2 innocuous_$2
2088
2089/* System header to define __stub macros and hopefully few prototypes,
2090    which can conflict with char $2 (); below.
2091    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2092    <limits.h> exists even on freestanding compilers.  */
2093
2094#ifdef __STDC__
2095# include <limits.h>
2096#else
2097# include <assert.h>
2098#endif
2099
2100#undef $2
2101
2102/* Override any GCC internal prototype to avoid an error.
2103   Use char because int might match the return type of a GCC
2104   builtin and then its argument prototype would still apply.  */
2105#ifdef __cplusplus
2106extern "C"
2107#endif
2108char $2 ();
2109/* The GNU C library defines this for functions which it implements
2110    to always fail with ENOSYS.  Some functions are actually named
2111    something starting with __ and the normal name is an alias.  */
2112#if defined __stub_$2 || defined __stub___$2
2113choke me
2114#endif
2115
2116int
2117main ()
2118{
2119return $2 ();
2120  ;
2121  return 0;
2122}
2123_ACEOF
2124if ac_fn_c_try_link "$LINENO"; then :
2125  eval "$3=yes"
2126else
2127  eval "$3=no"
2128fi
2129rm -f core conftest.err conftest.$ac_objext \
2130    conftest$ac_exeext conftest.$ac_ext
2131fi
2132eval ac_res=\$$3
2133	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2134$as_echo "$ac_res" >&6; }
2135  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2136
2137} # ac_fn_c_check_func
2138
2139# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2140# ----------------------------------------------------
2141# Tries to find if the field MEMBER exists in type AGGR, after including
2142# INCLUDES, setting cache variable VAR accordingly.
2143ac_fn_c_check_member ()
2144{
2145  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2147$as_echo_n "checking for $2.$3... " >&6; }
2148if eval "test \"\${$4+set}\"" = set; then :
2149  $as_echo_n "(cached) " >&6
2150else
2151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152/* end confdefs.h.  */
2153$5
2154int
2155main ()
2156{
2157static $2 ac_aggr;
2158if (ac_aggr.$3)
2159return 0;
2160  ;
2161  return 0;
2162}
2163_ACEOF
2164if ac_fn_c_try_compile "$LINENO"; then :
2165  eval "$4=yes"
2166else
2167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168/* end confdefs.h.  */
2169$5
2170int
2171main ()
2172{
2173static $2 ac_aggr;
2174if (sizeof ac_aggr.$3)
2175return 0;
2176  ;
2177  return 0;
2178}
2179_ACEOF
2180if ac_fn_c_try_compile "$LINENO"; then :
2181  eval "$4=yes"
2182else
2183  eval "$4=no"
2184fi
2185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186fi
2187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2188fi
2189eval ac_res=\$$4
2190	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2191$as_echo "$ac_res" >&6; }
2192  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2193
2194} # ac_fn_c_check_member
2195cat >config.log <<_ACEOF
2196This file contains any messages produced by compilers while
2197running configure, to aid debugging if configure makes a mistake.
2198
2199It was created by neon $as_me 0.29.6, which was
2200generated by GNU Autoconf 2.66.  Invocation command line was
2201
2202  $ $0 $@
2203
2204_ACEOF
2205exec 5>>config.log
2206{
2207cat <<_ASUNAME
2208## --------- ##
2209## Platform. ##
2210## --------- ##
2211
2212hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2213uname -m = `(uname -m) 2>/dev/null || echo unknown`
2214uname -r = `(uname -r) 2>/dev/null || echo unknown`
2215uname -s = `(uname -s) 2>/dev/null || echo unknown`
2216uname -v = `(uname -v) 2>/dev/null || echo unknown`
2217
2218/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2219/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2220
2221/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2222/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2223/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2224/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2225/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2226/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2227/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2228
2229_ASUNAME
2230
2231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2232for as_dir in $PATH
2233do
2234  IFS=$as_save_IFS
2235  test -z "$as_dir" && as_dir=.
2236    $as_echo "PATH: $as_dir"
2237  done
2238IFS=$as_save_IFS
2239
2240} >&5
2241
2242cat >&5 <<_ACEOF
2243
2244
2245## ----------- ##
2246## Core tests. ##
2247## ----------- ##
2248
2249_ACEOF
2250
2251
2252# Keep a trace of the command line.
2253# Strip out --no-create and --no-recursion so they do not pile up.
2254# Strip out --silent because we don't want to record it for future runs.
2255# Also quote any args containing shell meta-characters.
2256# Make two passes to allow for proper duplicate-argument suppression.
2257ac_configure_args=
2258ac_configure_args0=
2259ac_configure_args1=
2260ac_must_keep_next=false
2261for ac_pass in 1 2
2262do
2263  for ac_arg
2264  do
2265    case $ac_arg in
2266    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2267    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2268    | -silent | --silent | --silen | --sile | --sil)
2269      continue ;;
2270    *\'*)
2271      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2272    esac
2273    case $ac_pass in
2274    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2275    2)
2276      as_fn_append ac_configure_args1 " '$ac_arg'"
2277      if test $ac_must_keep_next = true; then
2278	ac_must_keep_next=false # Got value, back to normal.
2279      else
2280	case $ac_arg in
2281	  *=* | --config-cache | -C | -disable-* | --disable-* \
2282	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2283	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2284	  | -with-* | --with-* | -without-* | --without-* | --x)
2285	    case "$ac_configure_args0 " in
2286	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2287	    esac
2288	    ;;
2289	  -* ) ac_must_keep_next=true ;;
2290	esac
2291      fi
2292      as_fn_append ac_configure_args " '$ac_arg'"
2293      ;;
2294    esac
2295  done
2296done
2297{ ac_configure_args0=; unset ac_configure_args0;}
2298{ ac_configure_args1=; unset ac_configure_args1;}
2299
2300# When interrupted or exit'd, cleanup temporary files, and complete
2301# config.log.  We remove comments because anyway the quotes in there
2302# would cause problems or look ugly.
2303# WARNING: Use '\'' to represent an apostrophe within the trap.
2304# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2305trap 'exit_status=$?
2306  # Save into config.log some information that might help in debugging.
2307  {
2308    echo
2309
2310    $as_echo "## ---------------- ##
2311## Cache variables. ##
2312## ---------------- ##"
2313    echo
2314    # The following way of writing the cache mishandles newlines in values,
2315(
2316  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2317    eval ac_val=\$$ac_var
2318    case $ac_val in #(
2319    *${as_nl}*)
2320      case $ac_var in #(
2321      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2322$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2323      esac
2324      case $ac_var in #(
2325      _ | IFS | as_nl) ;; #(
2326      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2327      *) { eval $ac_var=; unset $ac_var;} ;;
2328      esac ;;
2329    esac
2330  done
2331  (set) 2>&1 |
2332    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2333    *${as_nl}ac_space=\ *)
2334      sed -n \
2335	"s/'\''/'\''\\\\'\'''\''/g;
2336	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2337      ;; #(
2338    *)
2339      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2340      ;;
2341    esac |
2342    sort
2343)
2344    echo
2345
2346    $as_echo "## ----------------- ##
2347## Output variables. ##
2348## ----------------- ##"
2349    echo
2350    for ac_var in $ac_subst_vars
2351    do
2352      eval ac_val=\$$ac_var
2353      case $ac_val in
2354      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2355      esac
2356      $as_echo "$ac_var='\''$ac_val'\''"
2357    done | sort
2358    echo
2359
2360    if test -n "$ac_subst_files"; then
2361      $as_echo "## ------------------- ##
2362## File substitutions. ##
2363## ------------------- ##"
2364      echo
2365      for ac_var in $ac_subst_files
2366      do
2367	eval ac_val=\$$ac_var
2368	case $ac_val in
2369	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2370	esac
2371	$as_echo "$ac_var='\''$ac_val'\''"
2372      done | sort
2373      echo
2374    fi
2375
2376    if test -s confdefs.h; then
2377      $as_echo "## ----------- ##
2378## confdefs.h. ##
2379## ----------- ##"
2380      echo
2381      cat confdefs.h
2382      echo
2383    fi
2384    test "$ac_signal" != 0 &&
2385      $as_echo "$as_me: caught signal $ac_signal"
2386    $as_echo "$as_me: exit $exit_status"
2387  } >&5
2388  rm -f core *.core core.conftest.* &&
2389    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2390    exit $exit_status
2391' 0
2392for ac_signal in 1 2 13 15; do
2393  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2394done
2395ac_signal=0
2396
2397# confdefs.h avoids OS command line length limits that DEFS can exceed.
2398rm -f -r conftest* confdefs.h
2399
2400$as_echo "/* confdefs.h */" > confdefs.h
2401
2402# Predefined preprocessor variables.
2403
2404cat >>confdefs.h <<_ACEOF
2405#define PACKAGE_NAME "$PACKAGE_NAME"
2406_ACEOF
2407
2408cat >>confdefs.h <<_ACEOF
2409#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2410_ACEOF
2411
2412cat >>confdefs.h <<_ACEOF
2413#define PACKAGE_VERSION "$PACKAGE_VERSION"
2414_ACEOF
2415
2416cat >>confdefs.h <<_ACEOF
2417#define PACKAGE_STRING "$PACKAGE_STRING"
2418_ACEOF
2419
2420cat >>confdefs.h <<_ACEOF
2421#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2422_ACEOF
2423
2424cat >>confdefs.h <<_ACEOF
2425#define PACKAGE_URL "$PACKAGE_URL"
2426_ACEOF
2427
2428
2429# Let the site file select an alternate cache file if it wants to.
2430# Prefer an explicitly selected file to automatically selected ones.
2431ac_site_file1=NONE
2432ac_site_file2=NONE
2433if test -n "$CONFIG_SITE"; then
2434  # We do not want a PATH search for config.site.
2435  case $CONFIG_SITE in #((
2436    -*)  ac_site_file1=./$CONFIG_SITE;;
2437    */*) ac_site_file1=$CONFIG_SITE;;
2438    *)   ac_site_file1=./$CONFIG_SITE;;
2439  esac
2440elif test "x$prefix" != xNONE; then
2441  ac_site_file1=$prefix/share/config.site
2442  ac_site_file2=$prefix/etc/config.site
2443else
2444  ac_site_file1=$ac_default_prefix/share/config.site
2445  ac_site_file2=$ac_default_prefix/etc/config.site
2446fi
2447for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2448do
2449  test "x$ac_site_file" = xNONE && continue
2450  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2451    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2452$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2453    sed 's/^/| /' "$ac_site_file" >&5
2454    . "$ac_site_file" \
2455      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2457as_fn_error $? "failed to load site script $ac_site_file
2458See \`config.log' for more details" "$LINENO" 5; }
2459  fi
2460done
2461
2462if test -r "$cache_file"; then
2463  # Some versions of bash will fail to source /dev/null (special files
2464  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2465  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2466    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2467$as_echo "$as_me: loading cache $cache_file" >&6;}
2468    case $cache_file in
2469      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2470      *)                      . "./$cache_file";;
2471    esac
2472  fi
2473else
2474  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2475$as_echo "$as_me: creating cache $cache_file" >&6;}
2476  >$cache_file
2477fi
2478
2479# Check that the precious variables saved in the cache have kept the same
2480# value.
2481ac_cache_corrupted=false
2482for ac_var in $ac_precious_vars; do
2483  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2484  eval ac_new_set=\$ac_env_${ac_var}_set
2485  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2486  eval ac_new_val=\$ac_env_${ac_var}_value
2487  case $ac_old_set,$ac_new_set in
2488    set,)
2489      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2490$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2491      ac_cache_corrupted=: ;;
2492    ,set)
2493      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2494$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2495      ac_cache_corrupted=: ;;
2496    ,);;
2497    *)
2498      if test "x$ac_old_val" != "x$ac_new_val"; then
2499	# differences in whitespace do not lead to failure.
2500	ac_old_val_w=`echo x $ac_old_val`
2501	ac_new_val_w=`echo x $ac_new_val`
2502	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2503	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2504$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2505	  ac_cache_corrupted=:
2506	else
2507	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2508$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2509	  eval $ac_var=\$ac_old_val
2510	fi
2511	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2512$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2513	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2514$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2515      fi;;
2516  esac
2517  # Pass precious variables to config.status.
2518  if test "$ac_new_set" = set; then
2519    case $ac_new_val in
2520    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2521    *) ac_arg=$ac_var=$ac_new_val ;;
2522    esac
2523    case " $ac_configure_args " in
2524      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2525      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2526    esac
2527  fi
2528done
2529if $ac_cache_corrupted; then
2530  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2531$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2532  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2533$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2534  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2535fi
2536## -------------------- ##
2537## Main body of script. ##
2538## -------------------- ##
2539
2540ac_ext=c
2541ac_cpp='$CPP $CPPFLAGS'
2542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2544ac_compiler_gnu=$ac_cv_c_compiler_gnu
2545
2546
2547
2548
2549
2550ac_config_headers="$ac_config_headers config.h"
2551
2552
2553
2554
2555
2556# Check whether --with-libs was given.
2557if test "${with_libs+set}" = set; then :
2558  withval=$with_libs; case $with_libs in
2559yes|no) as_fn_error $? "--with-libs must be passed a directory argument" "$LINENO" 5 ;;
2560*) ne_save_IFS=$IFS; IFS=:
2561   for dir in $with_libs; do
2562     ne_add_CPPFLAGS="$ne_add_CPPFLAGS -I${dir}/include"
2563     ne_add_LDFLAGS="$ne_add_LDFLAGS -L${dir}/lib"
2564     ne_add_PATH="${ne_add_PATH}${dir}/bin:"
2565     PKG_CONFIG_PATH=${PKG_CONFIG_PATH}${PKG_CONFIG_PATH+:}${dir}/lib/pkgconfig
2566   done
2567   IFS=$ne_save_IFS
2568   CPPFLAGS="${ne_add_CPPFLAGS} $CPPFLAGS"
2569   LDFLAGS="${ne_add_LDFLAGS} $LDFLAGS"
2570   PATH=${ne_add_PATH}$PATH
2571   export PKG_CONFIG_PATH ;;
2572esac
2573fi
2574
2575
2576# Pass through initial LDFLAGS verbatim to neon-config, so that extra
2577# libraries which are detected (e.g. OpenSSL) can still be found when
2578# building using the --libs output of neon-config.
2579user_LDFLAGS=$LDFLAGS
2580
2581# By default, allow 'make install' to work.
2582ALLOW_INSTALL=yes
2583
2584
2585$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
2586
2587
2588$as_echo "#define NEON_IS_LIBRARY 1" >>confdefs.h
2589
2590
2591
2592
2593ac_aux_dir=
2594for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2595  if test -f "$ac_dir/install-sh"; then
2596    ac_aux_dir=$ac_dir
2597    ac_install_sh="$ac_aux_dir/install-sh -c"
2598    break
2599  elif test -f "$ac_dir/install.sh"; then
2600    ac_aux_dir=$ac_dir
2601    ac_install_sh="$ac_aux_dir/install.sh -c"
2602    break
2603  elif test -f "$ac_dir/shtool"; then
2604    ac_aux_dir=$ac_dir
2605    ac_install_sh="$ac_aux_dir/shtool install -c"
2606    break
2607  fi
2608done
2609if test -z "$ac_aux_dir"; then
2610  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2611fi
2612
2613# These three variables are undocumented and unsupported,
2614# and are intended to be withdrawn in a future Autoconf release.
2615# They can cause serious problems if a builder's source tree is in a directory
2616# whose full name contains unusual characters.
2617ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2618ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2619ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2620
2621
2622# Find a good install program.  We prefer a C program (faster),
2623# so one script is as good as another.  But avoid the broken or
2624# incompatible versions:
2625# SysV /etc/install, /usr/sbin/install
2626# SunOS /usr/etc/install
2627# IRIX /sbin/install
2628# AIX /bin/install
2629# AmigaOS /C/install, which installs bootblocks on floppy discs
2630# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2631# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2632# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2633# OS/2's system install, which has a completely different semantic
2634# ./install, which can be erroneously created by make from ./install.sh.
2635# Reject install programs that cannot install multiple files.
2636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2637$as_echo_n "checking for a BSD-compatible install... " >&6; }
2638if test -z "$INSTALL"; then
2639if test "${ac_cv_path_install+set}" = set; then :
2640  $as_echo_n "(cached) " >&6
2641else
2642  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643for as_dir in $PATH
2644do
2645  IFS=$as_save_IFS
2646  test -z "$as_dir" && as_dir=.
2647    # Account for people who put trailing slashes in PATH elements.
2648case $as_dir/ in #((
2649  ./ | .// | /[cC]/* | \
2650  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2651  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2652  /usr/ucb/* ) ;;
2653  *)
2654    # OSF1 and SCO ODT 3.0 have their own names for install.
2655    # Don't use installbsd from OSF since it installs stuff as root
2656    # by default.
2657    for ac_prog in ginstall scoinst install; do
2658      for ac_exec_ext in '' $ac_executable_extensions; do
2659	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2660	  if test $ac_prog = install &&
2661	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2662	    # AIX install.  It has an incompatible calling convention.
2663	    :
2664	  elif test $ac_prog = install &&
2665	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2666	    # program-specific install script used by HP pwplus--don't use.
2667	    :
2668	  else
2669	    rm -rf conftest.one conftest.two conftest.dir
2670	    echo one > conftest.one
2671	    echo two > conftest.two
2672	    mkdir conftest.dir
2673	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2674	      test -s conftest.one && test -s conftest.two &&
2675	      test -s conftest.dir/conftest.one &&
2676	      test -s conftest.dir/conftest.two
2677	    then
2678	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2679	      break 3
2680	    fi
2681	  fi
2682	fi
2683      done
2684    done
2685    ;;
2686esac
2687
2688  done
2689IFS=$as_save_IFS
2690
2691rm -rf conftest.one conftest.two conftest.dir
2692
2693fi
2694  if test "${ac_cv_path_install+set}" = set; then
2695    INSTALL=$ac_cv_path_install
2696  else
2697    # As a last resort, use the slow shell script.  Don't cache a
2698    # value for INSTALL within a source directory, because that will
2699    # break other packages using the cache if that directory is
2700    # removed, or if the value is a relative name.
2701    INSTALL=$ac_install_sh
2702  fi
2703fi
2704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2705$as_echo "$INSTALL" >&6; }
2706
2707# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2708# It thinks the first close brace ends the variable substitution.
2709test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2710
2711test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2712
2713test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2714
2715
2716# Check whether --enable-webdav was given.
2717if test "${enable_webdav+set}" = set; then :
2718  enableval=$enable_webdav;
2719fi
2720
2721
2722if test "$enable_webdav" = "no"; then
2723
2724neon_no_webdav=yes
2725neon_no_acl=yes
2726NEON_NEED_XML_PARSER=no
2727neon_xml_parser_message="none needed"
2728
2729else
2730  # Yes, we do need an XML parser. The _BUNDLED macros handle
2731  # this normally.
2732  NEON_NEED_XML_PARSER=yes
2733fi
2734
2735# The bundled macros also set this, which makes sure we recurse
2736# into the 'src' directory.
2737NEON_BUILD_BUNDLED=yes
2738
2739# Define NEON_VERSION etc and make the appropriate substitutions.
2740
2741
2742# Define the current versions.
2743NE_VERSION_MAJOR=0
2744NE_VERSION_MINOR=29
2745NE_VERSION_PATCH=6
2746NE_VERSION_TAG=
2747
2748# 0.29.x is backwards-compatible to 0.27.x, so AGE=2
2749NE_LIBTOOL_VERSINFO="29:${NE_VERSION_PATCH}:2"
2750
2751
2752
2753NEON_VERSION="${NE_VERSION_MAJOR}.${NE_VERSION_MINOR}.${NE_VERSION_PATCH}${NE_VERSION_TAG}"
2754
2755
2756cat >>confdefs.h <<_ACEOF
2757#define NEON_VERSION "${NEON_VERSION}"
2758_ACEOF
2759
2760
2761cat >>confdefs.h <<_ACEOF
2762#define NE_VERSION_MAJOR (${NE_VERSION_MAJOR})
2763_ACEOF
2764
2765
2766cat >>confdefs.h <<_ACEOF
2767#define NE_VERSION_MINOR (${NE_VERSION_MINOR})
2768_ACEOF
2769
2770
2771cat >>confdefs.h <<_ACEOF
2772#define NE_VERSION_PATCH (${NE_VERSION_PATCH})
2773_ACEOF
2774
2775
2776
2777
2778
2779ac_ext=c
2780ac_cpp='$CPP $CPPFLAGS'
2781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2783ac_compiler_gnu=$ac_cv_c_compiler_gnu
2784if test -n "$ac_tool_prefix"; then
2785  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2786set dummy ${ac_tool_prefix}gcc; ac_word=$2
2787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2788$as_echo_n "checking for $ac_word... " >&6; }
2789if test "${ac_cv_prog_CC+set}" = set; then :
2790  $as_echo_n "(cached) " >&6
2791else
2792  if test -n "$CC"; then
2793  ac_cv_prog_CC="$CC" # Let the user override the test.
2794else
2795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796for as_dir in $PATH
2797do
2798  IFS=$as_save_IFS
2799  test -z "$as_dir" && as_dir=.
2800    for ac_exec_ext in '' $ac_executable_extensions; do
2801  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2802    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2803    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2804    break 2
2805  fi
2806done
2807  done
2808IFS=$as_save_IFS
2809
2810fi
2811fi
2812CC=$ac_cv_prog_CC
2813if test -n "$CC"; then
2814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2815$as_echo "$CC" >&6; }
2816else
2817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818$as_echo "no" >&6; }
2819fi
2820
2821
2822fi
2823if test -z "$ac_cv_prog_CC"; then
2824  ac_ct_CC=$CC
2825  # Extract the first word of "gcc", so it can be a program name with args.
2826set dummy gcc; ac_word=$2
2827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2828$as_echo_n "checking for $ac_word... " >&6; }
2829if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2830  $as_echo_n "(cached) " >&6
2831else
2832  if test -n "$ac_ct_CC"; then
2833  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2834else
2835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836for as_dir in $PATH
2837do
2838  IFS=$as_save_IFS
2839  test -z "$as_dir" && as_dir=.
2840    for ac_exec_ext in '' $ac_executable_extensions; do
2841  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2842    ac_cv_prog_ac_ct_CC="gcc"
2843    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2844    break 2
2845  fi
2846done
2847  done
2848IFS=$as_save_IFS
2849
2850fi
2851fi
2852ac_ct_CC=$ac_cv_prog_ac_ct_CC
2853if test -n "$ac_ct_CC"; then
2854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2855$as_echo "$ac_ct_CC" >&6; }
2856else
2857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2858$as_echo "no" >&6; }
2859fi
2860
2861  if test "x$ac_ct_CC" = x; then
2862    CC=""
2863  else
2864    case $cross_compiling:$ac_tool_warned in
2865yes:)
2866{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2868ac_tool_warned=yes ;;
2869esac
2870    CC=$ac_ct_CC
2871  fi
2872else
2873  CC="$ac_cv_prog_CC"
2874fi
2875
2876if test -z "$CC"; then
2877          if test -n "$ac_tool_prefix"; then
2878    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2879set dummy ${ac_tool_prefix}cc; ac_word=$2
2880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2881$as_echo_n "checking for $ac_word... " >&6; }
2882if test "${ac_cv_prog_CC+set}" = set; then :
2883  $as_echo_n "(cached) " >&6
2884else
2885  if test -n "$CC"; then
2886  ac_cv_prog_CC="$CC" # Let the user override the test.
2887else
2888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889for as_dir in $PATH
2890do
2891  IFS=$as_save_IFS
2892  test -z "$as_dir" && as_dir=.
2893    for ac_exec_ext in '' $ac_executable_extensions; do
2894  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2895    ac_cv_prog_CC="${ac_tool_prefix}cc"
2896    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2897    break 2
2898  fi
2899done
2900  done
2901IFS=$as_save_IFS
2902
2903fi
2904fi
2905CC=$ac_cv_prog_CC
2906if test -n "$CC"; then
2907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2908$as_echo "$CC" >&6; }
2909else
2910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2911$as_echo "no" >&6; }
2912fi
2913
2914
2915  fi
2916fi
2917if test -z "$CC"; then
2918  # Extract the first word of "cc", so it can be a program name with args.
2919set dummy cc; ac_word=$2
2920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2921$as_echo_n "checking for $ac_word... " >&6; }
2922if test "${ac_cv_prog_CC+set}" = set; then :
2923  $as_echo_n "(cached) " >&6
2924else
2925  if test -n "$CC"; then
2926  ac_cv_prog_CC="$CC" # Let the user override the test.
2927else
2928  ac_prog_rejected=no
2929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930for as_dir in $PATH
2931do
2932  IFS=$as_save_IFS
2933  test -z "$as_dir" && as_dir=.
2934    for ac_exec_ext in '' $ac_executable_extensions; do
2935  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2936    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2937       ac_prog_rejected=yes
2938       continue
2939     fi
2940    ac_cv_prog_CC="cc"
2941    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2942    break 2
2943  fi
2944done
2945  done
2946IFS=$as_save_IFS
2947
2948if test $ac_prog_rejected = yes; then
2949  # We found a bogon in the path, so make sure we never use it.
2950  set dummy $ac_cv_prog_CC
2951  shift
2952  if test $# != 0; then
2953    # We chose a different compiler from the bogus one.
2954    # However, it has the same basename, so the bogon will be chosen
2955    # first if we set CC to just the basename; use the full file name.
2956    shift
2957    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2958  fi
2959fi
2960fi
2961fi
2962CC=$ac_cv_prog_CC
2963if test -n "$CC"; then
2964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2965$as_echo "$CC" >&6; }
2966else
2967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968$as_echo "no" >&6; }
2969fi
2970
2971
2972fi
2973if test -z "$CC"; then
2974  if test -n "$ac_tool_prefix"; then
2975  for ac_prog in cl.exe
2976  do
2977    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2978set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2980$as_echo_n "checking for $ac_word... " >&6; }
2981if test "${ac_cv_prog_CC+set}" = set; then :
2982  $as_echo_n "(cached) " >&6
2983else
2984  if test -n "$CC"; then
2985  ac_cv_prog_CC="$CC" # Let the user override the test.
2986else
2987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988for as_dir in $PATH
2989do
2990  IFS=$as_save_IFS
2991  test -z "$as_dir" && as_dir=.
2992    for ac_exec_ext in '' $ac_executable_extensions; do
2993  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2994    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2995    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2996    break 2
2997  fi
2998done
2999  done
3000IFS=$as_save_IFS
3001
3002fi
3003fi
3004CC=$ac_cv_prog_CC
3005if test -n "$CC"; then
3006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3007$as_echo "$CC" >&6; }
3008else
3009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010$as_echo "no" >&6; }
3011fi
3012
3013
3014    test -n "$CC" && break
3015  done
3016fi
3017if test -z "$CC"; then
3018  ac_ct_CC=$CC
3019  for ac_prog in cl.exe
3020do
3021  # Extract the first word of "$ac_prog", so it can be a program name with args.
3022set dummy $ac_prog; ac_word=$2
3023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3024$as_echo_n "checking for $ac_word... " >&6; }
3025if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3026  $as_echo_n "(cached) " >&6
3027else
3028  if test -n "$ac_ct_CC"; then
3029  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3030else
3031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032for as_dir in $PATH
3033do
3034  IFS=$as_save_IFS
3035  test -z "$as_dir" && as_dir=.
3036    for ac_exec_ext in '' $ac_executable_extensions; do
3037  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3038    ac_cv_prog_ac_ct_CC="$ac_prog"
3039    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3040    break 2
3041  fi
3042done
3043  done
3044IFS=$as_save_IFS
3045
3046fi
3047fi
3048ac_ct_CC=$ac_cv_prog_ac_ct_CC
3049if test -n "$ac_ct_CC"; then
3050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3051$as_echo "$ac_ct_CC" >&6; }
3052else
3053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054$as_echo "no" >&6; }
3055fi
3056
3057
3058  test -n "$ac_ct_CC" && break
3059done
3060
3061  if test "x$ac_ct_CC" = x; then
3062    CC=""
3063  else
3064    case $cross_compiling:$ac_tool_warned in
3065yes:)
3066{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3067$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3068ac_tool_warned=yes ;;
3069esac
3070    CC=$ac_ct_CC
3071  fi
3072fi
3073
3074fi
3075
3076
3077test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3078$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3079as_fn_error $? "no acceptable C compiler found in \$PATH
3080See \`config.log' for more details" "$LINENO" 5; }
3081
3082# Provide some information about the compiler.
3083$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3084set X $ac_compile
3085ac_compiler=$2
3086for ac_option in --version -v -V -qversion; do
3087  { { ac_try="$ac_compiler $ac_option >&5"
3088case "(($ac_try" in
3089  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090  *) ac_try_echo=$ac_try;;
3091esac
3092eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3093$as_echo "$ac_try_echo"; } >&5
3094  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3095  ac_status=$?
3096  if test -s conftest.err; then
3097    sed '10a\
3098... rest of stderr output deleted ...
3099         10q' conftest.err >conftest.er1
3100    cat conftest.er1 >&5
3101  fi
3102  rm -f conftest.er1 conftest.err
3103  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3104  test $ac_status = 0; }
3105done
3106
3107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3108/* end confdefs.h.  */
3109
3110int
3111main ()
3112{
3113
3114  ;
3115  return 0;
3116}
3117_ACEOF
3118ac_clean_files_save=$ac_clean_files
3119ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3120# Try to create an executable without -o first, disregard a.out.
3121# It will help us diagnose broken compilers, and finding out an intuition
3122# of exeext.
3123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3124$as_echo_n "checking whether the C compiler works... " >&6; }
3125ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3126
3127# The possible output files:
3128ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3129
3130ac_rmfiles=
3131for ac_file in $ac_files
3132do
3133  case $ac_file in
3134    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3135    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3136  esac
3137done
3138rm -f $ac_rmfiles
3139
3140if { { ac_try="$ac_link_default"
3141case "(($ac_try" in
3142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143  *) ac_try_echo=$ac_try;;
3144esac
3145eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3146$as_echo "$ac_try_echo"; } >&5
3147  (eval "$ac_link_default") 2>&5
3148  ac_status=$?
3149  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3150  test $ac_status = 0; }; then :
3151  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3152# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3153# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3154# so that the user can short-circuit this test for compilers unknown to
3155# Autoconf.
3156for ac_file in $ac_files ''
3157do
3158  test -f "$ac_file" || continue
3159  case $ac_file in
3160    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3161	;;
3162    [ab].out )
3163	# We found the default executable, but exeext='' is most
3164	# certainly right.
3165	break;;
3166    *.* )
3167	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3168	then :; else
3169	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3170	fi
3171	# We set ac_cv_exeext here because the later test for it is not
3172	# safe: cross compilers may not add the suffix if given an `-o'
3173	# argument, so we may need to know it at that point already.
3174	# Even if this section looks crufty: it has the advantage of
3175	# actually working.
3176	break;;
3177    * )
3178	break;;
3179  esac
3180done
3181test "$ac_cv_exeext" = no && ac_cv_exeext=
3182
3183else
3184  ac_file=''
3185fi
3186if test -z "$ac_file"; then :
3187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188$as_echo "no" >&6; }
3189$as_echo "$as_me: failed program was:" >&5
3190sed 's/^/| /' conftest.$ac_ext >&5
3191
3192{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3193$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3194as_fn_error 77 "C compiler cannot create executables
3195See \`config.log' for more details" "$LINENO" 5; }
3196else
3197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3198$as_echo "yes" >&6; }
3199fi
3200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3201$as_echo_n "checking for C compiler default output file name... " >&6; }
3202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3203$as_echo "$ac_file" >&6; }
3204ac_exeext=$ac_cv_exeext
3205
3206rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3207ac_clean_files=$ac_clean_files_save
3208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3209$as_echo_n "checking for suffix of executables... " >&6; }
3210if { { ac_try="$ac_link"
3211case "(($ac_try" in
3212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213  *) ac_try_echo=$ac_try;;
3214esac
3215eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3216$as_echo "$ac_try_echo"; } >&5
3217  (eval "$ac_link") 2>&5
3218  ac_status=$?
3219  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3220  test $ac_status = 0; }; then :
3221  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3222# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3223# work properly (i.e., refer to `conftest.exe'), while it won't with
3224# `rm'.
3225for ac_file in conftest.exe conftest conftest.*; do
3226  test -f "$ac_file" || continue
3227  case $ac_file in
3228    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3229    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3230	  break;;
3231    * ) break;;
3232  esac
3233done
3234else
3235  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3236$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3237as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3238See \`config.log' for more details" "$LINENO" 5; }
3239fi
3240rm -f conftest conftest$ac_cv_exeext
3241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3242$as_echo "$ac_cv_exeext" >&6; }
3243
3244rm -f conftest.$ac_ext
3245EXEEXT=$ac_cv_exeext
3246ac_exeext=$EXEEXT
3247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248/* end confdefs.h.  */
3249#include <stdio.h>
3250int
3251main ()
3252{
3253FILE *f = fopen ("conftest.out", "w");
3254 return ferror (f) || fclose (f) != 0;
3255
3256  ;
3257  return 0;
3258}
3259_ACEOF
3260ac_clean_files="$ac_clean_files conftest.out"
3261# Check that the compiler produces executables we can run.  If not, either
3262# the compiler is broken, or we cross compile.
3263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3264$as_echo_n "checking whether we are cross compiling... " >&6; }
3265if test "$cross_compiling" != yes; then
3266  { { ac_try="$ac_link"
3267case "(($ac_try" in
3268  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269  *) ac_try_echo=$ac_try;;
3270esac
3271eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3272$as_echo "$ac_try_echo"; } >&5
3273  (eval "$ac_link") 2>&5
3274  ac_status=$?
3275  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3276  test $ac_status = 0; }
3277  if { ac_try='./conftest$ac_cv_exeext'
3278  { { case "(($ac_try" in
3279  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280  *) ac_try_echo=$ac_try;;
3281esac
3282eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3283$as_echo "$ac_try_echo"; } >&5
3284  (eval "$ac_try") 2>&5
3285  ac_status=$?
3286  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3287  test $ac_status = 0; }; }; then
3288    cross_compiling=no
3289  else
3290    if test "$cross_compiling" = maybe; then
3291	cross_compiling=yes
3292    else
3293	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3294$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3295as_fn_error $? "cannot run C compiled programs.
3296If you meant to cross compile, use \`--host'.
3297See \`config.log' for more details" "$LINENO" 5; }
3298    fi
3299  fi
3300fi
3301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3302$as_echo "$cross_compiling" >&6; }
3303
3304rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3305ac_clean_files=$ac_clean_files_save
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3307$as_echo_n "checking for suffix of object files... " >&6; }
3308if test "${ac_cv_objext+set}" = set; then :
3309  $as_echo_n "(cached) " >&6
3310else
3311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312/* end confdefs.h.  */
3313
3314int
3315main ()
3316{
3317
3318  ;
3319  return 0;
3320}
3321_ACEOF
3322rm -f conftest.o conftest.obj
3323if { { ac_try="$ac_compile"
3324case "(($ac_try" in
3325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326  *) ac_try_echo=$ac_try;;
3327esac
3328eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329$as_echo "$ac_try_echo"; } >&5
3330  (eval "$ac_compile") 2>&5
3331  ac_status=$?
3332  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333  test $ac_status = 0; }; then :
3334  for ac_file in conftest.o conftest.obj conftest.*; do
3335  test -f "$ac_file" || continue;
3336  case $ac_file in
3337    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3338    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3339       break;;
3340  esac
3341done
3342else
3343  $as_echo "$as_me: failed program was:" >&5
3344sed 's/^/| /' conftest.$ac_ext >&5
3345
3346{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3347$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3348as_fn_error $? "cannot compute suffix of object files: cannot compile
3349See \`config.log' for more details" "$LINENO" 5; }
3350fi
3351rm -f conftest.$ac_cv_objext conftest.$ac_ext
3352fi
3353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3354$as_echo "$ac_cv_objext" >&6; }
3355OBJEXT=$ac_cv_objext
3356ac_objext=$OBJEXT
3357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3358$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3359if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3360  $as_echo_n "(cached) " >&6
3361else
3362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3363/* end confdefs.h.  */
3364
3365int
3366main ()
3367{
3368#ifndef __GNUC__
3369       choke me
3370#endif
3371
3372  ;
3373  return 0;
3374}
3375_ACEOF
3376if ac_fn_c_try_compile "$LINENO"; then :
3377  ac_compiler_gnu=yes
3378else
3379  ac_compiler_gnu=no
3380fi
3381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3382ac_cv_c_compiler_gnu=$ac_compiler_gnu
3383
3384fi
3385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3386$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3387if test $ac_compiler_gnu = yes; then
3388  GCC=yes
3389else
3390  GCC=
3391fi
3392ac_test_CFLAGS=${CFLAGS+set}
3393ac_save_CFLAGS=$CFLAGS
3394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3395$as_echo_n "checking whether $CC accepts -g... " >&6; }
3396if test "${ac_cv_prog_cc_g+set}" = set; then :
3397  $as_echo_n "(cached) " >&6
3398else
3399  ac_save_c_werror_flag=$ac_c_werror_flag
3400   ac_c_werror_flag=yes
3401   ac_cv_prog_cc_g=no
3402   CFLAGS="-g"
3403   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404/* end confdefs.h.  */
3405
3406int
3407main ()
3408{
3409
3410  ;
3411  return 0;
3412}
3413_ACEOF
3414if ac_fn_c_try_compile "$LINENO"; then :
3415  ac_cv_prog_cc_g=yes
3416else
3417  CFLAGS=""
3418      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419/* end confdefs.h.  */
3420
3421int
3422main ()
3423{
3424
3425  ;
3426  return 0;
3427}
3428_ACEOF
3429if ac_fn_c_try_compile "$LINENO"; then :
3430
3431else
3432  ac_c_werror_flag=$ac_save_c_werror_flag
3433	 CFLAGS="-g"
3434	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435/* end confdefs.h.  */
3436
3437int
3438main ()
3439{
3440
3441  ;
3442  return 0;
3443}
3444_ACEOF
3445if ac_fn_c_try_compile "$LINENO"; then :
3446  ac_cv_prog_cc_g=yes
3447fi
3448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3449fi
3450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3451fi
3452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3453   ac_c_werror_flag=$ac_save_c_werror_flag
3454fi
3455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3456$as_echo "$ac_cv_prog_cc_g" >&6; }
3457if test "$ac_test_CFLAGS" = set; then
3458  CFLAGS=$ac_save_CFLAGS
3459elif test $ac_cv_prog_cc_g = yes; then
3460  if test "$GCC" = yes; then
3461    CFLAGS="-g -O2"
3462  else
3463    CFLAGS="-g"
3464  fi
3465else
3466  if test "$GCC" = yes; then
3467    CFLAGS="-O2"
3468  else
3469    CFLAGS=
3470  fi
3471fi
3472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3473$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3474if test "${ac_cv_prog_cc_c89+set}" = set; then :
3475  $as_echo_n "(cached) " >&6
3476else
3477  ac_cv_prog_cc_c89=no
3478ac_save_CC=$CC
3479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480/* end confdefs.h.  */
3481#include <stdarg.h>
3482#include <stdio.h>
3483#include <sys/types.h>
3484#include <sys/stat.h>
3485/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3486struct buf { int x; };
3487FILE * (*rcsopen) (struct buf *, struct stat *, int);
3488static char *e (p, i)
3489     char **p;
3490     int i;
3491{
3492  return p[i];
3493}
3494static char *f (char * (*g) (char **, int), char **p, ...)
3495{
3496  char *s;
3497  va_list v;
3498  va_start (v,p);
3499  s = g (p, va_arg (v,int));
3500  va_end (v);
3501  return s;
3502}
3503
3504/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3505   function prototypes and stuff, but not '\xHH' hex character constants.
3506   These don't provoke an error unfortunately, instead are silently treated
3507   as 'x'.  The following induces an error, until -std is added to get
3508   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3509   array size at least.  It's necessary to write '\x00'==0 to get something
3510   that's true only with -std.  */
3511int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3512
3513/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3514   inside strings and character constants.  */
3515#define FOO(x) 'x'
3516int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3517
3518int test (int i, double x);
3519struct s1 {int (*f) (int a);};
3520struct s2 {int (*f) (double a);};
3521int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3522int argc;
3523char **argv;
3524int
3525main ()
3526{
3527return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3528  ;
3529  return 0;
3530}
3531_ACEOF
3532for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3533	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3534do
3535  CC="$ac_save_CC $ac_arg"
3536  if ac_fn_c_try_compile "$LINENO"; then :
3537  ac_cv_prog_cc_c89=$ac_arg
3538fi
3539rm -f core conftest.err conftest.$ac_objext
3540  test "x$ac_cv_prog_cc_c89" != "xno" && break
3541done
3542rm -f conftest.$ac_ext
3543CC=$ac_save_CC
3544
3545fi
3546# AC_CACHE_VAL
3547case "x$ac_cv_prog_cc_c89" in
3548  x)
3549    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3550$as_echo "none needed" >&6; } ;;
3551  xno)
3552    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3553$as_echo "unsupported" >&6; } ;;
3554  *)
3555    CC="$CC $ac_cv_prog_cc_c89"
3556    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3557$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3558esac
3559if test "x$ac_cv_prog_cc_c89" != xno; then :
3560
3561fi
3562
3563ac_ext=c
3564ac_cpp='$CPP $CPPFLAGS'
3565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3567ac_compiler_gnu=$ac_cv_c_compiler_gnu
3568
3569
3570ac_ext=c
3571ac_cpp='$CPP $CPPFLAGS'
3572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3574ac_compiler_gnu=$ac_cv_c_compiler_gnu
3575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3576$as_echo_n "checking how to run the C preprocessor... " >&6; }
3577# On Suns, sometimes $CPP names a directory.
3578if test -n "$CPP" && test -d "$CPP"; then
3579  CPP=
3580fi
3581if test -z "$CPP"; then
3582  if test "${ac_cv_prog_CPP+set}" = set; then :
3583  $as_echo_n "(cached) " >&6
3584else
3585      # Double quotes because CPP needs to be expanded
3586    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3587    do
3588      ac_preproc_ok=false
3589for ac_c_preproc_warn_flag in '' yes
3590do
3591  # Use a header file that comes with gcc, so configuring glibc
3592  # with a fresh cross-compiler works.
3593  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3594  # <limits.h> exists even on freestanding compilers.
3595  # On the NeXT, cc -E runs the code through the compiler's parser,
3596  # not just through cpp. "Syntax error" is here to catch this case.
3597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598/* end confdefs.h.  */
3599#ifdef __STDC__
3600# include <limits.h>
3601#else
3602# include <assert.h>
3603#endif
3604		     Syntax error
3605_ACEOF
3606if ac_fn_c_try_cpp "$LINENO"; then :
3607
3608else
3609  # Broken: fails on valid input.
3610continue
3611fi
3612rm -f conftest.err conftest.$ac_ext
3613
3614  # OK, works on sane cases.  Now check whether nonexistent headers
3615  # can be detected and how.
3616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3617/* end confdefs.h.  */
3618#include <ac_nonexistent.h>
3619_ACEOF
3620if ac_fn_c_try_cpp "$LINENO"; then :
3621  # Broken: success on invalid input.
3622continue
3623else
3624  # Passes both tests.
3625ac_preproc_ok=:
3626break
3627fi
3628rm -f conftest.err conftest.$ac_ext
3629
3630done
3631# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3632rm -f conftest.err conftest.$ac_ext
3633if $ac_preproc_ok; then :
3634  break
3635fi
3636
3637    done
3638    ac_cv_prog_CPP=$CPP
3639
3640fi
3641  CPP=$ac_cv_prog_CPP
3642else
3643  ac_cv_prog_CPP=$CPP
3644fi
3645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3646$as_echo "$CPP" >&6; }
3647ac_preproc_ok=false
3648for ac_c_preproc_warn_flag in '' yes
3649do
3650  # Use a header file that comes with gcc, so configuring glibc
3651  # with a fresh cross-compiler works.
3652  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3653  # <limits.h> exists even on freestanding compilers.
3654  # On the NeXT, cc -E runs the code through the compiler's parser,
3655  # not just through cpp. "Syntax error" is here to catch this case.
3656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657/* end confdefs.h.  */
3658#ifdef __STDC__
3659# include <limits.h>
3660#else
3661# include <assert.h>
3662#endif
3663		     Syntax error
3664_ACEOF
3665if ac_fn_c_try_cpp "$LINENO"; then :
3666
3667else
3668  # Broken: fails on valid input.
3669continue
3670fi
3671rm -f conftest.err conftest.$ac_ext
3672
3673  # OK, works on sane cases.  Now check whether nonexistent headers
3674  # can be detected and how.
3675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676/* end confdefs.h.  */
3677#include <ac_nonexistent.h>
3678_ACEOF
3679if ac_fn_c_try_cpp "$LINENO"; then :
3680  # Broken: success on invalid input.
3681continue
3682else
3683  # Passes both tests.
3684ac_preproc_ok=:
3685break
3686fi
3687rm -f conftest.err conftest.$ac_ext
3688
3689done
3690# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3691rm -f conftest.err conftest.$ac_ext
3692if $ac_preproc_ok; then :
3693
3694else
3695  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3696$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3697as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3698See \`config.log' for more details" "$LINENO" 5; }
3699fi
3700
3701ac_ext=c
3702ac_cpp='$CPP $CPPFLAGS'
3703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3705ac_compiler_gnu=$ac_cv_c_compiler_gnu
3706
3707
3708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3709$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3710if test "${ac_cv_path_GREP+set}" = set; then :
3711  $as_echo_n "(cached) " >&6
3712else
3713  if test -z "$GREP"; then
3714  ac_path_GREP_found=false
3715  # Loop through the user's path and test for each of PROGNAME-LIST
3716  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3718do
3719  IFS=$as_save_IFS
3720  test -z "$as_dir" && as_dir=.
3721    for ac_prog in grep ggrep; do
3722    for ac_exec_ext in '' $ac_executable_extensions; do
3723      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3724      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3725# Check for GNU ac_path_GREP and select it if it is found.
3726  # Check for GNU $ac_path_GREP
3727case `"$ac_path_GREP" --version 2>&1` in
3728*GNU*)
3729  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3730*)
3731  ac_count=0
3732  $as_echo_n 0123456789 >"conftest.in"
3733  while :
3734  do
3735    cat "conftest.in" "conftest.in" >"conftest.tmp"
3736    mv "conftest.tmp" "conftest.in"
3737    cp "conftest.in" "conftest.nl"
3738    $as_echo 'GREP' >> "conftest.nl"
3739    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3740    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3741    as_fn_arith $ac_count + 1 && ac_count=$as_val
3742    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3743      # Best one so far, save it but keep looking for a better one
3744      ac_cv_path_GREP="$ac_path_GREP"
3745      ac_path_GREP_max=$ac_count
3746    fi
3747    # 10*(2^10) chars as input seems more than enough
3748    test $ac_count -gt 10 && break
3749  done
3750  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3751esac
3752
3753      $ac_path_GREP_found && break 3
3754    done
3755  done
3756  done
3757IFS=$as_save_IFS
3758  if test -z "$ac_cv_path_GREP"; then
3759    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3760  fi
3761else
3762  ac_cv_path_GREP=$GREP
3763fi
3764
3765fi
3766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3767$as_echo "$ac_cv_path_GREP" >&6; }
3768 GREP="$ac_cv_path_GREP"
3769
3770
3771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3772$as_echo_n "checking for egrep... " >&6; }
3773if test "${ac_cv_path_EGREP+set}" = set; then :
3774  $as_echo_n "(cached) " >&6
3775else
3776  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3777   then ac_cv_path_EGREP="$GREP -E"
3778   else
3779     if test -z "$EGREP"; then
3780  ac_path_EGREP_found=false
3781  # Loop through the user's path and test for each of PROGNAME-LIST
3782  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3784do
3785  IFS=$as_save_IFS
3786  test -z "$as_dir" && as_dir=.
3787    for ac_prog in egrep; do
3788    for ac_exec_ext in '' $ac_executable_extensions; do
3789      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3790      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3791# Check for GNU ac_path_EGREP and select it if it is found.
3792  # Check for GNU $ac_path_EGREP
3793case `"$ac_path_EGREP" --version 2>&1` in
3794*GNU*)
3795  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3796*)
3797  ac_count=0
3798  $as_echo_n 0123456789 >"conftest.in"
3799  while :
3800  do
3801    cat "conftest.in" "conftest.in" >"conftest.tmp"
3802    mv "conftest.tmp" "conftest.in"
3803    cp "conftest.in" "conftest.nl"
3804    $as_echo 'EGREP' >> "conftest.nl"
3805    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3806    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3807    as_fn_arith $ac_count + 1 && ac_count=$as_val
3808    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3809      # Best one so far, save it but keep looking for a better one
3810      ac_cv_path_EGREP="$ac_path_EGREP"
3811      ac_path_EGREP_max=$ac_count
3812    fi
3813    # 10*(2^10) chars as input seems more than enough
3814    test $ac_count -gt 10 && break
3815  done
3816  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3817esac
3818
3819      $ac_path_EGREP_found && break 3
3820    done
3821  done
3822  done
3823IFS=$as_save_IFS
3824  if test -z "$ac_cv_path_EGREP"; then
3825    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3826  fi
3827else
3828  ac_cv_path_EGREP=$EGREP
3829fi
3830
3831   fi
3832fi
3833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3834$as_echo "$ac_cv_path_EGREP" >&6; }
3835 EGREP="$ac_cv_path_EGREP"
3836
3837
3838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3839$as_echo_n "checking for ANSI C header files... " >&6; }
3840if test "${ac_cv_header_stdc+set}" = set; then :
3841  $as_echo_n "(cached) " >&6
3842else
3843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3844/* end confdefs.h.  */
3845#include <stdlib.h>
3846#include <stdarg.h>
3847#include <string.h>
3848#include <float.h>
3849
3850int
3851main ()
3852{
3853
3854  ;
3855  return 0;
3856}
3857_ACEOF
3858if ac_fn_c_try_compile "$LINENO"; then :
3859  ac_cv_header_stdc=yes
3860else
3861  ac_cv_header_stdc=no
3862fi
3863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3864
3865if test $ac_cv_header_stdc = yes; then
3866  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868/* end confdefs.h.  */
3869#include <string.h>
3870
3871_ACEOF
3872if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3873  $EGREP "memchr" >/dev/null 2>&1; then :
3874
3875else
3876  ac_cv_header_stdc=no
3877fi
3878rm -f conftest*
3879
3880fi
3881
3882if test $ac_cv_header_stdc = yes; then
3883  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885/* end confdefs.h.  */
3886#include <stdlib.h>
3887
3888_ACEOF
3889if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3890  $EGREP "free" >/dev/null 2>&1; then :
3891
3892else
3893  ac_cv_header_stdc=no
3894fi
3895rm -f conftest*
3896
3897fi
3898
3899if test $ac_cv_header_stdc = yes; then
3900  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3901  if test "$cross_compiling" = yes; then :
3902  :
3903else
3904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905/* end confdefs.h.  */
3906#include <ctype.h>
3907#include <stdlib.h>
3908#if ((' ' & 0x0FF) == 0x020)
3909# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3910# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3911#else
3912# define ISLOWER(c) \
3913		   (('a' <= (c) && (c) <= 'i') \
3914		     || ('j' <= (c) && (c) <= 'r') \
3915		     || ('s' <= (c) && (c) <= 'z'))
3916# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3917#endif
3918
3919#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3920int
3921main ()
3922{
3923  int i;
3924  for (i = 0; i < 256; i++)
3925    if (XOR (islower (i), ISLOWER (i))
3926	|| toupper (i) != TOUPPER (i))
3927      return 2;
3928  return 0;
3929}
3930_ACEOF
3931if ac_fn_c_try_run "$LINENO"; then :
3932
3933else
3934  ac_cv_header_stdc=no
3935fi
3936rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3937  conftest.$ac_objext conftest.beam conftest.$ac_ext
3938fi
3939
3940fi
3941fi
3942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3943$as_echo "$ac_cv_header_stdc" >&6; }
3944if test $ac_cv_header_stdc = yes; then
3945
3946$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3947
3948fi
3949
3950# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3951for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3952		  inttypes.h stdint.h unistd.h
3953do :
3954  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3955ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3956"
3957if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3958  cat >>confdefs.h <<_ACEOF
3959#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3960_ACEOF
3961
3962fi
3963
3964done
3965
3966
3967
3968  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3969if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3970  MINIX=yes
3971else
3972  MINIX=
3973fi
3974
3975
3976  if test "$MINIX" = yes; then
3977
3978$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3979
3980
3981$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3982
3983
3984$as_echo "#define _MINIX 1" >>confdefs.h
3985
3986  fi
3987
3988
3989  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3990$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3991if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3992  $as_echo_n "(cached) " >&6
3993else
3994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995/* end confdefs.h.  */
3996
3997#	  define __EXTENSIONS__ 1
3998	  $ac_includes_default
3999int
4000main ()
4001{
4002
4003  ;
4004  return 0;
4005}
4006_ACEOF
4007if ac_fn_c_try_compile "$LINENO"; then :
4008  ac_cv_safe_to_define___extensions__=yes
4009else
4010  ac_cv_safe_to_define___extensions__=no
4011fi
4012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4013fi
4014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4015$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4016  test $ac_cv_safe_to_define___extensions__ = yes &&
4017    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4018
4019  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4020
4021  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4022
4023  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4024
4025  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4026
4027
4028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4029$as_echo_n "checking for inline... " >&6; }
4030if test "${ac_cv_c_inline+set}" = set; then :
4031  $as_echo_n "(cached) " >&6
4032else
4033  ac_cv_c_inline=no
4034for ac_kw in inline __inline__ __inline; do
4035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4036/* end confdefs.h.  */
4037#ifndef __cplusplus
4038typedef int foo_t;
4039static $ac_kw foo_t static_foo () {return 0; }
4040$ac_kw foo_t foo () {return 0; }
4041#endif
4042
4043_ACEOF
4044if ac_fn_c_try_compile "$LINENO"; then :
4045  ac_cv_c_inline=$ac_kw
4046fi
4047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4048  test "$ac_cv_c_inline" != no && break
4049done
4050
4051fi
4052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4053$as_echo "$ac_cv_c_inline" >&6; }
4054
4055case $ac_cv_c_inline in
4056  inline | yes) ;;
4057  *)
4058    case $ac_cv_c_inline in
4059      no) ac_val=;;
4060      *) ac_val=$ac_cv_c_inline;;
4061    esac
4062    cat >>confdefs.h <<_ACEOF
4063#ifndef __cplusplus
4064#define inline $ac_val
4065#endif
4066_ACEOF
4067    ;;
4068esac
4069
4070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4071$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4072if test "${ac_cv_c_const+set}" = set; then :
4073  $as_echo_n "(cached) " >&6
4074else
4075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076/* end confdefs.h.  */
4077
4078int
4079main ()
4080{
4081/* FIXME: Include the comments suggested by Paul. */
4082#ifndef __cplusplus
4083  /* Ultrix mips cc rejects this.  */
4084  typedef int charset[2];
4085  const charset cs;
4086  /* SunOS 4.1.1 cc rejects this.  */
4087  char const *const *pcpcc;
4088  char **ppc;
4089  /* NEC SVR4.0.2 mips cc rejects this.  */
4090  struct point {int x, y;};
4091  static struct point const zero = {0,0};
4092  /* AIX XL C 1.02.0.0 rejects this.
4093     It does not let you subtract one const X* pointer from another in
4094     an arm of an if-expression whose if-part is not a constant
4095     expression */
4096  const char *g = "string";
4097  pcpcc = &g + (g ? g-g : 0);
4098  /* HPUX 7.0 cc rejects these. */
4099  ++pcpcc;
4100  ppc = (char**) pcpcc;
4101  pcpcc = (char const *const *) ppc;
4102  { /* SCO 3.2v4 cc rejects this.  */
4103    char *t;
4104    char const *s = 0 ? (char *) 0 : (char const *) 0;
4105
4106    *t++ = 0;
4107    if (s) return 0;
4108  }
4109  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4110    int x[] = {25, 17};
4111    const int *foo = &x[0];
4112    ++foo;
4113  }
4114  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4115    typedef const int *iptr;
4116    iptr p = 0;
4117    ++p;
4118  }
4119  { /* AIX XL C 1.02.0.0 rejects this saying
4120       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4121    struct s { int j; const int *ap[3]; };
4122    struct s *b; b->j = 5;
4123  }
4124  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4125    const int foo = 10;
4126    if (!foo) return 0;
4127  }
4128  return !cs[0] && !zero.x;
4129#endif
4130
4131  ;
4132  return 0;
4133}
4134_ACEOF
4135if ac_fn_c_try_compile "$LINENO"; then :
4136  ac_cv_c_const=yes
4137else
4138  ac_cv_c_const=no
4139fi
4140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4141fi
4142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4143$as_echo "$ac_cv_c_const" >&6; }
4144if test $ac_cv_c_const = no; then
4145
4146$as_echo "#define const /**/" >>confdefs.h
4147
4148fi
4149
4150ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4151if test "x$ac_cv_type_size_t" = x""yes; then :
4152
4153else
4154
4155cat >>confdefs.h <<_ACEOF
4156#define size_t unsigned int
4157_ACEOF
4158
4159fi
4160
4161ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4162if test "x$ac_cv_type_off_t" = x""yes; then :
4163
4164else
4165
4166cat >>confdefs.h <<_ACEOF
4167#define off_t long int
4168_ACEOF
4169
4170fi
4171
4172
4173# Check for Darwin, which needs extra cpp and linker flags.
4174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uname" >&5
4175$as_echo_n "checking for uname... " >&6; }
4176if test "${ne_cv_os_uname+set}" = set; then :
4177  $as_echo_n "(cached) " >&6
4178else
4179
4180 ne_cv_os_uname=`uname -s 2>/dev/null`
4181
4182fi
4183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_os_uname" >&5
4184$as_echo "$ne_cv_os_uname" >&6; }
4185
4186if test "$ne_cv_os_uname" = "Darwin"; then
4187  CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
4188  LDFLAGS="$LDFLAGS -flat_namespace"
4189  # poll has various issues in various Darwin releases
4190  if test x${ac_cv_func_poll+set} != xset; then
4191    ac_cv_func_poll=no
4192  fi
4193fi
4194
4195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4196$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4197set x ${MAKE-make}
4198ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4199if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4200  $as_echo_n "(cached) " >&6
4201else
4202  cat >conftest.make <<\_ACEOF
4203SHELL = /bin/sh
4204all:
4205	@echo '@@@%%%=$(MAKE)=@@@%%%'
4206_ACEOF
4207# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4208case `${MAKE-make} -f conftest.make 2>/dev/null` in
4209  *@@@%%%=?*=@@@%%%*)
4210    eval ac_cv_prog_make_${ac_make}_set=yes;;
4211  *)
4212    eval ac_cv_prog_make_${ac_make}_set=no;;
4213esac
4214rm -f conftest.make
4215fi
4216if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4218$as_echo "yes" >&6; }
4219  SET_MAKE=
4220else
4221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4222$as_echo "no" >&6; }
4223  SET_MAKE="MAKE=${MAKE-make}"
4224fi
4225
4226
4227# The cast to long int works around a bug in the HP C Compiler
4228# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4229# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4230# This bug is HP SR number 8606223364.
4231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
4232$as_echo_n "checking size of int... " >&6; }
4233if test "${ac_cv_sizeof_int+set}" = set; then :
4234  $as_echo_n "(cached) " >&6
4235else
4236  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
4237
4238else
4239  if test "$ac_cv_type_int" = yes; then
4240     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4241$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4242as_fn_error 77 "cannot compute sizeof (int)
4243See \`config.log' for more details" "$LINENO" 5; }
4244   else
4245     ac_cv_sizeof_int=0
4246   fi
4247fi
4248
4249fi
4250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
4251$as_echo "$ac_cv_sizeof_int" >&6; }
4252
4253
4254
4255cat >>confdefs.h <<_ACEOF
4256#define SIZEOF_INT $ac_cv_sizeof_int
4257_ACEOF
4258
4259
4260# The cast to long int works around a bug in the HP C Compiler
4261# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4262# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4263# This bug is HP SR number 8606223364.
4264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
4265$as_echo_n "checking size of long... " >&6; }
4266if test "${ac_cv_sizeof_long+set}" = set; then :
4267  $as_echo_n "(cached) " >&6
4268else
4269  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
4270
4271else
4272  if test "$ac_cv_type_long" = yes; then
4273     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4274$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4275as_fn_error 77 "cannot compute sizeof (long)
4276See \`config.log' for more details" "$LINENO" 5; }
4277   else
4278     ac_cv_sizeof_long=0
4279   fi
4280fi
4281
4282fi
4283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
4284$as_echo "$ac_cv_sizeof_long" >&6; }
4285
4286
4287
4288cat >>confdefs.h <<_ACEOF
4289#define SIZEOF_LONG $ac_cv_sizeof_long
4290_ACEOF
4291
4292
4293# The cast to long int works around a bug in the HP C Compiler
4294# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4295# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4296# This bug is HP SR number 8606223364.
4297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
4298$as_echo_n "checking size of long long... " >&6; }
4299if test "${ac_cv_sizeof_long_long+set}" = set; then :
4300  $as_echo_n "(cached) " >&6
4301else
4302  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
4303
4304else
4305  if test "$ac_cv_type_long_long" = yes; then
4306     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4308as_fn_error 77 "cannot compute sizeof (long long)
4309See \`config.log' for more details" "$LINENO" 5; }
4310   else
4311     ac_cv_sizeof_long_long=0
4312   fi
4313fi
4314
4315fi
4316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
4317$as_echo "$ac_cv_sizeof_long_long" >&6; }
4318
4319
4320
4321cat >>confdefs.h <<_ACEOF
4322#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4323_ACEOF
4324
4325
4326if test "$GCC" = "yes"; then
4327  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc -Wformat -Werror sanity" >&5
4328$as_echo_n "checking for gcc -Wformat -Werror sanity... " >&6; }
4329if test "${ne_cv_cc_werror+set}" = set; then :
4330  $as_echo_n "(cached) " >&6
4331else
4332
4333  # See whether a simple test program will compile without errors.
4334  ne_save_CPPFLAGS=$CPPFLAGS
4335  CPPFLAGS="$CPPFLAGS -Wformat -Werror"
4336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337/* end confdefs.h.  */
4338#include <sys/types.h>
4339#include <stdio.h>
4340int
4341main ()
4342{
4343int i = 42; printf("%d", i);
4344  ;
4345  return 0;
4346}
4347_ACEOF
4348if ac_fn_c_try_compile "$LINENO"; then :
4349  ne_cv_cc_werror=yes
4350else
4351  ne_cv_cc_werror=no
4352fi
4353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4354  CPPFLAGS=$ne_save_CPPFLAGS
4355fi
4356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_cc_werror" >&5
4357$as_echo "$ne_cv_cc_werror" >&6; }
4358  ne_fmt_trycompile=$ne_cv_cc_werror
4359else
4360  ne_fmt_trycompile=no
4361fi
4362
4363
4364
4365# These checks are done whether or not the bundled neon build
4366# is used.
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381for ac_header in errno.h stdarg.h string.h stdlib.h
4382do :
4383  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4384ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4385if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4386  cat >>confdefs.h <<_ACEOF
4387#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4388_ACEOF
4389
4390fi
4391
4392done
4393
4394
4395
4396
4397
4398
4399# The cast to long int works around a bug in the HP C Compiler
4400# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4401# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4402# This bug is HP SR number 8606223364.
4403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
4404$as_echo_n "checking size of size_t... " >&6; }
4405if test "${ac_cv_sizeof_size_t+set}" = set; then :
4406  $as_echo_n "(cached) " >&6
4407else
4408  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default
4409
4410"; then :
4411
4412else
4413  if test "$ac_cv_type_size_t" = yes; then
4414     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4415$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4416as_fn_error 77 "cannot compute sizeof (size_t)
4417See \`config.log' for more details" "$LINENO" 5; }
4418   else
4419     ac_cv_sizeof_size_t=0
4420   fi
4421fi
4422
4423fi
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
4425$as_echo "$ac_cv_sizeof_size_t" >&6; }
4426
4427
4428
4429cat >>confdefs.h <<_ACEOF
4430#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
4431_ACEOF
4432
4433
4434
4435
4436
4437
4438
4439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print size_t" >&5
4440$as_echo_n "checking how to print size_t... " >&6; }
4441if test "${ne_cv_fmt_size_t+set}" = set; then :
4442  $as_echo_n "(cached) " >&6
4443else
4444
4445ne_cv_fmt_size_t=none
4446if test $ne_fmt_trycompile = yes; then
4447  oflags="$CPPFLAGS"
4448  # Consider format string mismatches as errors
4449  CPPFLAGS="$CPPFLAGS -Wformat -Werror"
4450    for str in u lu llu; do
4451    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452/* end confdefs.h.  */
4453#include <sys/types.h>
4454
4455#include <stdio.h>
4456int
4457main ()
4458{
4459size_t i = 1; printf("%$str", i);
4460  ;
4461  return 0;
4462}
4463_ACEOF
4464if ac_fn_c_try_compile "$LINENO"; then :
4465  ne_cv_fmt_size_t=$str; break
4466fi
4467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4468  done
4469  CPPFLAGS=$oflags
4470else
4471  # Best guess. Don't have to be too precise since we probably won't
4472  # get a warning message anyway.
4473  case $ac_cv_sizeof_size_t in
4474  $ac_cv_sizeof_int) ne_cv_fmt_size_t="u" ;;
4475  $ac_cv_sizeof_long) ne_cv_fmt_size_t="lu" ;;
4476  $ac_cv_sizeof_long_long) ne_cv_fmt_size_t="llu" ;;
4477  esac
4478fi
4479
4480fi
4481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_size_t" >&5
4482$as_echo "$ne_cv_fmt_size_t" >&6; }
4483
4484if test "x$ne_cv_fmt_size_t" = "xnone"; then
4485  as_fn_error $? "format string for size_t not found" "$LINENO" 5
4486fi
4487
4488
4489cat >>confdefs.h <<_ACEOF
4490#define NE_FMT_SIZE_T "$ne_cv_fmt_size_t"
4491_ACEOF
4492
4493
4494
4495
4496
4497# The cast to long int works around a bug in the HP C Compiler
4498# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4499# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4500# This bug is HP SR number 8606223364.
4501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
4502$as_echo_n "checking size of off_t... " >&6; }
4503if test "${ac_cv_sizeof_off_t+set}" = set; then :
4504  $as_echo_n "(cached) " >&6
4505else
4506  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default
4507
4508"; then :
4509
4510else
4511  if test "$ac_cv_type_off_t" = yes; then
4512     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4513$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4514as_fn_error 77 "cannot compute sizeof (off_t)
4515See \`config.log' for more details" "$LINENO" 5; }
4516   else
4517     ac_cv_sizeof_off_t=0
4518   fi
4519fi
4520
4521fi
4522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
4523$as_echo "$ac_cv_sizeof_off_t" >&6; }
4524
4525
4526
4527cat >>confdefs.h <<_ACEOF
4528#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
4529_ACEOF
4530
4531
4532
4533
4534
4535
4536
4537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print off_t" >&5
4538$as_echo_n "checking how to print off_t... " >&6; }
4539if test "${ne_cv_fmt_off_t+set}" = set; then :
4540  $as_echo_n "(cached) " >&6
4541else
4542
4543ne_cv_fmt_off_t=none
4544if test $ne_fmt_trycompile = yes; then
4545  oflags="$CPPFLAGS"
4546  # Consider format string mismatches as errors
4547  CPPFLAGS="$CPPFLAGS -Wformat -Werror"
4548    for str in d ld lld; do
4549    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4550/* end confdefs.h.  */
4551#include <sys/types.h>
4552
4553#include <stdio.h>
4554int
4555main ()
4556{
4557off_t i = 1; printf("%$str", i);
4558  ;
4559  return 0;
4560}
4561_ACEOF
4562if ac_fn_c_try_compile "$LINENO"; then :
4563  ne_cv_fmt_off_t=$str; break
4564fi
4565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4566  done
4567  CPPFLAGS=$oflags
4568else
4569  # Best guess. Don't have to be too precise since we probably won't
4570  # get a warning message anyway.
4571  case $ac_cv_sizeof_off_t in
4572  $ac_cv_sizeof_int) ne_cv_fmt_off_t="d" ;;
4573  $ac_cv_sizeof_long) ne_cv_fmt_off_t="ld" ;;
4574  $ac_cv_sizeof_long_long) ne_cv_fmt_off_t="lld" ;;
4575  esac
4576fi
4577
4578fi
4579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_off_t" >&5
4580$as_echo "$ne_cv_fmt_off_t" >&6; }
4581
4582if test "x$ne_cv_fmt_off_t" = "xnone"; then
4583  as_fn_error $? "format string for off_t not found" "$LINENO" 5
4584fi
4585
4586
4587cat >>confdefs.h <<_ACEOF
4588#define NE_FMT_OFF_T "$ne_cv_fmt_off_t"
4589_ACEOF
4590
4591
4592
4593
4594
4595
4596# The cast to long int works around a bug in the HP C Compiler
4597# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4598# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4599# This bug is HP SR number 8606223364.
4600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
4601$as_echo_n "checking size of ssize_t... " >&6; }
4602if test "${ac_cv_sizeof_ssize_t+set}" = set; then :
4603  $as_echo_n "(cached) " >&6
4604else
4605  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t"        "$ac_includes_default
4606
4607"; then :
4608
4609else
4610  if test "$ac_cv_type_ssize_t" = yes; then
4611     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4612$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4613as_fn_error 77 "cannot compute sizeof (ssize_t)
4614See \`config.log' for more details" "$LINENO" 5; }
4615   else
4616     ac_cv_sizeof_ssize_t=0
4617   fi
4618fi
4619
4620fi
4621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
4622$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
4623
4624
4625
4626cat >>confdefs.h <<_ACEOF
4627#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
4628_ACEOF
4629
4630
4631
4632
4633
4634
4635
4636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print ssize_t" >&5
4637$as_echo_n "checking how to print ssize_t... " >&6; }
4638if test "${ne_cv_fmt_ssize_t+set}" = set; then :
4639  $as_echo_n "(cached) " >&6
4640else
4641
4642ne_cv_fmt_ssize_t=none
4643if test $ne_fmt_trycompile = yes; then
4644  oflags="$CPPFLAGS"
4645  # Consider format string mismatches as errors
4646  CPPFLAGS="$CPPFLAGS -Wformat -Werror"
4647    for str in d ld lld; do
4648    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4649/* end confdefs.h.  */
4650#include <sys/types.h>
4651
4652#include <stdio.h>
4653int
4654main ()
4655{
4656ssize_t i = 1; printf("%$str", i);
4657  ;
4658  return 0;
4659}
4660_ACEOF
4661if ac_fn_c_try_compile "$LINENO"; then :
4662  ne_cv_fmt_ssize_t=$str; break
4663fi
4664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4665  done
4666  CPPFLAGS=$oflags
4667else
4668  # Best guess. Don't have to be too precise since we probably won't
4669  # get a warning message anyway.
4670  case $ac_cv_sizeof_ssize_t in
4671  $ac_cv_sizeof_int) ne_cv_fmt_ssize_t="d" ;;
4672  $ac_cv_sizeof_long) ne_cv_fmt_ssize_t="ld" ;;
4673  $ac_cv_sizeof_long_long) ne_cv_fmt_ssize_t="lld" ;;
4674  esac
4675fi
4676
4677fi
4678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_ssize_t" >&5
4679$as_echo "$ne_cv_fmt_ssize_t" >&6; }
4680
4681if test "x$ne_cv_fmt_ssize_t" = "xnone"; then
4682  as_fn_error $? "format string for ssize_t not found" "$LINENO" 5
4683fi
4684
4685
4686cat >>confdefs.h <<_ACEOF
4687#define NE_FMT_SSIZE_T "$ne_cv_fmt_ssize_t"
4688_ACEOF
4689
4690
4691
4692
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4694$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4695if test "${ac_cv_c_bigendian+set}" = set; then :
4696  $as_echo_n "(cached) " >&6
4697else
4698  ac_cv_c_bigendian=unknown
4699    # See if we're dealing with a universal compiler.
4700    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701/* end confdefs.h.  */
4702#ifndef __APPLE_CC__
4703	       not a universal capable compiler
4704	     #endif
4705	     typedef int dummy;
4706
4707_ACEOF
4708if ac_fn_c_try_compile "$LINENO"; then :
4709
4710	# Check for potential -arch flags.  It is not universal unless
4711	# there are at least two -arch flags with different values.
4712	ac_arch=
4713	ac_prev=
4714	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4715	 if test -n "$ac_prev"; then
4716	   case $ac_word in
4717	     i?86 | x86_64 | ppc | ppc64)
4718	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4719		 ac_arch=$ac_word
4720	       else
4721		 ac_cv_c_bigendian=universal
4722		 break
4723	       fi
4724	       ;;
4725	   esac
4726	   ac_prev=
4727	 elif test "x$ac_word" = "x-arch"; then
4728	   ac_prev=arch
4729	 fi
4730       done
4731fi
4732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4733    if test $ac_cv_c_bigendian = unknown; then
4734      # See if sys/param.h defines the BYTE_ORDER macro.
4735      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736/* end confdefs.h.  */
4737#include <sys/types.h>
4738	     #include <sys/param.h>
4739
4740int
4741main ()
4742{
4743#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4744		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4745		     && LITTLE_ENDIAN)
4746	      bogus endian macros
4747	     #endif
4748
4749  ;
4750  return 0;
4751}
4752_ACEOF
4753if ac_fn_c_try_compile "$LINENO"; then :
4754  # It does; now see whether it defined to BIG_ENDIAN or not.
4755	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756/* end confdefs.h.  */
4757#include <sys/types.h>
4758		#include <sys/param.h>
4759
4760int
4761main ()
4762{
4763#if BYTE_ORDER != BIG_ENDIAN
4764		 not big endian
4765		#endif
4766
4767  ;
4768  return 0;
4769}
4770_ACEOF
4771if ac_fn_c_try_compile "$LINENO"; then :
4772  ac_cv_c_bigendian=yes
4773else
4774  ac_cv_c_bigendian=no
4775fi
4776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4777fi
4778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4779    fi
4780    if test $ac_cv_c_bigendian = unknown; then
4781      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4782      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4783/* end confdefs.h.  */
4784#include <limits.h>
4785
4786int
4787main ()
4788{
4789#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4790	      bogus endian macros
4791	     #endif
4792
4793  ;
4794  return 0;
4795}
4796_ACEOF
4797if ac_fn_c_try_compile "$LINENO"; then :
4798  # It does; now see whether it defined to _BIG_ENDIAN or not.
4799	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4800/* end confdefs.h.  */
4801#include <limits.h>
4802
4803int
4804main ()
4805{
4806#ifndef _BIG_ENDIAN
4807		 not big endian
4808		#endif
4809
4810  ;
4811  return 0;
4812}
4813_ACEOF
4814if ac_fn_c_try_compile "$LINENO"; then :
4815  ac_cv_c_bigendian=yes
4816else
4817  ac_cv_c_bigendian=no
4818fi
4819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4820fi
4821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4822    fi
4823    if test $ac_cv_c_bigendian = unknown; then
4824      # Compile a test program.
4825      if test "$cross_compiling" = yes; then :
4826  # Try to guess by grepping values from an object file.
4827	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4828/* end confdefs.h.  */
4829short int ascii_mm[] =
4830		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4831		short int ascii_ii[] =
4832		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4833		int use_ascii (int i) {
4834		  return ascii_mm[i] + ascii_ii[i];
4835		}
4836		short int ebcdic_ii[] =
4837		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4838		short int ebcdic_mm[] =
4839		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4840		int use_ebcdic (int i) {
4841		  return ebcdic_mm[i] + ebcdic_ii[i];
4842		}
4843		extern int foo;
4844
4845int
4846main ()
4847{
4848return use_ascii (foo) == use_ebcdic (foo);
4849  ;
4850  return 0;
4851}
4852_ACEOF
4853if ac_fn_c_try_compile "$LINENO"; then :
4854  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4855	      ac_cv_c_bigendian=yes
4856	    fi
4857	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4858	      if test "$ac_cv_c_bigendian" = unknown; then
4859		ac_cv_c_bigendian=no
4860	      else
4861		# finding both strings is unlikely to happen, but who knows?
4862		ac_cv_c_bigendian=unknown
4863	      fi
4864	    fi
4865fi
4866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4867else
4868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869/* end confdefs.h.  */
4870$ac_includes_default
4871int
4872main ()
4873{
4874
4875	     /* Are we little or big endian?  From Harbison&Steele.  */
4876	     union
4877	     {
4878	       long int l;
4879	       char c[sizeof (long int)];
4880	     } u;
4881	     u.l = 1;
4882	     return u.c[sizeof (long int) - 1] == 1;
4883
4884  ;
4885  return 0;
4886}
4887_ACEOF
4888if ac_fn_c_try_run "$LINENO"; then :
4889  ac_cv_c_bigendian=no
4890else
4891  ac_cv_c_bigendian=yes
4892fi
4893rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4894  conftest.$ac_objext conftest.beam conftest.$ac_ext
4895fi
4896
4897    fi
4898fi
4899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4900$as_echo "$ac_cv_c_bigendian" >&6; }
4901 case $ac_cv_c_bigendian in #(
4902   yes)
4903     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4904;; #(
4905   no)
4906      ;; #(
4907   universal)
4908
4909$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4910
4911     ;; #(
4912   *)
4913     as_fn_error $? "unknown endianness
4914 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4915 esac
4916
4917ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
4918if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
4919  ac_have_decl=1
4920else
4921  ac_have_decl=0
4922fi
4923
4924cat >>confdefs.h <<_ACEOF
4925#define HAVE_DECL_STRERROR_R $ac_have_decl
4926_ACEOF
4927
4928for ac_func in strerror_r
4929do :
4930  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
4931if test "x$ac_cv_func_strerror_r" = x""yes; then :
4932  cat >>confdefs.h <<_ACEOF
4933#define HAVE_STRERROR_R 1
4934_ACEOF
4935
4936fi
4937done
4938
4939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
4940$as_echo_n "checking whether strerror_r returns char *... " >&6; }
4941if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
4942  $as_echo_n "(cached) " >&6
4943else
4944
4945    ac_cv_func_strerror_r_char_p=no
4946    if test $ac_cv_have_decl_strerror_r = yes; then
4947      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4948/* end confdefs.h.  */
4949$ac_includes_default
4950int
4951main ()
4952{
4953
4954	  char buf[100];
4955	  char x = *strerror_r (0, buf, sizeof buf);
4956	  char *p = strerror_r (0, buf, sizeof buf);
4957	  return !p || x;
4958
4959  ;
4960  return 0;
4961}
4962_ACEOF
4963if ac_fn_c_try_compile "$LINENO"; then :
4964  ac_cv_func_strerror_r_char_p=yes
4965fi
4966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4967    else
4968      # strerror_r is not declared.  Choose between
4969      # systems that have relatively inaccessible declarations for the
4970      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
4971      # former has a strerror_r that returns char*, while the latter
4972      # has a strerror_r that returns `int'.
4973      # This test should segfault on the DEC system.
4974      if test "$cross_compiling" = yes; then :
4975  :
4976else
4977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4978/* end confdefs.h.  */
4979$ac_includes_default
4980	extern char *strerror_r ();
4981int
4982main ()
4983{
4984char buf[100];
4985	  char x = *strerror_r (0, buf, sizeof buf);
4986	  return ! isalpha (x);
4987  ;
4988  return 0;
4989}
4990_ACEOF
4991if ac_fn_c_try_run "$LINENO"; then :
4992  ac_cv_func_strerror_r_char_p=yes
4993fi
4994rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4995  conftest.$ac_objext conftest.beam conftest.$ac_ext
4996fi
4997
4998    fi
4999
5000fi
5001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
5002$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
5003if test $ac_cv_func_strerror_r_char_p = yes; then
5004
5005$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
5006
5007fi
5008
5009
5010for ac_func in snprintf vsnprintf
5011do :
5012  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5013ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5014if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5015  cat >>confdefs.h <<_ACEOF
5016#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5017_ACEOF
5018
5019else
5020
5021   ne_save_LIBS=$LIBS
5022   LIBS="$LIBS -lm"    # Always need -lm
5023   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trio_vsnprintf in -ltrio" >&5
5024$as_echo_n "checking for trio_vsnprintf in -ltrio... " >&6; }
5025if test "${ac_cv_lib_trio_trio_vsnprintf+set}" = set; then :
5026  $as_echo_n "(cached) " >&6
5027else
5028  ac_check_lib_save_LIBS=$LIBS
5029LIBS="-ltrio  $LIBS"
5030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5031/* end confdefs.h.  */
5032
5033/* Override any GCC internal prototype to avoid an error.
5034   Use char because int might match the return type of a GCC
5035   builtin and then its argument prototype would still apply.  */
5036#ifdef __cplusplus
5037extern "C"
5038#endif
5039char trio_vsnprintf ();
5040int
5041main ()
5042{
5043return trio_vsnprintf ();
5044  ;
5045  return 0;
5046}
5047_ACEOF
5048if ac_fn_c_try_link "$LINENO"; then :
5049  ac_cv_lib_trio_trio_vsnprintf=yes
5050else
5051  ac_cv_lib_trio_trio_vsnprintf=no
5052fi
5053rm -f core conftest.err conftest.$ac_objext \
5054    conftest$ac_exeext conftest.$ac_ext
5055LIBS=$ac_check_lib_save_LIBS
5056fi
5057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_trio_trio_vsnprintf" >&5
5058$as_echo "$ac_cv_lib_trio_trio_vsnprintf" >&6; }
5059if test "x$ac_cv_lib_trio_trio_vsnprintf" = x""yes; then :
5060  for ac_header in trio.h
5061do :
5062  ac_fn_c_check_header_mongrel "$LINENO" "trio.h" "ac_cv_header_trio_h" "$ac_includes_default"
5063if test "x$ac_cv_header_trio_h" = x""yes; then :
5064  cat >>confdefs.h <<_ACEOF
5065#define HAVE_TRIO_H 1
5066_ACEOF
5067
5068else
5069  as_fn_error $? "trio installation problem? libtrio found but not trio.h" "$LINENO" 5
5070fi
5071
5072done
5073
5074    { $as_echo "$as_me:${as_lineno-$LINENO}: using trio printf replacement library" >&5
5075$as_echo "$as_me: using trio printf replacement library" >&6;}
5076    NEON_LIBS="$NEON_LIBS -ltrio -lm"
5077
5078$as_echo "#define HAVE_TRIO 1" >>confdefs.h
5079
5080else
5081  { $as_echo "$as_me:${as_lineno-$LINENO}: no vsnprintf/snprintf detected in C library" >&5
5082$as_echo "$as_me: no vsnprintf/snprintf detected in C library" >&6;}
5083    as_fn_error $? "Install the trio library from http://daniel.haxx.se/projects/trio/" "$LINENO" 5
5084fi
5085
5086   LIBS=$ne_save_LIBS
5087   break
5088
5089fi
5090done
5091
5092
5093
5094
5095
5096
5097
5098
5099for ac_header in sys/time.h limits.h sys/select.h arpa/inet.h libintl.h \
5100	signal.h sys/socket.h netinet/in.h netinet/tcp.h netdb.h sys/poll.h \
5101	sys/limits.h fcntl.h iconv.h
5102do :
5103  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5104ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5105/* netinet/tcp.h requires netinet/in.h on some platforms. */
5106#ifdef HAVE_NETINET_IN_H
5107#include <netinet/in.h>
5108#endif
5109"
5110if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5111  cat >>confdefs.h <<_ACEOF
5112#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5113_ACEOF
5114
5115fi
5116
5117done
5118
5119
5120
5121
5122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone global" >&5
5123$as_echo_n "checking for timezone global... " >&6; }
5124if test "${ne_cv_cc_timezone+set}" = set; then :
5125  $as_echo_n "(cached) " >&6
5126else
5127
5128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129/* end confdefs.h.  */
5130#include <sys/types.h>
5131#include <time.h>
5132int
5133main ()
5134{
5135time_t t = 0 - timezone; timezone = 1;
5136  ;
5137  return 0;
5138}
5139_ACEOF
5140if ac_fn_c_try_link "$LINENO"; then :
5141  ne_cv_cc_timezone=yes
5142else
5143  ne_cv_cc_timezone=no
5144fi
5145rm -f core conftest.err conftest.$ac_objext \
5146    conftest$ac_exeext conftest.$ac_ext
5147fi
5148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_cc_timezone" >&5
5149$as_echo "$ne_cv_cc_timezone" >&6; }
5150
5151if test "$ne_cv_cc_timezone" = "yes"; then
5152
5153$as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
5154
5155fi
5156
5157
5158
5159
5160if test -z "$ac_cv_sizeof_off_t"; then
5161
5162NE_FLAG_LFS=no
5163
5164ne_LFS_message="LFS support omitted: off_t size unknown!"
5165  { $as_echo "$as_me:${as_lineno-$LINENO}: LFS support omitted: off_t size unknown!" >&5
5166$as_echo "$as_me: LFS support omitted: off_t size unknown!" >&6;}
5167
5168elif test $ac_cv_sizeof_off_t != 4; then
5169
5170NE_FLAG_LFS=no
5171
5172ne_LFS_message="LFS support unnecessary, off_t is not 32-bit"
5173  { $as_echo "$as_me:${as_lineno-$LINENO}: LFS support unnecessary, off_t is not 32-bit" >&5
5174$as_echo "$as_me: LFS support unnecessary, off_t is not 32-bit" >&6;}
5175
5176   for ac_func in strtoll strtoq
5177do :
5178  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5179ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5180if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5181  cat >>confdefs.h <<_ACEOF
5182#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5183_ACEOF
5184 break
5185fi
5186done
5187
5188elif test -z "$ac_cv_sizeof_long_long"; then
5189
5190NE_FLAG_LFS=no
5191
5192ne_LFS_message="LFS support omitted: long long size unknown"
5193  { $as_echo "$as_me:${as_lineno-$LINENO}: LFS support omitted: long long size unknown" >&5
5194$as_echo "$as_me: LFS support omitted: long long size unknown" >&6;}
5195
5196elif test $ac_cv_sizeof_long_long != 8; then
5197
5198NE_FLAG_LFS=no
5199
5200ne_LFS_message="LFS support omitted: long long not 64-bit"
5201  { $as_echo "$as_me:${as_lineno-$LINENO}: LFS support omitted: long long not 64-bit" >&5
5202$as_echo "$as_me: LFS support omitted: long long not 64-bit" >&6;}
5203
5204else
5205   ne_save_CPPFLAGS=$CPPFLAGS
5206   CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
5207   ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
5208if test "x$ac_cv_type_off64_t" = x""yes; then :
5209
5210
5211
5212
5213
5214# The cast to long int works around a bug in the HP C Compiler
5215# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5216# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5217# This bug is HP SR number 8606223364.
5218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off64_t" >&5
5219$as_echo_n "checking size of off64_t... " >&6; }
5220if test "${ac_cv_sizeof_off64_t+set}" = set; then :
5221  $as_echo_n "(cached) " >&6
5222else
5223  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off64_t))" "ac_cv_sizeof_off64_t"        "$ac_includes_default
5224
5225"; then :
5226
5227else
5228  if test "$ac_cv_type_off64_t" = yes; then
5229     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5230$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5231as_fn_error 77 "cannot compute sizeof (off64_t)
5232See \`config.log' for more details" "$LINENO" 5; }
5233   else
5234     ac_cv_sizeof_off64_t=0
5235   fi
5236fi
5237
5238fi
5239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off64_t" >&5
5240$as_echo "$ac_cv_sizeof_off64_t" >&6; }
5241
5242
5243
5244cat >>confdefs.h <<_ACEOF
5245#define SIZEOF_OFF64_T $ac_cv_sizeof_off64_t
5246_ACEOF
5247
5248
5249
5250
5251
5252
5253
5254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print off64_t" >&5
5255$as_echo_n "checking how to print off64_t... " >&6; }
5256if test "${ne_cv_fmt_off64_t+set}" = set; then :
5257  $as_echo_n "(cached) " >&6
5258else
5259
5260ne_cv_fmt_off64_t=none
5261if test $ne_fmt_trycompile = yes; then
5262  oflags="$CPPFLAGS"
5263  # Consider format string mismatches as errors
5264  CPPFLAGS="$CPPFLAGS -Wformat -Werror"
5265    for str in d ld lld; do
5266    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5267/* end confdefs.h.  */
5268#include <sys/types.h>
5269
5270#include <stdio.h>
5271int
5272main ()
5273{
5274off64_t i = 1; printf("%$str", i);
5275  ;
5276  return 0;
5277}
5278_ACEOF
5279if ac_fn_c_try_compile "$LINENO"; then :
5280  ne_cv_fmt_off64_t=$str; break
5281fi
5282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5283  done
5284  CPPFLAGS=$oflags
5285else
5286  # Best guess. Don't have to be too precise since we probably won't
5287  # get a warning message anyway.
5288  case $ac_cv_sizeof_off64_t in
5289  $ac_cv_sizeof_int) ne_cv_fmt_off64_t="d" ;;
5290  $ac_cv_sizeof_long) ne_cv_fmt_off64_t="ld" ;;
5291  $ac_cv_sizeof_long_long) ne_cv_fmt_off64_t="lld" ;;
5292  esac
5293fi
5294
5295fi
5296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_off64_t" >&5
5297$as_echo "$ne_cv_fmt_off64_t" >&6; }
5298
5299if test "x$ne_cv_fmt_off64_t" = "xnone"; then
5300  as_fn_error $? "format string for off64_t not found" "$LINENO" 5
5301fi
5302
5303
5304cat >>confdefs.h <<_ACEOF
5305#define NE_FMT_OFF64_T "$ne_cv_fmt_off64_t"
5306_ACEOF
5307
5308
5309     ne_lfsok=no
5310     for ac_func in strtoll strtoq
5311do :
5312  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5313ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5314if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5315  cat >>confdefs.h <<_ACEOF
5316#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5317_ACEOF
5318 ne_lfsok=yes; break
5319fi
5320done
5321
5322     for ac_func in lseek64 fstat64
5323do :
5324  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5325ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5326if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5327  cat >>confdefs.h <<_ACEOF
5328#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5329_ACEOF
5330
5331else
5332  ne_lfsok=no; break
5333fi
5334done
5335
5336     if test x$ne_lfsok = xyes; then
5337
5338NE_FLAG_LFS=yes
5339
5340
5341$as_echo "#define NE_HAVE_LFS 1" >>confdefs.h
5342
5343ne_LFS_message="LFS (large file) support enabled"
5344  { $as_echo "$as_me:${as_lineno-$LINENO}: LFS (large file) support enabled" >&5
5345$as_echo "$as_me: LFS (large file) support enabled" >&6;}
5346
5347       NEON_CFLAGS="$NEON_CFLAGS -D_LARGEFILE64_SOURCE -DNE_LFS"
5348       ne_save_CPPFLAGS="$CPPFLAGS -DNE_LFS"
5349     else
5350
5351NE_FLAG_LFS=no
5352
5353ne_LFS_message="LFS support omitted: 64-bit support functions not found"
5354  { $as_echo "$as_me:${as_lineno-$LINENO}: LFS support omitted: 64-bit support functions not found" >&5
5355$as_echo "$as_me: LFS support omitted: 64-bit support functions not found" >&6;}
5356
5357     fi
5358else
5359
5360NE_FLAG_LFS=no
5361
5362ne_LFS_message="LFS support omitted: off64_t type not found"
5363  { $as_echo "$as_me:${as_lineno-$LINENO}: LFS support omitted: off64_t type not found" >&5
5364$as_echo "$as_me: LFS support omitted: off64_t type not found" >&6;}
5365
5366fi
5367
5368   CPPFLAGS=$ne_save_CPPFLAGS
5369fi
5370if test "$NE_FLAG_LFS" = "yes"; then
5371
5372cat >>confdefs.h <<_ACEOF
5373#define NE_FMT_NE_OFF_T NE_FMT_OFF64_T
5374_ACEOF
5375
5376else
5377   cat >>confdefs.h <<_ACEOF
5378#define NE_FMT_NE_OFF_T NE_FMT_OFF_T
5379_ACEOF
5380
5381fi
5382
5383
5384ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
5385if test "x$ac_cv_func_strcasecmp" = x""yes; then :
5386  $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
5387
5388else
5389  case " $LIBOBJS " in
5390  *" strcasecmp.$ac_objext "* ) ;;
5391  *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
5392 ;;
5393esac
5394
5395fi
5396
5397
5398
5399for ac_func in signal setvbuf setsockopt stpcpy poll fcntl getsockopt
5400do :
5401  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5402ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5403if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5404  cat >>confdefs.h <<_ACEOF
5405#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5406_ACEOF
5407
5408fi
5409done
5410
5411
5412if test "x${ac_cv_func_poll}${ac_cv_header_sys_poll_h}y" = "xyesyesy"; then
5413
5414$as_echo "#define NE_USE_POLL 1" >>confdefs.h
5415
5416fi
5417
5418if test "$ac_cv_func_stpcpy" = "yes"; then
5419  ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
5420if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
5421  ac_have_decl=1
5422else
5423  ac_have_decl=0
5424fi
5425
5426cat >>confdefs.h <<_ACEOF
5427#define HAVE_DECL_STPCPY $ac_have_decl
5428_ACEOF
5429
5430fi
5431
5432# Modern AIXes with the "Linux-like" libc have an undeclared stpcpy
5433
5434
5435# Unixware 7 can only link gethostbyname with -lnsl -lsocket
5436# Pick up -lsocket first, then the gethostbyname check will work.
5437# Haiku requires -lnetwork for socket functions.
5438
5439
5440
5441
5442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
5443$as_echo_n "checking for library containing socket... " >&6; }
5444if test "${ne_cv_libsfor_socket+set}" = set; then :
5445  $as_echo_n "(cached) " >&6
5446else
5447
5448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449/* end confdefs.h.  */
5450
5451int
5452main ()
5453{
5454socket();
5455  ;
5456  return 0;
5457}
5458_ACEOF
5459if ac_fn_c_try_link "$LINENO"; then :
5460  ne_cv_libsfor_socket="none needed"
5461else
5462
5463ne_sl_save_LIBS=$LIBS
5464ne_cv_libsfor_socket="not found"
5465for lib in socket inet ws2_32 network; do
5466    # The w32api libraries link using the stdcall calling convention.
5467    case ${lib}-${ne_cv_os_uname} in
5468    ws2_32-MINGW*) ne__code="__stdcall socket();" ;;
5469    *) ne__code="socket();" ;;
5470    esac
5471
5472    LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
5473    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5474/* end confdefs.h.  */
5475
5476int
5477main ()
5478{
5479$ne__code
5480  ;
5481  return 0;
5482}
5483_ACEOF
5484if ac_fn_c_try_link "$LINENO"; then :
5485  ne_cv_libsfor_socket="-l$lib"; break
5486fi
5487rm -f core conftest.err conftest.$ac_objext \
5488    conftest$ac_exeext conftest.$ac_ext
5489
5490done
5491LIBS=$ne_sl_save_LIBS
5492fi
5493rm -f core conftest.err conftest.$ac_objext \
5494    conftest$ac_exeext conftest.$ac_ext
5495fi
5496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_socket" >&5
5497$as_echo "$ne_cv_libsfor_socket" >&6; }
5498
5499if test "$ne_cv_libsfor_socket" = "not found"; then
5500   as_fn_error $? "could not find library containing socket" "$LINENO" 5
5501elif test "$ne_cv_libsfor_socket" = "none needed"; then
5502   :
5503else
5504   NEON_LIBS="$ne_cv_libsfor_socket $NEON_LIBS"
5505
5506fi
5507
5508# Enable getaddrinfo support if it, gai_strerror and inet_ntop are
5509# all available.
5510
5511
5512
5513
5514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
5515$as_echo_n "checking for library containing getaddrinfo... " >&6; }
5516if test "${ne_cv_libsfor_getaddrinfo+set}" = set; then :
5517  $as_echo_n "(cached) " >&6
5518else
5519
5520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521/* end confdefs.h.  */
5522
5523int
5524main ()
5525{
5526getaddrinfo();
5527  ;
5528  return 0;
5529}
5530_ACEOF
5531if ac_fn_c_try_link "$LINENO"; then :
5532  ne_cv_libsfor_getaddrinfo="none needed"
5533else
5534
5535ne_sl_save_LIBS=$LIBS
5536ne_cv_libsfor_getaddrinfo="not found"
5537for lib in nsl; do
5538    # The w32api libraries link using the stdcall calling convention.
5539    case ${lib}-${ne_cv_os_uname} in
5540    ws2_32-MINGW*) ne__code="__stdcall getaddrinfo();" ;;
5541    *) ne__code="getaddrinfo();" ;;
5542    esac
5543
5544    LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
5545    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546/* end confdefs.h.  */
5547
5548int
5549main ()
5550{
5551$ne__code
5552  ;
5553  return 0;
5554}
5555_ACEOF
5556if ac_fn_c_try_link "$LINENO"; then :
5557  ne_cv_libsfor_getaddrinfo="-l$lib"; break
5558fi
5559rm -f core conftest.err conftest.$ac_objext \
5560    conftest$ac_exeext conftest.$ac_ext
5561
5562done
5563LIBS=$ne_sl_save_LIBS
5564fi
5565rm -f core conftest.err conftest.$ac_objext \
5566    conftest$ac_exeext conftest.$ac_ext
5567fi
5568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_getaddrinfo" >&5
5569$as_echo "$ne_cv_libsfor_getaddrinfo" >&6; }
5570
5571if test "$ne_cv_libsfor_getaddrinfo" = "not found"; then
5572   ne_enable_gai=no
5573elif test "$ne_cv_libsfor_getaddrinfo" = "none needed"; then
5574   # HP-UX boxes commonly get into a state where getaddrinfo is present
5575   # but borked: http://marc.theaimsgroup.com/?l=apr-dev&m=107730955207120&w=2
5576   case x`uname -sr 2>/dev/null`y in
5577   xHP-UX*11.[01]*y)
5578      { $as_echo "$as_me:${as_lineno-$LINENO}: getaddrinfo support disabled on HP-UX 11.0x/11.1x" >&5
5579$as_echo "$as_me: getaddrinfo support disabled on HP-UX 11.0x/11.1x" >&6;} ;;
5580   *)
5581     ne_enable_gai=yes
5582
5583ne_cf_save_LIBS=$LIBS
5584LIBS="$LIBS $NEON_LIBS"
5585for ac_func in gai_strerror getnameinfo inet_ntop inet_pton
5586do :
5587  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5588ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5589if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5590  cat >>confdefs.h <<_ACEOF
5591#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5592_ACEOF
5593
5594else
5595  ne_enable_gai=no; break
5596fi
5597done
5598
5599LIBS=$ne_cf_save_LIBS ;;
5600   esac
5601
5602else
5603   NEON_LIBS="$ne_cv_libsfor_getaddrinfo $NEON_LIBS"
5604   # HP-UX boxes commonly get into a state where getaddrinfo is present
5605   # but borked: http://marc.theaimsgroup.com/?l=apr-dev&m=107730955207120&w=2
5606   case x`uname -sr 2>/dev/null`y in
5607   xHP-UX*11.[01]*y)
5608      { $as_echo "$as_me:${as_lineno-$LINENO}: getaddrinfo support disabled on HP-UX 11.0x/11.1x" >&5
5609$as_echo "$as_me: getaddrinfo support disabled on HP-UX 11.0x/11.1x" >&6;} ;;
5610   *)
5611     ne_enable_gai=yes
5612
5613ne_cf_save_LIBS=$LIBS
5614LIBS="$LIBS $NEON_LIBS"
5615for ac_func in gai_strerror getnameinfo inet_ntop inet_pton
5616do :
5617  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5618ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5619if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5620  cat >>confdefs.h <<_ACEOF
5621#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5622_ACEOF
5623
5624else
5625  ne_enable_gai=no; break
5626fi
5627done
5628
5629LIBS=$ne_cf_save_LIBS ;;
5630   esac
5631
5632fi
5633
5634if test $ne_enable_gai = yes; then
5635
5636NE_FLAG_IPV6=yes
5637
5638
5639$as_echo "#define NE_HAVE_IPV6 1" >>confdefs.h
5640
5641ne_IPV6_message="IPv6 support is enabled"
5642  { $as_echo "$as_me:${as_lineno-$LINENO}: IPv6 support is enabled" >&5
5643$as_echo "$as_me: IPv6 support is enabled" >&6;}
5644
5645
5646$as_echo "#define USE_GETADDRINFO 1" >>confdefs.h
5647
5648   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working AI_ADDRCONFIG" >&5
5649$as_echo_n "checking for working AI_ADDRCONFIG... " >&6; }
5650if test "${ne_cv_gai_addrconfig+set}" = set; then :
5651  $as_echo_n "(cached) " >&6
5652else
5653
5654   if test "$cross_compiling" = yes; then :
5655  ne_cv_gai_addrconfig=no
5656else
5657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658/* end confdefs.h.  */
5659#include <netdb.h>
5660#include <stdlib.h>
5661int
5662main ()
5663{
5664struct addrinfo hints = {0}, *result;
5665hints.ai_flags = AI_ADDRCONFIG;
5666if (getaddrinfo("localhost", NULL, &hints, &result) != 0) return 1;
5667  ;
5668  return 0;
5669}
5670_ACEOF
5671if ac_fn_c_try_run "$LINENO"; then :
5672  ne_cv_gai_addrconfig=yes
5673else
5674  ne_cv_gai_addrconfig=no
5675fi
5676rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5677  conftest.$ac_objext conftest.beam conftest.$ac_ext
5678fi
5679
5680fi
5681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_gai_addrconfig" >&5
5682$as_echo "$ne_cv_gai_addrconfig" >&6; }
5683   if test $ne_cv_gai_addrconfig = yes; then
5684
5685$as_echo "#define USE_GAI_ADDRCONFIG 1" >>confdefs.h
5686
5687   fi
5688else
5689   # Checks for non-getaddrinfo() based resolver interfaces.
5690   # QNX has gethostbyname in -lsocket. BeOS only has it in -lbind.
5691   # CygWin/Winsock2 has it in -lws2_32, allegedly.
5692   # Haiku requires -lnetwork for socket functions.
5693
5694
5695
5696
5697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
5698$as_echo_n "checking for library containing gethostbyname... " >&6; }
5699if test "${ne_cv_libsfor_gethostbyname+set}" = set; then :
5700  $as_echo_n "(cached) " >&6
5701else
5702
5703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5704/* end confdefs.h.  */
5705
5706int
5707main ()
5708{
5709gethostbyname();
5710  ;
5711  return 0;
5712}
5713_ACEOF
5714if ac_fn_c_try_link "$LINENO"; then :
5715  ne_cv_libsfor_gethostbyname="none needed"
5716else
5717
5718ne_sl_save_LIBS=$LIBS
5719ne_cv_libsfor_gethostbyname="not found"
5720for lib in socket nsl bind ws2_32 network; do
5721    # The w32api libraries link using the stdcall calling convention.
5722    case ${lib}-${ne_cv_os_uname} in
5723    ws2_32-MINGW*) ne__code="__stdcall gethostbyname();" ;;
5724    *) ne__code="gethostbyname();" ;;
5725    esac
5726
5727    LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
5728    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5729/* end confdefs.h.  */
5730
5731int
5732main ()
5733{
5734$ne__code
5735  ;
5736  return 0;
5737}
5738_ACEOF
5739if ac_fn_c_try_link "$LINENO"; then :
5740  ne_cv_libsfor_gethostbyname="-l$lib"; break
5741fi
5742rm -f core conftest.err conftest.$ac_objext \
5743    conftest$ac_exeext conftest.$ac_ext
5744
5745done
5746LIBS=$ne_sl_save_LIBS
5747fi
5748rm -f core conftest.err conftest.$ac_objext \
5749    conftest$ac_exeext conftest.$ac_ext
5750fi
5751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_gethostbyname" >&5
5752$as_echo "$ne_cv_libsfor_gethostbyname" >&6; }
5753
5754if test "$ne_cv_libsfor_gethostbyname" = "not found"; then
5755   as_fn_error $? "could not find library containing gethostbyname" "$LINENO" 5
5756elif test "$ne_cv_libsfor_gethostbyname" = "none needed"; then
5757   :
5758else
5759   NEON_LIBS="$ne_cv_libsfor_gethostbyname $NEON_LIBS"
5760
5761fi
5762
5763
5764
5765
5766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
5767$as_echo_n "checking for library containing hstrerror... " >&6; }
5768if test "${ne_cv_libsfor_hstrerror+set}" = set; then :
5769  $as_echo_n "(cached) " >&6
5770else
5771
5772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773/* end confdefs.h.  */
5774
5775int
5776main ()
5777{
5778hstrerror();
5779  ;
5780  return 0;
5781}
5782_ACEOF
5783if ac_fn_c_try_link "$LINENO"; then :
5784  ne_cv_libsfor_hstrerror="none needed"
5785else
5786
5787ne_sl_save_LIBS=$LIBS
5788ne_cv_libsfor_hstrerror="not found"
5789for lib in resolv; do
5790    # The w32api libraries link using the stdcall calling convention.
5791    case ${lib}-${ne_cv_os_uname} in
5792    ws2_32-MINGW*) ne__code="__stdcall hstrerror();" ;;
5793    *) ne__code="hstrerror();" ;;
5794    esac
5795
5796    LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
5797    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5798/* end confdefs.h.  */
5799
5800int
5801main ()
5802{
5803$ne__code
5804  ;
5805  return 0;
5806}
5807_ACEOF
5808if ac_fn_c_try_link "$LINENO"; then :
5809  ne_cv_libsfor_hstrerror="-l$lib"; break
5810fi
5811rm -f core conftest.err conftest.$ac_objext \
5812    conftest$ac_exeext conftest.$ac_ext
5813
5814done
5815LIBS=$ne_sl_save_LIBS
5816fi
5817rm -f core conftest.err conftest.$ac_objext \
5818    conftest$ac_exeext conftest.$ac_ext
5819fi
5820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_hstrerror" >&5
5821$as_echo "$ne_cv_libsfor_hstrerror" >&6; }
5822
5823if test "$ne_cv_libsfor_hstrerror" = "not found"; then
5824   :
5825elif test "$ne_cv_libsfor_hstrerror" = "none needed"; then
5826   :
5827else
5828   NEON_LIBS="$ne_cv_libsfor_hstrerror $NEON_LIBS"
5829
5830fi
5831
5832ne_cf_save_LIBS=$LIBS
5833LIBS="$LIBS $NEON_LIBS"
5834for ac_func in hstrerror
5835do :
5836  ac_fn_c_check_func "$LINENO" "hstrerror" "ac_cv_func_hstrerror"
5837if test "x$ac_cv_func_hstrerror" = x""yes; then :
5838  cat >>confdefs.h <<_ACEOF
5839#define HAVE_HSTRERROR 1
5840_ACEOF
5841
5842fi
5843done
5844
5845LIBS=$ne_cf_save_LIBS
5846   # Older Unixes don't declare h_errno.
5847   ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#include <netdb.h>
5848"
5849if test "x$ac_cv_have_decl_h_errno" = x""yes; then :
5850  ac_have_decl=1
5851else
5852  ac_have_decl=0
5853fi
5854
5855cat >>confdefs.h <<_ACEOF
5856#define HAVE_DECL_H_ERRNO $ac_have_decl
5857_ACEOF
5858
5859   ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
5860#ifdef HAVE_SYS_TYPES_H
5861# include <sys/types.h>
5862#endif
5863#ifdef HAVE_NETINET_IN_H
5864# include <netinet/in.h>
5865#endif
5866
5867"
5868if test "x$ac_cv_type_in_addr_t" = x""yes; then :
5869
5870else
5871
5872
5873$as_echo "#define in_addr_t unsigned int" >>confdefs.h
5874
5875fi
5876
5877fi
5878
5879ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
5880#ifdef HAVE_SYS_TYPES_H
5881# include <sys/types.h>
5882#endif
5883#ifdef HAVE_SYS_SOCKET_H
5884# include <sys/socket.h>
5885#endif
5886
5887"
5888if test "x$ac_cv_type_socklen_t" = x""yes; then :
5889
5890cat >>confdefs.h <<_ACEOF
5891#define HAVE_SOCKLEN_T 1
5892_ACEOF
5893
5894
5895else
5896  # Linux accept(2) says this should be size_t for SunOS 5... gah.
5897
5898$as_echo "#define socklen_t int" >>confdefs.h
5899
5900fi
5901
5902
5903ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
5904"
5905if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
5906
5907cat >>confdefs.h <<_ACEOF
5908#define HAVE_STRUCT_TM_TM_GMTOFF 1
5909_ACEOF
5910
5911
5912fi
5913ac_fn_c_check_member "$LINENO" "struct tm" "__tm_gmtoff" "ac_cv_member_struct_tm___tm_gmtoff" "#include <time.h>
5914"
5915if test "x$ac_cv_member_struct_tm___tm_gmtoff" = x""yes; then :
5916
5917cat >>confdefs.h <<_ACEOF
5918#define HAVE_STRUCT_TM___TM_GMTOFF 1
5919_ACEOF
5920
5921
5922fi
5923
5924
5925if test ${ac_cv_member_struct_tm_tm_gmtoff}${ac_cv_member_struct_tm___tm_gmtoff}${ne_cv_cc_timezone} = nonono; then
5926  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no timezone handling in date parsing on this platform" >&5
5927$as_echo "$as_me: WARNING: no timezone handling in date parsing on this platform" >&2;}
5928fi
5929
5930
5931
5932
5933# Check whether --with-zlib was given.
5934if test "${with_zlib+set}" = set; then :
5935  withval=$with_zlib; ne_use_zlib=$withval
5936else
5937  ne_use_zlib=yes
5938fi
5939
5940
5941if test "$ne_use_zlib" = "yes"; then
5942    ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5943if test "x$ac_cv_header_zlib_h" = x""yes; then :
5944
5945  	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
5946$as_echo_n "checking for inflate in -lz... " >&6; }
5947if test "${ac_cv_lib_z_inflate+set}" = set; then :
5948  $as_echo_n "(cached) " >&6
5949else
5950  ac_check_lib_save_LIBS=$LIBS
5951LIBS="-lz  $LIBS"
5952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5953/* end confdefs.h.  */
5954
5955/* Override any GCC internal prototype to avoid an error.
5956   Use char because int might match the return type of a GCC
5957   builtin and then its argument prototype would still apply.  */
5958#ifdef __cplusplus
5959extern "C"
5960#endif
5961char inflate ();
5962int
5963main ()
5964{
5965return inflate ();
5966  ;
5967  return 0;
5968}
5969_ACEOF
5970if ac_fn_c_try_link "$LINENO"; then :
5971  ac_cv_lib_z_inflate=yes
5972else
5973  ac_cv_lib_z_inflate=no
5974fi
5975rm -f core conftest.err conftest.$ac_objext \
5976    conftest$ac_exeext conftest.$ac_ext
5977LIBS=$ac_check_lib_save_LIBS
5978fi
5979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
5980$as_echo "$ac_cv_lib_z_inflate" >&6; }
5981if test "x$ac_cv_lib_z_inflate" = x""yes; then :
5982
5983	    NEON_LIBS="$NEON_LIBS -lz"
5984
5985NE_FLAG_ZLIB=yes
5986
5987
5988$as_echo "#define NE_HAVE_ZLIB 1" >>confdefs.h
5989
5990ne_ZLIB_message="zlib support enabled, using -lz"
5991  { $as_echo "$as_me:${as_lineno-$LINENO}: zlib support enabled, using -lz" >&5
5992$as_echo "$as_me: zlib support enabled, using -lz" >&6;}
5993
5994
5995else
5996
5997NE_FLAG_ZLIB=no
5998
5999ne_ZLIB_message="zlib library not found"
6000  { $as_echo "$as_me:${as_lineno-$LINENO}: zlib library not found" >&5
6001$as_echo "$as_me: zlib library not found" >&6;}
6002
6003fi
6004
6005
6006else
6007
6008NE_FLAG_ZLIB=no
6009
6010ne_ZLIB_message="zlib header not found"
6011  { $as_echo "$as_me:${as_lineno-$LINENO}: zlib header not found" >&5
6012$as_echo "$as_me: zlib header not found" >&6;}
6013
6014fi
6015
6016
6017else
6018
6019NE_FLAG_ZLIB=no
6020
6021ne_ZLIB_message="zlib not enabled"
6022  { $as_echo "$as_me:${as_lineno-$LINENO}: zlib not enabled" >&5
6023$as_echo "$as_me: zlib not enabled" >&6;}
6024
6025fi
6026
6027
6028# Conditionally enable ACL support
6029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ACL support in neon" >&5
6030$as_echo_n "checking whether to enable ACL support in neon... " >&6; }
6031if test "x$neon_no_acl" = "xyes"; then
6032    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6033$as_echo "no" >&6; }
6034else
6035    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6036$as_echo "yes" >&6; }
6037    NEON_EXTRAOBJS="$NEON_EXTRAOBJS ne_oldacl ne_acl3744"
6038fi
6039
6040
6041
6042
6043# Check whether --with-ssl was given.
6044if test "${with_ssl+set}" = set; then :
6045  withval=$with_ssl;
6046fi
6047
6048
6049
6050# Check whether --with-egd was given.
6051if test "${with_egd+set}" = set; then :
6052  withval=$with_egd;
6053fi
6054
6055
6056
6057# Check whether --with-pakchois was given.
6058if test "${with_pakchois+set}" = set; then :
6059  withval=$with_pakchois;
6060fi
6061
6062
6063case $with_ssl in
6064/*)
6065   { $as_echo "$as_me:${as_lineno-$LINENO}: to use SSL libraries in non-standard locations, try --with-ssl --with-libs=$with_ssl" >&5
6066$as_echo "$as_me: to use SSL libraries in non-standard locations, try --with-ssl --with-libs=$with_ssl" >&6;}
6067   as_fn_error $? "--with-ssl does not take a path argument" "$LINENO" 5
6068   ;;
6069yes|openssl)
6070
6071
6072
6073# Extract the first word of "pkg-config", so it can be a program name with args.
6074set dummy pkg-config; ac_word=$2
6075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6076$as_echo_n "checking for $ac_word... " >&6; }
6077if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6078  $as_echo_n "(cached) " >&6
6079else
6080  case $PKG_CONFIG in
6081  [\\/]* | ?:[\\/]*)
6082  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6083  ;;
6084  *)
6085  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086for as_dir in $PATH
6087do
6088  IFS=$as_save_IFS
6089  test -z "$as_dir" && as_dir=.
6090    for ac_exec_ext in '' $ac_executable_extensions; do
6091  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6092    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6093    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6094    break 2
6095  fi
6096done
6097  done
6098IFS=$as_save_IFS
6099
6100  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6101  ;;
6102esac
6103fi
6104PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6105if test -n "$PKG_CONFIG"; then
6106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6107$as_echo "$PKG_CONFIG" >&6; }
6108else
6109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110$as_echo "no" >&6; }
6111fi
6112
6113
6114if test "$PKG_CONFIG" = "no"; then
6115   : Not using pkg-config
6116   # Either OpenSSL library may require -ldl if built with dynamic engine support
6117
6118
6119
6120
6121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RSA_new" >&5
6122$as_echo_n "checking for library containing RSA_new... " >&6; }
6123if test "${ne_cv_libsfor_RSA_new+set}" = set; then :
6124  $as_echo_n "(cached) " >&6
6125else
6126
6127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128/* end confdefs.h.  */
6129
6130int
6131main ()
6132{
6133RSA_new();
6134  ;
6135  return 0;
6136}
6137_ACEOF
6138if ac_fn_c_try_link "$LINENO"; then :
6139  ne_cv_libsfor_RSA_new="none needed"
6140else
6141
6142ne_sl_save_LIBS=$LIBS
6143ne_cv_libsfor_RSA_new="not found"
6144for lib in crypto; do
6145    # The w32api libraries link using the stdcall calling convention.
6146    case ${lib}-${ne_cv_os_uname} in
6147    ws2_32-MINGW*) ne__code="__stdcall RSA_new();" ;;
6148    *) ne__code="RSA_new();" ;;
6149    esac
6150
6151    LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
6152    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6153/* end confdefs.h.  */
6154
6155int
6156main ()
6157{
6158$ne__code
6159  ;
6160  return 0;
6161}
6162_ACEOF
6163if ac_fn_c_try_link "$LINENO"; then :
6164  ne_cv_libsfor_RSA_new="-l$lib"; break
6165fi
6166rm -f core conftest.err conftest.$ac_objext \
6167    conftest$ac_exeext conftest.$ac_ext
6168                  LIBS="$ne_sl_save_LIBS -l$lib -ldl $NEON_LIBS"
6169               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6170/* end confdefs.h.  */
6171
6172int
6173main ()
6174{
6175$ne__code
6176  ;
6177  return 0;
6178}
6179_ACEOF
6180if ac_fn_c_try_link "$LINENO"; then :
6181  ne_cv_libsfor_RSA_new="-l$lib -ldl"; break
6182fi
6183rm -f core conftest.err conftest.$ac_objext \
6184    conftest$ac_exeext conftest.$ac_ext
6185done
6186LIBS=$ne_sl_save_LIBS
6187fi
6188rm -f core conftest.err conftest.$ac_objext \
6189    conftest$ac_exeext conftest.$ac_ext
6190fi
6191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_RSA_new" >&5
6192$as_echo "$ne_cv_libsfor_RSA_new" >&6; }
6193
6194if test "$ne_cv_libsfor_RSA_new" = "not found"; then
6195   as_fn_error $? "could not find library containing RSA_new" "$LINENO" 5
6196elif test "$ne_cv_libsfor_RSA_new" = "none needed"; then
6197   :
6198else
6199   NEON_LIBS="$ne_cv_libsfor_RSA_new $NEON_LIBS"
6200
6201fi
6202
6203
6204
6205
6206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
6207$as_echo_n "checking for library containing SSL_library_init... " >&6; }
6208if test "${ne_cv_libsfor_SSL_library_init+set}" = set; then :
6209  $as_echo_n "(cached) " >&6
6210else
6211
6212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6213/* end confdefs.h.  */
6214
6215int
6216main ()
6217{
6218SSL_library_init();
6219  ;
6220  return 0;
6221}
6222_ACEOF
6223if ac_fn_c_try_link "$LINENO"; then :
6224  ne_cv_libsfor_SSL_library_init="none needed"
6225else
6226
6227ne_sl_save_LIBS=$LIBS
6228ne_cv_libsfor_SSL_library_init="not found"
6229for lib in ssl; do
6230    # The w32api libraries link using the stdcall calling convention.
6231    case ${lib}-${ne_cv_os_uname} in
6232    ws2_32-MINGW*) ne__code="__stdcall SSL_library_init();" ;;
6233    *) ne__code="SSL_library_init();" ;;
6234    esac
6235
6236    LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
6237    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6238/* end confdefs.h.  */
6239
6240int
6241main ()
6242{
6243$ne__code
6244  ;
6245  return 0;
6246}
6247_ACEOF
6248if ac_fn_c_try_link "$LINENO"; then :
6249  ne_cv_libsfor_SSL_library_init="-l$lib"; break
6250fi
6251rm -f core conftest.err conftest.$ac_objext \
6252    conftest$ac_exeext conftest.$ac_ext
6253                  LIBS="$ne_sl_save_LIBS -l$lib -ldl $NEON_LIBS"
6254               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6255/* end confdefs.h.  */
6256
6257int
6258main ()
6259{
6260$ne__code
6261  ;
6262  return 0;
6263}
6264_ACEOF
6265if ac_fn_c_try_link "$LINENO"; then :
6266  ne_cv_libsfor_SSL_library_init="-l$lib -ldl"; break
6267fi
6268rm -f core conftest.err conftest.$ac_objext \
6269    conftest$ac_exeext conftest.$ac_ext
6270done
6271LIBS=$ne_sl_save_LIBS
6272fi
6273rm -f core conftest.err conftest.$ac_objext \
6274    conftest$ac_exeext conftest.$ac_ext
6275fi
6276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_SSL_library_init" >&5
6277$as_echo "$ne_cv_libsfor_SSL_library_init" >&6; }
6278
6279if test "$ne_cv_libsfor_SSL_library_init" = "not found"; then
6280   as_fn_error $? "could not find library containing SSL_library_init" "$LINENO" 5
6281elif test "$ne_cv_libsfor_SSL_library_init" = "none needed"; then
6282   :
6283else
6284   NEON_LIBS="$ne_cv_libsfor_SSL_library_init $NEON_LIBS"
6285
6286fi
6287else
6288   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl pkg-config data" >&5
6289$as_echo_n "checking for openssl pkg-config data... " >&6; }
6290if test "${ne_cv_pkg_openssl+set}" = set; then :
6291  $as_echo_n "(cached) " >&6
6292else
6293  if $PKG_CONFIG openssl; then
6294        ne_cv_pkg_openssl=yes
6295      else
6296        ne_cv_pkg_openssl=no
6297      fi
6298fi
6299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_openssl" >&5
6300$as_echo "$ne_cv_pkg_openssl" >&6; }
6301
6302   if test "$ne_cv_pkg_openssl" = "yes"; then
6303      NE_SSL_CFLAGS=`$PKG_CONFIG --cflags openssl`
6304      NE_SSL_LIBS=`$PKG_CONFIG --libs openssl`
6305      : Using provided pkg-config data
6306      { $as_echo "$as_me:${as_lineno-$LINENO}: using SSL library configuration from pkg-config" >&5
6307$as_echo "$as_me: using SSL library configuration from pkg-config" >&6;}
6308     CPPFLAGS="$CPPFLAGS ${NE_SSL_CFLAGS}"
6309     NEON_LIBS="$NEON_LIBS ${NE_SSL_LIBS}"
6310   else
6311      : No pkg-config for openssl provided
6312      # Either OpenSSL library may require -ldl if built with dynamic engine support
6313
6314
6315
6316
6317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RSA_new" >&5
6318$as_echo_n "checking for library containing RSA_new... " >&6; }
6319if test "${ne_cv_libsfor_RSA_new+set}" = set; then :
6320  $as_echo_n "(cached) " >&6
6321else
6322
6323cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324/* end confdefs.h.  */
6325
6326int
6327main ()
6328{
6329RSA_new();
6330  ;
6331  return 0;
6332}
6333_ACEOF
6334if ac_fn_c_try_link "$LINENO"; then :
6335  ne_cv_libsfor_RSA_new="none needed"
6336else
6337
6338ne_sl_save_LIBS=$LIBS
6339ne_cv_libsfor_RSA_new="not found"
6340for lib in crypto; do
6341    # The w32api libraries link using the stdcall calling convention.
6342    case ${lib}-${ne_cv_os_uname} in
6343    ws2_32-MINGW*) ne__code="__stdcall RSA_new();" ;;
6344    *) ne__code="RSA_new();" ;;
6345    esac
6346
6347    LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
6348    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349/* end confdefs.h.  */
6350
6351int
6352main ()
6353{
6354$ne__code
6355  ;
6356  return 0;
6357}
6358_ACEOF
6359if ac_fn_c_try_link "$LINENO"; then :
6360  ne_cv_libsfor_RSA_new="-l$lib"; break
6361fi
6362rm -f core conftest.err conftest.$ac_objext \
6363    conftest$ac_exeext conftest.$ac_ext
6364                  LIBS="$ne_sl_save_LIBS -l$lib -ldl $NEON_LIBS"
6365               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366/* end confdefs.h.  */
6367
6368int
6369main ()
6370{
6371$ne__code
6372  ;
6373  return 0;
6374}
6375_ACEOF
6376if ac_fn_c_try_link "$LINENO"; then :
6377  ne_cv_libsfor_RSA_new="-l$lib -ldl"; break
6378fi
6379rm -f core conftest.err conftest.$ac_objext \
6380    conftest$ac_exeext conftest.$ac_ext
6381done
6382LIBS=$ne_sl_save_LIBS
6383fi
6384rm -f core conftest.err conftest.$ac_objext \
6385    conftest$ac_exeext conftest.$ac_ext
6386fi
6387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_RSA_new" >&5
6388$as_echo "$ne_cv_libsfor_RSA_new" >&6; }
6389
6390if test "$ne_cv_libsfor_RSA_new" = "not found"; then
6391   as_fn_error $? "could not find library containing RSA_new" "$LINENO" 5
6392elif test "$ne_cv_libsfor_RSA_new" = "none needed"; then
6393   :
6394else
6395   NEON_LIBS="$ne_cv_libsfor_RSA_new $NEON_LIBS"
6396
6397fi
6398
6399
6400
6401
6402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
6403$as_echo_n "checking for library containing SSL_library_init... " >&6; }
6404if test "${ne_cv_libsfor_SSL_library_init+set}" = set; then :
6405  $as_echo_n "(cached) " >&6
6406else
6407
6408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6409/* end confdefs.h.  */
6410
6411int
6412main ()
6413{
6414SSL_library_init();
6415  ;
6416  return 0;
6417}
6418_ACEOF
6419if ac_fn_c_try_link "$LINENO"; then :
6420  ne_cv_libsfor_SSL_library_init="none needed"
6421else
6422
6423ne_sl_save_LIBS=$LIBS
6424ne_cv_libsfor_SSL_library_init="not found"
6425for lib in ssl; do
6426    # The w32api libraries link using the stdcall calling convention.
6427    case ${lib}-${ne_cv_os_uname} in
6428    ws2_32-MINGW*) ne__code="__stdcall SSL_library_init();" ;;
6429    *) ne__code="SSL_library_init();" ;;
6430    esac
6431
6432    LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
6433    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6434/* end confdefs.h.  */
6435
6436int
6437main ()
6438{
6439$ne__code
6440  ;
6441  return 0;
6442}
6443_ACEOF
6444if ac_fn_c_try_link "$LINENO"; then :
6445  ne_cv_libsfor_SSL_library_init="-l$lib"; break
6446fi
6447rm -f core conftest.err conftest.$ac_objext \
6448    conftest$ac_exeext conftest.$ac_ext
6449                  LIBS="$ne_sl_save_LIBS -l$lib -ldl $NEON_LIBS"
6450               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451/* end confdefs.h.  */
6452
6453int
6454main ()
6455{
6456$ne__code
6457  ;
6458  return 0;
6459}
6460_ACEOF
6461if ac_fn_c_try_link "$LINENO"; then :
6462  ne_cv_libsfor_SSL_library_init="-l$lib -ldl"; break
6463fi
6464rm -f core conftest.err conftest.$ac_objext \
6465    conftest$ac_exeext conftest.$ac_ext
6466done
6467LIBS=$ne_sl_save_LIBS
6468fi
6469rm -f core conftest.err conftest.$ac_objext \
6470    conftest$ac_exeext conftest.$ac_ext
6471fi
6472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_SSL_library_init" >&5
6473$as_echo "$ne_cv_libsfor_SSL_library_init" >&6; }
6474
6475if test "$ne_cv_libsfor_SSL_library_init" = "not found"; then
6476   as_fn_error $? "could not find library containing SSL_library_init" "$LINENO" 5
6477elif test "$ne_cv_libsfor_SSL_library_init" = "none needed"; then
6478   :
6479else
6480   NEON_LIBS="$ne_cv_libsfor_SSL_library_init $NEON_LIBS"
6481
6482fi
6483   fi
6484fi
6485
6486
6487
6488
6489   for ac_header in openssl/ssl.h openssl/opensslv.h
6490do :
6491  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6492ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6493if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6494  cat >>confdefs.h <<_ACEOF
6495#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6496_ACEOF
6497
6498else
6499  as_fn_error $? "OpenSSL headers not found, cannot enable SSL support" "$LINENO" 5
6500fi
6501
6502done
6503
6504
6505   # Enable EGD support if using 0.9.7 or newer
6506
6507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL version is >= 0.9.7" >&5
6508$as_echo_n "checking OpenSSL version is >= 0.9.7... " >&6; }
6509if test "${ne_cv_lib_ssl097+set}" = set; then :
6510  $as_echo_n "(cached) " >&6
6511else
6512
6513cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6514/* end confdefs.h.  */
6515#include <openssl/opensslv.h>
6516#if OPENSSL_VERSION_NUMBER >= 0x00907000L
6517good
6518#endif
6519_ACEOF
6520if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6521  $EGREP "good" >/dev/null 2>&1; then :
6522  ne_cv_lib_ssl097=yes
6523else
6524  ne_cv_lib_ssl097=no
6525fi
6526rm -f conftest*
6527
6528fi
6529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_lib_ssl097" >&5
6530$as_echo "$ne_cv_lib_ssl097" >&6; }
6531   if test "$ne_cv_lib_ssl097" = "yes"; then
6532      { $as_echo "$as_me:${as_lineno-$LINENO}: OpenSSL >= 0.9.7; EGD support not needed in neon" >&5
6533$as_echo "$as_me: OpenSSL >= 0.9.7; EGD support not needed in neon" >&6;}
6534
6535NE_FLAG_SSL=yes
6536
6537
6538$as_echo "#define NE_HAVE_SSL 1" >>confdefs.h
6539
6540ne_SSL_message="SSL support enabled, using OpenSSL (0.9.7 or later)"
6541  { $as_echo "$as_me:${as_lineno-$LINENO}: SSL support enabled, using OpenSSL (0.9.7 or later)" >&5
6542$as_echo "$as_me: SSL support enabled, using OpenSSL (0.9.7 or later)" >&6;}
6543
6544
6545ne_cf_save_LIBS=$LIBS
6546LIBS="$LIBS $NEON_LIBS"
6547for ac_func in CRYPTO_set_idptr_callback SSL_SESSION_cmp
6548do :
6549  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6550ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6551if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6552  cat >>confdefs.h <<_ACEOF
6553#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6554_ACEOF
6555
6556fi
6557done
6558
6559LIBS=$ne_cf_save_LIBS
6560   else
6561      # Fail if OpenSSL is older than 0.9.6
6562
6563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL version is >= 0.9.6" >&5
6564$as_echo_n "checking OpenSSL version is >= 0.9.6... " >&6; }
6565if test "${ne_cv_lib_ssl096+set}" = set; then :
6566  $as_echo_n "(cached) " >&6
6567else
6568
6569cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6570/* end confdefs.h.  */
6571#include <openssl/opensslv.h>
6572#if OPENSSL_VERSION_NUMBER >= 0x00906000L
6573good
6574#endif
6575_ACEOF
6576if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6577  $EGREP "good" >/dev/null 2>&1; then :
6578  ne_cv_lib_ssl096=yes
6579else
6580  ne_cv_lib_ssl096=no
6581fi
6582rm -f conftest*
6583
6584fi
6585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_lib_ssl096" >&5
6586$as_echo "$ne_cv_lib_ssl096" >&6; }
6587      if test "$ne_cv_lib_ssl096" != "yes"; then
6588         as_fn_error $? "OpenSSL 0.9.6 or later is required" "$LINENO" 5
6589      fi
6590
6591NE_FLAG_SSL=yes
6592
6593
6594$as_echo "#define NE_HAVE_SSL 1" >>confdefs.h
6595
6596ne_SSL_message="SSL support enabled, using OpenSSL (0.9.6 or later)"
6597  { $as_echo "$as_me:${as_lineno-$LINENO}: SSL support enabled, using OpenSSL (0.9.6 or later)" >&5
6598$as_echo "$as_me: SSL support enabled, using OpenSSL (0.9.6 or later)" >&6;}
6599
6600
6601      case "$with_egd" in
6602      yes|no) ne_cv_lib_sslegd=$with_egd ;;
6603      /*) ne_cv_lib_sslegd=yes
6604
6605cat >>confdefs.h <<_ACEOF
6606#define EGD_PATH "$with_egd"
6607_ACEOF
6608 ;;
6609      *) # Guess whether EGD support is needed
6610         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable EGD support" >&5
6611$as_echo_n "checking whether to enable EGD support... " >&6; }
6612if test "${ne_cv_lib_sslegd+set}" = set; then :
6613  $as_echo_n "(cached) " >&6
6614else
6615  if test -r /dev/random || test -r /dev/urandom; then
6616	    ne_cv_lib_sslegd=no
6617	  else
6618	    ne_cv_lib_sslegd=yes
6619	  fi
6620fi
6621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_lib_sslegd" >&5
6622$as_echo "$ne_cv_lib_sslegd" >&6; }
6623	 ;;
6624      esac
6625      if test "$ne_cv_lib_sslegd" = "yes"; then
6626        { $as_echo "$as_me:${as_lineno-$LINENO}: EGD support enabled for seeding OpenSSL PRNG" >&5
6627$as_echo "$as_me: EGD support enabled for seeding OpenSSL PRNG" >&6;}
6628
6629$as_echo "#define ENABLE_EGD 1" >>confdefs.h
6630
6631      fi
6632   fi
6633
6634
6635$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
6636
6637   NEON_EXTRAOBJS="$NEON_EXTRAOBJS ne_openssl"
6638
6639
6640$as_echo "#define HAVE_NTLM 1" >>confdefs.h
6641
6642   ;;
6643gnutls)
6644
6645
6646
6647# Extract the first word of "pkg-config", so it can be a program name with args.
6648set dummy pkg-config; ac_word=$2
6649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6650$as_echo_n "checking for $ac_word... " >&6; }
6651if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6652  $as_echo_n "(cached) " >&6
6653else
6654  case $PKG_CONFIG in
6655  [\\/]* | ?:[\\/]*)
6656  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6657  ;;
6658  *)
6659  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660for as_dir in $PATH
6661do
6662  IFS=$as_save_IFS
6663  test -z "$as_dir" && as_dir=.
6664    for ac_exec_ext in '' $ac_executable_extensions; do
6665  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6666    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6667    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6668    break 2
6669  fi
6670done
6671  done
6672IFS=$as_save_IFS
6673
6674  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6675  ;;
6676esac
6677fi
6678PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6679if test -n "$PKG_CONFIG"; then
6680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6681$as_echo "$PKG_CONFIG" >&6; }
6682else
6683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6684$as_echo "no" >&6; }
6685fi
6686
6687
6688if test "$PKG_CONFIG" = "no"; then
6689   : Not using pkg-config
6690
6691      # Fall back on libgnutls-config script
6692      # Extract the first word of "libgnutls-config", so it can be a program name with args.
6693set dummy libgnutls-config; ac_word=$2
6694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6695$as_echo_n "checking for $ac_word... " >&6; }
6696if test "${ac_cv_path_GNUTLS_CONFIG+set}" = set; then :
6697  $as_echo_n "(cached) " >&6
6698else
6699  case $GNUTLS_CONFIG in
6700  [\\/]* | ?:[\\/]*)
6701  ac_cv_path_GNUTLS_CONFIG="$GNUTLS_CONFIG" # Let the user override the test with a path.
6702  ;;
6703  *)
6704  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705for as_dir in $PATH
6706do
6707  IFS=$as_save_IFS
6708  test -z "$as_dir" && as_dir=.
6709    for ac_exec_ext in '' $ac_executable_extensions; do
6710  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6711    ac_cv_path_GNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6712    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6713    break 2
6714  fi
6715done
6716  done
6717IFS=$as_save_IFS
6718
6719  test -z "$ac_cv_path_GNUTLS_CONFIG" && ac_cv_path_GNUTLS_CONFIG="no"
6720  ;;
6721esac
6722fi
6723GNUTLS_CONFIG=$ac_cv_path_GNUTLS_CONFIG
6724if test -n "$GNUTLS_CONFIG"; then
6725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTLS_CONFIG" >&5
6726$as_echo "$GNUTLS_CONFIG" >&6; }
6727else
6728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6729$as_echo "no" >&6; }
6730fi
6731
6732
6733
6734      if test "$GNUTLS_CONFIG" = "no"; then
6735        as_fn_error $? "could not find libgnutls-config in \$PATH" "$LINENO" 5
6736      fi
6737
6738      CPPFLAGS="$CPPFLAGS `$GNUTLS_CONFIG --cflags`"
6739      NEON_LIBS="$NEON_LIBS `$GNUTLS_CONFIG --libs`"
6740
6741      ne_gnutls_ver=`$GNUTLS_CONFIG --version`
6742
6743else
6744   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls pkg-config data" >&5
6745$as_echo_n "checking for gnutls pkg-config data... " >&6; }
6746if test "${ne_cv_pkg_gnutls+set}" = set; then :
6747  $as_echo_n "(cached) " >&6
6748else
6749  if $PKG_CONFIG gnutls; then
6750        ne_cv_pkg_gnutls=yes
6751      else
6752        ne_cv_pkg_gnutls=no
6753      fi
6754fi
6755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_gnutls" >&5
6756$as_echo "$ne_cv_pkg_gnutls" >&6; }
6757
6758   if test "$ne_cv_pkg_gnutls" = "yes"; then
6759      NE_SSL_CFLAGS=`$PKG_CONFIG --cflags gnutls`
6760      NE_SSL_LIBS=`$PKG_CONFIG --libs gnutls`
6761      : Using provided pkg-config data
6762      { $as_echo "$as_me:${as_lineno-$LINENO}: using GnuTLS configuration from pkg-config" >&5
6763$as_echo "$as_me: using GnuTLS configuration from pkg-config" >&6;}
6764      CPPFLAGS="$CPPFLAGS ${NE_SSL_CFLAGS}"
6765      NEON_LIBS="$NEON_LIBS ${NE_SSL_LIBS}"
6766
6767      ne_gnutls_ver=`$PKG_CONFIG --modversion gnutls`
6768
6769   else
6770      : No pkg-config for gnutls provided
6771
6772      # Fall back on libgnutls-config script
6773      # Extract the first word of "libgnutls-config", so it can be a program name with args.
6774set dummy libgnutls-config; ac_word=$2
6775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6776$as_echo_n "checking for $ac_word... " >&6; }
6777if test "${ac_cv_path_GNUTLS_CONFIG+set}" = set; then :
6778  $as_echo_n "(cached) " >&6
6779else
6780  case $GNUTLS_CONFIG in
6781  [\\/]* | ?:[\\/]*)
6782  ac_cv_path_GNUTLS_CONFIG="$GNUTLS_CONFIG" # Let the user override the test with a path.
6783  ;;
6784  *)
6785  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786for as_dir in $PATH
6787do
6788  IFS=$as_save_IFS
6789  test -z "$as_dir" && as_dir=.
6790    for ac_exec_ext in '' $ac_executable_extensions; do
6791  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6792    ac_cv_path_GNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6793    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6794    break 2
6795  fi
6796done
6797  done
6798IFS=$as_save_IFS
6799
6800  test -z "$ac_cv_path_GNUTLS_CONFIG" && ac_cv_path_GNUTLS_CONFIG="no"
6801  ;;
6802esac
6803fi
6804GNUTLS_CONFIG=$ac_cv_path_GNUTLS_CONFIG
6805if test -n "$GNUTLS_CONFIG"; then
6806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTLS_CONFIG" >&5
6807$as_echo "$GNUTLS_CONFIG" >&6; }
6808else
6809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6810$as_echo "no" >&6; }
6811fi
6812
6813
6814
6815      if test "$GNUTLS_CONFIG" = "no"; then
6816        as_fn_error $? "could not find libgnutls-config in \$PATH" "$LINENO" 5
6817      fi
6818
6819      CPPFLAGS="$CPPFLAGS `$GNUTLS_CONFIG --cflags`"
6820      NEON_LIBS="$NEON_LIBS `$GNUTLS_CONFIG --libs`"
6821
6822      ne_gnutls_ver=`$GNUTLS_CONFIG --version`
6823
6824   fi
6825fi
6826
6827
6828
6829
6830   ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
6831if test "x$ac_cv_header_gnutls_gnutls_h" = x""yes; then :
6832
6833else
6834  as_fn_error $? "could not find gnutls/gnutls.h in include path" "$LINENO" 5
6835fi
6836
6837
6838
6839
6840NE_FLAG_SSL=yes
6841
6842
6843$as_echo "#define NE_HAVE_SSL 1" >>confdefs.h
6844
6845ne_SSL_message="SSL support enabled, using GnuTLS $ne_gnutls_ver"
6846  { $as_echo "$as_me:${as_lineno-$LINENO}: SSL support enabled, using GnuTLS $ne_gnutls_ver" >&5
6847$as_echo "$as_me: SSL support enabled, using GnuTLS $ne_gnutls_ver" >&6;}
6848
6849   NEON_EXTRAOBJS="$NEON_EXTRAOBJS ne_gnutls"
6850
6851$as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
6852
6853
6854   # Check for functions in later releases
6855
6856ne_cf_save_LIBS=$LIBS
6857LIBS="$LIBS $NEON_LIBS"
6858for ac_func in gnutls_session_get_data2 gnutls_x509_dn_get_rdn_ava \
6859                  gnutls_sign_callback_set \
6860                  gnutls_certificate_get_x509_cas \
6861                  gnutls_certificate_verify_peers2
6862do :
6863  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6864ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6865if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6866  cat >>confdefs.h <<_ACEOF
6867#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6868_ACEOF
6869
6870fi
6871done
6872
6873LIBS=$ne_cf_save_LIBS
6874
6875   # fail if gnutls_certificate_verify_peers2 is not found
6876   if test x${ac_cv_func_gnutls_certificate_verify_peers2} != xyes; then
6877       as_fn_error $? "GnuTLS version predates gnutls_certificate_verify_peers2, newer version required" "$LINENO" 5
6878   fi
6879
6880   # Check for iconv support if using the new RDN access functions:
6881   if test ${ac_cv_func_gnutls_x509_dn_get_rdn_ava}X${ac_cv_header_iconv_h} = yesXyes; then
6882      for ac_func in iconv
6883do :
6884  ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
6885if test "x$ac_cv_func_iconv" = x""yes; then :
6886  cat >>confdefs.h <<_ACEOF
6887#define HAVE_ICONV 1
6888_ACEOF
6889
6890fi
6891done
6892
6893   fi
6894   ;;
6895*) # Default to off; only create crypto-enabled binaries if requested.
6896
6897NE_FLAG_SSL=no
6898
6899ne_SSL_message="SSL support is not enabled"
6900  { $as_echo "$as_me:${as_lineno-$LINENO}: SSL support is not enabled" >&5
6901$as_echo "$as_me: SSL support is not enabled" >&6;}
6902
6903
6904NE_FLAG_TS_SSL=no
6905
6906ne_TS_SSL_message="Thread-safe SSL support is not enabled"
6907  { $as_echo "$as_me:${as_lineno-$LINENO}: Thread-safe SSL support is not enabled" >&5
6908$as_echo "$as_me: Thread-safe SSL support is not enabled" >&6;}
6909
6910   NEON_EXTRAOBJS="$NEON_EXTRAOBJS ne_stubssl"
6911   ;;
6912esac
6913
6914
6915
6916# Check whether --with-ca-bundle was given.
6917if test "${with_ca_bundle+set}" = set; then :
6918  withval=$with_ca_bundle;
6919else
6920  with_ca_bundle=no
6921fi
6922
6923
6924case ${NE_FLAG_SSL}-${with_ca_bundle} in
6925*-no) ;;
6926yes-*)
6927
6928cat >>confdefs.h <<_ACEOF
6929#define NE_SSL_CA_BUNDLE "${with_ca_bundle}"
6930_ACEOF
6931
6932   { $as_echo "$as_me:${as_lineno-$LINENO}: Using ${with_ca_bundle} as default SSL CA bundle" >&5
6933$as_echo "$as_me: Using ${with_ca_bundle} as default SSL CA bundle" >&6;}
6934   ;;
6935esac
6936
6937# Check whether --enable-threadsafe-ssl was given.
6938if test "${enable_threadsafe_ssl+set}" = set; then :
6939  enableval=$enable_threadsafe_ssl;
6940else
6941  enable_threadsafe_ssl=no
6942fi
6943
6944
6945case $enable_threadsafe_ssl in
6946posix|yes)
6947  ne_pthr_ok=yes
6948  for ac_func in pthread_mutex_init pthread_mutex_lock
6949do :
6950  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6951ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6952if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6953  cat >>confdefs.h <<_ACEOF
6954#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6955_ACEOF
6956
6957else
6958  ne_pthr_ok=no
6959fi
6960done
6961
6962  if test "${ne_pthr_ok}" = "no"; then
6963     as_fn_error $? "could not find POSIX mutex interfaces; (try CC=\"${CC} -pthread\"?)" "$LINENO" 5
6964  fi
6965
6966NE_FLAG_TS_SSL=yes
6967
6968
6969$as_echo "#define NE_HAVE_TS_SSL 1" >>confdefs.h
6970
6971ne_TS_SSL_message="Thread-safe SSL supported using POSIX threads"
6972  { $as_echo "$as_me:${as_lineno-$LINENO}: Thread-safe SSL supported using POSIX threads" >&5
6973$as_echo "$as_me: Thread-safe SSL supported using POSIX threads" >&6;}
6974
6975  ;;
6976*)
6977
6978NE_FLAG_TS_SSL=no
6979
6980ne_TS_SSL_message="Thread-safe SSL not supported"
6981  { $as_echo "$as_me:${as_lineno-$LINENO}: Thread-safe SSL not supported" >&5
6982$as_echo "$as_me: Thread-safe SSL not supported" >&6;}
6983
6984  ;;
6985esac
6986
6987case ${with_pakchois}X${ac_cv_func_gnutls_sign_callback_set}Y${ne_cv_lib_ssl097} in
6988noX*Y*) ;;
6989*X*Yyes|*XyesY*)
6990    # PKCS#11... ho!
6991
6992
6993
6994# Extract the first word of "pkg-config", so it can be a program name with args.
6995set dummy pkg-config; ac_word=$2
6996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6997$as_echo_n "checking for $ac_word... " >&6; }
6998if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6999  $as_echo_n "(cached) " >&6
7000else
7001  case $PKG_CONFIG in
7002  [\\/]* | ?:[\\/]*)
7003  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7004  ;;
7005  *)
7006  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007for as_dir in $PATH
7008do
7009  IFS=$as_save_IFS
7010  test -z "$as_dir" && as_dir=.
7011    for ac_exec_ext in '' $ac_executable_extensions; do
7012  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7013    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7014    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7015    break 2
7016  fi
7017done
7018  done
7019IFS=$as_save_IFS
7020
7021  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7022  ;;
7023esac
7024fi
7025PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7026if test -n "$PKG_CONFIG"; then
7027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7028$as_echo "$PKG_CONFIG" >&6; }
7029else
7030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7031$as_echo "no" >&6; }
7032fi
7033
7034
7035if test "$PKG_CONFIG" = "no"; then
7036   : Not using pkg-config
7037   { $as_echo "$as_me:${as_lineno-$LINENO}: pakchois library not found; no PKCS#11 support" >&5
7038$as_echo "$as_me: pakchois library not found; no PKCS#11 support" >&6;}
7039else
7040   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pakchois pkg-config data" >&5
7041$as_echo_n "checking for pakchois pkg-config data... " >&6; }
7042if test "${ne_cv_pkg_pakchois+set}" = set; then :
7043  $as_echo_n "(cached) " >&6
7044else
7045  if $PKG_CONFIG pakchois; then
7046        ne_cv_pkg_pakchois=yes
7047      else
7048        ne_cv_pkg_pakchois=no
7049      fi
7050fi
7051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_pakchois" >&5
7052$as_echo "$ne_cv_pkg_pakchois" >&6; }
7053
7054   if test "$ne_cv_pkg_pakchois" = "yes"; then
7055      NE_PK11_CFLAGS=`$PKG_CONFIG --cflags pakchois`
7056      NE_PK11_LIBS=`$PKG_CONFIG --libs pakchois`
7057      : Using provided pkg-config data
7058      { $as_echo "$as_me:${as_lineno-$LINENO}: using pakchois for PKCS#11 support" >&5
7059$as_echo "$as_me: using pakchois for PKCS#11 support" >&6;}
7060
7061$as_echo "#define HAVE_PAKCHOIS 1" >>confdefs.h
7062
7063       CPPFLAGS="$CPPFLAGS ${NE_PK11_CFLAGS}"
7064       NEON_LIBS="${NEON_LIBS} ${NE_PK11_LIBS}"
7065   else
7066      : No pkg-config for pakchois provided
7067      { $as_echo "$as_me:${as_lineno-$LINENO}: pakchois library not found; no PKCS#11 support" >&5
7068$as_echo "$as_me: pakchois library not found; no PKCS#11 support" >&6;}
7069   fi
7070fi
7071
7072
7073
7074   ;;
7075esac
7076
7077
7078
7079# Check whether --with-gssapi was given.
7080if test "${with_gssapi+set}" = set; then :
7081  withval=$with_gssapi;
7082fi
7083
7084if test "$with_gssapi" != "no"; then
7085  # Extract the first word of "krb5-config", so it can be a program name with args.
7086set dummy krb5-config; ac_word=$2
7087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7088$as_echo_n "checking for $ac_word... " >&6; }
7089if test "${ac_cv_path_KRB5_CONFIG+set}" = set; then :
7090  $as_echo_n "(cached) " >&6
7091else
7092  case $KRB5_CONFIG in
7093  [\\/]* | ?:[\\/]*)
7094  ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
7095  ;;
7096  *)
7097  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098as_dummy="$PATH:/usr/kerberos/bin"
7099for as_dir in $as_dummy
7100do
7101  IFS=$as_save_IFS
7102  test -z "$as_dir" && as_dir=.
7103    for ac_exec_ext in '' $ac_executable_extensions; do
7104  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7105    ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7106    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7107    break 2
7108  fi
7109done
7110  done
7111IFS=$as_save_IFS
7112
7113  test -z "$ac_cv_path_KRB5_CONFIG" && ac_cv_path_KRB5_CONFIG="none"
7114  ;;
7115esac
7116fi
7117KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
7118if test -n "$KRB5_CONFIG"; then
7119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
7120$as_echo "$KRB5_CONFIG" >&6; }
7121else
7122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7123$as_echo "no" >&6; }
7124fi
7125
7126
7127else
7128  KRB5_CONFIG=none
7129fi
7130if test "x$KRB5_CONFIG" != "xnone"; then
7131   ne_save_CPPFLAGS=$CPPFLAGS
7132   ne_save_LIBS=$NEON_LIBS
7133   NEON_LIBS="$NEON_LIBS `${KRB5_CONFIG} --libs gssapi`"
7134   CPPFLAGS="$CPPFLAGS `${KRB5_CONFIG} --cflags gssapi`"
7135   # MIT and Heimdal put gssapi.h in different places
7136   for ac_header in gssapi/gssapi.h gssapi.h
7137do :
7138  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7139ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7140if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7141  cat >>confdefs.h <<_ACEOF
7142#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7143_ACEOF
7144
7145
7146ne_cf_save_LIBS=$LIBS
7147LIBS="$LIBS $NEON_LIBS"
7148for ac_func in gss_init_sec_context
7149do :
7150  ac_fn_c_check_func "$LINENO" "gss_init_sec_context" "ac_cv_func_gss_init_sec_context"
7151if test "x$ac_cv_func_gss_init_sec_context" = x""yes; then :
7152  cat >>confdefs.h <<_ACEOF
7153#define HAVE_GSS_INIT_SEC_CONTEXT 1
7154_ACEOF
7155
7156      ne_save_CPPFLAGS=$CPPFLAGS
7157      ne_save_LIBS=$NEON_LIBS
7158      { $as_echo "$as_me:${as_lineno-$LINENO}: GSSAPI authentication support enabled" >&5
7159$as_echo "$as_me: GSSAPI authentication support enabled" >&6;}
7160
7161$as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7162
7163      for ac_header in gssapi/gssapi_generic.h
7164do :
7165  ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_generic.h" "ac_cv_header_gssapi_gssapi_generic_h" "$ac_includes_default"
7166if test "x$ac_cv_header_gssapi_gssapi_generic_h" = x""yes; then :
7167  cat >>confdefs.h <<_ACEOF
7168#define HAVE_GSSAPI_GSSAPI_GENERIC_H 1
7169_ACEOF
7170
7171fi
7172
7173done
7174
7175      # Older versions of MIT Kerberos lack GSS_C_NT_HOSTBASED_SERVICE
7176      ac_fn_c_check_decl "$LINENO" "GSS_C_NT_HOSTBASED_SERVICE" "ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" "#ifdef HAVE_GSSAPI_GSSAPI_H
7177#include <gssapi/gssapi.h>
7178#else
7179#include <gssapi.h>
7180#endif
7181"
7182if test "x$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" = x""yes; then :
7183
7184else
7185
7186$as_echo "#define GSS_C_NT_HOSTBASED_SERVICE gss_nt_service_name" >>confdefs.h
7187
7188fi
7189
7190fi
7191done
7192
7193LIBS=$ne_cf_save_LIBS
7194     break
7195
7196fi
7197
7198done
7199
7200   CPPFLAGS=$ne_save_CPPFLAGS
7201   NEON_LIBS=$ne_save_LIBS
7202fi
7203
7204
7205# Check whether --with-libproxy was given.
7206if test "${with_libproxy+set}" = set; then :
7207  withval=$with_libproxy;
7208fi
7209
7210if test "x$with_libproxy" != "xno"; then
7211
7212
7213
7214# Extract the first word of "pkg-config", so it can be a program name with args.
7215set dummy pkg-config; ac_word=$2
7216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7217$as_echo_n "checking for $ac_word... " >&6; }
7218if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7219  $as_echo_n "(cached) " >&6
7220else
7221  case $PKG_CONFIG in
7222  [\\/]* | ?:[\\/]*)
7223  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7224  ;;
7225  *)
7226  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7227for as_dir in $PATH
7228do
7229  IFS=$as_save_IFS
7230  test -z "$as_dir" && as_dir=.
7231    for ac_exec_ext in '' $ac_executable_extensions; do
7232  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7233    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7234    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7235    break 2
7236  fi
7237done
7238  done
7239IFS=$as_save_IFS
7240
7241  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7242  ;;
7243esac
7244fi
7245PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7246if test -n "$PKG_CONFIG"; then
7247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7248$as_echo "$PKG_CONFIG" >&6; }
7249else
7250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251$as_echo "no" >&6; }
7252fi
7253
7254
7255if test "$PKG_CONFIG" = "no"; then
7256   : Not using pkg-config
7257
7258NE_FLAG_LIBPXY=no
7259
7260ne_LIBPXY_message="libproxy support not enabled"
7261  { $as_echo "$as_me:${as_lineno-$LINENO}: libproxy support not enabled" >&5
7262$as_echo "$as_me: libproxy support not enabled" >&6;}
7263
7264else
7265   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libproxy-1.0 pkg-config data" >&5
7266$as_echo_n "checking for libproxy-1.0 pkg-config data... " >&6; }
7267if test "${ne_cv_pkg_libproxy_1_0+set}" = set; then :
7268  $as_echo_n "(cached) " >&6
7269else
7270  if $PKG_CONFIG libproxy-1.0; then
7271        ne_cv_pkg_libproxy_1_0=yes
7272      else
7273        ne_cv_pkg_libproxy_1_0=no
7274      fi
7275fi
7276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_libproxy_1_0" >&5
7277$as_echo "$ne_cv_pkg_libproxy_1_0" >&6; }
7278
7279   if test "$ne_cv_pkg_libproxy_1_0" = "yes"; then
7280      NE_PXY_CFLAGS=`$PKG_CONFIG --cflags libproxy-1.0`
7281      NE_PXY_LIBS=`$PKG_CONFIG --libs libproxy-1.0`
7282      : Using provided pkg-config data
7283
7284$as_echo "#define HAVE_LIBPROXY 1" >>confdefs.h
7285
7286      CPPFLAGS="$CPPFLAGS $NE_PXY_CFLAGS"
7287      NEON_LIBS="$NEON_LIBS ${NE_PXY_LIBS}"
7288
7289NE_FLAG_LIBPXY=yes
7290
7291
7292$as_echo "#define NE_HAVE_LIBPXY 1" >>confdefs.h
7293
7294ne_LIBPXY_message="libproxy support enabled"
7295  { $as_echo "$as_me:${as_lineno-$LINENO}: libproxy support enabled" >&5
7296$as_echo "$as_me: libproxy support enabled" >&6;}
7297
7298   else
7299      : No pkg-config for libproxy-1.0 provided
7300
7301NE_FLAG_LIBPXY=no
7302
7303ne_LIBPXY_message="libproxy support not enabled"
7304  { $as_echo "$as_me:${as_lineno-$LINENO}: libproxy support not enabled" >&5
7305$as_echo "$as_me: libproxy support not enabled" >&6;}
7306
7307   fi
7308fi
7309
7310
7311
7312else
7313
7314NE_FLAG_LIBPXY=no
7315
7316ne_LIBPXY_message="libproxy support not enabled"
7317  { $as_echo "$as_me:${as_lineno-$LINENO}: libproxy support not enabled" >&5
7318$as_echo "$as_me: libproxy support not enabled" >&6;}
7319
7320fi
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331# Check whether --enable-shared was given.
7332if test "${enable_shared+set}" = set; then :
7333  enableval=$enable_shared; p=${PACKAGE-default}
7334    case $enableval in
7335    yes) enable_shared=yes ;;
7336    no) enable_shared=no ;;
7337    *)
7338      enable_shared=no
7339      # Look at the argument we got.  We use all the common list separators.
7340      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7341      for pkg in $enableval; do
7342	IFS="$lt_save_ifs"
7343	if test "X$pkg" = "X$p"; then
7344	  enable_shared=yes
7345	fi
7346      done
7347      IFS="$lt_save_ifs"
7348      ;;
7349    esac
7350else
7351  enable_shared=no
7352fi
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362case `pwd` in
7363  *\ * | *\	*)
7364    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7365$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7366esac
7367
7368
7369
7370macro_version='2.2.10'
7371macro_revision='1.3175'
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385ltmain="$ac_aux_dir/ltmain.sh"
7386
7387# Make sure we can run config.sub.
7388$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
7389  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
7390
7391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7392$as_echo_n "checking build system type... " >&6; }
7393if test "${ac_cv_build+set}" = set; then :
7394  $as_echo_n "(cached) " >&6
7395else
7396  ac_build_alias=$build_alias
7397test "x$ac_build_alias" = x &&
7398  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
7399test "x$ac_build_alias" = x &&
7400  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
7401ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
7402  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
7403
7404fi
7405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7406$as_echo "$ac_cv_build" >&6; }
7407case $ac_cv_build in
7408*-*-*) ;;
7409*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
7410esac
7411build=$ac_cv_build
7412ac_save_IFS=$IFS; IFS='-'
7413set x $ac_cv_build
7414shift
7415build_cpu=$1
7416build_vendor=$2
7417shift; shift
7418# Remember, the first character of IFS is used to create $*,
7419# except with old shells:
7420build_os=$*
7421IFS=$ac_save_IFS
7422case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7423
7424
7425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7426$as_echo_n "checking host system type... " >&6; }
7427if test "${ac_cv_host+set}" = set; then :
7428  $as_echo_n "(cached) " >&6
7429else
7430  if test "x$host_alias" = x; then
7431  ac_cv_host=$ac_cv_build
7432else
7433  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
7434    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
7435fi
7436
7437fi
7438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7439$as_echo "$ac_cv_host" >&6; }
7440case $ac_cv_host in
7441*-*-*) ;;
7442*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7443esac
7444host=$ac_cv_host
7445ac_save_IFS=$IFS; IFS='-'
7446set x $ac_cv_host
7447shift
7448host_cpu=$1
7449host_vendor=$2
7450shift; shift
7451# Remember, the first character of IFS is used to create $*,
7452# except with old shells:
7453host_os=$*
7454IFS=$ac_save_IFS
7455case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7456
7457
7458# Backslashify metacharacters that are still active within
7459# double-quoted strings.
7460sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7461
7462# Same as above, but do not quote variable references.
7463double_quote_subst='s/\(["`\\]\)/\\\1/g'
7464
7465# Sed substitution to delay expansion of an escaped shell variable in a
7466# double_quote_subst'ed string.
7467delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7468
7469# Sed substitution to delay expansion of an escaped single quote.
7470delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7471
7472# Sed substitution to avoid accidental globbing in evaled expressions
7473no_glob_subst='s/\*/\\\*/g'
7474
7475ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7476ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7477ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7478
7479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7480$as_echo_n "checking how to print strings... " >&6; }
7481# Test print first, because it will be a builtin if present.
7482if test "X`print -r -- -n 2>/dev/null`" = X-n && \
7483   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7484  ECHO='print -r --'
7485elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7486  ECHO='printf %s\n'
7487else
7488  # Use this function as a fallback that always works.
7489  func_fallback_echo ()
7490  {
7491    eval 'cat <<_LTECHO_EOF
7492$1
7493_LTECHO_EOF'
7494  }
7495  ECHO='func_fallback_echo'
7496fi
7497
7498# func_echo_all arg...
7499# Invoke $ECHO with all args, space-separated.
7500func_echo_all ()
7501{
7502    $ECHO ""
7503}
7504
7505case "$ECHO" in
7506  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7507$as_echo "printf" >&6; } ;;
7508  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7509$as_echo "print -r" >&6; } ;;
7510  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7511$as_echo "cat" >&6; } ;;
7512esac
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7528$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7529if test "${ac_cv_path_SED+set}" = set; then :
7530  $as_echo_n "(cached) " >&6
7531else
7532            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7533     for ac_i in 1 2 3 4 5 6 7; do
7534       ac_script="$ac_script$as_nl$ac_script"
7535     done
7536     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7537     { ac_script=; unset ac_script;}
7538     if test -z "$SED"; then
7539  ac_path_SED_found=false
7540  # Loop through the user's path and test for each of PROGNAME-LIST
7541  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7542for as_dir in $PATH
7543do
7544  IFS=$as_save_IFS
7545  test -z "$as_dir" && as_dir=.
7546    for ac_prog in sed gsed; do
7547    for ac_exec_ext in '' $ac_executable_extensions; do
7548      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7549      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7550# Check for GNU ac_path_SED and select it if it is found.
7551  # Check for GNU $ac_path_SED
7552case `"$ac_path_SED" --version 2>&1` in
7553*GNU*)
7554  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7555*)
7556  ac_count=0
7557  $as_echo_n 0123456789 >"conftest.in"
7558  while :
7559  do
7560    cat "conftest.in" "conftest.in" >"conftest.tmp"
7561    mv "conftest.tmp" "conftest.in"
7562    cp "conftest.in" "conftest.nl"
7563    $as_echo '' >> "conftest.nl"
7564    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7565    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7566    as_fn_arith $ac_count + 1 && ac_count=$as_val
7567    if test $ac_count -gt ${ac_path_SED_max-0}; then
7568      # Best one so far, save it but keep looking for a better one
7569      ac_cv_path_SED="$ac_path_SED"
7570      ac_path_SED_max=$ac_count
7571    fi
7572    # 10*(2^10) chars as input seems more than enough
7573    test $ac_count -gt 10 && break
7574  done
7575  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7576esac
7577
7578      $ac_path_SED_found && break 3
7579    done
7580  done
7581  done
7582IFS=$as_save_IFS
7583  if test -z "$ac_cv_path_SED"; then
7584    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7585  fi
7586else
7587  ac_cv_path_SED=$SED
7588fi
7589
7590fi
7591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7592$as_echo "$ac_cv_path_SED" >&6; }
7593 SED="$ac_cv_path_SED"
7594  rm -f conftest.sed
7595
7596test -z "$SED" && SED=sed
7597Xsed="$SED -e 1s/^X//"
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7610$as_echo_n "checking for fgrep... " >&6; }
7611if test "${ac_cv_path_FGREP+set}" = set; then :
7612  $as_echo_n "(cached) " >&6
7613else
7614  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7615   then ac_cv_path_FGREP="$GREP -F"
7616   else
7617     if test -z "$FGREP"; then
7618  ac_path_FGREP_found=false
7619  # Loop through the user's path and test for each of PROGNAME-LIST
7620  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7622do
7623  IFS=$as_save_IFS
7624  test -z "$as_dir" && as_dir=.
7625    for ac_prog in fgrep; do
7626    for ac_exec_ext in '' $ac_executable_extensions; do
7627      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7628      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7629# Check for GNU ac_path_FGREP and select it if it is found.
7630  # Check for GNU $ac_path_FGREP
7631case `"$ac_path_FGREP" --version 2>&1` in
7632*GNU*)
7633  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7634*)
7635  ac_count=0
7636  $as_echo_n 0123456789 >"conftest.in"
7637  while :
7638  do
7639    cat "conftest.in" "conftest.in" >"conftest.tmp"
7640    mv "conftest.tmp" "conftest.in"
7641    cp "conftest.in" "conftest.nl"
7642    $as_echo 'FGREP' >> "conftest.nl"
7643    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7644    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7645    as_fn_arith $ac_count + 1 && ac_count=$as_val
7646    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7647      # Best one so far, save it but keep looking for a better one
7648      ac_cv_path_FGREP="$ac_path_FGREP"
7649      ac_path_FGREP_max=$ac_count
7650    fi
7651    # 10*(2^10) chars as input seems more than enough
7652    test $ac_count -gt 10 && break
7653  done
7654  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7655esac
7656
7657      $ac_path_FGREP_found && break 3
7658    done
7659  done
7660  done
7661IFS=$as_save_IFS
7662  if test -z "$ac_cv_path_FGREP"; then
7663    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7664  fi
7665else
7666  ac_cv_path_FGREP=$FGREP
7667fi
7668
7669   fi
7670fi
7671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7672$as_echo "$ac_cv_path_FGREP" >&6; }
7673 FGREP="$ac_cv_path_FGREP"
7674
7675
7676test -z "$GREP" && GREP=grep
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696# Check whether --with-gnu-ld was given.
7697if test "${with_gnu_ld+set}" = set; then :
7698  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7699else
7700  with_gnu_ld=no
7701fi
7702
7703ac_prog=ld
7704if test "$GCC" = yes; then
7705  # Check if gcc -print-prog-name=ld gives a path.
7706  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7707$as_echo_n "checking for ld used by $CC... " >&6; }
7708  case $host in
7709  *-*-mingw*)
7710    # gcc leaves a trailing carriage return which upsets mingw
7711    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7712  *)
7713    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7714  esac
7715  case $ac_prog in
7716    # Accept absolute paths.
7717    [\\/]* | ?:[\\/]*)
7718      re_direlt='/[^/][^/]*/\.\./'
7719      # Canonicalize the pathname of ld
7720      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7721      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7722	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7723      done
7724      test -z "$LD" && LD="$ac_prog"
7725      ;;
7726  "")
7727    # If it fails, then pretend we aren't using GCC.
7728    ac_prog=ld
7729    ;;
7730  *)
7731    # If it is relative, then search for the first ld in PATH.
7732    with_gnu_ld=unknown
7733    ;;
7734  esac
7735elif test "$with_gnu_ld" = yes; then
7736  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7737$as_echo_n "checking for GNU ld... " >&6; }
7738else
7739  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7740$as_echo_n "checking for non-GNU ld... " >&6; }
7741fi
7742if test "${lt_cv_path_LD+set}" = set; then :
7743  $as_echo_n "(cached) " >&6
7744else
7745  if test -z "$LD"; then
7746  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7747  for ac_dir in $PATH; do
7748    IFS="$lt_save_ifs"
7749    test -z "$ac_dir" && ac_dir=.
7750    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7751      lt_cv_path_LD="$ac_dir/$ac_prog"
7752      # Check to see if the program is GNU ld.  I'd rather use --version,
7753      # but apparently some variants of GNU ld only accept -v.
7754      # Break only if it was the GNU/non-GNU ld that we prefer.
7755      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7756      *GNU* | *'with BFD'*)
7757	test "$with_gnu_ld" != no && break
7758	;;
7759      *)
7760	test "$with_gnu_ld" != yes && break
7761	;;
7762      esac
7763    fi
7764  done
7765  IFS="$lt_save_ifs"
7766else
7767  lt_cv_path_LD="$LD" # Let the user override the test with a path.
7768fi
7769fi
7770
7771LD="$lt_cv_path_LD"
7772if test -n "$LD"; then
7773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7774$as_echo "$LD" >&6; }
7775else
7776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7777$as_echo "no" >&6; }
7778fi
7779test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7781$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7782if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7783  $as_echo_n "(cached) " >&6
7784else
7785  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7786case `$LD -v 2>&1 </dev/null` in
7787*GNU* | *'with BFD'*)
7788  lt_cv_prog_gnu_ld=yes
7789  ;;
7790*)
7791  lt_cv_prog_gnu_ld=no
7792  ;;
7793esac
7794fi
7795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7796$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7797with_gnu_ld=$lt_cv_prog_gnu_ld
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7808$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7809if test "${lt_cv_path_NM+set}" = set; then :
7810  $as_echo_n "(cached) " >&6
7811else
7812  if test -n "$NM"; then
7813  # Let the user override the test.
7814  lt_cv_path_NM="$NM"
7815else
7816  lt_nm_to_check="${ac_tool_prefix}nm"
7817  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7818    lt_nm_to_check="$lt_nm_to_check nm"
7819  fi
7820  for lt_tmp_nm in $lt_nm_to_check; do
7821    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7822    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7823      IFS="$lt_save_ifs"
7824      test -z "$ac_dir" && ac_dir=.
7825      tmp_nm="$ac_dir/$lt_tmp_nm"
7826      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7827	# Check to see if the nm accepts a BSD-compat flag.
7828	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
7829	#   nm: unknown option "B" ignored
7830	# Tru64's nm complains that /dev/null is an invalid object file
7831	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7832	*/dev/null* | *'Invalid file or object type'*)
7833	  lt_cv_path_NM="$tmp_nm -B"
7834	  break
7835	  ;;
7836	*)
7837	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7838	  */dev/null*)
7839	    lt_cv_path_NM="$tmp_nm -p"
7840	    break
7841	    ;;
7842	  *)
7843	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7844	    continue # so that we can try to find one that supports BSD flags
7845	    ;;
7846	  esac
7847	  ;;
7848	esac
7849      fi
7850    done
7851    IFS="$lt_save_ifs"
7852  done
7853  : ${lt_cv_path_NM=no}
7854fi
7855fi
7856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7857$as_echo "$lt_cv_path_NM" >&6; }
7858if test "$lt_cv_path_NM" != "no"; then
7859  NM="$lt_cv_path_NM"
7860else
7861  # Didn't find any BSD compatible name lister, look for dumpbin.
7862  if test -n "$DUMPBIN"; then :
7863    # Let the user override the test.
7864  else
7865    if test -n "$ac_tool_prefix"; then
7866  for ac_prog in dumpbin "link -dump"
7867  do
7868    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7869set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7871$as_echo_n "checking for $ac_word... " >&6; }
7872if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7873  $as_echo_n "(cached) " >&6
7874else
7875  if test -n "$DUMPBIN"; then
7876  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7877else
7878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7879for as_dir in $PATH
7880do
7881  IFS=$as_save_IFS
7882  test -z "$as_dir" && as_dir=.
7883    for ac_exec_ext in '' $ac_executable_extensions; do
7884  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7885    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7886    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7887    break 2
7888  fi
7889done
7890  done
7891IFS=$as_save_IFS
7892
7893fi
7894fi
7895DUMPBIN=$ac_cv_prog_DUMPBIN
7896if test -n "$DUMPBIN"; then
7897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7898$as_echo "$DUMPBIN" >&6; }
7899else
7900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7901$as_echo "no" >&6; }
7902fi
7903
7904
7905    test -n "$DUMPBIN" && break
7906  done
7907fi
7908if test -z "$DUMPBIN"; then
7909  ac_ct_DUMPBIN=$DUMPBIN
7910  for ac_prog in dumpbin "link -dump"
7911do
7912  # Extract the first word of "$ac_prog", so it can be a program name with args.
7913set dummy $ac_prog; ac_word=$2
7914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7915$as_echo_n "checking for $ac_word... " >&6; }
7916if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7917  $as_echo_n "(cached) " >&6
7918else
7919  if test -n "$ac_ct_DUMPBIN"; then
7920  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7921else
7922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923for as_dir in $PATH
7924do
7925  IFS=$as_save_IFS
7926  test -z "$as_dir" && as_dir=.
7927    for ac_exec_ext in '' $ac_executable_extensions; do
7928  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7929    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7930    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7931    break 2
7932  fi
7933done
7934  done
7935IFS=$as_save_IFS
7936
7937fi
7938fi
7939ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7940if test -n "$ac_ct_DUMPBIN"; then
7941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7942$as_echo "$ac_ct_DUMPBIN" >&6; }
7943else
7944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7945$as_echo "no" >&6; }
7946fi
7947
7948
7949  test -n "$ac_ct_DUMPBIN" && break
7950done
7951
7952  if test "x$ac_ct_DUMPBIN" = x; then
7953    DUMPBIN=":"
7954  else
7955    case $cross_compiling:$ac_tool_warned in
7956yes:)
7957{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7958$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7959ac_tool_warned=yes ;;
7960esac
7961    DUMPBIN=$ac_ct_DUMPBIN
7962  fi
7963fi
7964
7965    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7966    *COFF*)
7967      DUMPBIN="$DUMPBIN -symbols"
7968      ;;
7969    *)
7970      DUMPBIN=:
7971      ;;
7972    esac
7973  fi
7974
7975  if test "$DUMPBIN" != ":"; then
7976    NM="$DUMPBIN"
7977  fi
7978fi
7979test -z "$NM" && NM=nm
7980
7981
7982
7983
7984
7985
7986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7987$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7988if test "${lt_cv_nm_interface+set}" = set; then :
7989  $as_echo_n "(cached) " >&6
7990else
7991  lt_cv_nm_interface="BSD nm"
7992  echo "int some_variable = 0;" > conftest.$ac_ext
7993  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7994  (eval "$ac_compile" 2>conftest.err)
7995  cat conftest.err >&5
7996  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7997  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7998  cat conftest.err >&5
7999  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8000  cat conftest.out >&5
8001  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8002    lt_cv_nm_interface="MS dumpbin"
8003  fi
8004  rm -f conftest*
8005fi
8006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8007$as_echo "$lt_cv_nm_interface" >&6; }
8008
8009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8010$as_echo_n "checking whether ln -s works... " >&6; }
8011LN_S=$as_ln_s
8012if test "$LN_S" = "ln -s"; then
8013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8014$as_echo "yes" >&6; }
8015else
8016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8017$as_echo "no, using $LN_S" >&6; }
8018fi
8019
8020# find the maximum length of command line arguments
8021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8022$as_echo_n "checking the maximum length of command line arguments... " >&6; }
8023if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
8024  $as_echo_n "(cached) " >&6
8025else
8026    i=0
8027  teststring="ABCD"
8028
8029  case $build_os in
8030  msdosdjgpp*)
8031    # On DJGPP, this test can blow up pretty badly due to problems in libc
8032    # (any single argument exceeding 2000 bytes causes a buffer overrun
8033    # during glob expansion).  Even if it were fixed, the result of this
8034    # check would be larger than it should be.
8035    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8036    ;;
8037
8038  gnu*)
8039    # Under GNU Hurd, this test is not required because there is
8040    # no limit to the length of command line arguments.
8041    # Libtool will interpret -1 as no limit whatsoever
8042    lt_cv_sys_max_cmd_len=-1;
8043    ;;
8044
8045  cygwin* | mingw* | cegcc*)
8046    # On Win9x/ME, this test blows up -- it succeeds, but takes
8047    # about 5 minutes as the teststring grows exponentially.
8048    # Worse, since 9x/ME are not pre-emptively multitasking,
8049    # you end up with a "frozen" computer, even though with patience
8050    # the test eventually succeeds (with a max line length of 256k).
8051    # Instead, let's just punt: use the minimum linelength reported by
8052    # all of the supported platforms: 8192 (on NT/2K/XP).
8053    lt_cv_sys_max_cmd_len=8192;
8054    ;;
8055
8056  mint*)
8057    # On MiNT this can take a long time and run out of memory.
8058    lt_cv_sys_max_cmd_len=8192;
8059    ;;
8060
8061  amigaos*)
8062    # On AmigaOS with pdksh, this test takes hours, literally.
8063    # So we just punt and use a minimum line length of 8192.
8064    lt_cv_sys_max_cmd_len=8192;
8065    ;;
8066
8067  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8068    # This has been around since 386BSD, at least.  Likely further.
8069    if test -x /sbin/sysctl; then
8070      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8071    elif test -x /usr/sbin/sysctl; then
8072      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8073    else
8074      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
8075    fi
8076    # And add a safety zone
8077    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8078    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8079    ;;
8080
8081  interix*)
8082    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8083    lt_cv_sys_max_cmd_len=196608
8084    ;;
8085
8086  osf*)
8087    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8088    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8089    # nice to cause kernel panics so lets avoid the loop below.
8090    # First set a reasonable default.
8091    lt_cv_sys_max_cmd_len=16384
8092    #
8093    if test -x /sbin/sysconfig; then
8094      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8095        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8096      esac
8097    fi
8098    ;;
8099  sco3.2v5*)
8100    lt_cv_sys_max_cmd_len=102400
8101    ;;
8102  sysv5* | sco5v6* | sysv4.2uw2*)
8103    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8104    if test -n "$kargmax"; then
8105      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
8106    else
8107      lt_cv_sys_max_cmd_len=32768
8108    fi
8109    ;;
8110  *)
8111    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8112    if test -n "$lt_cv_sys_max_cmd_len"; then
8113      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8114      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8115    else
8116      # Make teststring a little bigger before we do anything with it.
8117      # a 1K string should be a reasonable start.
8118      for i in 1 2 3 4 5 6 7 8 ; do
8119        teststring=$teststring$teststring
8120      done
8121      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8122      # If test is not a shell built-in, we'll probably end up computing a
8123      # maximum length that is only half of the actual maximum length, but
8124      # we can't tell.
8125      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
8126	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8127	      test $i != 17 # 1/2 MB should be enough
8128      do
8129        i=`expr $i + 1`
8130        teststring=$teststring$teststring
8131      done
8132      # Only check the string length outside the loop.
8133      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8134      teststring=
8135      # Add a significant safety factor because C++ compilers can tack on
8136      # massive amounts of additional arguments before passing them to the
8137      # linker.  It appears as though 1/2 is a usable value.
8138      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8139    fi
8140    ;;
8141  esac
8142
8143fi
8144
8145if test -n $lt_cv_sys_max_cmd_len ; then
8146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8147$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8148else
8149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8150$as_echo "none" >&6; }
8151fi
8152max_cmd_len=$lt_cv_sys_max_cmd_len
8153
8154
8155
8156
8157
8158
8159: ${CP="cp -f"}
8160: ${MV="mv -f"}
8161: ${RM="rm -f"}
8162
8163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8164$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8165# Try some XSI features
8166xsi_shell=no
8167( _lt_dummy="a/b/c"
8168  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8169      = c,a/b,, \
8170    && eval 'test $(( 1 + 1 )) -eq 2 \
8171    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8172  && xsi_shell=yes
8173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8174$as_echo "$xsi_shell" >&6; }
8175
8176
8177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8178$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8179lt_shell_append=no
8180( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8181    >/dev/null 2>&1 \
8182  && lt_shell_append=yes
8183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8184$as_echo "$lt_shell_append" >&6; }
8185
8186
8187if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8188  lt_unset=unset
8189else
8190  lt_unset=false
8191fi
8192
8193
8194
8195
8196
8197# test EBCDIC or ASCII
8198case `echo X|tr X '\101'` in
8199 A) # ASCII based system
8200    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8201  lt_SP2NL='tr \040 \012'
8202  lt_NL2SP='tr \015\012 \040\040'
8203  ;;
8204 *) # EBCDIC based system
8205  lt_SP2NL='tr \100 \n'
8206  lt_NL2SP='tr \r\n \100\100'
8207  ;;
8208esac
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8219$as_echo_n "checking for $LD option to reload object files... " >&6; }
8220if test "${lt_cv_ld_reload_flag+set}" = set; then :
8221  $as_echo_n "(cached) " >&6
8222else
8223  lt_cv_ld_reload_flag='-r'
8224fi
8225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8226$as_echo "$lt_cv_ld_reload_flag" >&6; }
8227reload_flag=$lt_cv_ld_reload_flag
8228case $reload_flag in
8229"" | " "*) ;;
8230*) reload_flag=" $reload_flag" ;;
8231esac
8232reload_cmds='$LD$reload_flag -o $output$reload_objs'
8233case $host_os in
8234  darwin*)
8235    if test "$GCC" = yes; then
8236      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8237    else
8238      reload_cmds='$LD$reload_flag -o $output$reload_objs'
8239    fi
8240    ;;
8241esac
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251if test -n "$ac_tool_prefix"; then
8252  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8253set dummy ${ac_tool_prefix}objdump; ac_word=$2
8254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8255$as_echo_n "checking for $ac_word... " >&6; }
8256if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8257  $as_echo_n "(cached) " >&6
8258else
8259  if test -n "$OBJDUMP"; then
8260  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8261else
8262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8263for as_dir in $PATH
8264do
8265  IFS=$as_save_IFS
8266  test -z "$as_dir" && as_dir=.
8267    for ac_exec_ext in '' $ac_executable_extensions; do
8268  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8269    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8270    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8271    break 2
8272  fi
8273done
8274  done
8275IFS=$as_save_IFS
8276
8277fi
8278fi
8279OBJDUMP=$ac_cv_prog_OBJDUMP
8280if test -n "$OBJDUMP"; then
8281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8282$as_echo "$OBJDUMP" >&6; }
8283else
8284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8285$as_echo "no" >&6; }
8286fi
8287
8288
8289fi
8290if test -z "$ac_cv_prog_OBJDUMP"; then
8291  ac_ct_OBJDUMP=$OBJDUMP
8292  # Extract the first word of "objdump", so it can be a program name with args.
8293set dummy objdump; ac_word=$2
8294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8295$as_echo_n "checking for $ac_word... " >&6; }
8296if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
8297  $as_echo_n "(cached) " >&6
8298else
8299  if test -n "$ac_ct_OBJDUMP"; then
8300  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8301else
8302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8303for as_dir in $PATH
8304do
8305  IFS=$as_save_IFS
8306  test -z "$as_dir" && as_dir=.
8307    for ac_exec_ext in '' $ac_executable_extensions; do
8308  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8309    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8310    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8311    break 2
8312  fi
8313done
8314  done
8315IFS=$as_save_IFS
8316
8317fi
8318fi
8319ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8320if test -n "$ac_ct_OBJDUMP"; then
8321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8322$as_echo "$ac_ct_OBJDUMP" >&6; }
8323else
8324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8325$as_echo "no" >&6; }
8326fi
8327
8328  if test "x$ac_ct_OBJDUMP" = x; then
8329    OBJDUMP="false"
8330  else
8331    case $cross_compiling:$ac_tool_warned in
8332yes:)
8333{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8334$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8335ac_tool_warned=yes ;;
8336esac
8337    OBJDUMP=$ac_ct_OBJDUMP
8338  fi
8339else
8340  OBJDUMP="$ac_cv_prog_OBJDUMP"
8341fi
8342
8343test -z "$OBJDUMP" && OBJDUMP=objdump
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8354$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8355if test "${lt_cv_deplibs_check_method+set}" = set; then :
8356  $as_echo_n "(cached) " >&6
8357else
8358  lt_cv_file_magic_cmd='$MAGIC_CMD'
8359lt_cv_file_magic_test_file=
8360lt_cv_deplibs_check_method='unknown'
8361# Need to set the preceding variable on all platforms that support
8362# interlibrary dependencies.
8363# 'none' -- dependencies not supported.
8364# `unknown' -- same as none, but documents that we really don't know.
8365# 'pass_all' -- all dependencies passed with no checks.
8366# 'test_compile' -- check by making test program.
8367# 'file_magic [[regex]]' -- check by looking for files in library path
8368# which responds to the $file_magic_cmd with a given extended regex.
8369# If you have `file' or equivalent on your system and you're not sure
8370# whether `pass_all' will *always* work, you probably want this one.
8371
8372case $host_os in
8373aix[4-9]*)
8374  lt_cv_deplibs_check_method=pass_all
8375  ;;
8376
8377beos*)
8378  lt_cv_deplibs_check_method=pass_all
8379  ;;
8380
8381bsdi[45]*)
8382  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8383  lt_cv_file_magic_cmd='/usr/bin/file -L'
8384  lt_cv_file_magic_test_file=/shlib/libc.so
8385  ;;
8386
8387cygwin*)
8388  # func_win32_libid is a shell function defined in ltmain.sh
8389  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8390  lt_cv_file_magic_cmd='func_win32_libid'
8391  ;;
8392
8393mingw* | pw32*)
8394  # Base MSYS/MinGW do not provide the 'file' command needed by
8395  # func_win32_libid shell function, so use a weaker test based on 'objdump',
8396  # unless we find 'file', for example because we are cross-compiling.
8397  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
8398  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
8399    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8400    lt_cv_file_magic_cmd='func_win32_libid'
8401  else
8402    # Keep this pattern in sync with the one in func_win32_libid.
8403    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8404    lt_cv_file_magic_cmd='$OBJDUMP -f'
8405  fi
8406  ;;
8407
8408cegcc*)
8409  # use the weaker test based on 'objdump'. See mingw*.
8410  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8411  lt_cv_file_magic_cmd='$OBJDUMP -f'
8412  ;;
8413
8414darwin* | rhapsody*)
8415  lt_cv_deplibs_check_method=pass_all
8416  ;;
8417
8418freebsd* | dragonfly*)
8419  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8420    case $host_cpu in
8421    i*86 )
8422      # Not sure whether the presence of OpenBSD here was a mistake.
8423      # Let's accept both of them until this is cleared up.
8424      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8425      lt_cv_file_magic_cmd=/usr/bin/file
8426      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8427      ;;
8428    esac
8429  else
8430    lt_cv_deplibs_check_method=pass_all
8431  fi
8432  ;;
8433
8434gnu*)
8435  lt_cv_deplibs_check_method=pass_all
8436  ;;
8437
8438haiku*)
8439  lt_cv_deplibs_check_method=pass_all
8440  ;;
8441
8442hpux10.20* | hpux11*)
8443  lt_cv_file_magic_cmd=/usr/bin/file
8444  case $host_cpu in
8445  ia64*)
8446    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8447    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8448    ;;
8449  hppa*64*)
8450    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]'
8451    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8452    ;;
8453  *)
8454    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8455    lt_cv_file_magic_test_file=/usr/lib/libc.sl
8456    ;;
8457  esac
8458  ;;
8459
8460interix[3-9]*)
8461  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8462  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8463  ;;
8464
8465irix5* | irix6* | nonstopux*)
8466  case $LD in
8467  *-32|*"-32 ") libmagic=32-bit;;
8468  *-n32|*"-n32 ") libmagic=N32;;
8469  *-64|*"-64 ") libmagic=64-bit;;
8470  *) libmagic=never-match;;
8471  esac
8472  lt_cv_deplibs_check_method=pass_all
8473  ;;
8474
8475# This must be Linux ELF.
8476linux* | k*bsd*-gnu | kopensolaris*-gnu)
8477  lt_cv_deplibs_check_method=pass_all
8478  ;;
8479
8480netbsd*)
8481  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8482    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8483  else
8484    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8485  fi
8486  ;;
8487
8488newos6*)
8489  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8490  lt_cv_file_magic_cmd=/usr/bin/file
8491  lt_cv_file_magic_test_file=/usr/lib/libnls.so
8492  ;;
8493
8494*nto* | *qnx*)
8495  lt_cv_deplibs_check_method=pass_all
8496  ;;
8497
8498openbsd*)
8499  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8500    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8501  else
8502    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8503  fi
8504  ;;
8505
8506osf3* | osf4* | osf5*)
8507  lt_cv_deplibs_check_method=pass_all
8508  ;;
8509
8510rdos*)
8511  lt_cv_deplibs_check_method=pass_all
8512  ;;
8513
8514solaris*)
8515  lt_cv_deplibs_check_method=pass_all
8516  ;;
8517
8518sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8519  lt_cv_deplibs_check_method=pass_all
8520  ;;
8521
8522sysv4 | sysv4.3*)
8523  case $host_vendor in
8524  motorola)
8525    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]'
8526    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8527    ;;
8528  ncr)
8529    lt_cv_deplibs_check_method=pass_all
8530    ;;
8531  sequent)
8532    lt_cv_file_magic_cmd='/bin/file'
8533    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8534    ;;
8535  sni)
8536    lt_cv_file_magic_cmd='/bin/file'
8537    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8538    lt_cv_file_magic_test_file=/lib/libc.so
8539    ;;
8540  siemens)
8541    lt_cv_deplibs_check_method=pass_all
8542    ;;
8543  pc)
8544    lt_cv_deplibs_check_method=pass_all
8545    ;;
8546  esac
8547  ;;
8548
8549tpf*)
8550  lt_cv_deplibs_check_method=pass_all
8551  ;;
8552esac
8553
8554fi
8555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8556$as_echo "$lt_cv_deplibs_check_method" >&6; }
8557file_magic_cmd=$lt_cv_file_magic_cmd
8558deplibs_check_method=$lt_cv_deplibs_check_method
8559test -z "$deplibs_check_method" && deplibs_check_method=unknown
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572if test -n "$ac_tool_prefix"; then
8573  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8574set dummy ${ac_tool_prefix}ar; ac_word=$2
8575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8576$as_echo_n "checking for $ac_word... " >&6; }
8577if test "${ac_cv_prog_AR+set}" = set; then :
8578  $as_echo_n "(cached) " >&6
8579else
8580  if test -n "$AR"; then
8581  ac_cv_prog_AR="$AR" # Let the user override the test.
8582else
8583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8584for as_dir in $PATH
8585do
8586  IFS=$as_save_IFS
8587  test -z "$as_dir" && as_dir=.
8588    for ac_exec_ext in '' $ac_executable_extensions; do
8589  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8590    ac_cv_prog_AR="${ac_tool_prefix}ar"
8591    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8592    break 2
8593  fi
8594done
8595  done
8596IFS=$as_save_IFS
8597
8598fi
8599fi
8600AR=$ac_cv_prog_AR
8601if test -n "$AR"; then
8602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8603$as_echo "$AR" >&6; }
8604else
8605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8606$as_echo "no" >&6; }
8607fi
8608
8609
8610fi
8611if test -z "$ac_cv_prog_AR"; then
8612  ac_ct_AR=$AR
8613  # Extract the first word of "ar", so it can be a program name with args.
8614set dummy ar; ac_word=$2
8615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8616$as_echo_n "checking for $ac_word... " >&6; }
8617if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8618  $as_echo_n "(cached) " >&6
8619else
8620  if test -n "$ac_ct_AR"; then
8621  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8622else
8623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8624for as_dir in $PATH
8625do
8626  IFS=$as_save_IFS
8627  test -z "$as_dir" && as_dir=.
8628    for ac_exec_ext in '' $ac_executable_extensions; do
8629  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8630    ac_cv_prog_ac_ct_AR="ar"
8631    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8632    break 2
8633  fi
8634done
8635  done
8636IFS=$as_save_IFS
8637
8638fi
8639fi
8640ac_ct_AR=$ac_cv_prog_ac_ct_AR
8641if test -n "$ac_ct_AR"; then
8642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8643$as_echo "$ac_ct_AR" >&6; }
8644else
8645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8646$as_echo "no" >&6; }
8647fi
8648
8649  if test "x$ac_ct_AR" = x; then
8650    AR="false"
8651  else
8652    case $cross_compiling:$ac_tool_warned in
8653yes:)
8654{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8655$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8656ac_tool_warned=yes ;;
8657esac
8658    AR=$ac_ct_AR
8659  fi
8660else
8661  AR="$ac_cv_prog_AR"
8662fi
8663
8664test -z "$AR" && AR=ar
8665test -z "$AR_FLAGS" && AR_FLAGS=cru
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677if test -n "$ac_tool_prefix"; then
8678  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8679set dummy ${ac_tool_prefix}strip; ac_word=$2
8680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8681$as_echo_n "checking for $ac_word... " >&6; }
8682if test "${ac_cv_prog_STRIP+set}" = set; then :
8683  $as_echo_n "(cached) " >&6
8684else
8685  if test -n "$STRIP"; then
8686  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8687else
8688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8689for as_dir in $PATH
8690do
8691  IFS=$as_save_IFS
8692  test -z "$as_dir" && as_dir=.
8693    for ac_exec_ext in '' $ac_executable_extensions; do
8694  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8695    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8696    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8697    break 2
8698  fi
8699done
8700  done
8701IFS=$as_save_IFS
8702
8703fi
8704fi
8705STRIP=$ac_cv_prog_STRIP
8706if test -n "$STRIP"; then
8707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8708$as_echo "$STRIP" >&6; }
8709else
8710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8711$as_echo "no" >&6; }
8712fi
8713
8714
8715fi
8716if test -z "$ac_cv_prog_STRIP"; then
8717  ac_ct_STRIP=$STRIP
8718  # Extract the first word of "strip", so it can be a program name with args.
8719set dummy strip; ac_word=$2
8720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8721$as_echo_n "checking for $ac_word... " >&6; }
8722if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8723  $as_echo_n "(cached) " >&6
8724else
8725  if test -n "$ac_ct_STRIP"; then
8726  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8727else
8728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8729for as_dir in $PATH
8730do
8731  IFS=$as_save_IFS
8732  test -z "$as_dir" && as_dir=.
8733    for ac_exec_ext in '' $ac_executable_extensions; do
8734  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8735    ac_cv_prog_ac_ct_STRIP="strip"
8736    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8737    break 2
8738  fi
8739done
8740  done
8741IFS=$as_save_IFS
8742
8743fi
8744fi
8745ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8746if test -n "$ac_ct_STRIP"; then
8747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8748$as_echo "$ac_ct_STRIP" >&6; }
8749else
8750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8751$as_echo "no" >&6; }
8752fi
8753
8754  if test "x$ac_ct_STRIP" = x; then
8755    STRIP=":"
8756  else
8757    case $cross_compiling:$ac_tool_warned in
8758yes:)
8759{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8760$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8761ac_tool_warned=yes ;;
8762esac
8763    STRIP=$ac_ct_STRIP
8764  fi
8765else
8766  STRIP="$ac_cv_prog_STRIP"
8767fi
8768
8769test -z "$STRIP" && STRIP=:
8770
8771
8772
8773
8774
8775
8776if test -n "$ac_tool_prefix"; then
8777  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8778set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8780$as_echo_n "checking for $ac_word... " >&6; }
8781if test "${ac_cv_prog_RANLIB+set}" = set; then :
8782  $as_echo_n "(cached) " >&6
8783else
8784  if test -n "$RANLIB"; then
8785  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8786else
8787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8788for as_dir in $PATH
8789do
8790  IFS=$as_save_IFS
8791  test -z "$as_dir" && as_dir=.
8792    for ac_exec_ext in '' $ac_executable_extensions; do
8793  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8794    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8795    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8796    break 2
8797  fi
8798done
8799  done
8800IFS=$as_save_IFS
8801
8802fi
8803fi
8804RANLIB=$ac_cv_prog_RANLIB
8805if test -n "$RANLIB"; then
8806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8807$as_echo "$RANLIB" >&6; }
8808else
8809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8810$as_echo "no" >&6; }
8811fi
8812
8813
8814fi
8815if test -z "$ac_cv_prog_RANLIB"; then
8816  ac_ct_RANLIB=$RANLIB
8817  # Extract the first word of "ranlib", so it can be a program name with args.
8818set dummy ranlib; ac_word=$2
8819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8820$as_echo_n "checking for $ac_word... " >&6; }
8821if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8822  $as_echo_n "(cached) " >&6
8823else
8824  if test -n "$ac_ct_RANLIB"; then
8825  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8826else
8827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8828for as_dir in $PATH
8829do
8830  IFS=$as_save_IFS
8831  test -z "$as_dir" && as_dir=.
8832    for ac_exec_ext in '' $ac_executable_extensions; do
8833  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8834    ac_cv_prog_ac_ct_RANLIB="ranlib"
8835    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8836    break 2
8837  fi
8838done
8839  done
8840IFS=$as_save_IFS
8841
8842fi
8843fi
8844ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8845if test -n "$ac_ct_RANLIB"; then
8846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8847$as_echo "$ac_ct_RANLIB" >&6; }
8848else
8849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8850$as_echo "no" >&6; }
8851fi
8852
8853  if test "x$ac_ct_RANLIB" = x; then
8854    RANLIB=":"
8855  else
8856    case $cross_compiling:$ac_tool_warned in
8857yes:)
8858{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8859$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8860ac_tool_warned=yes ;;
8861esac
8862    RANLIB=$ac_ct_RANLIB
8863  fi
8864else
8865  RANLIB="$ac_cv_prog_RANLIB"
8866fi
8867
8868test -z "$RANLIB" && RANLIB=:
8869
8870
8871
8872
8873
8874
8875# Determine commands to create old-style static archives.
8876old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8877old_postinstall_cmds='chmod 644 $oldlib'
8878old_postuninstall_cmds=
8879
8880if test -n "$RANLIB"; then
8881  case $host_os in
8882  openbsd*)
8883    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8884    ;;
8885  *)
8886    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8887    ;;
8888  esac
8889  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8890fi
8891
8892case $host_os in
8893  darwin*)
8894    lock_old_archive_extraction=yes ;;
8895  *)
8896    lock_old_archive_extraction=no ;;
8897esac
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919for ac_prog in gawk mawk nawk awk
8920do
8921  # Extract the first word of "$ac_prog", so it can be a program name with args.
8922set dummy $ac_prog; ac_word=$2
8923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8924$as_echo_n "checking for $ac_word... " >&6; }
8925if test "${ac_cv_prog_AWK+set}" = set; then :
8926  $as_echo_n "(cached) " >&6
8927else
8928  if test -n "$AWK"; then
8929  ac_cv_prog_AWK="$AWK" # Let the user override the test.
8930else
8931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8932for as_dir in $PATH
8933do
8934  IFS=$as_save_IFS
8935  test -z "$as_dir" && as_dir=.
8936    for ac_exec_ext in '' $ac_executable_extensions; do
8937  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8938    ac_cv_prog_AWK="$ac_prog"
8939    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8940    break 2
8941  fi
8942done
8943  done
8944IFS=$as_save_IFS
8945
8946fi
8947fi
8948AWK=$ac_cv_prog_AWK
8949if test -n "$AWK"; then
8950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8951$as_echo "$AWK" >&6; }
8952else
8953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8954$as_echo "no" >&6; }
8955fi
8956
8957
8958  test -n "$AWK" && break
8959done
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979# If no C compiler was specified, use CC.
8980LTCC=${LTCC-"$CC"}
8981
8982# If no C compiler flags were specified, use CFLAGS.
8983LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8984
8985# Allow CC to be a program name with arguments.
8986compiler=$CC
8987
8988
8989# Check for command to grab the raw symbol name followed by C symbol from nm.
8990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8991$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8992if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8993  $as_echo_n "(cached) " >&6
8994else
8995
8996# These are sane defaults that work on at least a few old systems.
8997# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8998
8999# Character class describing NM global symbol codes.
9000symcode='[BCDEGRST]'
9001
9002# Regexp to match symbols that can be accessed directly from C.
9003sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9004
9005# Define system-specific variables.
9006case $host_os in
9007aix*)
9008  symcode='[BCDT]'
9009  ;;
9010cygwin* | mingw* | pw32* | cegcc*)
9011  symcode='[ABCDGISTW]'
9012  ;;
9013hpux*)
9014  if test "$host_cpu" = ia64; then
9015    symcode='[ABCDEGRST]'
9016  fi
9017  ;;
9018irix* | nonstopux*)
9019  symcode='[BCDEGRST]'
9020  ;;
9021osf*)
9022  symcode='[BCDEGQRST]'
9023  ;;
9024solaris*)
9025  symcode='[BDRT]'
9026  ;;
9027sco3.2v5*)
9028  symcode='[DT]'
9029  ;;
9030sysv4.2uw2*)
9031  symcode='[DT]'
9032  ;;
9033sysv5* | sco5v6* | unixware* | OpenUNIX*)
9034  symcode='[ABDT]'
9035  ;;
9036sysv4)
9037  symcode='[DFNSTU]'
9038  ;;
9039esac
9040
9041# If we're using GNU nm, then use its standard symbol codes.
9042case `$NM -V 2>&1` in
9043*GNU* | *'with BFD'*)
9044  symcode='[ABCDGIRSTW]' ;;
9045esac
9046
9047# Transform an extracted symbol line into a proper C declaration.
9048# Some systems (esp. on ia64) link data and code symbols differently,
9049# so use this general approach.
9050lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9051
9052# Transform an extracted symbol line into symbol name and symbol address
9053lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
9054lt_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'"
9055
9056# Handle CRLF in mingw tool chain
9057opt_cr=
9058case $build_os in
9059mingw*)
9060  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9061  ;;
9062esac
9063
9064# Try without a prefix underscore, then with it.
9065for ac_symprfx in "" "_"; do
9066
9067  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9068  symxfrm="\\1 $ac_symprfx\\2 \\2"
9069
9070  # Write the raw and C identifiers.
9071  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9072    # Fake it for dumpbin and say T for any non-static function
9073    # and D for any global variable.
9074    # Also find C++ and __fastcall symbols from MSVC++,
9075    # which start with @ or ?.
9076    lt_cv_sys_global_symbol_pipe="$AWK '"\
9077"     {last_section=section; section=\$ 3};"\
9078"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9079"     \$ 0!~/External *\|/{next};"\
9080"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9081"     {if(hide[section]) next};"\
9082"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9083"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9084"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
9085"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9086"     ' prfx=^$ac_symprfx"
9087  else
9088    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9089  fi
9090
9091  # Check to see that the pipe works correctly.
9092  pipe_works=no
9093
9094  rm -f conftest*
9095  cat > conftest.$ac_ext <<_LT_EOF
9096#ifdef __cplusplus
9097extern "C" {
9098#endif
9099char nm_test_var;
9100void nm_test_func(void);
9101void nm_test_func(void){}
9102#ifdef __cplusplus
9103}
9104#endif
9105int main(){nm_test_var='a';nm_test_func();return(0);}
9106_LT_EOF
9107
9108  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9109  (eval $ac_compile) 2>&5
9110  ac_status=$?
9111  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9112  test $ac_status = 0; }; then
9113    # Now try to grab the symbols.
9114    nlist=conftest.nm
9115    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9116  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9117  ac_status=$?
9118  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9119  test $ac_status = 0; } && test -s "$nlist"; then
9120      # Try sorting and uniquifying the output.
9121      if sort "$nlist" | uniq > "$nlist"T; then
9122	mv -f "$nlist"T "$nlist"
9123      else
9124	rm -f "$nlist"T
9125      fi
9126
9127      # Make sure that we snagged all the symbols we need.
9128      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9129	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9130	  cat <<_LT_EOF > conftest.$ac_ext
9131#ifdef __cplusplus
9132extern "C" {
9133#endif
9134
9135_LT_EOF
9136	  # Now generate the symbol file.
9137	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9138
9139	  cat <<_LT_EOF >> conftest.$ac_ext
9140
9141/* The mapping between symbol names and symbols.  */
9142const struct {
9143  const char *name;
9144  void       *address;
9145}
9146lt__PROGRAM__LTX_preloaded_symbols[] =
9147{
9148  { "@PROGRAM@", (void *) 0 },
9149_LT_EOF
9150	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9151	  cat <<\_LT_EOF >> conftest.$ac_ext
9152  {0, (void *) 0}
9153};
9154
9155/* This works around a problem in FreeBSD linker */
9156#ifdef FREEBSD_WORKAROUND
9157static const void *lt_preloaded_setup() {
9158  return lt__PROGRAM__LTX_preloaded_symbols;
9159}
9160#endif
9161
9162#ifdef __cplusplus
9163}
9164#endif
9165_LT_EOF
9166	  # Now try linking the two files.
9167	  mv conftest.$ac_objext conftstm.$ac_objext
9168	  lt_save_LIBS="$LIBS"
9169	  lt_save_CFLAGS="$CFLAGS"
9170	  LIBS="conftstm.$ac_objext"
9171	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9172	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9173  (eval $ac_link) 2>&5
9174  ac_status=$?
9175  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9176  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9177	    pipe_works=yes
9178	  fi
9179	  LIBS="$lt_save_LIBS"
9180	  CFLAGS="$lt_save_CFLAGS"
9181	else
9182	  echo "cannot find nm_test_func in $nlist" >&5
9183	fi
9184      else
9185	echo "cannot find nm_test_var in $nlist" >&5
9186      fi
9187    else
9188      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9189    fi
9190  else
9191    echo "$progname: failed program was:" >&5
9192    cat conftest.$ac_ext >&5
9193  fi
9194  rm -rf conftest* conftst*
9195
9196  # Do not use the global_symbol_pipe unless it works.
9197  if test "$pipe_works" = yes; then
9198    break
9199  else
9200    lt_cv_sys_global_symbol_pipe=
9201  fi
9202done
9203
9204fi
9205
9206if test -z "$lt_cv_sys_global_symbol_pipe"; then
9207  lt_cv_sys_global_symbol_to_cdecl=
9208fi
9209if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9211$as_echo "failed" >&6; }
9212else
9213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9214$as_echo "ok" >&6; }
9215fi
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238# Check whether --enable-libtool-lock was given.
9239if test "${enable_libtool_lock+set}" = set; then :
9240  enableval=$enable_libtool_lock;
9241fi
9242
9243test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9244
9245# Some flags need to be propagated to the compiler or linker for good
9246# libtool support.
9247case $host in
9248ia64-*-hpux*)
9249  # Find out which ABI we are using.
9250  echo 'int i;' > conftest.$ac_ext
9251  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9252  (eval $ac_compile) 2>&5
9253  ac_status=$?
9254  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9255  test $ac_status = 0; }; then
9256    case `/usr/bin/file conftest.$ac_objext` in
9257      *ELF-32*)
9258	HPUX_IA64_MODE="32"
9259	;;
9260      *ELF-64*)
9261	HPUX_IA64_MODE="64"
9262	;;
9263    esac
9264  fi
9265  rm -rf conftest*
9266  ;;
9267*-*-irix6*)
9268  # Find out which ABI we are using.
9269  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9270  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9271  (eval $ac_compile) 2>&5
9272  ac_status=$?
9273  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9274  test $ac_status = 0; }; then
9275    if test "$lt_cv_prog_gnu_ld" = yes; then
9276      case `/usr/bin/file conftest.$ac_objext` in
9277	*32-bit*)
9278	  LD="${LD-ld} -melf32bsmip"
9279	  ;;
9280	*N32*)
9281	  LD="${LD-ld} -melf32bmipn32"
9282	  ;;
9283	*64-bit*)
9284	  LD="${LD-ld} -melf64bmip"
9285	;;
9286      esac
9287    else
9288      case `/usr/bin/file conftest.$ac_objext` in
9289	*32-bit*)
9290	  LD="${LD-ld} -32"
9291	  ;;
9292	*N32*)
9293	  LD="${LD-ld} -n32"
9294	  ;;
9295	*64-bit*)
9296	  LD="${LD-ld} -64"
9297	  ;;
9298      esac
9299    fi
9300  fi
9301  rm -rf conftest*
9302  ;;
9303
9304x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9305s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9306  # Find out which ABI we are using.
9307  echo 'int i;' > conftest.$ac_ext
9308  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9309  (eval $ac_compile) 2>&5
9310  ac_status=$?
9311  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9312  test $ac_status = 0; }; then
9313    case `/usr/bin/file conftest.o` in
9314      *32-bit*)
9315	case $host in
9316	  x86_64-*kfreebsd*-gnu)
9317	    LD="${LD-ld} -m elf_i386_fbsd"
9318	    ;;
9319	  x86_64-*linux*)
9320	    LD="${LD-ld} -m elf_i386"
9321	    ;;
9322	  ppc64-*linux*|powerpc64-*linux*)
9323	    LD="${LD-ld} -m elf32ppclinux"
9324	    ;;
9325	  s390x-*linux*)
9326	    LD="${LD-ld} -m elf_s390"
9327	    ;;
9328	  sparc64-*linux*)
9329	    LD="${LD-ld} -m elf32_sparc"
9330	    ;;
9331	esac
9332	;;
9333      *64-bit*)
9334	case $host in
9335	  x86_64-*kfreebsd*-gnu)
9336	    LD="${LD-ld} -m elf_x86_64_fbsd"
9337	    ;;
9338	  x86_64-*linux*)
9339	    LD="${LD-ld} -m elf_x86_64"
9340	    ;;
9341	  ppc*-*linux*|powerpc*-*linux*)
9342	    LD="${LD-ld} -m elf64ppc"
9343	    ;;
9344	  s390*-*linux*|s390*-*tpf*)
9345	    LD="${LD-ld} -m elf64_s390"
9346	    ;;
9347	  sparc*-*linux*)
9348	    LD="${LD-ld} -m elf64_sparc"
9349	    ;;
9350	esac
9351	;;
9352    esac
9353  fi
9354  rm -rf conftest*
9355  ;;
9356
9357*-*-sco3.2v5*)
9358  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9359  SAVE_CFLAGS="$CFLAGS"
9360  CFLAGS="$CFLAGS -belf"
9361  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9362$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9363if test "${lt_cv_cc_needs_belf+set}" = set; then :
9364  $as_echo_n "(cached) " >&6
9365else
9366  ac_ext=c
9367ac_cpp='$CPP $CPPFLAGS'
9368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9370ac_compiler_gnu=$ac_cv_c_compiler_gnu
9371
9372     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9373/* end confdefs.h.  */
9374
9375int
9376main ()
9377{
9378
9379  ;
9380  return 0;
9381}
9382_ACEOF
9383if ac_fn_c_try_link "$LINENO"; then :
9384  lt_cv_cc_needs_belf=yes
9385else
9386  lt_cv_cc_needs_belf=no
9387fi
9388rm -f core conftest.err conftest.$ac_objext \
9389    conftest$ac_exeext conftest.$ac_ext
9390     ac_ext=c
9391ac_cpp='$CPP $CPPFLAGS'
9392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9394ac_compiler_gnu=$ac_cv_c_compiler_gnu
9395
9396fi
9397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9398$as_echo "$lt_cv_cc_needs_belf" >&6; }
9399  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9400    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9401    CFLAGS="$SAVE_CFLAGS"
9402  fi
9403  ;;
9404sparc*-*solaris*)
9405  # Find out which ABI we are using.
9406  echo 'int i;' > conftest.$ac_ext
9407  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9408  (eval $ac_compile) 2>&5
9409  ac_status=$?
9410  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9411  test $ac_status = 0; }; then
9412    case `/usr/bin/file conftest.o` in
9413    *64-bit*)
9414      case $lt_cv_prog_gnu_ld in
9415      yes*) LD="${LD-ld} -m elf64_sparc" ;;
9416      *)
9417	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9418	  LD="${LD-ld} -64"
9419	fi
9420	;;
9421      esac
9422      ;;
9423    esac
9424  fi
9425  rm -rf conftest*
9426  ;;
9427esac
9428
9429need_locks="$enable_libtool_lock"
9430
9431
9432  case $host_os in
9433    rhapsody* | darwin*)
9434    if test -n "$ac_tool_prefix"; then
9435  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9436set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9438$as_echo_n "checking for $ac_word... " >&6; }
9439if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
9440  $as_echo_n "(cached) " >&6
9441else
9442  if test -n "$DSYMUTIL"; then
9443  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9444else
9445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9446for as_dir in $PATH
9447do
9448  IFS=$as_save_IFS
9449  test -z "$as_dir" && as_dir=.
9450    for ac_exec_ext in '' $ac_executable_extensions; do
9451  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9452    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9453    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9454    break 2
9455  fi
9456done
9457  done
9458IFS=$as_save_IFS
9459
9460fi
9461fi
9462DSYMUTIL=$ac_cv_prog_DSYMUTIL
9463if test -n "$DSYMUTIL"; then
9464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9465$as_echo "$DSYMUTIL" >&6; }
9466else
9467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9468$as_echo "no" >&6; }
9469fi
9470
9471
9472fi
9473if test -z "$ac_cv_prog_DSYMUTIL"; then
9474  ac_ct_DSYMUTIL=$DSYMUTIL
9475  # Extract the first word of "dsymutil", so it can be a program name with args.
9476set dummy dsymutil; ac_word=$2
9477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9478$as_echo_n "checking for $ac_word... " >&6; }
9479if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
9480  $as_echo_n "(cached) " >&6
9481else
9482  if test -n "$ac_ct_DSYMUTIL"; then
9483  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9484else
9485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9486for as_dir in $PATH
9487do
9488  IFS=$as_save_IFS
9489  test -z "$as_dir" && as_dir=.
9490    for ac_exec_ext in '' $ac_executable_extensions; do
9491  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9492    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9493    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9494    break 2
9495  fi
9496done
9497  done
9498IFS=$as_save_IFS
9499
9500fi
9501fi
9502ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9503if test -n "$ac_ct_DSYMUTIL"; then
9504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9505$as_echo "$ac_ct_DSYMUTIL" >&6; }
9506else
9507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9508$as_echo "no" >&6; }
9509fi
9510
9511  if test "x$ac_ct_DSYMUTIL" = x; then
9512    DSYMUTIL=":"
9513  else
9514    case $cross_compiling:$ac_tool_warned in
9515yes:)
9516{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9517$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9518ac_tool_warned=yes ;;
9519esac
9520    DSYMUTIL=$ac_ct_DSYMUTIL
9521  fi
9522else
9523  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9524fi
9525
9526    if test -n "$ac_tool_prefix"; then
9527  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9528set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9530$as_echo_n "checking for $ac_word... " >&6; }
9531if test "${ac_cv_prog_NMEDIT+set}" = set; then :
9532  $as_echo_n "(cached) " >&6
9533else
9534  if test -n "$NMEDIT"; then
9535  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9536else
9537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9538for as_dir in $PATH
9539do
9540  IFS=$as_save_IFS
9541  test -z "$as_dir" && as_dir=.
9542    for ac_exec_ext in '' $ac_executable_extensions; do
9543  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9544    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9545    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9546    break 2
9547  fi
9548done
9549  done
9550IFS=$as_save_IFS
9551
9552fi
9553fi
9554NMEDIT=$ac_cv_prog_NMEDIT
9555if test -n "$NMEDIT"; then
9556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9557$as_echo "$NMEDIT" >&6; }
9558else
9559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9560$as_echo "no" >&6; }
9561fi
9562
9563
9564fi
9565if test -z "$ac_cv_prog_NMEDIT"; then
9566  ac_ct_NMEDIT=$NMEDIT
9567  # Extract the first word of "nmedit", so it can be a program name with args.
9568set dummy nmedit; ac_word=$2
9569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9570$as_echo_n "checking for $ac_word... " >&6; }
9571if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9572  $as_echo_n "(cached) " >&6
9573else
9574  if test -n "$ac_ct_NMEDIT"; then
9575  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9576else
9577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9578for as_dir in $PATH
9579do
9580  IFS=$as_save_IFS
9581  test -z "$as_dir" && as_dir=.
9582    for ac_exec_ext in '' $ac_executable_extensions; do
9583  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9584    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9585    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9586    break 2
9587  fi
9588done
9589  done
9590IFS=$as_save_IFS
9591
9592fi
9593fi
9594ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9595if test -n "$ac_ct_NMEDIT"; then
9596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9597$as_echo "$ac_ct_NMEDIT" >&6; }
9598else
9599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9600$as_echo "no" >&6; }
9601fi
9602
9603  if test "x$ac_ct_NMEDIT" = x; then
9604    NMEDIT=":"
9605  else
9606    case $cross_compiling:$ac_tool_warned in
9607yes:)
9608{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9609$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9610ac_tool_warned=yes ;;
9611esac
9612    NMEDIT=$ac_ct_NMEDIT
9613  fi
9614else
9615  NMEDIT="$ac_cv_prog_NMEDIT"
9616fi
9617
9618    if test -n "$ac_tool_prefix"; then
9619  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9620set dummy ${ac_tool_prefix}lipo; ac_word=$2
9621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9622$as_echo_n "checking for $ac_word... " >&6; }
9623if test "${ac_cv_prog_LIPO+set}" = set; then :
9624  $as_echo_n "(cached) " >&6
9625else
9626  if test -n "$LIPO"; then
9627  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9628else
9629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9630for as_dir in $PATH
9631do
9632  IFS=$as_save_IFS
9633  test -z "$as_dir" && as_dir=.
9634    for ac_exec_ext in '' $ac_executable_extensions; do
9635  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9636    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9637    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9638    break 2
9639  fi
9640done
9641  done
9642IFS=$as_save_IFS
9643
9644fi
9645fi
9646LIPO=$ac_cv_prog_LIPO
9647if test -n "$LIPO"; then
9648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9649$as_echo "$LIPO" >&6; }
9650else
9651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9652$as_echo "no" >&6; }
9653fi
9654
9655
9656fi
9657if test -z "$ac_cv_prog_LIPO"; then
9658  ac_ct_LIPO=$LIPO
9659  # Extract the first word of "lipo", so it can be a program name with args.
9660set dummy lipo; ac_word=$2
9661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9662$as_echo_n "checking for $ac_word... " >&6; }
9663if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9664  $as_echo_n "(cached) " >&6
9665else
9666  if test -n "$ac_ct_LIPO"; then
9667  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9668else
9669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9670for as_dir in $PATH
9671do
9672  IFS=$as_save_IFS
9673  test -z "$as_dir" && as_dir=.
9674    for ac_exec_ext in '' $ac_executable_extensions; do
9675  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9676    ac_cv_prog_ac_ct_LIPO="lipo"
9677    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9678    break 2
9679  fi
9680done
9681  done
9682IFS=$as_save_IFS
9683
9684fi
9685fi
9686ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9687if test -n "$ac_ct_LIPO"; then
9688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9689$as_echo "$ac_ct_LIPO" >&6; }
9690else
9691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9692$as_echo "no" >&6; }
9693fi
9694
9695  if test "x$ac_ct_LIPO" = x; then
9696    LIPO=":"
9697  else
9698    case $cross_compiling:$ac_tool_warned in
9699yes:)
9700{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9701$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9702ac_tool_warned=yes ;;
9703esac
9704    LIPO=$ac_ct_LIPO
9705  fi
9706else
9707  LIPO="$ac_cv_prog_LIPO"
9708fi
9709
9710    if test -n "$ac_tool_prefix"; then
9711  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9712set dummy ${ac_tool_prefix}otool; ac_word=$2
9713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9714$as_echo_n "checking for $ac_word... " >&6; }
9715if test "${ac_cv_prog_OTOOL+set}" = set; then :
9716  $as_echo_n "(cached) " >&6
9717else
9718  if test -n "$OTOOL"; then
9719  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9720else
9721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9722for as_dir in $PATH
9723do
9724  IFS=$as_save_IFS
9725  test -z "$as_dir" && as_dir=.
9726    for ac_exec_ext in '' $ac_executable_extensions; do
9727  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9728    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9729    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9730    break 2
9731  fi
9732done
9733  done
9734IFS=$as_save_IFS
9735
9736fi
9737fi
9738OTOOL=$ac_cv_prog_OTOOL
9739if test -n "$OTOOL"; then
9740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9741$as_echo "$OTOOL" >&6; }
9742else
9743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9744$as_echo "no" >&6; }
9745fi
9746
9747
9748fi
9749if test -z "$ac_cv_prog_OTOOL"; then
9750  ac_ct_OTOOL=$OTOOL
9751  # Extract the first word of "otool", so it can be a program name with args.
9752set dummy otool; ac_word=$2
9753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9754$as_echo_n "checking for $ac_word... " >&6; }
9755if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9756  $as_echo_n "(cached) " >&6
9757else
9758  if test -n "$ac_ct_OTOOL"; then
9759  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9760else
9761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9762for as_dir in $PATH
9763do
9764  IFS=$as_save_IFS
9765  test -z "$as_dir" && as_dir=.
9766    for ac_exec_ext in '' $ac_executable_extensions; do
9767  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9768    ac_cv_prog_ac_ct_OTOOL="otool"
9769    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9770    break 2
9771  fi
9772done
9773  done
9774IFS=$as_save_IFS
9775
9776fi
9777fi
9778ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9779if test -n "$ac_ct_OTOOL"; then
9780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9781$as_echo "$ac_ct_OTOOL" >&6; }
9782else
9783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9784$as_echo "no" >&6; }
9785fi
9786
9787  if test "x$ac_ct_OTOOL" = x; then
9788    OTOOL=":"
9789  else
9790    case $cross_compiling:$ac_tool_warned in
9791yes:)
9792{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9793$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9794ac_tool_warned=yes ;;
9795esac
9796    OTOOL=$ac_ct_OTOOL
9797  fi
9798else
9799  OTOOL="$ac_cv_prog_OTOOL"
9800fi
9801
9802    if test -n "$ac_tool_prefix"; then
9803  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9804set dummy ${ac_tool_prefix}otool64; ac_word=$2
9805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9806$as_echo_n "checking for $ac_word... " >&6; }
9807if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9808  $as_echo_n "(cached) " >&6
9809else
9810  if test -n "$OTOOL64"; then
9811  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9812else
9813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9814for as_dir in $PATH
9815do
9816  IFS=$as_save_IFS
9817  test -z "$as_dir" && as_dir=.
9818    for ac_exec_ext in '' $ac_executable_extensions; do
9819  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9820    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9821    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9822    break 2
9823  fi
9824done
9825  done
9826IFS=$as_save_IFS
9827
9828fi
9829fi
9830OTOOL64=$ac_cv_prog_OTOOL64
9831if test -n "$OTOOL64"; then
9832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9833$as_echo "$OTOOL64" >&6; }
9834else
9835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9836$as_echo "no" >&6; }
9837fi
9838
9839
9840fi
9841if test -z "$ac_cv_prog_OTOOL64"; then
9842  ac_ct_OTOOL64=$OTOOL64
9843  # Extract the first word of "otool64", so it can be a program name with args.
9844set dummy otool64; ac_word=$2
9845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9846$as_echo_n "checking for $ac_word... " >&6; }
9847if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9848  $as_echo_n "(cached) " >&6
9849else
9850  if test -n "$ac_ct_OTOOL64"; then
9851  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9852else
9853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9854for as_dir in $PATH
9855do
9856  IFS=$as_save_IFS
9857  test -z "$as_dir" && as_dir=.
9858    for ac_exec_ext in '' $ac_executable_extensions; do
9859  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9860    ac_cv_prog_ac_ct_OTOOL64="otool64"
9861    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9862    break 2
9863  fi
9864done
9865  done
9866IFS=$as_save_IFS
9867
9868fi
9869fi
9870ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9871if test -n "$ac_ct_OTOOL64"; then
9872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9873$as_echo "$ac_ct_OTOOL64" >&6; }
9874else
9875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9876$as_echo "no" >&6; }
9877fi
9878
9879  if test "x$ac_ct_OTOOL64" = x; then
9880    OTOOL64=":"
9881  else
9882    case $cross_compiling:$ac_tool_warned in
9883yes:)
9884{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9885$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9886ac_tool_warned=yes ;;
9887esac
9888    OTOOL64=$ac_ct_OTOOL64
9889  fi
9890else
9891  OTOOL64="$ac_cv_prog_OTOOL64"
9892fi
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9921$as_echo_n "checking for -single_module linker flag... " >&6; }
9922if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9923  $as_echo_n "(cached) " >&6
9924else
9925  lt_cv_apple_cc_single_mod=no
9926      if test -z "${LT_MULTI_MODULE}"; then
9927	# By default we will add the -single_module flag. You can override
9928	# by either setting the environment variable LT_MULTI_MODULE
9929	# non-empty at configure time, or by adding -multi_module to the
9930	# link flags.
9931	rm -rf libconftest.dylib*
9932	echo "int foo(void){return 1;}" > conftest.c
9933	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9934-dynamiclib -Wl,-single_module conftest.c" >&5
9935	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9936	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9937        _lt_result=$?
9938	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9939	  lt_cv_apple_cc_single_mod=yes
9940	else
9941	  cat conftest.err >&5
9942	fi
9943	rm -rf libconftest.dylib*
9944	rm -f conftest.*
9945      fi
9946fi
9947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9948$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9949    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9950$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9951if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9952  $as_echo_n "(cached) " >&6
9953else
9954  lt_cv_ld_exported_symbols_list=no
9955      save_LDFLAGS=$LDFLAGS
9956      echo "_main" > conftest.sym
9957      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9958      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9959/* end confdefs.h.  */
9960
9961int
9962main ()
9963{
9964
9965  ;
9966  return 0;
9967}
9968_ACEOF
9969if ac_fn_c_try_link "$LINENO"; then :
9970  lt_cv_ld_exported_symbols_list=yes
9971else
9972  lt_cv_ld_exported_symbols_list=no
9973fi
9974rm -f core conftest.err conftest.$ac_objext \
9975    conftest$ac_exeext conftest.$ac_ext
9976	LDFLAGS="$save_LDFLAGS"
9977
9978fi
9979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9980$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9981    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9982$as_echo_n "checking for -force_load linker flag... " >&6; }
9983if test "${lt_cv_ld_force_load+set}" = set; then :
9984  $as_echo_n "(cached) " >&6
9985else
9986  lt_cv_ld_force_load=no
9987      cat > conftest.c << _LT_EOF
9988int forced_loaded() { return 2;}
9989_LT_EOF
9990      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9991      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9992      echo "$AR cru libconftest.a conftest.o" >&5
9993      $AR cru libconftest.a conftest.o 2>&5
9994      echo "$RANLIB libconftest.a" >&5
9995      $RANLIB libconftest.a 2>&5
9996      cat > conftest.c << _LT_EOF
9997int main() { return 0;}
9998_LT_EOF
9999      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10000      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10001      _lt_result=$?
10002      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
10003	lt_cv_ld_force_load=yes
10004      else
10005	cat conftest.err >&5
10006      fi
10007        rm -f conftest.err libconftest.a conftest conftest.c
10008        rm -rf conftest.dSYM
10009
10010fi
10011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10012$as_echo "$lt_cv_ld_force_load" >&6; }
10013    case $host_os in
10014    rhapsody* | darwin1.[012])
10015      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10016    darwin1.*)
10017      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10018    darwin*) # darwin 5.x on
10019      # if running on 10.5 or later, the deployment target defaults
10020      # to the OS version, if on x86, and 10.4, the deployment
10021      # target defaults to 10.4. Don't you love it?
10022      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10023	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10024	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10025	10.[012]*)
10026	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10027	10.*)
10028	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10029      esac
10030    ;;
10031  esac
10032    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10033      _lt_dar_single_mod='$single_module'
10034    fi
10035    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10036      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10037    else
10038      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10039    fi
10040    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
10041      _lt_dsymutil='~$DSYMUTIL $lib || :'
10042    else
10043      _lt_dsymutil=
10044    fi
10045    ;;
10046  esac
10047
10048for ac_header in dlfcn.h
10049do :
10050  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10051"
10052if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
10053  cat >>confdefs.h <<_ACEOF
10054#define HAVE_DLFCN_H 1
10055_ACEOF
10056
10057fi
10058
10059done
10060
10061
10062
10063
10064
10065# Set options
10066
10067
10068
10069        enable_dlopen=no
10070
10071
10072  enable_win32_dll=no
10073
10074
10075
10076  # Check whether --enable-static was given.
10077if test "${enable_static+set}" = set; then :
10078  enableval=$enable_static; p=${PACKAGE-default}
10079    case $enableval in
10080    yes) enable_static=yes ;;
10081    no) enable_static=no ;;
10082    *)
10083     enable_static=no
10084      # Look at the argument we got.  We use all the common list separators.
10085      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10086      for pkg in $enableval; do
10087	IFS="$lt_save_ifs"
10088	if test "X$pkg" = "X$p"; then
10089	  enable_static=yes
10090	fi
10091      done
10092      IFS="$lt_save_ifs"
10093      ;;
10094    esac
10095else
10096  enable_static=yes
10097fi
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108# Check whether --with-pic was given.
10109if test "${with_pic+set}" = set; then :
10110  withval=$with_pic; pic_mode="$withval"
10111else
10112  pic_mode=default
10113fi
10114
10115
10116test -z "$pic_mode" && pic_mode=default
10117
10118
10119
10120
10121
10122
10123
10124  # Check whether --enable-fast-install was given.
10125if test "${enable_fast_install+set}" = set; then :
10126  enableval=$enable_fast_install; p=${PACKAGE-default}
10127    case $enableval in
10128    yes) enable_fast_install=yes ;;
10129    no) enable_fast_install=no ;;
10130    *)
10131      enable_fast_install=no
10132      # Look at the argument we got.  We use all the common list separators.
10133      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10134      for pkg in $enableval; do
10135	IFS="$lt_save_ifs"
10136	if test "X$pkg" = "X$p"; then
10137	  enable_fast_install=yes
10138	fi
10139      done
10140      IFS="$lt_save_ifs"
10141      ;;
10142    esac
10143else
10144  enable_fast_install=yes
10145fi
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157# This can be used to rebuild libtool when needed
10158LIBTOOL_DEPS="$ltmain"
10159
10160# Always use our own libtool.
10161LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188test -z "$LN_S" && LN_S="ln -s"
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203if test -n "${ZSH_VERSION+set}" ; then
10204   setopt NO_GLOB_SUBST
10205fi
10206
10207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10208$as_echo_n "checking for objdir... " >&6; }
10209if test "${lt_cv_objdir+set}" = set; then :
10210  $as_echo_n "(cached) " >&6
10211else
10212  rm -f .libs 2>/dev/null
10213mkdir .libs 2>/dev/null
10214if test -d .libs; then
10215  lt_cv_objdir=.libs
10216else
10217  # MS-DOS does not allow filenames that begin with a dot.
10218  lt_cv_objdir=_libs
10219fi
10220rmdir .libs 2>/dev/null
10221fi
10222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10223$as_echo "$lt_cv_objdir" >&6; }
10224objdir=$lt_cv_objdir
10225
10226
10227
10228
10229
10230cat >>confdefs.h <<_ACEOF
10231#define LT_OBJDIR "$lt_cv_objdir/"
10232_ACEOF
10233
10234
10235
10236
10237case $host_os in
10238aix3*)
10239  # AIX sometimes has problems with the GCC collect2 program.  For some
10240  # reason, if we set the COLLECT_NAMES environment variable, the problems
10241  # vanish in a puff of smoke.
10242  if test "X${COLLECT_NAMES+set}" != Xset; then
10243    COLLECT_NAMES=
10244    export COLLECT_NAMES
10245  fi
10246  ;;
10247esac
10248
10249# Global variables:
10250ofile=libtool
10251can_build_shared=yes
10252
10253# All known linkers require a `.a' archive for static linking (except MSVC,
10254# which needs '.lib').
10255libext=a
10256
10257with_gnu_ld="$lt_cv_prog_gnu_ld"
10258
10259old_CC="$CC"
10260old_CFLAGS="$CFLAGS"
10261
10262# Set sane defaults for various variables
10263test -z "$CC" && CC=cc
10264test -z "$LTCC" && LTCC=$CC
10265test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10266test -z "$LD" && LD=ld
10267test -z "$ac_objext" && ac_objext=o
10268
10269for cc_temp in $compiler""; do
10270  case $cc_temp in
10271    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10272    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10273    \-*) ;;
10274    *) break;;
10275  esac
10276done
10277cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10278
10279
10280# Only perform the check for file, if the check method requires it
10281test -z "$MAGIC_CMD" && MAGIC_CMD=file
10282case $deplibs_check_method in
10283file_magic*)
10284  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10285    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10286$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10287if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10288  $as_echo_n "(cached) " >&6
10289else
10290  case $MAGIC_CMD in
10291[\\/*] |  ?:[\\/]*)
10292  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10293  ;;
10294*)
10295  lt_save_MAGIC_CMD="$MAGIC_CMD"
10296  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10297  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10298  for ac_dir in $ac_dummy; do
10299    IFS="$lt_save_ifs"
10300    test -z "$ac_dir" && ac_dir=.
10301    if test -f $ac_dir/${ac_tool_prefix}file; then
10302      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10303      if test -n "$file_magic_test_file"; then
10304	case $deplibs_check_method in
10305	"file_magic "*)
10306	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10307	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10308	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10309	    $EGREP "$file_magic_regex" > /dev/null; then
10310	    :
10311	  else
10312	    cat <<_LT_EOF 1>&2
10313
10314*** Warning: the command libtool uses to detect shared libraries,
10315*** $file_magic_cmd, produces output that libtool cannot recognize.
10316*** The result is that libtool may fail to recognize shared libraries
10317*** as such.  This will affect the creation of libtool libraries that
10318*** depend on shared libraries, but programs linked with such libtool
10319*** libraries will work regardless of this problem.  Nevertheless, you
10320*** may want to report the problem to your system manager and/or to
10321*** bug-libtool@gnu.org
10322
10323_LT_EOF
10324	  fi ;;
10325	esac
10326      fi
10327      break
10328    fi
10329  done
10330  IFS="$lt_save_ifs"
10331  MAGIC_CMD="$lt_save_MAGIC_CMD"
10332  ;;
10333esac
10334fi
10335
10336MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10337if test -n "$MAGIC_CMD"; then
10338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10339$as_echo "$MAGIC_CMD" >&6; }
10340else
10341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10342$as_echo "no" >&6; }
10343fi
10344
10345
10346
10347
10348
10349if test -z "$lt_cv_path_MAGIC_CMD"; then
10350  if test -n "$ac_tool_prefix"; then
10351    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10352$as_echo_n "checking for file... " >&6; }
10353if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10354  $as_echo_n "(cached) " >&6
10355else
10356  case $MAGIC_CMD in
10357[\\/*] |  ?:[\\/]*)
10358  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10359  ;;
10360*)
10361  lt_save_MAGIC_CMD="$MAGIC_CMD"
10362  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10363  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10364  for ac_dir in $ac_dummy; do
10365    IFS="$lt_save_ifs"
10366    test -z "$ac_dir" && ac_dir=.
10367    if test -f $ac_dir/file; then
10368      lt_cv_path_MAGIC_CMD="$ac_dir/file"
10369      if test -n "$file_magic_test_file"; then
10370	case $deplibs_check_method in
10371	"file_magic "*)
10372	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10373	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10374	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10375	    $EGREP "$file_magic_regex" > /dev/null; then
10376	    :
10377	  else
10378	    cat <<_LT_EOF 1>&2
10379
10380*** Warning: the command libtool uses to detect shared libraries,
10381*** $file_magic_cmd, produces output that libtool cannot recognize.
10382*** The result is that libtool may fail to recognize shared libraries
10383*** as such.  This will affect the creation of libtool libraries that
10384*** depend on shared libraries, but programs linked with such libtool
10385*** libraries will work regardless of this problem.  Nevertheless, you
10386*** may want to report the problem to your system manager and/or to
10387*** bug-libtool@gnu.org
10388
10389_LT_EOF
10390	  fi ;;
10391	esac
10392      fi
10393      break
10394    fi
10395  done
10396  IFS="$lt_save_ifs"
10397  MAGIC_CMD="$lt_save_MAGIC_CMD"
10398  ;;
10399esac
10400fi
10401
10402MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10403if test -n "$MAGIC_CMD"; then
10404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10405$as_echo "$MAGIC_CMD" >&6; }
10406else
10407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10408$as_echo "no" >&6; }
10409fi
10410
10411
10412  else
10413    MAGIC_CMD=:
10414  fi
10415fi
10416
10417  fi
10418  ;;
10419esac
10420
10421# Use C for the default configuration in the libtool script
10422
10423lt_save_CC="$CC"
10424ac_ext=c
10425ac_cpp='$CPP $CPPFLAGS'
10426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10428ac_compiler_gnu=$ac_cv_c_compiler_gnu
10429
10430
10431# Source file extension for C test sources.
10432ac_ext=c
10433
10434# Object file extension for compiled C test sources.
10435objext=o
10436objext=$objext
10437
10438# Code to be used in simple compile tests
10439lt_simple_compile_test_code="int some_variable = 0;"
10440
10441# Code to be used in simple link tests
10442lt_simple_link_test_code='int main(){return(0);}'
10443
10444
10445
10446
10447
10448
10449
10450# If no C compiler was specified, use CC.
10451LTCC=${LTCC-"$CC"}
10452
10453# If no C compiler flags were specified, use CFLAGS.
10454LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10455
10456# Allow CC to be a program name with arguments.
10457compiler=$CC
10458
10459# Save the default compiler, since it gets overwritten when the other
10460# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10461compiler_DEFAULT=$CC
10462
10463# save warnings/boilerplate of simple test code
10464ac_outfile=conftest.$ac_objext
10465echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10466eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10467_lt_compiler_boilerplate=`cat conftest.err`
10468$RM conftest*
10469
10470ac_outfile=conftest.$ac_objext
10471echo "$lt_simple_link_test_code" >conftest.$ac_ext
10472eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10473_lt_linker_boilerplate=`cat conftest.err`
10474$RM -r conftest*
10475
10476
10477if test -n "$compiler"; then
10478
10479lt_prog_compiler_no_builtin_flag=
10480
10481if test "$GCC" = yes; then
10482  case $cc_basename in
10483  nvcc*)
10484    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10485  *)
10486    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10487  esac
10488
10489  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10490$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10491if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10492  $as_echo_n "(cached) " >&6
10493else
10494  lt_cv_prog_compiler_rtti_exceptions=no
10495   ac_outfile=conftest.$ac_objext
10496   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10497   lt_compiler_flag="-fno-rtti -fno-exceptions"
10498   # Insert the option either (1) after the last *FLAGS variable, or
10499   # (2) before a word containing "conftest.", or (3) at the end.
10500   # Note that $ac_compile itself does not contain backslashes and begins
10501   # with a dollar sign (not a hyphen), so the echo should work correctly.
10502   # The option is referenced via a variable to avoid confusing sed.
10503   lt_compile=`echo "$ac_compile" | $SED \
10504   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10505   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10506   -e 's:$: $lt_compiler_flag:'`
10507   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10508   (eval "$lt_compile" 2>conftest.err)
10509   ac_status=$?
10510   cat conftest.err >&5
10511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512   if (exit $ac_status) && test -s "$ac_outfile"; then
10513     # The compiler can only warn and ignore the option if not recognized
10514     # So say no if there are warnings other than the usual output.
10515     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10516     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10517     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10518       lt_cv_prog_compiler_rtti_exceptions=yes
10519     fi
10520   fi
10521   $RM conftest*
10522
10523fi
10524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10525$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10526
10527if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10528    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10529else
10530    :
10531fi
10532
10533fi
10534
10535
10536
10537
10538
10539
10540  lt_prog_compiler_wl=
10541lt_prog_compiler_pic=
10542lt_prog_compiler_static=
10543
10544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10545$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10546
10547  if test "$GCC" = yes; then
10548    lt_prog_compiler_wl='-Wl,'
10549    lt_prog_compiler_static='-static'
10550
10551    case $host_os in
10552      aix*)
10553      # All AIX code is PIC.
10554      if test "$host_cpu" = ia64; then
10555	# AIX 5 now supports IA64 processor
10556	lt_prog_compiler_static='-Bstatic'
10557      fi
10558      ;;
10559
10560    amigaos*)
10561      case $host_cpu in
10562      powerpc)
10563            # see comment about AmigaOS4 .so support
10564            lt_prog_compiler_pic='-fPIC'
10565        ;;
10566      m68k)
10567            # FIXME: we need at least 68020 code to build shared libraries, but
10568            # adding the `-m68020' flag to GCC prevents building anything better,
10569            # like `-m68040'.
10570            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10571        ;;
10572      esac
10573      ;;
10574
10575    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10576      # PIC is the default for these OSes.
10577      ;;
10578
10579    mingw* | cygwin* | pw32* | os2* | cegcc*)
10580      # This hack is so that the source file can tell whether it is being
10581      # built for inclusion in a dll (and should export symbols for example).
10582      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10583      # (--disable-auto-import) libraries
10584      lt_prog_compiler_pic='-DDLL_EXPORT'
10585      ;;
10586
10587    darwin* | rhapsody*)
10588      # PIC is the default on this platform
10589      # Common symbols not allowed in MH_DYLIB files
10590      lt_prog_compiler_pic='-fno-common'
10591      ;;
10592
10593    haiku*)
10594      # PIC is the default for Haiku.
10595      # The "-static" flag exists, but is broken.
10596      lt_prog_compiler_static=
10597      ;;
10598
10599    hpux*)
10600      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10601      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10602      # sets the default TLS model and affects inlining.
10603      case $host_cpu in
10604      hppa*64*)
10605	# +Z the default
10606	;;
10607      *)
10608	lt_prog_compiler_pic='-fPIC'
10609	;;
10610      esac
10611      ;;
10612
10613    interix[3-9]*)
10614      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10615      # Instead, we relocate shared libraries at runtime.
10616      ;;
10617
10618    msdosdjgpp*)
10619      # Just because we use GCC doesn't mean we suddenly get shared libraries
10620      # on systems that don't support them.
10621      lt_prog_compiler_can_build_shared=no
10622      enable_shared=no
10623      ;;
10624
10625    *nto* | *qnx*)
10626      # QNX uses GNU C++, but need to define -shared option too, otherwise
10627      # it will coredump.
10628      lt_prog_compiler_pic='-fPIC -shared'
10629      ;;
10630
10631    sysv4*MP*)
10632      if test -d /usr/nec; then
10633	lt_prog_compiler_pic=-Kconform_pic
10634      fi
10635      ;;
10636
10637    *)
10638      lt_prog_compiler_pic='-fPIC'
10639      ;;
10640    esac
10641
10642    case $cc_basename in
10643    nvcc*) # Cuda Compiler Driver 2.2
10644      lt_prog_compiler_wl='-Xlinker '
10645      lt_prog_compiler_pic='-Xcompiler -fPIC'
10646      ;;
10647    esac
10648  else
10649    # PORTME Check for flag to pass linker flags through the system compiler.
10650    case $host_os in
10651    aix*)
10652      lt_prog_compiler_wl='-Wl,'
10653      if test "$host_cpu" = ia64; then
10654	# AIX 5 now supports IA64 processor
10655	lt_prog_compiler_static='-Bstatic'
10656      else
10657	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10658      fi
10659      ;;
10660
10661    mingw* | cygwin* | pw32* | os2* | cegcc*)
10662      # This hack is so that the source file can tell whether it is being
10663      # built for inclusion in a dll (and should export symbols for example).
10664      lt_prog_compiler_pic='-DDLL_EXPORT'
10665      ;;
10666
10667    hpux9* | hpux10* | hpux11*)
10668      lt_prog_compiler_wl='-Wl,'
10669      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10670      # not for PA HP-UX.
10671      case $host_cpu in
10672      hppa*64*|ia64*)
10673	# +Z the default
10674	;;
10675      *)
10676	lt_prog_compiler_pic='+Z'
10677	;;
10678      esac
10679      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10680      lt_prog_compiler_static='${wl}-a ${wl}archive'
10681      ;;
10682
10683    irix5* | irix6* | nonstopux*)
10684      lt_prog_compiler_wl='-Wl,'
10685      # PIC (with -KPIC) is the default.
10686      lt_prog_compiler_static='-non_shared'
10687      ;;
10688
10689    linux* | k*bsd*-gnu | kopensolaris*-gnu)
10690      case $cc_basename in
10691      # old Intel for x86_64 which still supported -KPIC.
10692      ecc*)
10693	lt_prog_compiler_wl='-Wl,'
10694	lt_prog_compiler_pic='-KPIC'
10695	lt_prog_compiler_static='-static'
10696        ;;
10697      # icc used to be incompatible with GCC.
10698      # ICC 10 doesn't accept -KPIC any more.
10699      icc* | ifort*)
10700	lt_prog_compiler_wl='-Wl,'
10701	lt_prog_compiler_pic='-fPIC'
10702	lt_prog_compiler_static='-static'
10703        ;;
10704      # Lahey Fortran 8.1.
10705      lf95*)
10706	lt_prog_compiler_wl='-Wl,'
10707	lt_prog_compiler_pic='--shared'
10708	lt_prog_compiler_static='--static'
10709	;;
10710      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10711        # Portland Group compilers (*not* the Pentium gcc compiler,
10712	# which looks to be a dead project)
10713	lt_prog_compiler_wl='-Wl,'
10714	lt_prog_compiler_pic='-fpic'
10715	lt_prog_compiler_static='-Bstatic'
10716        ;;
10717      ccc*)
10718        lt_prog_compiler_wl='-Wl,'
10719        # All Alpha code is PIC.
10720        lt_prog_compiler_static='-non_shared'
10721        ;;
10722      xl* | bgxl* | bgf* | mpixl*)
10723	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10724	lt_prog_compiler_wl='-Wl,'
10725	lt_prog_compiler_pic='-qpic'
10726	lt_prog_compiler_static='-qstaticlink'
10727	;;
10728      *)
10729	case `$CC -V 2>&1 | sed 5q` in
10730	*Sun\ F* | *Sun*Fortran*)
10731	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10732	  lt_prog_compiler_pic='-KPIC'
10733	  lt_prog_compiler_static='-Bstatic'
10734	  lt_prog_compiler_wl=''
10735	  ;;
10736	*Sun\ C*)
10737	  # Sun C 5.9
10738	  lt_prog_compiler_pic='-KPIC'
10739	  lt_prog_compiler_static='-Bstatic'
10740	  lt_prog_compiler_wl='-Wl,'
10741	  ;;
10742	esac
10743	;;
10744      esac
10745      ;;
10746
10747    newsos6)
10748      lt_prog_compiler_pic='-KPIC'
10749      lt_prog_compiler_static='-Bstatic'
10750      ;;
10751
10752    *nto* | *qnx*)
10753      # QNX uses GNU C++, but need to define -shared option too, otherwise
10754      # it will coredump.
10755      lt_prog_compiler_pic='-fPIC -shared'
10756      ;;
10757
10758    osf3* | osf4* | osf5*)
10759      lt_prog_compiler_wl='-Wl,'
10760      # All OSF/1 code is PIC.
10761      lt_prog_compiler_static='-non_shared'
10762      ;;
10763
10764    rdos*)
10765      lt_prog_compiler_static='-non_shared'
10766      ;;
10767
10768    solaris*)
10769      lt_prog_compiler_pic='-KPIC'
10770      lt_prog_compiler_static='-Bstatic'
10771      case $cc_basename in
10772      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10773	lt_prog_compiler_wl='-Qoption ld ';;
10774      *)
10775	lt_prog_compiler_wl='-Wl,';;
10776      esac
10777      ;;
10778
10779    sunos4*)
10780      lt_prog_compiler_wl='-Qoption ld '
10781      lt_prog_compiler_pic='-PIC'
10782      lt_prog_compiler_static='-Bstatic'
10783      ;;
10784
10785    sysv4 | sysv4.2uw2* | sysv4.3*)
10786      lt_prog_compiler_wl='-Wl,'
10787      lt_prog_compiler_pic='-KPIC'
10788      lt_prog_compiler_static='-Bstatic'
10789      ;;
10790
10791    sysv4*MP*)
10792      if test -d /usr/nec ;then
10793	lt_prog_compiler_pic='-Kconform_pic'
10794	lt_prog_compiler_static='-Bstatic'
10795      fi
10796      ;;
10797
10798    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10799      lt_prog_compiler_wl='-Wl,'
10800      lt_prog_compiler_pic='-KPIC'
10801      lt_prog_compiler_static='-Bstatic'
10802      ;;
10803
10804    unicos*)
10805      lt_prog_compiler_wl='-Wl,'
10806      lt_prog_compiler_can_build_shared=no
10807      ;;
10808
10809    uts4*)
10810      lt_prog_compiler_pic='-pic'
10811      lt_prog_compiler_static='-Bstatic'
10812      ;;
10813
10814    *)
10815      lt_prog_compiler_can_build_shared=no
10816      ;;
10817    esac
10818  fi
10819
10820case $host_os in
10821  # For platforms which do not support PIC, -DPIC is meaningless:
10822  *djgpp*)
10823    lt_prog_compiler_pic=
10824    ;;
10825  *)
10826    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10827    ;;
10828esac
10829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10830$as_echo "$lt_prog_compiler_pic" >&6; }
10831
10832
10833
10834
10835
10836
10837#
10838# Check to make sure the PIC flag actually works.
10839#
10840if test -n "$lt_prog_compiler_pic"; then
10841  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10842$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10843if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10844  $as_echo_n "(cached) " >&6
10845else
10846  lt_cv_prog_compiler_pic_works=no
10847   ac_outfile=conftest.$ac_objext
10848   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10849   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10850   # Insert the option either (1) after the last *FLAGS variable, or
10851   # (2) before a word containing "conftest.", or (3) at the end.
10852   # Note that $ac_compile itself does not contain backslashes and begins
10853   # with a dollar sign (not a hyphen), so the echo should work correctly.
10854   # The option is referenced via a variable to avoid confusing sed.
10855   lt_compile=`echo "$ac_compile" | $SED \
10856   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10857   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10858   -e 's:$: $lt_compiler_flag:'`
10859   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10860   (eval "$lt_compile" 2>conftest.err)
10861   ac_status=$?
10862   cat conftest.err >&5
10863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864   if (exit $ac_status) && test -s "$ac_outfile"; then
10865     # The compiler can only warn and ignore the option if not recognized
10866     # So say no if there are warnings other than the usual output.
10867     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10868     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10869     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10870       lt_cv_prog_compiler_pic_works=yes
10871     fi
10872   fi
10873   $RM conftest*
10874
10875fi
10876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10877$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10878
10879if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10880    case $lt_prog_compiler_pic in
10881     "" | " "*) ;;
10882     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10883     esac
10884else
10885    lt_prog_compiler_pic=
10886     lt_prog_compiler_can_build_shared=no
10887fi
10888
10889fi
10890
10891
10892
10893
10894
10895
10896#
10897# Check to make sure the static flag actually works.
10898#
10899wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10901$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10902if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10903  $as_echo_n "(cached) " >&6
10904else
10905  lt_cv_prog_compiler_static_works=no
10906   save_LDFLAGS="$LDFLAGS"
10907   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10908   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10909   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10910     # The linker can only warn and ignore the option if not recognized
10911     # So say no if there are warnings
10912     if test -s conftest.err; then
10913       # Append any errors to the config.log.
10914       cat conftest.err 1>&5
10915       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10916       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10917       if diff conftest.exp conftest.er2 >/dev/null; then
10918         lt_cv_prog_compiler_static_works=yes
10919       fi
10920     else
10921       lt_cv_prog_compiler_static_works=yes
10922     fi
10923   fi
10924   $RM -r conftest*
10925   LDFLAGS="$save_LDFLAGS"
10926
10927fi
10928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10929$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10930
10931if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10932    :
10933else
10934    lt_prog_compiler_static=
10935fi
10936
10937
10938
10939
10940
10941
10942
10943  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10944$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10945if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10946  $as_echo_n "(cached) " >&6
10947else
10948  lt_cv_prog_compiler_c_o=no
10949   $RM -r conftest 2>/dev/null
10950   mkdir conftest
10951   cd conftest
10952   mkdir out
10953   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10954
10955   lt_compiler_flag="-o out/conftest2.$ac_objext"
10956   # Insert the option either (1) after the last *FLAGS variable, or
10957   # (2) before a word containing "conftest.", or (3) at the end.
10958   # Note that $ac_compile itself does not contain backslashes and begins
10959   # with a dollar sign (not a hyphen), so the echo should work correctly.
10960   lt_compile=`echo "$ac_compile" | $SED \
10961   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10962   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10963   -e 's:$: $lt_compiler_flag:'`
10964   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10965   (eval "$lt_compile" 2>out/conftest.err)
10966   ac_status=$?
10967   cat out/conftest.err >&5
10968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10970   then
10971     # The compiler can only warn and ignore the option if not recognized
10972     # So say no if there are warnings
10973     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10974     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10975     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10976       lt_cv_prog_compiler_c_o=yes
10977     fi
10978   fi
10979   chmod u+w . 2>&5
10980   $RM conftest*
10981   # SGI C++ compiler will create directory out/ii_files/ for
10982   # template instantiation
10983   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10984   $RM out/* && rmdir out
10985   cd ..
10986   $RM -r conftest
10987   $RM conftest*
10988
10989fi
10990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10991$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10992
10993
10994
10995
10996
10997
10998  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10999$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11000if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
11001  $as_echo_n "(cached) " >&6
11002else
11003  lt_cv_prog_compiler_c_o=no
11004   $RM -r conftest 2>/dev/null
11005   mkdir conftest
11006   cd conftest
11007   mkdir out
11008   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11009
11010   lt_compiler_flag="-o out/conftest2.$ac_objext"
11011   # Insert the option either (1) after the last *FLAGS variable, or
11012   # (2) before a word containing "conftest.", or (3) at the end.
11013   # Note that $ac_compile itself does not contain backslashes and begins
11014   # with a dollar sign (not a hyphen), so the echo should work correctly.
11015   lt_compile=`echo "$ac_compile" | $SED \
11016   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11017   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11018   -e 's:$: $lt_compiler_flag:'`
11019   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11020   (eval "$lt_compile" 2>out/conftest.err)
11021   ac_status=$?
11022   cat out/conftest.err >&5
11023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11025   then
11026     # The compiler can only warn and ignore the option if not recognized
11027     # So say no if there are warnings
11028     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11029     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11030     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11031       lt_cv_prog_compiler_c_o=yes
11032     fi
11033   fi
11034   chmod u+w . 2>&5
11035   $RM conftest*
11036   # SGI C++ compiler will create directory out/ii_files/ for
11037   # template instantiation
11038   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11039   $RM out/* && rmdir out
11040   cd ..
11041   $RM -r conftest
11042   $RM conftest*
11043
11044fi
11045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11046$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11047
11048
11049
11050
11051hard_links="nottested"
11052if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11053  # do not overwrite the value of need_locks provided by the user
11054  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11055$as_echo_n "checking if we can lock with hard links... " >&6; }
11056  hard_links=yes
11057  $RM conftest*
11058  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11059  touch conftest.a
11060  ln conftest.a conftest.b 2>&5 || hard_links=no
11061  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11063$as_echo "$hard_links" >&6; }
11064  if test "$hard_links" = no; then
11065    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11066$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11067    need_locks=warn
11068  fi
11069else
11070  need_locks=no
11071fi
11072
11073
11074
11075
11076
11077
11078  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11079$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11080
11081  runpath_var=
11082  allow_undefined_flag=
11083  always_export_symbols=no
11084  archive_cmds=
11085  archive_expsym_cmds=
11086  compiler_needs_object=no
11087  enable_shared_with_static_runtimes=no
11088  export_dynamic_flag_spec=
11089  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11090  hardcode_automatic=no
11091  hardcode_direct=no
11092  hardcode_direct_absolute=no
11093  hardcode_libdir_flag_spec=
11094  hardcode_libdir_flag_spec_ld=
11095  hardcode_libdir_separator=
11096  hardcode_minus_L=no
11097  hardcode_shlibpath_var=unsupported
11098  inherit_rpath=no
11099  link_all_deplibs=unknown
11100  module_cmds=
11101  module_expsym_cmds=
11102  old_archive_from_new_cmds=
11103  old_archive_from_expsyms_cmds=
11104  thread_safe_flag_spec=
11105  whole_archive_flag_spec=
11106  # include_expsyms should be a list of space-separated symbols to be *always*
11107  # included in the symbol list
11108  include_expsyms=
11109  # exclude_expsyms can be an extended regexp of symbols to exclude
11110  # it will be wrapped by ` (' and `)$', so one must not match beginning or
11111  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11112  # as well as any symbol that contains `d'.
11113  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11114  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11115  # platforms (ab)use it in PIC code, but their linkers get confused if
11116  # the symbol is explicitly referenced.  Since portable code cannot
11117  # rely on this symbol name, it's probably fine to never include it in
11118  # preloaded symbol tables.
11119  # Exclude shared library initialization/finalization symbols.
11120  extract_expsyms_cmds=
11121
11122  case $host_os in
11123  cygwin* | mingw* | pw32* | cegcc*)
11124    # FIXME: the MSVC++ port hasn't been tested in a loooong time
11125    # When not using gcc, we currently assume that we are using
11126    # Microsoft Visual C++.
11127    if test "$GCC" != yes; then
11128      with_gnu_ld=no
11129    fi
11130    ;;
11131  interix*)
11132    # we just hope/assume this is gcc and not c89 (= MSVC++)
11133    with_gnu_ld=yes
11134    ;;
11135  openbsd*)
11136    with_gnu_ld=no
11137    ;;
11138  esac
11139
11140  ld_shlibs=yes
11141
11142  # On some targets, GNU ld is compatible enough with the native linker
11143  # that we're better off using the native interface for both.
11144  lt_use_gnu_ld_interface=no
11145  if test "$with_gnu_ld" = yes; then
11146    case $host_os in
11147      aix*)
11148	# The AIX port of GNU ld has always aspired to compatibility
11149	# with the native linker.  However, as the warning in the GNU ld
11150	# block says, versions before 2.19.5* couldn't really create working
11151	# shared libraries, regardless of the interface used.
11152	case `$LD -v 2>&1` in
11153	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11154	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11155	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11156	  *)
11157	    lt_use_gnu_ld_interface=yes
11158	    ;;
11159	esac
11160	;;
11161      *)
11162	lt_use_gnu_ld_interface=yes
11163	;;
11164    esac
11165  fi
11166
11167  if test "$lt_use_gnu_ld_interface" = yes; then
11168    # If archive_cmds runs LD, not CC, wlarc should be empty
11169    wlarc='${wl}'
11170
11171    # Set some defaults for GNU ld with shared library support. These
11172    # are reset later if shared libraries are not supported. Putting them
11173    # here allows them to be overridden if necessary.
11174    runpath_var=LD_RUN_PATH
11175    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11176    export_dynamic_flag_spec='${wl}--export-dynamic'
11177    # ancient GNU ld didn't support --whole-archive et. al.
11178    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11179      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11180    else
11181      whole_archive_flag_spec=
11182    fi
11183    supports_anon_versioning=no
11184    case `$LD -v 2>&1` in
11185      *GNU\ gold*) supports_anon_versioning=yes ;;
11186      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11187      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11188      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11189      *\ 2.11.*) ;; # other 2.11 versions
11190      *) supports_anon_versioning=yes ;;
11191    esac
11192
11193    # See if GNU ld supports shared libraries.
11194    case $host_os in
11195    aix[3-9]*)
11196      # On AIX/PPC, the GNU linker is very broken
11197      if test "$host_cpu" != ia64; then
11198	ld_shlibs=no
11199	cat <<_LT_EOF 1>&2
11200
11201*** Warning: the GNU linker, at least up to release 2.19, is reported
11202*** to be unable to reliably create shared libraries on AIX.
11203*** Therefore, libtool is disabling shared libraries support.  If you
11204*** really care for shared libraries, you may want to install binutils
11205*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11206*** You will then need to restart the configuration process.
11207
11208_LT_EOF
11209      fi
11210      ;;
11211
11212    amigaos*)
11213      case $host_cpu in
11214      powerpc)
11215            # see comment about AmigaOS4 .so support
11216            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11217            archive_expsym_cmds=''
11218        ;;
11219      m68k)
11220            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)'
11221            hardcode_libdir_flag_spec='-L$libdir'
11222            hardcode_minus_L=yes
11223        ;;
11224      esac
11225      ;;
11226
11227    beos*)
11228      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11229	allow_undefined_flag=unsupported
11230	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11231	# support --undefined.  This deserves some investigation.  FIXME
11232	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11233      else
11234	ld_shlibs=no
11235      fi
11236      ;;
11237
11238    cygwin* | mingw* | pw32* | cegcc*)
11239      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11240      # as there is no search path for DLLs.
11241      hardcode_libdir_flag_spec='-L$libdir'
11242      export_dynamic_flag_spec='${wl}--export-all-symbols'
11243      allow_undefined_flag=unsupported
11244      always_export_symbols=no
11245      enable_shared_with_static_runtimes=yes
11246      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11247
11248      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11249        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11250	# If the export-symbols file already is a .def file (1st line
11251	# is EXPORTS), use it as is; otherwise, prepend...
11252	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11253	  cp $export_symbols $output_objdir/$soname.def;
11254	else
11255	  echo EXPORTS > $output_objdir/$soname.def;
11256	  cat $export_symbols >> $output_objdir/$soname.def;
11257	fi~
11258	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11259      else
11260	ld_shlibs=no
11261      fi
11262      ;;
11263
11264    haiku*)
11265      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11266      link_all_deplibs=yes
11267      ;;
11268
11269    interix[3-9]*)
11270      hardcode_direct=no
11271      hardcode_shlibpath_var=no
11272      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11273      export_dynamic_flag_spec='${wl}-E'
11274      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11275      # Instead, shared libraries are loaded at an image base (0x10000000 by
11276      # default) and relocated if they conflict, which is a slow very memory
11277      # consuming and fragmenting process.  To avoid this, we pick a random,
11278      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11279      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11280      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11281      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'
11282      ;;
11283
11284    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11285      tmp_diet=no
11286      if test "$host_os" = linux-dietlibc; then
11287	case $cc_basename in
11288	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11289	esac
11290      fi
11291      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11292	 && test "$tmp_diet" = no
11293      then
11294	tmp_addflag=
11295	tmp_sharedflag='-shared'
11296	case $cc_basename,$host_cpu in
11297        pgcc*)				# Portland Group C compiler
11298	  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'
11299	  tmp_addflag=' $pic_flag'
11300	  ;;
11301	pgf77* | pgf90* | pgf95* | pgfortran*)
11302					# Portland Group f77 and f90 compilers
11303	  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'
11304	  tmp_addflag=' $pic_flag -Mnomain' ;;
11305	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11306	  tmp_addflag=' -i_dynamic' ;;
11307	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11308	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11309	ifc* | ifort*)			# Intel Fortran compiler
11310	  tmp_addflag=' -nofor_main' ;;
11311	lf95*)				# Lahey Fortran 8.1
11312	  whole_archive_flag_spec=
11313	  tmp_sharedflag='--shared' ;;
11314	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11315	  tmp_sharedflag='-qmkshrobj'
11316	  tmp_addflag= ;;
11317	nvcc*)	# Cuda Compiler Driver 2.2
11318	  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'
11319	  compiler_needs_object=yes
11320	  ;;
11321	esac
11322	case `$CC -V 2>&1 | sed 5q` in
11323	*Sun\ C*)			# Sun C 5.9
11324	  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'
11325	  compiler_needs_object=yes
11326	  tmp_sharedflag='-G' ;;
11327	*Sun\ F*)			# Sun Fortran 8.3
11328	  tmp_sharedflag='-G' ;;
11329	esac
11330	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11331
11332        if test "x$supports_anon_versioning" = xyes; then
11333          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11334	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11335	    echo "local: *; };" >> $output_objdir/$libname.ver~
11336	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11337        fi
11338
11339	case $cc_basename in
11340	xlf* | bgf* | bgxlf* | mpixlf*)
11341	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11342	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11343	  hardcode_libdir_flag_spec=
11344	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
11345	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11346	  if test "x$supports_anon_versioning" = xyes; then
11347	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11348	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11349	      echo "local: *; };" >> $output_objdir/$libname.ver~
11350	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11351	  fi
11352	  ;;
11353	esac
11354      else
11355        ld_shlibs=no
11356      fi
11357      ;;
11358
11359    netbsd*)
11360      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11361	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11362	wlarc=
11363      else
11364	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11365	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11366      fi
11367      ;;
11368
11369    solaris*)
11370      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11371	ld_shlibs=no
11372	cat <<_LT_EOF 1>&2
11373
11374*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11375*** create shared libraries on Solaris systems.  Therefore, libtool
11376*** is disabling shared libraries support.  We urge you to upgrade GNU
11377*** binutils to release 2.9.1 or newer.  Another option is to modify
11378*** your PATH or compiler configuration so that the native linker is
11379*** used, and then restart.
11380
11381_LT_EOF
11382      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11383	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11384	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11385      else
11386	ld_shlibs=no
11387      fi
11388      ;;
11389
11390    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11391      case `$LD -v 2>&1` in
11392        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11393	ld_shlibs=no
11394	cat <<_LT_EOF 1>&2
11395
11396*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11397*** reliably create shared libraries on SCO systems.  Therefore, libtool
11398*** is disabling shared libraries support.  We urge you to upgrade GNU
11399*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11400*** your PATH or compiler configuration so that the native linker is
11401*** used, and then restart.
11402
11403_LT_EOF
11404	;;
11405	*)
11406	  # For security reasons, it is highly recommended that you always
11407	  # use absolute paths for naming shared libraries, and exclude the
11408	  # DT_RUNPATH tag from executables and libraries.  But doing so
11409	  # requires that you compile everything twice, which is a pain.
11410	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11411	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11412	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11413	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11414	  else
11415	    ld_shlibs=no
11416	  fi
11417	;;
11418      esac
11419      ;;
11420
11421    sunos4*)
11422      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11423      wlarc=
11424      hardcode_direct=yes
11425      hardcode_shlibpath_var=no
11426      ;;
11427
11428    *)
11429      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11430	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11431	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11432      else
11433	ld_shlibs=no
11434      fi
11435      ;;
11436    esac
11437
11438    if test "$ld_shlibs" = no; then
11439      runpath_var=
11440      hardcode_libdir_flag_spec=
11441      export_dynamic_flag_spec=
11442      whole_archive_flag_spec=
11443    fi
11444  else
11445    # PORTME fill in a description of your system's linker (not GNU ld)
11446    case $host_os in
11447    aix3*)
11448      allow_undefined_flag=unsupported
11449      always_export_symbols=yes
11450      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'
11451      # Note: this linker hardcodes the directories in LIBPATH if there
11452      # are no directories specified by -L.
11453      hardcode_minus_L=yes
11454      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11455	# Neither direct hardcoding nor static linking is supported with a
11456	# broken collect2.
11457	hardcode_direct=unsupported
11458      fi
11459      ;;
11460
11461    aix[4-9]*)
11462      if test "$host_cpu" = ia64; then
11463	# On IA64, the linker does run time linking by default, so we don't
11464	# have to do anything special.
11465	aix_use_runtimelinking=no
11466	exp_sym_flag='-Bexport'
11467	no_entry_flag=""
11468      else
11469	# If we're using GNU nm, then we don't want the "-C" option.
11470	# -C means demangle to AIX nm, but means don't demangle with GNU nm
11471	# Also, AIX nm treats weak defined symbols like other global
11472	# defined symbols, whereas GNU nm marks them as "W".
11473	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11474	  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'
11475	else
11476	  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'
11477	fi
11478	aix_use_runtimelinking=no
11479
11480	# Test if we are trying to use run time linking or normal
11481	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11482	# need to do runtime linking.
11483	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11484	  for ld_flag in $LDFLAGS; do
11485	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11486	    aix_use_runtimelinking=yes
11487	    break
11488	  fi
11489	  done
11490	  ;;
11491	esac
11492
11493	exp_sym_flag='-bexport'
11494	no_entry_flag='-bnoentry'
11495      fi
11496
11497      # When large executables or shared objects are built, AIX ld can
11498      # have problems creating the table of contents.  If linking a library
11499      # or program results in "error TOC overflow" add -mminimal-toc to
11500      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11501      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11502
11503      archive_cmds=''
11504      hardcode_direct=yes
11505      hardcode_direct_absolute=yes
11506      hardcode_libdir_separator=':'
11507      link_all_deplibs=yes
11508      file_list_spec='${wl}-f,'
11509
11510      if test "$GCC" = yes; then
11511	case $host_os in aix4.[012]|aix4.[012].*)
11512	# We only want to do this on AIX 4.2 and lower, the check
11513	# below for broken collect2 doesn't work under 4.3+
11514	  collect2name=`${CC} -print-prog-name=collect2`
11515	  if test -f "$collect2name" &&
11516	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11517	  then
11518	  # We have reworked collect2
11519	  :
11520	  else
11521	  # We have old collect2
11522	  hardcode_direct=unsupported
11523	  # It fails to find uninstalled libraries when the uninstalled
11524	  # path is not listed in the libpath.  Setting hardcode_minus_L
11525	  # to unsupported forces relinking
11526	  hardcode_minus_L=yes
11527	  hardcode_libdir_flag_spec='-L$libdir'
11528	  hardcode_libdir_separator=
11529	  fi
11530	  ;;
11531	esac
11532	shared_flag='-shared'
11533	if test "$aix_use_runtimelinking" = yes; then
11534	  shared_flag="$shared_flag "'${wl}-G'
11535	fi
11536      else
11537	# not using gcc
11538	if test "$host_cpu" = ia64; then
11539	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11540	# chokes on -Wl,-G. The following line is correct:
11541	  shared_flag='-G'
11542	else
11543	  if test "$aix_use_runtimelinking" = yes; then
11544	    shared_flag='${wl}-G'
11545	  else
11546	    shared_flag='${wl}-bM:SRE'
11547	  fi
11548	fi
11549      fi
11550
11551      export_dynamic_flag_spec='${wl}-bexpall'
11552      # It seems that -bexpall does not export symbols beginning with
11553      # underscore (_), so it is better to generate a list of symbols to export.
11554      always_export_symbols=yes
11555      if test "$aix_use_runtimelinking" = yes; then
11556	# Warning - without using the other runtime loading flags (-brtl),
11557	# -berok will link without error, but may produce a broken library.
11558	allow_undefined_flag='-berok'
11559        # Determine the default libpath from the value encoded in an
11560        # empty executable.
11561        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11562/* end confdefs.h.  */
11563
11564int
11565main ()
11566{
11567
11568  ;
11569  return 0;
11570}
11571_ACEOF
11572if ac_fn_c_try_link "$LINENO"; then :
11573
11574lt_aix_libpath_sed='
11575    /Import File Strings/,/^$/ {
11576	/^0/ {
11577	    s/^0  *\(.*\)$/\1/
11578	    p
11579	}
11580    }'
11581aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11582# Check for a 64-bit object if we didn't find anything.
11583if test -z "$aix_libpath"; then
11584  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11585fi
11586fi
11587rm -f core conftest.err conftest.$ac_objext \
11588    conftest$ac_exeext conftest.$ac_ext
11589if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11590
11591        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11592        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"
11593      else
11594	if test "$host_cpu" = ia64; then
11595	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11596	  allow_undefined_flag="-z nodefs"
11597	  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"
11598	else
11599	 # Determine the default libpath from the value encoded in an
11600	 # empty executable.
11601	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11602/* end confdefs.h.  */
11603
11604int
11605main ()
11606{
11607
11608  ;
11609  return 0;
11610}
11611_ACEOF
11612if ac_fn_c_try_link "$LINENO"; then :
11613
11614lt_aix_libpath_sed='
11615    /Import File Strings/,/^$/ {
11616	/^0/ {
11617	    s/^0  *\(.*\)$/\1/
11618	    p
11619	}
11620    }'
11621aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11622# Check for a 64-bit object if we didn't find anything.
11623if test -z "$aix_libpath"; then
11624  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11625fi
11626fi
11627rm -f core conftest.err conftest.$ac_objext \
11628    conftest$ac_exeext conftest.$ac_ext
11629if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11630
11631	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11632	  # Warning - without using the other run time loading flags,
11633	  # -berok will link without error, but may produce a broken library.
11634	  no_undefined_flag=' ${wl}-bernotok'
11635	  allow_undefined_flag=' ${wl}-berok'
11636	  if test "$with_gnu_ld" = yes; then
11637	    # We only use this code for GNU lds that support --whole-archive.
11638	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11639	  else
11640	    # Exported symbols can be pulled into shared objects from archives
11641	    whole_archive_flag_spec='$convenience'
11642	  fi
11643	  archive_cmds_need_lc=yes
11644	  # This is similar to how AIX traditionally builds its shared libraries.
11645	  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'
11646	fi
11647      fi
11648      ;;
11649
11650    amigaos*)
11651      case $host_cpu in
11652      powerpc)
11653            # see comment about AmigaOS4 .so support
11654            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11655            archive_expsym_cmds=''
11656        ;;
11657      m68k)
11658            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)'
11659            hardcode_libdir_flag_spec='-L$libdir'
11660            hardcode_minus_L=yes
11661        ;;
11662      esac
11663      ;;
11664
11665    bsdi[45]*)
11666      export_dynamic_flag_spec=-rdynamic
11667      ;;
11668
11669    cygwin* | mingw* | pw32* | cegcc*)
11670      # When not using gcc, we currently assume that we are using
11671      # Microsoft Visual C++.
11672      # hardcode_libdir_flag_spec is actually meaningless, as there is
11673      # no search path for DLLs.
11674      hardcode_libdir_flag_spec=' '
11675      allow_undefined_flag=unsupported
11676      # Tell ltmain to make .lib files, not .a files.
11677      libext=lib
11678      # Tell ltmain to make .dll files, not .so files.
11679      shrext_cmds=".dll"
11680      # FIXME: Setting linknames here is a bad hack.
11681      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11682      # The linker will automatically build a .lib file if we build a DLL.
11683      old_archive_from_new_cmds='true'
11684      # FIXME: Should let the user specify the lib program.
11685      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11686      fix_srcfile_path='`cygpath -w "$srcfile"`'
11687      enable_shared_with_static_runtimes=yes
11688      ;;
11689
11690    darwin* | rhapsody*)
11691
11692
11693  archive_cmds_need_lc=no
11694  hardcode_direct=no
11695  hardcode_automatic=yes
11696  hardcode_shlibpath_var=unsupported
11697  if test "$lt_cv_ld_force_load" = "yes"; then
11698    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\"`'
11699  else
11700    whole_archive_flag_spec=''
11701  fi
11702  link_all_deplibs=yes
11703  allow_undefined_flag="$_lt_dar_allow_undefined"
11704  case $cc_basename in
11705     ifort*) _lt_dar_can_shared=yes ;;
11706     *) _lt_dar_can_shared=$GCC ;;
11707  esac
11708  if test "$_lt_dar_can_shared" = "yes"; then
11709    output_verbose_link_cmd=func_echo_all
11710    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11711    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11712    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}"
11713    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}"
11714
11715  else
11716  ld_shlibs=no
11717  fi
11718
11719      ;;
11720
11721    dgux*)
11722      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11723      hardcode_libdir_flag_spec='-L$libdir'
11724      hardcode_shlibpath_var=no
11725      ;;
11726
11727    freebsd1*)
11728      ld_shlibs=no
11729      ;;
11730
11731    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11732    # support.  Future versions do this automatically, but an explicit c++rt0.o
11733    # does not break anything, and helps significantly (at the cost of a little
11734    # extra space).
11735    freebsd2.2*)
11736      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11737      hardcode_libdir_flag_spec='-R$libdir'
11738      hardcode_direct=yes
11739      hardcode_shlibpath_var=no
11740      ;;
11741
11742    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11743    freebsd2*)
11744      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11745      hardcode_direct=yes
11746      hardcode_minus_L=yes
11747      hardcode_shlibpath_var=no
11748      ;;
11749
11750    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11751    freebsd* | dragonfly*)
11752      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11753      hardcode_libdir_flag_spec='-R$libdir'
11754      hardcode_direct=yes
11755      hardcode_shlibpath_var=no
11756      ;;
11757
11758    hpux9*)
11759      if test "$GCC" = yes; then
11760	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11761      else
11762	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'
11763      fi
11764      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11765      hardcode_libdir_separator=:
11766      hardcode_direct=yes
11767
11768      # hardcode_minus_L: Not really in the search PATH,
11769      # but as the default location of the library.
11770      hardcode_minus_L=yes
11771      export_dynamic_flag_spec='${wl}-E'
11772      ;;
11773
11774    hpux10*)
11775      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11776	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11777      else
11778	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11779      fi
11780      if test "$with_gnu_ld" = no; then
11781	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11782	hardcode_libdir_flag_spec_ld='+b $libdir'
11783	hardcode_libdir_separator=:
11784	hardcode_direct=yes
11785	hardcode_direct_absolute=yes
11786	export_dynamic_flag_spec='${wl}-E'
11787	# hardcode_minus_L: Not really in the search PATH,
11788	# but as the default location of the library.
11789	hardcode_minus_L=yes
11790      fi
11791      ;;
11792
11793    hpux11*)
11794      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11795	case $host_cpu in
11796	hppa*64*)
11797	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11798	  ;;
11799	ia64*)
11800	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11801	  ;;
11802	*)
11803	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11804	  ;;
11805	esac
11806      else
11807	case $host_cpu in
11808	hppa*64*)
11809	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11810	  ;;
11811	ia64*)
11812	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11813	  ;;
11814	*)
11815
11816	  # Older versions of the 11.00 compiler do not understand -b yet
11817	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11818	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11819$as_echo_n "checking if $CC understands -b... " >&6; }
11820if test "${lt_cv_prog_compiler__b+set}" = set; then :
11821  $as_echo_n "(cached) " >&6
11822else
11823  lt_cv_prog_compiler__b=no
11824   save_LDFLAGS="$LDFLAGS"
11825   LDFLAGS="$LDFLAGS -b"
11826   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11827   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11828     # The linker can only warn and ignore the option if not recognized
11829     # So say no if there are warnings
11830     if test -s conftest.err; then
11831       # Append any errors to the config.log.
11832       cat conftest.err 1>&5
11833       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11834       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11835       if diff conftest.exp conftest.er2 >/dev/null; then
11836         lt_cv_prog_compiler__b=yes
11837       fi
11838     else
11839       lt_cv_prog_compiler__b=yes
11840     fi
11841   fi
11842   $RM -r conftest*
11843   LDFLAGS="$save_LDFLAGS"
11844
11845fi
11846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11847$as_echo "$lt_cv_prog_compiler__b" >&6; }
11848
11849if test x"$lt_cv_prog_compiler__b" = xyes; then
11850    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11851else
11852    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11853fi
11854
11855	  ;;
11856	esac
11857      fi
11858      if test "$with_gnu_ld" = no; then
11859	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11860	hardcode_libdir_separator=:
11861
11862	case $host_cpu in
11863	hppa*64*|ia64*)
11864	  hardcode_direct=no
11865	  hardcode_shlibpath_var=no
11866	  ;;
11867	*)
11868	  hardcode_direct=yes
11869	  hardcode_direct_absolute=yes
11870	  export_dynamic_flag_spec='${wl}-E'
11871
11872	  # hardcode_minus_L: Not really in the search PATH,
11873	  # but as the default location of the library.
11874	  hardcode_minus_L=yes
11875	  ;;
11876	esac
11877      fi
11878      ;;
11879
11880    irix5* | irix6* | nonstopux*)
11881      if test "$GCC" = yes; then
11882	archive_cmds='$CC -shared $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'
11883	# Try to use the -exported_symbol ld option, if it does not
11884	# work, assume that -exports_file does not work either and
11885	# implicitly export all symbols.
11886        save_LDFLAGS="$LDFLAGS"
11887        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11888        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11889/* end confdefs.h.  */
11890int foo(void) {}
11891_ACEOF
11892if ac_fn_c_try_link "$LINENO"; then :
11893  archive_expsym_cmds='$CC -shared $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'
11894
11895fi
11896rm -f core conftest.err conftest.$ac_objext \
11897    conftest$ac_exeext conftest.$ac_ext
11898        LDFLAGS="$save_LDFLAGS"
11899      else
11900	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'
11901	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'
11902      fi
11903      archive_cmds_need_lc='no'
11904      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11905      hardcode_libdir_separator=:
11906      inherit_rpath=yes
11907      link_all_deplibs=yes
11908      ;;
11909
11910    netbsd*)
11911      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11912	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11913      else
11914	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11915      fi
11916      hardcode_libdir_flag_spec='-R$libdir'
11917      hardcode_direct=yes
11918      hardcode_shlibpath_var=no
11919      ;;
11920
11921    newsos6)
11922      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11923      hardcode_direct=yes
11924      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11925      hardcode_libdir_separator=:
11926      hardcode_shlibpath_var=no
11927      ;;
11928
11929    *nto* | *qnx*)
11930      ;;
11931
11932    openbsd*)
11933      if test -f /usr/libexec/ld.so; then
11934	hardcode_direct=yes
11935	hardcode_shlibpath_var=no
11936	hardcode_direct_absolute=yes
11937	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11938	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11939	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11940	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11941	  export_dynamic_flag_spec='${wl}-E'
11942	else
11943	  case $host_os in
11944	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11945	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11946	     hardcode_libdir_flag_spec='-R$libdir'
11947	     ;;
11948	   *)
11949	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11950	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11951	     ;;
11952	  esac
11953	fi
11954      else
11955	ld_shlibs=no
11956      fi
11957      ;;
11958
11959    os2*)
11960      hardcode_libdir_flag_spec='-L$libdir'
11961      hardcode_minus_L=yes
11962      allow_undefined_flag=unsupported
11963      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'
11964      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11965      ;;
11966
11967    osf3*)
11968      if test "$GCC" = yes; then
11969	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11970	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'
11971      else
11972	allow_undefined_flag=' -expect_unresolved \*'
11973	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'
11974      fi
11975      archive_cmds_need_lc='no'
11976      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11977      hardcode_libdir_separator=:
11978      ;;
11979
11980    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11981      if test "$GCC" = yes; then
11982	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11983	archive_cmds='$CC -shared${allow_undefined_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'
11984	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11985      else
11986	allow_undefined_flag=' -expect_unresolved \*'
11987	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'
11988	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~
11989	$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'
11990
11991	# Both c and cxx compiler support -rpath directly
11992	hardcode_libdir_flag_spec='-rpath $libdir'
11993      fi
11994      archive_cmds_need_lc='no'
11995      hardcode_libdir_separator=:
11996      ;;
11997
11998    solaris*)
11999      no_undefined_flag=' -z defs'
12000      if test "$GCC" = yes; then
12001	wlarc='${wl}'
12002	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12003	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12004	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12005      else
12006	case `$CC -V 2>&1` in
12007	*"Compilers 5.0"*)
12008	  wlarc=''
12009	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12010	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12011	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12012	  ;;
12013	*)
12014	  wlarc='${wl}'
12015	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12016	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12017	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12018	  ;;
12019	esac
12020      fi
12021      hardcode_libdir_flag_spec='-R$libdir'
12022      hardcode_shlibpath_var=no
12023      case $host_os in
12024      solaris2.[0-5] | solaris2.[0-5].*) ;;
12025      *)
12026	# The compiler driver will combine and reorder linker options,
12027	# but understands `-z linker_flag'.  GCC discards it without `$wl',
12028	# but is careful enough not to reorder.
12029	# Supported since Solaris 2.6 (maybe 2.5.1?)
12030	if test "$GCC" = yes; then
12031	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12032	else
12033	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12034	fi
12035	;;
12036      esac
12037      link_all_deplibs=yes
12038      ;;
12039
12040    sunos4*)
12041      if test "x$host_vendor" = xsequent; then
12042	# Use $CC to link under sequent, because it throws in some extra .o
12043	# files that make .init and .fini sections work.
12044	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12045      else
12046	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12047      fi
12048      hardcode_libdir_flag_spec='-L$libdir'
12049      hardcode_direct=yes
12050      hardcode_minus_L=yes
12051      hardcode_shlibpath_var=no
12052      ;;
12053
12054    sysv4)
12055      case $host_vendor in
12056	sni)
12057	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12058	  hardcode_direct=yes # is this really true???
12059	;;
12060	siemens)
12061	  ## LD is ld it makes a PLAMLIB
12062	  ## CC just makes a GrossModule.
12063	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12064	  reload_cmds='$CC -r -o $output$reload_objs'
12065	  hardcode_direct=no
12066        ;;
12067	motorola)
12068	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12069	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12070	;;
12071      esac
12072      runpath_var='LD_RUN_PATH'
12073      hardcode_shlibpath_var=no
12074      ;;
12075
12076    sysv4.3*)
12077      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12078      hardcode_shlibpath_var=no
12079      export_dynamic_flag_spec='-Bexport'
12080      ;;
12081
12082    sysv4*MP*)
12083      if test -d /usr/nec; then
12084	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12085	hardcode_shlibpath_var=no
12086	runpath_var=LD_RUN_PATH
12087	hardcode_runpath_var=yes
12088	ld_shlibs=yes
12089      fi
12090      ;;
12091
12092    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12093      no_undefined_flag='${wl}-z,text'
12094      archive_cmds_need_lc=no
12095      hardcode_shlibpath_var=no
12096      runpath_var='LD_RUN_PATH'
12097
12098      if test "$GCC" = yes; then
12099	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12100	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12101      else
12102	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12103	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12104      fi
12105      ;;
12106
12107    sysv5* | sco3.2v5* | sco5v6*)
12108      # Note: We can NOT use -z defs as we might desire, because we do not
12109      # link with -lc, and that would cause any symbols used from libc to
12110      # always be unresolved, which means just about no library would
12111      # ever link correctly.  If we're not using GNU ld we use -z text
12112      # though, which does catch some bad symbols but isn't as heavy-handed
12113      # as -z defs.
12114      no_undefined_flag='${wl}-z,text'
12115      allow_undefined_flag='${wl}-z,nodefs'
12116      archive_cmds_need_lc=no
12117      hardcode_shlibpath_var=no
12118      hardcode_libdir_flag_spec='${wl}-R,$libdir'
12119      hardcode_libdir_separator=':'
12120      link_all_deplibs=yes
12121      export_dynamic_flag_spec='${wl}-Bexport'
12122      runpath_var='LD_RUN_PATH'
12123
12124      if test "$GCC" = yes; then
12125	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12126	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12127      else
12128	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12129	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12130      fi
12131      ;;
12132
12133    uts4*)
12134      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12135      hardcode_libdir_flag_spec='-L$libdir'
12136      hardcode_shlibpath_var=no
12137      ;;
12138
12139    *)
12140      ld_shlibs=no
12141      ;;
12142    esac
12143
12144    if test x$host_vendor = xsni; then
12145      case $host in
12146      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12147	export_dynamic_flag_spec='${wl}-Blargedynsym'
12148	;;
12149      esac
12150    fi
12151  fi
12152
12153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12154$as_echo "$ld_shlibs" >&6; }
12155test "$ld_shlibs" = no && can_build_shared=no
12156
12157with_gnu_ld=$with_gnu_ld
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173#
12174# Do we need to explicitly link libc?
12175#
12176case "x$archive_cmds_need_lc" in
12177x|xyes)
12178  # Assume -lc should be added
12179  archive_cmds_need_lc=yes
12180
12181  if test "$enable_shared" = yes && test "$GCC" = yes; then
12182    case $archive_cmds in
12183    *'~'*)
12184      # FIXME: we may have to deal with multi-command sequences.
12185      ;;
12186    '$CC '*)
12187      # Test whether the compiler implicitly links with -lc since on some
12188      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12189      # to ld, don't add -lc before -lgcc.
12190      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12191$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12192if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
12193  $as_echo_n "(cached) " >&6
12194else
12195  $RM conftest*
12196	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12197
12198	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12199  (eval $ac_compile) 2>&5
12200  ac_status=$?
12201  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12202  test $ac_status = 0; } 2>conftest.err; then
12203	  soname=conftest
12204	  lib=conftest
12205	  libobjs=conftest.$ac_objext
12206	  deplibs=
12207	  wl=$lt_prog_compiler_wl
12208	  pic_flag=$lt_prog_compiler_pic
12209	  compiler_flags=-v
12210	  linker_flags=-v
12211	  verstring=
12212	  output_objdir=.
12213	  libname=conftest
12214	  lt_save_allow_undefined_flag=$allow_undefined_flag
12215	  allow_undefined_flag=
12216	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12217  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12218  ac_status=$?
12219  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12220  test $ac_status = 0; }
12221	  then
12222	    lt_cv_archive_cmds_need_lc=no
12223	  else
12224	    lt_cv_archive_cmds_need_lc=yes
12225	  fi
12226	  allow_undefined_flag=$lt_save_allow_undefined_flag
12227	else
12228	  cat conftest.err 1>&5
12229	fi
12230	$RM conftest*
12231
12232fi
12233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12234$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12235      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12236      ;;
12237    esac
12238  fi
12239  ;;
12240esac
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12399$as_echo_n "checking dynamic linker characteristics... " >&6; }
12400
12401if test "$GCC" = yes; then
12402  case $host_os in
12403    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12404    *) lt_awk_arg="/^libraries:/" ;;
12405  esac
12406  case $host_os in
12407    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12408    *) lt_sed_strip_eq="s,=/,/,g" ;;
12409  esac
12410  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12411  case $lt_search_path_spec in
12412  *\;*)
12413    # if the path contains ";" then we assume it to be the separator
12414    # otherwise default to the standard path separator (i.e. ":") - it is
12415    # assumed that no part of a normal pathname contains ";" but that should
12416    # okay in the real world where ";" in dirpaths is itself problematic.
12417    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12418    ;;
12419  *)
12420    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12421    ;;
12422  esac
12423  # Ok, now we have the path, separated by spaces, we can step through it
12424  # and add multilib dir if necessary.
12425  lt_tmp_lt_search_path_spec=
12426  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12427  for lt_sys_path in $lt_search_path_spec; do
12428    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12429      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12430    else
12431      test -d "$lt_sys_path" && \
12432	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12433    fi
12434  done
12435  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12436BEGIN {RS=" "; FS="/|\n";} {
12437  lt_foo="";
12438  lt_count=0;
12439  for (lt_i = NF; lt_i > 0; lt_i--) {
12440    if ($lt_i != "" && $lt_i != ".") {
12441      if ($lt_i == "..") {
12442        lt_count++;
12443      } else {
12444        if (lt_count == 0) {
12445          lt_foo="/" $lt_i lt_foo;
12446        } else {
12447          lt_count--;
12448        }
12449      }
12450    }
12451  }
12452  if (lt_foo != "") { lt_freq[lt_foo]++; }
12453  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12454}'`
12455  # AWK program above erroneously prepends '/' to C:/dos/paths
12456  # for these hosts.
12457  case $host_os in
12458    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12459      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12460  esac
12461  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12462else
12463  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12464fi
12465library_names_spec=
12466libname_spec='lib$name'
12467soname_spec=
12468shrext_cmds=".so"
12469postinstall_cmds=
12470postuninstall_cmds=
12471finish_cmds=
12472finish_eval=
12473shlibpath_var=
12474shlibpath_overrides_runpath=unknown
12475version_type=none
12476dynamic_linker="$host_os ld.so"
12477sys_lib_dlsearch_path_spec="/lib /usr/lib"
12478need_lib_prefix=unknown
12479hardcode_into_libs=no
12480
12481# when you set need_version to no, make sure it does not cause -set_version
12482# flags to be left without arguments
12483need_version=unknown
12484
12485case $host_os in
12486aix3*)
12487  version_type=linux
12488  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12489  shlibpath_var=LIBPATH
12490
12491  # AIX 3 has no versioning support, so we append a major version to the name.
12492  soname_spec='${libname}${release}${shared_ext}$major'
12493  ;;
12494
12495aix[4-9]*)
12496  version_type=linux
12497  need_lib_prefix=no
12498  need_version=no
12499  hardcode_into_libs=yes
12500  if test "$host_cpu" = ia64; then
12501    # AIX 5 supports IA64
12502    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12503    shlibpath_var=LD_LIBRARY_PATH
12504  else
12505    # With GCC up to 2.95.x, collect2 would create an import file
12506    # for dependence libraries.  The import file would start with
12507    # the line `#! .'.  This would cause the generated library to
12508    # depend on `.', always an invalid library.  This was fixed in
12509    # development snapshots of GCC prior to 3.0.
12510    case $host_os in
12511      aix4 | aix4.[01] | aix4.[01].*)
12512      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12513	   echo ' yes '
12514	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12515	:
12516      else
12517	can_build_shared=no
12518      fi
12519      ;;
12520    esac
12521    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12522    # soname into executable. Probably we can add versioning support to
12523    # collect2, so additional links can be useful in future.
12524    if test "$aix_use_runtimelinking" = yes; then
12525      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12526      # instead of lib<name>.a to let people know that these are not
12527      # typical AIX shared libraries.
12528      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12529    else
12530      # We preserve .a as extension for shared libraries through AIX4.2
12531      # and later when we are not doing run time linking.
12532      library_names_spec='${libname}${release}.a $libname.a'
12533      soname_spec='${libname}${release}${shared_ext}$major'
12534    fi
12535    shlibpath_var=LIBPATH
12536  fi
12537  ;;
12538
12539amigaos*)
12540  case $host_cpu in
12541  powerpc)
12542    # Since July 2007 AmigaOS4 officially supports .so libraries.
12543    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12544    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12545    ;;
12546  m68k)
12547    library_names_spec='$libname.ixlibrary $libname.a'
12548    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12549    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'
12550    ;;
12551  esac
12552  ;;
12553
12554beos*)
12555  library_names_spec='${libname}${shared_ext}'
12556  dynamic_linker="$host_os ld.so"
12557  shlibpath_var=LIBRARY_PATH
12558  ;;
12559
12560bsdi[45]*)
12561  version_type=linux
12562  need_version=no
12563  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12564  soname_spec='${libname}${release}${shared_ext}$major'
12565  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12566  shlibpath_var=LD_LIBRARY_PATH
12567  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12568  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12569  # the default ld.so.conf also contains /usr/contrib/lib and
12570  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12571  # libtool to hard-code these into programs
12572  ;;
12573
12574cygwin* | mingw* | pw32* | cegcc*)
12575  version_type=windows
12576  shrext_cmds=".dll"
12577  need_version=no
12578  need_lib_prefix=no
12579
12580  case $GCC,$host_os in
12581  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12582    library_names_spec='$libname.dll.a'
12583    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12584    postinstall_cmds='base_file=`basename \${file}`~
12585      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12586      dldir=$destdir/`dirname \$dlpath`~
12587      test -d \$dldir || mkdir -p \$dldir~
12588      $install_prog $dir/$dlname \$dldir/$dlname~
12589      chmod a+x \$dldir/$dlname~
12590      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12591        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12592      fi'
12593    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12594      dlpath=$dir/\$dldll~
12595       $RM \$dlpath'
12596    shlibpath_overrides_runpath=yes
12597
12598    case $host_os in
12599    cygwin*)
12600      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12601      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12602
12603      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12604      ;;
12605    mingw* | cegcc*)
12606      # MinGW DLLs use traditional 'lib' prefix
12607      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12608      ;;
12609    pw32*)
12610      # pw32 DLLs use 'pw' prefix rather than 'lib'
12611      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12612      ;;
12613    esac
12614    ;;
12615
12616  *)
12617    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12618    ;;
12619  esac
12620  dynamic_linker='Win32 ld.exe'
12621  # FIXME: first we should search . and the directory the executable is in
12622  shlibpath_var=PATH
12623  ;;
12624
12625darwin* | rhapsody*)
12626  dynamic_linker="$host_os dyld"
12627  version_type=darwin
12628  need_lib_prefix=no
12629  need_version=no
12630  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12631  soname_spec='${libname}${release}${major}$shared_ext'
12632  shlibpath_overrides_runpath=yes
12633  shlibpath_var=DYLD_LIBRARY_PATH
12634  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12635
12636  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12637  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12638  ;;
12639
12640dgux*)
12641  version_type=linux
12642  need_lib_prefix=no
12643  need_version=no
12644  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12645  soname_spec='${libname}${release}${shared_ext}$major'
12646  shlibpath_var=LD_LIBRARY_PATH
12647  ;;
12648
12649freebsd1*)
12650  dynamic_linker=no
12651  ;;
12652
12653freebsd* | dragonfly*)
12654  # DragonFly does not have aout.  When/if they implement a new
12655  # versioning mechanism, adjust this.
12656  if test -x /usr/bin/objformat; then
12657    objformat=`/usr/bin/objformat`
12658  else
12659    case $host_os in
12660    freebsd[123]*) objformat=aout ;;
12661    *) objformat=elf ;;
12662    esac
12663  fi
12664  version_type=freebsd-$objformat
12665  case $version_type in
12666    freebsd-elf*)
12667      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12668      need_version=no
12669      need_lib_prefix=no
12670      ;;
12671    freebsd-*)
12672      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12673      need_version=yes
12674      ;;
12675  esac
12676  shlibpath_var=LD_LIBRARY_PATH
12677  case $host_os in
12678  freebsd2*)
12679    shlibpath_overrides_runpath=yes
12680    ;;
12681  freebsd3.[01]* | freebsdelf3.[01]*)
12682    shlibpath_overrides_runpath=yes
12683    hardcode_into_libs=yes
12684    ;;
12685  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12686  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12687    shlibpath_overrides_runpath=no
12688    hardcode_into_libs=yes
12689    ;;
12690  *) # from 4.6 on, and DragonFly
12691    shlibpath_overrides_runpath=yes
12692    hardcode_into_libs=yes
12693    ;;
12694  esac
12695  ;;
12696
12697gnu*)
12698  version_type=linux
12699  need_lib_prefix=no
12700  need_version=no
12701  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12702  soname_spec='${libname}${release}${shared_ext}$major'
12703  shlibpath_var=LD_LIBRARY_PATH
12704  hardcode_into_libs=yes
12705  ;;
12706
12707haiku*)
12708  version_type=linux
12709  need_lib_prefix=no
12710  need_version=no
12711  dynamic_linker="$host_os runtime_loader"
12712  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12713  soname_spec='${libname}${release}${shared_ext}$major'
12714  shlibpath_var=LIBRARY_PATH
12715  shlibpath_overrides_runpath=yes
12716  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12717  hardcode_into_libs=yes
12718  ;;
12719
12720hpux9* | hpux10* | hpux11*)
12721  # Give a soname corresponding to the major version so that dld.sl refuses to
12722  # link against other versions.
12723  version_type=sunos
12724  need_lib_prefix=no
12725  need_version=no
12726  case $host_cpu in
12727  ia64*)
12728    shrext_cmds='.so'
12729    hardcode_into_libs=yes
12730    dynamic_linker="$host_os dld.so"
12731    shlibpath_var=LD_LIBRARY_PATH
12732    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12733    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12734    soname_spec='${libname}${release}${shared_ext}$major'
12735    if test "X$HPUX_IA64_MODE" = X32; then
12736      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12737    else
12738      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12739    fi
12740    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12741    ;;
12742  hppa*64*)
12743    shrext_cmds='.sl'
12744    hardcode_into_libs=yes
12745    dynamic_linker="$host_os dld.sl"
12746    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12747    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12748    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12749    soname_spec='${libname}${release}${shared_ext}$major'
12750    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12751    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12752    ;;
12753  *)
12754    shrext_cmds='.sl'
12755    dynamic_linker="$host_os dld.sl"
12756    shlibpath_var=SHLIB_PATH
12757    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12758    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12759    soname_spec='${libname}${release}${shared_ext}$major'
12760    ;;
12761  esac
12762  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12763  postinstall_cmds='chmod 555 $lib'
12764  # or fails outright, so override atomically:
12765  install_override_mode=555
12766  ;;
12767
12768interix[3-9]*)
12769  version_type=linux
12770  need_lib_prefix=no
12771  need_version=no
12772  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12773  soname_spec='${libname}${release}${shared_ext}$major'
12774  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12775  shlibpath_var=LD_LIBRARY_PATH
12776  shlibpath_overrides_runpath=no
12777  hardcode_into_libs=yes
12778  ;;
12779
12780irix5* | irix6* | nonstopux*)
12781  case $host_os in
12782    nonstopux*) version_type=nonstopux ;;
12783    *)
12784	if test "$lt_cv_prog_gnu_ld" = yes; then
12785		version_type=linux
12786	else
12787		version_type=irix
12788	fi ;;
12789  esac
12790  need_lib_prefix=no
12791  need_version=no
12792  soname_spec='${libname}${release}${shared_ext}$major'
12793  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12794  case $host_os in
12795  irix5* | nonstopux*)
12796    libsuff= shlibsuff=
12797    ;;
12798  *)
12799    case $LD in # libtool.m4 will add one of these switches to LD
12800    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12801      libsuff= shlibsuff= libmagic=32-bit;;
12802    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12803      libsuff=32 shlibsuff=N32 libmagic=N32;;
12804    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12805      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12806    *) libsuff= shlibsuff= libmagic=never-match;;
12807    esac
12808    ;;
12809  esac
12810  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12811  shlibpath_overrides_runpath=no
12812  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12813  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12814  hardcode_into_libs=yes
12815  ;;
12816
12817# No shared lib support for Linux oldld, aout, or coff.
12818linux*oldld* | linux*aout* | linux*coff*)
12819  dynamic_linker=no
12820  ;;
12821
12822# This must be Linux ELF.
12823linux* | k*bsd*-gnu | kopensolaris*-gnu)
12824  version_type=linux
12825  need_lib_prefix=no
12826  need_version=no
12827  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12828  soname_spec='${libname}${release}${shared_ext}$major'
12829  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12830  shlibpath_var=LD_LIBRARY_PATH
12831  shlibpath_overrides_runpath=no
12832
12833  # Some binutils ld are patched to set DT_RUNPATH
12834  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
12835  $as_echo_n "(cached) " >&6
12836else
12837  lt_cv_shlibpath_overrides_runpath=no
12838    save_LDFLAGS=$LDFLAGS
12839    save_libdir=$libdir
12840    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12841	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12842    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12843/* end confdefs.h.  */
12844
12845int
12846main ()
12847{
12848
12849  ;
12850  return 0;
12851}
12852_ACEOF
12853if ac_fn_c_try_link "$LINENO"; then :
12854  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12855  lt_cv_shlibpath_overrides_runpath=yes
12856fi
12857fi
12858rm -f core conftest.err conftest.$ac_objext \
12859    conftest$ac_exeext conftest.$ac_ext
12860    LDFLAGS=$save_LDFLAGS
12861    libdir=$save_libdir
12862
12863fi
12864
12865  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12866
12867  # This implies no fast_install, which is unacceptable.
12868  # Some rework will be needed to allow for fast_install
12869  # before this can be enabled.
12870  hardcode_into_libs=yes
12871
12872  # Add ABI-specific directories to the system library path.
12873  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12874
12875  # Append ld.so.conf contents to the search path
12876  if test -f /etc/ld.so.conf; then
12877    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' ' '`
12878    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12879
12880  fi
12881
12882  # We used to test for /lib/ld.so.1 and disable shared libraries on
12883  # powerpc, because MkLinux only supported shared libraries with the
12884  # GNU dynamic linker.  Since this was broken with cross compilers,
12885  # most powerpc-linux boxes support dynamic linking these days and
12886  # people can always --disable-shared, the test was removed, and we
12887  # assume the GNU/Linux dynamic linker is in use.
12888  dynamic_linker='GNU/Linux ld.so'
12889  ;;
12890
12891netbsd*)
12892  version_type=sunos
12893  need_lib_prefix=no
12894  need_version=no
12895  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12896    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12897    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12898    dynamic_linker='NetBSD (a.out) ld.so'
12899  else
12900    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12901    soname_spec='${libname}${release}${shared_ext}$major'
12902    dynamic_linker='NetBSD ld.elf_so'
12903  fi
12904  shlibpath_var=LD_LIBRARY_PATH
12905  shlibpath_overrides_runpath=yes
12906  hardcode_into_libs=yes
12907  ;;
12908
12909newsos6)
12910  version_type=linux
12911  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12912  shlibpath_var=LD_LIBRARY_PATH
12913  shlibpath_overrides_runpath=yes
12914  ;;
12915
12916*nto* | *qnx*)
12917  version_type=qnx
12918  need_lib_prefix=no
12919  need_version=no
12920  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12921  soname_spec='${libname}${release}${shared_ext}$major'
12922  shlibpath_var=LD_LIBRARY_PATH
12923  shlibpath_overrides_runpath=no
12924  hardcode_into_libs=yes
12925  dynamic_linker='ldqnx.so'
12926  ;;
12927
12928openbsd*)
12929  version_type=sunos
12930  sys_lib_dlsearch_path_spec="/usr/lib"
12931  need_lib_prefix=no
12932  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12933  case $host_os in
12934    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
12935    *)				need_version=no  ;;
12936  esac
12937  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12938  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12939  shlibpath_var=LD_LIBRARY_PATH
12940  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12941    case $host_os in
12942      openbsd2.[89] | openbsd2.[89].*)
12943	shlibpath_overrides_runpath=no
12944	;;
12945      *)
12946	shlibpath_overrides_runpath=yes
12947	;;
12948      esac
12949  else
12950    shlibpath_overrides_runpath=yes
12951  fi
12952  ;;
12953
12954os2*)
12955  libname_spec='$name'
12956  shrext_cmds=".dll"
12957  need_lib_prefix=no
12958  library_names_spec='$libname${shared_ext} $libname.a'
12959  dynamic_linker='OS/2 ld.exe'
12960  shlibpath_var=LIBPATH
12961  ;;
12962
12963osf3* | osf4* | osf5*)
12964  version_type=osf
12965  need_lib_prefix=no
12966  need_version=no
12967  soname_spec='${libname}${release}${shared_ext}$major'
12968  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12969  shlibpath_var=LD_LIBRARY_PATH
12970  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12971  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12972  ;;
12973
12974rdos*)
12975  dynamic_linker=no
12976  ;;
12977
12978solaris*)
12979  version_type=linux
12980  need_lib_prefix=no
12981  need_version=no
12982  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12983  soname_spec='${libname}${release}${shared_ext}$major'
12984  shlibpath_var=LD_LIBRARY_PATH
12985  shlibpath_overrides_runpath=yes
12986  hardcode_into_libs=yes
12987  # ldd complains unless libraries are executable
12988  postinstall_cmds='chmod +x $lib'
12989  ;;
12990
12991sunos4*)
12992  version_type=sunos
12993  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12994  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12995  shlibpath_var=LD_LIBRARY_PATH
12996  shlibpath_overrides_runpath=yes
12997  if test "$with_gnu_ld" = yes; then
12998    need_lib_prefix=no
12999  fi
13000  need_version=yes
13001  ;;
13002
13003sysv4 | sysv4.3*)
13004  version_type=linux
13005  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13006  soname_spec='${libname}${release}${shared_ext}$major'
13007  shlibpath_var=LD_LIBRARY_PATH
13008  case $host_vendor in
13009    sni)
13010      shlibpath_overrides_runpath=no
13011      need_lib_prefix=no
13012      runpath_var=LD_RUN_PATH
13013      ;;
13014    siemens)
13015      need_lib_prefix=no
13016      ;;
13017    motorola)
13018      need_lib_prefix=no
13019      need_version=no
13020      shlibpath_overrides_runpath=no
13021      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13022      ;;
13023  esac
13024  ;;
13025
13026sysv4*MP*)
13027  if test -d /usr/nec ;then
13028    version_type=linux
13029    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13030    soname_spec='$libname${shared_ext}.$major'
13031    shlibpath_var=LD_LIBRARY_PATH
13032  fi
13033  ;;
13034
13035sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13036  version_type=freebsd-elf
13037  need_lib_prefix=no
13038  need_version=no
13039  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13040  soname_spec='${libname}${release}${shared_ext}$major'
13041  shlibpath_var=LD_LIBRARY_PATH
13042  shlibpath_overrides_runpath=yes
13043  hardcode_into_libs=yes
13044  if test "$with_gnu_ld" = yes; then
13045    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13046  else
13047    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13048    case $host_os in
13049      sco3.2v5*)
13050        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13051	;;
13052    esac
13053  fi
13054  sys_lib_dlsearch_path_spec='/usr/lib'
13055  ;;
13056
13057tpf*)
13058  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13059  version_type=linux
13060  need_lib_prefix=no
13061  need_version=no
13062  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13063  shlibpath_var=LD_LIBRARY_PATH
13064  shlibpath_overrides_runpath=no
13065  hardcode_into_libs=yes
13066  ;;
13067
13068uts4*)
13069  version_type=linux
13070  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13071  soname_spec='${libname}${release}${shared_ext}$major'
13072  shlibpath_var=LD_LIBRARY_PATH
13073  ;;
13074
13075*)
13076  dynamic_linker=no
13077  ;;
13078esac
13079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13080$as_echo "$dynamic_linker" >&6; }
13081test "$dynamic_linker" = no && can_build_shared=no
13082
13083variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13084if test "$GCC" = yes; then
13085  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13086fi
13087
13088if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13089  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13090fi
13091if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13092  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13093fi
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13187$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13188hardcode_action=
13189if test -n "$hardcode_libdir_flag_spec" ||
13190   test -n "$runpath_var" ||
13191   test "X$hardcode_automatic" = "Xyes" ; then
13192
13193  # We can hardcode non-existent directories.
13194  if test "$hardcode_direct" != no &&
13195     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13196     # have to relink, otherwise we might link with an installed library
13197     # when we should be linking with a yet-to-be-installed one
13198     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13199     test "$hardcode_minus_L" != no; then
13200    # Linking always hardcodes the temporary library directory.
13201    hardcode_action=relink
13202  else
13203    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13204    hardcode_action=immediate
13205  fi
13206else
13207  # We cannot hardcode anything, or else we can only hardcode existing
13208  # directories.
13209  hardcode_action=unsupported
13210fi
13211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13212$as_echo "$hardcode_action" >&6; }
13213
13214if test "$hardcode_action" = relink ||
13215   test "$inherit_rpath" = yes; then
13216  # Fast installation is not supported
13217  enable_fast_install=no
13218elif test "$shlibpath_overrides_runpath" = yes ||
13219     test "$enable_shared" = no; then
13220  # Fast installation is not necessary
13221  enable_fast_install=needless
13222fi
13223
13224
13225
13226
13227
13228
13229  if test "x$enable_dlopen" != xyes; then
13230  enable_dlopen=unknown
13231  enable_dlopen_self=unknown
13232  enable_dlopen_self_static=unknown
13233else
13234  lt_cv_dlopen=no
13235  lt_cv_dlopen_libs=
13236
13237  case $host_os in
13238  beos*)
13239    lt_cv_dlopen="load_add_on"
13240    lt_cv_dlopen_libs=
13241    lt_cv_dlopen_self=yes
13242    ;;
13243
13244  mingw* | pw32* | cegcc*)
13245    lt_cv_dlopen="LoadLibrary"
13246    lt_cv_dlopen_libs=
13247    ;;
13248
13249  cygwin*)
13250    lt_cv_dlopen="dlopen"
13251    lt_cv_dlopen_libs=
13252    ;;
13253
13254  darwin*)
13255  # if libdl is installed we need to link against it
13256    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13257$as_echo_n "checking for dlopen in -ldl... " >&6; }
13258if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13259  $as_echo_n "(cached) " >&6
13260else
13261  ac_check_lib_save_LIBS=$LIBS
13262LIBS="-ldl  $LIBS"
13263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13264/* end confdefs.h.  */
13265
13266/* Override any GCC internal prototype to avoid an error.
13267   Use char because int might match the return type of a GCC
13268   builtin and then its argument prototype would still apply.  */
13269#ifdef __cplusplus
13270extern "C"
13271#endif
13272char dlopen ();
13273int
13274main ()
13275{
13276return dlopen ();
13277  ;
13278  return 0;
13279}
13280_ACEOF
13281if ac_fn_c_try_link "$LINENO"; then :
13282  ac_cv_lib_dl_dlopen=yes
13283else
13284  ac_cv_lib_dl_dlopen=no
13285fi
13286rm -f core conftest.err conftest.$ac_objext \
13287    conftest$ac_exeext conftest.$ac_ext
13288LIBS=$ac_check_lib_save_LIBS
13289fi
13290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13291$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13292if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13293  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13294else
13295
13296    lt_cv_dlopen="dyld"
13297    lt_cv_dlopen_libs=
13298    lt_cv_dlopen_self=yes
13299
13300fi
13301
13302    ;;
13303
13304  *)
13305    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13306if test "x$ac_cv_func_shl_load" = x""yes; then :
13307  lt_cv_dlopen="shl_load"
13308else
13309  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13310$as_echo_n "checking for shl_load in -ldld... " >&6; }
13311if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13312  $as_echo_n "(cached) " >&6
13313else
13314  ac_check_lib_save_LIBS=$LIBS
13315LIBS="-ldld  $LIBS"
13316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13317/* end confdefs.h.  */
13318
13319/* Override any GCC internal prototype to avoid an error.
13320   Use char because int might match the return type of a GCC
13321   builtin and then its argument prototype would still apply.  */
13322#ifdef __cplusplus
13323extern "C"
13324#endif
13325char shl_load ();
13326int
13327main ()
13328{
13329return shl_load ();
13330  ;
13331  return 0;
13332}
13333_ACEOF
13334if ac_fn_c_try_link "$LINENO"; then :
13335  ac_cv_lib_dld_shl_load=yes
13336else
13337  ac_cv_lib_dld_shl_load=no
13338fi
13339rm -f core conftest.err conftest.$ac_objext \
13340    conftest$ac_exeext conftest.$ac_ext
13341LIBS=$ac_check_lib_save_LIBS
13342fi
13343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13344$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13345if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13346  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13347else
13348  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13349if test "x$ac_cv_func_dlopen" = x""yes; then :
13350  lt_cv_dlopen="dlopen"
13351else
13352  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13353$as_echo_n "checking for dlopen in -ldl... " >&6; }
13354if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13355  $as_echo_n "(cached) " >&6
13356else
13357  ac_check_lib_save_LIBS=$LIBS
13358LIBS="-ldl  $LIBS"
13359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13360/* end confdefs.h.  */
13361
13362/* Override any GCC internal prototype to avoid an error.
13363   Use char because int might match the return type of a GCC
13364   builtin and then its argument prototype would still apply.  */
13365#ifdef __cplusplus
13366extern "C"
13367#endif
13368char dlopen ();
13369int
13370main ()
13371{
13372return dlopen ();
13373  ;
13374  return 0;
13375}
13376_ACEOF
13377if ac_fn_c_try_link "$LINENO"; then :
13378  ac_cv_lib_dl_dlopen=yes
13379else
13380  ac_cv_lib_dl_dlopen=no
13381fi
13382rm -f core conftest.err conftest.$ac_objext \
13383    conftest$ac_exeext conftest.$ac_ext
13384LIBS=$ac_check_lib_save_LIBS
13385fi
13386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13387$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13388if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13389  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13390else
13391  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13392$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13393if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13394  $as_echo_n "(cached) " >&6
13395else
13396  ac_check_lib_save_LIBS=$LIBS
13397LIBS="-lsvld  $LIBS"
13398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13399/* end confdefs.h.  */
13400
13401/* Override any GCC internal prototype to avoid an error.
13402   Use char because int might match the return type of a GCC
13403   builtin and then its argument prototype would still apply.  */
13404#ifdef __cplusplus
13405extern "C"
13406#endif
13407char dlopen ();
13408int
13409main ()
13410{
13411return dlopen ();
13412  ;
13413  return 0;
13414}
13415_ACEOF
13416if ac_fn_c_try_link "$LINENO"; then :
13417  ac_cv_lib_svld_dlopen=yes
13418else
13419  ac_cv_lib_svld_dlopen=no
13420fi
13421rm -f core conftest.err conftest.$ac_objext \
13422    conftest$ac_exeext conftest.$ac_ext
13423LIBS=$ac_check_lib_save_LIBS
13424fi
13425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13426$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13427if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13428  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13429else
13430  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13431$as_echo_n "checking for dld_link in -ldld... " >&6; }
13432if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13433  $as_echo_n "(cached) " >&6
13434else
13435  ac_check_lib_save_LIBS=$LIBS
13436LIBS="-ldld  $LIBS"
13437cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13438/* end confdefs.h.  */
13439
13440/* Override any GCC internal prototype to avoid an error.
13441   Use char because int might match the return type of a GCC
13442   builtin and then its argument prototype would still apply.  */
13443#ifdef __cplusplus
13444extern "C"
13445#endif
13446char dld_link ();
13447int
13448main ()
13449{
13450return dld_link ();
13451  ;
13452  return 0;
13453}
13454_ACEOF
13455if ac_fn_c_try_link "$LINENO"; then :
13456  ac_cv_lib_dld_dld_link=yes
13457else
13458  ac_cv_lib_dld_dld_link=no
13459fi
13460rm -f core conftest.err conftest.$ac_objext \
13461    conftest$ac_exeext conftest.$ac_ext
13462LIBS=$ac_check_lib_save_LIBS
13463fi
13464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13465$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13466if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13467  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13468fi
13469
13470
13471fi
13472
13473
13474fi
13475
13476
13477fi
13478
13479
13480fi
13481
13482
13483fi
13484
13485    ;;
13486  esac
13487
13488  if test "x$lt_cv_dlopen" != xno; then
13489    enable_dlopen=yes
13490  else
13491    enable_dlopen=no
13492  fi
13493
13494  case $lt_cv_dlopen in
13495  dlopen)
13496    save_CPPFLAGS="$CPPFLAGS"
13497    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13498
13499    save_LDFLAGS="$LDFLAGS"
13500    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13501
13502    save_LIBS="$LIBS"
13503    LIBS="$lt_cv_dlopen_libs $LIBS"
13504
13505    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13506$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13507if test "${lt_cv_dlopen_self+set}" = set; then :
13508  $as_echo_n "(cached) " >&6
13509else
13510  	  if test "$cross_compiling" = yes; then :
13511  lt_cv_dlopen_self=cross
13512else
13513  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13514  lt_status=$lt_dlunknown
13515  cat > conftest.$ac_ext <<_LT_EOF
13516#line $LINENO "configure"
13517#include "confdefs.h"
13518
13519#if HAVE_DLFCN_H
13520#include <dlfcn.h>
13521#endif
13522
13523#include <stdio.h>
13524
13525#ifdef RTLD_GLOBAL
13526#  define LT_DLGLOBAL		RTLD_GLOBAL
13527#else
13528#  ifdef DL_GLOBAL
13529#    define LT_DLGLOBAL		DL_GLOBAL
13530#  else
13531#    define LT_DLGLOBAL		0
13532#  endif
13533#endif
13534
13535/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13536   find out it does not work in some platform. */
13537#ifndef LT_DLLAZY_OR_NOW
13538#  ifdef RTLD_LAZY
13539#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13540#  else
13541#    ifdef DL_LAZY
13542#      define LT_DLLAZY_OR_NOW		DL_LAZY
13543#    else
13544#      ifdef RTLD_NOW
13545#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13546#      else
13547#        ifdef DL_NOW
13548#          define LT_DLLAZY_OR_NOW	DL_NOW
13549#        else
13550#          define LT_DLLAZY_OR_NOW	0
13551#        endif
13552#      endif
13553#    endif
13554#  endif
13555#endif
13556
13557/* When -fvisbility=hidden is used, assume the code has been annotated
13558   correspondingly for the symbols needed.  */
13559#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13560void fnord () __attribute__((visibility("default")));
13561#endif
13562
13563void fnord () { int i=42; }
13564int main ()
13565{
13566  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13567  int status = $lt_dlunknown;
13568
13569  if (self)
13570    {
13571      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13572      else
13573        {
13574	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13575          else puts (dlerror ());
13576	}
13577      /* dlclose (self); */
13578    }
13579  else
13580    puts (dlerror ());
13581
13582  return status;
13583}
13584_LT_EOF
13585  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13586  (eval $ac_link) 2>&5
13587  ac_status=$?
13588  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13589  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13590    (./conftest; exit; ) >&5 2>/dev/null
13591    lt_status=$?
13592    case x$lt_status in
13593      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13594      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13595      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13596    esac
13597  else :
13598    # compilation failed
13599    lt_cv_dlopen_self=no
13600  fi
13601fi
13602rm -fr conftest*
13603
13604
13605fi
13606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13607$as_echo "$lt_cv_dlopen_self" >&6; }
13608
13609    if test "x$lt_cv_dlopen_self" = xyes; then
13610      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13611      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13612$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13613if test "${lt_cv_dlopen_self_static+set}" = set; then :
13614  $as_echo_n "(cached) " >&6
13615else
13616  	  if test "$cross_compiling" = yes; then :
13617  lt_cv_dlopen_self_static=cross
13618else
13619  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13620  lt_status=$lt_dlunknown
13621  cat > conftest.$ac_ext <<_LT_EOF
13622#line $LINENO "configure"
13623#include "confdefs.h"
13624
13625#if HAVE_DLFCN_H
13626#include <dlfcn.h>
13627#endif
13628
13629#include <stdio.h>
13630
13631#ifdef RTLD_GLOBAL
13632#  define LT_DLGLOBAL		RTLD_GLOBAL
13633#else
13634#  ifdef DL_GLOBAL
13635#    define LT_DLGLOBAL		DL_GLOBAL
13636#  else
13637#    define LT_DLGLOBAL		0
13638#  endif
13639#endif
13640
13641/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13642   find out it does not work in some platform. */
13643#ifndef LT_DLLAZY_OR_NOW
13644#  ifdef RTLD_LAZY
13645#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13646#  else
13647#    ifdef DL_LAZY
13648#      define LT_DLLAZY_OR_NOW		DL_LAZY
13649#    else
13650#      ifdef RTLD_NOW
13651#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13652#      else
13653#        ifdef DL_NOW
13654#          define LT_DLLAZY_OR_NOW	DL_NOW
13655#        else
13656#          define LT_DLLAZY_OR_NOW	0
13657#        endif
13658#      endif
13659#    endif
13660#  endif
13661#endif
13662
13663/* When -fvisbility=hidden is used, assume the code has been annotated
13664   correspondingly for the symbols needed.  */
13665#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13666void fnord () __attribute__((visibility("default")));
13667#endif
13668
13669void fnord () { int i=42; }
13670int main ()
13671{
13672  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13673  int status = $lt_dlunknown;
13674
13675  if (self)
13676    {
13677      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13678      else
13679        {
13680	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13681          else puts (dlerror ());
13682	}
13683      /* dlclose (self); */
13684    }
13685  else
13686    puts (dlerror ());
13687
13688  return status;
13689}
13690_LT_EOF
13691  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13692  (eval $ac_link) 2>&5
13693  ac_status=$?
13694  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13695  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13696    (./conftest; exit; ) >&5 2>/dev/null
13697    lt_status=$?
13698    case x$lt_status in
13699      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13700      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13701      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13702    esac
13703  else :
13704    # compilation failed
13705    lt_cv_dlopen_self_static=no
13706  fi
13707fi
13708rm -fr conftest*
13709
13710
13711fi
13712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13713$as_echo "$lt_cv_dlopen_self_static" >&6; }
13714    fi
13715
13716    CPPFLAGS="$save_CPPFLAGS"
13717    LDFLAGS="$save_LDFLAGS"
13718    LIBS="$save_LIBS"
13719    ;;
13720  esac
13721
13722  case $lt_cv_dlopen_self in
13723  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13724  *) enable_dlopen_self=unknown ;;
13725  esac
13726
13727  case $lt_cv_dlopen_self_static in
13728  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13729  *) enable_dlopen_self_static=unknown ;;
13730  esac
13731fi
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749striplib=
13750old_striplib=
13751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13752$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13753if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13754  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13755  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13757$as_echo "yes" >&6; }
13758else
13759# FIXME - insert some real tests, host_os isn't really good enough
13760  case $host_os in
13761  darwin*)
13762    if test -n "$STRIP" ; then
13763      striplib="$STRIP -x"
13764      old_striplib="$STRIP -S"
13765      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13766$as_echo "yes" >&6; }
13767    else
13768      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13769$as_echo "no" >&6; }
13770    fi
13771    ;;
13772  *)
13773    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13774$as_echo "no" >&6; }
13775    ;;
13776  esac
13777fi
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790  # Report which library types will actually be built
13791  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13792$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13794$as_echo "$can_build_shared" >&6; }
13795
13796  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13797$as_echo_n "checking whether to build shared libraries... " >&6; }
13798  test "$can_build_shared" = "no" && enable_shared=no
13799
13800  # On AIX, shared libraries and static libraries use the same namespace, and
13801  # are all built from PIC.
13802  case $host_os in
13803  aix3*)
13804    test "$enable_shared" = yes && enable_static=no
13805    if test -n "$RANLIB"; then
13806      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13807      postinstall_cmds='$RANLIB $lib'
13808    fi
13809    ;;
13810
13811  aix[4-9]*)
13812    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13813      test "$enable_shared" = yes && enable_static=no
13814    fi
13815    ;;
13816  esac
13817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13818$as_echo "$enable_shared" >&6; }
13819
13820  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13821$as_echo_n "checking whether to build static libraries... " >&6; }
13822  # Make sure either enable_shared or enable_static is yes.
13823  test "$enable_shared" = yes || enable_static=yes
13824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13825$as_echo "$enable_static" >&6; }
13826
13827
13828
13829
13830fi
13831ac_ext=c
13832ac_cpp='$CPP $CPPFLAGS'
13833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13835ac_compiler_gnu=$ac_cv_c_compiler_gnu
13836
13837CC="$lt_save_CC"
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851        ac_config_commands="$ac_config_commands libtool"
13852
13853
13854
13855
13856# Only expand once:
13857
13858
13859
13860
13861
13862# Checks to compile test suite
13863
13864
13865
13866
13867
13868# The cast to long int works around a bug in the HP C Compiler
13869# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13870# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13871# This bug is HP SR number 8606223364.
13872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
13873$as_echo_n "checking size of time_t... " >&6; }
13874if test "${ac_cv_sizeof_time_t+set}" = set; then :
13875  $as_echo_n "(cached) " >&6
13876else
13877  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default
13878
13879#ifdef HAVE_SYS_TIME_H
13880#include <sys/time.h>
13881#endif
13882"; then :
13883
13884else
13885  if test "$ac_cv_type_time_t" = yes; then
13886     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13887$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13888as_fn_error 77 "cannot compute sizeof (time_t)
13889See \`config.log' for more details" "$LINENO" 5; }
13890   else
13891     ac_cv_sizeof_time_t=0
13892   fi
13893fi
13894
13895fi
13896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
13897$as_echo "$ac_cv_sizeof_time_t" >&6; }
13898
13899
13900
13901cat >>confdefs.h <<_ACEOF
13902#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13903_ACEOF
13904
13905
13906
13907
13908
13909
13910
13911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print time_t" >&5
13912$as_echo_n "checking how to print time_t... " >&6; }
13913if test "${ne_cv_fmt_time_t+set}" = set; then :
13914  $as_echo_n "(cached) " >&6
13915else
13916
13917ne_cv_fmt_time_t=none
13918if test $ne_fmt_trycompile = yes; then
13919  oflags="$CPPFLAGS"
13920  # Consider format string mismatches as errors
13921  CPPFLAGS="$CPPFLAGS -Wformat -Werror"
13922    for str in d ld lld; do
13923    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13924/* end confdefs.h.  */
13925#include <sys/types.h>
13926
13927#ifdef HAVE_SYS_TIME_H
13928#include <sys/time.h>
13929#endif
13930#include <stdio.h>
13931int
13932main ()
13933{
13934time_t i = 1; printf("%$str", i);
13935  ;
13936  return 0;
13937}
13938_ACEOF
13939if ac_fn_c_try_compile "$LINENO"; then :
13940  ne_cv_fmt_time_t=$str; break
13941fi
13942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13943  done
13944  CPPFLAGS=$oflags
13945else
13946  # Best guess. Don't have to be too precise since we probably won't
13947  # get a warning message anyway.
13948  case $ac_cv_sizeof_time_t in
13949  $ac_cv_sizeof_int) ne_cv_fmt_time_t="d" ;;
13950  $ac_cv_sizeof_long) ne_cv_fmt_time_t="ld" ;;
13951  $ac_cv_sizeof_long_long) ne_cv_fmt_time_t="lld" ;;
13952  esac
13953fi
13954
13955fi
13956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_time_t" >&5
13957$as_echo "$ne_cv_fmt_time_t" >&6; }
13958
13959if test "x$ne_cv_fmt_time_t" = "xnone"; then
13960  as_fn_error $? "format string for time_t not found" "$LINENO" 5
13961fi
13962
13963
13964cat >>confdefs.h <<_ACEOF
13965#define NE_FMT_TIME_T "$ne_cv_fmt_time_t"
13966_ACEOF
13967
13968
13969
13970ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13971if test "x$ac_cv_type_pid_t" = x""yes; then :
13972
13973else
13974
13975cat >>confdefs.h <<_ACEOF
13976#define pid_t int
13977_ACEOF
13978
13979fi
13980
13981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13982$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13983if test "${ac_cv_header_time+set}" = set; then :
13984  $as_echo_n "(cached) " >&6
13985else
13986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13987/* end confdefs.h.  */
13988#include <sys/types.h>
13989#include <sys/time.h>
13990#include <time.h>
13991
13992int
13993main ()
13994{
13995if ((struct tm *) 0)
13996return 0;
13997  ;
13998  return 0;
13999}
14000_ACEOF
14001if ac_fn_c_try_compile "$LINENO"; then :
14002  ac_cv_header_time=yes
14003else
14004  ac_cv_header_time=no
14005fi
14006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14007fi
14008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14009$as_echo "$ac_cv_header_time" >&6; }
14010if test $ac_cv_header_time = yes; then
14011
14012$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14013
14014fi
14015
14016
14017
14018# Search in /usr/ccs/bin for Solaris
14019ne_PATH=$PATH:/usr/ccs/bin
14020if test -n "$ac_tool_prefix"; then
14021  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14022set dummy ${ac_tool_prefix}ar; ac_word=$2
14023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14024$as_echo_n "checking for $ac_word... " >&6; }
14025if test "${ac_cv_path_AR+set}" = set; then :
14026  $as_echo_n "(cached) " >&6
14027else
14028  case $AR in
14029  [\\/]* | ?:[\\/]*)
14030  ac_cv_path_AR="$AR" # Let the user override the test with a path.
14031  ;;
14032  *)
14033  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14034for as_dir in $ne_PATH
14035do
14036  IFS=$as_save_IFS
14037  test -z "$as_dir" && as_dir=.
14038    for ac_exec_ext in '' $ac_executable_extensions; do
14039  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14040    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
14041    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14042    break 2
14043  fi
14044done
14045  done
14046IFS=$as_save_IFS
14047
14048  ;;
14049esac
14050fi
14051AR=$ac_cv_path_AR
14052if test -n "$AR"; then
14053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14054$as_echo "$AR" >&6; }
14055else
14056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14057$as_echo "no" >&6; }
14058fi
14059
14060
14061fi
14062if test -z "$ac_cv_path_AR"; then
14063  ac_pt_AR=$AR
14064  # Extract the first word of "ar", so it can be a program name with args.
14065set dummy ar; ac_word=$2
14066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14067$as_echo_n "checking for $ac_word... " >&6; }
14068if test "${ac_cv_path_ac_pt_AR+set}" = set; then :
14069  $as_echo_n "(cached) " >&6
14070else
14071  case $ac_pt_AR in
14072  [\\/]* | ?:[\\/]*)
14073  ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
14074  ;;
14075  *)
14076  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14077for as_dir in $ne_PATH
14078do
14079  IFS=$as_save_IFS
14080  test -z "$as_dir" && as_dir=.
14081    for ac_exec_ext in '' $ac_executable_extensions; do
14082  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14083    ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
14084    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14085    break 2
14086  fi
14087done
14088  done
14089IFS=$as_save_IFS
14090
14091  ;;
14092esac
14093fi
14094ac_pt_AR=$ac_cv_path_ac_pt_AR
14095if test -n "$ac_pt_AR"; then
14096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
14097$as_echo "$ac_pt_AR" >&6; }
14098else
14099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14100$as_echo "no" >&6; }
14101fi
14102
14103  if test "x$ac_pt_AR" = x; then
14104    AR="notfound"
14105  else
14106    case $cross_compiling:$ac_tool_warned in
14107yes:)
14108{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14109$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14110ac_tool_warned=yes ;;
14111esac
14112    AR=$ac_pt_AR
14113  fi
14114else
14115  AR="$ac_cv_path_AR"
14116fi
14117
14118if test "x$AR" = "xnotfound"; then
14119   as_fn_error $? "could not find ar tool" "$LINENO" 5
14120fi
14121if test -n "$ac_tool_prefix"; then
14122  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14123set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14125$as_echo_n "checking for $ac_word... " >&6; }
14126if test "${ac_cv_path_RANLIB+set}" = set; then :
14127  $as_echo_n "(cached) " >&6
14128else
14129  case $RANLIB in
14130  [\\/]* | ?:[\\/]*)
14131  ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
14132  ;;
14133  *)
14134  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14135for as_dir in $ne_PATH
14136do
14137  IFS=$as_save_IFS
14138  test -z "$as_dir" && as_dir=.
14139    for ac_exec_ext in '' $ac_executable_extensions; do
14140  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14141    ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
14142    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14143    break 2
14144  fi
14145done
14146  done
14147IFS=$as_save_IFS
14148
14149  ;;
14150esac
14151fi
14152RANLIB=$ac_cv_path_RANLIB
14153if test -n "$RANLIB"; then
14154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14155$as_echo "$RANLIB" >&6; }
14156else
14157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14158$as_echo "no" >&6; }
14159fi
14160
14161
14162fi
14163if test -z "$ac_cv_path_RANLIB"; then
14164  ac_pt_RANLIB=$RANLIB
14165  # Extract the first word of "ranlib", so it can be a program name with args.
14166set dummy ranlib; ac_word=$2
14167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14168$as_echo_n "checking for $ac_word... " >&6; }
14169if test "${ac_cv_path_ac_pt_RANLIB+set}" = set; then :
14170  $as_echo_n "(cached) " >&6
14171else
14172  case $ac_pt_RANLIB in
14173  [\\/]* | ?:[\\/]*)
14174  ac_cv_path_ac_pt_RANLIB="$ac_pt_RANLIB" # Let the user override the test with a path.
14175  ;;
14176  *)
14177  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14178for as_dir in $ne_PATH
14179do
14180  IFS=$as_save_IFS
14181  test -z "$as_dir" && as_dir=.
14182    for ac_exec_ext in '' $ac_executable_extensions; do
14183  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14184    ac_cv_path_ac_pt_RANLIB="$as_dir/$ac_word$ac_exec_ext"
14185    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14186    break 2
14187  fi
14188done
14189  done
14190IFS=$as_save_IFS
14191
14192  ;;
14193esac
14194fi
14195ac_pt_RANLIB=$ac_cv_path_ac_pt_RANLIB
14196if test -n "$ac_pt_RANLIB"; then
14197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RANLIB" >&5
14198$as_echo "$ac_pt_RANLIB" >&6; }
14199else
14200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14201$as_echo "no" >&6; }
14202fi
14203
14204  if test "x$ac_pt_RANLIB" = x; then
14205    RANLIB=":"
14206  else
14207    case $cross_compiling:$ac_tool_warned in
14208yes:)
14209{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14210$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14211ac_tool_warned=yes ;;
14212esac
14213    RANLIB=$ac_pt_RANLIB
14214  fi
14215else
14216  RANLIB="$ac_cv_path_RANLIB"
14217fi
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231for ac_header in sys/time.h stdint.h locale.h signal.h
14232do :
14233  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14234ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14235if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14236  cat >>confdefs.h <<_ACEOF
14237#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14238_ACEOF
14239
14240fi
14241
14242done
14243
14244
14245for ac_func in pipe isatty usleep shutdown setlocale gethostname
14246do :
14247  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14248ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14249if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14250  cat >>confdefs.h <<_ACEOF
14251#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14252_ACEOF
14253
14254fi
14255done
14256
14257
14258
14259
14260
14261
14262# Use the libtool-type build.
14263
14264
14265NEON_TARGET=libneon.la
14266NEON_OBJEXT=lo
14267
14268
14269
14270# Using the default set of object files to build.
14271# Add the extension to EXTRAOBJS
14272ne="$NEON_EXTRAOBJS"
14273NEON_EXTRAOBJS=
14274for o in $ne; do
14275	NEON_EXTRAOBJS="$NEON_EXTRAOBJS $o.$NEON_OBJEXT"
14276done
14277
14278# Was DAV support explicitly turned off?
14279if test "x$neon_no_webdav" = "xyes"; then
14280  # No WebDAV support
14281  NEONOBJS="$NEONOBJS \$(NEON_BASEOBJS)"
14282
14283NE_FLAG_DAV=no
14284
14285ne_DAV_message="WebDAV support is not enabled"
14286  { $as_echo "$as_me:${as_lineno-$LINENO}: WebDAV support is not enabled" >&5
14287$as_echo "$as_me: WebDAV support is not enabled" >&6;}
14288
14289
14290if test "x${NE_LIBTOOL_RELEASE}y" = "xy"; then
14291   NE_LIBTOOL_RELEASE="NODAV"
14292else
14293   NE_LIBTOOL_RELEASE="${NE_LIBTOOL_RELEASE}-NODAV"
14294fi
14295
14296else
14297  # WebDAV support
14298  NEONOBJS="$NEONOBJS \$(NEON_DAVOBJS)"
14299
14300NE_FLAG_DAV=yes
14301
14302
14303$as_echo "#define NE_HAVE_DAV 1" >>confdefs.h
14304
14305ne_DAV_message="WebDAV support is enabled"
14306  { $as_echo "$as_me:${as_lineno-$LINENO}: WebDAV support is enabled" >&5
14307$as_echo "$as_me: WebDAV support is enabled" >&6;}
14308
14309fi
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320# Find an XML parser
14321
14322
14323
14324# Check whether --with-libxml2 was given.
14325if test "${with_libxml2+set}" = set; then :
14326  withval=$with_libxml2;
14327fi
14328
14329
14330# Check whether --with-expat was given.
14331if test "${with_expat+set}" = set; then :
14332  withval=$with_expat;
14333fi
14334
14335
14336with_included_expat=no
14337
14338if test "$NEON_NEED_XML_PARSER" = "yes"; then
14339  # Find an XML parser
14340  neon_xml_parser=none
14341
14342  # Forced choice of expat:
14343  case $with_expat in
14344  yes)
14345ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
14346if test "x$ac_cv_header_expat_h" = x""yes; then :
14347  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_SetXmlDeclHandler in -lexpat" >&5
14348$as_echo_n "checking for XML_SetXmlDeclHandler in -lexpat... " >&6; }
14349if test "${ac_cv_lib_expat_XML_SetXmlDeclHandler+set}" = set; then :
14350  $as_echo_n "(cached) " >&6
14351else
14352  ac_check_lib_save_LIBS=$LIBS
14353LIBS="-lexpat  $LIBS"
14354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14355/* end confdefs.h.  */
14356
14357/* Override any GCC internal prototype to avoid an error.
14358   Use char because int might match the return type of a GCC
14359   builtin and then its argument prototype would still apply.  */
14360#ifdef __cplusplus
14361extern "C"
14362#endif
14363char XML_SetXmlDeclHandler ();
14364int
14365main ()
14366{
14367return XML_SetXmlDeclHandler ();
14368  ;
14369  return 0;
14370}
14371_ACEOF
14372if ac_fn_c_try_link "$LINENO"; then :
14373  ac_cv_lib_expat_XML_SetXmlDeclHandler=yes
14374else
14375  ac_cv_lib_expat_XML_SetXmlDeclHandler=no
14376fi
14377rm -f core conftest.err conftest.$ac_objext \
14378    conftest$ac_exeext conftest.$ac_ext
14379LIBS=$ac_check_lib_save_LIBS
14380fi
14381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_SetXmlDeclHandler" >&5
14382$as_echo "$ac_cv_lib_expat_XML_SetXmlDeclHandler" >&6; }
14383if test "x$ac_cv_lib_expat_XML_SetXmlDeclHandler" = x""yes; then :
14384
14385
14386$as_echo "#define HAVE_EXPAT 1" >>confdefs.h
14387
14388    neon_xml_parser_message="expat"
14389    NEON_LIBS="$NEON_LIBS -lexpat"
14390    neon_xml_parser=expat
14391    ac_fn_c_check_type "$LINENO" "XML_Size" "ac_cv_type_XML_Size" "#include <expat.h>
14392"
14393if test "x$ac_cv_type_XML_Size" = x""yes; then :
14394
14395
14396
14397
14398# The cast to long int works around a bug in the HP C Compiler
14399# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14400# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14401# This bug is HP SR number 8606223364.
14402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of XML_Size" >&5
14403$as_echo_n "checking size of XML_Size... " >&6; }
14404if test "${ac_cv_sizeof_XML_Size+set}" = set; then :
14405  $as_echo_n "(cached) " >&6
14406else
14407  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (XML_Size))" "ac_cv_sizeof_XML_Size"        "$ac_includes_default
14408#include <expat.h>
14409"; then :
14410
14411else
14412  if test "$ac_cv_type_XML_Size" = yes; then
14413     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14414$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14415as_fn_error 77 "cannot compute sizeof (XML_Size)
14416See \`config.log' for more details" "$LINENO" 5; }
14417   else
14418     ac_cv_sizeof_XML_Size=0
14419   fi
14420fi
14421
14422fi
14423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_XML_Size" >&5
14424$as_echo "$ac_cv_sizeof_XML_Size" >&6; }
14425
14426
14427
14428cat >>confdefs.h <<_ACEOF
14429#define SIZEOF_XML_SIZE $ac_cv_sizeof_XML_Size
14430_ACEOF
14431
14432
14433
14434
14435
14436
14437
14438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print XML_Size" >&5
14439$as_echo_n "checking how to print XML_Size... " >&6; }
14440if test "${ne_cv_fmt_XML_Size+set}" = set; then :
14441  $as_echo_n "(cached) " >&6
14442else
14443
14444ne_cv_fmt_XML_Size=none
14445if test $ne_fmt_trycompile = yes; then
14446  oflags="$CPPFLAGS"
14447  # Consider format string mismatches as errors
14448  CPPFLAGS="$CPPFLAGS -Wformat -Werror"
14449    for str in d ld lld; do
14450    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14451/* end confdefs.h.  */
14452#include <sys/types.h>
14453#include <expat.h>
14454#include <stdio.h>
14455int
14456main ()
14457{
14458XML_Size i = 1; printf("%$str", i);
14459  ;
14460  return 0;
14461}
14462_ACEOF
14463if ac_fn_c_try_compile "$LINENO"; then :
14464  ne_cv_fmt_XML_Size=$str; break
14465fi
14466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14467  done
14468  CPPFLAGS=$oflags
14469else
14470  # Best guess. Don't have to be too precise since we probably won't
14471  # get a warning message anyway.
14472  case $ac_cv_sizeof_XML_Size in
14473  $ac_cv_sizeof_int) ne_cv_fmt_XML_Size="d" ;;
14474  $ac_cv_sizeof_long) ne_cv_fmt_XML_Size="ld" ;;
14475  $ac_cv_sizeof_long_long) ne_cv_fmt_XML_Size="lld" ;;
14476  esac
14477fi
14478
14479fi
14480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_XML_Size" >&5
14481$as_echo "$ne_cv_fmt_XML_Size" >&6; }
14482
14483if test "x$ne_cv_fmt_XML_Size" = "xnone"; then
14484  as_fn_error $? "format string for XML_Size not found" "$LINENO" 5
14485fi
14486
14487
14488cat >>confdefs.h <<_ACEOF
14489#define NE_FMT_XML_SIZE "$ne_cv_fmt_XML_Size"
14490_ACEOF
14491
14492
14493else
14494  cat >>confdefs.h <<_ACEOF
14495#define NE_FMT_XML_SIZE "d"
14496_ACEOF
14497
14498fi
14499
14500
14501else
14502  as_fn_error $? "expat library not found, cannot proceed" "$LINENO" 5
14503fi
14504
14505else
14506  as_fn_error $? "expat library not found, cannot proceed" "$LINENO" 5
14507fi
14508
14509
14510 ;;
14511  no) ;;
14512  */libexpat.la)
14513       # Special case for Subversion
14514       ne_expdir=`echo $with_expat | sed 's:/libexpat.la$::'`
14515       $as_echo "#define HAVE_EXPAT 1" >>confdefs.h
14516
14517       cat >>confdefs.h <<_ACEOF
14518#define NE_FMT_XML_SIZE "d"
14519_ACEOF
14520
14521       CPPFLAGS="$CPPFLAGS -I$ne_expdir"
14522       if test "x${NEON_TARGET}" = "xlibneon.la"; then
14523         NEON_LTLIBS=$with_expat
14524       else
14525         # no dependency on libexpat => crippled libneon, so do partial install
14526         ALLOW_INSTALL=lib
14527       fi
14528       neon_xml_parser=expat
14529       neon_xml_parser_message="expat in $ne_expdir"
14530       ;;
14531  /*) as_fn_error $? "--with-expat does not take a directory argument" "$LINENO" 5 ;;
14532  esac
14533
14534  # If expat wasn't specifically enabled and libxml was:
14535  if test "${neon_xml_parser}-${with_libxml2}-${with_included_expat}" = "none-yes-no"; then
14536
14537# Extract the first word of "xml2-config", so it can be a program name with args.
14538set dummy xml2-config; ac_word=$2
14539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14540$as_echo_n "checking for $ac_word... " >&6; }
14541if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then :
14542  $as_echo_n "(cached) " >&6
14543else
14544  if test -n "$XML2_CONFIG"; then
14545  ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
14546else
14547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14548for as_dir in $PATH
14549do
14550  IFS=$as_save_IFS
14551  test -z "$as_dir" && as_dir=.
14552    for ac_exec_ext in '' $ac_executable_extensions; do
14553  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14554    ac_cv_prog_XML2_CONFIG="xml2-config"
14555    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14556    break 2
14557  fi
14558done
14559  done
14560IFS=$as_save_IFS
14561
14562fi
14563fi
14564XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
14565if test -n "$XML2_CONFIG"; then
14566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
14567$as_echo "$XML2_CONFIG" >&6; }
14568else
14569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14570$as_echo "no" >&6; }
14571fi
14572
14573
14574if test -n "$XML2_CONFIG"; then
14575    neon_xml_parser_message="libxml `$XML2_CONFIG --version`"
14576
14577$as_echo "#define HAVE_LIBXML 1" >>confdefs.h
14578
14579    # xml2-config in some versions erroneously includes -I/include
14580    # in the --cflags output.
14581    CPPFLAGS="$CPPFLAGS `$XML2_CONFIG --cflags | sed 's| -I/include||g'`"
14582    NEON_LIBS="$NEON_LIBS `$XML2_CONFIG --libs | sed 's|-L/usr/lib ||g'`"
14583    for ac_header in libxml/xmlversion.h libxml/parser.h
14584do :
14585  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14586ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14587if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14588  cat >>confdefs.h <<_ACEOF
14589#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14590_ACEOF
14591
14592else
14593
14594      as_fn_error $? "could not find parser.h, libxml installation problem?" "$LINENO" 5
14595fi
14596
14597done
14598
14599    neon_xml_parser=libxml2
14600else
14601    as_fn_error $? "libxml2.x library not found, cannot proceed" "$LINENO" 5
14602fi
14603
14604  fi
14605
14606  # Otherwise, by default search for expat then libxml2:
14607  if test "${neon_xml_parser}-${with_included_expat}" = "none-no"; then
14608
14609ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
14610if test "x$ac_cv_header_expat_h" = x""yes; then :
14611  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_SetXmlDeclHandler in -lexpat" >&5
14612$as_echo_n "checking for XML_SetXmlDeclHandler in -lexpat... " >&6; }
14613if test "${ac_cv_lib_expat_XML_SetXmlDeclHandler+set}" = set; then :
14614  $as_echo_n "(cached) " >&6
14615else
14616  ac_check_lib_save_LIBS=$LIBS
14617LIBS="-lexpat  $LIBS"
14618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14619/* end confdefs.h.  */
14620
14621/* Override any GCC internal prototype to avoid an error.
14622   Use char because int might match the return type of a GCC
14623   builtin and then its argument prototype would still apply.  */
14624#ifdef __cplusplus
14625extern "C"
14626#endif
14627char XML_SetXmlDeclHandler ();
14628int
14629main ()
14630{
14631return XML_SetXmlDeclHandler ();
14632  ;
14633  return 0;
14634}
14635_ACEOF
14636if ac_fn_c_try_link "$LINENO"; then :
14637  ac_cv_lib_expat_XML_SetXmlDeclHandler=yes
14638else
14639  ac_cv_lib_expat_XML_SetXmlDeclHandler=no
14640fi
14641rm -f core conftest.err conftest.$ac_objext \
14642    conftest$ac_exeext conftest.$ac_ext
14643LIBS=$ac_check_lib_save_LIBS
14644fi
14645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_SetXmlDeclHandler" >&5
14646$as_echo "$ac_cv_lib_expat_XML_SetXmlDeclHandler" >&6; }
14647if test "x$ac_cv_lib_expat_XML_SetXmlDeclHandler" = x""yes; then :
14648
14649
14650$as_echo "#define HAVE_EXPAT 1" >>confdefs.h
14651
14652    neon_xml_parser_message="expat"
14653    NEON_LIBS="$NEON_LIBS -lexpat"
14654    neon_xml_parser=expat
14655    ac_fn_c_check_type "$LINENO" "XML_Size" "ac_cv_type_XML_Size" "#include <expat.h>
14656"
14657if test "x$ac_cv_type_XML_Size" = x""yes; then :
14658
14659
14660
14661
14662# The cast to long int works around a bug in the HP C Compiler
14663# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14664# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14665# This bug is HP SR number 8606223364.
14666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of XML_Size" >&5
14667$as_echo_n "checking size of XML_Size... " >&6; }
14668if test "${ac_cv_sizeof_XML_Size+set}" = set; then :
14669  $as_echo_n "(cached) " >&6
14670else
14671  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (XML_Size))" "ac_cv_sizeof_XML_Size"        "$ac_includes_default
14672#include <expat.h>
14673"; then :
14674
14675else
14676  if test "$ac_cv_type_XML_Size" = yes; then
14677     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14678$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14679as_fn_error 77 "cannot compute sizeof (XML_Size)
14680See \`config.log' for more details" "$LINENO" 5; }
14681   else
14682     ac_cv_sizeof_XML_Size=0
14683   fi
14684fi
14685
14686fi
14687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_XML_Size" >&5
14688$as_echo "$ac_cv_sizeof_XML_Size" >&6; }
14689
14690
14691
14692cat >>confdefs.h <<_ACEOF
14693#define SIZEOF_XML_SIZE $ac_cv_sizeof_XML_Size
14694_ACEOF
14695
14696
14697
14698
14699
14700
14701
14702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print XML_Size" >&5
14703$as_echo_n "checking how to print XML_Size... " >&6; }
14704if test "${ne_cv_fmt_XML_Size+set}" = set; then :
14705  $as_echo_n "(cached) " >&6
14706else
14707
14708ne_cv_fmt_XML_Size=none
14709if test $ne_fmt_trycompile = yes; then
14710  oflags="$CPPFLAGS"
14711  # Consider format string mismatches as errors
14712  CPPFLAGS="$CPPFLAGS -Wformat -Werror"
14713    for str in d ld lld; do
14714    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14715/* end confdefs.h.  */
14716#include <sys/types.h>
14717#include <expat.h>
14718#include <stdio.h>
14719int
14720main ()
14721{
14722XML_Size i = 1; printf("%$str", i);
14723  ;
14724  return 0;
14725}
14726_ACEOF
14727if ac_fn_c_try_compile "$LINENO"; then :
14728  ne_cv_fmt_XML_Size=$str; break
14729fi
14730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14731  done
14732  CPPFLAGS=$oflags
14733else
14734  # Best guess. Don't have to be too precise since we probably won't
14735  # get a warning message anyway.
14736  case $ac_cv_sizeof_XML_Size in
14737  $ac_cv_sizeof_int) ne_cv_fmt_XML_Size="d" ;;
14738  $ac_cv_sizeof_long) ne_cv_fmt_XML_Size="ld" ;;
14739  $ac_cv_sizeof_long_long) ne_cv_fmt_XML_Size="lld" ;;
14740  esac
14741fi
14742
14743fi
14744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_XML_Size" >&5
14745$as_echo "$ne_cv_fmt_XML_Size" >&6; }
14746
14747if test "x$ne_cv_fmt_XML_Size" = "xnone"; then
14748  as_fn_error $? "format string for XML_Size not found" "$LINENO" 5
14749fi
14750
14751
14752cat >>confdefs.h <<_ACEOF
14753#define NE_FMT_XML_SIZE "$ne_cv_fmt_XML_Size"
14754_ACEOF
14755
14756
14757else
14758  cat >>confdefs.h <<_ACEOF
14759#define NE_FMT_XML_SIZE "d"
14760_ACEOF
14761
14762fi
14763
14764
14765else
14766
14767# Extract the first word of "xml2-config", so it can be a program name with args.
14768set dummy xml2-config; ac_word=$2
14769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14770$as_echo_n "checking for $ac_word... " >&6; }
14771if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then :
14772  $as_echo_n "(cached) " >&6
14773else
14774  if test -n "$XML2_CONFIG"; then
14775  ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
14776else
14777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14778for as_dir in $PATH
14779do
14780  IFS=$as_save_IFS
14781  test -z "$as_dir" && as_dir=.
14782    for ac_exec_ext in '' $ac_executable_extensions; do
14783  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14784    ac_cv_prog_XML2_CONFIG="xml2-config"
14785    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14786    break 2
14787  fi
14788done
14789  done
14790IFS=$as_save_IFS
14791
14792fi
14793fi
14794XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
14795if test -n "$XML2_CONFIG"; then
14796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
14797$as_echo "$XML2_CONFIG" >&6; }
14798else
14799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14800$as_echo "no" >&6; }
14801fi
14802
14803
14804if test -n "$XML2_CONFIG"; then
14805    neon_xml_parser_message="libxml `$XML2_CONFIG --version`"
14806
14807$as_echo "#define HAVE_LIBXML 1" >>confdefs.h
14808
14809    # xml2-config in some versions erroneously includes -I/include
14810    # in the --cflags output.
14811    CPPFLAGS="$CPPFLAGS `$XML2_CONFIG --cflags | sed 's| -I/include||g'`"
14812    NEON_LIBS="$NEON_LIBS `$XML2_CONFIG --libs | sed 's|-L/usr/lib ||g'`"
14813    for ac_header in libxml/xmlversion.h libxml/parser.h
14814do :
14815  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14816ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14817if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14818  cat >>confdefs.h <<_ACEOF
14819#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14820_ACEOF
14821
14822else
14823
14824      as_fn_error $? "could not find parser.h, libxml installation problem?" "$LINENO" 5
14825fi
14826
14827done
14828
14829    neon_xml_parser=libxml2
14830else
14831    :
14832fi
14833
14834fi
14835
14836else
14837
14838# Extract the first word of "xml2-config", so it can be a program name with args.
14839set dummy xml2-config; ac_word=$2
14840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14841$as_echo_n "checking for $ac_word... " >&6; }
14842if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then :
14843  $as_echo_n "(cached) " >&6
14844else
14845  if test -n "$XML2_CONFIG"; then
14846  ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
14847else
14848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14849for as_dir in $PATH
14850do
14851  IFS=$as_save_IFS
14852  test -z "$as_dir" && as_dir=.
14853    for ac_exec_ext in '' $ac_executable_extensions; do
14854  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14855    ac_cv_prog_XML2_CONFIG="xml2-config"
14856    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14857    break 2
14858  fi
14859done
14860  done
14861IFS=$as_save_IFS
14862
14863fi
14864fi
14865XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
14866if test -n "$XML2_CONFIG"; then
14867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
14868$as_echo "$XML2_CONFIG" >&6; }
14869else
14870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14871$as_echo "no" >&6; }
14872fi
14873
14874
14875if test -n "$XML2_CONFIG"; then
14876    neon_xml_parser_message="libxml `$XML2_CONFIG --version`"
14877
14878$as_echo "#define HAVE_LIBXML 1" >>confdefs.h
14879
14880    # xml2-config in some versions erroneously includes -I/include
14881    # in the --cflags output.
14882    CPPFLAGS="$CPPFLAGS `$XML2_CONFIG --cflags | sed 's| -I/include||g'`"
14883    NEON_LIBS="$NEON_LIBS `$XML2_CONFIG --libs | sed 's|-L/usr/lib ||g'`"
14884    for ac_header in libxml/xmlversion.h libxml/parser.h
14885do :
14886  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14887ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14888if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14889  cat >>confdefs.h <<_ACEOF
14890#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14891_ACEOF
14892
14893else
14894
14895      as_fn_error $? "could not find parser.h, libxml installation problem?" "$LINENO" 5
14896fi
14897
14898done
14899
14900    neon_xml_parser=libxml2
14901else
14902    :
14903fi
14904
14905fi
14906
14907
14908
14909  fi
14910
14911  # If an XML parser still has not been found, fail or use the bundled expat
14912  if test "$neon_xml_parser" = "none"; then
14913    as_fn_error $? "no XML parser was found: expat or libxml 2.x required" "$LINENO" 5
14914  fi
14915
14916  { $as_echo "$as_me:${as_lineno-$LINENO}: XML parser used: $neon_xml_parser_message" >&5
14917$as_echo "$as_me: XML parser used: $neon_xml_parser_message" >&6;}
14918fi
14919
14920
14921# Internationalization support.
14922
14923
14924# Check whether --enable-nls was given.
14925if test "${enable_nls+set}" = set; then :
14926  enableval=$enable_nls;
14927else
14928  enable_nls=${ac_cv_header_libintl_h}
14929fi
14930
14931
14932if test x${enable_nls} = xyes; then
14933  # presume that dgettext() is available if bindtextdomain() is...
14934  # checking for dgettext() itself is awkward because gcc has a
14935  # builtin of that function, which confuses AC_CHECK_FUNCS et al.
14936
14937
14938
14939
14940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bindtextdomain" >&5
14941$as_echo_n "checking for library containing bindtextdomain... " >&6; }
14942if test "${ne_cv_libsfor_bindtextdomain+set}" = set; then :
14943  $as_echo_n "(cached) " >&6
14944else
14945
14946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14947/* end confdefs.h.  */
14948
14949int
14950main ()
14951{
14952bindtextdomain();
14953  ;
14954  return 0;
14955}
14956_ACEOF
14957if ac_fn_c_try_link "$LINENO"; then :
14958  ne_cv_libsfor_bindtextdomain="none needed"
14959else
14960
14961ne_sl_save_LIBS=$LIBS
14962ne_cv_libsfor_bindtextdomain="not found"
14963for lib in intl; do
14964    # The w32api libraries link using the stdcall calling convention.
14965    case ${lib}-${ne_cv_os_uname} in
14966    ws2_32-MINGW*) ne__code="__stdcall bindtextdomain();" ;;
14967    *) ne__code="bindtextdomain();" ;;
14968    esac
14969
14970    LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
14971    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14972/* end confdefs.h.  */
14973
14974int
14975main ()
14976{
14977$ne__code
14978  ;
14979  return 0;
14980}
14981_ACEOF
14982if ac_fn_c_try_link "$LINENO"; then :
14983  ne_cv_libsfor_bindtextdomain="-l$lib"; break
14984fi
14985rm -f core conftest.err conftest.$ac_objext \
14986    conftest$ac_exeext conftest.$ac_ext
14987
14988done
14989LIBS=$ne_sl_save_LIBS
14990fi
14991rm -f core conftest.err conftest.$ac_objext \
14992    conftest$ac_exeext conftest.$ac_ext
14993fi
14994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_bindtextdomain" >&5
14995$as_echo "$ne_cv_libsfor_bindtextdomain" >&6; }
14996
14997if test "$ne_cv_libsfor_bindtextdomain" = "not found"; then
14998   enable_nls=no
14999elif test "$ne_cv_libsfor_bindtextdomain" = "none needed"; then
15000   :
15001else
15002   NEON_LIBS="$ne_cv_libsfor_bindtextdomain $NEON_LIBS"
15003
15004fi
15005
15006ne_cf_save_LIBS=$LIBS
15007LIBS="$LIBS $NEON_LIBS"
15008for ac_func in bind_textdomain_codeset
15009do :
15010  ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
15011if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
15012  cat >>confdefs.h <<_ACEOF
15013#define HAVE_BIND_TEXTDOMAIN_CODESET 1
15014_ACEOF
15015
15016fi
15017done
15018
15019LIBS=$ne_cf_save_LIBS
15020fi
15021
15022if test "$enable_nls" = "no"; then
15023
15024NE_FLAG_I18N=no
15025
15026ne_I18N_message="Internationalization support not enabled"
15027  { $as_echo "$as_me:${as_lineno-$LINENO}: Internationalization support not enabled" >&5
15028$as_echo "$as_me: Internationalization support not enabled" >&6;}
15029
15030else
15031
15032NE_FLAG_I18N=yes
15033
15034
15035$as_echo "#define NE_HAVE_I18N 1" >>confdefs.h
15036
15037ne_I18N_message="Internationalization support enabled"
15038  { $as_echo "$as_me:${as_lineno-$LINENO}: Internationalization support enabled" >&5
15039$as_echo "$as_me: Internationalization support enabled" >&6;}
15040
15041  eval localedir="${datadir}/locale"
15042
15043cat >>confdefs.h <<_ACEOF
15044#define LOCALEDIR "$localedir"
15045_ACEOF
15046
15047fi
15048
15049
15050
15051# Extra checks for debugging, compiler warnings
15052
15053
15054# Check whether --enable-debug was given.
15055if test "${enable_debug+set}" = set; then :
15056  enableval=$enable_debug;
15057fi
15058
15059
15060# default is to enable debugging
15061case $enable_debug in
15062no) { $as_echo "$as_me:${as_lineno-$LINENO}: debugging is disabled" >&5
15063$as_echo "$as_me: debugging is disabled" >&6;}
15064 ;;
15065*) { $as_echo "$as_me:${as_lineno-$LINENO}: debugging is enabled" >&5
15066$as_echo "$as_me: debugging is enabled" >&6;}
15067
15068$as_echo "#define NE_DEBUGGING 1" >>confdefs.h
15069
15070
15071;;
15072esac
15073# Leave till last to prevent CFLAGS affecting checks.
15074
15075
15076
15077# Check whether --enable-warnings was given.
15078if test "${enable_warnings+set}" = set; then :
15079  enableval=$enable_warnings;
15080fi
15081
15082
15083if test "$enable_warnings" = "yes"; then
15084   case $GCC:`uname` in
15085   yes:*)
15086      CFLAGS="$CFLAGS -Wall -Wmissing-declarations -Wshadow -Wreturn-type -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wformat-security"
15087      if test -z "$with_ssl" -o "$with_ssl" = "no"; then
15088	 # OpenSSL headers fail strict prototypes checks
15089	 CFLAGS="$CFLAGS -Wstrict-prototypes"
15090      fi
15091      ;;
15092   no:OSF1) CFLAGS="$CFLAGS -check -msg_disable returnchecks -msg_disable alignment -msg_disable overflow" ;;
15093   no:IRIX) CFLAGS="$CFLAGS -fullwarn" ;;
15094   no:UnixWare) CFLAGS="$CFLAGS -v" ;;
15095   *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: warning flags unknown for compiler on this platform" >&5
15096$as_echo "$as_me: WARNING: warning flags unknown for compiler on this platform" >&2;} ;;
15097   esac
15098fi
15099
15100
15101CPPFLAGS="$CPPFLAGS -I\${top_builddir}"
15102
15103# Check whether --enable-memleak was given.
15104if test "${enable_memleak+set}" = set; then :
15105  enableval=$enable_memleak;
15106fi
15107
15108
15109if test "$enable_memleak" = "yes"; then
15110  CPPFLAGS="$CPPFLAGS -DNEON_MEMLEAK -I\$(top_srcdir)/src"
15111  # disable 'make install'
15112  ALLOW_INSTALL=memleak
15113fi
15114
15115# Enable tests for optional features
15116TESTS="\$(BASIC_TESTS)"
15117HELPERS=""
15118if test $NE_FLAG_SSL = yes; then
15119   # Only enable SSL tests if an openssl binary is found (needed to make
15120   # certs etc).
15121   # Extract the first word of "openssl", so it can be a program name with args.
15122set dummy openssl; ac_word=$2
15123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15124$as_echo_n "checking for $ac_word... " >&6; }
15125if test "${ac_cv_path_OPENSSL+set}" = set; then :
15126  $as_echo_n "(cached) " >&6
15127else
15128  case $OPENSSL in
15129  [\\/]* | ?:[\\/]*)
15130  ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
15131  ;;
15132  *)
15133  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15134for as_dir in $PATH
15135do
15136  IFS=$as_save_IFS
15137  test -z "$as_dir" && as_dir=.
15138    for ac_exec_ext in '' $ac_executable_extensions; do
15139  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15140    ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
15141    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15142    break 2
15143  fi
15144done
15145  done
15146IFS=$as_save_IFS
15147
15148  test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="notfound"
15149  ;;
15150esac
15151fi
15152OPENSSL=$ac_cv_path_OPENSSL
15153if test -n "$OPENSSL"; then
15154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
15155$as_echo "$OPENSSL" >&6; }
15156else
15157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15158$as_echo "no" >&6; }
15159fi
15160
15161
15162   if test "$OPENSSL" != "notfound"; then
15163     TESTS="$TESTS \$(SSL_TESTS)"
15164     HELPERS="$HELPERS \$(SSL_HELPERS)"
15165   else
15166     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no openssl binary in \$PATH: SSL tests disabled" >&5
15167$as_echo "$as_me: WARNING: no openssl binary in \$PATH: SSL tests disabled" >&2;}
15168   fi
15169
15170   # Extract the first word of "certutil", so it can be a program name with args.
15171set dummy certutil; ac_word=$2
15172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15173$as_echo_n "checking for $ac_word... " >&6; }
15174if test "${ac_cv_path_CERTUTIL+set}" = set; then :
15175  $as_echo_n "(cached) " >&6
15176else
15177  case $CERTUTIL in
15178  [\\/]* | ?:[\\/]*)
15179  ac_cv_path_CERTUTIL="$CERTUTIL" # Let the user override the test with a path.
15180  ;;
15181  *)
15182  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15183for as_dir in $PATH
15184do
15185  IFS=$as_save_IFS
15186  test -z "$as_dir" && as_dir=.
15187    for ac_exec_ext in '' $ac_executable_extensions; do
15188  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15189    ac_cv_path_CERTUTIL="$as_dir/$ac_word$ac_exec_ext"
15190    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15191    break 2
15192  fi
15193done
15194  done
15195IFS=$as_save_IFS
15196
15197  test -z "$ac_cv_path_CERTUTIL" && ac_cv_path_CERTUTIL="notfound"
15198  ;;
15199esac
15200fi
15201CERTUTIL=$ac_cv_path_CERTUTIL
15202if test -n "$CERTUTIL"; then
15203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CERTUTIL" >&5
15204$as_echo "$CERTUTIL" >&6; }
15205else
15206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15207$as_echo "no" >&6; }
15208fi
15209
15210
15211   # Extract the first word of "pk12util", so it can be a program name with args.
15212set dummy pk12util; ac_word=$2
15213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15214$as_echo_n "checking for $ac_word... " >&6; }
15215if test "${ac_cv_path_PK12UTIL+set}" = set; then :
15216  $as_echo_n "(cached) " >&6
15217else
15218  case $PK12UTIL in
15219  [\\/]* | ?:[\\/]*)
15220  ac_cv_path_PK12UTIL="$PK12UTIL" # Let the user override the test with a path.
15221  ;;
15222  *)
15223  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15224for as_dir in $PATH
15225do
15226  IFS=$as_save_IFS
15227  test -z "$as_dir" && as_dir=.
15228    for ac_exec_ext in '' $ac_executable_extensions; do
15229  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15230    ac_cv_path_PK12UTIL="$as_dir/$ac_word$ac_exec_ext"
15231    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15232    break 2
15233  fi
15234done
15235  done
15236IFS=$as_save_IFS
15237
15238  test -z "$ac_cv_path_PK12UTIL" && ac_cv_path_PK12UTIL="notfound"
15239  ;;
15240esac
15241fi
15242PK12UTIL=$ac_cv_path_PK12UTIL
15243if test -n "$PK12UTIL"; then
15244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PK12UTIL" >&5
15245$as_echo "$PK12UTIL" >&6; }
15246else
15247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15248$as_echo "no" >&6; }
15249fi
15250
15251
15252fi
15253if test $NE_FLAG_ZLIB = yes; then
15254   TESTS="$TESTS \$(ZLIB_TESTS)"
15255   HELPERS="$HELPERS \$(ZLIB_HELPERS)"
15256fi
15257if test x$enable_webdav != xno; then
15258   TESTS="$TESTS \$(DAV_TESTS)"
15259fi
15260
15261# Check whether --enable-tests-install was given.
15262if test "${enable_tests_install+set}" = set; then :
15263  enableval=$enable_tests_install;
15264else
15265  enable_tests_install=no
15266fi
15267
15268
15269# If test suite installation is not required, it's more
15270# efficient to link the test programs using -no-install:
15271if test "$enable_tests_install" = "no"; then
15272  TEST_LDFLAGS="-no-install"
15273fi
15274
15275
15276
15277# Extract the first word of "pkg-config", so it can be a program name with args.
15278set dummy pkg-config; ac_word=$2
15279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15280$as_echo_n "checking for $ac_word... " >&6; }
15281if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
15282  $as_echo_n "(cached) " >&6
15283else
15284  case $PKG_CONFIG in
15285  [\\/]* | ?:[\\/]*)
15286  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15287  ;;
15288  *)
15289  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15290for as_dir in $PATH
15291do
15292  IFS=$as_save_IFS
15293  test -z "$as_dir" && as_dir=.
15294    for ac_exec_ext in '' $ac_executable_extensions; do
15295  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15296    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15297    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15298    break 2
15299  fi
15300done
15301  done
15302IFS=$as_save_IFS
15303
15304  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
15305  ;;
15306esac
15307fi
15308PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15309if test -n "$PKG_CONFIG"; then
15310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15311$as_echo "$PKG_CONFIG" >&6; }
15312else
15313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15314$as_echo "no" >&6; }
15315fi
15316
15317
15318if test "$PKG_CONFIG" != "no"; then
15319   # pkg-config >= 0.18 will use "Libs.private" iff necessary,
15320   # older versions which don't recognize that field may always
15321   # need all libraries in Libs.
15322   if $PKG_CONFIG --atleast-pkgconfig-version=0.18; then :; else
15323      NEON_PC_LIBS=${NEON_LIBS}
15324   fi
15325fi
15326
15327
15328# Pass the interface version on to libtool when linking libneon.la
15329NEON_LINK_FLAGS="-version-info ${NE_LIBTOOL_VERSINFO}"
15330# If any non-default ABI variations are used, add them to the SONAME:
15331if test "x${NE_LIBTOOL_RELEASE}y" != "xy"; then
15332   NEON_LINK_FLAGS="${NEON_LINK_FLAGS} -release ${NE_LIBTOOL_RELEASE}"
15333fi
15334
15335
15336  # Check whether --enable-ld-version-script was given.
15337if test "${enable_ld_version_script+set}" = set; then :
15338  enableval=$enable_ld_version_script; have_ld_version_script=$enableval
15339fi
15340
15341  if test -z "$have_ld_version_script"; then
15342    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
15343$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
15344    save_LDFLAGS="$LDFLAGS"
15345    LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
15346    cat > conftest.map <<EOF
15347VERS_1 {
15348	global: sym;
15349};
15350
15351VERS_2 {
15352        global: sym;
15353} VERS_1;
15354EOF
15355    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15356/* end confdefs.h.  */
15357
15358int
15359main ()
15360{
15361
15362  ;
15363  return 0;
15364}
15365_ACEOF
15366if ac_fn_c_try_link "$LINENO"; then :
15367  have_ld_version_script=yes
15368else
15369  have_ld_version_script=no
15370fi
15371rm -f core conftest.err conftest.$ac_objext \
15372    conftest$ac_exeext conftest.$ac_ext
15373    rm -f conftest.map
15374    LDFLAGS="$save_LDFLAGS"
15375    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
15376$as_echo "$have_ld_version_script" >&6; }
15377  fi
15378
15379# If ld version scripts are supported, enable symbol versioning.
15380# Otherwise, fall back to any libtool-supported symbol export
15381# restrictions; ne__* symbols are not exported.
15382if test "x$have_ld_version_script" = "xyes"; then
15383  NEON_LINK_FLAGS="$NEON_LINK_FLAGS -Wl,--version-script=\$(top_srcdir)/src/neon.vers"
15384else
15385  NEON_LINK_FLAGS="$NEON_LINK_FLAGS -export-symbols-regex '^ne_[^_]'"
15386fi
15387
15388if test x${enable_shared}${pic_mode}z = xnodefaultz; then
15389   CFLAGS="$CFLAGS -prefer-pic"
15390   { $as_echo "$as_me:${as_lineno-$LINENO}: Using PIC for static library build" >&5
15391$as_echo "$as_me: Using PIC for static library build" >&6;}
15392fi
15393
15394if test x${enable_shared} = xno; then
15395   # Defining NE_PRIVATE as the empty string would work; using a
15396   # non-empty but redundant string 'extern' avoids any possible cpp
15397   # confusion with from an empty macro.
15398   CPPFLAGS="$CPPFLAGS -DNE_PRIVATE=extern"
15399   { $as_echo "$as_me:${as_lineno-$LINENO}: Private symbol suppression disabled for static library build" >&5
15400$as_echo "$as_me: Private symbol suppression disabled for static library build" >&6;}
15401fi
15402
15403# Bundled language catalogs
15404ALL_LINGUAS="cs de fr ja nn pl ru tr zh_CN"
15405
15406
15407ac_config_files="$ac_config_files neon-config"
15408
15409ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile neon.pc"
15410
15411ac_config_files="$ac_config_files test/makekeys:test/makekeys.sh"
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422cat >confcache <<\_ACEOF
15423# This file is a shell script that caches the results of configure
15424# tests run on this system so they can be shared between configure
15425# scripts and configure runs, see configure's option --config-cache.
15426# It is not useful on other systems.  If it contains results you don't
15427# want to keep, you may remove or edit it.
15428#
15429# config.status only pays attention to the cache file if you give it
15430# the --recheck option to rerun configure.
15431#
15432# `ac_cv_env_foo' variables (set or unset) will be overridden when
15433# loading this file, other *unset* `ac_cv_foo' will be assigned the
15434# following values.
15435
15436_ACEOF
15437
15438# The following way of writing the cache mishandles newlines in values,
15439# but we know of no workaround that is simple, portable, and efficient.
15440# So, we kill variables containing newlines.
15441# Ultrix sh set writes to stderr and can't be redirected directly,
15442# and sets the high bit in the cache file unless we assign to the vars.
15443(
15444  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15445    eval ac_val=\$$ac_var
15446    case $ac_val in #(
15447    *${as_nl}*)
15448      case $ac_var in #(
15449      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15450$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15451      esac
15452      case $ac_var in #(
15453      _ | IFS | as_nl) ;; #(
15454      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15455      *) { eval $ac_var=; unset $ac_var;} ;;
15456      esac ;;
15457    esac
15458  done
15459
15460  (set) 2>&1 |
15461    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15462    *${as_nl}ac_space=\ *)
15463      # `set' does not quote correctly, so add quotes: double-quote
15464      # substitution turns \\\\ into \\, and sed turns \\ into \.
15465      sed -n \
15466	"s/'/'\\\\''/g;
15467	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15468      ;; #(
15469    *)
15470      # `set' quotes correctly as required by POSIX, so do not add quotes.
15471      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15472      ;;
15473    esac |
15474    sort
15475) |
15476  sed '
15477     /^ac_cv_env_/b end
15478     t clear
15479     :clear
15480     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15481     t end
15482     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15483     :end' >>confcache
15484if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15485  if test -w "$cache_file"; then
15486    test "x$cache_file" != "x/dev/null" &&
15487      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15488$as_echo "$as_me: updating cache $cache_file" >&6;}
15489    cat confcache >$cache_file
15490  else
15491    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15492$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15493  fi
15494fi
15495rm -f confcache
15496
15497test "x$prefix" = xNONE && prefix=$ac_default_prefix
15498# Let make expand exec_prefix.
15499test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15500
15501DEFS=-DHAVE_CONFIG_H
15502
15503ac_libobjs=
15504ac_ltlibobjs=
15505U=
15506for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15507  # 1. Remove the extension, and $U if already installed.
15508  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15509  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15510  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15511  #    will be set to the directory where LIBOBJS objects are built.
15512  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15513  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15514done
15515LIBOBJS=$ac_libobjs
15516
15517LTLIBOBJS=$ac_ltlibobjs
15518
15519
15520
15521
15522: ${CONFIG_STATUS=./config.status}
15523ac_write_fail=0
15524ac_clean_files_save=$ac_clean_files
15525ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15526{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15527$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15528as_write_fail=0
15529cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15530#! $SHELL
15531# Generated by $as_me.
15532# Run this file to recreate the current configuration.
15533# Compiler output produced by configure, useful for debugging
15534# configure, is in config.log if it exists.
15535
15536debug=false
15537ac_cs_recheck=false
15538ac_cs_silent=false
15539
15540SHELL=\${CONFIG_SHELL-$SHELL}
15541export SHELL
15542_ASEOF
15543cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15544## -------------------- ##
15545## M4sh Initialization. ##
15546## -------------------- ##
15547
15548# Be more Bourne compatible
15549DUALCASE=1; export DUALCASE # for MKS sh
15550if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15551  emulate sh
15552  NULLCMD=:
15553  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15554  # is contrary to our usage.  Disable this feature.
15555  alias -g '${1+"$@"}'='"$@"'
15556  setopt NO_GLOB_SUBST
15557else
15558  case `(set -o) 2>/dev/null` in #(
15559  *posix*) :
15560    set -o posix ;; #(
15561  *) :
15562     ;;
15563esac
15564fi
15565
15566
15567as_nl='
15568'
15569export as_nl
15570# Printing a long string crashes Solaris 7 /usr/bin/printf.
15571as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15572as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15573as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15574# Prefer a ksh shell builtin over an external printf program on Solaris,
15575# but without wasting forks for bash or zsh.
15576if test -z "$BASH_VERSION$ZSH_VERSION" \
15577    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15578  as_echo='print -r --'
15579  as_echo_n='print -rn --'
15580elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15581  as_echo='printf %s\n'
15582  as_echo_n='printf %s'
15583else
15584  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15585    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15586    as_echo_n='/usr/ucb/echo -n'
15587  else
15588    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15589    as_echo_n_body='eval
15590      arg=$1;
15591      case $arg in #(
15592      *"$as_nl"*)
15593	expr "X$arg" : "X\\(.*\\)$as_nl";
15594	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15595      esac;
15596      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15597    '
15598    export as_echo_n_body
15599    as_echo_n='sh -c $as_echo_n_body as_echo'
15600  fi
15601  export as_echo_body
15602  as_echo='sh -c $as_echo_body as_echo'
15603fi
15604
15605# The user is always right.
15606if test "${PATH_SEPARATOR+set}" != set; then
15607  PATH_SEPARATOR=:
15608  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15609    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15610      PATH_SEPARATOR=';'
15611  }
15612fi
15613
15614
15615# IFS
15616# We need space, tab and new line, in precisely that order.  Quoting is
15617# there to prevent editors from complaining about space-tab.
15618# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15619# splitting by setting IFS to empty value.)
15620IFS=" ""	$as_nl"
15621
15622# Find who we are.  Look in the path if we contain no directory separator.
15623case $0 in #((
15624  *[\\/]* ) as_myself=$0 ;;
15625  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15626for as_dir in $PATH
15627do
15628  IFS=$as_save_IFS
15629  test -z "$as_dir" && as_dir=.
15630    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15631  done
15632IFS=$as_save_IFS
15633
15634     ;;
15635esac
15636# We did not find ourselves, most probably we were run as `sh COMMAND'
15637# in which case we are not to be found in the path.
15638if test "x$as_myself" = x; then
15639  as_myself=$0
15640fi
15641if test ! -f "$as_myself"; then
15642  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15643  exit 1
15644fi
15645
15646# Unset variables that we do not need and which cause bugs (e.g. in
15647# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15648# suppresses any "Segmentation fault" message there.  '((' could
15649# trigger a bug in pdksh 5.2.14.
15650for as_var in BASH_ENV ENV MAIL MAILPATH
15651do eval test x\${$as_var+set} = xset \
15652  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15653done
15654PS1='$ '
15655PS2='> '
15656PS4='+ '
15657
15658# NLS nuisances.
15659LC_ALL=C
15660export LC_ALL
15661LANGUAGE=C
15662export LANGUAGE
15663
15664# CDPATH.
15665(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15666
15667
15668# as_fn_error STATUS ERROR [LINENO LOG_FD]
15669# ----------------------------------------
15670# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15671# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15672# script with STATUS, using 1 if that was 0.
15673as_fn_error ()
15674{
15675  as_status=$1; test $as_status -eq 0 && as_status=1
15676  if test "$4"; then
15677    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15678    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15679  fi
15680  $as_echo "$as_me: error: $2" >&2
15681  as_fn_exit $as_status
15682} # as_fn_error
15683
15684
15685# as_fn_set_status STATUS
15686# -----------------------
15687# Set $? to STATUS, without forking.
15688as_fn_set_status ()
15689{
15690  return $1
15691} # as_fn_set_status
15692
15693# as_fn_exit STATUS
15694# -----------------
15695# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15696as_fn_exit ()
15697{
15698  set +e
15699  as_fn_set_status $1
15700  exit $1
15701} # as_fn_exit
15702
15703# as_fn_unset VAR
15704# ---------------
15705# Portably unset VAR.
15706as_fn_unset ()
15707{
15708  { eval $1=; unset $1;}
15709}
15710as_unset=as_fn_unset
15711# as_fn_append VAR VALUE
15712# ----------------------
15713# Append the text in VALUE to the end of the definition contained in VAR. Take
15714# advantage of any shell optimizations that allow amortized linear growth over
15715# repeated appends, instead of the typical quadratic growth present in naive
15716# implementations.
15717if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15718  eval 'as_fn_append ()
15719  {
15720    eval $1+=\$2
15721  }'
15722else
15723  as_fn_append ()
15724  {
15725    eval $1=\$$1\$2
15726  }
15727fi # as_fn_append
15728
15729# as_fn_arith ARG...
15730# ------------------
15731# Perform arithmetic evaluation on the ARGs, and store the result in the
15732# global $as_val. Take advantage of shells that can avoid forks. The arguments
15733# must be portable across $(()) and expr.
15734if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15735  eval 'as_fn_arith ()
15736  {
15737    as_val=$(( $* ))
15738  }'
15739else
15740  as_fn_arith ()
15741  {
15742    as_val=`expr "$@" || test $? -eq 1`
15743  }
15744fi # as_fn_arith
15745
15746
15747if expr a : '\(a\)' >/dev/null 2>&1 &&
15748   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15749  as_expr=expr
15750else
15751  as_expr=false
15752fi
15753
15754if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15755  as_basename=basename
15756else
15757  as_basename=false
15758fi
15759
15760if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15761  as_dirname=dirname
15762else
15763  as_dirname=false
15764fi
15765
15766as_me=`$as_basename -- "$0" ||
15767$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15768	 X"$0" : 'X\(//\)$' \| \
15769	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15770$as_echo X/"$0" |
15771    sed '/^.*\/\([^/][^/]*\)\/*$/{
15772	    s//\1/
15773	    q
15774	  }
15775	  /^X\/\(\/\/\)$/{
15776	    s//\1/
15777	    q
15778	  }
15779	  /^X\/\(\/\).*/{
15780	    s//\1/
15781	    q
15782	  }
15783	  s/.*/./; q'`
15784
15785# Avoid depending upon Character Ranges.
15786as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15787as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15788as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15789as_cr_digits='0123456789'
15790as_cr_alnum=$as_cr_Letters$as_cr_digits
15791
15792ECHO_C= ECHO_N= ECHO_T=
15793case `echo -n x` in #(((((
15794-n*)
15795  case `echo 'xy\c'` in
15796  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15797  xy)  ECHO_C='\c';;
15798  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15799       ECHO_T='	';;
15800  esac;;
15801*)
15802  ECHO_N='-n';;
15803esac
15804
15805rm -f conf$$ conf$$.exe conf$$.file
15806if test -d conf$$.dir; then
15807  rm -f conf$$.dir/conf$$.file
15808else
15809  rm -f conf$$.dir
15810  mkdir conf$$.dir 2>/dev/null
15811fi
15812if (echo >conf$$.file) 2>/dev/null; then
15813  if ln -s conf$$.file conf$$ 2>/dev/null; then
15814    as_ln_s='ln -s'
15815    # ... but there are two gotchas:
15816    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15817    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15818    # In both cases, we have to default to `cp -p'.
15819    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15820      as_ln_s='cp -p'
15821  elif ln conf$$.file conf$$ 2>/dev/null; then
15822    as_ln_s=ln
15823  else
15824    as_ln_s='cp -p'
15825  fi
15826else
15827  as_ln_s='cp -p'
15828fi
15829rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15830rmdir conf$$.dir 2>/dev/null
15831
15832
15833# as_fn_mkdir_p
15834# -------------
15835# Create "$as_dir" as a directory, including parents if necessary.
15836as_fn_mkdir_p ()
15837{
15838
15839  case $as_dir in #(
15840  -*) as_dir=./$as_dir;;
15841  esac
15842  test -d "$as_dir" || eval $as_mkdir_p || {
15843    as_dirs=
15844    while :; do
15845      case $as_dir in #(
15846      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15847      *) as_qdir=$as_dir;;
15848      esac
15849      as_dirs="'$as_qdir' $as_dirs"
15850      as_dir=`$as_dirname -- "$as_dir" ||
15851$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15852	 X"$as_dir" : 'X\(//\)[^/]' \| \
15853	 X"$as_dir" : 'X\(//\)$' \| \
15854	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15855$as_echo X"$as_dir" |
15856    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15857	    s//\1/
15858	    q
15859	  }
15860	  /^X\(\/\/\)[^/].*/{
15861	    s//\1/
15862	    q
15863	  }
15864	  /^X\(\/\/\)$/{
15865	    s//\1/
15866	    q
15867	  }
15868	  /^X\(\/\).*/{
15869	    s//\1/
15870	    q
15871	  }
15872	  s/.*/./; q'`
15873      test -d "$as_dir" && break
15874    done
15875    test -z "$as_dirs" || eval "mkdir $as_dirs"
15876  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15877
15878
15879} # as_fn_mkdir_p
15880if mkdir -p . 2>/dev/null; then
15881  as_mkdir_p='mkdir -p "$as_dir"'
15882else
15883  test -d ./-p && rmdir ./-p
15884  as_mkdir_p=false
15885fi
15886
15887if test -x / >/dev/null 2>&1; then
15888  as_test_x='test -x'
15889else
15890  if ls -dL / >/dev/null 2>&1; then
15891    as_ls_L_option=L
15892  else
15893    as_ls_L_option=
15894  fi
15895  as_test_x='
15896    eval sh -c '\''
15897      if test -d "$1"; then
15898	test -d "$1/.";
15899      else
15900	case $1 in #(
15901	-*)set "./$1";;
15902	esac;
15903	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15904	???[sx]*):;;*)false;;esac;fi
15905    '\'' sh
15906  '
15907fi
15908as_executable_p=$as_test_x
15909
15910# Sed expression to map a string onto a valid CPP name.
15911as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15912
15913# Sed expression to map a string onto a valid variable name.
15914as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15915
15916
15917exec 6>&1
15918## ----------------------------------- ##
15919## Main body of $CONFIG_STATUS script. ##
15920## ----------------------------------- ##
15921_ASEOF
15922test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15923
15924cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15925# Save the log message, to keep $0 and so on meaningful, and to
15926# report actual input values of CONFIG_FILES etc. instead of their
15927# values after options handling.
15928ac_log="
15929This file was extended by neon $as_me 0.29.6, which was
15930generated by GNU Autoconf 2.66.  Invocation command line was
15931
15932  CONFIG_FILES    = $CONFIG_FILES
15933  CONFIG_HEADERS  = $CONFIG_HEADERS
15934  CONFIG_LINKS    = $CONFIG_LINKS
15935  CONFIG_COMMANDS = $CONFIG_COMMANDS
15936  $ $0 $@
15937
15938on `(hostname || uname -n) 2>/dev/null | sed 1q`
15939"
15940
15941_ACEOF
15942
15943case $ac_config_files in *"
15944"*) set x $ac_config_files; shift; ac_config_files=$*;;
15945esac
15946
15947case $ac_config_headers in *"
15948"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15949esac
15950
15951
15952cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15953# Files that config.status was made for.
15954config_files="$ac_config_files"
15955config_headers="$ac_config_headers"
15956config_commands="$ac_config_commands"
15957
15958_ACEOF
15959
15960cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15961ac_cs_usage="\
15962\`$as_me' instantiates files and other configuration actions
15963from templates according to the current configuration.  Unless the files
15964and actions are specified as TAGs, all are instantiated by default.
15965
15966Usage: $0 [OPTION]... [TAG]...
15967
15968  -h, --help       print this help, then exit
15969  -V, --version    print version number and configuration settings, then exit
15970      --config     print configuration, then exit
15971  -q, --quiet, --silent
15972                   do not print progress messages
15973  -d, --debug      don't remove temporary files
15974      --recheck    update $as_me by reconfiguring in the same conditions
15975      --file=FILE[:TEMPLATE]
15976                   instantiate the configuration file FILE
15977      --header=FILE[:TEMPLATE]
15978                   instantiate the configuration header FILE
15979
15980Configuration files:
15981$config_files
15982
15983Configuration headers:
15984$config_headers
15985
15986Configuration commands:
15987$config_commands
15988
15989Report bugs to <neon@lists.manyfish.co.uk>."
15990
15991_ACEOF
15992cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15993ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15994ac_cs_version="\\
15995neon config.status 0.29.6
15996configured by $0, generated by GNU Autoconf 2.66,
15997  with options \\"\$ac_cs_config\\"
15998
15999Copyright (C) 2010 Free Software Foundation, Inc.
16000This config.status script is free software; the Free Software Foundation
16001gives unlimited permission to copy, distribute and modify it."
16002
16003ac_pwd='$ac_pwd'
16004srcdir='$srcdir'
16005INSTALL='$INSTALL'
16006AWK='$AWK'
16007test -n "\$AWK" || AWK=awk
16008_ACEOF
16009
16010cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16011# The default lists apply if the user does not specify any file.
16012ac_need_defaults=:
16013while test $# != 0
16014do
16015  case $1 in
16016  --*=*)
16017    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16018    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16019    ac_shift=:
16020    ;;
16021  *)
16022    ac_option=$1
16023    ac_optarg=$2
16024    ac_shift=shift
16025    ;;
16026  esac
16027
16028  case $ac_option in
16029  # Handling of the options.
16030  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16031    ac_cs_recheck=: ;;
16032  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16033    $as_echo "$ac_cs_version"; exit ;;
16034  --config | --confi | --conf | --con | --co | --c )
16035    $as_echo "$ac_cs_config"; exit ;;
16036  --debug | --debu | --deb | --de | --d | -d )
16037    debug=: ;;
16038  --file | --fil | --fi | --f )
16039    $ac_shift
16040    case $ac_optarg in
16041    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16042    esac
16043    as_fn_append CONFIG_FILES " '$ac_optarg'"
16044    ac_need_defaults=false;;
16045  --header | --heade | --head | --hea )
16046    $ac_shift
16047    case $ac_optarg in
16048    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16049    esac
16050    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16051    ac_need_defaults=false;;
16052  --he | --h)
16053    # Conflict between --help and --header
16054    as_fn_error $? "ambiguous option: \`$1'
16055Try \`$0 --help' for more information.";;
16056  --help | --hel | -h )
16057    $as_echo "$ac_cs_usage"; exit ;;
16058  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16059  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16060    ac_cs_silent=: ;;
16061
16062  # This is an error.
16063  -*) as_fn_error $? "unrecognized option: \`$1'
16064Try \`$0 --help' for more information." ;;
16065
16066  *) as_fn_append ac_config_targets " $1"
16067     ac_need_defaults=false ;;
16068
16069  esac
16070  shift
16071done
16072
16073ac_configure_extra_args=
16074
16075if $ac_cs_silent; then
16076  exec 6>/dev/null
16077  ac_configure_extra_args="$ac_configure_extra_args --silent"
16078fi
16079
16080_ACEOF
16081cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16082if \$ac_cs_recheck; then
16083  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16084  shift
16085  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16086  CONFIG_SHELL='$SHELL'
16087  export CONFIG_SHELL
16088  exec "\$@"
16089fi
16090
16091_ACEOF
16092cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16093exec 5>>config.log
16094{
16095  echo
16096  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16097## Running $as_me. ##
16098_ASBOX
16099  $as_echo "$ac_log"
16100} >&5
16101
16102_ACEOF
16103cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16104#
16105# INIT-COMMANDS
16106#
16107
16108
16109# The HP-UX ksh and POSIX shell print the target directory to stdout
16110# if CDPATH is set.
16111(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16112
16113sed_quote_subst='$sed_quote_subst'
16114double_quote_subst='$double_quote_subst'
16115delay_variable_subst='$delay_variable_subst'
16116enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16117macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16118macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16119enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16120pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16121enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16122SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16123ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16124host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16125host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16126host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16127build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16128build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16129build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16130SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16131Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16132GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16133EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16134FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16135LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16136NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16137LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16138max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16139ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16140exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16141lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16142lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16143lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16144reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16145reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16146OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16147deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16148file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16149AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16150AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16151STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16152RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16153old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16154old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16155old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16156lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16157CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16158CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16159compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16160GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16161lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16162lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16163lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16164lt_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"`'
16165objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16166MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16167lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16168lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16169lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16170lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16171lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16172need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16173DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16174NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16175LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16176OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16177OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16178libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16179shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16180extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16181archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16182enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16183export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16184whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16185compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16186old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16187old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16188archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16189archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16190module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16191module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16192with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16193allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16194no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16195hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16196hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16197hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16198hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16199hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16200hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16201hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16202hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16203inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16204link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16205fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16206always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16207export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16208exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16209include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16210prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16211file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16212variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16213need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16214need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16215version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16216runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16217shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16218shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16219libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16220library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16221soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16222install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16223postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16224postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16225finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16226finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16227hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16228sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16229sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16230hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16231enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16232enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16233enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16234old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16235striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16236
16237LTCC='$LTCC'
16238LTCFLAGS='$LTCFLAGS'
16239compiler='$compiler_DEFAULT'
16240
16241# A function that is used when there is no print builtin or printf.
16242func_fallback_echo ()
16243{
16244  eval 'cat <<_LTECHO_EOF
16245\$1
16246_LTECHO_EOF'
16247}
16248
16249# Quote evaled strings.
16250for var in SHELL \
16251ECHO \
16252SED \
16253GREP \
16254EGREP \
16255FGREP \
16256LD \
16257NM \
16258LN_S \
16259lt_SP2NL \
16260lt_NL2SP \
16261reload_flag \
16262OBJDUMP \
16263deplibs_check_method \
16264file_magic_cmd \
16265AR \
16266AR_FLAGS \
16267STRIP \
16268RANLIB \
16269CC \
16270CFLAGS \
16271compiler \
16272lt_cv_sys_global_symbol_pipe \
16273lt_cv_sys_global_symbol_to_cdecl \
16274lt_cv_sys_global_symbol_to_c_name_address \
16275lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16276lt_prog_compiler_no_builtin_flag \
16277lt_prog_compiler_wl \
16278lt_prog_compiler_pic \
16279lt_prog_compiler_static \
16280lt_cv_prog_compiler_c_o \
16281need_locks \
16282DSYMUTIL \
16283NMEDIT \
16284LIPO \
16285OTOOL \
16286OTOOL64 \
16287shrext_cmds \
16288export_dynamic_flag_spec \
16289whole_archive_flag_spec \
16290compiler_needs_object \
16291with_gnu_ld \
16292allow_undefined_flag \
16293no_undefined_flag \
16294hardcode_libdir_flag_spec \
16295hardcode_libdir_flag_spec_ld \
16296hardcode_libdir_separator \
16297fix_srcfile_path \
16298exclude_expsyms \
16299include_expsyms \
16300file_list_spec \
16301variables_saved_for_relink \
16302libname_spec \
16303library_names_spec \
16304soname_spec \
16305install_override_mode \
16306finish_eval \
16307old_striplib \
16308striplib; do
16309    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16310    *[\\\\\\\`\\"\\\$]*)
16311      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16312      ;;
16313    *)
16314      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16315      ;;
16316    esac
16317done
16318
16319# Double-quote double-evaled strings.
16320for var in reload_cmds \
16321old_postinstall_cmds \
16322old_postuninstall_cmds \
16323old_archive_cmds \
16324extract_expsyms_cmds \
16325old_archive_from_new_cmds \
16326old_archive_from_expsyms_cmds \
16327archive_cmds \
16328archive_expsym_cmds \
16329module_cmds \
16330module_expsym_cmds \
16331export_symbols_cmds \
16332prelink_cmds \
16333postinstall_cmds \
16334postuninstall_cmds \
16335finish_cmds \
16336sys_lib_search_path_spec \
16337sys_lib_dlsearch_path_spec; do
16338    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16339    *[\\\\\\\`\\"\\\$]*)
16340      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16341      ;;
16342    *)
16343      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16344      ;;
16345    esac
16346done
16347
16348ac_aux_dir='$ac_aux_dir'
16349xsi_shell='$xsi_shell'
16350lt_shell_append='$lt_shell_append'
16351
16352# See if we are running on zsh, and set the options which allow our
16353# commands through without removal of \ escapes INIT.
16354if test -n "\${ZSH_VERSION+set}" ; then
16355   setopt NO_GLOB_SUBST
16356fi
16357
16358
16359    PACKAGE='$PACKAGE'
16360    VERSION='$VERSION'
16361    TIMESTAMP='$TIMESTAMP'
16362    RM='$RM'
16363    ofile='$ofile'
16364
16365
16366
16367
16368_ACEOF
16369
16370cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16371
16372# Handling of arguments.
16373for ac_config_target in $ac_config_targets
16374do
16375  case $ac_config_target in
16376    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16377    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16378    "neon-config") CONFIG_FILES="$CONFIG_FILES neon-config" ;;
16379    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16380    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16381    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16382    "neon.pc") CONFIG_FILES="$CONFIG_FILES neon.pc" ;;
16383    "test/makekeys") CONFIG_FILES="$CONFIG_FILES test/makekeys:test/makekeys.sh" ;;
16384
16385  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16386  esac
16387done
16388
16389
16390# If the user did not use the arguments to specify the items to instantiate,
16391# then the envvar interface is used.  Set only those that are not.
16392# We use the long form for the default assignment because of an extremely
16393# bizarre bug on SunOS 4.1.3.
16394if $ac_need_defaults; then
16395  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16396  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16397  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16398fi
16399
16400# Have a temporary directory for convenience.  Make it in the build tree
16401# simply because there is no reason against having it here, and in addition,
16402# creating and moving files from /tmp can sometimes cause problems.
16403# Hook for its removal unless debugging.
16404# Note that there is a small window in which the directory will not be cleaned:
16405# after its creation but before its name has been assigned to `$tmp'.
16406$debug ||
16407{
16408  tmp=
16409  trap 'exit_status=$?
16410  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16411' 0
16412  trap 'as_fn_exit 1' 1 2 13 15
16413}
16414# Create a (secure) tmp directory for tmp files.
16415
16416{
16417  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16418  test -n "$tmp" && test -d "$tmp"
16419}  ||
16420{
16421  tmp=./conf$$-$RANDOM
16422  (umask 077 && mkdir "$tmp")
16423} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16424
16425# Set up the scripts for CONFIG_FILES section.
16426# No need to generate them if there are no CONFIG_FILES.
16427# This happens for instance with `./config.status config.h'.
16428if test -n "$CONFIG_FILES"; then
16429
16430
16431ac_cr=`echo X | tr X '\015'`
16432# On cygwin, bash can eat \r inside `` if the user requested igncr.
16433# But we know of no other shell where ac_cr would be empty at this
16434# point, so we can use a bashism as a fallback.
16435if test "x$ac_cr" = x; then
16436  eval ac_cr=\$\'\\r\'
16437fi
16438ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16439if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16440  ac_cs_awk_cr='\\r'
16441else
16442  ac_cs_awk_cr=$ac_cr
16443fi
16444
16445echo 'BEGIN {' >"$tmp/subs1.awk" &&
16446_ACEOF
16447
16448
16449{
16450  echo "cat >conf$$subs.awk <<_ACEOF" &&
16451  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16452  echo "_ACEOF"
16453} >conf$$subs.sh ||
16454  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16455ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16456ac_delim='%!_!# '
16457for ac_last_try in false false false false false :; do
16458  . ./conf$$subs.sh ||
16459    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16460
16461  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16462  if test $ac_delim_n = $ac_delim_num; then
16463    break
16464  elif $ac_last_try; then
16465    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16466  else
16467    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16468  fi
16469done
16470rm -f conf$$subs.sh
16471
16472cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16473cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16474_ACEOF
16475sed -n '
16476h
16477s/^/S["/; s/!.*/"]=/
16478p
16479g
16480s/^[^!]*!//
16481:repl
16482t repl
16483s/'"$ac_delim"'$//
16484t delim
16485:nl
16486h
16487s/\(.\{148\}\)..*/\1/
16488t more1
16489s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16490p
16491n
16492b repl
16493:more1
16494s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16495p
16496g
16497s/.\{148\}//
16498t nl
16499:delim
16500h
16501s/\(.\{148\}\)..*/\1/
16502t more2
16503s/["\\]/\\&/g; s/^/"/; s/$/"/
16504p
16505b
16506:more2
16507s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16508p
16509g
16510s/.\{148\}//
16511t delim
16512' <conf$$subs.awk | sed '
16513/^[^""]/{
16514  N
16515  s/\n//
16516}
16517' >>$CONFIG_STATUS || ac_write_fail=1
16518rm -f conf$$subs.awk
16519cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16520_ACAWK
16521cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16522  for (key in S) S_is_set[key] = 1
16523  FS = ""
16524
16525}
16526{
16527  line = $ 0
16528  nfields = split(line, field, "@")
16529  substed = 0
16530  len = length(field[1])
16531  for (i = 2; i < nfields; i++) {
16532    key = field[i]
16533    keylen = length(key)
16534    if (S_is_set[key]) {
16535      value = S[key]
16536      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16537      len += length(value) + length(field[++i])
16538      substed = 1
16539    } else
16540      len += 1 + keylen
16541  }
16542
16543  print line
16544}
16545
16546_ACAWK
16547_ACEOF
16548cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16549if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16550  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16551else
16552  cat
16553fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16554  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16555_ACEOF
16556
16557# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16558# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16559# trailing colons and then remove the whole line if VPATH becomes empty
16560# (actually we leave an empty line to preserve line numbers).
16561if test "x$srcdir" = x.; then
16562  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
16563h
16564s///
16565s/^/:/
16566s/[	 ]*$/:/
16567s/:\$(srcdir):/:/g
16568s/:\${srcdir}:/:/g
16569s/:@srcdir@:/:/g
16570s/^:*//
16571s/:*$//
16572x
16573s/\(=[	 ]*\).*/\1/
16574G
16575s/\n//
16576s/^[^=]*=[	 ]*$//
16577}'
16578fi
16579
16580cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16581fi # test -n "$CONFIG_FILES"
16582
16583# Set up the scripts for CONFIG_HEADERS section.
16584# No need to generate them if there are no CONFIG_HEADERS.
16585# This happens for instance with `./config.status Makefile'.
16586if test -n "$CONFIG_HEADERS"; then
16587cat >"$tmp/defines.awk" <<\_ACAWK ||
16588BEGIN {
16589_ACEOF
16590
16591# Transform confdefs.h into an awk script `defines.awk', embedded as
16592# here-document in config.status, that substitutes the proper values into
16593# config.h.in to produce config.h.
16594
16595# Create a delimiter string that does not exist in confdefs.h, to ease
16596# handling of long lines.
16597ac_delim='%!_!# '
16598for ac_last_try in false false :; do
16599  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16600  if test -z "$ac_t"; then
16601    break
16602  elif $ac_last_try; then
16603    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16604  else
16605    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16606  fi
16607done
16608
16609# For the awk script, D is an array of macro values keyed by name,
16610# likewise P contains macro parameters if any.  Preserve backslash
16611# newline sequences.
16612
16613ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16614sed -n '
16615s/.\{148\}/&'"$ac_delim"'/g
16616t rset
16617:rset
16618s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16619t def
16620d
16621:def
16622s/\\$//
16623t bsnl
16624s/["\\]/\\&/g
16625s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16626D["\1"]=" \3"/p
16627s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16628d
16629:bsnl
16630s/["\\]/\\&/g
16631s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16632D["\1"]=" \3\\\\\\n"\\/p
16633t cont
16634s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16635t cont
16636d
16637:cont
16638n
16639s/.\{148\}/&'"$ac_delim"'/g
16640t clear
16641:clear
16642s/\\$//
16643t bsnlc
16644s/["\\]/\\&/g; s/^/"/; s/$/"/p
16645d
16646:bsnlc
16647s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16648b cont
16649' <confdefs.h | sed '
16650s/'"$ac_delim"'/"\\\
16651"/g' >>$CONFIG_STATUS || ac_write_fail=1
16652
16653cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16654  for (key in D) D_is_set[key] = 1
16655  FS = ""
16656}
16657/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16658  line = \$ 0
16659  split(line, arg, " ")
16660  if (arg[1] == "#") {
16661    defundef = arg[2]
16662    mac1 = arg[3]
16663  } else {
16664    defundef = substr(arg[1], 2)
16665    mac1 = arg[2]
16666  }
16667  split(mac1, mac2, "(") #)
16668  macro = mac2[1]
16669  prefix = substr(line, 1, index(line, defundef) - 1)
16670  if (D_is_set[macro]) {
16671    # Preserve the white space surrounding the "#".
16672    print prefix "define", macro P[macro] D[macro]
16673    next
16674  } else {
16675    # Replace #undef with comments.  This is necessary, for example,
16676    # in the case of _POSIX_SOURCE, which is predefined and required
16677    # on some systems where configure will not decide to define it.
16678    if (defundef == "undef") {
16679      print "/*", prefix defundef, macro, "*/"
16680      next
16681    }
16682  }
16683}
16684{ print }
16685_ACAWK
16686_ACEOF
16687cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16688  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16689fi # test -n "$CONFIG_HEADERS"
16690
16691
16692eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16693shift
16694for ac_tag
16695do
16696  case $ac_tag in
16697  :[FHLC]) ac_mode=$ac_tag; continue;;
16698  esac
16699  case $ac_mode$ac_tag in
16700  :[FHL]*:*);;
16701  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16702  :[FH]-) ac_tag=-:-;;
16703  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16704  esac
16705  ac_save_IFS=$IFS
16706  IFS=:
16707  set x $ac_tag
16708  IFS=$ac_save_IFS
16709  shift
16710  ac_file=$1
16711  shift
16712
16713  case $ac_mode in
16714  :L) ac_source=$1;;
16715  :[FH])
16716    ac_file_inputs=
16717    for ac_f
16718    do
16719      case $ac_f in
16720      -) ac_f="$tmp/stdin";;
16721      *) # Look for the file first in the build tree, then in the source tree
16722	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16723	 # because $ac_f cannot contain `:'.
16724	 test -f "$ac_f" ||
16725	   case $ac_f in
16726	   [\\/$]*) false;;
16727	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16728	   esac ||
16729	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16730      esac
16731      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16732      as_fn_append ac_file_inputs " '$ac_f'"
16733    done
16734
16735    # Let's still pretend it is `configure' which instantiates (i.e., don't
16736    # use $as_me), people would be surprised to read:
16737    #    /* config.h.  Generated by config.status.  */
16738    configure_input='Generated from '`
16739	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16740	`' by configure.'
16741    if test x"$ac_file" != x-; then
16742      configure_input="$ac_file.  $configure_input"
16743      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16744$as_echo "$as_me: creating $ac_file" >&6;}
16745    fi
16746    # Neutralize special characters interpreted by sed in replacement strings.
16747    case $configure_input in #(
16748    *\&* | *\|* | *\\* )
16749       ac_sed_conf_input=`$as_echo "$configure_input" |
16750       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16751    *) ac_sed_conf_input=$configure_input;;
16752    esac
16753
16754    case $ac_tag in
16755    *:-:* | *:-) cat >"$tmp/stdin" \
16756      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16757    esac
16758    ;;
16759  esac
16760
16761  ac_dir=`$as_dirname -- "$ac_file" ||
16762$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16763	 X"$ac_file" : 'X\(//\)[^/]' \| \
16764	 X"$ac_file" : 'X\(//\)$' \| \
16765	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16766$as_echo X"$ac_file" |
16767    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16768	    s//\1/
16769	    q
16770	  }
16771	  /^X\(\/\/\)[^/].*/{
16772	    s//\1/
16773	    q
16774	  }
16775	  /^X\(\/\/\)$/{
16776	    s//\1/
16777	    q
16778	  }
16779	  /^X\(\/\).*/{
16780	    s//\1/
16781	    q
16782	  }
16783	  s/.*/./; q'`
16784  as_dir="$ac_dir"; as_fn_mkdir_p
16785  ac_builddir=.
16786
16787case "$ac_dir" in
16788.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16789*)
16790  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16791  # A ".." for each directory in $ac_dir_suffix.
16792  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16793  case $ac_top_builddir_sub in
16794  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16795  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16796  esac ;;
16797esac
16798ac_abs_top_builddir=$ac_pwd
16799ac_abs_builddir=$ac_pwd$ac_dir_suffix
16800# for backward compatibility:
16801ac_top_builddir=$ac_top_build_prefix
16802
16803case $srcdir in
16804  .)  # We are building in place.
16805    ac_srcdir=.
16806    ac_top_srcdir=$ac_top_builddir_sub
16807    ac_abs_top_srcdir=$ac_pwd ;;
16808  [\\/]* | ?:[\\/]* )  # Absolute name.
16809    ac_srcdir=$srcdir$ac_dir_suffix;
16810    ac_top_srcdir=$srcdir
16811    ac_abs_top_srcdir=$srcdir ;;
16812  *) # Relative name.
16813    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16814    ac_top_srcdir=$ac_top_build_prefix$srcdir
16815    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16816esac
16817ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16818
16819
16820  case $ac_mode in
16821  :F)
16822  #
16823  # CONFIG_FILE
16824  #
16825
16826  case $INSTALL in
16827  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16828  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16829  esac
16830_ACEOF
16831
16832cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16833# If the template does not know about datarootdir, expand it.
16834# FIXME: This hack should be removed a few years after 2.60.
16835ac_datarootdir_hack=; ac_datarootdir_seen=
16836ac_sed_dataroot='
16837/datarootdir/ {
16838  p
16839  q
16840}
16841/@datadir@/p
16842/@docdir@/p
16843/@infodir@/p
16844/@localedir@/p
16845/@mandir@/p'
16846case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16847*datarootdir*) ac_datarootdir_seen=yes;;
16848*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16849  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16850$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16851_ACEOF
16852cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16853  ac_datarootdir_hack='
16854  s&@datadir@&$datadir&g
16855  s&@docdir@&$docdir&g
16856  s&@infodir@&$infodir&g
16857  s&@localedir@&$localedir&g
16858  s&@mandir@&$mandir&g
16859  s&\\\${datarootdir}&$datarootdir&g' ;;
16860esac
16861_ACEOF
16862
16863# Neutralize VPATH when `$srcdir' = `.'.
16864# Shell code in configure.ac might set extrasub.
16865# FIXME: do we really want to maintain this feature?
16866cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16867ac_sed_extra="$ac_vpsub
16868$extrasub
16869_ACEOF
16870cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16871:t
16872/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16873s|@configure_input@|$ac_sed_conf_input|;t t
16874s&@top_builddir@&$ac_top_builddir_sub&;t t
16875s&@top_build_prefix@&$ac_top_build_prefix&;t t
16876s&@srcdir@&$ac_srcdir&;t t
16877s&@abs_srcdir@&$ac_abs_srcdir&;t t
16878s&@top_srcdir@&$ac_top_srcdir&;t t
16879s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16880s&@builddir@&$ac_builddir&;t t
16881s&@abs_builddir@&$ac_abs_builddir&;t t
16882s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16883s&@INSTALL@&$ac_INSTALL&;t t
16884$ac_datarootdir_hack
16885"
16886eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16887  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16888
16889test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16890  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16891  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16892  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16893which seems to be undefined.  Please make sure it is defined" >&5
16894$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16895which seems to be undefined.  Please make sure it is defined" >&2;}
16896
16897  rm -f "$tmp/stdin"
16898  case $ac_file in
16899  -) cat "$tmp/out" && rm -f "$tmp/out";;
16900  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16901  esac \
16902  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16903 ;;
16904  :H)
16905  #
16906  # CONFIG_HEADER
16907  #
16908  if test x"$ac_file" != x-; then
16909    {
16910      $as_echo "/* $configure_input  */" \
16911      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16912    } >"$tmp/config.h" \
16913      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16914    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16915      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16916$as_echo "$as_me: $ac_file is unchanged" >&6;}
16917    else
16918      rm -f "$ac_file"
16919      mv "$tmp/config.h" "$ac_file" \
16920	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16921    fi
16922  else
16923    $as_echo "/* $configure_input  */" \
16924      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16925      || as_fn_error $? "could not create -" "$LINENO" 5
16926  fi
16927 ;;
16928
16929  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16930$as_echo "$as_me: executing $ac_file commands" >&6;}
16931 ;;
16932  esac
16933
16934
16935  case $ac_file$ac_mode in
16936    "libtool":C)
16937
16938    # See if we are running on zsh, and set the options which allow our
16939    # commands through without removal of \ escapes.
16940    if test -n "${ZSH_VERSION+set}" ; then
16941      setopt NO_GLOB_SUBST
16942    fi
16943
16944    cfgfile="${ofile}T"
16945    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16946    $RM "$cfgfile"
16947
16948    cat <<_LT_EOF >> "$cfgfile"
16949#! $SHELL
16950
16951# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16952# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16953# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16954# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16955#
16956#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16957#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
16958#                 Inc.
16959#   Written by Gordon Matzigkeit, 1996
16960#
16961#   This file is part of GNU Libtool.
16962#
16963# GNU Libtool is free software; you can redistribute it and/or
16964# modify it under the terms of the GNU General Public License as
16965# published by the Free Software Foundation; either version 2 of
16966# the License, or (at your option) any later version.
16967#
16968# As a special exception to the GNU General Public License,
16969# if you distribute this file as part of a program or library that
16970# is built using GNU Libtool, you may include this file under the
16971# same distribution terms that you use for the rest of that program.
16972#
16973# GNU Libtool is distributed in the hope that it will be useful,
16974# but WITHOUT ANY WARRANTY; without even the implied warranty of
16975# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16976# GNU General Public License for more details.
16977#
16978# You should have received a copy of the GNU General Public License
16979# along with GNU Libtool; see the file COPYING.  If not, a copy
16980# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16981# obtained by writing to the Free Software Foundation, Inc.,
16982# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16983
16984
16985# The names of the tagged configurations supported by this script.
16986available_tags=""
16987
16988# ### BEGIN LIBTOOL CONFIG
16989
16990# Whether or not to build shared libraries.
16991build_libtool_libs=$enable_shared
16992
16993# Which release of libtool.m4 was used?
16994macro_version=$macro_version
16995macro_revision=$macro_revision
16996
16997# Whether or not to build static libraries.
16998build_old_libs=$enable_static
16999
17000# What type of objects to build.
17001pic_mode=$pic_mode
17002
17003# Whether or not to optimize for fast installation.
17004fast_install=$enable_fast_install
17005
17006# Shell to use when invoking shell scripts.
17007SHELL=$lt_SHELL
17008
17009# An echo program that protects backslashes.
17010ECHO=$lt_ECHO
17011
17012# The host system.
17013host_alias=$host_alias
17014host=$host
17015host_os=$host_os
17016
17017# The build system.
17018build_alias=$build_alias
17019build=$build
17020build_os=$build_os
17021
17022# A sed program that does not truncate output.
17023SED=$lt_SED
17024
17025# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17026Xsed="\$SED -e 1s/^X//"
17027
17028# A grep program that handles long lines.
17029GREP=$lt_GREP
17030
17031# An ERE matcher.
17032EGREP=$lt_EGREP
17033
17034# A literal string matcher.
17035FGREP=$lt_FGREP
17036
17037# A BSD- or MS-compatible name lister.
17038NM=$lt_NM
17039
17040# Whether we need soft or hard links.
17041LN_S=$lt_LN_S
17042
17043# What is the maximum length of a command?
17044max_cmd_len=$max_cmd_len
17045
17046# Object file suffix (normally "o").
17047objext=$ac_objext
17048
17049# Executable file suffix (normally "").
17050exeext=$exeext
17051
17052# whether the shell understands "unset".
17053lt_unset=$lt_unset
17054
17055# turn spaces into newlines.
17056SP2NL=$lt_lt_SP2NL
17057
17058# turn newlines into spaces.
17059NL2SP=$lt_lt_NL2SP
17060
17061# An object symbol dumper.
17062OBJDUMP=$lt_OBJDUMP
17063
17064# Method to check whether dependent libraries are shared objects.
17065deplibs_check_method=$lt_deplibs_check_method
17066
17067# Command to use when deplibs_check_method == "file_magic".
17068file_magic_cmd=$lt_file_magic_cmd
17069
17070# The archiver.
17071AR=$lt_AR
17072AR_FLAGS=$lt_AR_FLAGS
17073
17074# A symbol stripping program.
17075STRIP=$lt_STRIP
17076
17077# Commands used to install an old-style archive.
17078RANLIB=$lt_RANLIB
17079old_postinstall_cmds=$lt_old_postinstall_cmds
17080old_postuninstall_cmds=$lt_old_postuninstall_cmds
17081
17082# Whether to use a lock for old archive extraction.
17083lock_old_archive_extraction=$lock_old_archive_extraction
17084
17085# A C compiler.
17086LTCC=$lt_CC
17087
17088# LTCC compiler flags.
17089LTCFLAGS=$lt_CFLAGS
17090
17091# Take the output of nm and produce a listing of raw symbols and C names.
17092global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17093
17094# Transform the output of nm in a proper C declaration.
17095global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17096
17097# Transform the output of nm in a C name address pair.
17098global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17099
17100# Transform the output of nm in a C name address pair when lib prefix is needed.
17101global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17102
17103# The name of the directory that contains temporary libtool files.
17104objdir=$objdir
17105
17106# Used to examine libraries when file_magic_cmd begins with "file".
17107MAGIC_CMD=$MAGIC_CMD
17108
17109# Must we lock files when doing compilation?
17110need_locks=$lt_need_locks
17111
17112# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17113DSYMUTIL=$lt_DSYMUTIL
17114
17115# Tool to change global to local symbols on Mac OS X.
17116NMEDIT=$lt_NMEDIT
17117
17118# Tool to manipulate fat objects and archives on Mac OS X.
17119LIPO=$lt_LIPO
17120
17121# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17122OTOOL=$lt_OTOOL
17123
17124# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17125OTOOL64=$lt_OTOOL64
17126
17127# Old archive suffix (normally "a").
17128libext=$libext
17129
17130# Shared library suffix (normally ".so").
17131shrext_cmds=$lt_shrext_cmds
17132
17133# The commands to extract the exported symbol list from a shared archive.
17134extract_expsyms_cmds=$lt_extract_expsyms_cmds
17135
17136# Variables whose values should be saved in libtool wrapper scripts and
17137# restored at link time.
17138variables_saved_for_relink=$lt_variables_saved_for_relink
17139
17140# Do we need the "lib" prefix for modules?
17141need_lib_prefix=$need_lib_prefix
17142
17143# Do we need a version for libraries?
17144need_version=$need_version
17145
17146# Library versioning type.
17147version_type=$version_type
17148
17149# Shared library runtime path variable.
17150runpath_var=$runpath_var
17151
17152# Shared library path variable.
17153shlibpath_var=$shlibpath_var
17154
17155# Is shlibpath searched before the hard-coded library search path?
17156shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17157
17158# Format of library name prefix.
17159libname_spec=$lt_libname_spec
17160
17161# List of archive names.  First name is the real one, the rest are links.
17162# The last name is the one that the linker finds with -lNAME
17163library_names_spec=$lt_library_names_spec
17164
17165# The coded name of the library, if different from the real name.
17166soname_spec=$lt_soname_spec
17167
17168# Permission mode override for installation of shared libraries.
17169install_override_mode=$lt_install_override_mode
17170
17171# Command to use after installation of a shared archive.
17172postinstall_cmds=$lt_postinstall_cmds
17173
17174# Command to use after uninstallation of a shared archive.
17175postuninstall_cmds=$lt_postuninstall_cmds
17176
17177# Commands used to finish a libtool library installation in a directory.
17178finish_cmds=$lt_finish_cmds
17179
17180# As "finish_cmds", except a single script fragment to be evaled but
17181# not shown.
17182finish_eval=$lt_finish_eval
17183
17184# Whether we should hardcode library paths into libraries.
17185hardcode_into_libs=$hardcode_into_libs
17186
17187# Compile-time system search path for libraries.
17188sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17189
17190# Run-time system search path for libraries.
17191sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17192
17193# Whether dlopen is supported.
17194dlopen_support=$enable_dlopen
17195
17196# Whether dlopen of programs is supported.
17197dlopen_self=$enable_dlopen_self
17198
17199# Whether dlopen of statically linked programs is supported.
17200dlopen_self_static=$enable_dlopen_self_static
17201
17202# Commands to strip libraries.
17203old_striplib=$lt_old_striplib
17204striplib=$lt_striplib
17205
17206
17207# The linker used to build libraries.
17208LD=$lt_LD
17209
17210# How to create reloadable object files.
17211reload_flag=$lt_reload_flag
17212reload_cmds=$lt_reload_cmds
17213
17214# Commands used to build an old-style archive.
17215old_archive_cmds=$lt_old_archive_cmds
17216
17217# A language specific compiler.
17218CC=$lt_compiler
17219
17220# Is the compiler the GNU compiler?
17221with_gcc=$GCC
17222
17223# Compiler flag to turn off builtin functions.
17224no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17225
17226# How to pass a linker flag through the compiler.
17227wl=$lt_lt_prog_compiler_wl
17228
17229# Additional compiler flags for building library objects.
17230pic_flag=$lt_lt_prog_compiler_pic
17231
17232# Compiler flag to prevent dynamic linking.
17233link_static_flag=$lt_lt_prog_compiler_static
17234
17235# Does compiler simultaneously support -c and -o options?
17236compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17237
17238# Whether or not to add -lc for building shared libraries.
17239build_libtool_need_lc=$archive_cmds_need_lc
17240
17241# Whether or not to disallow shared libs when runtime libs are static.
17242allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17243
17244# Compiler flag to allow reflexive dlopens.
17245export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17246
17247# Compiler flag to generate shared objects directly from archives.
17248whole_archive_flag_spec=$lt_whole_archive_flag_spec
17249
17250# Whether the compiler copes with passing no objects directly.
17251compiler_needs_object=$lt_compiler_needs_object
17252
17253# Create an old-style archive from a shared archive.
17254old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17255
17256# Create a temporary old-style archive to link instead of a shared archive.
17257old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17258
17259# Commands used to build a shared archive.
17260archive_cmds=$lt_archive_cmds
17261archive_expsym_cmds=$lt_archive_expsym_cmds
17262
17263# Commands used to build a loadable module if different from building
17264# a shared archive.
17265module_cmds=$lt_module_cmds
17266module_expsym_cmds=$lt_module_expsym_cmds
17267
17268# Whether we are building with GNU ld or not.
17269with_gnu_ld=$lt_with_gnu_ld
17270
17271# Flag that allows shared libraries with undefined symbols to be built.
17272allow_undefined_flag=$lt_allow_undefined_flag
17273
17274# Flag that enforces no undefined symbols.
17275no_undefined_flag=$lt_no_undefined_flag
17276
17277# Flag to hardcode \$libdir into a binary during linking.
17278# This must work even if \$libdir does not exist
17279hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17280
17281# If ld is used when linking, flag to hardcode \$libdir into a binary
17282# during linking.  This must work even if \$libdir does not exist.
17283hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17284
17285# Whether we need a single "-rpath" flag with a separated argument.
17286hardcode_libdir_separator=$lt_hardcode_libdir_separator
17287
17288# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17289# DIR into the resulting binary.
17290hardcode_direct=$hardcode_direct
17291
17292# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17293# DIR into the resulting binary and the resulting library dependency is
17294# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17295# library is relocated.
17296hardcode_direct_absolute=$hardcode_direct_absolute
17297
17298# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17299# into the resulting binary.
17300hardcode_minus_L=$hardcode_minus_L
17301
17302# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17303# into the resulting binary.
17304hardcode_shlibpath_var=$hardcode_shlibpath_var
17305
17306# Set to "yes" if building a shared library automatically hardcodes DIR
17307# into the library and all subsequent libraries and executables linked
17308# against it.
17309hardcode_automatic=$hardcode_automatic
17310
17311# Set to yes if linker adds runtime paths of dependent libraries
17312# to runtime path list.
17313inherit_rpath=$inherit_rpath
17314
17315# Whether libtool must link a program against all its dependency libraries.
17316link_all_deplibs=$link_all_deplibs
17317
17318# Fix the shell variable \$srcfile for the compiler.
17319fix_srcfile_path=$lt_fix_srcfile_path
17320
17321# Set to "yes" if exported symbols are required.
17322always_export_symbols=$always_export_symbols
17323
17324# The commands to list exported symbols.
17325export_symbols_cmds=$lt_export_symbols_cmds
17326
17327# Symbols that should not be listed in the preloaded symbols.
17328exclude_expsyms=$lt_exclude_expsyms
17329
17330# Symbols that must always be exported.
17331include_expsyms=$lt_include_expsyms
17332
17333# Commands necessary for linking programs (against libraries) with templates.
17334prelink_cmds=$lt_prelink_cmds
17335
17336# Specify filename containing input files.
17337file_list_spec=$lt_file_list_spec
17338
17339# How to hardcode a shared library path into an executable.
17340hardcode_action=$hardcode_action
17341
17342# ### END LIBTOOL CONFIG
17343
17344_LT_EOF
17345
17346  case $host_os in
17347  aix3*)
17348    cat <<\_LT_EOF >> "$cfgfile"
17349# AIX sometimes has problems with the GCC collect2 program.  For some
17350# reason, if we set the COLLECT_NAMES environment variable, the problems
17351# vanish in a puff of smoke.
17352if test "X${COLLECT_NAMES+set}" != Xset; then
17353  COLLECT_NAMES=
17354  export COLLECT_NAMES
17355fi
17356_LT_EOF
17357    ;;
17358  esac
17359
17360
17361ltmain="$ac_aux_dir/ltmain.sh"
17362
17363
17364  # We use sed instead of cat because bash on DJGPP gets confused if
17365  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17366  # text mode, it properly converts lines to CR/LF.  This bash problem
17367  # is reportedly fixed, but why not run on old versions too?
17368  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17369    || (rm -f "$cfgfile"; exit 1)
17370
17371  case $xsi_shell in
17372  yes)
17373    cat << \_LT_EOF >> "$cfgfile"
17374
17375# func_dirname file append nondir_replacement
17376# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17377# otherwise set result to NONDIR_REPLACEMENT.
17378func_dirname ()
17379{
17380  case ${1} in
17381    */*) func_dirname_result="${1%/*}${2}" ;;
17382    *  ) func_dirname_result="${3}" ;;
17383  esac
17384}
17385
17386# func_basename file
17387func_basename ()
17388{
17389  func_basename_result="${1##*/}"
17390}
17391
17392# func_dirname_and_basename file append nondir_replacement
17393# perform func_basename and func_dirname in a single function
17394# call:
17395#   dirname:  Compute the dirname of FILE.  If nonempty,
17396#             add APPEND to the result, otherwise set result
17397#             to NONDIR_REPLACEMENT.
17398#             value returned in "$func_dirname_result"
17399#   basename: Compute filename of FILE.
17400#             value retuned in "$func_basename_result"
17401# Implementation must be kept synchronized with func_dirname
17402# and func_basename. For efficiency, we do not delegate to
17403# those functions but instead duplicate the functionality here.
17404func_dirname_and_basename ()
17405{
17406  case ${1} in
17407    */*) func_dirname_result="${1%/*}${2}" ;;
17408    *  ) func_dirname_result="${3}" ;;
17409  esac
17410  func_basename_result="${1##*/}"
17411}
17412
17413# func_stripname prefix suffix name
17414# strip PREFIX and SUFFIX off of NAME.
17415# PREFIX and SUFFIX must not contain globbing or regex special
17416# characters, hashes, percent signs, but SUFFIX may contain a leading
17417# dot (in which case that matches only a dot).
17418func_stripname ()
17419{
17420  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17421  # positional parameters, so assign one to ordinary parameter first.
17422  func_stripname_result=${3}
17423  func_stripname_result=${func_stripname_result#"${1}"}
17424  func_stripname_result=${func_stripname_result%"${2}"}
17425}
17426
17427# func_opt_split
17428func_opt_split ()
17429{
17430  func_opt_split_opt=${1%%=*}
17431  func_opt_split_arg=${1#*=}
17432}
17433
17434# func_lo2o object
17435func_lo2o ()
17436{
17437  case ${1} in
17438    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17439    *)    func_lo2o_result=${1} ;;
17440  esac
17441}
17442
17443# func_xform libobj-or-source
17444func_xform ()
17445{
17446  func_xform_result=${1%.*}.lo
17447}
17448
17449# func_arith arithmetic-term...
17450func_arith ()
17451{
17452  func_arith_result=$(( $* ))
17453}
17454
17455# func_len string
17456# STRING may not start with a hyphen.
17457func_len ()
17458{
17459  func_len_result=${#1}
17460}
17461
17462_LT_EOF
17463    ;;
17464  *) # Bourne compatible functions.
17465    cat << \_LT_EOF >> "$cfgfile"
17466
17467# func_dirname file append nondir_replacement
17468# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17469# otherwise set result to NONDIR_REPLACEMENT.
17470func_dirname ()
17471{
17472  # Extract subdirectory from the argument.
17473  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17474  if test "X$func_dirname_result" = "X${1}"; then
17475    func_dirname_result="${3}"
17476  else
17477    func_dirname_result="$func_dirname_result${2}"
17478  fi
17479}
17480
17481# func_basename file
17482func_basename ()
17483{
17484  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17485}
17486
17487
17488# func_stripname prefix suffix name
17489# strip PREFIX and SUFFIX off of NAME.
17490# PREFIX and SUFFIX must not contain globbing or regex special
17491# characters, hashes, percent signs, but SUFFIX may contain a leading
17492# dot (in which case that matches only a dot).
17493# func_strip_suffix prefix name
17494func_stripname ()
17495{
17496  case ${2} in
17497    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17498    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17499  esac
17500}
17501
17502# sed scripts:
17503my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17504my_sed_long_arg='1s/^-[^=]*=//'
17505
17506# func_opt_split
17507func_opt_split ()
17508{
17509  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17510  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17511}
17512
17513# func_lo2o object
17514func_lo2o ()
17515{
17516  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17517}
17518
17519# func_xform libobj-or-source
17520func_xform ()
17521{
17522  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17523}
17524
17525# func_arith arithmetic-term...
17526func_arith ()
17527{
17528  func_arith_result=`expr "$@"`
17529}
17530
17531# func_len string
17532# STRING may not start with a hyphen.
17533func_len ()
17534{
17535  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17536}
17537
17538_LT_EOF
17539esac
17540
17541case $lt_shell_append in
17542  yes)
17543    cat << \_LT_EOF >> "$cfgfile"
17544
17545# func_append var value
17546# Append VALUE to the end of shell variable VAR.
17547func_append ()
17548{
17549  eval "$1+=\$2"
17550}
17551_LT_EOF
17552    ;;
17553  *)
17554    cat << \_LT_EOF >> "$cfgfile"
17555
17556# func_append var value
17557# Append VALUE to the end of shell variable VAR.
17558func_append ()
17559{
17560  eval "$1=\$$1\$2"
17561}
17562
17563_LT_EOF
17564    ;;
17565  esac
17566
17567
17568  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17569    || (rm -f "$cfgfile"; exit 1)
17570
17571  mv -f "$cfgfile" "$ofile" ||
17572    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17573  chmod +x "$ofile"
17574
17575 ;;
17576    "neon-config":F) chmod +x neon-config ;;
17577    "test/makekeys":F) chmod +x test/makekeys ;;
17578
17579  esac
17580done # for ac_tag
17581
17582
17583as_fn_exit 0
17584_ACEOF
17585ac_clean_files=$ac_clean_files_save
17586
17587test $ac_write_fail = 0 ||
17588  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17589
17590
17591# configure is writing to config.log, and then calls config.status.
17592# config.status does its own redirection, appending to config.log.
17593# Unfortunately, on DOS this fails, as config.log is still kept open
17594# by configure, so config.status won't be able to write to it; its
17595# output is simply discarded.  So we exec the FD to /dev/null,
17596# effectively closing config.log, so it can be properly (re)opened and
17597# appended to by config.status.  When coming back to configure, we
17598# need to make the FD available again.
17599if test "$no_create" != yes; then
17600  ac_cs_success=:
17601  ac_config_status_args=
17602  test "$silent" = yes &&
17603    ac_config_status_args="$ac_config_status_args --quiet"
17604  exec 5>/dev/null
17605  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17606  exec 5>>config.log
17607  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17608  # would make configure fail if this is the last instruction.
17609  $ac_cs_success || as_fn_exit 1
17610fi
17611if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17612  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17613$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17614fi
17615
17616
17617# for VPATH builds:
17618test -d test/common || mkdir test/common
17619
17620{ $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build neon 0.29.6:
17621
17622  Install prefix:  ${prefix}
17623  Compiler:        ${CC}
17624  XML Parser:      ${neon_xml_parser_message}
17625  SSL library:     ${ne_SSL_message}
17626  zlib support:    ${ne_ZLIB_message}
17627  Build libraries: Shared=${enable_shared}, Static=${enable_static}
17628" >&5
17629$as_echo "$as_me: Configured to build neon 0.29.6:
17630
17631  Install prefix:  ${prefix}
17632  Compiler:        ${CC}
17633  XML Parser:      ${neon_xml_parser_message}
17634  SSL library:     ${ne_SSL_message}
17635  zlib support:    ${ne_ZLIB_message}
17636  Build libraries: Shared=${enable_shared}, Static=${enable_static}
17637" >&6;}
17638
17639case $ALLOW_INSTALL in
17640memleak)
17641  { $as_echo "$as_me:${as_lineno-$LINENO}: Configured with development-only flags:
17642
17643WARNING: This copy of neon has been configured with memory leak checking
17644WARNING: enabled, which should only be used in a development build of neon.
17645WARNING: This neon library should not be installed for use by applications.
17646" >&5
17647$as_echo "$as_me: Configured with development-only flags:
17648
17649WARNING: This copy of neon has been configured with memory leak checking
17650WARNING: enabled, which should only be used in a development build of neon.
17651WARNING: This neon library should not be installed for use by applications.
17652" >&6;};;
17653esac
17654