xref: /openbsd-src/usr.sbin/unbound/configure (revision 898184e3e61f9129feb5978fad5a8c6865f00b92)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for unbound 1.4.18.
4#
5# Report bugs to <unbound-bugs@nlnetlabs.nl>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1
178
179  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183    PATH=/empty FPATH=/empty; export PATH FPATH
184    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186  if (eval "$as_required") 2>/dev/null; then :
187  as_have_required=yes
188else
189  as_have_required=no
190fi
191  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198  IFS=$as_save_IFS
199  test -z "$as_dir" && as_dir=.
200  as_found=:
201  case $as_dir in #(
202	 /*)
203	   for as_base in sh bash ksh sh5; do
204	     # Try only shells that exist, to save several forks.
205	     as_shell=$as_dir/$as_base
206	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208  CONFIG_SHELL=$as_shell as_have_required=yes
209		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210  break 2
211fi
212fi
213	   done;;
214       esac
215  as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219  CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224      if test "x$CONFIG_SHELL" != x; then :
225  # We cannot yet assume a decent shell, so we have to provide a
226	# neutralization value for shells without unset; and this also
227	# works around shells that cannot unset nonexistent variables.
228	# Preserve -v and -x to the replacement shell.
229	BASH_ENV=/dev/null
230	ENV=/dev/null
231	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232	export CONFIG_SHELL
233	case $- in # ((((
234	  *v*x* | *x*v* ) as_opts=-vx ;;
235	  *v* ) as_opts=-v ;;
236	  *x* ) as_opts=-x ;;
237	  * ) as_opts= ;;
238	esac
239	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240fi
241
242    if test x$as_have_required = xno; then :
243  $as_echo "$0: This script requires a shell more modern than all"
244  $as_echo "$0: the shells that I found on your system."
245  if test x${ZSH_VERSION+set} = xset ; then
246    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248  else
249    $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: unbound-bugs@nlnetlabs.nl about your system, including
251$0: any error possibly output before this message. Then
252$0: install a modern shell, or manually run the script
253$0: under such a shell if you do have one."
254  fi
255  exit 1
256fi
257fi
258fi
259SHELL=${CONFIG_SHELL-/bin/sh}
260export SHELL
261# Unset more variables known to interfere with behavior of common tools.
262CLICOLOR_FORCE= GREP_OPTIONS=
263unset CLICOLOR_FORCE GREP_OPTIONS
264
265## --------------------- ##
266## M4sh Shell Functions. ##
267## --------------------- ##
268# as_fn_unset VAR
269# ---------------
270# Portably unset VAR.
271as_fn_unset ()
272{
273  { eval $1=; unset $1;}
274}
275as_unset=as_fn_unset
276
277# as_fn_set_status STATUS
278# -----------------------
279# Set $? to STATUS, without forking.
280as_fn_set_status ()
281{
282  return $1
283} # as_fn_set_status
284
285# as_fn_exit STATUS
286# -----------------
287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288as_fn_exit ()
289{
290  set +e
291  as_fn_set_status $1
292  exit $1
293} # as_fn_exit
294
295# as_fn_mkdir_p
296# -------------
297# Create "$as_dir" as a directory, including parents if necessary.
298as_fn_mkdir_p ()
299{
300
301  case $as_dir in #(
302  -*) as_dir=./$as_dir;;
303  esac
304  test -d "$as_dir" || eval $as_mkdir_p || {
305    as_dirs=
306    while :; do
307      case $as_dir in #(
308      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309      *) as_qdir=$as_dir;;
310      esac
311      as_dirs="'$as_qdir' $as_dirs"
312      as_dir=`$as_dirname -- "$as_dir" ||
313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314	 X"$as_dir" : 'X\(//\)[^/]' \| \
315	 X"$as_dir" : 'X\(//\)$' \| \
316	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317$as_echo X"$as_dir" |
318    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319	    s//\1/
320	    q
321	  }
322	  /^X\(\/\/\)[^/].*/{
323	    s//\1/
324	    q
325	  }
326	  /^X\(\/\/\)$/{
327	    s//\1/
328	    q
329	  }
330	  /^X\(\/\).*/{
331	    s//\1/
332	    q
333	  }
334	  s/.*/./; q'`
335      test -d "$as_dir" && break
336    done
337    test -z "$as_dirs" || eval "mkdir $as_dirs"
338  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341} # as_fn_mkdir_p
342# as_fn_append VAR VALUE
343# ----------------------
344# Append the text in VALUE to the end of the definition contained in VAR. Take
345# advantage of any shell optimizations that allow amortized linear growth over
346# repeated appends, instead of the typical quadratic growth present in naive
347# implementations.
348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349  eval 'as_fn_append ()
350  {
351    eval $1+=\$2
352  }'
353else
354  as_fn_append ()
355  {
356    eval $1=\$$1\$2
357  }
358fi # as_fn_append
359
360# as_fn_arith ARG...
361# ------------------
362# Perform arithmetic evaluation on the ARGs, and store the result in the
363# global $as_val. Take advantage of shells that can avoid forks. The arguments
364# must be portable across $(()) and expr.
365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366  eval 'as_fn_arith ()
367  {
368    as_val=$(( $* ))
369  }'
370else
371  as_fn_arith ()
372  {
373    as_val=`expr "$@" || test $? -eq 1`
374  }
375fi # as_fn_arith
376
377
378# as_fn_error STATUS ERROR [LINENO LOG_FD]
379# ----------------------------------------
380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382# script with STATUS, using 1 if that was 0.
383as_fn_error ()
384{
385  as_status=$1; test $as_status -eq 0 && as_status=1
386  if test "$4"; then
387    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389  fi
390  $as_echo "$as_me: error: $2" >&2
391  as_fn_exit $as_status
392} # as_fn_error
393
394if expr a : '\(a\)' >/dev/null 2>&1 &&
395   test "X`expr 00001 : '.*\(...\)'`" = X001; then
396  as_expr=expr
397else
398  as_expr=false
399fi
400
401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402  as_basename=basename
403else
404  as_basename=false
405fi
406
407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408  as_dirname=dirname
409else
410  as_dirname=false
411fi
412
413as_me=`$as_basename -- "$0" ||
414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415	 X"$0" : 'X\(//\)$' \| \
416	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417$as_echo X/"$0" |
418    sed '/^.*\/\([^/][^/]*\)\/*$/{
419	    s//\1/
420	    q
421	  }
422	  /^X\/\(\/\/\)$/{
423	    s//\1/
424	    q
425	  }
426	  /^X\/\(\/\).*/{
427	    s//\1/
428	    q
429	  }
430	  s/.*/./; q'`
431
432# Avoid depending upon Character Ranges.
433as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436as_cr_digits='0123456789'
437as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440  as_lineno_1=$LINENO as_lineno_1a=$LINENO
441  as_lineno_2=$LINENO as_lineno_2a=$LINENO
442  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445  sed -n '
446    p
447    /[$]LINENO/=
448  ' <$as_myself |
449    sed '
450      s/[$]LINENO.*/&-/
451      t lineno
452      b
453      :lineno
454      N
455      :loop
456      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457      t loop
458      s/-\n.*//
459    ' >$as_me.lineno &&
460  chmod +x "$as_me.lineno" ||
461    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463  # Don't try to exec as it changes $[0], causing all sort of problems
464  # (the dirname of $[0] is not the place where we might find the
465  # original and so on.  Autoconf is especially sensitive to this).
466  . "./$as_me.lineno"
467  # Exit status is that of the last command.
468  exit
469}
470
471ECHO_C= ECHO_N= ECHO_T=
472case `echo -n x` in #(((((
473-n*)
474  case `echo 'xy\c'` in
475  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
476  xy)  ECHO_C='\c';;
477  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478       ECHO_T='	';;
479  esac;;
480*)
481  ECHO_N='-n';;
482esac
483
484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486  rm -f conf$$.dir/conf$$.file
487else
488  rm -f conf$$.dir
489  mkdir conf$$.dir 2>/dev/null
490fi
491if (echo >conf$$.file) 2>/dev/null; then
492  if ln -s conf$$.file conf$$ 2>/dev/null; then
493    as_ln_s='ln -s'
494    # ... but there are two gotchas:
495    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497    # In both cases, we have to default to `cp -p'.
498    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499      as_ln_s='cp -p'
500  elif ln conf$$.file conf$$ 2>/dev/null; then
501    as_ln_s=ln
502  else
503    as_ln_s='cp -p'
504  fi
505else
506  as_ln_s='cp -p'
507fi
508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509rmdir conf$$.dir 2>/dev/null
510
511if mkdir -p . 2>/dev/null; then
512  as_mkdir_p='mkdir -p "$as_dir"'
513else
514  test -d ./-p && rmdir ./-p
515  as_mkdir_p=false
516fi
517
518if test -x / >/dev/null 2>&1; then
519  as_test_x='test -x'
520else
521  if ls -dL / >/dev/null 2>&1; then
522    as_ls_L_option=L
523  else
524    as_ls_L_option=
525  fi
526  as_test_x='
527    eval sh -c '\''
528      if test -d "$1"; then
529	test -d "$1/.";
530      else
531	case $1 in #(
532	-*)set "./$1";;
533	esac;
534	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535	???[sx]*):;;*)false;;esac;fi
536    '\'' sh
537  '
538fi
539as_executable_p=$as_test_x
540
541# Sed expression to map a string onto a valid CPP name.
542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544# Sed expression to map a string onto a valid variable name.
545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550test -n "$DJDIR" || exec 7<&0 </dev/null
551exec 6>&1
552
553# Name of the host.
554# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555# so uname gets run too.
556ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558#
559# Initializations.
560#
561ac_default_prefix=/usr/local
562ac_clean_files=
563ac_config_libobj_dir=.
564LIBOBJS=
565cross_compiling=no
566subdirs=
567MFLAGS=
568MAKEFLAGS=
569
570# Identity of this package.
571PACKAGE_NAME='unbound'
572PACKAGE_TARNAME='unbound'
573PACKAGE_VERSION='1.4.18'
574PACKAGE_STRING='unbound 1.4.18'
575PACKAGE_BUGREPORT='unbound-bugs@nlnetlabs.nl'
576PACKAGE_URL=''
577
578# Factoring default headers for most tests.
579ac_includes_default="\
580#include <stdio.h>
581#ifdef HAVE_SYS_TYPES_H
582# include <sys/types.h>
583#endif
584#ifdef HAVE_SYS_STAT_H
585# include <sys/stat.h>
586#endif
587#ifdef STDC_HEADERS
588# include <stdlib.h>
589# include <stddef.h>
590#else
591# ifdef HAVE_STDLIB_H
592#  include <stdlib.h>
593# endif
594#endif
595#ifdef HAVE_STRING_H
596# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
597#  include <memory.h>
598# endif
599# include <string.h>
600#endif
601#ifdef HAVE_STRINGS_H
602# include <strings.h>
603#endif
604#ifdef HAVE_INTTYPES_H
605# include <inttypes.h>
606#endif
607#ifdef HAVE_STDINT_H
608# include <stdint.h>
609#endif
610#ifdef HAVE_UNISTD_H
611# include <unistd.h>
612#endif"
613
614ac_subst_vars='LTLIBOBJS
615ldnsdir
616ALLTARGET
617SOURCEFILE
618SOURCEDETERMINE
619UBSYMS
620EXTRALINK
621COMMON_OBJ_ALL_SYMBOLS
622LIBOBJ_WITHOUT_CTIME
623WIN_CHECKCONF_OBJ_LINK
624WIN_CONTROL_OBJ_LINK
625WIN_UBANCHOR_OBJ_LINK
626WIN_HOST_OBJ_LINK
627WIN_DAEMON_OBJ_LINK
628WIN_DAEMON_OBJ
629WIN_DAEMON_SRC
630WINAPPS
631WINDRES
632CHECKLOCK_OBJ
633staticexe
634HAVE_SSL
635CONFIG_DATE
636NETBSD_LINTFLAGS
637PYUNBOUND_UNINSTALL
638PYUNBOUND_INSTALL
639PYUNBOUND_TARGET
640PYUNBOUND_OBJ
641WITH_PYUNBOUND
642PYTHONMOD_UNINSTALL
643PYTHONMOD_INSTALL
644PYTHONMOD_HEADER
645PYTHONMOD_OBJ
646WITH_PYTHONMODULE
647swig
648SWIG_LIB
649SWIG
650PYTHON_EXTRA_LDFLAGS
651PYTHON_EXTRA_LIBS
652PYTHON_SITE_PKG
653PYTHON_LDFLAGS
654PYTHON_CPPFLAGS
655PYTHON
656PYTHON_VERSION
657PTHREAD_CFLAGS
658PTHREAD_LIBS
659PTHREAD_CC
660acx_pthread_config
661RUNTIME_PATH
662LIBOBJS
663OTOOL64
664OTOOL
665LIPO
666NMEDIT
667DSYMUTIL
668MANIFEST_TOOL
669AWK
670RANLIB
671ac_ct_AR
672DLLTOOL
673OBJDUMP
674LN_S
675NM
676ac_ct_DUMPBIN
677DUMPBIN
678LD
679FGREP
680SED
681LIBTOOL
682AR
683libtool
684STRIP
685doxygen
686YFLAGS
687YACC
688LEXLIB
689LEX_OUTPUT_ROOT
690LEX
691debug_enabled
692DEPFLAG
693UNBOUND_USERNAME
694UNBOUND_ROOTCERT_FILE
695UNBOUND_ROOTKEY_FILE
696UNBOUND_PIDFILE
697UNBOUND_SHARE_DIR
698UNBOUND_CHROOT_DIR
699UNBOUND_RUN_DIR
700ub_conf_file
701EGREP
702GREP
703CPP
704OBJEXT
705EXEEXT
706ac_ct_CC
707CPPFLAGS
708LDFLAGS
709CFLAGS
710CC
711target_os
712target_vendor
713target_cpu
714target
715host_os
716host_vendor
717host_cpu
718host
719build_os
720build_vendor
721build_cpu
722build
723LIBUNBOUND_AGE
724LIBUNBOUND_REVISION
725LIBUNBOUND_CURRENT
726target_alias
727host_alias
728build_alias
729LIBS
730ECHO_T
731ECHO_N
732ECHO_C
733DEFS
734mandir
735localedir
736libdir
737psdir
738pdfdir
739dvidir
740htmldir
741infodir
742docdir
743oldincludedir
744includedir
745localstatedir
746sharedstatedir
747sysconfdir
748datadir
749datarootdir
750libexecdir
751sbindir
752bindir
753program_transform_name
754prefix
755exec_prefix
756PACKAGE_URL
757PACKAGE_BUGREPORT
758PACKAGE_STRING
759PACKAGE_VERSION
760PACKAGE_TARNAME
761PACKAGE_NAME
762PATH_SEPARATOR
763SHELL'
764ac_subst_files=''
765ac_user_opts='
766enable_option_checking
767with_conf_file
768with_run_dir
769with_chroot_dir
770with_share_dir
771with_pidfile
772with_rootkey_file
773with_rootcert_file
774with_username
775enable_checking
776enable_debug
777enable_shared
778enable_static
779with_pic
780enable_fast_install
781with_gnu_ld
782with_sysroot
783enable_libtool_lock
784enable_rpath
785enable_largefile
786enable_alloc_checks
787enable_alloc_lite
788enable_alloc_nonregional
789with_pthreads
790with_solaris_threads
791with_pyunbound
792with_pythonmodule
793with_nss
794with_ssl
795enable_sha2
796enable_gost
797enable_ecdsa
798with_libevent
799with_libexpat
800enable_static_exe
801enable_lock_checks
802enable_allsymbols
803with_libunbound_only
804with_ldns
805'
806      ac_precious_vars='build_alias
807host_alias
808target_alias
809CC
810CFLAGS
811LDFLAGS
812LIBS
813CPPFLAGS
814CPP
815YACC
816YFLAGS
817PYTHON_VERSION'
818
819
820# Initialize some variables set by options.
821ac_init_help=
822ac_init_version=false
823ac_unrecognized_opts=
824ac_unrecognized_sep=
825# The variables have the same names as the options, with
826# dashes changed to underlines.
827cache_file=/dev/null
828exec_prefix=NONE
829no_create=
830no_recursion=
831prefix=NONE
832program_prefix=NONE
833program_suffix=NONE
834program_transform_name=s,x,x,
835silent=
836site=
837srcdir=
838verbose=
839x_includes=NONE
840x_libraries=NONE
841
842# Installation directory options.
843# These are left unexpanded so users can "make install exec_prefix=/foo"
844# and all the variables that are supposed to be based on exec_prefix
845# by default will actually change.
846# Use braces instead of parens because sh, perl, etc. also accept them.
847# (The list follows the same order as the GNU Coding Standards.)
848bindir='${exec_prefix}/bin'
849sbindir='${exec_prefix}/sbin'
850libexecdir='${exec_prefix}/libexec'
851datarootdir='${prefix}/share'
852datadir='${datarootdir}'
853sysconfdir='${prefix}/etc'
854sharedstatedir='${prefix}/com'
855localstatedir='${prefix}/var'
856includedir='${prefix}/include'
857oldincludedir='/usr/include'
858docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859infodir='${datarootdir}/info'
860htmldir='${docdir}'
861dvidir='${docdir}'
862pdfdir='${docdir}'
863psdir='${docdir}'
864libdir='${exec_prefix}/lib'
865localedir='${datarootdir}/locale'
866mandir='${datarootdir}/man'
867
868ac_prev=
869ac_dashdash=
870for ac_option
871do
872  # If the previous option needs an argument, assign it.
873  if test -n "$ac_prev"; then
874    eval $ac_prev=\$ac_option
875    ac_prev=
876    continue
877  fi
878
879  case $ac_option in
880  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881  *=)   ac_optarg= ;;
882  *)    ac_optarg=yes ;;
883  esac
884
885  # Accept the important Cygnus configure options, so we can diagnose typos.
886
887  case $ac_dashdash$ac_option in
888  --)
889    ac_dashdash=yes ;;
890
891  -bindir | --bindir | --bindi | --bind | --bin | --bi)
892    ac_prev=bindir ;;
893  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894    bindir=$ac_optarg ;;
895
896  -build | --build | --buil | --bui | --bu)
897    ac_prev=build_alias ;;
898  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899    build_alias=$ac_optarg ;;
900
901  -cache-file | --cache-file | --cache-fil | --cache-fi \
902  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903    ac_prev=cache_file ;;
904  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906    cache_file=$ac_optarg ;;
907
908  --config-cache | -C)
909    cache_file=config.cache ;;
910
911  -datadir | --datadir | --datadi | --datad)
912    ac_prev=datadir ;;
913  -datadir=* | --datadir=* | --datadi=* | --datad=*)
914    datadir=$ac_optarg ;;
915
916  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917  | --dataroo | --dataro | --datar)
918    ac_prev=datarootdir ;;
919  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921    datarootdir=$ac_optarg ;;
922
923  -disable-* | --disable-*)
924    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925    # Reject names that are not valid shell variable names.
926    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927      as_fn_error $? "invalid feature name: $ac_useropt"
928    ac_useropt_orig=$ac_useropt
929    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930    case $ac_user_opts in
931      *"
932"enable_$ac_useropt"
933"*) ;;
934      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
935	 ac_unrecognized_sep=', ';;
936    esac
937    eval enable_$ac_useropt=no ;;
938
939  -docdir | --docdir | --docdi | --doc | --do)
940    ac_prev=docdir ;;
941  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
942    docdir=$ac_optarg ;;
943
944  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
945    ac_prev=dvidir ;;
946  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
947    dvidir=$ac_optarg ;;
948
949  -enable-* | --enable-*)
950    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951    # Reject names that are not valid shell variable names.
952    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953      as_fn_error $? "invalid feature name: $ac_useropt"
954    ac_useropt_orig=$ac_useropt
955    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956    case $ac_user_opts in
957      *"
958"enable_$ac_useropt"
959"*) ;;
960      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
961	 ac_unrecognized_sep=', ';;
962    esac
963    eval enable_$ac_useropt=\$ac_optarg ;;
964
965  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
966  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
967  | --exec | --exe | --ex)
968    ac_prev=exec_prefix ;;
969  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
970  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
971  | --exec=* | --exe=* | --ex=*)
972    exec_prefix=$ac_optarg ;;
973
974  -gas | --gas | --ga | --g)
975    # Obsolete; use --with-gas.
976    with_gas=yes ;;
977
978  -help | --help | --hel | --he | -h)
979    ac_init_help=long ;;
980  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
981    ac_init_help=recursive ;;
982  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
983    ac_init_help=short ;;
984
985  -host | --host | --hos | --ho)
986    ac_prev=host_alias ;;
987  -host=* | --host=* | --hos=* | --ho=*)
988    host_alias=$ac_optarg ;;
989
990  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991    ac_prev=htmldir ;;
992  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
993  | --ht=*)
994    htmldir=$ac_optarg ;;
995
996  -includedir | --includedir | --includedi | --included | --include \
997  | --includ | --inclu | --incl | --inc)
998    ac_prev=includedir ;;
999  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1000  | --includ=* | --inclu=* | --incl=* | --inc=*)
1001    includedir=$ac_optarg ;;
1002
1003  -infodir | --infodir | --infodi | --infod | --info | --inf)
1004    ac_prev=infodir ;;
1005  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1006    infodir=$ac_optarg ;;
1007
1008  -libdir | --libdir | --libdi | --libd)
1009    ac_prev=libdir ;;
1010  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1011    libdir=$ac_optarg ;;
1012
1013  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1014  | --libexe | --libex | --libe)
1015    ac_prev=libexecdir ;;
1016  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1017  | --libexe=* | --libex=* | --libe=*)
1018    libexecdir=$ac_optarg ;;
1019
1020  -localedir | --localedir | --localedi | --localed | --locale)
1021    ac_prev=localedir ;;
1022  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1023    localedir=$ac_optarg ;;
1024
1025  -localstatedir | --localstatedir | --localstatedi | --localstated \
1026  | --localstate | --localstat | --localsta | --localst | --locals)
1027    ac_prev=localstatedir ;;
1028  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1029  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1030    localstatedir=$ac_optarg ;;
1031
1032  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033    ac_prev=mandir ;;
1034  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1035    mandir=$ac_optarg ;;
1036
1037  -nfp | --nfp | --nf)
1038    # Obsolete; use --without-fp.
1039    with_fp=no ;;
1040
1041  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1042  | --no-cr | --no-c | -n)
1043    no_create=yes ;;
1044
1045  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1046  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047    no_recursion=yes ;;
1048
1049  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1050  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1051  | --oldin | --oldi | --old | --ol | --o)
1052    ac_prev=oldincludedir ;;
1053  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1054  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1055  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1056    oldincludedir=$ac_optarg ;;
1057
1058  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059    ac_prev=prefix ;;
1060  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1061    prefix=$ac_optarg ;;
1062
1063  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1064  | --program-pre | --program-pr | --program-p)
1065    ac_prev=program_prefix ;;
1066  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1067  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1068    program_prefix=$ac_optarg ;;
1069
1070  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1071  | --program-suf | --program-su | --program-s)
1072    ac_prev=program_suffix ;;
1073  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1074  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1075    program_suffix=$ac_optarg ;;
1076
1077  -program-transform-name | --program-transform-name \
1078  | --program-transform-nam | --program-transform-na \
1079  | --program-transform-n | --program-transform- \
1080  | --program-transform | --program-transfor \
1081  | --program-transfo | --program-transf \
1082  | --program-trans | --program-tran \
1083  | --progr-tra | --program-tr | --program-t)
1084    ac_prev=program_transform_name ;;
1085  -program-transform-name=* | --program-transform-name=* \
1086  | --program-transform-nam=* | --program-transform-na=* \
1087  | --program-transform-n=* | --program-transform-=* \
1088  | --program-transform=* | --program-transfor=* \
1089  | --program-transfo=* | --program-transf=* \
1090  | --program-trans=* | --program-tran=* \
1091  | --progr-tra=* | --program-tr=* | --program-t=*)
1092    program_transform_name=$ac_optarg ;;
1093
1094  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095    ac_prev=pdfdir ;;
1096  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1097    pdfdir=$ac_optarg ;;
1098
1099  -psdir | --psdir | --psdi | --psd | --ps)
1100    ac_prev=psdir ;;
1101  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1102    psdir=$ac_optarg ;;
1103
1104  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105  | -silent | --silent | --silen | --sile | --sil)
1106    silent=yes ;;
1107
1108  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1109    ac_prev=sbindir ;;
1110  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1111  | --sbi=* | --sb=*)
1112    sbindir=$ac_optarg ;;
1113
1114  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1115  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1116  | --sharedst | --shareds | --shared | --share | --shar \
1117  | --sha | --sh)
1118    ac_prev=sharedstatedir ;;
1119  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1120  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1121  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1122  | --sha=* | --sh=*)
1123    sharedstatedir=$ac_optarg ;;
1124
1125  -site | --site | --sit)
1126    ac_prev=site ;;
1127  -site=* | --site=* | --sit=*)
1128    site=$ac_optarg ;;
1129
1130  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1131    ac_prev=srcdir ;;
1132  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1133    srcdir=$ac_optarg ;;
1134
1135  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1136  | --syscon | --sysco | --sysc | --sys | --sy)
1137    ac_prev=sysconfdir ;;
1138  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1139  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1140    sysconfdir=$ac_optarg ;;
1141
1142  -target | --target | --targe | --targ | --tar | --ta | --t)
1143    ac_prev=target_alias ;;
1144  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1145    target_alias=$ac_optarg ;;
1146
1147  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1148    verbose=yes ;;
1149
1150  -version | --version | --versio | --versi | --vers | -V)
1151    ac_init_version=: ;;
1152
1153  -with-* | --with-*)
1154    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1155    # Reject names that are not valid shell variable names.
1156    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157      as_fn_error $? "invalid package name: $ac_useropt"
1158    ac_useropt_orig=$ac_useropt
1159    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160    case $ac_user_opts in
1161      *"
1162"with_$ac_useropt"
1163"*) ;;
1164      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1165	 ac_unrecognized_sep=', ';;
1166    esac
1167    eval with_$ac_useropt=\$ac_optarg ;;
1168
1169  -without-* | --without-*)
1170    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1171    # Reject names that are not valid shell variable names.
1172    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173      as_fn_error $? "invalid package name: $ac_useropt"
1174    ac_useropt_orig=$ac_useropt
1175    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176    case $ac_user_opts in
1177      *"
1178"with_$ac_useropt"
1179"*) ;;
1180      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1181	 ac_unrecognized_sep=', ';;
1182    esac
1183    eval with_$ac_useropt=no ;;
1184
1185  --x)
1186    # Obsolete; use --with-x.
1187    with_x=yes ;;
1188
1189  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1190  | --x-incl | --x-inc | --x-in | --x-i)
1191    ac_prev=x_includes ;;
1192  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1193  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1194    x_includes=$ac_optarg ;;
1195
1196  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1197  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1198    ac_prev=x_libraries ;;
1199  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1200  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1201    x_libraries=$ac_optarg ;;
1202
1203  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1204Try \`$0 --help' for more information"
1205    ;;
1206
1207  *=*)
1208    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1209    # Reject names that are not valid shell variable names.
1210    case $ac_envvar in #(
1211      '' | [0-9]* | *[!_$as_cr_alnum]* )
1212      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1213    esac
1214    eval $ac_envvar=\$ac_optarg
1215    export $ac_envvar ;;
1216
1217  *)
1218    # FIXME: should be removed in autoconf 3.0.
1219    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1220    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1221      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1222    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1223    ;;
1224
1225  esac
1226done
1227
1228if test -n "$ac_prev"; then
1229  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1230  as_fn_error $? "missing argument to $ac_option"
1231fi
1232
1233if test -n "$ac_unrecognized_opts"; then
1234  case $enable_option_checking in
1235    no) ;;
1236    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1237    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1238  esac
1239fi
1240
1241# Check all directory arguments for consistency.
1242for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1243		datadir sysconfdir sharedstatedir localstatedir includedir \
1244		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1245		libdir localedir mandir
1246do
1247  eval ac_val=\$$ac_var
1248  # Remove trailing slashes.
1249  case $ac_val in
1250    */ )
1251      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1252      eval $ac_var=\$ac_val;;
1253  esac
1254  # Be sure to have absolute directory names.
1255  case $ac_val in
1256    [\\/$]* | ?:[\\/]* )  continue;;
1257    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1258  esac
1259  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1260done
1261
1262# There might be people who depend on the old broken behavior: `$host'
1263# used to hold the argument of --host etc.
1264# FIXME: To remove some day.
1265build=$build_alias
1266host=$host_alias
1267target=$target_alias
1268
1269# FIXME: To remove some day.
1270if test "x$host_alias" != x; then
1271  if test "x$build_alias" = x; then
1272    cross_compiling=maybe
1273    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1274    If a cross compiler is detected then cross compile mode will be used" >&2
1275  elif test "x$build_alias" != "x$host_alias"; then
1276    cross_compiling=yes
1277  fi
1278fi
1279
1280ac_tool_prefix=
1281test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282
1283test "$silent" = yes && exec 6>/dev/null
1284
1285
1286ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287ac_ls_di=`ls -di .` &&
1288ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289  as_fn_error $? "working directory cannot be determined"
1290test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291  as_fn_error $? "pwd does not report name of working directory"
1292
1293
1294# Find the source files, if location was not specified.
1295if test -z "$srcdir"; then
1296  ac_srcdir_defaulted=yes
1297  # Try the directory containing this script, then the parent directory.
1298  ac_confdir=`$as_dirname -- "$as_myself" ||
1299$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300	 X"$as_myself" : 'X\(//\)[^/]' \| \
1301	 X"$as_myself" : 'X\(//\)$' \| \
1302	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303$as_echo X"$as_myself" |
1304    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305	    s//\1/
1306	    q
1307	  }
1308	  /^X\(\/\/\)[^/].*/{
1309	    s//\1/
1310	    q
1311	  }
1312	  /^X\(\/\/\)$/{
1313	    s//\1/
1314	    q
1315	  }
1316	  /^X\(\/\).*/{
1317	    s//\1/
1318	    q
1319	  }
1320	  s/.*/./; q'`
1321  srcdir=$ac_confdir
1322  if test ! -r "$srcdir/$ac_unique_file"; then
1323    srcdir=..
1324  fi
1325else
1326  ac_srcdir_defaulted=no
1327fi
1328if test ! -r "$srcdir/$ac_unique_file"; then
1329  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1331fi
1332ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1333ac_abs_confdir=`(
1334	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1335	pwd)`
1336# When building in place, set srcdir=.
1337if test "$ac_abs_confdir" = "$ac_pwd"; then
1338  srcdir=.
1339fi
1340# Remove unnecessary trailing slashes from srcdir.
1341# Double slashes in file names in object file debugging info
1342# mess up M-x gdb in Emacs.
1343case $srcdir in
1344*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345esac
1346for ac_var in $ac_precious_vars; do
1347  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348  eval ac_env_${ac_var}_value=\$${ac_var}
1349  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351done
1352
1353#
1354# Report the --help message.
1355#
1356if test "$ac_init_help" = "long"; then
1357  # Omit some internal or obsolete options to make the list less imposing.
1358  # This message is too long to be a string in the A/UX 3.1 sh.
1359  cat <<_ACEOF
1360\`configure' configures unbound 1.4.18 to adapt to many kinds of systems.
1361
1362Usage: $0 [OPTION]... [VAR=VALUE]...
1363
1364To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365VAR=VALUE.  See below for descriptions of some of the useful variables.
1366
1367Defaults for the options are specified in brackets.
1368
1369Configuration:
1370  -h, --help              display this help and exit
1371      --help=short        display options specific to this package
1372      --help=recursive    display the short help of all the included packages
1373  -V, --version           display version information and exit
1374  -q, --quiet, --silent   do not print \`checking ...' messages
1375      --cache-file=FILE   cache test results in FILE [disabled]
1376  -C, --config-cache      alias for \`--cache-file=config.cache'
1377  -n, --no-create         do not create output files
1378      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1379
1380Installation directories:
1381  --prefix=PREFIX         install architecture-independent files in PREFIX
1382                          [$ac_default_prefix]
1383  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1384                          [PREFIX]
1385
1386By default, \`make install' will install all the files in
1387\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1388an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389for instance \`--prefix=\$HOME'.
1390
1391For better control, use the options below.
1392
1393Fine tuning of the installation directories:
1394  --bindir=DIR            user executables [EPREFIX/bin]
1395  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1396  --libexecdir=DIR        program executables [EPREFIX/libexec]
1397  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1398  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1399  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1400  --libdir=DIR            object code libraries [EPREFIX/lib]
1401  --includedir=DIR        C header files [PREFIX/include]
1402  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1403  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1404  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1405  --infodir=DIR           info documentation [DATAROOTDIR/info]
1406  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1407  --mandir=DIR            man documentation [DATAROOTDIR/man]
1408  --docdir=DIR            documentation root [DATAROOTDIR/doc/unbound]
1409  --htmldir=DIR           html documentation [DOCDIR]
1410  --dvidir=DIR            dvi documentation [DOCDIR]
1411  --pdfdir=DIR            pdf documentation [DOCDIR]
1412  --psdir=DIR             ps documentation [DOCDIR]
1413_ACEOF
1414
1415  cat <<\_ACEOF
1416
1417System types:
1418  --build=BUILD     configure for building on BUILD [guessed]
1419  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1420  --target=TARGET   configure for building compilers for TARGET [HOST]
1421_ACEOF
1422fi
1423
1424if test -n "$ac_init_help"; then
1425  case $ac_init_help in
1426     short | recursive ) echo "Configuration of unbound 1.4.18:";;
1427   esac
1428  cat <<\_ACEOF
1429
1430Optional Features:
1431  --disable-option-checking  ignore unrecognized --enable/--with options
1432  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1433  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1434  --enable-checking       Enable warnings, asserts, makefile-dependencies
1435  --enable-debug          same as enable-checking
1436  --enable-shared[=PKGS]  build shared libraries [default=yes]
1437  --enable-static[=PKGS]  build static libraries [default=yes]
1438  --enable-fast-install[=PKGS]
1439                          optimize for fast installation [default=yes]
1440  --disable-libtool-lock  avoid locking (might break parallel builds)
1441  --disable-rpath         disable hardcoded rpath (default=enabled)
1442  --disable-largefile     omit support for large files
1443  --enable-alloc-checks   enable to memory allocation statistics, for debug
1444                          purposes
1445  --enable-alloc-lite     enable for lightweight alloc assertions, for debug
1446                          purposes
1447  --enable-alloc-nonregional
1448                          enable nonregional allocs, slow but exposes regional
1449                          allocations to other memory purifiers, for debug
1450                          purposes
1451  --disable-sha2          Disable SHA256 and SHA512 RRSIG support
1452  --disable-gost          Disable GOST support
1453  --disable-ecdsa         Disable ECDSA support
1454  --enable-static-exe     enable to compile executables statically against
1455                          event, ldns libs, for debug purposes
1456  --enable-lock-checks    enable to check lock and unlock calls, for debug
1457                          purposes
1458  --enable-allsymbols     export all symbols from libunbound and link binaries
1459                          to it, smaller install size but libunbound export
1460                          table is polluted by internal symbols
1461
1462Optional Packages:
1463  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1464  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1465  --with-conf-file=path   Pathname to the Unbound configuration file
1466  --with-run-dir=path     set default directory to chdir to (by default dir
1467                          part of cfg file)
1468  --with-chroot-dir=path  set default directory to chroot to (by default same
1469                          as run-dir)
1470  --with-share-dir=path   set default directory with shared data (by default
1471                          same as share/unbound)
1472  --with-pidfile=filename set default pathname to unbound pidfile (default
1473                          run-dir/unbound.pid)
1474  --with-rootkey-file=filename
1475                          set default pathname to root key file (default
1476                          run-dir/root.key). This file is read and written.
1477  --with-rootcert-file=filename
1478                          set default pathname to root update certificate file
1479                          (default run-dir/icannbundle.pem). This file need
1480                          not exist if you are content with the builtin.
1481  --with-username=user    set default user that unbound changes to (default
1482                          user is unbound)
1483  --with-pic              try to use only PIC/non-PIC objects [default=use
1484                          both]
1485  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1486  --with-sysroot=DIR Search for dependent libraries within DIR
1487                        (or the compiler's sysroot if not specified).
1488  --with-pthreads         use pthreads library, or --without-pthreads to
1489                          disable threading support.
1490  --with-solaris-threads  use solaris native thread library.
1491  --with-pyunbound        build PyUnbound, or --without-pyunbound to skip it.
1492                          (default=no)
1493  --with-pythonmodule     build Python module, or --without-pythonmodule to
1494                          disable script engine. (default=no)
1495  --with-nss=path         use libnss instead of openssl, installed at path.
1496  --with-ssl=pathname     enable SSL (will check /usr/local/ssl /usr/lib/ssl
1497                          /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1498                          /usr)
1499  --with-libevent=pathname
1500                          use libevent (will check /usr/local /opt/local
1501                          /usr/lib /usr/pkg /usr/sfw /usr or you can specify
1502                          an explicit path). Slower, but allows use of large
1503                          outgoing port ranges.
1504  --with-libexpat=path    specify explicit path for libexpat.
1505  --with-libunbound-only  do not build daemon and tool programs
1506  --with-ldns=PATH        specify prefix of path of ldns library to use
1507
1508Some influential environment variables:
1509  CC          C compiler command
1510  CFLAGS      C compiler flags
1511  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1512              nonstandard directory <lib dir>
1513  LIBS        libraries to pass to the linker, e.g. -l<library>
1514  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1515              you have headers in a nonstandard directory <include dir>
1516  CPP         C preprocessor
1517  YACC        The `Yet Another Compiler Compiler' implementation to use.
1518              Defaults to the first program found out of: `bison -y', `byacc',
1519              `yacc'.
1520  YFLAGS      The list of arguments that will be passed by default to $YACC.
1521              This script will default YFLAGS to the empty string to avoid a
1522              default value of `-d' given by some make applications.
1523  PYTHON_VERSION
1524              The installed Python version to use, for example '2.3'. This
1525              string will be appended to the Python interpreter canonical
1526              name.
1527
1528Use these variables to override the choices made by `configure' or to help
1529it to find libraries and programs with nonstandard names/locations.
1530
1531Report bugs to <unbound-bugs@nlnetlabs.nl>.
1532_ACEOF
1533ac_status=$?
1534fi
1535
1536if test "$ac_init_help" = "recursive"; then
1537  # If there are subdirs, report their specific --help.
1538  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1539    test -d "$ac_dir" ||
1540      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1541      continue
1542    ac_builddir=.
1543
1544case "$ac_dir" in
1545.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1546*)
1547  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1548  # A ".." for each directory in $ac_dir_suffix.
1549  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1550  case $ac_top_builddir_sub in
1551  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1553  esac ;;
1554esac
1555ac_abs_top_builddir=$ac_pwd
1556ac_abs_builddir=$ac_pwd$ac_dir_suffix
1557# for backward compatibility:
1558ac_top_builddir=$ac_top_build_prefix
1559
1560case $srcdir in
1561  .)  # We are building in place.
1562    ac_srcdir=.
1563    ac_top_srcdir=$ac_top_builddir_sub
1564    ac_abs_top_srcdir=$ac_pwd ;;
1565  [\\/]* | ?:[\\/]* )  # Absolute name.
1566    ac_srcdir=$srcdir$ac_dir_suffix;
1567    ac_top_srcdir=$srcdir
1568    ac_abs_top_srcdir=$srcdir ;;
1569  *) # Relative name.
1570    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1571    ac_top_srcdir=$ac_top_build_prefix$srcdir
1572    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1573esac
1574ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1575
1576    cd "$ac_dir" || { ac_status=$?; continue; }
1577    # Check for guested configure.
1578    if test -f "$ac_srcdir/configure.gnu"; then
1579      echo &&
1580      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1581    elif test -f "$ac_srcdir/configure"; then
1582      echo &&
1583      $SHELL "$ac_srcdir/configure" --help=recursive
1584    else
1585      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1586    fi || ac_status=$?
1587    cd "$ac_pwd" || { ac_status=$?; break; }
1588  done
1589fi
1590
1591test -n "$ac_init_help" && exit $ac_status
1592if $ac_init_version; then
1593  cat <<\_ACEOF
1594unbound configure 1.4.18
1595generated by GNU Autoconf 2.68
1596
1597Copyright (C) 2010 Free Software Foundation, Inc.
1598This configure script is free software; the Free Software Foundation
1599gives unlimited permission to copy, distribute and modify it.
1600_ACEOF
1601  exit
1602fi
1603
1604## ------------------------ ##
1605## Autoconf initialization. ##
1606## ------------------------ ##
1607
1608# ac_fn_c_try_compile LINENO
1609# --------------------------
1610# Try to compile conftest.$ac_ext, and return whether this succeeded.
1611ac_fn_c_try_compile ()
1612{
1613  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614  rm -f conftest.$ac_objext
1615  if { { ac_try="$ac_compile"
1616case "(($ac_try" in
1617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618  *) ac_try_echo=$ac_try;;
1619esac
1620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621$as_echo "$ac_try_echo"; } >&5
1622  (eval "$ac_compile") 2>conftest.err
1623  ac_status=$?
1624  if test -s conftest.err; then
1625    grep -v '^ *+' conftest.err >conftest.er1
1626    cat conftest.er1 >&5
1627    mv -f conftest.er1 conftest.err
1628  fi
1629  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630  test $ac_status = 0; } && {
1631	 test -z "$ac_c_werror_flag" ||
1632	 test ! -s conftest.err
1633       } && test -s conftest.$ac_objext; then :
1634  ac_retval=0
1635else
1636  $as_echo "$as_me: failed program was:" >&5
1637sed 's/^/| /' conftest.$ac_ext >&5
1638
1639	ac_retval=1
1640fi
1641  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1642  as_fn_set_status $ac_retval
1643
1644} # ac_fn_c_try_compile
1645
1646# ac_fn_c_try_cpp LINENO
1647# ----------------------
1648# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1649ac_fn_c_try_cpp ()
1650{
1651  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652  if { { ac_try="$ac_cpp conftest.$ac_ext"
1653case "(($ac_try" in
1654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655  *) ac_try_echo=$ac_try;;
1656esac
1657eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658$as_echo "$ac_try_echo"; } >&5
1659  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1660  ac_status=$?
1661  if test -s conftest.err; then
1662    grep -v '^ *+' conftest.err >conftest.er1
1663    cat conftest.er1 >&5
1664    mv -f conftest.er1 conftest.err
1665  fi
1666  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667  test $ac_status = 0; } > conftest.i && {
1668	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1669	 test ! -s conftest.err
1670       }; then :
1671  ac_retval=0
1672else
1673  $as_echo "$as_me: failed program was:" >&5
1674sed 's/^/| /' conftest.$ac_ext >&5
1675
1676    ac_retval=1
1677fi
1678  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679  as_fn_set_status $ac_retval
1680
1681} # ac_fn_c_try_cpp
1682
1683# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1684# -------------------------------------------------------
1685# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1686# the include files in INCLUDES and setting the cache variable VAR
1687# accordingly.
1688ac_fn_c_check_header_mongrel ()
1689{
1690  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691  if eval \${$3+:} false; then :
1692  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1693$as_echo_n "checking for $2... " >&6; }
1694if eval \${$3+:} false; then :
1695  $as_echo_n "(cached) " >&6
1696fi
1697eval ac_res=\$$3
1698	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1699$as_echo "$ac_res" >&6; }
1700else
1701  # Is the header compilable?
1702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1703$as_echo_n "checking $2 usability... " >&6; }
1704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1705/* end confdefs.h.  */
1706$4
1707#include <$2>
1708_ACEOF
1709if ac_fn_c_try_compile "$LINENO"; then :
1710  ac_header_compiler=yes
1711else
1712  ac_header_compiler=no
1713fi
1714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1716$as_echo "$ac_header_compiler" >&6; }
1717
1718# Is the header present?
1719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1720$as_echo_n "checking $2 presence... " >&6; }
1721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1722/* end confdefs.h.  */
1723#include <$2>
1724_ACEOF
1725if ac_fn_c_try_cpp "$LINENO"; then :
1726  ac_header_preproc=yes
1727else
1728  ac_header_preproc=no
1729fi
1730rm -f conftest.err conftest.i conftest.$ac_ext
1731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1732$as_echo "$ac_header_preproc" >&6; }
1733
1734# So?  What about this header?
1735case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1736  yes:no: )
1737    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1738$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1739    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1740$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1741    ;;
1742  no:yes:* )
1743    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1744$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1745    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1746$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1747    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1748$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1749    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1750$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1751    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1752$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1753( $as_echo "## ---------------------------------------- ##
1754## Report this to unbound-bugs@nlnetlabs.nl ##
1755## ---------------------------------------- ##"
1756     ) | sed "s/^/$as_me: WARNING:     /" >&2
1757    ;;
1758esac
1759  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760$as_echo_n "checking for $2... " >&6; }
1761if eval \${$3+:} false; then :
1762  $as_echo_n "(cached) " >&6
1763else
1764  eval "$3=\$ac_header_compiler"
1765fi
1766eval ac_res=\$$3
1767	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768$as_echo "$ac_res" >&6; }
1769fi
1770  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771
1772} # ac_fn_c_check_header_mongrel
1773
1774# ac_fn_c_try_run LINENO
1775# ----------------------
1776# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1777# that executables *can* be run.
1778ac_fn_c_try_run ()
1779{
1780  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781  if { { ac_try="$ac_link"
1782case "(($ac_try" in
1783  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784  *) ac_try_echo=$ac_try;;
1785esac
1786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787$as_echo "$ac_try_echo"; } >&5
1788  (eval "$ac_link") 2>&5
1789  ac_status=$?
1790  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1792  { { case "(($ac_try" in
1793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794  *) ac_try_echo=$ac_try;;
1795esac
1796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797$as_echo "$ac_try_echo"; } >&5
1798  (eval "$ac_try") 2>&5
1799  ac_status=$?
1800  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801  test $ac_status = 0; }; }; then :
1802  ac_retval=0
1803else
1804  $as_echo "$as_me: program exited with status $ac_status" >&5
1805       $as_echo "$as_me: failed program was:" >&5
1806sed 's/^/| /' conftest.$ac_ext >&5
1807
1808       ac_retval=$ac_status
1809fi
1810  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1811  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812  as_fn_set_status $ac_retval
1813
1814} # ac_fn_c_try_run
1815
1816# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1817# -------------------------------------------------------
1818# Tests whether HEADER exists and can be compiled using the include files in
1819# INCLUDES, setting the cache variable VAR accordingly.
1820ac_fn_c_check_header_compile ()
1821{
1822  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824$as_echo_n "checking for $2... " >&6; }
1825if eval \${$3+:} false; then :
1826  $as_echo_n "(cached) " >&6
1827else
1828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829/* end confdefs.h.  */
1830$4
1831#include <$2>
1832_ACEOF
1833if ac_fn_c_try_compile "$LINENO"; then :
1834  eval "$3=yes"
1835else
1836  eval "$3=no"
1837fi
1838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1839fi
1840eval ac_res=\$$3
1841	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842$as_echo "$ac_res" >&6; }
1843  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844
1845} # ac_fn_c_check_header_compile
1846
1847# ac_fn_c_try_link LINENO
1848# -----------------------
1849# Try to link conftest.$ac_ext, and return whether this succeeded.
1850ac_fn_c_try_link ()
1851{
1852  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853  rm -f conftest.$ac_objext conftest$ac_exeext
1854  if { { ac_try="$ac_link"
1855case "(($ac_try" in
1856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857  *) ac_try_echo=$ac_try;;
1858esac
1859eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860$as_echo "$ac_try_echo"; } >&5
1861  (eval "$ac_link") 2>conftest.err
1862  ac_status=$?
1863  if test -s conftest.err; then
1864    grep -v '^ *+' conftest.err >conftest.er1
1865    cat conftest.er1 >&5
1866    mv -f conftest.er1 conftest.err
1867  fi
1868  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869  test $ac_status = 0; } && {
1870	 test -z "$ac_c_werror_flag" ||
1871	 test ! -s conftest.err
1872       } && test -s conftest$ac_exeext && {
1873	 test "$cross_compiling" = yes ||
1874	 $as_test_x conftest$ac_exeext
1875       }; then :
1876  ac_retval=0
1877else
1878  $as_echo "$as_me: failed program was:" >&5
1879sed 's/^/| /' conftest.$ac_ext >&5
1880
1881	ac_retval=1
1882fi
1883  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1884  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1885  # interfere with the next link command; also delete a directory that is
1886  # left behind by Apple's compiler.  We do this before executing the actions.
1887  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1888  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889  as_fn_set_status $ac_retval
1890
1891} # ac_fn_c_try_link
1892
1893# ac_fn_c_check_func LINENO FUNC VAR
1894# ----------------------------------
1895# Tests whether FUNC exists, setting the cache variable VAR accordingly
1896ac_fn_c_check_func ()
1897{
1898  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900$as_echo_n "checking for $2... " >&6; }
1901if eval \${$3+:} false; then :
1902  $as_echo_n "(cached) " >&6
1903else
1904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905/* end confdefs.h.  */
1906/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1907   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1908#define $2 innocuous_$2
1909
1910/* System header to define __stub macros and hopefully few prototypes,
1911    which can conflict with char $2 (); below.
1912    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1913    <limits.h> exists even on freestanding compilers.  */
1914
1915#ifdef __STDC__
1916# include <limits.h>
1917#else
1918# include <assert.h>
1919#endif
1920
1921#undef $2
1922
1923/* Override any GCC internal prototype to avoid an error.
1924   Use char because int might match the return type of a GCC
1925   builtin and then its argument prototype would still apply.  */
1926#ifdef __cplusplus
1927extern "C"
1928#endif
1929char $2 ();
1930/* The GNU C library defines this for functions which it implements
1931    to always fail with ENOSYS.  Some functions are actually named
1932    something starting with __ and the normal name is an alias.  */
1933#if defined __stub_$2 || defined __stub___$2
1934choke me
1935#endif
1936
1937int
1938main ()
1939{
1940return $2 ();
1941  ;
1942  return 0;
1943}
1944_ACEOF
1945if ac_fn_c_try_link "$LINENO"; then :
1946  eval "$3=yes"
1947else
1948  eval "$3=no"
1949fi
1950rm -f core conftest.err conftest.$ac_objext \
1951    conftest$ac_exeext conftest.$ac_ext
1952fi
1953eval ac_res=\$$3
1954	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955$as_echo "$ac_res" >&6; }
1956  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1957
1958} # ac_fn_c_check_func
1959
1960# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1961# -------------------------------------------
1962# Tests whether TYPE exists after having included INCLUDES, setting cache
1963# variable VAR accordingly.
1964ac_fn_c_check_type ()
1965{
1966  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1968$as_echo_n "checking for $2... " >&6; }
1969if eval \${$3+:} false; then :
1970  $as_echo_n "(cached) " >&6
1971else
1972  eval "$3=no"
1973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974/* end confdefs.h.  */
1975$4
1976int
1977main ()
1978{
1979if (sizeof ($2))
1980	 return 0;
1981  ;
1982  return 0;
1983}
1984_ACEOF
1985if ac_fn_c_try_compile "$LINENO"; then :
1986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987/* end confdefs.h.  */
1988$4
1989int
1990main ()
1991{
1992if (sizeof (($2)))
1993	    return 0;
1994  ;
1995  return 0;
1996}
1997_ACEOF
1998if ac_fn_c_try_compile "$LINENO"; then :
1999
2000else
2001  eval "$3=yes"
2002fi
2003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004fi
2005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006fi
2007eval ac_res=\$$3
2008	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009$as_echo "$ac_res" >&6; }
2010  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2011
2012} # ac_fn_c_check_type
2013
2014# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2015# ---------------------------------------------
2016# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2017# accordingly.
2018ac_fn_c_check_decl ()
2019{
2020  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021  as_decl_name=`echo $2|sed 's/ *(.*//'`
2022  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2023  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2024$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2025if eval \${$3+:} false; then :
2026  $as_echo_n "(cached) " >&6
2027else
2028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029/* end confdefs.h.  */
2030$4
2031int
2032main ()
2033{
2034#ifndef $as_decl_name
2035#ifdef __cplusplus
2036  (void) $as_decl_use;
2037#else
2038  (void) $as_decl_name;
2039#endif
2040#endif
2041
2042  ;
2043  return 0;
2044}
2045_ACEOF
2046if ac_fn_c_try_compile "$LINENO"; then :
2047  eval "$3=yes"
2048else
2049  eval "$3=no"
2050fi
2051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052fi
2053eval ac_res=\$$3
2054	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055$as_echo "$ac_res" >&6; }
2056  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2057
2058} # ac_fn_c_check_decl
2059
2060# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2061# ----------------------------------------------------
2062# Tries to find if the field MEMBER exists in type AGGR, after including
2063# INCLUDES, setting cache variable VAR accordingly.
2064ac_fn_c_check_member ()
2065{
2066  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2068$as_echo_n "checking for $2.$3... " >&6; }
2069if eval \${$4+:} false; then :
2070  $as_echo_n "(cached) " >&6
2071else
2072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073/* end confdefs.h.  */
2074$5
2075int
2076main ()
2077{
2078static $2 ac_aggr;
2079if (ac_aggr.$3)
2080return 0;
2081  ;
2082  return 0;
2083}
2084_ACEOF
2085if ac_fn_c_try_compile "$LINENO"; then :
2086  eval "$4=yes"
2087else
2088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089/* end confdefs.h.  */
2090$5
2091int
2092main ()
2093{
2094static $2 ac_aggr;
2095if (sizeof ac_aggr.$3)
2096return 0;
2097  ;
2098  return 0;
2099}
2100_ACEOF
2101if ac_fn_c_try_compile "$LINENO"; then :
2102  eval "$4=yes"
2103else
2104  eval "$4=no"
2105fi
2106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107fi
2108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109fi
2110eval ac_res=\$$4
2111	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2112$as_echo "$ac_res" >&6; }
2113  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2114
2115} # ac_fn_c_check_member
2116cat >config.log <<_ACEOF
2117This file contains any messages produced by compilers while
2118running configure, to aid debugging if configure makes a mistake.
2119
2120It was created by unbound $as_me 1.4.18, which was
2121generated by GNU Autoconf 2.68.  Invocation command line was
2122
2123  $ $0 $@
2124
2125_ACEOF
2126exec 5>>config.log
2127{
2128cat <<_ASUNAME
2129## --------- ##
2130## Platform. ##
2131## --------- ##
2132
2133hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2134uname -m = `(uname -m) 2>/dev/null || echo unknown`
2135uname -r = `(uname -r) 2>/dev/null || echo unknown`
2136uname -s = `(uname -s) 2>/dev/null || echo unknown`
2137uname -v = `(uname -v) 2>/dev/null || echo unknown`
2138
2139/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2140/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2141
2142/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2143/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2144/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2145/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2146/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2147/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2148/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2149
2150_ASUNAME
2151
2152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2153for as_dir in $PATH
2154do
2155  IFS=$as_save_IFS
2156  test -z "$as_dir" && as_dir=.
2157    $as_echo "PATH: $as_dir"
2158  done
2159IFS=$as_save_IFS
2160
2161} >&5
2162
2163cat >&5 <<_ACEOF
2164
2165
2166## ----------- ##
2167## Core tests. ##
2168## ----------- ##
2169
2170_ACEOF
2171
2172
2173# Keep a trace of the command line.
2174# Strip out --no-create and --no-recursion so they do not pile up.
2175# Strip out --silent because we don't want to record it for future runs.
2176# Also quote any args containing shell meta-characters.
2177# Make two passes to allow for proper duplicate-argument suppression.
2178ac_configure_args=
2179ac_configure_args0=
2180ac_configure_args1=
2181ac_must_keep_next=false
2182for ac_pass in 1 2
2183do
2184  for ac_arg
2185  do
2186    case $ac_arg in
2187    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2188    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2189    | -silent | --silent | --silen | --sile | --sil)
2190      continue ;;
2191    *\'*)
2192      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2193    esac
2194    case $ac_pass in
2195    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2196    2)
2197      as_fn_append ac_configure_args1 " '$ac_arg'"
2198      if test $ac_must_keep_next = true; then
2199	ac_must_keep_next=false # Got value, back to normal.
2200      else
2201	case $ac_arg in
2202	  *=* | --config-cache | -C | -disable-* | --disable-* \
2203	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2204	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2205	  | -with-* | --with-* | -without-* | --without-* | --x)
2206	    case "$ac_configure_args0 " in
2207	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2208	    esac
2209	    ;;
2210	  -* ) ac_must_keep_next=true ;;
2211	esac
2212      fi
2213      as_fn_append ac_configure_args " '$ac_arg'"
2214      ;;
2215    esac
2216  done
2217done
2218{ ac_configure_args0=; unset ac_configure_args0;}
2219{ ac_configure_args1=; unset ac_configure_args1;}
2220
2221# When interrupted or exit'd, cleanup temporary files, and complete
2222# config.log.  We remove comments because anyway the quotes in there
2223# would cause problems or look ugly.
2224# WARNING: Use '\'' to represent an apostrophe within the trap.
2225# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2226trap 'exit_status=$?
2227  # Save into config.log some information that might help in debugging.
2228  {
2229    echo
2230
2231    $as_echo "## ---------------- ##
2232## Cache variables. ##
2233## ---------------- ##"
2234    echo
2235    # The following way of writing the cache mishandles newlines in values,
2236(
2237  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2238    eval ac_val=\$$ac_var
2239    case $ac_val in #(
2240    *${as_nl}*)
2241      case $ac_var in #(
2242      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2243$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2244      esac
2245      case $ac_var in #(
2246      _ | IFS | as_nl) ;; #(
2247      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2248      *) { eval $ac_var=; unset $ac_var;} ;;
2249      esac ;;
2250    esac
2251  done
2252  (set) 2>&1 |
2253    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2254    *${as_nl}ac_space=\ *)
2255      sed -n \
2256	"s/'\''/'\''\\\\'\'''\''/g;
2257	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2258      ;; #(
2259    *)
2260      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2261      ;;
2262    esac |
2263    sort
2264)
2265    echo
2266
2267    $as_echo "## ----------------- ##
2268## Output variables. ##
2269## ----------------- ##"
2270    echo
2271    for ac_var in $ac_subst_vars
2272    do
2273      eval ac_val=\$$ac_var
2274      case $ac_val in
2275      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2276      esac
2277      $as_echo "$ac_var='\''$ac_val'\''"
2278    done | sort
2279    echo
2280
2281    if test -n "$ac_subst_files"; then
2282      $as_echo "## ------------------- ##
2283## File substitutions. ##
2284## ------------------- ##"
2285      echo
2286      for ac_var in $ac_subst_files
2287      do
2288	eval ac_val=\$$ac_var
2289	case $ac_val in
2290	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2291	esac
2292	$as_echo "$ac_var='\''$ac_val'\''"
2293      done | sort
2294      echo
2295    fi
2296
2297    if test -s confdefs.h; then
2298      $as_echo "## ----------- ##
2299## confdefs.h. ##
2300## ----------- ##"
2301      echo
2302      cat confdefs.h
2303      echo
2304    fi
2305    test "$ac_signal" != 0 &&
2306      $as_echo "$as_me: caught signal $ac_signal"
2307    $as_echo "$as_me: exit $exit_status"
2308  } >&5
2309  rm -f core *.core core.conftest.* &&
2310    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2311    exit $exit_status
2312' 0
2313for ac_signal in 1 2 13 15; do
2314  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2315done
2316ac_signal=0
2317
2318# confdefs.h avoids OS command line length limits that DEFS can exceed.
2319rm -f -r conftest* confdefs.h
2320
2321$as_echo "/* confdefs.h */" > confdefs.h
2322
2323# Predefined preprocessor variables.
2324
2325cat >>confdefs.h <<_ACEOF
2326#define PACKAGE_NAME "$PACKAGE_NAME"
2327_ACEOF
2328
2329cat >>confdefs.h <<_ACEOF
2330#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2331_ACEOF
2332
2333cat >>confdefs.h <<_ACEOF
2334#define PACKAGE_VERSION "$PACKAGE_VERSION"
2335_ACEOF
2336
2337cat >>confdefs.h <<_ACEOF
2338#define PACKAGE_STRING "$PACKAGE_STRING"
2339_ACEOF
2340
2341cat >>confdefs.h <<_ACEOF
2342#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2343_ACEOF
2344
2345cat >>confdefs.h <<_ACEOF
2346#define PACKAGE_URL "$PACKAGE_URL"
2347_ACEOF
2348
2349
2350# Let the site file select an alternate cache file if it wants to.
2351# Prefer an explicitly selected file to automatically selected ones.
2352ac_site_file1=NONE
2353ac_site_file2=NONE
2354if test -n "$CONFIG_SITE"; then
2355  # We do not want a PATH search for config.site.
2356  case $CONFIG_SITE in #((
2357    -*)  ac_site_file1=./$CONFIG_SITE;;
2358    */*) ac_site_file1=$CONFIG_SITE;;
2359    *)   ac_site_file1=./$CONFIG_SITE;;
2360  esac
2361elif test "x$prefix" != xNONE; then
2362  ac_site_file1=$prefix/share/config.site
2363  ac_site_file2=$prefix/etc/config.site
2364else
2365  ac_site_file1=$ac_default_prefix/share/config.site
2366  ac_site_file2=$ac_default_prefix/etc/config.site
2367fi
2368for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2369do
2370  test "x$ac_site_file" = xNONE && continue
2371  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2372    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2373$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2374    sed 's/^/| /' "$ac_site_file" >&5
2375    . "$ac_site_file" \
2376      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2377$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2378as_fn_error $? "failed to load site script $ac_site_file
2379See \`config.log' for more details" "$LINENO" 5; }
2380  fi
2381done
2382
2383if test -r "$cache_file"; then
2384  # Some versions of bash will fail to source /dev/null (special files
2385  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2386  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2387    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2388$as_echo "$as_me: loading cache $cache_file" >&6;}
2389    case $cache_file in
2390      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2391      *)                      . "./$cache_file";;
2392    esac
2393  fi
2394else
2395  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2396$as_echo "$as_me: creating cache $cache_file" >&6;}
2397  >$cache_file
2398fi
2399
2400# Check that the precious variables saved in the cache have kept the same
2401# value.
2402ac_cache_corrupted=false
2403for ac_var in $ac_precious_vars; do
2404  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2405  eval ac_new_set=\$ac_env_${ac_var}_set
2406  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2407  eval ac_new_val=\$ac_env_${ac_var}_value
2408  case $ac_old_set,$ac_new_set in
2409    set,)
2410      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2411$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2412      ac_cache_corrupted=: ;;
2413    ,set)
2414      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2415$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2416      ac_cache_corrupted=: ;;
2417    ,);;
2418    *)
2419      if test "x$ac_old_val" != "x$ac_new_val"; then
2420	# differences in whitespace do not lead to failure.
2421	ac_old_val_w=`echo x $ac_old_val`
2422	ac_new_val_w=`echo x $ac_new_val`
2423	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2424	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2425$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2426	  ac_cache_corrupted=:
2427	else
2428	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2429$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2430	  eval $ac_var=\$ac_old_val
2431	fi
2432	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2433$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2434	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2435$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2436      fi;;
2437  esac
2438  # Pass precious variables to config.status.
2439  if test "$ac_new_set" = set; then
2440    case $ac_new_val in
2441    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2442    *) ac_arg=$ac_var=$ac_new_val ;;
2443    esac
2444    case " $ac_configure_args " in
2445      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2446      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2447    esac
2448  fi
2449done
2450if $ac_cache_corrupted; then
2451  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2452$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2453  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2454$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2455  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2456fi
2457## -------------------- ##
2458## Main body of script. ##
2459## -------------------- ##
2460
2461ac_ext=c
2462ac_cpp='$CPP $CPPFLAGS'
2463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2465ac_compiler_gnu=$ac_cv_c_compiler_gnu
2466
2467
2468
2469LIBUNBOUND_CURRENT=3
2470LIBUNBOUND_REVISION=3
2471LIBUNBOUND_AGE=1
2472# 1.0.0 had 0:12:0
2473# 1.0.1 had 0:13:0
2474# 1.0.2 had 0:14:0
2475# 1.1.0 had 0:15:0
2476# 1.1.1 had 0:16:0
2477# 1.2.0 had 0:17:0
2478# 1.2.1 had 0:18:0
2479# 1.3.0 had 1:0:0   # ub_cancel and -export-symbols.
2480# 1.3.1 had 1:1:0
2481# 1.3.2 had 1:2:0
2482# 1.3.3 had 1:3:0
2483# 1.3.4 had 1:4:0
2484# 1.4.0-snapshots had 1:5:0
2485# 1.4.0 had 1:5:0 (not 2:0:0)   # ub_result.why_bogus
2486# 1.4.1 had 2:1:0
2487# 1.4.2 had 2:2:0
2488# 1.4.3 had 2:3:0
2489# 1.4.4 had 2:4:0
2490# 1.4.5 had 2:5:0
2491# 1.4.6 had 2:6:0
2492# 1.4.7 had 2:7:0
2493# 1.4.8 had 2:8:0
2494# 1.4.9 had 2:9:0
2495# 1.4.10 had 2:10:0
2496# 1.4.11 had 2:11:0
2497# 1.4.12 had 2:12:0
2498# 1.4.13 had 2:13:0
2499# and 1.4.13p1 and 1.4.13.p2
2500# 1.4.14 had 2:14:0
2501# 1.4.15 had 3:0:1 # adds ub_version()
2502# 1.4.16 had 3:1:1
2503# 1.4.17 had 3:2:1
2504# 1.4.18 had 3:3:1
2505
2506#   Current  -- the number of the binary API that we're implementing
2507#   Revision -- which iteration of the implementation of the binary
2508#               API are we supplying?
2509#   Age      -- How many previous binary API versions do we also
2510#               support?
2511#
2512# If we release a new version that does not change the binary API,
2513# increment Revision.
2514#
2515# If we release a new version that changes the binary API, but does
2516# not break programs compiled against the old binary API, increment
2517# Current and Age.  Set Revision to 0, since this is the first
2518# implementation of the new API.
2519#
2520# Otherwise, we're changing the binary API and breaking bakward
2521# compatibility with old binaries.  Increment Current.  Set Age to 0,
2522# since we're backward compatible with no previous APIs.  Set Revision
2523# to 0 too.
2524
2525
2526
2527
2528pretty_cmdline() {
2529	cmdline=""
2530	while test -n "$1"; do
2531		cmdline="$cmdline '"`echo $1 | sed -e 's/\\\\/\\\\\\\\/g' | sed -e 's/"/\\\\"/g' `"'"
2532		shift
2533	done
2534}
2535pretty_cmdline $@
2536
2537cat >>confdefs.h <<_ACEOF
2538#define CONFIGURE_BUILD_WITH "$cmdline"
2539_ACEOF
2540
2541ac_aux_dir=
2542for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2543  if test -f "$ac_dir/install-sh"; then
2544    ac_aux_dir=$ac_dir
2545    ac_install_sh="$ac_aux_dir/install-sh -c"
2546    break
2547  elif test -f "$ac_dir/install.sh"; then
2548    ac_aux_dir=$ac_dir
2549    ac_install_sh="$ac_aux_dir/install.sh -c"
2550    break
2551  elif test -f "$ac_dir/shtool"; then
2552    ac_aux_dir=$ac_dir
2553    ac_install_sh="$ac_aux_dir/shtool install -c"
2554    break
2555  fi
2556done
2557if test -z "$ac_aux_dir"; then
2558  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2559fi
2560
2561# These three variables are undocumented and unsupported,
2562# and are intended to be withdrawn in a future Autoconf release.
2563# They can cause serious problems if a builder's source tree is in a directory
2564# whose full name contains unusual characters.
2565ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2566ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2567ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2568
2569
2570# Make sure we can run config.sub.
2571$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2572  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2573
2574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2575$as_echo_n "checking build system type... " >&6; }
2576if ${ac_cv_build+:} false; then :
2577  $as_echo_n "(cached) " >&6
2578else
2579  ac_build_alias=$build_alias
2580test "x$ac_build_alias" = x &&
2581  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2582test "x$ac_build_alias" = x &&
2583  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2584ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2585  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2586
2587fi
2588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2589$as_echo "$ac_cv_build" >&6; }
2590case $ac_cv_build in
2591*-*-*) ;;
2592*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2593esac
2594build=$ac_cv_build
2595ac_save_IFS=$IFS; IFS='-'
2596set x $ac_cv_build
2597shift
2598build_cpu=$1
2599build_vendor=$2
2600shift; shift
2601# Remember, the first character of IFS is used to create $*,
2602# except with old shells:
2603build_os=$*
2604IFS=$ac_save_IFS
2605case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2606
2607
2608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2609$as_echo_n "checking host system type... " >&6; }
2610if ${ac_cv_host+:} false; then :
2611  $as_echo_n "(cached) " >&6
2612else
2613  if test "x$host_alias" = x; then
2614  ac_cv_host=$ac_cv_build
2615else
2616  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2617    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2618fi
2619
2620fi
2621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2622$as_echo "$ac_cv_host" >&6; }
2623case $ac_cv_host in
2624*-*-*) ;;
2625*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2626esac
2627host=$ac_cv_host
2628ac_save_IFS=$IFS; IFS='-'
2629set x $ac_cv_host
2630shift
2631host_cpu=$1
2632host_vendor=$2
2633shift; shift
2634# Remember, the first character of IFS is used to create $*,
2635# except with old shells:
2636host_os=$*
2637IFS=$ac_save_IFS
2638case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2639
2640
2641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2642$as_echo_n "checking target system type... " >&6; }
2643if ${ac_cv_target+:} false; then :
2644  $as_echo_n "(cached) " >&6
2645else
2646  if test "x$target_alias" = x; then
2647  ac_cv_target=$ac_cv_host
2648else
2649  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2650    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2651fi
2652
2653fi
2654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2655$as_echo "$ac_cv_target" >&6; }
2656case $ac_cv_target in
2657*-*-*) ;;
2658*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2659esac
2660target=$ac_cv_target
2661ac_save_IFS=$IFS; IFS='-'
2662set x $ac_cv_target
2663shift
2664target_cpu=$1
2665target_vendor=$2
2666shift; shift
2667# Remember, the first character of IFS is used to create $*,
2668# except with old shells:
2669target_os=$*
2670IFS=$ac_save_IFS
2671case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2672
2673
2674# The aliases save the names the user supplied, while $host etc.
2675# will get canonicalized.
2676test -n "$target_alias" &&
2677  test "$program_prefix$program_suffix$program_transform_name" = \
2678    NONENONEs,x,x, &&
2679  program_prefix=${target_alias}-
2680
2681cat >>confdefs.h <<_ACEOF
2682#define CONFIGURE_TARGET "$target"
2683_ACEOF
2684
2685
2686cat >>confdefs.h <<_ACEOF
2687#define CONFIGURE_DATE "`date`"
2688_ACEOF
2689
2690
2691CFLAGS="$CFLAGS"
2692ac_ext=c
2693ac_cpp='$CPP $CPPFLAGS'
2694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2696ac_compiler_gnu=$ac_cv_c_compiler_gnu
2697if test -n "$ac_tool_prefix"; then
2698  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2699set dummy ${ac_tool_prefix}gcc; ac_word=$2
2700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2701$as_echo_n "checking for $ac_word... " >&6; }
2702if ${ac_cv_prog_CC+:} false; then :
2703  $as_echo_n "(cached) " >&6
2704else
2705  if test -n "$CC"; then
2706  ac_cv_prog_CC="$CC" # Let the user override the test.
2707else
2708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709for as_dir in $PATH
2710do
2711  IFS=$as_save_IFS
2712  test -z "$as_dir" && as_dir=.
2713    for ac_exec_ext in '' $ac_executable_extensions; do
2714  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2715    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2716    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2717    break 2
2718  fi
2719done
2720  done
2721IFS=$as_save_IFS
2722
2723fi
2724fi
2725CC=$ac_cv_prog_CC
2726if test -n "$CC"; then
2727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2728$as_echo "$CC" >&6; }
2729else
2730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2731$as_echo "no" >&6; }
2732fi
2733
2734
2735fi
2736if test -z "$ac_cv_prog_CC"; then
2737  ac_ct_CC=$CC
2738  # Extract the first word of "gcc", so it can be a program name with args.
2739set dummy gcc; ac_word=$2
2740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2741$as_echo_n "checking for $ac_word... " >&6; }
2742if ${ac_cv_prog_ac_ct_CC+:} false; then :
2743  $as_echo_n "(cached) " >&6
2744else
2745  if test -n "$ac_ct_CC"; then
2746  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2747else
2748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749for as_dir in $PATH
2750do
2751  IFS=$as_save_IFS
2752  test -z "$as_dir" && as_dir=.
2753    for ac_exec_ext in '' $ac_executable_extensions; do
2754  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2755    ac_cv_prog_ac_ct_CC="gcc"
2756    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2757    break 2
2758  fi
2759done
2760  done
2761IFS=$as_save_IFS
2762
2763fi
2764fi
2765ac_ct_CC=$ac_cv_prog_ac_ct_CC
2766if test -n "$ac_ct_CC"; then
2767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2768$as_echo "$ac_ct_CC" >&6; }
2769else
2770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771$as_echo "no" >&6; }
2772fi
2773
2774  if test "x$ac_ct_CC" = x; then
2775    CC=""
2776  else
2777    case $cross_compiling:$ac_tool_warned in
2778yes:)
2779{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2780$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2781ac_tool_warned=yes ;;
2782esac
2783    CC=$ac_ct_CC
2784  fi
2785else
2786  CC="$ac_cv_prog_CC"
2787fi
2788
2789if test -z "$CC"; then
2790          if test -n "$ac_tool_prefix"; then
2791    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2792set dummy ${ac_tool_prefix}cc; ac_word=$2
2793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2794$as_echo_n "checking for $ac_word... " >&6; }
2795if ${ac_cv_prog_CC+:} false; then :
2796  $as_echo_n "(cached) " >&6
2797else
2798  if test -n "$CC"; then
2799  ac_cv_prog_CC="$CC" # Let the user override the test.
2800else
2801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802for as_dir in $PATH
2803do
2804  IFS=$as_save_IFS
2805  test -z "$as_dir" && as_dir=.
2806    for ac_exec_ext in '' $ac_executable_extensions; do
2807  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2808    ac_cv_prog_CC="${ac_tool_prefix}cc"
2809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2810    break 2
2811  fi
2812done
2813  done
2814IFS=$as_save_IFS
2815
2816fi
2817fi
2818CC=$ac_cv_prog_CC
2819if test -n "$CC"; then
2820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2821$as_echo "$CC" >&6; }
2822else
2823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824$as_echo "no" >&6; }
2825fi
2826
2827
2828  fi
2829fi
2830if test -z "$CC"; then
2831  # Extract the first word of "cc", so it can be a program name with args.
2832set dummy cc; ac_word=$2
2833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2834$as_echo_n "checking for $ac_word... " >&6; }
2835if ${ac_cv_prog_CC+:} false; then :
2836  $as_echo_n "(cached) " >&6
2837else
2838  if test -n "$CC"; then
2839  ac_cv_prog_CC="$CC" # Let the user override the test.
2840else
2841  ac_prog_rejected=no
2842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843for as_dir in $PATH
2844do
2845  IFS=$as_save_IFS
2846  test -z "$as_dir" && as_dir=.
2847    for ac_exec_ext in '' $ac_executable_extensions; do
2848  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2849    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2850       ac_prog_rejected=yes
2851       continue
2852     fi
2853    ac_cv_prog_CC="cc"
2854    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2855    break 2
2856  fi
2857done
2858  done
2859IFS=$as_save_IFS
2860
2861if test $ac_prog_rejected = yes; then
2862  # We found a bogon in the path, so make sure we never use it.
2863  set dummy $ac_cv_prog_CC
2864  shift
2865  if test $# != 0; then
2866    # We chose a different compiler from the bogus one.
2867    # However, it has the same basename, so the bogon will be chosen
2868    # first if we set CC to just the basename; use the full file name.
2869    shift
2870    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2871  fi
2872fi
2873fi
2874fi
2875CC=$ac_cv_prog_CC
2876if test -n "$CC"; then
2877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2878$as_echo "$CC" >&6; }
2879else
2880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881$as_echo "no" >&6; }
2882fi
2883
2884
2885fi
2886if test -z "$CC"; then
2887  if test -n "$ac_tool_prefix"; then
2888  for ac_prog in cl.exe
2889  do
2890    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2891set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2893$as_echo_n "checking for $ac_word... " >&6; }
2894if ${ac_cv_prog_CC+:} false; then :
2895  $as_echo_n "(cached) " >&6
2896else
2897  if test -n "$CC"; then
2898  ac_cv_prog_CC="$CC" # Let the user override the test.
2899else
2900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901for as_dir in $PATH
2902do
2903  IFS=$as_save_IFS
2904  test -z "$as_dir" && as_dir=.
2905    for ac_exec_ext in '' $ac_executable_extensions; do
2906  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2907    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2908    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2909    break 2
2910  fi
2911done
2912  done
2913IFS=$as_save_IFS
2914
2915fi
2916fi
2917CC=$ac_cv_prog_CC
2918if test -n "$CC"; then
2919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2920$as_echo "$CC" >&6; }
2921else
2922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2923$as_echo "no" >&6; }
2924fi
2925
2926
2927    test -n "$CC" && break
2928  done
2929fi
2930if test -z "$CC"; then
2931  ac_ct_CC=$CC
2932  for ac_prog in cl.exe
2933do
2934  # Extract the first word of "$ac_prog", so it can be a program name with args.
2935set dummy $ac_prog; ac_word=$2
2936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937$as_echo_n "checking for $ac_word... " >&6; }
2938if ${ac_cv_prog_ac_ct_CC+:} false; then :
2939  $as_echo_n "(cached) " >&6
2940else
2941  if test -n "$ac_ct_CC"; then
2942  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2943else
2944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945for as_dir in $PATH
2946do
2947  IFS=$as_save_IFS
2948  test -z "$as_dir" && as_dir=.
2949    for ac_exec_ext in '' $ac_executable_extensions; do
2950  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2951    ac_cv_prog_ac_ct_CC="$ac_prog"
2952    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2953    break 2
2954  fi
2955done
2956  done
2957IFS=$as_save_IFS
2958
2959fi
2960fi
2961ac_ct_CC=$ac_cv_prog_ac_ct_CC
2962if test -n "$ac_ct_CC"; then
2963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2964$as_echo "$ac_ct_CC" >&6; }
2965else
2966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967$as_echo "no" >&6; }
2968fi
2969
2970
2971  test -n "$ac_ct_CC" && break
2972done
2973
2974  if test "x$ac_ct_CC" = x; then
2975    CC=""
2976  else
2977    case $cross_compiling:$ac_tool_warned in
2978yes:)
2979{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2980$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2981ac_tool_warned=yes ;;
2982esac
2983    CC=$ac_ct_CC
2984  fi
2985fi
2986
2987fi
2988
2989
2990test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2991$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2992as_fn_error $? "no acceptable C compiler found in \$PATH
2993See \`config.log' for more details" "$LINENO" 5; }
2994
2995# Provide some information about the compiler.
2996$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2997set X $ac_compile
2998ac_compiler=$2
2999for ac_option in --version -v -V -qversion; do
3000  { { ac_try="$ac_compiler $ac_option >&5"
3001case "(($ac_try" in
3002  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003  *) ac_try_echo=$ac_try;;
3004esac
3005eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3006$as_echo "$ac_try_echo"; } >&5
3007  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3008  ac_status=$?
3009  if test -s conftest.err; then
3010    sed '10a\
3011... rest of stderr output deleted ...
3012         10q' conftest.err >conftest.er1
3013    cat conftest.er1 >&5
3014  fi
3015  rm -f conftest.er1 conftest.err
3016  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3017  test $ac_status = 0; }
3018done
3019
3020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3021/* end confdefs.h.  */
3022
3023int
3024main ()
3025{
3026
3027  ;
3028  return 0;
3029}
3030_ACEOF
3031ac_clean_files_save=$ac_clean_files
3032ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3033# Try to create an executable without -o first, disregard a.out.
3034# It will help us diagnose broken compilers, and finding out an intuition
3035# of exeext.
3036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3037$as_echo_n "checking whether the C compiler works... " >&6; }
3038ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3039
3040# The possible output files:
3041ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3042
3043ac_rmfiles=
3044for ac_file in $ac_files
3045do
3046  case $ac_file in
3047    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3048    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3049  esac
3050done
3051rm -f $ac_rmfiles
3052
3053if { { ac_try="$ac_link_default"
3054case "(($ac_try" in
3055  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056  *) ac_try_echo=$ac_try;;
3057esac
3058eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3059$as_echo "$ac_try_echo"; } >&5
3060  (eval "$ac_link_default") 2>&5
3061  ac_status=$?
3062  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3063  test $ac_status = 0; }; then :
3064  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3065# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3066# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3067# so that the user can short-circuit this test for compilers unknown to
3068# Autoconf.
3069for ac_file in $ac_files ''
3070do
3071  test -f "$ac_file" || continue
3072  case $ac_file in
3073    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3074	;;
3075    [ab].out )
3076	# We found the default executable, but exeext='' is most
3077	# certainly right.
3078	break;;
3079    *.* )
3080	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3081	then :; else
3082	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3083	fi
3084	# We set ac_cv_exeext here because the later test for it is not
3085	# safe: cross compilers may not add the suffix if given an `-o'
3086	# argument, so we may need to know it at that point already.
3087	# Even if this section looks crufty: it has the advantage of
3088	# actually working.
3089	break;;
3090    * )
3091	break;;
3092  esac
3093done
3094test "$ac_cv_exeext" = no && ac_cv_exeext=
3095
3096else
3097  ac_file=''
3098fi
3099if test -z "$ac_file"; then :
3100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3101$as_echo "no" >&6; }
3102$as_echo "$as_me: failed program was:" >&5
3103sed 's/^/| /' conftest.$ac_ext >&5
3104
3105{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3106$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3107as_fn_error 77 "C compiler cannot create executables
3108See \`config.log' for more details" "$LINENO" 5; }
3109else
3110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3111$as_echo "yes" >&6; }
3112fi
3113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3114$as_echo_n "checking for C compiler default output file name... " >&6; }
3115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3116$as_echo "$ac_file" >&6; }
3117ac_exeext=$ac_cv_exeext
3118
3119rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3120ac_clean_files=$ac_clean_files_save
3121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3122$as_echo_n "checking for suffix of executables... " >&6; }
3123if { { ac_try="$ac_link"
3124case "(($ac_try" in
3125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126  *) ac_try_echo=$ac_try;;
3127esac
3128eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3129$as_echo "$ac_try_echo"; } >&5
3130  (eval "$ac_link") 2>&5
3131  ac_status=$?
3132  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3133  test $ac_status = 0; }; then :
3134  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3135# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3136# work properly (i.e., refer to `conftest.exe'), while it won't with
3137# `rm'.
3138for ac_file in conftest.exe conftest conftest.*; do
3139  test -f "$ac_file" || continue
3140  case $ac_file in
3141    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3142    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3143	  break;;
3144    * ) break;;
3145  esac
3146done
3147else
3148  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3149$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3150as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3151See \`config.log' for more details" "$LINENO" 5; }
3152fi
3153rm -f conftest conftest$ac_cv_exeext
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3155$as_echo "$ac_cv_exeext" >&6; }
3156
3157rm -f conftest.$ac_ext
3158EXEEXT=$ac_cv_exeext
3159ac_exeext=$EXEEXT
3160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3161/* end confdefs.h.  */
3162#include <stdio.h>
3163int
3164main ()
3165{
3166FILE *f = fopen ("conftest.out", "w");
3167 return ferror (f) || fclose (f) != 0;
3168
3169  ;
3170  return 0;
3171}
3172_ACEOF
3173ac_clean_files="$ac_clean_files conftest.out"
3174# Check that the compiler produces executables we can run.  If not, either
3175# the compiler is broken, or we cross compile.
3176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3177$as_echo_n "checking whether we are cross compiling... " >&6; }
3178if test "$cross_compiling" != yes; then
3179  { { ac_try="$ac_link"
3180case "(($ac_try" in
3181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182  *) ac_try_echo=$ac_try;;
3183esac
3184eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3185$as_echo "$ac_try_echo"; } >&5
3186  (eval "$ac_link") 2>&5
3187  ac_status=$?
3188  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3189  test $ac_status = 0; }
3190  if { ac_try='./conftest$ac_cv_exeext'
3191  { { case "(($ac_try" in
3192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193  *) ac_try_echo=$ac_try;;
3194esac
3195eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3196$as_echo "$ac_try_echo"; } >&5
3197  (eval "$ac_try") 2>&5
3198  ac_status=$?
3199  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3200  test $ac_status = 0; }; }; then
3201    cross_compiling=no
3202  else
3203    if test "$cross_compiling" = maybe; then
3204	cross_compiling=yes
3205    else
3206	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3207$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3208as_fn_error $? "cannot run C compiled programs.
3209If you meant to cross compile, use \`--host'.
3210See \`config.log' for more details" "$LINENO" 5; }
3211    fi
3212  fi
3213fi
3214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3215$as_echo "$cross_compiling" >&6; }
3216
3217rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3218ac_clean_files=$ac_clean_files_save
3219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3220$as_echo_n "checking for suffix of object files... " >&6; }
3221if ${ac_cv_objext+:} false; then :
3222  $as_echo_n "(cached) " >&6
3223else
3224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3225/* end confdefs.h.  */
3226
3227int
3228main ()
3229{
3230
3231  ;
3232  return 0;
3233}
3234_ACEOF
3235rm -f conftest.o conftest.obj
3236if { { ac_try="$ac_compile"
3237case "(($ac_try" in
3238  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239  *) ac_try_echo=$ac_try;;
3240esac
3241eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3242$as_echo "$ac_try_echo"; } >&5
3243  (eval "$ac_compile") 2>&5
3244  ac_status=$?
3245  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3246  test $ac_status = 0; }; then :
3247  for ac_file in conftest.o conftest.obj conftest.*; do
3248  test -f "$ac_file" || continue;
3249  case $ac_file in
3250    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3251    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3252       break;;
3253  esac
3254done
3255else
3256  $as_echo "$as_me: failed program was:" >&5
3257sed 's/^/| /' conftest.$ac_ext >&5
3258
3259{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3260$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3261as_fn_error $? "cannot compute suffix of object files: cannot compile
3262See \`config.log' for more details" "$LINENO" 5; }
3263fi
3264rm -f conftest.$ac_cv_objext conftest.$ac_ext
3265fi
3266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3267$as_echo "$ac_cv_objext" >&6; }
3268OBJEXT=$ac_cv_objext
3269ac_objext=$OBJEXT
3270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3271$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3272if ${ac_cv_c_compiler_gnu+:} false; then :
3273  $as_echo_n "(cached) " >&6
3274else
3275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3276/* end confdefs.h.  */
3277
3278int
3279main ()
3280{
3281#ifndef __GNUC__
3282       choke me
3283#endif
3284
3285  ;
3286  return 0;
3287}
3288_ACEOF
3289if ac_fn_c_try_compile "$LINENO"; then :
3290  ac_compiler_gnu=yes
3291else
3292  ac_compiler_gnu=no
3293fi
3294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3295ac_cv_c_compiler_gnu=$ac_compiler_gnu
3296
3297fi
3298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3299$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3300if test $ac_compiler_gnu = yes; then
3301  GCC=yes
3302else
3303  GCC=
3304fi
3305ac_test_CFLAGS=${CFLAGS+set}
3306ac_save_CFLAGS=$CFLAGS
3307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3308$as_echo_n "checking whether $CC accepts -g... " >&6; }
3309if ${ac_cv_prog_cc_g+:} false; then :
3310  $as_echo_n "(cached) " >&6
3311else
3312  ac_save_c_werror_flag=$ac_c_werror_flag
3313   ac_c_werror_flag=yes
3314   ac_cv_prog_cc_g=no
3315   CFLAGS="-g"
3316   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3317/* end confdefs.h.  */
3318
3319int
3320main ()
3321{
3322
3323  ;
3324  return 0;
3325}
3326_ACEOF
3327if ac_fn_c_try_compile "$LINENO"; then :
3328  ac_cv_prog_cc_g=yes
3329else
3330  CFLAGS=""
3331      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332/* end confdefs.h.  */
3333
3334int
3335main ()
3336{
3337
3338  ;
3339  return 0;
3340}
3341_ACEOF
3342if ac_fn_c_try_compile "$LINENO"; then :
3343
3344else
3345  ac_c_werror_flag=$ac_save_c_werror_flag
3346	 CFLAGS="-g"
3347	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3348/* end confdefs.h.  */
3349
3350int
3351main ()
3352{
3353
3354  ;
3355  return 0;
3356}
3357_ACEOF
3358if ac_fn_c_try_compile "$LINENO"; then :
3359  ac_cv_prog_cc_g=yes
3360fi
3361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3362fi
3363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3364fi
3365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3366   ac_c_werror_flag=$ac_save_c_werror_flag
3367fi
3368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3369$as_echo "$ac_cv_prog_cc_g" >&6; }
3370if test "$ac_test_CFLAGS" = set; then
3371  CFLAGS=$ac_save_CFLAGS
3372elif test $ac_cv_prog_cc_g = yes; then
3373  if test "$GCC" = yes; then
3374    CFLAGS="-g -O2"
3375  else
3376    CFLAGS="-g"
3377  fi
3378else
3379  if test "$GCC" = yes; then
3380    CFLAGS="-O2"
3381  else
3382    CFLAGS=
3383  fi
3384fi
3385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3386$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3387if ${ac_cv_prog_cc_c89+:} false; then :
3388  $as_echo_n "(cached) " >&6
3389else
3390  ac_cv_prog_cc_c89=no
3391ac_save_CC=$CC
3392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3393/* end confdefs.h.  */
3394#include <stdarg.h>
3395#include <stdio.h>
3396#include <sys/types.h>
3397#include <sys/stat.h>
3398/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3399struct buf { int x; };
3400FILE * (*rcsopen) (struct buf *, struct stat *, int);
3401static char *e (p, i)
3402     char **p;
3403     int i;
3404{
3405  return p[i];
3406}
3407static char *f (char * (*g) (char **, int), char **p, ...)
3408{
3409  char *s;
3410  va_list v;
3411  va_start (v,p);
3412  s = g (p, va_arg (v,int));
3413  va_end (v);
3414  return s;
3415}
3416
3417/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3418   function prototypes and stuff, but not '\xHH' hex character constants.
3419   These don't provoke an error unfortunately, instead are silently treated
3420   as 'x'.  The following induces an error, until -std is added to get
3421   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3422   array size at least.  It's necessary to write '\x00'==0 to get something
3423   that's true only with -std.  */
3424int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3425
3426/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3427   inside strings and character constants.  */
3428#define FOO(x) 'x'
3429int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3430
3431int test (int i, double x);
3432struct s1 {int (*f) (int a);};
3433struct s2 {int (*f) (double a);};
3434int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3435int argc;
3436char **argv;
3437int
3438main ()
3439{
3440return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3441  ;
3442  return 0;
3443}
3444_ACEOF
3445for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3446	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3447do
3448  CC="$ac_save_CC $ac_arg"
3449  if ac_fn_c_try_compile "$LINENO"; then :
3450  ac_cv_prog_cc_c89=$ac_arg
3451fi
3452rm -f core conftest.err conftest.$ac_objext
3453  test "x$ac_cv_prog_cc_c89" != "xno" && break
3454done
3455rm -f conftest.$ac_ext
3456CC=$ac_save_CC
3457
3458fi
3459# AC_CACHE_VAL
3460case "x$ac_cv_prog_cc_c89" in
3461  x)
3462    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3463$as_echo "none needed" >&6; } ;;
3464  xno)
3465    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3466$as_echo "unsupported" >&6; } ;;
3467  *)
3468    CC="$CC $ac_cv_prog_cc_c89"
3469    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3470$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3471esac
3472if test "x$ac_cv_prog_cc_c89" != xno; then :
3473
3474fi
3475
3476ac_ext=c
3477ac_cpp='$CPP $CPPFLAGS'
3478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3480ac_compiler_gnu=$ac_cv_c_compiler_gnu
3481
3482
3483ac_ext=c
3484ac_cpp='$CPP $CPPFLAGS'
3485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3487ac_compiler_gnu=$ac_cv_c_compiler_gnu
3488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3489$as_echo_n "checking how to run the C preprocessor... " >&6; }
3490# On Suns, sometimes $CPP names a directory.
3491if test -n "$CPP" && test -d "$CPP"; then
3492  CPP=
3493fi
3494if test -z "$CPP"; then
3495  if ${ac_cv_prog_CPP+:} false; then :
3496  $as_echo_n "(cached) " >&6
3497else
3498      # Double quotes because CPP needs to be expanded
3499    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3500    do
3501      ac_preproc_ok=false
3502for ac_c_preproc_warn_flag in '' yes
3503do
3504  # Use a header file that comes with gcc, so configuring glibc
3505  # with a fresh cross-compiler works.
3506  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3507  # <limits.h> exists even on freestanding compilers.
3508  # On the NeXT, cc -E runs the code through the compiler's parser,
3509  # not just through cpp. "Syntax error" is here to catch this case.
3510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3511/* end confdefs.h.  */
3512#ifdef __STDC__
3513# include <limits.h>
3514#else
3515# include <assert.h>
3516#endif
3517		     Syntax error
3518_ACEOF
3519if ac_fn_c_try_cpp "$LINENO"; then :
3520
3521else
3522  # Broken: fails on valid input.
3523continue
3524fi
3525rm -f conftest.err conftest.i conftest.$ac_ext
3526
3527  # OK, works on sane cases.  Now check whether nonexistent headers
3528  # can be detected and how.
3529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3530/* end confdefs.h.  */
3531#include <ac_nonexistent.h>
3532_ACEOF
3533if ac_fn_c_try_cpp "$LINENO"; then :
3534  # Broken: success on invalid input.
3535continue
3536else
3537  # Passes both tests.
3538ac_preproc_ok=:
3539break
3540fi
3541rm -f conftest.err conftest.i conftest.$ac_ext
3542
3543done
3544# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3545rm -f conftest.i conftest.err conftest.$ac_ext
3546if $ac_preproc_ok; then :
3547  break
3548fi
3549
3550    done
3551    ac_cv_prog_CPP=$CPP
3552
3553fi
3554  CPP=$ac_cv_prog_CPP
3555else
3556  ac_cv_prog_CPP=$CPP
3557fi
3558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3559$as_echo "$CPP" >&6; }
3560ac_preproc_ok=false
3561for ac_c_preproc_warn_flag in '' yes
3562do
3563  # Use a header file that comes with gcc, so configuring glibc
3564  # with a fresh cross-compiler works.
3565  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3566  # <limits.h> exists even on freestanding compilers.
3567  # On the NeXT, cc -E runs the code through the compiler's parser,
3568  # not just through cpp. "Syntax error" is here to catch this case.
3569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570/* end confdefs.h.  */
3571#ifdef __STDC__
3572# include <limits.h>
3573#else
3574# include <assert.h>
3575#endif
3576		     Syntax error
3577_ACEOF
3578if ac_fn_c_try_cpp "$LINENO"; then :
3579
3580else
3581  # Broken: fails on valid input.
3582continue
3583fi
3584rm -f conftest.err conftest.i conftest.$ac_ext
3585
3586  # OK, works on sane cases.  Now check whether nonexistent headers
3587  # can be detected and how.
3588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589/* end confdefs.h.  */
3590#include <ac_nonexistent.h>
3591_ACEOF
3592if ac_fn_c_try_cpp "$LINENO"; then :
3593  # Broken: success on invalid input.
3594continue
3595else
3596  # Passes both tests.
3597ac_preproc_ok=:
3598break
3599fi
3600rm -f conftest.err conftest.i conftest.$ac_ext
3601
3602done
3603# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3604rm -f conftest.i conftest.err conftest.$ac_ext
3605if $ac_preproc_ok; then :
3606
3607else
3608  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3609$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3610as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3611See \`config.log' for more details" "$LINENO" 5; }
3612fi
3613
3614ac_ext=c
3615ac_cpp='$CPP $CPPFLAGS'
3616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3618ac_compiler_gnu=$ac_cv_c_compiler_gnu
3619
3620
3621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3622$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3623if ${ac_cv_path_GREP+:} false; then :
3624  $as_echo_n "(cached) " >&6
3625else
3626  if test -z "$GREP"; then
3627  ac_path_GREP_found=false
3628  # Loop through the user's path and test for each of PROGNAME-LIST
3629  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3631do
3632  IFS=$as_save_IFS
3633  test -z "$as_dir" && as_dir=.
3634    for ac_prog in grep ggrep; do
3635    for ac_exec_ext in '' $ac_executable_extensions; do
3636      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3637      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3638# Check for GNU ac_path_GREP and select it if it is found.
3639  # Check for GNU $ac_path_GREP
3640case `"$ac_path_GREP" --version 2>&1` in
3641*GNU*)
3642  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3643*)
3644  ac_count=0
3645  $as_echo_n 0123456789 >"conftest.in"
3646  while :
3647  do
3648    cat "conftest.in" "conftest.in" >"conftest.tmp"
3649    mv "conftest.tmp" "conftest.in"
3650    cp "conftest.in" "conftest.nl"
3651    $as_echo 'GREP' >> "conftest.nl"
3652    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3653    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3654    as_fn_arith $ac_count + 1 && ac_count=$as_val
3655    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3656      # Best one so far, save it but keep looking for a better one
3657      ac_cv_path_GREP="$ac_path_GREP"
3658      ac_path_GREP_max=$ac_count
3659    fi
3660    # 10*(2^10) chars as input seems more than enough
3661    test $ac_count -gt 10 && break
3662  done
3663  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3664esac
3665
3666      $ac_path_GREP_found && break 3
3667    done
3668  done
3669  done
3670IFS=$as_save_IFS
3671  if test -z "$ac_cv_path_GREP"; then
3672    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3673  fi
3674else
3675  ac_cv_path_GREP=$GREP
3676fi
3677
3678fi
3679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3680$as_echo "$ac_cv_path_GREP" >&6; }
3681 GREP="$ac_cv_path_GREP"
3682
3683
3684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3685$as_echo_n "checking for egrep... " >&6; }
3686if ${ac_cv_path_EGREP+:} false; then :
3687  $as_echo_n "(cached) " >&6
3688else
3689  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3690   then ac_cv_path_EGREP="$GREP -E"
3691   else
3692     if test -z "$EGREP"; then
3693  ac_path_EGREP_found=false
3694  # Loop through the user's path and test for each of PROGNAME-LIST
3695  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3697do
3698  IFS=$as_save_IFS
3699  test -z "$as_dir" && as_dir=.
3700    for ac_prog in egrep; do
3701    for ac_exec_ext in '' $ac_executable_extensions; do
3702      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3703      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3704# Check for GNU ac_path_EGREP and select it if it is found.
3705  # Check for GNU $ac_path_EGREP
3706case `"$ac_path_EGREP" --version 2>&1` in
3707*GNU*)
3708  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3709*)
3710  ac_count=0
3711  $as_echo_n 0123456789 >"conftest.in"
3712  while :
3713  do
3714    cat "conftest.in" "conftest.in" >"conftest.tmp"
3715    mv "conftest.tmp" "conftest.in"
3716    cp "conftest.in" "conftest.nl"
3717    $as_echo 'EGREP' >> "conftest.nl"
3718    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3719    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3720    as_fn_arith $ac_count + 1 && ac_count=$as_val
3721    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3722      # Best one so far, save it but keep looking for a better one
3723      ac_cv_path_EGREP="$ac_path_EGREP"
3724      ac_path_EGREP_max=$ac_count
3725    fi
3726    # 10*(2^10) chars as input seems more than enough
3727    test $ac_count -gt 10 && break
3728  done
3729  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3730esac
3731
3732      $ac_path_EGREP_found && break 3
3733    done
3734  done
3735  done
3736IFS=$as_save_IFS
3737  if test -z "$ac_cv_path_EGREP"; then
3738    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3739  fi
3740else
3741  ac_cv_path_EGREP=$EGREP
3742fi
3743
3744   fi
3745fi
3746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3747$as_echo "$ac_cv_path_EGREP" >&6; }
3748 EGREP="$ac_cv_path_EGREP"
3749
3750
3751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3752$as_echo_n "checking for ANSI C header files... " >&6; }
3753if ${ac_cv_header_stdc+:} false; then :
3754  $as_echo_n "(cached) " >&6
3755else
3756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757/* end confdefs.h.  */
3758#include <stdlib.h>
3759#include <stdarg.h>
3760#include <string.h>
3761#include <float.h>
3762
3763int
3764main ()
3765{
3766
3767  ;
3768  return 0;
3769}
3770_ACEOF
3771if ac_fn_c_try_compile "$LINENO"; then :
3772  ac_cv_header_stdc=yes
3773else
3774  ac_cv_header_stdc=no
3775fi
3776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3777
3778if test $ac_cv_header_stdc = yes; then
3779  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781/* end confdefs.h.  */
3782#include <string.h>
3783
3784_ACEOF
3785if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3786  $EGREP "memchr" >/dev/null 2>&1; then :
3787
3788else
3789  ac_cv_header_stdc=no
3790fi
3791rm -f conftest*
3792
3793fi
3794
3795if test $ac_cv_header_stdc = yes; then
3796  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798/* end confdefs.h.  */
3799#include <stdlib.h>
3800
3801_ACEOF
3802if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3803  $EGREP "free" >/dev/null 2>&1; then :
3804
3805else
3806  ac_cv_header_stdc=no
3807fi
3808rm -f conftest*
3809
3810fi
3811
3812if test $ac_cv_header_stdc = yes; then
3813  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3814  if test "$cross_compiling" = yes; then :
3815  :
3816else
3817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818/* end confdefs.h.  */
3819#include <ctype.h>
3820#include <stdlib.h>
3821#if ((' ' & 0x0FF) == 0x020)
3822# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3823# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3824#else
3825# define ISLOWER(c) \
3826		   (('a' <= (c) && (c) <= 'i') \
3827		     || ('j' <= (c) && (c) <= 'r') \
3828		     || ('s' <= (c) && (c) <= 'z'))
3829# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3830#endif
3831
3832#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3833int
3834main ()
3835{
3836  int i;
3837  for (i = 0; i < 256; i++)
3838    if (XOR (islower (i), ISLOWER (i))
3839	|| toupper (i) != TOUPPER (i))
3840      return 2;
3841  return 0;
3842}
3843_ACEOF
3844if ac_fn_c_try_run "$LINENO"; then :
3845
3846else
3847  ac_cv_header_stdc=no
3848fi
3849rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3850  conftest.$ac_objext conftest.beam conftest.$ac_ext
3851fi
3852
3853fi
3854fi
3855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3856$as_echo "$ac_cv_header_stdc" >&6; }
3857if test $ac_cv_header_stdc = yes; then
3858
3859$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3860
3861fi
3862
3863# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3864for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3865		  inttypes.h stdint.h unistd.h
3866do :
3867  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3868ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3869"
3870if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3871  cat >>confdefs.h <<_ACEOF
3872#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3873_ACEOF
3874
3875fi
3876
3877done
3878
3879
3880
3881  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3882if test "x$ac_cv_header_minix_config_h" = xyes; then :
3883  MINIX=yes
3884else
3885  MINIX=
3886fi
3887
3888
3889  if test "$MINIX" = yes; then
3890
3891$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3892
3893
3894$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3895
3896
3897$as_echo "#define _MINIX 1" >>confdefs.h
3898
3899  fi
3900
3901
3902  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3903$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3904if ${ac_cv_safe_to_define___extensions__+:} false; then :
3905  $as_echo_n "(cached) " >&6
3906else
3907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908/* end confdefs.h.  */
3909
3910#	  define __EXTENSIONS__ 1
3911	  $ac_includes_default
3912int
3913main ()
3914{
3915
3916  ;
3917  return 0;
3918}
3919_ACEOF
3920if ac_fn_c_try_compile "$LINENO"; then :
3921  ac_cv_safe_to_define___extensions__=yes
3922else
3923  ac_cv_safe_to_define___extensions__=no
3924fi
3925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3926fi
3927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3928$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3929  test $ac_cv_safe_to_define___extensions__ = yes &&
3930    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3931
3932  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3933
3934  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3935
3936  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3937
3938  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3939
3940
3941
3942
3943case "$prefix" in
3944        NONE)
3945		prefix="/usr/local"
3946        ;;
3947esac
3948
3949# are we on MinGW?
3950if uname -s 2>&1 | grep MINGW32 >/dev/null; then on_mingw="yes"
3951else
3952	if echo $target | grep mingw32 >/dev/null; then on_mingw="yes"
3953	else on_mingw="no"; fi
3954fi
3955
3956#
3957# Determine configuration file
3958# the eval is to evaluate shell expansion twice
3959if test $on_mingw = "no"; then
3960  ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"`
3961else
3962  ub_conf_file="C:\\Program Files\\Unbound\\service.conf"
3963fi
3964
3965# Check whether --with-conf_file was given.
3966if test "${with_conf_file+set}" = set; then :
3967  withval=$with_conf_file; ub_conf_file="$withval"
3968fi
3969
3970
3971hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`"
3972
3973
3974cat >>confdefs.h <<_ACEOF
3975#define CONFIGFILE "$hdr_config"
3976_ACEOF
3977
3978
3979# Determine run, chroot directory and pidfile locations
3980
3981# Check whether --with-run-dir was given.
3982if test "${with_run_dir+set}" = set; then :
3983  withval=$with_run_dir; UNBOUND_RUN_DIR="$withval"
3984else
3985  if test $on_mingw = no; then
3986    UNBOUND_RUN_DIR=`dirname "$ub_conf_file"`
3987else
3988    UNBOUND_RUN_DIR=""
3989fi
3990
3991fi
3992
3993
3994hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
3995
3996
3997cat >>confdefs.h <<_ACEOF
3998#define RUN_DIR "$hdr_run"
3999_ACEOF
4000
4001
4002
4003# Check whether --with-chroot-dir was given.
4004if test "${with_chroot_dir+set}" = set; then :
4005  withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval"
4006else
4007  if test $on_mingw = no; then
4008    UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR"
4009else
4010    UNBOUND_CHROOT_DIR=""
4011fi
4012
4013fi
4014
4015
4016hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4017
4018
4019cat >>confdefs.h <<_ACEOF
4020#define CHROOT_DIR "$hdr_chroot"
4021_ACEOF
4022
4023
4024
4025# Check whether --with-share-dir was given.
4026if test "${with_share_dir+set}" = set; then :
4027  withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval"
4028else
4029  UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR"
4030fi
4031
4032
4033
4034cat >>confdefs.h <<_ACEOF
4035#define SHARE_DIR "$UNBOUND_SHARE_DIR"
4036_ACEOF
4037
4038
4039
4040# Check whether --with-pidfile was given.
4041if test "${with_pidfile+set}" = set; then :
4042  withval=$with_pidfile; UNBOUND_PIDFILE="$withval"
4043else
4044  if test $on_mingw = no; then
4045    UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid"
4046else
4047    UNBOUND_PIDFILE=""
4048fi
4049
4050fi
4051
4052
4053hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4054
4055
4056cat >>confdefs.h <<_ACEOF
4057#define PIDFILE "$hdr_pid"
4058_ACEOF
4059
4060
4061
4062# Check whether --with-rootkey-file was given.
4063if test "${with_rootkey_file+set}" = set; then :
4064  withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval"
4065else
4066  if test $on_mingw = no; then
4067    UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key"
4068else
4069    UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key"
4070fi
4071
4072fi
4073
4074
4075hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4076
4077
4078cat >>confdefs.h <<_ACEOF
4079#define ROOT_ANCHOR_FILE "$hdr_rkey"
4080_ACEOF
4081
4082
4083
4084# Check whether --with-rootcert-file was given.
4085if test "${with_rootcert_file+set}" = set; then :
4086  withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval"
4087else
4088  if test $on_mingw = no; then
4089    UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem"
4090else
4091    UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem"
4092fi
4093
4094fi
4095
4096
4097hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4098
4099
4100cat >>confdefs.h <<_ACEOF
4101#define ROOT_CERT_FILE "$hdr_rpem"
4102_ACEOF
4103
4104
4105
4106# Check whether --with-username was given.
4107if test "${with_username+set}" = set; then :
4108  withval=$with_username; UNBOUND_USERNAME="$withval"
4109else
4110  UNBOUND_USERNAME="unbound"
4111fi
4112
4113
4114
4115cat >>confdefs.h <<_ACEOF
4116#define UB_USERNAME "$UNBOUND_USERNAME"
4117_ACEOF
4118
4119
4120
4121$as_echo "#define WINVER 0x0502" >>confdefs.h
4122
4123wnvs=`echo $PACKAGE_VERSION | sed -e 's/^[^0-9]*\([0-9]\)[^0-9]*\([0-9]\)[^0-9]*\([0-9]\)[^0-9]*\([0-9]\).*$/\1,\2,\3,\4/' -e 's/^[^0-9]*\([0-9]\)[^0-9]*\([0-9]\)[^0-9]*\([0-9]\)[^0-9]*$/\1,\2,\3,0/' `
4124
4125
4126cat >>confdefs.h <<_ACEOF
4127#define RSRC_PACKAGE_VERSION $wnvs
4128_ACEOF
4129
4130
4131# Checks for typedefs, structures, and compiler characteristics.
4132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4133$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4134if ${ac_cv_c_const+:} false; then :
4135  $as_echo_n "(cached) " >&6
4136else
4137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138/* end confdefs.h.  */
4139
4140int
4141main ()
4142{
4143/* FIXME: Include the comments suggested by Paul. */
4144#ifndef __cplusplus
4145  /* Ultrix mips cc rejects this.  */
4146  typedef int charset[2];
4147  const charset cs;
4148  /* SunOS 4.1.1 cc rejects this.  */
4149  char const *const *pcpcc;
4150  char **ppc;
4151  /* NEC SVR4.0.2 mips cc rejects this.  */
4152  struct point {int x, y;};
4153  static struct point const zero = {0,0};
4154  /* AIX XL C 1.02.0.0 rejects this.
4155     It does not let you subtract one const X* pointer from another in
4156     an arm of an if-expression whose if-part is not a constant
4157     expression */
4158  const char *g = "string";
4159  pcpcc = &g + (g ? g-g : 0);
4160  /* HPUX 7.0 cc rejects these. */
4161  ++pcpcc;
4162  ppc = (char**) pcpcc;
4163  pcpcc = (char const *const *) ppc;
4164  { /* SCO 3.2v4 cc rejects this.  */
4165    char *t;
4166    char const *s = 0 ? (char *) 0 : (char const *) 0;
4167
4168    *t++ = 0;
4169    if (s) return 0;
4170  }
4171  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4172    int x[] = {25, 17};
4173    const int *foo = &x[0];
4174    ++foo;
4175  }
4176  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4177    typedef const int *iptr;
4178    iptr p = 0;
4179    ++p;
4180  }
4181  { /* AIX XL C 1.02.0.0 rejects this saying
4182       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4183    struct s { int j; const int *ap[3]; };
4184    struct s *b; b->j = 5;
4185  }
4186  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4187    const int foo = 10;
4188    if (!foo) return 0;
4189  }
4190  return !cs[0] && !zero.x;
4191#endif
4192
4193  ;
4194  return 0;
4195}
4196_ACEOF
4197if ac_fn_c_try_compile "$LINENO"; then :
4198  ac_cv_c_const=yes
4199else
4200  ac_cv_c_const=no
4201fi
4202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4203fi
4204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4205$as_echo "$ac_cv_c_const" >&6; }
4206if test $ac_cv_c_const = no; then
4207
4208$as_echo "#define const /**/" >>confdefs.h
4209
4210fi
4211
4212ac_ext=c
4213ac_cpp='$CPP $CPPFLAGS'
4214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4216ac_compiler_gnu=$ac_cv_c_compiler_gnu
4217
4218# allow user to override the -g -O2 flags.
4219if test "x$CFLAGS" = "x" ; then
4220
4221
4222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
4223$as_echo_n "checking whether $CC supports -g... " >&6; }
4224cache=`echo g | sed 'y%.=/+-%___p_%'`
4225if eval \${cv_prog_cc_flag_$cache+:} false; then :
4226  $as_echo_n "(cached) " >&6
4227else
4228
4229echo 'void f(){}' >conftest.c
4230if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
4231eval "cv_prog_cc_flag_$cache=yes"
4232else
4233eval "cv_prog_cc_flag_$cache=no"
4234fi
4235rm -f conftest conftest.o conftest.c
4236
4237fi
4238
4239if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4241$as_echo "yes" >&6; }
4242:
4243CFLAGS="$CFLAGS -g"
4244else
4245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4246$as_echo "no" >&6; }
4247:
4248
4249fi
4250
4251
4252
4253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4254$as_echo_n "checking whether $CC supports -O2... " >&6; }
4255cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4256if eval \${cv_prog_cc_flag_$cache+:} false; then :
4257  $as_echo_n "(cached) " >&6
4258else
4259
4260echo 'void f(){}' >conftest.c
4261if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4262eval "cv_prog_cc_flag_$cache=yes"
4263else
4264eval "cv_prog_cc_flag_$cache=no"
4265fi
4266rm -f conftest conftest.o conftest.c
4267
4268fi
4269
4270if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4272$as_echo "yes" >&6; }
4273:
4274CFLAGS="$CFLAGS -O2"
4275else
4276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4277$as_echo "no" >&6; }
4278:
4279
4280fi
4281
4282fi
4283ac_ext=c
4284ac_cpp='$CPP $CPPFLAGS'
4285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4287ac_compiler_gnu=$ac_cv_c_compiler_gnu
4288if test -n "$ac_tool_prefix"; then
4289  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4290set dummy ${ac_tool_prefix}gcc; ac_word=$2
4291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4292$as_echo_n "checking for $ac_word... " >&6; }
4293if ${ac_cv_prog_CC+:} false; then :
4294  $as_echo_n "(cached) " >&6
4295else
4296  if test -n "$CC"; then
4297  ac_cv_prog_CC="$CC" # Let the user override the test.
4298else
4299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300for as_dir in $PATH
4301do
4302  IFS=$as_save_IFS
4303  test -z "$as_dir" && as_dir=.
4304    for ac_exec_ext in '' $ac_executable_extensions; do
4305  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4306    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4307    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4308    break 2
4309  fi
4310done
4311  done
4312IFS=$as_save_IFS
4313
4314fi
4315fi
4316CC=$ac_cv_prog_CC
4317if test -n "$CC"; then
4318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4319$as_echo "$CC" >&6; }
4320else
4321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322$as_echo "no" >&6; }
4323fi
4324
4325
4326fi
4327if test -z "$ac_cv_prog_CC"; then
4328  ac_ct_CC=$CC
4329  # Extract the first word of "gcc", so it can be a program name with args.
4330set dummy gcc; ac_word=$2
4331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4332$as_echo_n "checking for $ac_word... " >&6; }
4333if ${ac_cv_prog_ac_ct_CC+:} false; then :
4334  $as_echo_n "(cached) " >&6
4335else
4336  if test -n "$ac_ct_CC"; then
4337  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4338else
4339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340for as_dir in $PATH
4341do
4342  IFS=$as_save_IFS
4343  test -z "$as_dir" && as_dir=.
4344    for ac_exec_ext in '' $ac_executable_extensions; do
4345  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4346    ac_cv_prog_ac_ct_CC="gcc"
4347    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4348    break 2
4349  fi
4350done
4351  done
4352IFS=$as_save_IFS
4353
4354fi
4355fi
4356ac_ct_CC=$ac_cv_prog_ac_ct_CC
4357if test -n "$ac_ct_CC"; then
4358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4359$as_echo "$ac_ct_CC" >&6; }
4360else
4361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4362$as_echo "no" >&6; }
4363fi
4364
4365  if test "x$ac_ct_CC" = x; then
4366    CC=""
4367  else
4368    case $cross_compiling:$ac_tool_warned in
4369yes:)
4370{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4371$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4372ac_tool_warned=yes ;;
4373esac
4374    CC=$ac_ct_CC
4375  fi
4376else
4377  CC="$ac_cv_prog_CC"
4378fi
4379
4380if test -z "$CC"; then
4381          if test -n "$ac_tool_prefix"; then
4382    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4383set dummy ${ac_tool_prefix}cc; ac_word=$2
4384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4385$as_echo_n "checking for $ac_word... " >&6; }
4386if ${ac_cv_prog_CC+:} false; then :
4387  $as_echo_n "(cached) " >&6
4388else
4389  if test -n "$CC"; then
4390  ac_cv_prog_CC="$CC" # Let the user override the test.
4391else
4392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393for as_dir in $PATH
4394do
4395  IFS=$as_save_IFS
4396  test -z "$as_dir" && as_dir=.
4397    for ac_exec_ext in '' $ac_executable_extensions; do
4398  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4399    ac_cv_prog_CC="${ac_tool_prefix}cc"
4400    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4401    break 2
4402  fi
4403done
4404  done
4405IFS=$as_save_IFS
4406
4407fi
4408fi
4409CC=$ac_cv_prog_CC
4410if test -n "$CC"; then
4411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4412$as_echo "$CC" >&6; }
4413else
4414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4415$as_echo "no" >&6; }
4416fi
4417
4418
4419  fi
4420fi
4421if test -z "$CC"; then
4422  # Extract the first word of "cc", so it can be a program name with args.
4423set dummy cc; ac_word=$2
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4425$as_echo_n "checking for $ac_word... " >&6; }
4426if ${ac_cv_prog_CC+:} false; then :
4427  $as_echo_n "(cached) " >&6
4428else
4429  if test -n "$CC"; then
4430  ac_cv_prog_CC="$CC" # Let the user override the test.
4431else
4432  ac_prog_rejected=no
4433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434for as_dir in $PATH
4435do
4436  IFS=$as_save_IFS
4437  test -z "$as_dir" && as_dir=.
4438    for ac_exec_ext in '' $ac_executable_extensions; do
4439  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4440    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4441       ac_prog_rejected=yes
4442       continue
4443     fi
4444    ac_cv_prog_CC="cc"
4445    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4446    break 2
4447  fi
4448done
4449  done
4450IFS=$as_save_IFS
4451
4452if test $ac_prog_rejected = yes; then
4453  # We found a bogon in the path, so make sure we never use it.
4454  set dummy $ac_cv_prog_CC
4455  shift
4456  if test $# != 0; then
4457    # We chose a different compiler from the bogus one.
4458    # However, it has the same basename, so the bogon will be chosen
4459    # first if we set CC to just the basename; use the full file name.
4460    shift
4461    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4462  fi
4463fi
4464fi
4465fi
4466CC=$ac_cv_prog_CC
4467if test -n "$CC"; then
4468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4469$as_echo "$CC" >&6; }
4470else
4471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472$as_echo "no" >&6; }
4473fi
4474
4475
4476fi
4477if test -z "$CC"; then
4478  if test -n "$ac_tool_prefix"; then
4479  for ac_prog in cl.exe
4480  do
4481    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4482set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4484$as_echo_n "checking for $ac_word... " >&6; }
4485if ${ac_cv_prog_CC+:} false; then :
4486  $as_echo_n "(cached) " >&6
4487else
4488  if test -n "$CC"; then
4489  ac_cv_prog_CC="$CC" # Let the user override the test.
4490else
4491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492for as_dir in $PATH
4493do
4494  IFS=$as_save_IFS
4495  test -z "$as_dir" && as_dir=.
4496    for ac_exec_ext in '' $ac_executable_extensions; do
4497  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4498    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4499    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4500    break 2
4501  fi
4502done
4503  done
4504IFS=$as_save_IFS
4505
4506fi
4507fi
4508CC=$ac_cv_prog_CC
4509if test -n "$CC"; then
4510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4511$as_echo "$CC" >&6; }
4512else
4513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4514$as_echo "no" >&6; }
4515fi
4516
4517
4518    test -n "$CC" && break
4519  done
4520fi
4521if test -z "$CC"; then
4522  ac_ct_CC=$CC
4523  for ac_prog in cl.exe
4524do
4525  # Extract the first word of "$ac_prog", so it can be a program name with args.
4526set dummy $ac_prog; ac_word=$2
4527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4528$as_echo_n "checking for $ac_word... " >&6; }
4529if ${ac_cv_prog_ac_ct_CC+:} false; then :
4530  $as_echo_n "(cached) " >&6
4531else
4532  if test -n "$ac_ct_CC"; then
4533  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4534else
4535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536for as_dir in $PATH
4537do
4538  IFS=$as_save_IFS
4539  test -z "$as_dir" && as_dir=.
4540    for ac_exec_ext in '' $ac_executable_extensions; do
4541  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4542    ac_cv_prog_ac_ct_CC="$ac_prog"
4543    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4544    break 2
4545  fi
4546done
4547  done
4548IFS=$as_save_IFS
4549
4550fi
4551fi
4552ac_ct_CC=$ac_cv_prog_ac_ct_CC
4553if test -n "$ac_ct_CC"; then
4554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4555$as_echo "$ac_ct_CC" >&6; }
4556else
4557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4558$as_echo "no" >&6; }
4559fi
4560
4561
4562  test -n "$ac_ct_CC" && break
4563done
4564
4565  if test "x$ac_ct_CC" = x; then
4566    CC=""
4567  else
4568    case $cross_compiling:$ac_tool_warned in
4569yes:)
4570{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4571$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4572ac_tool_warned=yes ;;
4573esac
4574    CC=$ac_ct_CC
4575  fi
4576fi
4577
4578fi
4579
4580
4581test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4582$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4583as_fn_error $? "no acceptable C compiler found in \$PATH
4584See \`config.log' for more details" "$LINENO" 5; }
4585
4586# Provide some information about the compiler.
4587$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4588set X $ac_compile
4589ac_compiler=$2
4590for ac_option in --version -v -V -qversion; do
4591  { { ac_try="$ac_compiler $ac_option >&5"
4592case "(($ac_try" in
4593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4594  *) ac_try_echo=$ac_try;;
4595esac
4596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4597$as_echo "$ac_try_echo"; } >&5
4598  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4599  ac_status=$?
4600  if test -s conftest.err; then
4601    sed '10a\
4602... rest of stderr output deleted ...
4603         10q' conftest.err >conftest.er1
4604    cat conftest.er1 >&5
4605  fi
4606  rm -f conftest.er1 conftest.err
4607  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4608  test $ac_status = 0; }
4609done
4610
4611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4612$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4613if ${ac_cv_c_compiler_gnu+:} false; then :
4614  $as_echo_n "(cached) " >&6
4615else
4616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617/* end confdefs.h.  */
4618
4619int
4620main ()
4621{
4622#ifndef __GNUC__
4623       choke me
4624#endif
4625
4626  ;
4627  return 0;
4628}
4629_ACEOF
4630if ac_fn_c_try_compile "$LINENO"; then :
4631  ac_compiler_gnu=yes
4632else
4633  ac_compiler_gnu=no
4634fi
4635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4636ac_cv_c_compiler_gnu=$ac_compiler_gnu
4637
4638fi
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4640$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4641if test $ac_compiler_gnu = yes; then
4642  GCC=yes
4643else
4644  GCC=
4645fi
4646ac_test_CFLAGS=${CFLAGS+set}
4647ac_save_CFLAGS=$CFLAGS
4648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4649$as_echo_n "checking whether $CC accepts -g... " >&6; }
4650if ${ac_cv_prog_cc_g+:} false; then :
4651  $as_echo_n "(cached) " >&6
4652else
4653  ac_save_c_werror_flag=$ac_c_werror_flag
4654   ac_c_werror_flag=yes
4655   ac_cv_prog_cc_g=no
4656   CFLAGS="-g"
4657   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4658/* end confdefs.h.  */
4659
4660int
4661main ()
4662{
4663
4664  ;
4665  return 0;
4666}
4667_ACEOF
4668if ac_fn_c_try_compile "$LINENO"; then :
4669  ac_cv_prog_cc_g=yes
4670else
4671  CFLAGS=""
4672      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4673/* end confdefs.h.  */
4674
4675int
4676main ()
4677{
4678
4679  ;
4680  return 0;
4681}
4682_ACEOF
4683if ac_fn_c_try_compile "$LINENO"; then :
4684
4685else
4686  ac_c_werror_flag=$ac_save_c_werror_flag
4687	 CFLAGS="-g"
4688	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4689/* end confdefs.h.  */
4690
4691int
4692main ()
4693{
4694
4695  ;
4696  return 0;
4697}
4698_ACEOF
4699if ac_fn_c_try_compile "$LINENO"; then :
4700  ac_cv_prog_cc_g=yes
4701fi
4702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4703fi
4704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4705fi
4706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4707   ac_c_werror_flag=$ac_save_c_werror_flag
4708fi
4709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4710$as_echo "$ac_cv_prog_cc_g" >&6; }
4711if test "$ac_test_CFLAGS" = set; then
4712  CFLAGS=$ac_save_CFLAGS
4713elif test $ac_cv_prog_cc_g = yes; then
4714  if test "$GCC" = yes; then
4715    CFLAGS="-g -O2"
4716  else
4717    CFLAGS="-g"
4718  fi
4719else
4720  if test "$GCC" = yes; then
4721    CFLAGS="-O2"
4722  else
4723    CFLAGS=
4724  fi
4725fi
4726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4727$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4728if ${ac_cv_prog_cc_c89+:} false; then :
4729  $as_echo_n "(cached) " >&6
4730else
4731  ac_cv_prog_cc_c89=no
4732ac_save_CC=$CC
4733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4734/* end confdefs.h.  */
4735#include <stdarg.h>
4736#include <stdio.h>
4737#include <sys/types.h>
4738#include <sys/stat.h>
4739/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4740struct buf { int x; };
4741FILE * (*rcsopen) (struct buf *, struct stat *, int);
4742static char *e (p, i)
4743     char **p;
4744     int i;
4745{
4746  return p[i];
4747}
4748static char *f (char * (*g) (char **, int), char **p, ...)
4749{
4750  char *s;
4751  va_list v;
4752  va_start (v,p);
4753  s = g (p, va_arg (v,int));
4754  va_end (v);
4755  return s;
4756}
4757
4758/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4759   function prototypes and stuff, but not '\xHH' hex character constants.
4760   These don't provoke an error unfortunately, instead are silently treated
4761   as 'x'.  The following induces an error, until -std is added to get
4762   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4763   array size at least.  It's necessary to write '\x00'==0 to get something
4764   that's true only with -std.  */
4765int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4766
4767/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4768   inside strings and character constants.  */
4769#define FOO(x) 'x'
4770int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4771
4772int test (int i, double x);
4773struct s1 {int (*f) (int a);};
4774struct s2 {int (*f) (double a);};
4775int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4776int argc;
4777char **argv;
4778int
4779main ()
4780{
4781return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4782  ;
4783  return 0;
4784}
4785_ACEOF
4786for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4787	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4788do
4789  CC="$ac_save_CC $ac_arg"
4790  if ac_fn_c_try_compile "$LINENO"; then :
4791  ac_cv_prog_cc_c89=$ac_arg
4792fi
4793rm -f core conftest.err conftest.$ac_objext
4794  test "x$ac_cv_prog_cc_c89" != "xno" && break
4795done
4796rm -f conftest.$ac_ext
4797CC=$ac_save_CC
4798
4799fi
4800# AC_CACHE_VAL
4801case "x$ac_cv_prog_cc_c89" in
4802  x)
4803    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4804$as_echo "none needed" >&6; } ;;
4805  xno)
4806    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4807$as_echo "unsupported" >&6; } ;;
4808  *)
4809    CC="$CC $ac_cv_prog_cc_c89"
4810    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4811$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4812esac
4813if test "x$ac_cv_prog_cc_c89" != xno; then :
4814
4815fi
4816
4817ac_ext=c
4818ac_cpp='$CPP $CPPFLAGS'
4819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4821ac_compiler_gnu=$ac_cv_c_compiler_gnu
4822
4823
4824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
4825$as_echo_n "checking $CC dependency flag... " >&6; }
4826echo 'void f(){}' >conftest.c
4827if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4828	DEPFLAG="-MM"
4829else
4830  if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4831	DEPFLAG="-xM1"
4832  else
4833	DEPFLAG="-MM"  # dunno do something
4834  fi
4835fi
4836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
4837$as_echo "$DEPFLAG" >&6; }
4838rm -f conftest.c
4839
4840
4841
4842
4843
4844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
4845$as_echo_n "checking whether $CC supports -Werror... " >&6; }
4846cache=`echo Werror | sed 'y%.=/+-%___p_%'`
4847if eval \${cv_prog_cc_flag_$cache+:} false; then :
4848  $as_echo_n "(cached) " >&6
4849else
4850
4851echo 'void f(){}' >conftest.c
4852if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
4853eval "cv_prog_cc_flag_$cache=yes"
4854else
4855eval "cv_prog_cc_flag_$cache=no"
4856fi
4857rm -f conftest conftest.o conftest.c
4858
4859fi
4860
4861if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4863$as_echo "yes" >&6; }
4864:
4865ERRFLAG="-Werror"
4866else
4867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4868$as_echo "no" >&6; }
4869:
4870ERRFLAG="-errwarn"
4871fi
4872
4873
4874
4875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
4876$as_echo_n "checking whether $CC supports -Wall... " >&6; }
4877cache=`echo Wall | sed 'y%.=/+-%___p_%'`
4878if eval \${cv_prog_cc_flag_$cache+:} false; then :
4879  $as_echo_n "(cached) " >&6
4880else
4881
4882echo 'void f(){}' >conftest.c
4883if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
4884eval "cv_prog_cc_flag_$cache=yes"
4885else
4886eval "cv_prog_cc_flag_$cache=no"
4887fi
4888rm -f conftest conftest.o conftest.c
4889
4890fi
4891
4892if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4894$as_echo "yes" >&6; }
4895:
4896ERRFLAG="$ERRFLAG -Wall"
4897else
4898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899$as_echo "no" >&6; }
4900:
4901ERRFLAG="$ERRFLAG -errfmt"
4902fi
4903
4904
4905
4906
4907
4908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
4909$as_echo_n "checking whether $CC supports -std=c99... " >&6; }
4910cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
4911if eval \${cv_prog_cc_flag_$cache+:} false; then :
4912  $as_echo_n "(cached) " >&6
4913else
4914
4915echo 'void f(){}' >conftest.c
4916if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
4917eval "cv_prog_cc_flag_$cache=yes"
4918else
4919eval "cv_prog_cc_flag_$cache=no"
4920fi
4921rm -f conftest conftest.o conftest.c
4922
4923fi
4924
4925if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4927$as_echo "yes" >&6; }
4928:
4929C99FLAG="-std=c99"
4930else
4931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4932$as_echo "no" >&6; }
4933:
4934
4935fi
4936
4937
4938
4939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
4940$as_echo_n "checking whether $CC supports -xc99... " >&6; }
4941cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
4942if eval \${cv_prog_cc_flag_$cache+:} false; then :
4943  $as_echo_n "(cached) " >&6
4944else
4945
4946echo 'void f(){}' >conftest.c
4947if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
4948eval "cv_prog_cc_flag_$cache=yes"
4949else
4950eval "cv_prog_cc_flag_$cache=no"
4951fi
4952rm -f conftest conftest.o conftest.c
4953
4954fi
4955
4956if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4958$as_echo "yes" >&6; }
4959:
4960C99FLAG="-xc99"
4961else
4962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4963$as_echo "no" >&6; }
4964:
4965
4966fi
4967
4968
4969for ac_header in getopt.h time.h
4970do :
4971  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4972ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4973"
4974if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4975  cat >>confdefs.h <<_ACEOF
4976#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4977_ACEOF
4978
4979fi
4980
4981done
4982
4983
4984
4985
4986
4987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC" >&5
4988$as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC... " >&6; }
4989cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" | $as_tr_sh`
4990if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
4991  $as_echo_n "(cached) " >&6
4992else
4993
4994echo '
4995#include "confdefs.h"
4996#include <stdlib.h>
4997#include <ctype.h>
4998#include <sys/time.h>
4999#ifdef HAVE_TIME_H
5000#include <time.h>
5001#endif
5002#include <unistd.h>
5003#include <netdb.h>
5004#ifdef HAVE_GETOPT_H
5005#include <getopt.h>
5006#endif
5007
5008int test() {
5009	int a;
5010	char **opts = NULL;
5011	struct timeval tv;
5012	char *t;
5013	time_t time = 0;
5014	char *buf = NULL;
5015	const char* str = NULL;
5016	struct msghdr msg;
5017	msg.msg_control = 0;
5018	t = ctime_r(&time, buf);
5019	tv.tv_usec = 10;
5020	srandom(32);
5021	a = getopt(2, opts, "a");
5022	a = isascii(32);
5023	str = gai_strerror(0);
5024	if(str && t && tv.tv_usec && msg.msg_control)
5025		a = 0;
5026	return a;
5027}
5028' > conftest.c
5029echo 'void f(){}' >>conftest.c
5030if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5031eval "cv_prog_cc_flag_needed_$cache=no"
5032else
5033
5034if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5035eval "cv_prog_cc_flag_needed_$cache=yes"
5036else
5037eval "cv_prog_cc_flag_needed_$cache=fail"
5038#echo 'Test with flag fails too!'
5039#cat conftest.c
5040#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5041#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5042#exit 1
5043fi
5044
5045fi
5046rm -f conftest conftest.c conftest.o
5047
5048fi
5049
5050if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5052$as_echo "yes" >&6; }
5053:
5054CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE"
5055else
5056if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5058$as_echo "no" >&6; }
5059#echo 'Test with flag is no!'
5060#cat conftest.c
5061#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5062#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5063#exit 1
5064:
5065
5066else
5067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5068$as_echo "failed" >&6; }
5069:
5070
5071fi
5072fi
5073
5074
5075
5076
5077
5078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC" >&5
5079$as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC... " >&6; }
5080cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh`
5081if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5082  $as_echo_n "(cached) " >&6
5083else
5084
5085echo '
5086#include "confdefs.h"
5087#include <stdlib.h>
5088#include <ctype.h>
5089#include <sys/time.h>
5090#ifdef HAVE_TIME_H
5091#include <time.h>
5092#endif
5093#include <unistd.h>
5094#include <netdb.h>
5095#ifdef HAVE_GETOPT_H
5096#include <getopt.h>
5097#endif
5098
5099int test() {
5100	int a;
5101	char **opts = NULL;
5102	struct timeval tv;
5103	char *t;
5104	time_t time = 0;
5105	char *buf = NULL;
5106	const char* str = NULL;
5107	struct msghdr msg;
5108	msg.msg_control = 0;
5109	t = ctime_r(&time, buf);
5110	tv.tv_usec = 10;
5111	srandom(32);
5112	a = getopt(2, opts, "a");
5113	a = isascii(32);
5114	str = gai_strerror(0);
5115	if(str && t && tv.tv_usec && msg.msg_control)
5116		a = 0;
5117	return a;
5118}
5119' > conftest.c
5120echo 'void f(){}' >>conftest.c
5121if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5122eval "cv_prog_cc_flag_needed_$cache=no"
5123else
5124
5125if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5126eval "cv_prog_cc_flag_needed_$cache=yes"
5127else
5128eval "cv_prog_cc_flag_needed_$cache=fail"
5129#echo 'Test with flag fails too!'
5130#cat conftest.c
5131#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5132#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5133#exit 1
5134fi
5135
5136fi
5137rm -f conftest conftest.c conftest.o
5138
5139fi
5140
5141if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5143$as_echo "yes" >&6; }
5144:
5145CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
5146else
5147if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5149$as_echo "no" >&6; }
5150#echo 'Test with flag is no!'
5151#cat conftest.c
5152#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5153#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5154#exit 1
5155:
5156
5157else
5158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5159$as_echo "failed" >&6; }
5160:
5161
5162fi
5163fi
5164
5165
5166
5167
5168
5169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
5170$as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
5171cache=`$as_echo "$C99FLAG" | $as_tr_sh`
5172if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5173  $as_echo_n "(cached) " >&6
5174else
5175
5176echo '
5177#include <stdbool.h>
5178#include <ctype.h>
5179int test() {
5180        int a = 0;
5181        return a;
5182}
5183' > conftest.c
5184echo 'void f(){}' >>conftest.c
5185if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5186eval "cv_prog_cc_flag_needed_$cache=no"
5187else
5188
5189if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
5190eval "cv_prog_cc_flag_needed_$cache=yes"
5191else
5192eval "cv_prog_cc_flag_needed_$cache=fail"
5193#echo 'Test with flag fails too!'
5194#cat conftest.c
5195#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5196#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5197#exit 1
5198fi
5199
5200fi
5201rm -f conftest conftest.c conftest.o
5202
5203fi
5204
5205if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5207$as_echo "yes" >&6; }
5208:
5209CFLAGS="$CFLAGS $C99FLAG"
5210else
5211if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213$as_echo "no" >&6; }
5214#echo 'Test with flag is no!'
5215#cat conftest.c
5216#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5217#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5218#exit 1
5219:
5220
5221else
5222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5223$as_echo "failed" >&6; }
5224:
5225
5226fi
5227fi
5228
5229
5230
5231
5232
5233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE as a flag for $CC" >&5
5234$as_echo_n "checking whether we need -D_BSD_SOURCE as a flag for $CC... " >&6; }
5235cache=_D_BSD_SOURCE
5236if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5237  $as_echo_n "(cached) " >&6
5238else
5239
5240echo '
5241#include <ctype.h>
5242
5243int test() {
5244        int a;
5245        a = isascii(32);
5246        return a;
5247}
5248' > conftest.c
5249echo 'void f(){}' >>conftest.c
5250if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5251eval "cv_prog_cc_flag_needed_$cache=no"
5252else
5253
5254if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5255eval "cv_prog_cc_flag_needed_$cache=yes"
5256else
5257eval "cv_prog_cc_flag_needed_$cache=fail"
5258#echo 'Test with flag fails too!'
5259#cat conftest.c
5260#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1"
5261#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`
5262#exit 1
5263fi
5264
5265fi
5266rm -f conftest conftest.c conftest.o
5267
5268fi
5269
5270if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5272$as_echo "yes" >&6; }
5273:
5274CFLAGS="$CFLAGS -D_BSD_SOURCE"
5275else
5276if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5278$as_echo "no" >&6; }
5279#echo 'Test with flag is no!'
5280#cat conftest.c
5281#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1"
5282#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`
5283#exit 1
5284:
5285
5286else
5287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5288$as_echo "failed" >&6; }
5289:
5290
5291fi
5292fi
5293
5294
5295
5296
5297
5298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
5299$as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
5300cache=_D_GNU_SOURCE
5301if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5302  $as_echo_n "(cached) " >&6
5303else
5304
5305echo '
5306#include <netinet/in.h>
5307
5308int test() {
5309        struct in6_pktinfo inf;
5310	int a = (int)sizeof(inf);
5311        return a;
5312}
5313' > conftest.c
5314echo 'void f(){}' >>conftest.c
5315if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5316eval "cv_prog_cc_flag_needed_$cache=no"
5317else
5318
5319if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5320eval "cv_prog_cc_flag_needed_$cache=yes"
5321else
5322eval "cv_prog_cc_flag_needed_$cache=fail"
5323#echo 'Test with flag fails too!'
5324#cat conftest.c
5325#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5326#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5327#exit 1
5328fi
5329
5330fi
5331rm -f conftest conftest.c conftest.o
5332
5333fi
5334
5335if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5337$as_echo "yes" >&6; }
5338:
5339CFLAGS="$CFLAGS -D_GNU_SOURCE"
5340else
5341if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5343$as_echo "no" >&6; }
5344#echo 'Test with flag is no!'
5345#cat conftest.c
5346#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5347#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5348#exit 1
5349:
5350
5351else
5352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5353$as_echo "failed" >&6; }
5354:
5355
5356fi
5357fi
5358
5359
5360# check again for GNU_SOURCE for setresgid. May fail if setresgid
5361# is not available at all. -D_FRSRESGID is to make this check unique.
5362# otherwise we would get the previous cached result.
5363
5364
5365
5366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
5367$as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
5368cache=_D_GNU_SOURCE__D_FRSRESGID
5369if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5370  $as_echo_n "(cached) " >&6
5371else
5372
5373echo '
5374#include <unistd.h>
5375
5376int test() {
5377	int a = setresgid(0,0,0);
5378	a = setresuid(0,0,0);
5379        return a;
5380}
5381' > conftest.c
5382echo 'void f(){}' >>conftest.c
5383if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5384eval "cv_prog_cc_flag_needed_$cache=no"
5385else
5386
5387if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
5388eval "cv_prog_cc_flag_needed_$cache=yes"
5389else
5390eval "cv_prog_cc_flag_needed_$cache=fail"
5391#echo 'Test with flag fails too!'
5392#cat conftest.c
5393#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5394#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5395#exit 1
5396fi
5397
5398fi
5399rm -f conftest conftest.c conftest.o
5400
5401fi
5402
5403if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5405$as_echo "yes" >&6; }
5406:
5407CFLAGS="$CFLAGS -D_GNU_SOURCE"
5408else
5409if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5411$as_echo "no" >&6; }
5412#echo 'Test with flag is no!'
5413#cat conftest.c
5414#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5415#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5416#exit 1
5417:
5418
5419else
5420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5421$as_echo "failed" >&6; }
5422:
5423
5424fi
5425fi
5426
5427
5428
5429
5430
5431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
5432$as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
5433cache=`$as_echo "-D_POSIX_C_SOURCE=200112" | $as_tr_sh`
5434if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5435  $as_echo_n "(cached) " >&6
5436else
5437
5438echo '
5439#include "confdefs.h"
5440#ifdef HAVE_TIME_H
5441#include <time.h>
5442#endif
5443#include <netdb.h>
5444
5445int test() {
5446        int a = 0;
5447        char *t;
5448        time_t time = 0;
5449        char *buf = NULL;
5450	const char* str = NULL;
5451        t = ctime_r(&time, buf);
5452	str = gai_strerror(0);
5453	if(t && str)
5454		a = 0;
5455        return a;
5456}
5457' > conftest.c
5458echo 'void f(){}' >>conftest.c
5459if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5460eval "cv_prog_cc_flag_needed_$cache=no"
5461else
5462
5463if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
5464eval "cv_prog_cc_flag_needed_$cache=yes"
5465else
5466eval "cv_prog_cc_flag_needed_$cache=fail"
5467#echo 'Test with flag fails too!'
5468#cat conftest.c
5469#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5470#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5471#exit 1
5472fi
5473
5474fi
5475rm -f conftest conftest.c conftest.o
5476
5477fi
5478
5479if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5481$as_echo "yes" >&6; }
5482:
5483CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
5484else
5485if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487$as_echo "no" >&6; }
5488#echo 'Test with flag is no!'
5489#cat conftest.c
5490#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5491#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5492#exit 1
5493:
5494
5495else
5496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5497$as_echo "failed" >&6; }
5498:
5499
5500fi
5501fi
5502
5503
5504
5505
5506
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
5508$as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
5509cache=_D__EXTENSIONS__
5510if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5511  $as_echo_n "(cached) " >&6
5512else
5513
5514echo '
5515#include "confdefs.h"
5516#include <stdlib.h>
5517#include <ctype.h>
5518#include <sys/time.h>
5519#ifdef HAVE_TIME_H
5520#include <time.h>
5521#endif
5522#include <unistd.h>
5523#ifdef HAVE_GETOPT_H
5524#include <getopt.h>
5525#endif
5526
5527int test() {
5528        int a;
5529        char **opts = NULL;
5530        struct timeval tv;
5531        tv.tv_usec = 10;
5532        srandom(32);
5533        a = getopt(2, opts, "a");
5534        a = isascii(32);
5535	if(tv.tv_usec)
5536		a = 0;
5537        return a;
5538}
5539' > conftest.c
5540echo 'void f(){}' >>conftest.c
5541if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5542eval "cv_prog_cc_flag_needed_$cache=no"
5543else
5544
5545if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
5546eval "cv_prog_cc_flag_needed_$cache=yes"
5547else
5548eval "cv_prog_cc_flag_needed_$cache=fail"
5549#echo 'Test with flag fails too!'
5550#cat conftest.c
5551#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5552#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5553#exit 1
5554fi
5555
5556fi
5557rm -f conftest conftest.c conftest.o
5558
5559fi
5560
5561if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5563$as_echo "yes" >&6; }
5564:
5565CFLAGS="$CFLAGS -D__EXTENSIONS__"
5566else
5567if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5569$as_echo "no" >&6; }
5570#echo 'Test with flag is no!'
5571#cat conftest.c
5572#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5573#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5574#exit 1
5575:
5576
5577else
5578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5579$as_echo "failed" >&6; }
5580:
5581
5582fi
5583fi
5584
5585
5586
5587
5588# debug mode flags warnings
5589# Check whether --enable-checking was given.
5590if test "${enable_checking+set}" = set; then :
5591  enableval=$enable_checking;
5592fi
5593
5594# Check whether --enable-debug was given.
5595if test "${enable_debug+set}" = set; then :
5596  enableval=$enable_debug;
5597fi
5598
5599if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug";
5600else debug_enabled="$enable_checking"; fi
5601
5602case "$debug_enabled" in
5603        yes)
5604
5605
5606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
5607$as_echo_n "checking whether $CC supports -W... " >&6; }
5608cache=`echo W | sed 'y%.=/+-%___p_%'`
5609if eval \${cv_prog_cc_flag_$cache+:} false; then :
5610  $as_echo_n "(cached) " >&6
5611else
5612
5613echo 'void f(){}' >conftest.c
5614if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
5615eval "cv_prog_cc_flag_$cache=yes"
5616else
5617eval "cv_prog_cc_flag_$cache=no"
5618fi
5619rm -f conftest conftest.o conftest.c
5620
5621fi
5622
5623if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5625$as_echo "yes" >&6; }
5626:
5627CFLAGS="$CFLAGS -W"
5628else
5629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5630$as_echo "no" >&6; }
5631:
5632
5633fi
5634
5635
5636
5637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5638$as_echo_n "checking whether $CC supports -Wall... " >&6; }
5639cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5640if eval \${cv_prog_cc_flag_$cache+:} false; then :
5641  $as_echo_n "(cached) " >&6
5642else
5643
5644echo 'void f(){}' >conftest.c
5645if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5646eval "cv_prog_cc_flag_$cache=yes"
5647else
5648eval "cv_prog_cc_flag_$cache=no"
5649fi
5650rm -f conftest conftest.o conftest.c
5651
5652fi
5653
5654if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5656$as_echo "yes" >&6; }
5657:
5658CFLAGS="$CFLAGS -Wall"
5659else
5660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5661$as_echo "no" >&6; }
5662:
5663
5664fi
5665
5666
5667
5668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
5669$as_echo_n "checking whether $CC supports -Wextra... " >&6; }
5670cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
5671if eval \${cv_prog_cc_flag_$cache+:} false; then :
5672  $as_echo_n "(cached) " >&6
5673else
5674
5675echo 'void f(){}' >conftest.c
5676if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then
5677eval "cv_prog_cc_flag_$cache=yes"
5678else
5679eval "cv_prog_cc_flag_$cache=no"
5680fi
5681rm -f conftest conftest.o conftest.c
5682
5683fi
5684
5685if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5687$as_echo "yes" >&6; }
5688:
5689CFLAGS="$CFLAGS -Wextra"
5690else
5691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692$as_echo "no" >&6; }
5693:
5694
5695fi
5696
5697
5698
5699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
5700$as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
5701cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
5702if eval \${cv_prog_cc_flag_$cache+:} false; then :
5703  $as_echo_n "(cached) " >&6
5704else
5705
5706echo 'void f(){}' >conftest.c
5707if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
5708eval "cv_prog_cc_flag_$cache=yes"
5709else
5710eval "cv_prog_cc_flag_$cache=no"
5711fi
5712rm -f conftest conftest.o conftest.c
5713
5714fi
5715
5716if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5718$as_echo "yes" >&6; }
5719:
5720CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5721else
5722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5723$as_echo "no" >&6; }
5724:
5725
5726fi
5727
5728
5729$as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h
5730
5731		;;
5732	no|*)
5733		# nothing to do.
5734		;;
5735esac
5736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
5737$as_echo_n "checking if $CC supports -flto... " >&6; }
5738BAKCFLAGS="$CFLAGS"
5739CFLAGS="$CFLAGS -flto"
5740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5741/* end confdefs.h.  */
5742
5743int
5744main ()
5745{
5746
5747  ;
5748  return 0;
5749}
5750_ACEOF
5751if ac_fn_c_try_link "$LINENO"; then :
5752
5753    if $CC $CFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
5754	CFLAGS="$BAKCFLAGS"
5755	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5756$as_echo "no" >&6; }
5757    else
5758	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5759$as_echo "yes" >&6; }
5760    fi
5761    rm -f conftest conftest.c conftest.o
5762
5763else
5764  CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5765$as_echo "no" >&6; }
5766fi
5767rm -f core conftest.err conftest.$ac_objext \
5768    conftest$ac_exeext conftest.$ac_ext
5769
5770
5771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5772$as_echo_n "checking for inline... " >&6; }
5773if ${ac_cv_c_inline+:} false; then :
5774  $as_echo_n "(cached) " >&6
5775else
5776  ac_cv_c_inline=no
5777for ac_kw in inline __inline__ __inline; do
5778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5779/* end confdefs.h.  */
5780#ifndef __cplusplus
5781typedef int foo_t;
5782static $ac_kw foo_t static_foo () {return 0; }
5783$ac_kw foo_t foo () {return 0; }
5784#endif
5785
5786_ACEOF
5787if ac_fn_c_try_compile "$LINENO"; then :
5788  ac_cv_c_inline=$ac_kw
5789fi
5790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5791  test "$ac_cv_c_inline" != no && break
5792done
5793
5794fi
5795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5796$as_echo "$ac_cv_c_inline" >&6; }
5797
5798case $ac_cv_c_inline in
5799  inline | yes) ;;
5800  *)
5801    case $ac_cv_c_inline in
5802      no) ac_val=;;
5803      *) ac_val=$ac_cv_c_inline;;
5804    esac
5805    cat >>confdefs.h <<_ACEOF
5806#ifndef __cplusplus
5807#define inline $ac_val
5808#endif
5809_ACEOF
5810    ;;
5811esac
5812
5813
5814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
5815$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
5816if ${ac_cv_c_format_attribute+:} false; then :
5817  $as_echo_n "(cached) " >&6
5818else
5819  ac_cv_c_format_attribute=no
5820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5821/* end confdefs.h.  */
5822#include <stdio.h>
5823void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
5824void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
5825
5826int
5827main ()
5828{
5829
5830   f ("%s", "str");
5831
5832  ;
5833  return 0;
5834}
5835_ACEOF
5836if ac_fn_c_try_compile "$LINENO"; then :
5837  ac_cv_c_format_attribute="yes"
5838else
5839  ac_cv_c_format_attribute="no"
5840fi
5841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5842
5843fi
5844
5845
5846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
5847$as_echo "$ac_cv_c_format_attribute" >&6; }
5848if test $ac_cv_c_format_attribute = yes; then
5849
5850$as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
5851
5852fi
5853
5854
5855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
5856$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
5857if ${ac_cv_c_unused_attribute+:} false; then :
5858  $as_echo_n "(cached) " >&6
5859else
5860  ac_cv_c_unused_attribute=no
5861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5862/* end confdefs.h.  */
5863#include <stdio.h>
5864void f (char *u __attribute__((unused)));
5865
5866int
5867main ()
5868{
5869
5870   f ("x");
5871
5872  ;
5873  return 0;
5874}
5875_ACEOF
5876if ac_fn_c_try_compile "$LINENO"; then :
5877  ac_cv_c_unused_attribute="yes"
5878else
5879  ac_cv_c_unused_attribute="no"
5880fi
5881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5882
5883fi
5884
5885
5886
5887
5888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
5889$as_echo "$ac_cv_c_unused_attribute" >&6; }
5890if test $ac_cv_c_unused_attribute = yes; then
5891
5892$as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
5893
5894fi
5895
5896
5897if test "$srcdir" != "."; then
5898	CPPFLAGS="$CPPFLAGS -I$srcdir"
5899fi
5900
5901
5902
5903for ac_prog in flex lex
5904do
5905  # Extract the first word of "$ac_prog", so it can be a program name with args.
5906set dummy $ac_prog; ac_word=$2
5907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5908$as_echo_n "checking for $ac_word... " >&6; }
5909if ${ac_cv_prog_LEX+:} false; then :
5910  $as_echo_n "(cached) " >&6
5911else
5912  if test -n "$LEX"; then
5913  ac_cv_prog_LEX="$LEX" # Let the user override the test.
5914else
5915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916for as_dir in $PATH
5917do
5918  IFS=$as_save_IFS
5919  test -z "$as_dir" && as_dir=.
5920    for ac_exec_ext in '' $ac_executable_extensions; do
5921  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5922    ac_cv_prog_LEX="$ac_prog"
5923    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5924    break 2
5925  fi
5926done
5927  done
5928IFS=$as_save_IFS
5929
5930fi
5931fi
5932LEX=$ac_cv_prog_LEX
5933if test -n "$LEX"; then
5934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5935$as_echo "$LEX" >&6; }
5936else
5937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5938$as_echo "no" >&6; }
5939fi
5940
5941
5942  test -n "$LEX" && break
5943done
5944test -n "$LEX" || LEX=":"
5945
5946if test "x$LEX" != "x:"; then
5947  cat >conftest.l <<_ACEOF
5948%%
5949a { ECHO; }
5950b { REJECT; }
5951c { yymore (); }
5952d { yyless (1); }
5953e { yyless (input () != 0); }
5954f { unput (yytext[0]); }
5955. { BEGIN INITIAL; }
5956%%
5957#ifdef YYTEXT_POINTER
5958extern char *yytext;
5959#endif
5960int
5961main (void)
5962{
5963  return ! yylex () + ! yywrap ();
5964}
5965_ACEOF
5966{ { ac_try="$LEX conftest.l"
5967case "(($ac_try" in
5968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5969  *) ac_try_echo=$ac_try;;
5970esac
5971eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5972$as_echo "$ac_try_echo"; } >&5
5973  (eval "$LEX conftest.l") 2>&5
5974  ac_status=$?
5975  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5976  test $ac_status = 0; }
5977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5978$as_echo_n "checking lex output file root... " >&6; }
5979if ${ac_cv_prog_lex_root+:} false; then :
5980  $as_echo_n "(cached) " >&6
5981else
5982
5983if test -f lex.yy.c; then
5984  ac_cv_prog_lex_root=lex.yy
5985elif test -f lexyy.c; then
5986  ac_cv_prog_lex_root=lexyy
5987else
5988  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
5989fi
5990fi
5991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5992$as_echo "$ac_cv_prog_lex_root" >&6; }
5993LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5994
5995if test -z "${LEXLIB+set}"; then
5996  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5997$as_echo_n "checking lex library... " >&6; }
5998if ${ac_cv_lib_lex+:} false; then :
5999  $as_echo_n "(cached) " >&6
6000else
6001
6002    ac_save_LIBS=$LIBS
6003    ac_cv_lib_lex='none needed'
6004    for ac_lib in '' -lfl -ll; do
6005      LIBS="$ac_lib $ac_save_LIBS"
6006      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007/* end confdefs.h.  */
6008`cat $LEX_OUTPUT_ROOT.c`
6009_ACEOF
6010if ac_fn_c_try_link "$LINENO"; then :
6011  ac_cv_lib_lex=$ac_lib
6012fi
6013rm -f core conftest.err conftest.$ac_objext \
6014    conftest$ac_exeext conftest.$ac_ext
6015      test "$ac_cv_lib_lex" != 'none needed' && break
6016    done
6017    LIBS=$ac_save_LIBS
6018
6019fi
6020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6021$as_echo "$ac_cv_lib_lex" >&6; }
6022  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6023fi
6024
6025
6026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6027$as_echo_n "checking whether yytext is a pointer... " >&6; }
6028if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
6029  $as_echo_n "(cached) " >&6
6030else
6031  # POSIX says lex can declare yytext either as a pointer or an array; the
6032# default is implementation-dependent.  Figure out which it is, since
6033# not all implementations provide the %pointer and %array declarations.
6034ac_cv_prog_lex_yytext_pointer=no
6035ac_save_LIBS=$LIBS
6036LIBS="$LEXLIB $ac_save_LIBS"
6037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6038/* end confdefs.h.  */
6039
6040  #define YYTEXT_POINTER 1
6041`cat $LEX_OUTPUT_ROOT.c`
6042_ACEOF
6043if ac_fn_c_try_link "$LINENO"; then :
6044  ac_cv_prog_lex_yytext_pointer=yes
6045fi
6046rm -f core conftest.err conftest.$ac_objext \
6047    conftest$ac_exeext conftest.$ac_ext
6048LIBS=$ac_save_LIBS
6049
6050fi
6051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6052$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6053if test $ac_cv_prog_lex_yytext_pointer = yes; then
6054
6055$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6056
6057fi
6058rm -f conftest.l $LEX_OUTPUT_ROOT.c
6059
6060fi
6061
6062	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
6063$as_echo_n "checking for yylex_destroy... " >&6; }
6064	if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then
6065
6066$as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h
6067
6068		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6069$as_echo "yes" >&6; }
6070	else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6071$as_echo "no" >&6; }; fi
6072
6073for ac_prog in 'bison -y' byacc
6074do
6075  # Extract the first word of "$ac_prog", so it can be a program name with args.
6076set dummy $ac_prog; ac_word=$2
6077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078$as_echo_n "checking for $ac_word... " >&6; }
6079if ${ac_cv_prog_YACC+:} false; then :
6080  $as_echo_n "(cached) " >&6
6081else
6082  if test -n "$YACC"; then
6083  ac_cv_prog_YACC="$YACC" # Let the user override the test.
6084else
6085as_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_prog_YACC="$ac_prog"
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
6100fi
6101fi
6102YACC=$ac_cv_prog_YACC
6103if test -n "$YACC"; then
6104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6105$as_echo "$YACC" >&6; }
6106else
6107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6108$as_echo "no" >&6; }
6109fi
6110
6111
6112  test -n "$YACC" && break
6113done
6114test -n "$YACC" || YACC="yacc"
6115
6116# Extract the first word of "doxygen", so it can be a program name with args.
6117set dummy doxygen; ac_word=$2
6118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6119$as_echo_n "checking for $ac_word... " >&6; }
6120if ${ac_cv_prog_doxygen+:} false; then :
6121  $as_echo_n "(cached) " >&6
6122else
6123  if test -n "$doxygen"; then
6124  ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
6125else
6126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127for as_dir in $PATH
6128do
6129  IFS=$as_save_IFS
6130  test -z "$as_dir" && as_dir=.
6131    for ac_exec_ext in '' $ac_executable_extensions; do
6132  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6133    ac_cv_prog_doxygen="doxygen"
6134    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6135    break 2
6136  fi
6137done
6138  done
6139IFS=$as_save_IFS
6140
6141fi
6142fi
6143doxygen=$ac_cv_prog_doxygen
6144if test -n "$doxygen"; then
6145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
6146$as_echo "$doxygen" >&6; }
6147else
6148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6149$as_echo "no" >&6; }
6150fi
6151
6152
6153if test -n "$ac_tool_prefix"; then
6154  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6155set dummy ${ac_tool_prefix}strip; ac_word=$2
6156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6157$as_echo_n "checking for $ac_word... " >&6; }
6158if ${ac_cv_prog_STRIP+:} false; then :
6159  $as_echo_n "(cached) " >&6
6160else
6161  if test -n "$STRIP"; then
6162  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6163else
6164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165for as_dir in $PATH
6166do
6167  IFS=$as_save_IFS
6168  test -z "$as_dir" && as_dir=.
6169    for ac_exec_ext in '' $ac_executable_extensions; do
6170  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6171    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6172    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6173    break 2
6174  fi
6175done
6176  done
6177IFS=$as_save_IFS
6178
6179fi
6180fi
6181STRIP=$ac_cv_prog_STRIP
6182if test -n "$STRIP"; then
6183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6184$as_echo "$STRIP" >&6; }
6185else
6186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6187$as_echo "no" >&6; }
6188fi
6189
6190
6191fi
6192if test -z "$ac_cv_prog_STRIP"; then
6193  ac_ct_STRIP=$STRIP
6194  # Extract the first word of "strip", so it can be a program name with args.
6195set dummy strip; ac_word=$2
6196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6197$as_echo_n "checking for $ac_word... " >&6; }
6198if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6199  $as_echo_n "(cached) " >&6
6200else
6201  if test -n "$ac_ct_STRIP"; then
6202  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6203else
6204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205for as_dir in $PATH
6206do
6207  IFS=$as_save_IFS
6208  test -z "$as_dir" && as_dir=.
6209    for ac_exec_ext in '' $ac_executable_extensions; do
6210  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6211    ac_cv_prog_ac_ct_STRIP="strip"
6212    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6213    break 2
6214  fi
6215done
6216  done
6217IFS=$as_save_IFS
6218
6219fi
6220fi
6221ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6222if test -n "$ac_ct_STRIP"; then
6223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6224$as_echo "$ac_ct_STRIP" >&6; }
6225else
6226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6227$as_echo "no" >&6; }
6228fi
6229
6230  if test "x$ac_ct_STRIP" = x; then
6231    STRIP=""
6232  else
6233    case $cross_compiling:$ac_tool_warned in
6234yes:)
6235{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6236$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6237ac_tool_warned=yes ;;
6238esac
6239    STRIP=$ac_ct_STRIP
6240  fi
6241else
6242  STRIP="$ac_cv_prog_STRIP"
6243fi
6244
6245
6246# skip these tests, we do not need them.
6247
6248
6249
6250
6251
6252
6253
6254
6255# always use ./libtool unless override from commandline (libtool=mylibtool)
6256if test -z "$libtool"; then
6257	libtool="./libtool"
6258fi
6259
6260# avoid libtool max commandline length test on systems that fork slowly.
6261
6262if echo "$host_os" | grep "sunos4" >/dev/null; then
6263	lt_cv_sys_max_cmd_len=32750;
6264fi
6265if test -n "$ac_tool_prefix"; then
6266  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6267set dummy ${ac_tool_prefix}ar; ac_word=$2
6268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6269$as_echo_n "checking for $ac_word... " >&6; }
6270if ${ac_cv_path_AR+:} false; then :
6271  $as_echo_n "(cached) " >&6
6272else
6273  case $AR in
6274  [\\/]* | ?:[\\/]*)
6275  ac_cv_path_AR="$AR" # Let the user override the test with a path.
6276  ;;
6277  *)
6278  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279for as_dir in $PATH
6280do
6281  IFS=$as_save_IFS
6282  test -z "$as_dir" && as_dir=.
6283    for ac_exec_ext in '' $ac_executable_extensions; do
6284  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6285    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6286    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6287    break 2
6288  fi
6289done
6290  done
6291IFS=$as_save_IFS
6292
6293  ;;
6294esac
6295fi
6296AR=$ac_cv_path_AR
6297if test -n "$AR"; then
6298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6299$as_echo "$AR" >&6; }
6300else
6301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6302$as_echo "no" >&6; }
6303fi
6304
6305
6306fi
6307if test -z "$ac_cv_path_AR"; then
6308  ac_pt_AR=$AR
6309  # Extract the first word of "ar", so it can be a program name with args.
6310set dummy ar; ac_word=$2
6311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6312$as_echo_n "checking for $ac_word... " >&6; }
6313if ${ac_cv_path_ac_pt_AR+:} false; then :
6314  $as_echo_n "(cached) " >&6
6315else
6316  case $ac_pt_AR in
6317  [\\/]* | ?:[\\/]*)
6318  ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6319  ;;
6320  *)
6321  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322for as_dir in $PATH
6323do
6324  IFS=$as_save_IFS
6325  test -z "$as_dir" && as_dir=.
6326    for ac_exec_ext in '' $ac_executable_extensions; do
6327  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6328    ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6329    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6330    break 2
6331  fi
6332done
6333  done
6334IFS=$as_save_IFS
6335
6336  ;;
6337esac
6338fi
6339ac_pt_AR=$ac_cv_path_ac_pt_AR
6340if test -n "$ac_pt_AR"; then
6341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
6342$as_echo "$ac_pt_AR" >&6; }
6343else
6344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6345$as_echo "no" >&6; }
6346fi
6347
6348  if test "x$ac_pt_AR" = x; then
6349    AR="false"
6350  else
6351    case $cross_compiling:$ac_tool_warned in
6352yes:)
6353{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6354$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6355ac_tool_warned=yes ;;
6356esac
6357    AR=$ac_pt_AR
6358  fi
6359else
6360  AR="$ac_cv_path_AR"
6361fi
6362
6363if test $AR = false; then
6364	as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
6365fi
6366
6367case `pwd` in
6368  *\ * | *\	*)
6369    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6370$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6371esac
6372
6373
6374
6375macro_version='2.4'
6376macro_revision='1.3293'
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390ltmain="$ac_aux_dir/ltmain.sh"
6391
6392# Backslashify metacharacters that are still active within
6393# double-quoted strings.
6394sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6395
6396# Same as above, but do not quote variable references.
6397double_quote_subst='s/\(["`\\]\)/\\\1/g'
6398
6399# Sed substitution to delay expansion of an escaped shell variable in a
6400# double_quote_subst'ed string.
6401delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6402
6403# Sed substitution to delay expansion of an escaped single quote.
6404delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6405
6406# Sed substitution to avoid accidental globbing in evaled expressions
6407no_glob_subst='s/\*/\\\*/g'
6408
6409ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6410ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6411ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6412
6413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6414$as_echo_n "checking how to print strings... " >&6; }
6415# Test print first, because it will be a builtin if present.
6416if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6417   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6418  ECHO='print -r --'
6419elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6420  ECHO='printf %s\n'
6421else
6422  # Use this function as a fallback that always works.
6423  func_fallback_echo ()
6424  {
6425    eval 'cat <<_LTECHO_EOF
6426$1
6427_LTECHO_EOF'
6428  }
6429  ECHO='func_fallback_echo'
6430fi
6431
6432# func_echo_all arg...
6433# Invoke $ECHO with all args, space-separated.
6434func_echo_all ()
6435{
6436    $ECHO ""
6437}
6438
6439case "$ECHO" in
6440  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6441$as_echo "printf" >&6; } ;;
6442  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6443$as_echo "print -r" >&6; } ;;
6444  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6445$as_echo "cat" >&6; } ;;
6446esac
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6462$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6463if ${ac_cv_path_SED+:} false; then :
6464  $as_echo_n "(cached) " >&6
6465else
6466            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6467     for ac_i in 1 2 3 4 5 6 7; do
6468       ac_script="$ac_script$as_nl$ac_script"
6469     done
6470     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6471     { ac_script=; unset ac_script;}
6472     if test -z "$SED"; then
6473  ac_path_SED_found=false
6474  # Loop through the user's path and test for each of PROGNAME-LIST
6475  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476for as_dir in $PATH
6477do
6478  IFS=$as_save_IFS
6479  test -z "$as_dir" && as_dir=.
6480    for ac_prog in sed gsed; do
6481    for ac_exec_ext in '' $ac_executable_extensions; do
6482      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6483      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6484# Check for GNU ac_path_SED and select it if it is found.
6485  # Check for GNU $ac_path_SED
6486case `"$ac_path_SED" --version 2>&1` in
6487*GNU*)
6488  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6489*)
6490  ac_count=0
6491  $as_echo_n 0123456789 >"conftest.in"
6492  while :
6493  do
6494    cat "conftest.in" "conftest.in" >"conftest.tmp"
6495    mv "conftest.tmp" "conftest.in"
6496    cp "conftest.in" "conftest.nl"
6497    $as_echo '' >> "conftest.nl"
6498    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6499    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6500    as_fn_arith $ac_count + 1 && ac_count=$as_val
6501    if test $ac_count -gt ${ac_path_SED_max-0}; then
6502      # Best one so far, save it but keep looking for a better one
6503      ac_cv_path_SED="$ac_path_SED"
6504      ac_path_SED_max=$ac_count
6505    fi
6506    # 10*(2^10) chars as input seems more than enough
6507    test $ac_count -gt 10 && break
6508  done
6509  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6510esac
6511
6512      $ac_path_SED_found && break 3
6513    done
6514  done
6515  done
6516IFS=$as_save_IFS
6517  if test -z "$ac_cv_path_SED"; then
6518    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6519  fi
6520else
6521  ac_cv_path_SED=$SED
6522fi
6523
6524fi
6525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6526$as_echo "$ac_cv_path_SED" >&6; }
6527 SED="$ac_cv_path_SED"
6528  rm -f conftest.sed
6529
6530test -z "$SED" && SED=sed
6531Xsed="$SED -e 1s/^X//"
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6544$as_echo_n "checking for fgrep... " >&6; }
6545if ${ac_cv_path_FGREP+:} false; then :
6546  $as_echo_n "(cached) " >&6
6547else
6548  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6549   then ac_cv_path_FGREP="$GREP -F"
6550   else
6551     if test -z "$FGREP"; then
6552  ac_path_FGREP_found=false
6553  # Loop through the user's path and test for each of PROGNAME-LIST
6554  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6556do
6557  IFS=$as_save_IFS
6558  test -z "$as_dir" && as_dir=.
6559    for ac_prog in fgrep; do
6560    for ac_exec_ext in '' $ac_executable_extensions; do
6561      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6562      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6563# Check for GNU ac_path_FGREP and select it if it is found.
6564  # Check for GNU $ac_path_FGREP
6565case `"$ac_path_FGREP" --version 2>&1` in
6566*GNU*)
6567  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6568*)
6569  ac_count=0
6570  $as_echo_n 0123456789 >"conftest.in"
6571  while :
6572  do
6573    cat "conftest.in" "conftest.in" >"conftest.tmp"
6574    mv "conftest.tmp" "conftest.in"
6575    cp "conftest.in" "conftest.nl"
6576    $as_echo 'FGREP' >> "conftest.nl"
6577    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6578    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6579    as_fn_arith $ac_count + 1 && ac_count=$as_val
6580    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6581      # Best one so far, save it but keep looking for a better one
6582      ac_cv_path_FGREP="$ac_path_FGREP"
6583      ac_path_FGREP_max=$ac_count
6584    fi
6585    # 10*(2^10) chars as input seems more than enough
6586    test $ac_count -gt 10 && break
6587  done
6588  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6589esac
6590
6591      $ac_path_FGREP_found && break 3
6592    done
6593  done
6594  done
6595IFS=$as_save_IFS
6596  if test -z "$ac_cv_path_FGREP"; then
6597    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6598  fi
6599else
6600  ac_cv_path_FGREP=$FGREP
6601fi
6602
6603   fi
6604fi
6605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6606$as_echo "$ac_cv_path_FGREP" >&6; }
6607 FGREP="$ac_cv_path_FGREP"
6608
6609
6610test -z "$GREP" && GREP=grep
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630# Check whether --with-gnu-ld was given.
6631if test "${with_gnu_ld+set}" = set; then :
6632  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6633else
6634  with_gnu_ld=no
6635fi
6636
6637ac_prog=ld
6638if test "$GCC" = yes; then
6639  # Check if gcc -print-prog-name=ld gives a path.
6640  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6641$as_echo_n "checking for ld used by $CC... " >&6; }
6642  case $host in
6643  *-*-mingw*)
6644    # gcc leaves a trailing carriage return which upsets mingw
6645    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6646  *)
6647    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6648  esac
6649  case $ac_prog in
6650    # Accept absolute paths.
6651    [\\/]* | ?:[\\/]*)
6652      re_direlt='/[^/][^/]*/\.\./'
6653      # Canonicalize the pathname of ld
6654      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6655      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6656	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6657      done
6658      test -z "$LD" && LD="$ac_prog"
6659      ;;
6660  "")
6661    # If it fails, then pretend we aren't using GCC.
6662    ac_prog=ld
6663    ;;
6664  *)
6665    # If it is relative, then search for the first ld in PATH.
6666    with_gnu_ld=unknown
6667    ;;
6668  esac
6669elif test "$with_gnu_ld" = yes; then
6670  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6671$as_echo_n "checking for GNU ld... " >&6; }
6672else
6673  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6674$as_echo_n "checking for non-GNU ld... " >&6; }
6675fi
6676if ${lt_cv_path_LD+:} false; then :
6677  $as_echo_n "(cached) " >&6
6678else
6679  if test -z "$LD"; then
6680  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6681  for ac_dir in $PATH; do
6682    IFS="$lt_save_ifs"
6683    test -z "$ac_dir" && ac_dir=.
6684    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6685      lt_cv_path_LD="$ac_dir/$ac_prog"
6686      # Check to see if the program is GNU ld.  I'd rather use --version,
6687      # but apparently some variants of GNU ld only accept -v.
6688      # Break only if it was the GNU/non-GNU ld that we prefer.
6689      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6690      *GNU* | *'with BFD'*)
6691	test "$with_gnu_ld" != no && break
6692	;;
6693      *)
6694	test "$with_gnu_ld" != yes && break
6695	;;
6696      esac
6697    fi
6698  done
6699  IFS="$lt_save_ifs"
6700else
6701  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6702fi
6703fi
6704
6705LD="$lt_cv_path_LD"
6706if test -n "$LD"; then
6707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6708$as_echo "$LD" >&6; }
6709else
6710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6711$as_echo "no" >&6; }
6712fi
6713test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6715$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6716if ${lt_cv_prog_gnu_ld+:} false; then :
6717  $as_echo_n "(cached) " >&6
6718else
6719  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6720case `$LD -v 2>&1 </dev/null` in
6721*GNU* | *'with BFD'*)
6722  lt_cv_prog_gnu_ld=yes
6723  ;;
6724*)
6725  lt_cv_prog_gnu_ld=no
6726  ;;
6727esac
6728fi
6729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6730$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6731with_gnu_ld=$lt_cv_prog_gnu_ld
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6742$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6743if ${lt_cv_path_NM+:} false; then :
6744  $as_echo_n "(cached) " >&6
6745else
6746  if test -n "$NM"; then
6747  # Let the user override the test.
6748  lt_cv_path_NM="$NM"
6749else
6750  lt_nm_to_check="${ac_tool_prefix}nm"
6751  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6752    lt_nm_to_check="$lt_nm_to_check nm"
6753  fi
6754  for lt_tmp_nm in $lt_nm_to_check; do
6755    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6756    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6757      IFS="$lt_save_ifs"
6758      test -z "$ac_dir" && ac_dir=.
6759      tmp_nm="$ac_dir/$lt_tmp_nm"
6760      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6761	# Check to see if the nm accepts a BSD-compat flag.
6762	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6763	#   nm: unknown option "B" ignored
6764	# Tru64's nm complains that /dev/null is an invalid object file
6765	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6766	*/dev/null* | *'Invalid file or object type'*)
6767	  lt_cv_path_NM="$tmp_nm -B"
6768	  break
6769	  ;;
6770	*)
6771	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6772	  */dev/null*)
6773	    lt_cv_path_NM="$tmp_nm -p"
6774	    break
6775	    ;;
6776	  *)
6777	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6778	    continue # so that we can try to find one that supports BSD flags
6779	    ;;
6780	  esac
6781	  ;;
6782	esac
6783      fi
6784    done
6785    IFS="$lt_save_ifs"
6786  done
6787  : ${lt_cv_path_NM=no}
6788fi
6789fi
6790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6791$as_echo "$lt_cv_path_NM" >&6; }
6792if test "$lt_cv_path_NM" != "no"; then
6793  NM="$lt_cv_path_NM"
6794else
6795  # Didn't find any BSD compatible name lister, look for dumpbin.
6796  if test -n "$DUMPBIN"; then :
6797    # Let the user override the test.
6798  else
6799    if test -n "$ac_tool_prefix"; then
6800  for ac_prog in dumpbin "link -dump"
6801  do
6802    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6803set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6805$as_echo_n "checking for $ac_word... " >&6; }
6806if ${ac_cv_prog_DUMPBIN+:} false; then :
6807  $as_echo_n "(cached) " >&6
6808else
6809  if test -n "$DUMPBIN"; then
6810  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6811else
6812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813for as_dir in $PATH
6814do
6815  IFS=$as_save_IFS
6816  test -z "$as_dir" && as_dir=.
6817    for ac_exec_ext in '' $ac_executable_extensions; do
6818  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6819    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6820    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6821    break 2
6822  fi
6823done
6824  done
6825IFS=$as_save_IFS
6826
6827fi
6828fi
6829DUMPBIN=$ac_cv_prog_DUMPBIN
6830if test -n "$DUMPBIN"; then
6831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6832$as_echo "$DUMPBIN" >&6; }
6833else
6834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6835$as_echo "no" >&6; }
6836fi
6837
6838
6839    test -n "$DUMPBIN" && break
6840  done
6841fi
6842if test -z "$DUMPBIN"; then
6843  ac_ct_DUMPBIN=$DUMPBIN
6844  for ac_prog in dumpbin "link -dump"
6845do
6846  # Extract the first word of "$ac_prog", so it can be a program name with args.
6847set dummy $ac_prog; ac_word=$2
6848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6849$as_echo_n "checking for $ac_word... " >&6; }
6850if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6851  $as_echo_n "(cached) " >&6
6852else
6853  if test -n "$ac_ct_DUMPBIN"; then
6854  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6855else
6856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857for as_dir in $PATH
6858do
6859  IFS=$as_save_IFS
6860  test -z "$as_dir" && as_dir=.
6861    for ac_exec_ext in '' $ac_executable_extensions; do
6862  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6863    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6864    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6865    break 2
6866  fi
6867done
6868  done
6869IFS=$as_save_IFS
6870
6871fi
6872fi
6873ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6874if test -n "$ac_ct_DUMPBIN"; then
6875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6876$as_echo "$ac_ct_DUMPBIN" >&6; }
6877else
6878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6879$as_echo "no" >&6; }
6880fi
6881
6882
6883  test -n "$ac_ct_DUMPBIN" && break
6884done
6885
6886  if test "x$ac_ct_DUMPBIN" = x; then
6887    DUMPBIN=":"
6888  else
6889    case $cross_compiling:$ac_tool_warned in
6890yes:)
6891{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6892$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6893ac_tool_warned=yes ;;
6894esac
6895    DUMPBIN=$ac_ct_DUMPBIN
6896  fi
6897fi
6898
6899    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6900    *COFF*)
6901      DUMPBIN="$DUMPBIN -symbols"
6902      ;;
6903    *)
6904      DUMPBIN=:
6905      ;;
6906    esac
6907  fi
6908
6909  if test "$DUMPBIN" != ":"; then
6910    NM="$DUMPBIN"
6911  fi
6912fi
6913test -z "$NM" && NM=nm
6914
6915
6916
6917
6918
6919
6920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6921$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6922if ${lt_cv_nm_interface+:} false; then :
6923  $as_echo_n "(cached) " >&6
6924else
6925  lt_cv_nm_interface="BSD nm"
6926  echo "int some_variable = 0;" > conftest.$ac_ext
6927  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6928  (eval "$ac_compile" 2>conftest.err)
6929  cat conftest.err >&5
6930  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6931  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6932  cat conftest.err >&5
6933  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6934  cat conftest.out >&5
6935  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6936    lt_cv_nm_interface="MS dumpbin"
6937  fi
6938  rm -f conftest*
6939fi
6940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6941$as_echo "$lt_cv_nm_interface" >&6; }
6942
6943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6944$as_echo_n "checking whether ln -s works... " >&6; }
6945LN_S=$as_ln_s
6946if test "$LN_S" = "ln -s"; then
6947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6948$as_echo "yes" >&6; }
6949else
6950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6951$as_echo "no, using $LN_S" >&6; }
6952fi
6953
6954# find the maximum length of command line arguments
6955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6956$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6957if ${lt_cv_sys_max_cmd_len+:} false; then :
6958  $as_echo_n "(cached) " >&6
6959else
6960    i=0
6961  teststring="ABCD"
6962
6963  case $build_os in
6964  msdosdjgpp*)
6965    # On DJGPP, this test can blow up pretty badly due to problems in libc
6966    # (any single argument exceeding 2000 bytes causes a buffer overrun
6967    # during glob expansion).  Even if it were fixed, the result of this
6968    # check would be larger than it should be.
6969    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6970    ;;
6971
6972  gnu*)
6973    # Under GNU Hurd, this test is not required because there is
6974    # no limit to the length of command line arguments.
6975    # Libtool will interpret -1 as no limit whatsoever
6976    lt_cv_sys_max_cmd_len=-1;
6977    ;;
6978
6979  cygwin* | mingw* | cegcc*)
6980    # On Win9x/ME, this test blows up -- it succeeds, but takes
6981    # about 5 minutes as the teststring grows exponentially.
6982    # Worse, since 9x/ME are not pre-emptively multitasking,
6983    # you end up with a "frozen" computer, even though with patience
6984    # the test eventually succeeds (with a max line length of 256k).
6985    # Instead, let's just punt: use the minimum linelength reported by
6986    # all of the supported platforms: 8192 (on NT/2K/XP).
6987    lt_cv_sys_max_cmd_len=8192;
6988    ;;
6989
6990  mint*)
6991    # On MiNT this can take a long time and run out of memory.
6992    lt_cv_sys_max_cmd_len=8192;
6993    ;;
6994
6995  amigaos*)
6996    # On AmigaOS with pdksh, this test takes hours, literally.
6997    # So we just punt and use a minimum line length of 8192.
6998    lt_cv_sys_max_cmd_len=8192;
6999    ;;
7000
7001  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7002    # This has been around since 386BSD, at least.  Likely further.
7003    if test -x /sbin/sysctl; then
7004      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7005    elif test -x /usr/sbin/sysctl; then
7006      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7007    else
7008      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7009    fi
7010    # And add a safety zone
7011    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7012    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7013    ;;
7014
7015  interix*)
7016    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7017    lt_cv_sys_max_cmd_len=196608
7018    ;;
7019
7020  osf*)
7021    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7022    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7023    # nice to cause kernel panics so lets avoid the loop below.
7024    # First set a reasonable default.
7025    lt_cv_sys_max_cmd_len=16384
7026    #
7027    if test -x /sbin/sysconfig; then
7028      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7029        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7030      esac
7031    fi
7032    ;;
7033  sco3.2v5*)
7034    lt_cv_sys_max_cmd_len=102400
7035    ;;
7036  sysv5* | sco5v6* | sysv4.2uw2*)
7037    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7038    if test -n "$kargmax"; then
7039      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
7040    else
7041      lt_cv_sys_max_cmd_len=32768
7042    fi
7043    ;;
7044  *)
7045    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7046    if test -n "$lt_cv_sys_max_cmd_len"; then
7047      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7048      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7049    else
7050      # Make teststring a little bigger before we do anything with it.
7051      # a 1K string should be a reasonable start.
7052      for i in 1 2 3 4 5 6 7 8 ; do
7053        teststring=$teststring$teststring
7054      done
7055      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7056      # If test is not a shell built-in, we'll probably end up computing a
7057      # maximum length that is only half of the actual maximum length, but
7058      # we can't tell.
7059      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7060	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7061	      test $i != 17 # 1/2 MB should be enough
7062      do
7063        i=`expr $i + 1`
7064        teststring=$teststring$teststring
7065      done
7066      # Only check the string length outside the loop.
7067      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7068      teststring=
7069      # Add a significant safety factor because C++ compilers can tack on
7070      # massive amounts of additional arguments before passing them to the
7071      # linker.  It appears as though 1/2 is a usable value.
7072      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7073    fi
7074    ;;
7075  esac
7076
7077fi
7078
7079if test -n $lt_cv_sys_max_cmd_len ; then
7080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7081$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7082else
7083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7084$as_echo "none" >&6; }
7085fi
7086max_cmd_len=$lt_cv_sys_max_cmd_len
7087
7088
7089
7090
7091
7092
7093: ${CP="cp -f"}
7094: ${MV="mv -f"}
7095: ${RM="rm -f"}
7096
7097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7098$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7099# Try some XSI features
7100xsi_shell=no
7101( _lt_dummy="a/b/c"
7102  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7103      = c,a/b,b/c, \
7104    && eval 'test $(( 1 + 1 )) -eq 2 \
7105    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7106  && xsi_shell=yes
7107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7108$as_echo "$xsi_shell" >&6; }
7109
7110
7111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7112$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7113lt_shell_append=no
7114( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7115    >/dev/null 2>&1 \
7116  && lt_shell_append=yes
7117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7118$as_echo "$lt_shell_append" >&6; }
7119
7120
7121if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7122  lt_unset=unset
7123else
7124  lt_unset=false
7125fi
7126
7127
7128
7129
7130
7131# test EBCDIC or ASCII
7132case `echo X|tr X '\101'` in
7133 A) # ASCII based system
7134    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7135  lt_SP2NL='tr \040 \012'
7136  lt_NL2SP='tr \015\012 \040\040'
7137  ;;
7138 *) # EBCDIC based system
7139  lt_SP2NL='tr \100 \n'
7140  lt_NL2SP='tr \r\n \100\100'
7141  ;;
7142esac
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7153$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7154if ${lt_cv_to_host_file_cmd+:} false; then :
7155  $as_echo_n "(cached) " >&6
7156else
7157  case $host in
7158  *-*-mingw* )
7159    case $build in
7160      *-*-mingw* ) # actually msys
7161        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7162        ;;
7163      *-*-cygwin* )
7164        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7165        ;;
7166      * ) # otherwise, assume *nix
7167        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7168        ;;
7169    esac
7170    ;;
7171  *-*-cygwin* )
7172    case $build in
7173      *-*-mingw* ) # actually msys
7174        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7175        ;;
7176      *-*-cygwin* )
7177        lt_cv_to_host_file_cmd=func_convert_file_noop
7178        ;;
7179      * ) # otherwise, assume *nix
7180        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7181        ;;
7182    esac
7183    ;;
7184  * ) # unhandled hosts (and "normal" native builds)
7185    lt_cv_to_host_file_cmd=func_convert_file_noop
7186    ;;
7187esac
7188
7189fi
7190
7191to_host_file_cmd=$lt_cv_to_host_file_cmd
7192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7193$as_echo "$lt_cv_to_host_file_cmd" >&6; }
7194
7195
7196
7197
7198
7199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7200$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7201if ${lt_cv_to_tool_file_cmd+:} false; then :
7202  $as_echo_n "(cached) " >&6
7203else
7204  #assume ordinary cross tools, or native build.
7205lt_cv_to_tool_file_cmd=func_convert_file_noop
7206case $host in
7207  *-*-mingw* )
7208    case $build in
7209      *-*-mingw* ) # actually msys
7210        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7211        ;;
7212    esac
7213    ;;
7214esac
7215
7216fi
7217
7218to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7220$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7221
7222
7223
7224
7225
7226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7227$as_echo_n "checking for $LD option to reload object files... " >&6; }
7228if ${lt_cv_ld_reload_flag+:} false; then :
7229  $as_echo_n "(cached) " >&6
7230else
7231  lt_cv_ld_reload_flag='-r'
7232fi
7233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7234$as_echo "$lt_cv_ld_reload_flag" >&6; }
7235reload_flag=$lt_cv_ld_reload_flag
7236case $reload_flag in
7237"" | " "*) ;;
7238*) reload_flag=" $reload_flag" ;;
7239esac
7240reload_cmds='$LD$reload_flag -o $output$reload_objs'
7241case $host_os in
7242  cygwin* | mingw* | pw32* | cegcc*)
7243    if test "$GCC" != yes; then
7244      reload_cmds=false
7245    fi
7246    ;;
7247  darwin*)
7248    if test "$GCC" = yes; then
7249      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7250    else
7251      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7252    fi
7253    ;;
7254esac
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264if test -n "$ac_tool_prefix"; then
7265  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7266set dummy ${ac_tool_prefix}objdump; ac_word=$2
7267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7268$as_echo_n "checking for $ac_word... " >&6; }
7269if ${ac_cv_prog_OBJDUMP+:} false; then :
7270  $as_echo_n "(cached) " >&6
7271else
7272  if test -n "$OBJDUMP"; then
7273  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7274else
7275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276for as_dir in $PATH
7277do
7278  IFS=$as_save_IFS
7279  test -z "$as_dir" && as_dir=.
7280    for ac_exec_ext in '' $ac_executable_extensions; do
7281  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7282    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7283    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7284    break 2
7285  fi
7286done
7287  done
7288IFS=$as_save_IFS
7289
7290fi
7291fi
7292OBJDUMP=$ac_cv_prog_OBJDUMP
7293if test -n "$OBJDUMP"; then
7294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7295$as_echo "$OBJDUMP" >&6; }
7296else
7297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7298$as_echo "no" >&6; }
7299fi
7300
7301
7302fi
7303if test -z "$ac_cv_prog_OBJDUMP"; then
7304  ac_ct_OBJDUMP=$OBJDUMP
7305  # Extract the first word of "objdump", so it can be a program name with args.
7306set dummy objdump; ac_word=$2
7307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7308$as_echo_n "checking for $ac_word... " >&6; }
7309if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7310  $as_echo_n "(cached) " >&6
7311else
7312  if test -n "$ac_ct_OBJDUMP"; then
7313  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7314else
7315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316for as_dir in $PATH
7317do
7318  IFS=$as_save_IFS
7319  test -z "$as_dir" && as_dir=.
7320    for ac_exec_ext in '' $ac_executable_extensions; do
7321  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7322    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7323    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7324    break 2
7325  fi
7326done
7327  done
7328IFS=$as_save_IFS
7329
7330fi
7331fi
7332ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7333if test -n "$ac_ct_OBJDUMP"; then
7334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7335$as_echo "$ac_ct_OBJDUMP" >&6; }
7336else
7337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7338$as_echo "no" >&6; }
7339fi
7340
7341  if test "x$ac_ct_OBJDUMP" = x; then
7342    OBJDUMP="false"
7343  else
7344    case $cross_compiling:$ac_tool_warned in
7345yes:)
7346{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7347$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7348ac_tool_warned=yes ;;
7349esac
7350    OBJDUMP=$ac_ct_OBJDUMP
7351  fi
7352else
7353  OBJDUMP="$ac_cv_prog_OBJDUMP"
7354fi
7355
7356test -z "$OBJDUMP" && OBJDUMP=objdump
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7367$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7368if ${lt_cv_deplibs_check_method+:} false; then :
7369  $as_echo_n "(cached) " >&6
7370else
7371  lt_cv_file_magic_cmd='$MAGIC_CMD'
7372lt_cv_file_magic_test_file=
7373lt_cv_deplibs_check_method='unknown'
7374# Need to set the preceding variable on all platforms that support
7375# interlibrary dependencies.
7376# 'none' -- dependencies not supported.
7377# `unknown' -- same as none, but documents that we really don't know.
7378# 'pass_all' -- all dependencies passed with no checks.
7379# 'test_compile' -- check by making test program.
7380# 'file_magic [[regex]]' -- check by looking for files in library path
7381# which responds to the $file_magic_cmd with a given extended regex.
7382# If you have `file' or equivalent on your system and you're not sure
7383# whether `pass_all' will *always* work, you probably want this one.
7384
7385case $host_os in
7386aix[4-9]*)
7387  lt_cv_deplibs_check_method=pass_all
7388  ;;
7389
7390beos*)
7391  lt_cv_deplibs_check_method=pass_all
7392  ;;
7393
7394bsdi[45]*)
7395  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7396  lt_cv_file_magic_cmd='/usr/bin/file -L'
7397  lt_cv_file_magic_test_file=/shlib/libc.so
7398  ;;
7399
7400cygwin*)
7401  # func_win32_libid is a shell function defined in ltmain.sh
7402  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7403  lt_cv_file_magic_cmd='func_win32_libid'
7404  ;;
7405
7406mingw* | pw32*)
7407  # Base MSYS/MinGW do not provide the 'file' command needed by
7408  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7409  # unless we find 'file', for example because we are cross-compiling.
7410  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7411  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7412    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7413    lt_cv_file_magic_cmd='func_win32_libid'
7414  else
7415    # Keep this pattern in sync with the one in func_win32_libid.
7416    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7417    lt_cv_file_magic_cmd='$OBJDUMP -f'
7418  fi
7419  ;;
7420
7421cegcc*)
7422  # use the weaker test based on 'objdump'. See mingw*.
7423  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7424  lt_cv_file_magic_cmd='$OBJDUMP -f'
7425  ;;
7426
7427darwin* | rhapsody*)
7428  lt_cv_deplibs_check_method=pass_all
7429  ;;
7430
7431freebsd* | dragonfly*)
7432  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7433    case $host_cpu in
7434    i*86 )
7435      # Not sure whether the presence of OpenBSD here was a mistake.
7436      # Let's accept both of them until this is cleared up.
7437      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7438      lt_cv_file_magic_cmd=/usr/bin/file
7439      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7440      ;;
7441    esac
7442  else
7443    lt_cv_deplibs_check_method=pass_all
7444  fi
7445  ;;
7446
7447gnu*)
7448  lt_cv_deplibs_check_method=pass_all
7449  ;;
7450
7451haiku*)
7452  lt_cv_deplibs_check_method=pass_all
7453  ;;
7454
7455hpux10.20* | hpux11*)
7456  lt_cv_file_magic_cmd=/usr/bin/file
7457  case $host_cpu in
7458  ia64*)
7459    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7460    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7461    ;;
7462  hppa*64*)
7463    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]'
7464    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7465    ;;
7466  *)
7467    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7468    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7469    ;;
7470  esac
7471  ;;
7472
7473interix[3-9]*)
7474  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7475  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7476  ;;
7477
7478irix5* | irix6* | nonstopux*)
7479  case $LD in
7480  *-32|*"-32 ") libmagic=32-bit;;
7481  *-n32|*"-n32 ") libmagic=N32;;
7482  *-64|*"-64 ") libmagic=64-bit;;
7483  *) libmagic=never-match;;
7484  esac
7485  lt_cv_deplibs_check_method=pass_all
7486  ;;
7487
7488# This must be Linux ELF.
7489linux* | k*bsd*-gnu | kopensolaris*-gnu)
7490  lt_cv_deplibs_check_method=pass_all
7491  ;;
7492
7493netbsd*)
7494  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7495    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7496  else
7497    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7498  fi
7499  ;;
7500
7501newos6*)
7502  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7503  lt_cv_file_magic_cmd=/usr/bin/file
7504  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7505  ;;
7506
7507*nto* | *qnx*)
7508  lt_cv_deplibs_check_method=pass_all
7509  ;;
7510
7511openbsd*)
7512  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7513    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7514  else
7515    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7516  fi
7517  ;;
7518
7519osf3* | osf4* | osf5*)
7520  lt_cv_deplibs_check_method=pass_all
7521  ;;
7522
7523rdos*)
7524  lt_cv_deplibs_check_method=pass_all
7525  ;;
7526
7527solaris*)
7528  lt_cv_deplibs_check_method=pass_all
7529  ;;
7530
7531sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7532  lt_cv_deplibs_check_method=pass_all
7533  ;;
7534
7535sysv4 | sysv4.3*)
7536  case $host_vendor in
7537  motorola)
7538    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]'
7539    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7540    ;;
7541  ncr)
7542    lt_cv_deplibs_check_method=pass_all
7543    ;;
7544  sequent)
7545    lt_cv_file_magic_cmd='/bin/file'
7546    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7547    ;;
7548  sni)
7549    lt_cv_file_magic_cmd='/bin/file'
7550    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7551    lt_cv_file_magic_test_file=/lib/libc.so
7552    ;;
7553  siemens)
7554    lt_cv_deplibs_check_method=pass_all
7555    ;;
7556  pc)
7557    lt_cv_deplibs_check_method=pass_all
7558    ;;
7559  esac
7560  ;;
7561
7562tpf*)
7563  lt_cv_deplibs_check_method=pass_all
7564  ;;
7565esac
7566
7567fi
7568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7569$as_echo "$lt_cv_deplibs_check_method" >&6; }
7570
7571file_magic_glob=
7572want_nocaseglob=no
7573if test "$build" = "$host"; then
7574  case $host_os in
7575  mingw* | pw32*)
7576    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7577      want_nocaseglob=yes
7578    else
7579      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7580    fi
7581    ;;
7582  esac
7583fi
7584
7585file_magic_cmd=$lt_cv_file_magic_cmd
7586deplibs_check_method=$lt_cv_deplibs_check_method
7587test -z "$deplibs_check_method" && deplibs_check_method=unknown
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610if test -n "$ac_tool_prefix"; then
7611  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7612set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7614$as_echo_n "checking for $ac_word... " >&6; }
7615if ${ac_cv_prog_DLLTOOL+:} false; then :
7616  $as_echo_n "(cached) " >&6
7617else
7618  if test -n "$DLLTOOL"; then
7619  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7620else
7621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622for as_dir in $PATH
7623do
7624  IFS=$as_save_IFS
7625  test -z "$as_dir" && as_dir=.
7626    for ac_exec_ext in '' $ac_executable_extensions; do
7627  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7628    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7629    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7630    break 2
7631  fi
7632done
7633  done
7634IFS=$as_save_IFS
7635
7636fi
7637fi
7638DLLTOOL=$ac_cv_prog_DLLTOOL
7639if test -n "$DLLTOOL"; then
7640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7641$as_echo "$DLLTOOL" >&6; }
7642else
7643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7644$as_echo "no" >&6; }
7645fi
7646
7647
7648fi
7649if test -z "$ac_cv_prog_DLLTOOL"; then
7650  ac_ct_DLLTOOL=$DLLTOOL
7651  # Extract the first word of "dlltool", so it can be a program name with args.
7652set dummy dlltool; ac_word=$2
7653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7654$as_echo_n "checking for $ac_word... " >&6; }
7655if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7656  $as_echo_n "(cached) " >&6
7657else
7658  if test -n "$ac_ct_DLLTOOL"; then
7659  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7660else
7661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7662for as_dir in $PATH
7663do
7664  IFS=$as_save_IFS
7665  test -z "$as_dir" && as_dir=.
7666    for ac_exec_ext in '' $ac_executable_extensions; do
7667  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7668    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7669    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7670    break 2
7671  fi
7672done
7673  done
7674IFS=$as_save_IFS
7675
7676fi
7677fi
7678ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7679if test -n "$ac_ct_DLLTOOL"; then
7680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7681$as_echo "$ac_ct_DLLTOOL" >&6; }
7682else
7683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7684$as_echo "no" >&6; }
7685fi
7686
7687  if test "x$ac_ct_DLLTOOL" = x; then
7688    DLLTOOL="false"
7689  else
7690    case $cross_compiling:$ac_tool_warned in
7691yes:)
7692{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7693$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7694ac_tool_warned=yes ;;
7695esac
7696    DLLTOOL=$ac_ct_DLLTOOL
7697  fi
7698else
7699  DLLTOOL="$ac_cv_prog_DLLTOOL"
7700fi
7701
7702test -z "$DLLTOOL" && DLLTOOL=dlltool
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7714$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7715if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7716  $as_echo_n "(cached) " >&6
7717else
7718  lt_cv_sharedlib_from_linklib_cmd='unknown'
7719
7720case $host_os in
7721cygwin* | mingw* | pw32* | cegcc*)
7722  # two different shell functions defined in ltmain.sh
7723  # decide which to use based on capabilities of $DLLTOOL
7724  case `$DLLTOOL --help 2>&1` in
7725  *--identify-strict*)
7726    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7727    ;;
7728  *)
7729    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7730    ;;
7731  esac
7732  ;;
7733*)
7734  # fallback: assume linklib IS sharedlib
7735  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7736  ;;
7737esac
7738
7739fi
7740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7741$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7742sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7743test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7744
7745
7746
7747
7748
7749
7750
7751if test -n "$ac_tool_prefix"; then
7752  for ac_prog in ar
7753  do
7754    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7755set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7757$as_echo_n "checking for $ac_word... " >&6; }
7758if ${ac_cv_prog_AR+:} false; then :
7759  $as_echo_n "(cached) " >&6
7760else
7761  if test -n "$AR"; then
7762  ac_cv_prog_AR="$AR" # Let the user override the test.
7763else
7764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765for as_dir in $PATH
7766do
7767  IFS=$as_save_IFS
7768  test -z "$as_dir" && as_dir=.
7769    for ac_exec_ext in '' $ac_executable_extensions; do
7770  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7771    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7772    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7773    break 2
7774  fi
7775done
7776  done
7777IFS=$as_save_IFS
7778
7779fi
7780fi
7781AR=$ac_cv_prog_AR
7782if test -n "$AR"; then
7783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7784$as_echo "$AR" >&6; }
7785else
7786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7787$as_echo "no" >&6; }
7788fi
7789
7790
7791    test -n "$AR" && break
7792  done
7793fi
7794if test -z "$AR"; then
7795  ac_ct_AR=$AR
7796  for ac_prog in ar
7797do
7798  # Extract the first word of "$ac_prog", so it can be a program name with args.
7799set dummy $ac_prog; ac_word=$2
7800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7801$as_echo_n "checking for $ac_word... " >&6; }
7802if ${ac_cv_prog_ac_ct_AR+:} false; then :
7803  $as_echo_n "(cached) " >&6
7804else
7805  if test -n "$ac_ct_AR"; then
7806  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7807else
7808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7809for as_dir in $PATH
7810do
7811  IFS=$as_save_IFS
7812  test -z "$as_dir" && as_dir=.
7813    for ac_exec_ext in '' $ac_executable_extensions; do
7814  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7815    ac_cv_prog_ac_ct_AR="$ac_prog"
7816    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7817    break 2
7818  fi
7819done
7820  done
7821IFS=$as_save_IFS
7822
7823fi
7824fi
7825ac_ct_AR=$ac_cv_prog_ac_ct_AR
7826if test -n "$ac_ct_AR"; then
7827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7828$as_echo "$ac_ct_AR" >&6; }
7829else
7830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7831$as_echo "no" >&6; }
7832fi
7833
7834
7835  test -n "$ac_ct_AR" && break
7836done
7837
7838  if test "x$ac_ct_AR" = x; then
7839    AR="false"
7840  else
7841    case $cross_compiling:$ac_tool_warned in
7842yes:)
7843{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7844$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7845ac_tool_warned=yes ;;
7846esac
7847    AR=$ac_ct_AR
7848  fi
7849fi
7850
7851: ${AR=ar}
7852: ${AR_FLAGS=cru}
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7865$as_echo_n "checking for archiver @FILE support... " >&6; }
7866if ${lt_cv_ar_at_file+:} false; then :
7867  $as_echo_n "(cached) " >&6
7868else
7869  lt_cv_ar_at_file=no
7870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871/* end confdefs.h.  */
7872
7873int
7874main ()
7875{
7876
7877  ;
7878  return 0;
7879}
7880_ACEOF
7881if ac_fn_c_try_compile "$LINENO"; then :
7882  echo conftest.$ac_objext > conftest.lst
7883      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7884      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7885  (eval $lt_ar_try) 2>&5
7886  ac_status=$?
7887  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7888  test $ac_status = 0; }
7889      if test "$ac_status" -eq 0; then
7890	# Ensure the archiver fails upon bogus file names.
7891	rm -f conftest.$ac_objext libconftest.a
7892	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7893  (eval $lt_ar_try) 2>&5
7894  ac_status=$?
7895  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7896  test $ac_status = 0; }
7897	if test "$ac_status" -ne 0; then
7898          lt_cv_ar_at_file=@
7899        fi
7900      fi
7901      rm -f conftest.* libconftest.a
7902
7903fi
7904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7905
7906fi
7907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7908$as_echo "$lt_cv_ar_at_file" >&6; }
7909
7910if test "x$lt_cv_ar_at_file" = xno; then
7911  archiver_list_spec=
7912else
7913  archiver_list_spec=$lt_cv_ar_at_file
7914fi
7915
7916
7917
7918
7919
7920
7921
7922if test -n "$ac_tool_prefix"; then
7923  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7924set dummy ${ac_tool_prefix}strip; ac_word=$2
7925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7926$as_echo_n "checking for $ac_word... " >&6; }
7927if ${ac_cv_prog_STRIP+:} false; then :
7928  $as_echo_n "(cached) " >&6
7929else
7930  if test -n "$STRIP"; then
7931  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7932else
7933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7934for as_dir in $PATH
7935do
7936  IFS=$as_save_IFS
7937  test -z "$as_dir" && as_dir=.
7938    for ac_exec_ext in '' $ac_executable_extensions; do
7939  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7940    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7941    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7942    break 2
7943  fi
7944done
7945  done
7946IFS=$as_save_IFS
7947
7948fi
7949fi
7950STRIP=$ac_cv_prog_STRIP
7951if test -n "$STRIP"; then
7952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7953$as_echo "$STRIP" >&6; }
7954else
7955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7956$as_echo "no" >&6; }
7957fi
7958
7959
7960fi
7961if test -z "$ac_cv_prog_STRIP"; then
7962  ac_ct_STRIP=$STRIP
7963  # Extract the first word of "strip", so it can be a program name with args.
7964set dummy strip; ac_word=$2
7965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7966$as_echo_n "checking for $ac_word... " >&6; }
7967if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7968  $as_echo_n "(cached) " >&6
7969else
7970  if test -n "$ac_ct_STRIP"; then
7971  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7972else
7973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7974for as_dir in $PATH
7975do
7976  IFS=$as_save_IFS
7977  test -z "$as_dir" && as_dir=.
7978    for ac_exec_ext in '' $ac_executable_extensions; do
7979  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7980    ac_cv_prog_ac_ct_STRIP="strip"
7981    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7982    break 2
7983  fi
7984done
7985  done
7986IFS=$as_save_IFS
7987
7988fi
7989fi
7990ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7991if test -n "$ac_ct_STRIP"; then
7992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7993$as_echo "$ac_ct_STRIP" >&6; }
7994else
7995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996$as_echo "no" >&6; }
7997fi
7998
7999  if test "x$ac_ct_STRIP" = x; then
8000    STRIP=":"
8001  else
8002    case $cross_compiling:$ac_tool_warned in
8003yes:)
8004{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8005$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8006ac_tool_warned=yes ;;
8007esac
8008    STRIP=$ac_ct_STRIP
8009  fi
8010else
8011  STRIP="$ac_cv_prog_STRIP"
8012fi
8013
8014test -z "$STRIP" && STRIP=:
8015
8016
8017
8018
8019
8020
8021if test -n "$ac_tool_prefix"; then
8022  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8023set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8025$as_echo_n "checking for $ac_word... " >&6; }
8026if ${ac_cv_prog_RANLIB+:} false; then :
8027  $as_echo_n "(cached) " >&6
8028else
8029  if test -n "$RANLIB"; then
8030  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8031else
8032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8033for as_dir in $PATH
8034do
8035  IFS=$as_save_IFS
8036  test -z "$as_dir" && as_dir=.
8037    for ac_exec_ext in '' $ac_executable_extensions; do
8038  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8039    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8040    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8041    break 2
8042  fi
8043done
8044  done
8045IFS=$as_save_IFS
8046
8047fi
8048fi
8049RANLIB=$ac_cv_prog_RANLIB
8050if test -n "$RANLIB"; then
8051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8052$as_echo "$RANLIB" >&6; }
8053else
8054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8055$as_echo "no" >&6; }
8056fi
8057
8058
8059fi
8060if test -z "$ac_cv_prog_RANLIB"; then
8061  ac_ct_RANLIB=$RANLIB
8062  # Extract the first word of "ranlib", so it can be a program name with args.
8063set dummy ranlib; ac_word=$2
8064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8065$as_echo_n "checking for $ac_word... " >&6; }
8066if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8067  $as_echo_n "(cached) " >&6
8068else
8069  if test -n "$ac_ct_RANLIB"; then
8070  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8071else
8072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8073for as_dir in $PATH
8074do
8075  IFS=$as_save_IFS
8076  test -z "$as_dir" && as_dir=.
8077    for ac_exec_ext in '' $ac_executable_extensions; do
8078  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8079    ac_cv_prog_ac_ct_RANLIB="ranlib"
8080    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8081    break 2
8082  fi
8083done
8084  done
8085IFS=$as_save_IFS
8086
8087fi
8088fi
8089ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8090if test -n "$ac_ct_RANLIB"; then
8091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8092$as_echo "$ac_ct_RANLIB" >&6; }
8093else
8094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8095$as_echo "no" >&6; }
8096fi
8097
8098  if test "x$ac_ct_RANLIB" = x; then
8099    RANLIB=":"
8100  else
8101    case $cross_compiling:$ac_tool_warned in
8102yes:)
8103{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8104$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8105ac_tool_warned=yes ;;
8106esac
8107    RANLIB=$ac_ct_RANLIB
8108  fi
8109else
8110  RANLIB="$ac_cv_prog_RANLIB"
8111fi
8112
8113test -z "$RANLIB" && RANLIB=:
8114
8115
8116
8117
8118
8119
8120# Determine commands to create old-style static archives.
8121old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8122old_postinstall_cmds='chmod 644 $oldlib'
8123old_postuninstall_cmds=
8124
8125if test -n "$RANLIB"; then
8126  case $host_os in
8127  openbsd*)
8128    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8129    ;;
8130  *)
8131    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8132    ;;
8133  esac
8134  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8135fi
8136
8137case $host_os in
8138  darwin*)
8139    lock_old_archive_extraction=yes ;;
8140  *)
8141    lock_old_archive_extraction=no ;;
8142esac
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164for ac_prog in gawk mawk nawk awk
8165do
8166  # Extract the first word of "$ac_prog", so it can be a program name with args.
8167set dummy $ac_prog; ac_word=$2
8168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8169$as_echo_n "checking for $ac_word... " >&6; }
8170if ${ac_cv_prog_AWK+:} false; then :
8171  $as_echo_n "(cached) " >&6
8172else
8173  if test -n "$AWK"; then
8174  ac_cv_prog_AWK="$AWK" # Let the user override the test.
8175else
8176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8177for as_dir in $PATH
8178do
8179  IFS=$as_save_IFS
8180  test -z "$as_dir" && as_dir=.
8181    for ac_exec_ext in '' $ac_executable_extensions; do
8182  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8183    ac_cv_prog_AWK="$ac_prog"
8184    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8185    break 2
8186  fi
8187done
8188  done
8189IFS=$as_save_IFS
8190
8191fi
8192fi
8193AWK=$ac_cv_prog_AWK
8194if test -n "$AWK"; then
8195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8196$as_echo "$AWK" >&6; }
8197else
8198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8199$as_echo "no" >&6; }
8200fi
8201
8202
8203  test -n "$AWK" && break
8204done
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224# If no C compiler was specified, use CC.
8225LTCC=${LTCC-"$CC"}
8226
8227# If no C compiler flags were specified, use CFLAGS.
8228LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8229
8230# Allow CC to be a program name with arguments.
8231compiler=$CC
8232
8233
8234# Check for command to grab the raw symbol name followed by C symbol from nm.
8235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8236$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8237if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8238  $as_echo_n "(cached) " >&6
8239else
8240
8241# These are sane defaults that work on at least a few old systems.
8242# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8243
8244# Character class describing NM global symbol codes.
8245symcode='[BCDEGRST]'
8246
8247# Regexp to match symbols that can be accessed directly from C.
8248sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8249
8250# Define system-specific variables.
8251case $host_os in
8252aix*)
8253  symcode='[BCDT]'
8254  ;;
8255cygwin* | mingw* | pw32* | cegcc*)
8256  symcode='[ABCDGISTW]'
8257  ;;
8258hpux*)
8259  if test "$host_cpu" = ia64; then
8260    symcode='[ABCDEGRST]'
8261  fi
8262  ;;
8263irix* | nonstopux*)
8264  symcode='[BCDEGRST]'
8265  ;;
8266osf*)
8267  symcode='[BCDEGQRST]'
8268  ;;
8269solaris*)
8270  symcode='[BDRT]'
8271  ;;
8272sco3.2v5*)
8273  symcode='[DT]'
8274  ;;
8275sysv4.2uw2*)
8276  symcode='[DT]'
8277  ;;
8278sysv5* | sco5v6* | unixware* | OpenUNIX*)
8279  symcode='[ABDT]'
8280  ;;
8281sysv4)
8282  symcode='[DFNSTU]'
8283  ;;
8284esac
8285
8286# If we're using GNU nm, then use its standard symbol codes.
8287case `$NM -V 2>&1` in
8288*GNU* | *'with BFD'*)
8289  symcode='[ABCDGIRSTW]' ;;
8290esac
8291
8292# Transform an extracted symbol line into a proper C declaration.
8293# Some systems (esp. on ia64) link data and code symbols differently,
8294# so use this general approach.
8295lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8296
8297# Transform an extracted symbol line into symbol name and symbol address
8298lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8299lt_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'"
8300
8301# Handle CRLF in mingw tool chain
8302opt_cr=
8303case $build_os in
8304mingw*)
8305  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8306  ;;
8307esac
8308
8309# Try without a prefix underscore, then with it.
8310for ac_symprfx in "" "_"; do
8311
8312  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8313  symxfrm="\\1 $ac_symprfx\\2 \\2"
8314
8315  # Write the raw and C identifiers.
8316  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8317    # Fake it for dumpbin and say T for any non-static function
8318    # and D for any global variable.
8319    # Also find C++ and __fastcall symbols from MSVC++,
8320    # which start with @ or ?.
8321    lt_cv_sys_global_symbol_pipe="$AWK '"\
8322"     {last_section=section; section=\$ 3};"\
8323"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8324"     \$ 0!~/External *\|/{next};"\
8325"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8326"     {if(hide[section]) next};"\
8327"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8328"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8329"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8330"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8331"     ' prfx=^$ac_symprfx"
8332  else
8333    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8334  fi
8335  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8336
8337  # Check to see that the pipe works correctly.
8338  pipe_works=no
8339
8340  rm -f conftest*
8341  cat > conftest.$ac_ext <<_LT_EOF
8342#ifdef __cplusplus
8343extern "C" {
8344#endif
8345char nm_test_var;
8346void nm_test_func(void);
8347void nm_test_func(void){}
8348#ifdef __cplusplus
8349}
8350#endif
8351int main(){nm_test_var='a';nm_test_func();return(0);}
8352_LT_EOF
8353
8354  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8355  (eval $ac_compile) 2>&5
8356  ac_status=$?
8357  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8358  test $ac_status = 0; }; then
8359    # Now try to grab the symbols.
8360    nlist=conftest.nm
8361    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8362  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8363  ac_status=$?
8364  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8365  test $ac_status = 0; } && test -s "$nlist"; then
8366      # Try sorting and uniquifying the output.
8367      if sort "$nlist" | uniq > "$nlist"T; then
8368	mv -f "$nlist"T "$nlist"
8369      else
8370	rm -f "$nlist"T
8371      fi
8372
8373      # Make sure that we snagged all the symbols we need.
8374      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8375	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8376	  cat <<_LT_EOF > conftest.$ac_ext
8377/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8378#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8379/* DATA imports from DLLs on WIN32 con't be const, because runtime
8380   relocations are performed -- see ld's documentation on pseudo-relocs.  */
8381# define LT_DLSYM_CONST
8382#elif defined(__osf__)
8383/* This system does not cope well with relocations in const data.  */
8384# define LT_DLSYM_CONST
8385#else
8386# define LT_DLSYM_CONST const
8387#endif
8388
8389#ifdef __cplusplus
8390extern "C" {
8391#endif
8392
8393_LT_EOF
8394	  # Now generate the symbol file.
8395	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8396
8397	  cat <<_LT_EOF >> conftest.$ac_ext
8398
8399/* The mapping between symbol names and symbols.  */
8400LT_DLSYM_CONST struct {
8401  const char *name;
8402  void       *address;
8403}
8404lt__PROGRAM__LTX_preloaded_symbols[] =
8405{
8406  { "@PROGRAM@", (void *) 0 },
8407_LT_EOF
8408	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8409	  cat <<\_LT_EOF >> conftest.$ac_ext
8410  {0, (void *) 0}
8411};
8412
8413/* This works around a problem in FreeBSD linker */
8414#ifdef FREEBSD_WORKAROUND
8415static const void *lt_preloaded_setup() {
8416  return lt__PROGRAM__LTX_preloaded_symbols;
8417}
8418#endif
8419
8420#ifdef __cplusplus
8421}
8422#endif
8423_LT_EOF
8424	  # Now try linking the two files.
8425	  mv conftest.$ac_objext conftstm.$ac_objext
8426	  lt_globsym_save_LIBS=$LIBS
8427	  lt_globsym_save_CFLAGS=$CFLAGS
8428	  LIBS="conftstm.$ac_objext"
8429	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8430	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8431  (eval $ac_link) 2>&5
8432  ac_status=$?
8433  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8434  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8435	    pipe_works=yes
8436	  fi
8437	  LIBS=$lt_globsym_save_LIBS
8438	  CFLAGS=$lt_globsym_save_CFLAGS
8439	else
8440	  echo "cannot find nm_test_func in $nlist" >&5
8441	fi
8442      else
8443	echo "cannot find nm_test_var in $nlist" >&5
8444      fi
8445    else
8446      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8447    fi
8448  else
8449    echo "$progname: failed program was:" >&5
8450    cat conftest.$ac_ext >&5
8451  fi
8452  rm -rf conftest* conftst*
8453
8454  # Do not use the global_symbol_pipe unless it works.
8455  if test "$pipe_works" = yes; then
8456    break
8457  else
8458    lt_cv_sys_global_symbol_pipe=
8459  fi
8460done
8461
8462fi
8463
8464if test -z "$lt_cv_sys_global_symbol_pipe"; then
8465  lt_cv_sys_global_symbol_to_cdecl=
8466fi
8467if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8469$as_echo "failed" >&6; }
8470else
8471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8472$as_echo "ok" >&6; }
8473fi
8474
8475# Response file support.
8476if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8477  nm_file_list_spec='@'
8478elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8479  nm_file_list_spec='@'
8480fi
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8509$as_echo_n "checking for sysroot... " >&6; }
8510
8511# Check whether --with-sysroot was given.
8512if test "${with_sysroot+set}" = set; then :
8513  withval=$with_sysroot;
8514else
8515  with_sysroot=no
8516fi
8517
8518
8519lt_sysroot=
8520case ${with_sysroot} in #(
8521 yes)
8522   if test "$GCC" = yes; then
8523     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8524   fi
8525   ;; #(
8526 /*)
8527   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8528   ;; #(
8529 no|'')
8530   ;; #(
8531 *)
8532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8533$as_echo "${with_sysroot}" >&6; }
8534   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8535   ;;
8536esac
8537
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8539$as_echo "${lt_sysroot:-no}" >&6; }
8540
8541
8542
8543
8544
8545# Check whether --enable-libtool-lock was given.
8546if test "${enable_libtool_lock+set}" = set; then :
8547  enableval=$enable_libtool_lock;
8548fi
8549
8550test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8551
8552# Some flags need to be propagated to the compiler or linker for good
8553# libtool support.
8554case $host in
8555ia64-*-hpux*)
8556  # Find out which ABI we are using.
8557  echo 'int i;' > conftest.$ac_ext
8558  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8559  (eval $ac_compile) 2>&5
8560  ac_status=$?
8561  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8562  test $ac_status = 0; }; then
8563    case `/usr/bin/file conftest.$ac_objext` in
8564      *ELF-32*)
8565	HPUX_IA64_MODE="32"
8566	;;
8567      *ELF-64*)
8568	HPUX_IA64_MODE="64"
8569	;;
8570    esac
8571  fi
8572  rm -rf conftest*
8573  ;;
8574*-*-irix6*)
8575  # Find out which ABI we are using.
8576  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8577  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8578  (eval $ac_compile) 2>&5
8579  ac_status=$?
8580  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8581  test $ac_status = 0; }; then
8582    if test "$lt_cv_prog_gnu_ld" = yes; then
8583      case `/usr/bin/file conftest.$ac_objext` in
8584	*32-bit*)
8585	  LD="${LD-ld} -melf32bsmip"
8586	  ;;
8587	*N32*)
8588	  LD="${LD-ld} -melf32bmipn32"
8589	  ;;
8590	*64-bit*)
8591	  LD="${LD-ld} -melf64bmip"
8592	;;
8593      esac
8594    else
8595      case `/usr/bin/file conftest.$ac_objext` in
8596	*32-bit*)
8597	  LD="${LD-ld} -32"
8598	  ;;
8599	*N32*)
8600	  LD="${LD-ld} -n32"
8601	  ;;
8602	*64-bit*)
8603	  LD="${LD-ld} -64"
8604	  ;;
8605      esac
8606    fi
8607  fi
8608  rm -rf conftest*
8609  ;;
8610
8611x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8612s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8613  # Find out which ABI we are using.
8614  echo 'int i;' > conftest.$ac_ext
8615  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8616  (eval $ac_compile) 2>&5
8617  ac_status=$?
8618  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8619  test $ac_status = 0; }; then
8620    case `/usr/bin/file conftest.o` in
8621      *32-bit*)
8622	case $host in
8623	  x86_64-*kfreebsd*-gnu)
8624	    LD="${LD-ld} -m elf_i386_fbsd"
8625	    ;;
8626	  x86_64-*linux*)
8627	    LD="${LD-ld} -m elf_i386"
8628	    ;;
8629	  ppc64-*linux*|powerpc64-*linux*)
8630	    LD="${LD-ld} -m elf32ppclinux"
8631	    ;;
8632	  s390x-*linux*)
8633	    LD="${LD-ld} -m elf_s390"
8634	    ;;
8635	  sparc64-*linux*)
8636	    LD="${LD-ld} -m elf32_sparc"
8637	    ;;
8638	esac
8639	;;
8640      *64-bit*)
8641	case $host in
8642	  x86_64-*kfreebsd*-gnu)
8643	    LD="${LD-ld} -m elf_x86_64_fbsd"
8644	    ;;
8645	  x86_64-*linux*)
8646	    LD="${LD-ld} -m elf_x86_64"
8647	    ;;
8648	  ppc*-*linux*|powerpc*-*linux*)
8649	    LD="${LD-ld} -m elf64ppc"
8650	    ;;
8651	  s390*-*linux*|s390*-*tpf*)
8652	    LD="${LD-ld} -m elf64_s390"
8653	    ;;
8654	  sparc*-*linux*)
8655	    LD="${LD-ld} -m elf64_sparc"
8656	    ;;
8657	esac
8658	;;
8659    esac
8660  fi
8661  rm -rf conftest*
8662  ;;
8663
8664*-*-sco3.2v5*)
8665  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8666  SAVE_CFLAGS="$CFLAGS"
8667  CFLAGS="$CFLAGS -belf"
8668  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8669$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8670if ${lt_cv_cc_needs_belf+:} false; then :
8671  $as_echo_n "(cached) " >&6
8672else
8673  ac_ext=c
8674ac_cpp='$CPP $CPPFLAGS'
8675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8677ac_compiler_gnu=$ac_cv_c_compiler_gnu
8678
8679     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8680/* end confdefs.h.  */
8681
8682int
8683main ()
8684{
8685
8686  ;
8687  return 0;
8688}
8689_ACEOF
8690if ac_fn_c_try_link "$LINENO"; then :
8691  lt_cv_cc_needs_belf=yes
8692else
8693  lt_cv_cc_needs_belf=no
8694fi
8695rm -f core conftest.err conftest.$ac_objext \
8696    conftest$ac_exeext conftest.$ac_ext
8697     ac_ext=c
8698ac_cpp='$CPP $CPPFLAGS'
8699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8701ac_compiler_gnu=$ac_cv_c_compiler_gnu
8702
8703fi
8704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8705$as_echo "$lt_cv_cc_needs_belf" >&6; }
8706  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8707    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8708    CFLAGS="$SAVE_CFLAGS"
8709  fi
8710  ;;
8711sparc*-*solaris*)
8712  # Find out which ABI we are using.
8713  echo 'int i;' > conftest.$ac_ext
8714  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8715  (eval $ac_compile) 2>&5
8716  ac_status=$?
8717  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8718  test $ac_status = 0; }; then
8719    case `/usr/bin/file conftest.o` in
8720    *64-bit*)
8721      case $lt_cv_prog_gnu_ld in
8722      yes*) LD="${LD-ld} -m elf64_sparc" ;;
8723      *)
8724	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8725	  LD="${LD-ld} -64"
8726	fi
8727	;;
8728      esac
8729      ;;
8730    esac
8731  fi
8732  rm -rf conftest*
8733  ;;
8734esac
8735
8736need_locks="$enable_libtool_lock"
8737
8738if test -n "$ac_tool_prefix"; then
8739  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8740set dummy ${ac_tool_prefix}mt; ac_word=$2
8741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8742$as_echo_n "checking for $ac_word... " >&6; }
8743if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8744  $as_echo_n "(cached) " >&6
8745else
8746  if test -n "$MANIFEST_TOOL"; then
8747  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8748else
8749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8750for as_dir in $PATH
8751do
8752  IFS=$as_save_IFS
8753  test -z "$as_dir" && as_dir=.
8754    for ac_exec_ext in '' $ac_executable_extensions; do
8755  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8756    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8757    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8758    break 2
8759  fi
8760done
8761  done
8762IFS=$as_save_IFS
8763
8764fi
8765fi
8766MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8767if test -n "$MANIFEST_TOOL"; then
8768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8769$as_echo "$MANIFEST_TOOL" >&6; }
8770else
8771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8772$as_echo "no" >&6; }
8773fi
8774
8775
8776fi
8777if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8778  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8779  # Extract the first word of "mt", so it can be a program name with args.
8780set dummy mt; ac_word=$2
8781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8782$as_echo_n "checking for $ac_word... " >&6; }
8783if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8784  $as_echo_n "(cached) " >&6
8785else
8786  if test -n "$ac_ct_MANIFEST_TOOL"; then
8787  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8788else
8789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8790for as_dir in $PATH
8791do
8792  IFS=$as_save_IFS
8793  test -z "$as_dir" && as_dir=.
8794    for ac_exec_ext in '' $ac_executable_extensions; do
8795  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8796    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8797    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8798    break 2
8799  fi
8800done
8801  done
8802IFS=$as_save_IFS
8803
8804fi
8805fi
8806ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8807if test -n "$ac_ct_MANIFEST_TOOL"; then
8808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8809$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8810else
8811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812$as_echo "no" >&6; }
8813fi
8814
8815  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8816    MANIFEST_TOOL=":"
8817  else
8818    case $cross_compiling:$ac_tool_warned in
8819yes:)
8820{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8821$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8822ac_tool_warned=yes ;;
8823esac
8824    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8825  fi
8826else
8827  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8828fi
8829
8830test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8832$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8833if ${lt_cv_path_mainfest_tool+:} false; then :
8834  $as_echo_n "(cached) " >&6
8835else
8836  lt_cv_path_mainfest_tool=no
8837  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8838  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8839  cat conftest.err >&5
8840  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8841    lt_cv_path_mainfest_tool=yes
8842  fi
8843  rm -f conftest*
8844fi
8845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8846$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8847if test "x$lt_cv_path_mainfest_tool" != xyes; then
8848  MANIFEST_TOOL=:
8849fi
8850
8851
8852
8853
8854
8855
8856  case $host_os in
8857    rhapsody* | darwin*)
8858    if test -n "$ac_tool_prefix"; then
8859  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8860set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8862$as_echo_n "checking for $ac_word... " >&6; }
8863if ${ac_cv_prog_DSYMUTIL+:} false; then :
8864  $as_echo_n "(cached) " >&6
8865else
8866  if test -n "$DSYMUTIL"; then
8867  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8868else
8869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8870for as_dir in $PATH
8871do
8872  IFS=$as_save_IFS
8873  test -z "$as_dir" && as_dir=.
8874    for ac_exec_ext in '' $ac_executable_extensions; do
8875  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8876    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8877    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8878    break 2
8879  fi
8880done
8881  done
8882IFS=$as_save_IFS
8883
8884fi
8885fi
8886DSYMUTIL=$ac_cv_prog_DSYMUTIL
8887if test -n "$DSYMUTIL"; then
8888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8889$as_echo "$DSYMUTIL" >&6; }
8890else
8891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8892$as_echo "no" >&6; }
8893fi
8894
8895
8896fi
8897if test -z "$ac_cv_prog_DSYMUTIL"; then
8898  ac_ct_DSYMUTIL=$DSYMUTIL
8899  # Extract the first word of "dsymutil", so it can be a program name with args.
8900set dummy dsymutil; ac_word=$2
8901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8902$as_echo_n "checking for $ac_word... " >&6; }
8903if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8904  $as_echo_n "(cached) " >&6
8905else
8906  if test -n "$ac_ct_DSYMUTIL"; then
8907  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8908else
8909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8910for as_dir in $PATH
8911do
8912  IFS=$as_save_IFS
8913  test -z "$as_dir" && as_dir=.
8914    for ac_exec_ext in '' $ac_executable_extensions; do
8915  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8916    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8917    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8918    break 2
8919  fi
8920done
8921  done
8922IFS=$as_save_IFS
8923
8924fi
8925fi
8926ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8927if test -n "$ac_ct_DSYMUTIL"; then
8928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8929$as_echo "$ac_ct_DSYMUTIL" >&6; }
8930else
8931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8932$as_echo "no" >&6; }
8933fi
8934
8935  if test "x$ac_ct_DSYMUTIL" = x; then
8936    DSYMUTIL=":"
8937  else
8938    case $cross_compiling:$ac_tool_warned in
8939yes:)
8940{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8941$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8942ac_tool_warned=yes ;;
8943esac
8944    DSYMUTIL=$ac_ct_DSYMUTIL
8945  fi
8946else
8947  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8948fi
8949
8950    if test -n "$ac_tool_prefix"; then
8951  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8952set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8954$as_echo_n "checking for $ac_word... " >&6; }
8955if ${ac_cv_prog_NMEDIT+:} false; then :
8956  $as_echo_n "(cached) " >&6
8957else
8958  if test -n "$NMEDIT"; then
8959  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8960else
8961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8962for as_dir in $PATH
8963do
8964  IFS=$as_save_IFS
8965  test -z "$as_dir" && as_dir=.
8966    for ac_exec_ext in '' $ac_executable_extensions; do
8967  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8968    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8969    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8970    break 2
8971  fi
8972done
8973  done
8974IFS=$as_save_IFS
8975
8976fi
8977fi
8978NMEDIT=$ac_cv_prog_NMEDIT
8979if test -n "$NMEDIT"; then
8980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8981$as_echo "$NMEDIT" >&6; }
8982else
8983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8984$as_echo "no" >&6; }
8985fi
8986
8987
8988fi
8989if test -z "$ac_cv_prog_NMEDIT"; then
8990  ac_ct_NMEDIT=$NMEDIT
8991  # Extract the first word of "nmedit", so it can be a program name with args.
8992set dummy nmedit; ac_word=$2
8993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8994$as_echo_n "checking for $ac_word... " >&6; }
8995if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8996  $as_echo_n "(cached) " >&6
8997else
8998  if test -n "$ac_ct_NMEDIT"; then
8999  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9000else
9001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9002for as_dir in $PATH
9003do
9004  IFS=$as_save_IFS
9005  test -z "$as_dir" && as_dir=.
9006    for ac_exec_ext in '' $ac_executable_extensions; do
9007  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9008    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9009    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9010    break 2
9011  fi
9012done
9013  done
9014IFS=$as_save_IFS
9015
9016fi
9017fi
9018ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9019if test -n "$ac_ct_NMEDIT"; then
9020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9021$as_echo "$ac_ct_NMEDIT" >&6; }
9022else
9023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9024$as_echo "no" >&6; }
9025fi
9026
9027  if test "x$ac_ct_NMEDIT" = x; then
9028    NMEDIT=":"
9029  else
9030    case $cross_compiling:$ac_tool_warned in
9031yes:)
9032{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9033$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9034ac_tool_warned=yes ;;
9035esac
9036    NMEDIT=$ac_ct_NMEDIT
9037  fi
9038else
9039  NMEDIT="$ac_cv_prog_NMEDIT"
9040fi
9041
9042    if test -n "$ac_tool_prefix"; then
9043  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9044set dummy ${ac_tool_prefix}lipo; ac_word=$2
9045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9046$as_echo_n "checking for $ac_word... " >&6; }
9047if ${ac_cv_prog_LIPO+:} false; then :
9048  $as_echo_n "(cached) " >&6
9049else
9050  if test -n "$LIPO"; then
9051  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9052else
9053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9054for as_dir in $PATH
9055do
9056  IFS=$as_save_IFS
9057  test -z "$as_dir" && as_dir=.
9058    for ac_exec_ext in '' $ac_executable_extensions; do
9059  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9060    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9061    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9062    break 2
9063  fi
9064done
9065  done
9066IFS=$as_save_IFS
9067
9068fi
9069fi
9070LIPO=$ac_cv_prog_LIPO
9071if test -n "$LIPO"; then
9072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9073$as_echo "$LIPO" >&6; }
9074else
9075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9076$as_echo "no" >&6; }
9077fi
9078
9079
9080fi
9081if test -z "$ac_cv_prog_LIPO"; then
9082  ac_ct_LIPO=$LIPO
9083  # Extract the first word of "lipo", so it can be a program name with args.
9084set dummy lipo; ac_word=$2
9085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9086$as_echo_n "checking for $ac_word... " >&6; }
9087if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9088  $as_echo_n "(cached) " >&6
9089else
9090  if test -n "$ac_ct_LIPO"; then
9091  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9092else
9093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9094for as_dir in $PATH
9095do
9096  IFS=$as_save_IFS
9097  test -z "$as_dir" && as_dir=.
9098    for ac_exec_ext in '' $ac_executable_extensions; do
9099  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9100    ac_cv_prog_ac_ct_LIPO="lipo"
9101    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9102    break 2
9103  fi
9104done
9105  done
9106IFS=$as_save_IFS
9107
9108fi
9109fi
9110ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9111if test -n "$ac_ct_LIPO"; then
9112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9113$as_echo "$ac_ct_LIPO" >&6; }
9114else
9115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9116$as_echo "no" >&6; }
9117fi
9118
9119  if test "x$ac_ct_LIPO" = x; then
9120    LIPO=":"
9121  else
9122    case $cross_compiling:$ac_tool_warned in
9123yes:)
9124{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9125$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9126ac_tool_warned=yes ;;
9127esac
9128    LIPO=$ac_ct_LIPO
9129  fi
9130else
9131  LIPO="$ac_cv_prog_LIPO"
9132fi
9133
9134    if test -n "$ac_tool_prefix"; then
9135  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9136set dummy ${ac_tool_prefix}otool; ac_word=$2
9137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9138$as_echo_n "checking for $ac_word... " >&6; }
9139if ${ac_cv_prog_OTOOL+:} false; then :
9140  $as_echo_n "(cached) " >&6
9141else
9142  if test -n "$OTOOL"; then
9143  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9144else
9145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9146for as_dir in $PATH
9147do
9148  IFS=$as_save_IFS
9149  test -z "$as_dir" && as_dir=.
9150    for ac_exec_ext in '' $ac_executable_extensions; do
9151  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9152    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9153    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9154    break 2
9155  fi
9156done
9157  done
9158IFS=$as_save_IFS
9159
9160fi
9161fi
9162OTOOL=$ac_cv_prog_OTOOL
9163if test -n "$OTOOL"; then
9164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9165$as_echo "$OTOOL" >&6; }
9166else
9167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9168$as_echo "no" >&6; }
9169fi
9170
9171
9172fi
9173if test -z "$ac_cv_prog_OTOOL"; then
9174  ac_ct_OTOOL=$OTOOL
9175  # Extract the first word of "otool", so it can be a program name with args.
9176set dummy otool; ac_word=$2
9177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9178$as_echo_n "checking for $ac_word... " >&6; }
9179if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9180  $as_echo_n "(cached) " >&6
9181else
9182  if test -n "$ac_ct_OTOOL"; then
9183  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9184else
9185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9186for as_dir in $PATH
9187do
9188  IFS=$as_save_IFS
9189  test -z "$as_dir" && as_dir=.
9190    for ac_exec_ext in '' $ac_executable_extensions; do
9191  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9192    ac_cv_prog_ac_ct_OTOOL="otool"
9193    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9194    break 2
9195  fi
9196done
9197  done
9198IFS=$as_save_IFS
9199
9200fi
9201fi
9202ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9203if test -n "$ac_ct_OTOOL"; then
9204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9205$as_echo "$ac_ct_OTOOL" >&6; }
9206else
9207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9208$as_echo "no" >&6; }
9209fi
9210
9211  if test "x$ac_ct_OTOOL" = x; then
9212    OTOOL=":"
9213  else
9214    case $cross_compiling:$ac_tool_warned in
9215yes:)
9216{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9218ac_tool_warned=yes ;;
9219esac
9220    OTOOL=$ac_ct_OTOOL
9221  fi
9222else
9223  OTOOL="$ac_cv_prog_OTOOL"
9224fi
9225
9226    if test -n "$ac_tool_prefix"; then
9227  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9228set dummy ${ac_tool_prefix}otool64; ac_word=$2
9229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9230$as_echo_n "checking for $ac_word... " >&6; }
9231if ${ac_cv_prog_OTOOL64+:} false; then :
9232  $as_echo_n "(cached) " >&6
9233else
9234  if test -n "$OTOOL64"; then
9235  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9236else
9237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9238for as_dir in $PATH
9239do
9240  IFS=$as_save_IFS
9241  test -z "$as_dir" && as_dir=.
9242    for ac_exec_ext in '' $ac_executable_extensions; do
9243  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9244    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9245    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9246    break 2
9247  fi
9248done
9249  done
9250IFS=$as_save_IFS
9251
9252fi
9253fi
9254OTOOL64=$ac_cv_prog_OTOOL64
9255if test -n "$OTOOL64"; then
9256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9257$as_echo "$OTOOL64" >&6; }
9258else
9259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9260$as_echo "no" >&6; }
9261fi
9262
9263
9264fi
9265if test -z "$ac_cv_prog_OTOOL64"; then
9266  ac_ct_OTOOL64=$OTOOL64
9267  # Extract the first word of "otool64", so it can be a program name with args.
9268set dummy otool64; ac_word=$2
9269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9270$as_echo_n "checking for $ac_word... " >&6; }
9271if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9272  $as_echo_n "(cached) " >&6
9273else
9274  if test -n "$ac_ct_OTOOL64"; then
9275  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9276else
9277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9278for as_dir in $PATH
9279do
9280  IFS=$as_save_IFS
9281  test -z "$as_dir" && as_dir=.
9282    for ac_exec_ext in '' $ac_executable_extensions; do
9283  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9284    ac_cv_prog_ac_ct_OTOOL64="otool64"
9285    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9286    break 2
9287  fi
9288done
9289  done
9290IFS=$as_save_IFS
9291
9292fi
9293fi
9294ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9295if test -n "$ac_ct_OTOOL64"; then
9296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9297$as_echo "$ac_ct_OTOOL64" >&6; }
9298else
9299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9300$as_echo "no" >&6; }
9301fi
9302
9303  if test "x$ac_ct_OTOOL64" = x; then
9304    OTOOL64=":"
9305  else
9306    case $cross_compiling:$ac_tool_warned in
9307yes:)
9308{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9309$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9310ac_tool_warned=yes ;;
9311esac
9312    OTOOL64=$ac_ct_OTOOL64
9313  fi
9314else
9315  OTOOL64="$ac_cv_prog_OTOOL64"
9316fi
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9345$as_echo_n "checking for -single_module linker flag... " >&6; }
9346if ${lt_cv_apple_cc_single_mod+:} false; then :
9347  $as_echo_n "(cached) " >&6
9348else
9349  lt_cv_apple_cc_single_mod=no
9350      if test -z "${LT_MULTI_MODULE}"; then
9351	# By default we will add the -single_module flag. You can override
9352	# by either setting the environment variable LT_MULTI_MODULE
9353	# non-empty at configure time, or by adding -multi_module to the
9354	# link flags.
9355	rm -rf libconftest.dylib*
9356	echo "int foo(void){return 1;}" > conftest.c
9357	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9358-dynamiclib -Wl,-single_module conftest.c" >&5
9359	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9360	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9361        _lt_result=$?
9362	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9363	  lt_cv_apple_cc_single_mod=yes
9364	else
9365	  cat conftest.err >&5
9366	fi
9367	rm -rf libconftest.dylib*
9368	rm -f conftest.*
9369      fi
9370fi
9371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9372$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9373    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9374$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9375if ${lt_cv_ld_exported_symbols_list+:} false; then :
9376  $as_echo_n "(cached) " >&6
9377else
9378  lt_cv_ld_exported_symbols_list=no
9379      save_LDFLAGS=$LDFLAGS
9380      echo "_main" > conftest.sym
9381      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9382      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9383/* end confdefs.h.  */
9384
9385int
9386main ()
9387{
9388
9389  ;
9390  return 0;
9391}
9392_ACEOF
9393if ac_fn_c_try_link "$LINENO"; then :
9394  lt_cv_ld_exported_symbols_list=yes
9395else
9396  lt_cv_ld_exported_symbols_list=no
9397fi
9398rm -f core conftest.err conftest.$ac_objext \
9399    conftest$ac_exeext conftest.$ac_ext
9400	LDFLAGS="$save_LDFLAGS"
9401
9402fi
9403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9404$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9405    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9406$as_echo_n "checking for -force_load linker flag... " >&6; }
9407if ${lt_cv_ld_force_load+:} false; then :
9408  $as_echo_n "(cached) " >&6
9409else
9410  lt_cv_ld_force_load=no
9411      cat > conftest.c << _LT_EOF
9412int forced_loaded() { return 2;}
9413_LT_EOF
9414      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9415      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9416      echo "$AR cru libconftest.a conftest.o" >&5
9417      $AR cru libconftest.a conftest.o 2>&5
9418      echo "$RANLIB libconftest.a" >&5
9419      $RANLIB libconftest.a 2>&5
9420      cat > conftest.c << _LT_EOF
9421int main() { return 0;}
9422_LT_EOF
9423      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9424      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9425      _lt_result=$?
9426      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9427	lt_cv_ld_force_load=yes
9428      else
9429	cat conftest.err >&5
9430      fi
9431        rm -f conftest.err libconftest.a conftest conftest.c
9432        rm -rf conftest.dSYM
9433
9434fi
9435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9436$as_echo "$lt_cv_ld_force_load" >&6; }
9437    case $host_os in
9438    rhapsody* | darwin1.[012])
9439      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9440    darwin1.*)
9441      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9442    darwin*) # darwin 5.x on
9443      # if running on 10.5 or later, the deployment target defaults
9444      # to the OS version, if on x86, and 10.4, the deployment
9445      # target defaults to 10.4. Don't you love it?
9446      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9447	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9448	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9449	10.[012]*)
9450	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9451	10.*)
9452	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9453      esac
9454    ;;
9455  esac
9456    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9457      _lt_dar_single_mod='$single_module'
9458    fi
9459    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9460      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9461    else
9462      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9463    fi
9464    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9465      _lt_dsymutil='~$DSYMUTIL $lib || :'
9466    else
9467      _lt_dsymutil=
9468    fi
9469    ;;
9470  esac
9471
9472for ac_header in dlfcn.h
9473do :
9474  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9475"
9476if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9477  cat >>confdefs.h <<_ACEOF
9478#define HAVE_DLFCN_H 1
9479_ACEOF
9480
9481fi
9482
9483done
9484
9485
9486
9487
9488
9489
9490
9491# Set options
9492
9493
9494
9495        enable_dlopen=no
9496
9497
9498  enable_win32_dll=no
9499
9500
9501            # Check whether --enable-shared was given.
9502if test "${enable_shared+set}" = set; then :
9503  enableval=$enable_shared; p=${PACKAGE-default}
9504    case $enableval in
9505    yes) enable_shared=yes ;;
9506    no) enable_shared=no ;;
9507    *)
9508      enable_shared=no
9509      # Look at the argument we got.  We use all the common list separators.
9510      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9511      for pkg in $enableval; do
9512	IFS="$lt_save_ifs"
9513	if test "X$pkg" = "X$p"; then
9514	  enable_shared=yes
9515	fi
9516      done
9517      IFS="$lt_save_ifs"
9518      ;;
9519    esac
9520else
9521  enable_shared=yes
9522fi
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532  # Check whether --enable-static was given.
9533if test "${enable_static+set}" = set; then :
9534  enableval=$enable_static; p=${PACKAGE-default}
9535    case $enableval in
9536    yes) enable_static=yes ;;
9537    no) enable_static=no ;;
9538    *)
9539     enable_static=no
9540      # Look at the argument we got.  We use all the common list separators.
9541      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9542      for pkg in $enableval; do
9543	IFS="$lt_save_ifs"
9544	if test "X$pkg" = "X$p"; then
9545	  enable_static=yes
9546	fi
9547      done
9548      IFS="$lt_save_ifs"
9549      ;;
9550    esac
9551else
9552  enable_static=yes
9553fi
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564# Check whether --with-pic was given.
9565if test "${with_pic+set}" = set; then :
9566  withval=$with_pic; pic_mode="$withval"
9567else
9568  pic_mode=default
9569fi
9570
9571
9572test -z "$pic_mode" && pic_mode=default
9573
9574
9575
9576
9577
9578
9579
9580  # Check whether --enable-fast-install was given.
9581if test "${enable_fast_install+set}" = set; then :
9582  enableval=$enable_fast_install; p=${PACKAGE-default}
9583    case $enableval in
9584    yes) enable_fast_install=yes ;;
9585    no) enable_fast_install=no ;;
9586    *)
9587      enable_fast_install=no
9588      # Look at the argument we got.  We use all the common list separators.
9589      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9590      for pkg in $enableval; do
9591	IFS="$lt_save_ifs"
9592	if test "X$pkg" = "X$p"; then
9593	  enable_fast_install=yes
9594	fi
9595      done
9596      IFS="$lt_save_ifs"
9597      ;;
9598    esac
9599else
9600  enable_fast_install=yes
9601fi
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613# This can be used to rebuild libtool when needed
9614LIBTOOL_DEPS="$ltmain"
9615
9616# Always use our own libtool.
9617LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644test -z "$LN_S" && LN_S="ln -s"
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659if test -n "${ZSH_VERSION+set}" ; then
9660   setopt NO_GLOB_SUBST
9661fi
9662
9663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9664$as_echo_n "checking for objdir... " >&6; }
9665if ${lt_cv_objdir+:} false; then :
9666  $as_echo_n "(cached) " >&6
9667else
9668  rm -f .libs 2>/dev/null
9669mkdir .libs 2>/dev/null
9670if test -d .libs; then
9671  lt_cv_objdir=.libs
9672else
9673  # MS-DOS does not allow filenames that begin with a dot.
9674  lt_cv_objdir=_libs
9675fi
9676rmdir .libs 2>/dev/null
9677fi
9678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9679$as_echo "$lt_cv_objdir" >&6; }
9680objdir=$lt_cv_objdir
9681
9682
9683
9684
9685
9686cat >>confdefs.h <<_ACEOF
9687#define LT_OBJDIR "$lt_cv_objdir/"
9688_ACEOF
9689
9690
9691
9692
9693case $host_os in
9694aix3*)
9695  # AIX sometimes has problems with the GCC collect2 program.  For some
9696  # reason, if we set the COLLECT_NAMES environment variable, the problems
9697  # vanish in a puff of smoke.
9698  if test "X${COLLECT_NAMES+set}" != Xset; then
9699    COLLECT_NAMES=
9700    export COLLECT_NAMES
9701  fi
9702  ;;
9703esac
9704
9705# Global variables:
9706ofile=libtool
9707can_build_shared=yes
9708
9709# All known linkers require a `.a' archive for static linking (except MSVC,
9710# which needs '.lib').
9711libext=a
9712
9713with_gnu_ld="$lt_cv_prog_gnu_ld"
9714
9715old_CC="$CC"
9716old_CFLAGS="$CFLAGS"
9717
9718# Set sane defaults for various variables
9719test -z "$CC" && CC=cc
9720test -z "$LTCC" && LTCC=$CC
9721test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9722test -z "$LD" && LD=ld
9723test -z "$ac_objext" && ac_objext=o
9724
9725for cc_temp in $compiler""; do
9726  case $cc_temp in
9727    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9728    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9729    \-*) ;;
9730    *) break;;
9731  esac
9732done
9733cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9734
9735
9736# Only perform the check for file, if the check method requires it
9737test -z "$MAGIC_CMD" && MAGIC_CMD=file
9738case $deplibs_check_method in
9739file_magic*)
9740  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9741    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9742$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9743if ${lt_cv_path_MAGIC_CMD+:} false; then :
9744  $as_echo_n "(cached) " >&6
9745else
9746  case $MAGIC_CMD in
9747[\\/*] |  ?:[\\/]*)
9748  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9749  ;;
9750*)
9751  lt_save_MAGIC_CMD="$MAGIC_CMD"
9752  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9753  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9754  for ac_dir in $ac_dummy; do
9755    IFS="$lt_save_ifs"
9756    test -z "$ac_dir" && ac_dir=.
9757    if test -f $ac_dir/${ac_tool_prefix}file; then
9758      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9759      if test -n "$file_magic_test_file"; then
9760	case $deplibs_check_method in
9761	"file_magic "*)
9762	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9763	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9764	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9765	    $EGREP "$file_magic_regex" > /dev/null; then
9766	    :
9767	  else
9768	    cat <<_LT_EOF 1>&2
9769
9770*** Warning: the command libtool uses to detect shared libraries,
9771*** $file_magic_cmd, produces output that libtool cannot recognize.
9772*** The result is that libtool may fail to recognize shared libraries
9773*** as such.  This will affect the creation of libtool libraries that
9774*** depend on shared libraries, but programs linked with such libtool
9775*** libraries will work regardless of this problem.  Nevertheless, you
9776*** may want to report the problem to your system manager and/or to
9777*** bug-libtool@gnu.org
9778
9779_LT_EOF
9780	  fi ;;
9781	esac
9782      fi
9783      break
9784    fi
9785  done
9786  IFS="$lt_save_ifs"
9787  MAGIC_CMD="$lt_save_MAGIC_CMD"
9788  ;;
9789esac
9790fi
9791
9792MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9793if test -n "$MAGIC_CMD"; then
9794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9795$as_echo "$MAGIC_CMD" >&6; }
9796else
9797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9798$as_echo "no" >&6; }
9799fi
9800
9801
9802
9803
9804
9805if test -z "$lt_cv_path_MAGIC_CMD"; then
9806  if test -n "$ac_tool_prefix"; then
9807    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9808$as_echo_n "checking for file... " >&6; }
9809if ${lt_cv_path_MAGIC_CMD+:} false; then :
9810  $as_echo_n "(cached) " >&6
9811else
9812  case $MAGIC_CMD in
9813[\\/*] |  ?:[\\/]*)
9814  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9815  ;;
9816*)
9817  lt_save_MAGIC_CMD="$MAGIC_CMD"
9818  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9819  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9820  for ac_dir in $ac_dummy; do
9821    IFS="$lt_save_ifs"
9822    test -z "$ac_dir" && ac_dir=.
9823    if test -f $ac_dir/file; then
9824      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9825      if test -n "$file_magic_test_file"; then
9826	case $deplibs_check_method in
9827	"file_magic "*)
9828	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9829	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9830	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9831	    $EGREP "$file_magic_regex" > /dev/null; then
9832	    :
9833	  else
9834	    cat <<_LT_EOF 1>&2
9835
9836*** Warning: the command libtool uses to detect shared libraries,
9837*** $file_magic_cmd, produces output that libtool cannot recognize.
9838*** The result is that libtool may fail to recognize shared libraries
9839*** as such.  This will affect the creation of libtool libraries that
9840*** depend on shared libraries, but programs linked with such libtool
9841*** libraries will work regardless of this problem.  Nevertheless, you
9842*** may want to report the problem to your system manager and/or to
9843*** bug-libtool@gnu.org
9844
9845_LT_EOF
9846	  fi ;;
9847	esac
9848      fi
9849      break
9850    fi
9851  done
9852  IFS="$lt_save_ifs"
9853  MAGIC_CMD="$lt_save_MAGIC_CMD"
9854  ;;
9855esac
9856fi
9857
9858MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9859if test -n "$MAGIC_CMD"; then
9860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9861$as_echo "$MAGIC_CMD" >&6; }
9862else
9863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9864$as_echo "no" >&6; }
9865fi
9866
9867
9868  else
9869    MAGIC_CMD=:
9870  fi
9871fi
9872
9873  fi
9874  ;;
9875esac
9876
9877# Use C for the default configuration in the libtool script
9878
9879lt_save_CC="$CC"
9880ac_ext=c
9881ac_cpp='$CPP $CPPFLAGS'
9882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9884ac_compiler_gnu=$ac_cv_c_compiler_gnu
9885
9886
9887# Source file extension for C test sources.
9888ac_ext=c
9889
9890# Object file extension for compiled C test sources.
9891objext=o
9892objext=$objext
9893
9894# Code to be used in simple compile tests
9895lt_simple_compile_test_code="int some_variable = 0;"
9896
9897# Code to be used in simple link tests
9898lt_simple_link_test_code='int main(){return(0);}'
9899
9900
9901
9902
9903
9904
9905
9906# If no C compiler was specified, use CC.
9907LTCC=${LTCC-"$CC"}
9908
9909# If no C compiler flags were specified, use CFLAGS.
9910LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9911
9912# Allow CC to be a program name with arguments.
9913compiler=$CC
9914
9915# Save the default compiler, since it gets overwritten when the other
9916# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9917compiler_DEFAULT=$CC
9918
9919# save warnings/boilerplate of simple test code
9920ac_outfile=conftest.$ac_objext
9921echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9922eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9923_lt_compiler_boilerplate=`cat conftest.err`
9924$RM conftest*
9925
9926ac_outfile=conftest.$ac_objext
9927echo "$lt_simple_link_test_code" >conftest.$ac_ext
9928eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9929_lt_linker_boilerplate=`cat conftest.err`
9930$RM -r conftest*
9931
9932
9933if test -n "$compiler"; then
9934
9935lt_prog_compiler_no_builtin_flag=
9936
9937if test "$GCC" = yes; then
9938  case $cc_basename in
9939  nvcc*)
9940    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9941  *)
9942    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9943  esac
9944
9945  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9946$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9947if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9948  $as_echo_n "(cached) " >&6
9949else
9950  lt_cv_prog_compiler_rtti_exceptions=no
9951   ac_outfile=conftest.$ac_objext
9952   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9953   lt_compiler_flag="-fno-rtti -fno-exceptions"
9954   # Insert the option either (1) after the last *FLAGS variable, or
9955   # (2) before a word containing "conftest.", or (3) at the end.
9956   # Note that $ac_compile itself does not contain backslashes and begins
9957   # with a dollar sign (not a hyphen), so the echo should work correctly.
9958   # The option is referenced via a variable to avoid confusing sed.
9959   lt_compile=`echo "$ac_compile" | $SED \
9960   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9961   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9962   -e 's:$: $lt_compiler_flag:'`
9963   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9964   (eval "$lt_compile" 2>conftest.err)
9965   ac_status=$?
9966   cat conftest.err >&5
9967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968   if (exit $ac_status) && test -s "$ac_outfile"; then
9969     # The compiler can only warn and ignore the option if not recognized
9970     # So say no if there are warnings other than the usual output.
9971     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9972     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9973     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9974       lt_cv_prog_compiler_rtti_exceptions=yes
9975     fi
9976   fi
9977   $RM conftest*
9978
9979fi
9980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9981$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9982
9983if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9984    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9985else
9986    :
9987fi
9988
9989fi
9990
9991
9992
9993
9994
9995
9996  lt_prog_compiler_wl=
9997lt_prog_compiler_pic=
9998lt_prog_compiler_static=
9999
10000
10001  if test "$GCC" = yes; then
10002    lt_prog_compiler_wl='-Wl,'
10003    lt_prog_compiler_static='-static'
10004
10005    case $host_os in
10006      aix*)
10007      # All AIX code is PIC.
10008      if test "$host_cpu" = ia64; then
10009	# AIX 5 now supports IA64 processor
10010	lt_prog_compiler_static='-Bstatic'
10011      fi
10012      ;;
10013
10014    amigaos*)
10015      case $host_cpu in
10016      powerpc)
10017            # see comment about AmigaOS4 .so support
10018            lt_prog_compiler_pic='-fPIC'
10019        ;;
10020      m68k)
10021            # FIXME: we need at least 68020 code to build shared libraries, but
10022            # adding the `-m68020' flag to GCC prevents building anything better,
10023            # like `-m68040'.
10024            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10025        ;;
10026      esac
10027      ;;
10028
10029    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10030      # PIC is the default for these OSes.
10031      ;;
10032
10033    mingw* | cygwin* | pw32* | os2* | cegcc*)
10034      # This hack is so that the source file can tell whether it is being
10035      # built for inclusion in a dll (and should export symbols for example).
10036      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10037      # (--disable-auto-import) libraries
10038      lt_prog_compiler_pic='-DDLL_EXPORT'
10039      ;;
10040
10041    darwin* | rhapsody*)
10042      # PIC is the default on this platform
10043      # Common symbols not allowed in MH_DYLIB files
10044      lt_prog_compiler_pic='-fno-common'
10045      ;;
10046
10047    haiku*)
10048      # PIC is the default for Haiku.
10049      # The "-static" flag exists, but is broken.
10050      lt_prog_compiler_static=
10051      ;;
10052
10053    hpux*)
10054      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10055      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10056      # sets the default TLS model and affects inlining.
10057      case $host_cpu in
10058      hppa*64*)
10059	# +Z the default
10060	;;
10061      *)
10062	lt_prog_compiler_pic='-fPIC'
10063	;;
10064      esac
10065      ;;
10066
10067    interix[3-9]*)
10068      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10069      # Instead, we relocate shared libraries at runtime.
10070      ;;
10071
10072    msdosdjgpp*)
10073      # Just because we use GCC doesn't mean we suddenly get shared libraries
10074      # on systems that don't support them.
10075      lt_prog_compiler_can_build_shared=no
10076      enable_shared=no
10077      ;;
10078
10079    *nto* | *qnx*)
10080      # QNX uses GNU C++, but need to define -shared option too, otherwise
10081      # it will coredump.
10082      lt_prog_compiler_pic='-fPIC -shared'
10083      ;;
10084
10085    sysv4*MP*)
10086      if test -d /usr/nec; then
10087	lt_prog_compiler_pic=-Kconform_pic
10088      fi
10089      ;;
10090
10091    *)
10092      lt_prog_compiler_pic='-fPIC'
10093      ;;
10094    esac
10095
10096    case $cc_basename in
10097    nvcc*) # Cuda Compiler Driver 2.2
10098      lt_prog_compiler_wl='-Xlinker '
10099      lt_prog_compiler_pic='-Xcompiler -fPIC'
10100      ;;
10101    esac
10102  else
10103    # PORTME Check for flag to pass linker flags through the system compiler.
10104    case $host_os in
10105    aix*)
10106      lt_prog_compiler_wl='-Wl,'
10107      if test "$host_cpu" = ia64; then
10108	# AIX 5 now supports IA64 processor
10109	lt_prog_compiler_static='-Bstatic'
10110      else
10111	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10112      fi
10113      ;;
10114
10115    mingw* | cygwin* | pw32* | os2* | cegcc*)
10116      # This hack is so that the source file can tell whether it is being
10117      # built for inclusion in a dll (and should export symbols for example).
10118      lt_prog_compiler_pic='-DDLL_EXPORT'
10119      ;;
10120
10121    hpux9* | hpux10* | hpux11*)
10122      lt_prog_compiler_wl='-Wl,'
10123      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10124      # not for PA HP-UX.
10125      case $host_cpu in
10126      hppa*64*|ia64*)
10127	# +Z the default
10128	;;
10129      *)
10130	lt_prog_compiler_pic='+Z'
10131	;;
10132      esac
10133      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10134      lt_prog_compiler_static='${wl}-a ${wl}archive'
10135      ;;
10136
10137    irix5* | irix6* | nonstopux*)
10138      lt_prog_compiler_wl='-Wl,'
10139      # PIC (with -KPIC) is the default.
10140      lt_prog_compiler_static='-non_shared'
10141      ;;
10142
10143    linux* | k*bsd*-gnu | kopensolaris*-gnu)
10144      case $cc_basename in
10145      # old Intel for x86_64 which still supported -KPIC.
10146      ecc*)
10147	lt_prog_compiler_wl='-Wl,'
10148	lt_prog_compiler_pic='-KPIC'
10149	lt_prog_compiler_static='-static'
10150        ;;
10151      # icc used to be incompatible with GCC.
10152      # ICC 10 doesn't accept -KPIC any more.
10153      icc* | ifort*)
10154	lt_prog_compiler_wl='-Wl,'
10155	lt_prog_compiler_pic='-fPIC'
10156	lt_prog_compiler_static='-static'
10157        ;;
10158      # Lahey Fortran 8.1.
10159      lf95*)
10160	lt_prog_compiler_wl='-Wl,'
10161	lt_prog_compiler_pic='--shared'
10162	lt_prog_compiler_static='--static'
10163	;;
10164      nagfor*)
10165	# NAG Fortran compiler
10166	lt_prog_compiler_wl='-Wl,-Wl,,'
10167	lt_prog_compiler_pic='-PIC'
10168	lt_prog_compiler_static='-Bstatic'
10169	;;
10170      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10171        # Portland Group compilers (*not* the Pentium gcc compiler,
10172	# which looks to be a dead project)
10173	lt_prog_compiler_wl='-Wl,'
10174	lt_prog_compiler_pic='-fpic'
10175	lt_prog_compiler_static='-Bstatic'
10176        ;;
10177      ccc*)
10178        lt_prog_compiler_wl='-Wl,'
10179        # All Alpha code is PIC.
10180        lt_prog_compiler_static='-non_shared'
10181        ;;
10182      xl* | bgxl* | bgf* | mpixl*)
10183	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10184	lt_prog_compiler_wl='-Wl,'
10185	lt_prog_compiler_pic='-qpic'
10186	lt_prog_compiler_static='-qstaticlink'
10187	;;
10188      *)
10189	case `$CC -V 2>&1 | sed 5q` in
10190	*Sun\ F* | *Sun*Fortran*)
10191	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10192	  lt_prog_compiler_pic='-KPIC'
10193	  lt_prog_compiler_static='-Bstatic'
10194	  lt_prog_compiler_wl=''
10195	  ;;
10196	*Sun\ C*)
10197	  # Sun C 5.9
10198	  lt_prog_compiler_pic='-KPIC'
10199	  lt_prog_compiler_static='-Bstatic'
10200	  lt_prog_compiler_wl='-Wl,'
10201	  ;;
10202	esac
10203	;;
10204      esac
10205      ;;
10206
10207    newsos6)
10208      lt_prog_compiler_pic='-KPIC'
10209      lt_prog_compiler_static='-Bstatic'
10210      ;;
10211
10212    *nto* | *qnx*)
10213      # QNX uses GNU C++, but need to define -shared option too, otherwise
10214      # it will coredump.
10215      lt_prog_compiler_pic='-fPIC -shared'
10216      ;;
10217
10218    osf3* | osf4* | osf5*)
10219      lt_prog_compiler_wl='-Wl,'
10220      # All OSF/1 code is PIC.
10221      lt_prog_compiler_static='-non_shared'
10222      ;;
10223
10224    rdos*)
10225      lt_prog_compiler_static='-non_shared'
10226      ;;
10227
10228    solaris*)
10229      lt_prog_compiler_pic='-KPIC'
10230      lt_prog_compiler_static='-Bstatic'
10231      case $cc_basename in
10232      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10233	lt_prog_compiler_wl='-Qoption ld ';;
10234      *)
10235	lt_prog_compiler_wl='-Wl,';;
10236      esac
10237      ;;
10238
10239    sunos4*)
10240      lt_prog_compiler_wl='-Qoption ld '
10241      lt_prog_compiler_pic='-PIC'
10242      lt_prog_compiler_static='-Bstatic'
10243      ;;
10244
10245    sysv4 | sysv4.2uw2* | sysv4.3*)
10246      lt_prog_compiler_wl='-Wl,'
10247      lt_prog_compiler_pic='-KPIC'
10248      lt_prog_compiler_static='-Bstatic'
10249      ;;
10250
10251    sysv4*MP*)
10252      if test -d /usr/nec ;then
10253	lt_prog_compiler_pic='-Kconform_pic'
10254	lt_prog_compiler_static='-Bstatic'
10255      fi
10256      ;;
10257
10258    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10259      lt_prog_compiler_wl='-Wl,'
10260      lt_prog_compiler_pic='-KPIC'
10261      lt_prog_compiler_static='-Bstatic'
10262      ;;
10263
10264    unicos*)
10265      lt_prog_compiler_wl='-Wl,'
10266      lt_prog_compiler_can_build_shared=no
10267      ;;
10268
10269    uts4*)
10270      lt_prog_compiler_pic='-pic'
10271      lt_prog_compiler_static='-Bstatic'
10272      ;;
10273
10274    *)
10275      lt_prog_compiler_can_build_shared=no
10276      ;;
10277    esac
10278  fi
10279
10280case $host_os in
10281  # For platforms which do not support PIC, -DPIC is meaningless:
10282  *djgpp*)
10283    lt_prog_compiler_pic=
10284    ;;
10285  *)
10286    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10287    ;;
10288esac
10289
10290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10291$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10292if ${lt_cv_prog_compiler_pic+:} false; then :
10293  $as_echo_n "(cached) " >&6
10294else
10295  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10296fi
10297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10298$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10299lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10300
10301#
10302# Check to make sure the PIC flag actually works.
10303#
10304if test -n "$lt_prog_compiler_pic"; then
10305  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10306$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10307if ${lt_cv_prog_compiler_pic_works+:} false; then :
10308  $as_echo_n "(cached) " >&6
10309else
10310  lt_cv_prog_compiler_pic_works=no
10311   ac_outfile=conftest.$ac_objext
10312   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10313   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10314   # Insert the option either (1) after the last *FLAGS variable, or
10315   # (2) before a word containing "conftest.", or (3) at the end.
10316   # Note that $ac_compile itself does not contain backslashes and begins
10317   # with a dollar sign (not a hyphen), so the echo should work correctly.
10318   # The option is referenced via a variable to avoid confusing sed.
10319   lt_compile=`echo "$ac_compile" | $SED \
10320   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10321   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10322   -e 's:$: $lt_compiler_flag:'`
10323   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10324   (eval "$lt_compile" 2>conftest.err)
10325   ac_status=$?
10326   cat conftest.err >&5
10327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328   if (exit $ac_status) && test -s "$ac_outfile"; then
10329     # The compiler can only warn and ignore the option if not recognized
10330     # So say no if there are warnings other than the usual output.
10331     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10332     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10333     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10334       lt_cv_prog_compiler_pic_works=yes
10335     fi
10336   fi
10337   $RM conftest*
10338
10339fi
10340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10341$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10342
10343if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10344    case $lt_prog_compiler_pic in
10345     "" | " "*) ;;
10346     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10347     esac
10348else
10349    lt_prog_compiler_pic=
10350     lt_prog_compiler_can_build_shared=no
10351fi
10352
10353fi
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365#
10366# Check to make sure the static flag actually works.
10367#
10368wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10370$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10371if ${lt_cv_prog_compiler_static_works+:} false; then :
10372  $as_echo_n "(cached) " >&6
10373else
10374  lt_cv_prog_compiler_static_works=no
10375   save_LDFLAGS="$LDFLAGS"
10376   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10377   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10378   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10379     # The linker can only warn and ignore the option if not recognized
10380     # So say no if there are warnings
10381     if test -s conftest.err; then
10382       # Append any errors to the config.log.
10383       cat conftest.err 1>&5
10384       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10385       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10386       if diff conftest.exp conftest.er2 >/dev/null; then
10387         lt_cv_prog_compiler_static_works=yes
10388       fi
10389     else
10390       lt_cv_prog_compiler_static_works=yes
10391     fi
10392   fi
10393   $RM -r conftest*
10394   LDFLAGS="$save_LDFLAGS"
10395
10396fi
10397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10398$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10399
10400if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10401    :
10402else
10403    lt_prog_compiler_static=
10404fi
10405
10406
10407
10408
10409
10410
10411
10412  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10413$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10414if ${lt_cv_prog_compiler_c_o+:} false; then :
10415  $as_echo_n "(cached) " >&6
10416else
10417  lt_cv_prog_compiler_c_o=no
10418   $RM -r conftest 2>/dev/null
10419   mkdir conftest
10420   cd conftest
10421   mkdir out
10422   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10423
10424   lt_compiler_flag="-o out/conftest2.$ac_objext"
10425   # Insert the option either (1) after the last *FLAGS variable, or
10426   # (2) before a word containing "conftest.", or (3) at the end.
10427   # Note that $ac_compile itself does not contain backslashes and begins
10428   # with a dollar sign (not a hyphen), so the echo should work correctly.
10429   lt_compile=`echo "$ac_compile" | $SED \
10430   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10431   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10432   -e 's:$: $lt_compiler_flag:'`
10433   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10434   (eval "$lt_compile" 2>out/conftest.err)
10435   ac_status=$?
10436   cat out/conftest.err >&5
10437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10439   then
10440     # The compiler can only warn and ignore the option if not recognized
10441     # So say no if there are warnings
10442     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10443     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10444     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10445       lt_cv_prog_compiler_c_o=yes
10446     fi
10447   fi
10448   chmod u+w . 2>&5
10449   $RM conftest*
10450   # SGI C++ compiler will create directory out/ii_files/ for
10451   # template instantiation
10452   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10453   $RM out/* && rmdir out
10454   cd ..
10455   $RM -r conftest
10456   $RM conftest*
10457
10458fi
10459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10460$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10461
10462
10463
10464
10465
10466
10467  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10468$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10469if ${lt_cv_prog_compiler_c_o+:} false; then :
10470  $as_echo_n "(cached) " >&6
10471else
10472  lt_cv_prog_compiler_c_o=no
10473   $RM -r conftest 2>/dev/null
10474   mkdir conftest
10475   cd conftest
10476   mkdir out
10477   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10478
10479   lt_compiler_flag="-o out/conftest2.$ac_objext"
10480   # Insert the option either (1) after the last *FLAGS variable, or
10481   # (2) before a word containing "conftest.", or (3) at the end.
10482   # Note that $ac_compile itself does not contain backslashes and begins
10483   # with a dollar sign (not a hyphen), so the echo should work correctly.
10484   lt_compile=`echo "$ac_compile" | $SED \
10485   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10486   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10487   -e 's:$: $lt_compiler_flag:'`
10488   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10489   (eval "$lt_compile" 2>out/conftest.err)
10490   ac_status=$?
10491   cat out/conftest.err >&5
10492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10494   then
10495     # The compiler can only warn and ignore the option if not recognized
10496     # So say no if there are warnings
10497     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10498     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10499     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10500       lt_cv_prog_compiler_c_o=yes
10501     fi
10502   fi
10503   chmod u+w . 2>&5
10504   $RM conftest*
10505   # SGI C++ compiler will create directory out/ii_files/ for
10506   # template instantiation
10507   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10508   $RM out/* && rmdir out
10509   cd ..
10510   $RM -r conftest
10511   $RM conftest*
10512
10513fi
10514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10515$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10516
10517
10518
10519
10520hard_links="nottested"
10521if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10522  # do not overwrite the value of need_locks provided by the user
10523  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10524$as_echo_n "checking if we can lock with hard links... " >&6; }
10525  hard_links=yes
10526  $RM conftest*
10527  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10528  touch conftest.a
10529  ln conftest.a conftest.b 2>&5 || hard_links=no
10530  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10532$as_echo "$hard_links" >&6; }
10533  if test "$hard_links" = no; then
10534    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10535$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10536    need_locks=warn
10537  fi
10538else
10539  need_locks=no
10540fi
10541
10542
10543
10544
10545
10546
10547  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10548$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10549
10550  runpath_var=
10551  allow_undefined_flag=
10552  always_export_symbols=no
10553  archive_cmds=
10554  archive_expsym_cmds=
10555  compiler_needs_object=no
10556  enable_shared_with_static_runtimes=no
10557  export_dynamic_flag_spec=
10558  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10559  hardcode_automatic=no
10560  hardcode_direct=no
10561  hardcode_direct_absolute=no
10562  hardcode_libdir_flag_spec=
10563  hardcode_libdir_flag_spec_ld=
10564  hardcode_libdir_separator=
10565  hardcode_minus_L=no
10566  hardcode_shlibpath_var=unsupported
10567  inherit_rpath=no
10568  link_all_deplibs=unknown
10569  module_cmds=
10570  module_expsym_cmds=
10571  old_archive_from_new_cmds=
10572  old_archive_from_expsyms_cmds=
10573  thread_safe_flag_spec=
10574  whole_archive_flag_spec=
10575  # include_expsyms should be a list of space-separated symbols to be *always*
10576  # included in the symbol list
10577  include_expsyms=
10578  # exclude_expsyms can be an extended regexp of symbols to exclude
10579  # it will be wrapped by ` (' and `)$', so one must not match beginning or
10580  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10581  # as well as any symbol that contains `d'.
10582  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10583  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10584  # platforms (ab)use it in PIC code, but their linkers get confused if
10585  # the symbol is explicitly referenced.  Since portable code cannot
10586  # rely on this symbol name, it's probably fine to never include it in
10587  # preloaded symbol tables.
10588  # Exclude shared library initialization/finalization symbols.
10589  extract_expsyms_cmds=
10590
10591  case $host_os in
10592  cygwin* | mingw* | pw32* | cegcc*)
10593    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10594    # When not using gcc, we currently assume that we are using
10595    # Microsoft Visual C++.
10596    if test "$GCC" != yes; then
10597      with_gnu_ld=no
10598    fi
10599    ;;
10600  interix*)
10601    # we just hope/assume this is gcc and not c89 (= MSVC++)
10602    with_gnu_ld=yes
10603    ;;
10604  openbsd*)
10605    with_gnu_ld=no
10606    ;;
10607  esac
10608
10609  ld_shlibs=yes
10610
10611  # On some targets, GNU ld is compatible enough with the native linker
10612  # that we're better off using the native interface for both.
10613  lt_use_gnu_ld_interface=no
10614  if test "$with_gnu_ld" = yes; then
10615    case $host_os in
10616      aix*)
10617	# The AIX port of GNU ld has always aspired to compatibility
10618	# with the native linker.  However, as the warning in the GNU ld
10619	# block says, versions before 2.19.5* couldn't really create working
10620	# shared libraries, regardless of the interface used.
10621	case `$LD -v 2>&1` in
10622	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10623	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10624	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10625	  *)
10626	    lt_use_gnu_ld_interface=yes
10627	    ;;
10628	esac
10629	;;
10630      *)
10631	lt_use_gnu_ld_interface=yes
10632	;;
10633    esac
10634  fi
10635
10636  if test "$lt_use_gnu_ld_interface" = yes; then
10637    # If archive_cmds runs LD, not CC, wlarc should be empty
10638    wlarc='${wl}'
10639
10640    # Set some defaults for GNU ld with shared library support. These
10641    # are reset later if shared libraries are not supported. Putting them
10642    # here allows them to be overridden if necessary.
10643    runpath_var=LD_RUN_PATH
10644    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10645    export_dynamic_flag_spec='${wl}--export-dynamic'
10646    # ancient GNU ld didn't support --whole-archive et. al.
10647    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10648      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10649    else
10650      whole_archive_flag_spec=
10651    fi
10652    supports_anon_versioning=no
10653    case `$LD -v 2>&1` in
10654      *GNU\ gold*) supports_anon_versioning=yes ;;
10655      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10656      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10657      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10658      *\ 2.11.*) ;; # other 2.11 versions
10659      *) supports_anon_versioning=yes ;;
10660    esac
10661
10662    # See if GNU ld supports shared libraries.
10663    case $host_os in
10664    aix[3-9]*)
10665      # On AIX/PPC, the GNU linker is very broken
10666      if test "$host_cpu" != ia64; then
10667	ld_shlibs=no
10668	cat <<_LT_EOF 1>&2
10669
10670*** Warning: the GNU linker, at least up to release 2.19, is reported
10671*** to be unable to reliably create shared libraries on AIX.
10672*** Therefore, libtool is disabling shared libraries support.  If you
10673*** really care for shared libraries, you may want to install binutils
10674*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10675*** You will then need to restart the configuration process.
10676
10677_LT_EOF
10678      fi
10679      ;;
10680
10681    amigaos*)
10682      case $host_cpu in
10683      powerpc)
10684            # see comment about AmigaOS4 .so support
10685            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10686            archive_expsym_cmds=''
10687        ;;
10688      m68k)
10689            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)'
10690            hardcode_libdir_flag_spec='-L$libdir'
10691            hardcode_minus_L=yes
10692        ;;
10693      esac
10694      ;;
10695
10696    beos*)
10697      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10698	allow_undefined_flag=unsupported
10699	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10700	# support --undefined.  This deserves some investigation.  FIXME
10701	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10702      else
10703	ld_shlibs=no
10704      fi
10705      ;;
10706
10707    cygwin* | mingw* | pw32* | cegcc*)
10708      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10709      # as there is no search path for DLLs.
10710      hardcode_libdir_flag_spec='-L$libdir'
10711      export_dynamic_flag_spec='${wl}--export-all-symbols'
10712      allow_undefined_flag=unsupported
10713      always_export_symbols=no
10714      enable_shared_with_static_runtimes=yes
10715      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10716      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10717
10718      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10719        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10720	# If the export-symbols file already is a .def file (1st line
10721	# is EXPORTS), use it as is; otherwise, prepend...
10722	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10723	  cp $export_symbols $output_objdir/$soname.def;
10724	else
10725	  echo EXPORTS > $output_objdir/$soname.def;
10726	  cat $export_symbols >> $output_objdir/$soname.def;
10727	fi~
10728	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10729      else
10730	ld_shlibs=no
10731      fi
10732      ;;
10733
10734    haiku*)
10735      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10736      link_all_deplibs=yes
10737      ;;
10738
10739    interix[3-9]*)
10740      hardcode_direct=no
10741      hardcode_shlibpath_var=no
10742      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10743      export_dynamic_flag_spec='${wl}-E'
10744      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10745      # Instead, shared libraries are loaded at an image base (0x10000000 by
10746      # default) and relocated if they conflict, which is a slow very memory
10747      # consuming and fragmenting process.  To avoid this, we pick a random,
10748      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10749      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10750      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10751      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'
10752      ;;
10753
10754    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10755      tmp_diet=no
10756      if test "$host_os" = linux-dietlibc; then
10757	case $cc_basename in
10758	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10759	esac
10760      fi
10761      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10762	 && test "$tmp_diet" = no
10763      then
10764	tmp_addflag=' $pic_flag'
10765	tmp_sharedflag='-shared'
10766	case $cc_basename,$host_cpu in
10767        pgcc*)				# Portland Group C compiler
10768	  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'
10769	  tmp_addflag=' $pic_flag'
10770	  ;;
10771	pgf77* | pgf90* | pgf95* | pgfortran*)
10772					# Portland Group f77 and f90 compilers
10773	  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'
10774	  tmp_addflag=' $pic_flag -Mnomain' ;;
10775	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10776	  tmp_addflag=' -i_dynamic' ;;
10777	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10778	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10779	ifc* | ifort*)			# Intel Fortran compiler
10780	  tmp_addflag=' -nofor_main' ;;
10781	lf95*)				# Lahey Fortran 8.1
10782	  whole_archive_flag_spec=
10783	  tmp_sharedflag='--shared' ;;
10784	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10785	  tmp_sharedflag='-qmkshrobj'
10786	  tmp_addflag= ;;
10787	nvcc*)	# Cuda Compiler Driver 2.2
10788	  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'
10789	  compiler_needs_object=yes
10790	  ;;
10791	esac
10792	case `$CC -V 2>&1 | sed 5q` in
10793	*Sun\ C*)			# Sun C 5.9
10794	  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'
10795	  compiler_needs_object=yes
10796	  tmp_sharedflag='-G' ;;
10797	*Sun\ F*)			# Sun Fortran 8.3
10798	  tmp_sharedflag='-G' ;;
10799	esac
10800	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10801
10802        if test "x$supports_anon_versioning" = xyes; then
10803          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10804	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10805	    echo "local: *; };" >> $output_objdir/$libname.ver~
10806	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10807        fi
10808
10809	case $cc_basename in
10810	xlf* | bgf* | bgxlf* | mpixlf*)
10811	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10812	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10813	  hardcode_libdir_flag_spec=
10814	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
10815	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10816	  if test "x$supports_anon_versioning" = xyes; then
10817	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10818	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10819	      echo "local: *; };" >> $output_objdir/$libname.ver~
10820	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10821	  fi
10822	  ;;
10823	esac
10824      else
10825        ld_shlibs=no
10826      fi
10827      ;;
10828
10829    netbsd*)
10830      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10831	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10832	wlarc=
10833      else
10834	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10835	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10836      fi
10837      ;;
10838
10839    solaris*)
10840      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10841	ld_shlibs=no
10842	cat <<_LT_EOF 1>&2
10843
10844*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10845*** create shared libraries on Solaris systems.  Therefore, libtool
10846*** is disabling shared libraries support.  We urge you to upgrade GNU
10847*** binutils to release 2.9.1 or newer.  Another option is to modify
10848*** your PATH or compiler configuration so that the native linker is
10849*** used, and then restart.
10850
10851_LT_EOF
10852      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10853	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10854	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10855      else
10856	ld_shlibs=no
10857      fi
10858      ;;
10859
10860    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10861      case `$LD -v 2>&1` in
10862        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10863	ld_shlibs=no
10864	cat <<_LT_EOF 1>&2
10865
10866*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10867*** reliably create shared libraries on SCO systems.  Therefore, libtool
10868*** is disabling shared libraries support.  We urge you to upgrade GNU
10869*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10870*** your PATH or compiler configuration so that the native linker is
10871*** used, and then restart.
10872
10873_LT_EOF
10874	;;
10875	*)
10876	  # For security reasons, it is highly recommended that you always
10877	  # use absolute paths for naming shared libraries, and exclude the
10878	  # DT_RUNPATH tag from executables and libraries.  But doing so
10879	  # requires that you compile everything twice, which is a pain.
10880	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10881	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10882	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10883	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10884	  else
10885	    ld_shlibs=no
10886	  fi
10887	;;
10888      esac
10889      ;;
10890
10891    sunos4*)
10892      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10893      wlarc=
10894      hardcode_direct=yes
10895      hardcode_shlibpath_var=no
10896      ;;
10897
10898    *)
10899      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10900	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10901	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10902      else
10903	ld_shlibs=no
10904      fi
10905      ;;
10906    esac
10907
10908    if test "$ld_shlibs" = no; then
10909      runpath_var=
10910      hardcode_libdir_flag_spec=
10911      export_dynamic_flag_spec=
10912      whole_archive_flag_spec=
10913    fi
10914  else
10915    # PORTME fill in a description of your system's linker (not GNU ld)
10916    case $host_os in
10917    aix3*)
10918      allow_undefined_flag=unsupported
10919      always_export_symbols=yes
10920      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'
10921      # Note: this linker hardcodes the directories in LIBPATH if there
10922      # are no directories specified by -L.
10923      hardcode_minus_L=yes
10924      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10925	# Neither direct hardcoding nor static linking is supported with a
10926	# broken collect2.
10927	hardcode_direct=unsupported
10928      fi
10929      ;;
10930
10931    aix[4-9]*)
10932      if test "$host_cpu" = ia64; then
10933	# On IA64, the linker does run time linking by default, so we don't
10934	# have to do anything special.
10935	aix_use_runtimelinking=no
10936	exp_sym_flag='-Bexport'
10937	no_entry_flag=""
10938      else
10939	# If we're using GNU nm, then we don't want the "-C" option.
10940	# -C means demangle to AIX nm, but means don't demangle with GNU nm
10941	# Also, AIX nm treats weak defined symbols like other global
10942	# defined symbols, whereas GNU nm marks them as "W".
10943	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10944	  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'
10945	else
10946	  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'
10947	fi
10948	aix_use_runtimelinking=no
10949
10950	# Test if we are trying to use run time linking or normal
10951	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10952	# need to do runtime linking.
10953	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10954	  for ld_flag in $LDFLAGS; do
10955	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10956	    aix_use_runtimelinking=yes
10957	    break
10958	  fi
10959	  done
10960	  ;;
10961	esac
10962
10963	exp_sym_flag='-bexport'
10964	no_entry_flag='-bnoentry'
10965      fi
10966
10967      # When large executables or shared objects are built, AIX ld can
10968      # have problems creating the table of contents.  If linking a library
10969      # or program results in "error TOC overflow" add -mminimal-toc to
10970      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10971      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10972
10973      archive_cmds=''
10974      hardcode_direct=yes
10975      hardcode_direct_absolute=yes
10976      hardcode_libdir_separator=':'
10977      link_all_deplibs=yes
10978      file_list_spec='${wl}-f,'
10979
10980      if test "$GCC" = yes; then
10981	case $host_os in aix4.[012]|aix4.[012].*)
10982	# We only want to do this on AIX 4.2 and lower, the check
10983	# below for broken collect2 doesn't work under 4.3+
10984	  collect2name=`${CC} -print-prog-name=collect2`
10985	  if test -f "$collect2name" &&
10986	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10987	  then
10988	  # We have reworked collect2
10989	  :
10990	  else
10991	  # We have old collect2
10992	  hardcode_direct=unsupported
10993	  # It fails to find uninstalled libraries when the uninstalled
10994	  # path is not listed in the libpath.  Setting hardcode_minus_L
10995	  # to unsupported forces relinking
10996	  hardcode_minus_L=yes
10997	  hardcode_libdir_flag_spec='-L$libdir'
10998	  hardcode_libdir_separator=
10999	  fi
11000	  ;;
11001	esac
11002	shared_flag='-shared'
11003	if test "$aix_use_runtimelinking" = yes; then
11004	  shared_flag="$shared_flag "'${wl}-G'
11005	fi
11006      else
11007	# not using gcc
11008	if test "$host_cpu" = ia64; then
11009	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11010	# chokes on -Wl,-G. The following line is correct:
11011	  shared_flag='-G'
11012	else
11013	  if test "$aix_use_runtimelinking" = yes; then
11014	    shared_flag='${wl}-G'
11015	  else
11016	    shared_flag='${wl}-bM:SRE'
11017	  fi
11018	fi
11019      fi
11020
11021      export_dynamic_flag_spec='${wl}-bexpall'
11022      # It seems that -bexpall does not export symbols beginning with
11023      # underscore (_), so it is better to generate a list of symbols to export.
11024      always_export_symbols=yes
11025      if test "$aix_use_runtimelinking" = yes; then
11026	# Warning - without using the other runtime loading flags (-brtl),
11027	# -berok will link without error, but may produce a broken library.
11028	allow_undefined_flag='-berok'
11029        # Determine the default libpath from the value encoded in an
11030        # empty executable.
11031        if test "${lt_cv_aix_libpath+set}" = set; then
11032  aix_libpath=$lt_cv_aix_libpath
11033else
11034  if ${lt_cv_aix_libpath_+:} false; then :
11035  $as_echo_n "(cached) " >&6
11036else
11037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11038/* end confdefs.h.  */
11039
11040int
11041main ()
11042{
11043
11044  ;
11045  return 0;
11046}
11047_ACEOF
11048if ac_fn_c_try_link "$LINENO"; then :
11049
11050  lt_aix_libpath_sed='
11051      /Import File Strings/,/^$/ {
11052	  /^0/ {
11053	      s/^0  *\([^ ]*\) *$/\1/
11054	      p
11055	  }
11056      }'
11057  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11058  # Check for a 64-bit object if we didn't find anything.
11059  if test -z "$lt_cv_aix_libpath_"; then
11060    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11061  fi
11062fi
11063rm -f core conftest.err conftest.$ac_objext \
11064    conftest$ac_exeext conftest.$ac_ext
11065  if test -z "$lt_cv_aix_libpath_"; then
11066    lt_cv_aix_libpath_="/usr/lib:/lib"
11067  fi
11068
11069fi
11070
11071  aix_libpath=$lt_cv_aix_libpath_
11072fi
11073
11074        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11075        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"
11076      else
11077	if test "$host_cpu" = ia64; then
11078	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11079	  allow_undefined_flag="-z nodefs"
11080	  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"
11081	else
11082	 # Determine the default libpath from the value encoded in an
11083	 # empty executable.
11084	 if test "${lt_cv_aix_libpath+set}" = set; then
11085  aix_libpath=$lt_cv_aix_libpath
11086else
11087  if ${lt_cv_aix_libpath_+:} false; then :
11088  $as_echo_n "(cached) " >&6
11089else
11090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11091/* end confdefs.h.  */
11092
11093int
11094main ()
11095{
11096
11097  ;
11098  return 0;
11099}
11100_ACEOF
11101if ac_fn_c_try_link "$LINENO"; then :
11102
11103  lt_aix_libpath_sed='
11104      /Import File Strings/,/^$/ {
11105	  /^0/ {
11106	      s/^0  *\([^ ]*\) *$/\1/
11107	      p
11108	  }
11109      }'
11110  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11111  # Check for a 64-bit object if we didn't find anything.
11112  if test -z "$lt_cv_aix_libpath_"; then
11113    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11114  fi
11115fi
11116rm -f core conftest.err conftest.$ac_objext \
11117    conftest$ac_exeext conftest.$ac_ext
11118  if test -z "$lt_cv_aix_libpath_"; then
11119    lt_cv_aix_libpath_="/usr/lib:/lib"
11120  fi
11121
11122fi
11123
11124  aix_libpath=$lt_cv_aix_libpath_
11125fi
11126
11127	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11128	  # Warning - without using the other run time loading flags,
11129	  # -berok will link without error, but may produce a broken library.
11130	  no_undefined_flag=' ${wl}-bernotok'
11131	  allow_undefined_flag=' ${wl}-berok'
11132	  if test "$with_gnu_ld" = yes; then
11133	    # We only use this code for GNU lds that support --whole-archive.
11134	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11135	  else
11136	    # Exported symbols can be pulled into shared objects from archives
11137	    whole_archive_flag_spec='$convenience'
11138	  fi
11139	  archive_cmds_need_lc=yes
11140	  # This is similar to how AIX traditionally builds its shared libraries.
11141	  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'
11142	fi
11143      fi
11144      ;;
11145
11146    amigaos*)
11147      case $host_cpu in
11148      powerpc)
11149            # see comment about AmigaOS4 .so support
11150            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11151            archive_expsym_cmds=''
11152        ;;
11153      m68k)
11154            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)'
11155            hardcode_libdir_flag_spec='-L$libdir'
11156            hardcode_minus_L=yes
11157        ;;
11158      esac
11159      ;;
11160
11161    bsdi[45]*)
11162      export_dynamic_flag_spec=-rdynamic
11163      ;;
11164
11165    cygwin* | mingw* | pw32* | cegcc*)
11166      # When not using gcc, we currently assume that we are using
11167      # Microsoft Visual C++.
11168      # hardcode_libdir_flag_spec is actually meaningless, as there is
11169      # no search path for DLLs.
11170      case $cc_basename in
11171      cl*)
11172	# Native MSVC
11173	hardcode_libdir_flag_spec=' '
11174	allow_undefined_flag=unsupported
11175	always_export_symbols=yes
11176	file_list_spec='@'
11177	# Tell ltmain to make .lib files, not .a files.
11178	libext=lib
11179	# Tell ltmain to make .dll files, not .so files.
11180	shrext_cmds=".dll"
11181	# FIXME: Setting linknames here is a bad hack.
11182	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11183	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11184	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11185	  else
11186	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11187	  fi~
11188	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11189	  linknames='
11190	# The linker will not automatically build a static lib if we build a DLL.
11191	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11192	enable_shared_with_static_runtimes=yes
11193	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11194	# Don't use ranlib
11195	old_postinstall_cmds='chmod 644 $oldlib'
11196	postlink_cmds='lt_outputfile="@OUTPUT@"~
11197	  lt_tool_outputfile="@TOOL_OUTPUT@"~
11198	  case $lt_outputfile in
11199	    *.exe|*.EXE) ;;
11200	    *)
11201	      lt_outputfile="$lt_outputfile.exe"
11202	      lt_tool_outputfile="$lt_tool_outputfile.exe"
11203	      ;;
11204	  esac~
11205	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11206	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11207	    $RM "$lt_outputfile.manifest";
11208	  fi'
11209	;;
11210      *)
11211	# Assume MSVC wrapper
11212	hardcode_libdir_flag_spec=' '
11213	allow_undefined_flag=unsupported
11214	# Tell ltmain to make .lib files, not .a files.
11215	libext=lib
11216	# Tell ltmain to make .dll files, not .so files.
11217	shrext_cmds=".dll"
11218	# FIXME: Setting linknames here is a bad hack.
11219	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11220	# The linker will automatically build a .lib file if we build a DLL.
11221	old_archive_from_new_cmds='true'
11222	# FIXME: Should let the user specify the lib program.
11223	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11224	enable_shared_with_static_runtimes=yes
11225	;;
11226      esac
11227      ;;
11228
11229    darwin* | rhapsody*)
11230
11231
11232  archive_cmds_need_lc=no
11233  hardcode_direct=no
11234  hardcode_automatic=yes
11235  hardcode_shlibpath_var=unsupported
11236  if test "$lt_cv_ld_force_load" = "yes"; then
11237    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\"`'
11238  else
11239    whole_archive_flag_spec=''
11240  fi
11241  link_all_deplibs=yes
11242  allow_undefined_flag="$_lt_dar_allow_undefined"
11243  case $cc_basename in
11244     ifort*) _lt_dar_can_shared=yes ;;
11245     *) _lt_dar_can_shared=$GCC ;;
11246  esac
11247  if test "$_lt_dar_can_shared" = "yes"; then
11248    output_verbose_link_cmd=func_echo_all
11249    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11250    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11251    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}"
11252    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}"
11253
11254  else
11255  ld_shlibs=no
11256  fi
11257
11258      ;;
11259
11260    dgux*)
11261      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11262      hardcode_libdir_flag_spec='-L$libdir'
11263      hardcode_shlibpath_var=no
11264      ;;
11265
11266    freebsd1*)
11267      ld_shlibs=no
11268      ;;
11269
11270    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11271    # support.  Future versions do this automatically, but an explicit c++rt0.o
11272    # does not break anything, and helps significantly (at the cost of a little
11273    # extra space).
11274    freebsd2.2*)
11275      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11276      hardcode_libdir_flag_spec='-R$libdir'
11277      hardcode_direct=yes
11278      hardcode_shlibpath_var=no
11279      ;;
11280
11281    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11282    freebsd2*)
11283      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11284      hardcode_direct=yes
11285      hardcode_minus_L=yes
11286      hardcode_shlibpath_var=no
11287      ;;
11288
11289    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11290    freebsd* | dragonfly*)
11291      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11292      hardcode_libdir_flag_spec='-R$libdir'
11293      hardcode_direct=yes
11294      hardcode_shlibpath_var=no
11295      ;;
11296
11297    hpux9*)
11298      if test "$GCC" = yes; then
11299	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11300      else
11301	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'
11302      fi
11303      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11304      hardcode_libdir_separator=:
11305      hardcode_direct=yes
11306
11307      # hardcode_minus_L: Not really in the search PATH,
11308      # but as the default location of the library.
11309      hardcode_minus_L=yes
11310      export_dynamic_flag_spec='${wl}-E'
11311      ;;
11312
11313    hpux10*)
11314      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11315	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11316      else
11317	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11318      fi
11319      if test "$with_gnu_ld" = no; then
11320	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11321	hardcode_libdir_flag_spec_ld='+b $libdir'
11322	hardcode_libdir_separator=:
11323	hardcode_direct=yes
11324	hardcode_direct_absolute=yes
11325	export_dynamic_flag_spec='${wl}-E'
11326	# hardcode_minus_L: Not really in the search PATH,
11327	# but as the default location of the library.
11328	hardcode_minus_L=yes
11329      fi
11330      ;;
11331
11332    hpux11*)
11333      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11334	case $host_cpu in
11335	hppa*64*)
11336	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11337	  ;;
11338	ia64*)
11339	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11340	  ;;
11341	*)
11342	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11343	  ;;
11344	esac
11345      else
11346	case $host_cpu in
11347	hppa*64*)
11348	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11349	  ;;
11350	ia64*)
11351	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11352	  ;;
11353	*)
11354
11355	  # Older versions of the 11.00 compiler do not understand -b yet
11356	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11357	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11358$as_echo_n "checking if $CC understands -b... " >&6; }
11359if ${lt_cv_prog_compiler__b+:} false; then :
11360  $as_echo_n "(cached) " >&6
11361else
11362  lt_cv_prog_compiler__b=no
11363   save_LDFLAGS="$LDFLAGS"
11364   LDFLAGS="$LDFLAGS -b"
11365   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11366   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11367     # The linker can only warn and ignore the option if not recognized
11368     # So say no if there are warnings
11369     if test -s conftest.err; then
11370       # Append any errors to the config.log.
11371       cat conftest.err 1>&5
11372       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11373       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11374       if diff conftest.exp conftest.er2 >/dev/null; then
11375         lt_cv_prog_compiler__b=yes
11376       fi
11377     else
11378       lt_cv_prog_compiler__b=yes
11379     fi
11380   fi
11381   $RM -r conftest*
11382   LDFLAGS="$save_LDFLAGS"
11383
11384fi
11385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11386$as_echo "$lt_cv_prog_compiler__b" >&6; }
11387
11388if test x"$lt_cv_prog_compiler__b" = xyes; then
11389    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11390else
11391    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11392fi
11393
11394	  ;;
11395	esac
11396      fi
11397      if test "$with_gnu_ld" = no; then
11398	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11399	hardcode_libdir_separator=:
11400
11401	case $host_cpu in
11402	hppa*64*|ia64*)
11403	  hardcode_direct=no
11404	  hardcode_shlibpath_var=no
11405	  ;;
11406	*)
11407	  hardcode_direct=yes
11408	  hardcode_direct_absolute=yes
11409	  export_dynamic_flag_spec='${wl}-E'
11410
11411	  # hardcode_minus_L: Not really in the search PATH,
11412	  # but as the default location of the library.
11413	  hardcode_minus_L=yes
11414	  ;;
11415	esac
11416      fi
11417      ;;
11418
11419    irix5* | irix6* | nonstopux*)
11420      if test "$GCC" = yes; then
11421	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11422	# Try to use the -exported_symbol ld option, if it does not
11423	# work, assume that -exports_file does not work either and
11424	# implicitly export all symbols.
11425	# This should be the same for all languages, so no per-tag cache variable.
11426	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11427$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11428if ${lt_cv_irix_exported_symbol+:} false; then :
11429  $as_echo_n "(cached) " >&6
11430else
11431  save_LDFLAGS="$LDFLAGS"
11432	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11433	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11434/* end confdefs.h.  */
11435int foo (void) { return 0; }
11436_ACEOF
11437if ac_fn_c_try_link "$LINENO"; then :
11438  lt_cv_irix_exported_symbol=yes
11439else
11440  lt_cv_irix_exported_symbol=no
11441fi
11442rm -f core conftest.err conftest.$ac_objext \
11443    conftest$ac_exeext conftest.$ac_ext
11444           LDFLAGS="$save_LDFLAGS"
11445fi
11446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11447$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11448	if test "$lt_cv_irix_exported_symbol" = yes; then
11449          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11450	fi
11451      else
11452	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'
11453	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'
11454      fi
11455      archive_cmds_need_lc='no'
11456      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11457      hardcode_libdir_separator=:
11458      inherit_rpath=yes
11459      link_all_deplibs=yes
11460      ;;
11461
11462    netbsd*)
11463      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11464	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11465      else
11466	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11467      fi
11468      hardcode_libdir_flag_spec='-R$libdir'
11469      hardcode_direct=yes
11470      hardcode_shlibpath_var=no
11471      ;;
11472
11473    newsos6)
11474      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11475      hardcode_direct=yes
11476      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11477      hardcode_libdir_separator=:
11478      hardcode_shlibpath_var=no
11479      ;;
11480
11481    *nto* | *qnx*)
11482      ;;
11483
11484    openbsd*)
11485      if test -f /usr/libexec/ld.so; then
11486	hardcode_direct=yes
11487	hardcode_shlibpath_var=no
11488	hardcode_direct_absolute=yes
11489	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11490	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11491	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11492	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11493	  export_dynamic_flag_spec='${wl}-E'
11494	else
11495	  case $host_os in
11496	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11497	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11498	     hardcode_libdir_flag_spec='-R$libdir'
11499	     ;;
11500	   *)
11501	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11502	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11503	     ;;
11504	  esac
11505	fi
11506      else
11507	ld_shlibs=no
11508      fi
11509      ;;
11510
11511    os2*)
11512      hardcode_libdir_flag_spec='-L$libdir'
11513      hardcode_minus_L=yes
11514      allow_undefined_flag=unsupported
11515      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'
11516      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11517      ;;
11518
11519    osf3*)
11520      if test "$GCC" = yes; then
11521	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11522	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'
11523      else
11524	allow_undefined_flag=' -expect_unresolved \*'
11525	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'
11526      fi
11527      archive_cmds_need_lc='no'
11528      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11529      hardcode_libdir_separator=:
11530      ;;
11531
11532    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11533      if test "$GCC" = yes; then
11534	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11535	archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11536	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11537      else
11538	allow_undefined_flag=' -expect_unresolved \*'
11539	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'
11540	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~
11541	$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'
11542
11543	# Both c and cxx compiler support -rpath directly
11544	hardcode_libdir_flag_spec='-rpath $libdir'
11545      fi
11546      archive_cmds_need_lc='no'
11547      hardcode_libdir_separator=:
11548      ;;
11549
11550    solaris*)
11551      no_undefined_flag=' -z defs'
11552      if test "$GCC" = yes; then
11553	wlarc='${wl}'
11554	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11555	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11556	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11557      else
11558	case `$CC -V 2>&1` in
11559	*"Compilers 5.0"*)
11560	  wlarc=''
11561	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11562	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11563	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11564	  ;;
11565	*)
11566	  wlarc='${wl}'
11567	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11568	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11569	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11570	  ;;
11571	esac
11572      fi
11573      hardcode_libdir_flag_spec='-R$libdir'
11574      hardcode_shlibpath_var=no
11575      case $host_os in
11576      solaris2.[0-5] | solaris2.[0-5].*) ;;
11577      *)
11578	# The compiler driver will combine and reorder linker options,
11579	# but understands `-z linker_flag'.  GCC discards it without `$wl',
11580	# but is careful enough not to reorder.
11581	# Supported since Solaris 2.6 (maybe 2.5.1?)
11582	if test "$GCC" = yes; then
11583	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11584	else
11585	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11586	fi
11587	;;
11588      esac
11589      link_all_deplibs=yes
11590      ;;
11591
11592    sunos4*)
11593      if test "x$host_vendor" = xsequent; then
11594	# Use $CC to link under sequent, because it throws in some extra .o
11595	# files that make .init and .fini sections work.
11596	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11597      else
11598	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11599      fi
11600      hardcode_libdir_flag_spec='-L$libdir'
11601      hardcode_direct=yes
11602      hardcode_minus_L=yes
11603      hardcode_shlibpath_var=no
11604      ;;
11605
11606    sysv4)
11607      case $host_vendor in
11608	sni)
11609	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11610	  hardcode_direct=yes # is this really true???
11611	;;
11612	siemens)
11613	  ## LD is ld it makes a PLAMLIB
11614	  ## CC just makes a GrossModule.
11615	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11616	  reload_cmds='$CC -r -o $output$reload_objs'
11617	  hardcode_direct=no
11618        ;;
11619	motorola)
11620	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11621	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11622	;;
11623      esac
11624      runpath_var='LD_RUN_PATH'
11625      hardcode_shlibpath_var=no
11626      ;;
11627
11628    sysv4.3*)
11629      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11630      hardcode_shlibpath_var=no
11631      export_dynamic_flag_spec='-Bexport'
11632      ;;
11633
11634    sysv4*MP*)
11635      if test -d /usr/nec; then
11636	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11637	hardcode_shlibpath_var=no
11638	runpath_var=LD_RUN_PATH
11639	hardcode_runpath_var=yes
11640	ld_shlibs=yes
11641      fi
11642      ;;
11643
11644    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11645      no_undefined_flag='${wl}-z,text'
11646      archive_cmds_need_lc=no
11647      hardcode_shlibpath_var=no
11648      runpath_var='LD_RUN_PATH'
11649
11650      if test "$GCC" = yes; then
11651	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11652	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11653      else
11654	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11655	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11656      fi
11657      ;;
11658
11659    sysv5* | sco3.2v5* | sco5v6*)
11660      # Note: We can NOT use -z defs as we might desire, because we do not
11661      # link with -lc, and that would cause any symbols used from libc to
11662      # always be unresolved, which means just about no library would
11663      # ever link correctly.  If we're not using GNU ld we use -z text
11664      # though, which does catch some bad symbols but isn't as heavy-handed
11665      # as -z defs.
11666      no_undefined_flag='${wl}-z,text'
11667      allow_undefined_flag='${wl}-z,nodefs'
11668      archive_cmds_need_lc=no
11669      hardcode_shlibpath_var=no
11670      hardcode_libdir_flag_spec='${wl}-R,$libdir'
11671      hardcode_libdir_separator=':'
11672      link_all_deplibs=yes
11673      export_dynamic_flag_spec='${wl}-Bexport'
11674      runpath_var='LD_RUN_PATH'
11675
11676      if test "$GCC" = yes; then
11677	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11678	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11679      else
11680	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11681	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11682      fi
11683      ;;
11684
11685    uts4*)
11686      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11687      hardcode_libdir_flag_spec='-L$libdir'
11688      hardcode_shlibpath_var=no
11689      ;;
11690
11691    *)
11692      ld_shlibs=no
11693      ;;
11694    esac
11695
11696    if test x$host_vendor = xsni; then
11697      case $host in
11698      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11699	export_dynamic_flag_spec='${wl}-Blargedynsym'
11700	;;
11701      esac
11702    fi
11703  fi
11704
11705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11706$as_echo "$ld_shlibs" >&6; }
11707test "$ld_shlibs" = no && can_build_shared=no
11708
11709with_gnu_ld=$with_gnu_ld
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725#
11726# Do we need to explicitly link libc?
11727#
11728case "x$archive_cmds_need_lc" in
11729x|xyes)
11730  # Assume -lc should be added
11731  archive_cmds_need_lc=yes
11732
11733  if test "$enable_shared" = yes && test "$GCC" = yes; then
11734    case $archive_cmds in
11735    *'~'*)
11736      # FIXME: we may have to deal with multi-command sequences.
11737      ;;
11738    '$CC '*)
11739      # Test whether the compiler implicitly links with -lc since on some
11740      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11741      # to ld, don't add -lc before -lgcc.
11742      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11743$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11744if ${lt_cv_archive_cmds_need_lc+:} false; then :
11745  $as_echo_n "(cached) " >&6
11746else
11747  $RM conftest*
11748	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11749
11750	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11751  (eval $ac_compile) 2>&5
11752  ac_status=$?
11753  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11754  test $ac_status = 0; } 2>conftest.err; then
11755	  soname=conftest
11756	  lib=conftest
11757	  libobjs=conftest.$ac_objext
11758	  deplibs=
11759	  wl=$lt_prog_compiler_wl
11760	  pic_flag=$lt_prog_compiler_pic
11761	  compiler_flags=-v
11762	  linker_flags=-v
11763	  verstring=
11764	  output_objdir=.
11765	  libname=conftest
11766	  lt_save_allow_undefined_flag=$allow_undefined_flag
11767	  allow_undefined_flag=
11768	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11769  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11770  ac_status=$?
11771  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11772  test $ac_status = 0; }
11773	  then
11774	    lt_cv_archive_cmds_need_lc=no
11775	  else
11776	    lt_cv_archive_cmds_need_lc=yes
11777	  fi
11778	  allow_undefined_flag=$lt_save_allow_undefined_flag
11779	else
11780	  cat conftest.err 1>&5
11781	fi
11782	$RM conftest*
11783
11784fi
11785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11786$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11787      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11788      ;;
11789    esac
11790  fi
11791  ;;
11792esac
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11951$as_echo_n "checking dynamic linker characteristics... " >&6; }
11952
11953if test "$GCC" = yes; then
11954  case $host_os in
11955    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11956    *) lt_awk_arg="/^libraries:/" ;;
11957  esac
11958  case $host_os in
11959    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11960    *) lt_sed_strip_eq="s,=/,/,g" ;;
11961  esac
11962  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11963  case $lt_search_path_spec in
11964  *\;*)
11965    # if the path contains ";" then we assume it to be the separator
11966    # otherwise default to the standard path separator (i.e. ":") - it is
11967    # assumed that no part of a normal pathname contains ";" but that should
11968    # okay in the real world where ";" in dirpaths is itself problematic.
11969    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11970    ;;
11971  *)
11972    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11973    ;;
11974  esac
11975  # Ok, now we have the path, separated by spaces, we can step through it
11976  # and add multilib dir if necessary.
11977  lt_tmp_lt_search_path_spec=
11978  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11979  for lt_sys_path in $lt_search_path_spec; do
11980    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11981      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11982    else
11983      test -d "$lt_sys_path" && \
11984	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11985    fi
11986  done
11987  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11988BEGIN {RS=" "; FS="/|\n";} {
11989  lt_foo="";
11990  lt_count=0;
11991  for (lt_i = NF; lt_i > 0; lt_i--) {
11992    if ($lt_i != "" && $lt_i != ".") {
11993      if ($lt_i == "..") {
11994        lt_count++;
11995      } else {
11996        if (lt_count == 0) {
11997          lt_foo="/" $lt_i lt_foo;
11998        } else {
11999          lt_count--;
12000        }
12001      }
12002    }
12003  }
12004  if (lt_foo != "") { lt_freq[lt_foo]++; }
12005  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12006}'`
12007  # AWK program above erroneously prepends '/' to C:/dos/paths
12008  # for these hosts.
12009  case $host_os in
12010    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12011      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12012  esac
12013  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12014else
12015  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12016fi
12017library_names_spec=
12018libname_spec='lib$name'
12019soname_spec=
12020shrext_cmds=".so"
12021postinstall_cmds=
12022postuninstall_cmds=
12023finish_cmds=
12024finish_eval=
12025shlibpath_var=
12026shlibpath_overrides_runpath=unknown
12027version_type=none
12028dynamic_linker="$host_os ld.so"
12029sys_lib_dlsearch_path_spec="/lib /usr/lib"
12030need_lib_prefix=unknown
12031hardcode_into_libs=no
12032
12033# when you set need_version to no, make sure it does not cause -set_version
12034# flags to be left without arguments
12035need_version=unknown
12036
12037case $host_os in
12038aix3*)
12039  version_type=linux
12040  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12041  shlibpath_var=LIBPATH
12042
12043  # AIX 3 has no versioning support, so we append a major version to the name.
12044  soname_spec='${libname}${release}${shared_ext}$major'
12045  ;;
12046
12047aix[4-9]*)
12048  version_type=linux
12049  need_lib_prefix=no
12050  need_version=no
12051  hardcode_into_libs=yes
12052  if test "$host_cpu" = ia64; then
12053    # AIX 5 supports IA64
12054    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12055    shlibpath_var=LD_LIBRARY_PATH
12056  else
12057    # With GCC up to 2.95.x, collect2 would create an import file
12058    # for dependence libraries.  The import file would start with
12059    # the line `#! .'.  This would cause the generated library to
12060    # depend on `.', always an invalid library.  This was fixed in
12061    # development snapshots of GCC prior to 3.0.
12062    case $host_os in
12063      aix4 | aix4.[01] | aix4.[01].*)
12064      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12065	   echo ' yes '
12066	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12067	:
12068      else
12069	can_build_shared=no
12070      fi
12071      ;;
12072    esac
12073    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12074    # soname into executable. Probably we can add versioning support to
12075    # collect2, so additional links can be useful in future.
12076    if test "$aix_use_runtimelinking" = yes; then
12077      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12078      # instead of lib<name>.a to let people know that these are not
12079      # typical AIX shared libraries.
12080      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12081    else
12082      # We preserve .a as extension for shared libraries through AIX4.2
12083      # and later when we are not doing run time linking.
12084      library_names_spec='${libname}${release}.a $libname.a'
12085      soname_spec='${libname}${release}${shared_ext}$major'
12086    fi
12087    shlibpath_var=LIBPATH
12088  fi
12089  ;;
12090
12091amigaos*)
12092  case $host_cpu in
12093  powerpc)
12094    # Since July 2007 AmigaOS4 officially supports .so libraries.
12095    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12096    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12097    ;;
12098  m68k)
12099    library_names_spec='$libname.ixlibrary $libname.a'
12100    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12101    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'
12102    ;;
12103  esac
12104  ;;
12105
12106beos*)
12107  library_names_spec='${libname}${shared_ext}'
12108  dynamic_linker="$host_os ld.so"
12109  shlibpath_var=LIBRARY_PATH
12110  ;;
12111
12112bsdi[45]*)
12113  version_type=linux
12114  need_version=no
12115  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12116  soname_spec='${libname}${release}${shared_ext}$major'
12117  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12118  shlibpath_var=LD_LIBRARY_PATH
12119  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12120  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12121  # the default ld.so.conf also contains /usr/contrib/lib and
12122  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12123  # libtool to hard-code these into programs
12124  ;;
12125
12126cygwin* | mingw* | pw32* | cegcc*)
12127  version_type=windows
12128  shrext_cmds=".dll"
12129  need_version=no
12130  need_lib_prefix=no
12131
12132  case $GCC,$cc_basename in
12133  yes,*)
12134    # gcc
12135    library_names_spec='$libname.dll.a'
12136    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12137    postinstall_cmds='base_file=`basename \${file}`~
12138      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12139      dldir=$destdir/`dirname \$dlpath`~
12140      test -d \$dldir || mkdir -p \$dldir~
12141      $install_prog $dir/$dlname \$dldir/$dlname~
12142      chmod a+x \$dldir/$dlname~
12143      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12144        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12145      fi'
12146    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12147      dlpath=$dir/\$dldll~
12148       $RM \$dlpath'
12149    shlibpath_overrides_runpath=yes
12150
12151    case $host_os in
12152    cygwin*)
12153      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12154      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12155
12156      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12157      ;;
12158    mingw* | cegcc*)
12159      # MinGW DLLs use traditional 'lib' prefix
12160      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12161      ;;
12162    pw32*)
12163      # pw32 DLLs use 'pw' prefix rather than 'lib'
12164      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12165      ;;
12166    esac
12167    dynamic_linker='Win32 ld.exe'
12168    ;;
12169
12170  *,cl*)
12171    # Native MSVC
12172    libname_spec='$name'
12173    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12174    library_names_spec='${libname}.dll.lib'
12175
12176    case $build_os in
12177    mingw*)
12178      sys_lib_search_path_spec=
12179      lt_save_ifs=$IFS
12180      IFS=';'
12181      for lt_path in $LIB
12182      do
12183        IFS=$lt_save_ifs
12184        # Let DOS variable expansion print the short 8.3 style file name.
12185        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12186        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12187      done
12188      IFS=$lt_save_ifs
12189      # Convert to MSYS style.
12190      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12191      ;;
12192    cygwin*)
12193      # Convert to unix form, then to dos form, then back to unix form
12194      # but this time dos style (no spaces!) so that the unix form looks
12195      # like /cygdrive/c/PROGRA~1:/cygdr...
12196      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12197      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12198      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12199      ;;
12200    *)
12201      sys_lib_search_path_spec="$LIB"
12202      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12203        # It is most probably a Windows format PATH.
12204        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12205      else
12206        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12207      fi
12208      # FIXME: find the short name or the path components, as spaces are
12209      # common. (e.g. "Program Files" -> "PROGRA~1")
12210      ;;
12211    esac
12212
12213    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12214    postinstall_cmds='base_file=`basename \${file}`~
12215      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12216      dldir=$destdir/`dirname \$dlpath`~
12217      test -d \$dldir || mkdir -p \$dldir~
12218      $install_prog $dir/$dlname \$dldir/$dlname'
12219    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12220      dlpath=$dir/\$dldll~
12221       $RM \$dlpath'
12222    shlibpath_overrides_runpath=yes
12223    dynamic_linker='Win32 link.exe'
12224    ;;
12225
12226  *)
12227    # Assume MSVC wrapper
12228    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12229    dynamic_linker='Win32 ld.exe'
12230    ;;
12231  esac
12232  # FIXME: first we should search . and the directory the executable is in
12233  shlibpath_var=PATH
12234  ;;
12235
12236darwin* | rhapsody*)
12237  dynamic_linker="$host_os dyld"
12238  version_type=darwin
12239  need_lib_prefix=no
12240  need_version=no
12241  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12242  soname_spec='${libname}${release}${major}$shared_ext'
12243  shlibpath_overrides_runpath=yes
12244  shlibpath_var=DYLD_LIBRARY_PATH
12245  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12246
12247  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12248  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12249  ;;
12250
12251dgux*)
12252  version_type=linux
12253  need_lib_prefix=no
12254  need_version=no
12255  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12256  soname_spec='${libname}${release}${shared_ext}$major'
12257  shlibpath_var=LD_LIBRARY_PATH
12258  ;;
12259
12260freebsd1*)
12261  dynamic_linker=no
12262  ;;
12263
12264freebsd* | dragonfly*)
12265  # DragonFly does not have aout.  When/if they implement a new
12266  # versioning mechanism, adjust this.
12267  if test -x /usr/bin/objformat; then
12268    objformat=`/usr/bin/objformat`
12269  else
12270    case $host_os in
12271    freebsd[123]*) objformat=aout ;;
12272    *) objformat=elf ;;
12273    esac
12274  fi
12275  version_type=freebsd-$objformat
12276  case $version_type in
12277    freebsd-elf*)
12278      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12279      need_version=no
12280      need_lib_prefix=no
12281      ;;
12282    freebsd-*)
12283      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12284      need_version=yes
12285      ;;
12286  esac
12287  shlibpath_var=LD_LIBRARY_PATH
12288  case $host_os in
12289  freebsd2*)
12290    shlibpath_overrides_runpath=yes
12291    ;;
12292  freebsd3.[01]* | freebsdelf3.[01]*)
12293    shlibpath_overrides_runpath=yes
12294    hardcode_into_libs=yes
12295    ;;
12296  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12297  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12298    shlibpath_overrides_runpath=no
12299    hardcode_into_libs=yes
12300    ;;
12301  *) # from 4.6 on, and DragonFly
12302    shlibpath_overrides_runpath=yes
12303    hardcode_into_libs=yes
12304    ;;
12305  esac
12306  ;;
12307
12308gnu*)
12309  version_type=linux
12310  need_lib_prefix=no
12311  need_version=no
12312  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12313  soname_spec='${libname}${release}${shared_ext}$major'
12314  shlibpath_var=LD_LIBRARY_PATH
12315  hardcode_into_libs=yes
12316  ;;
12317
12318haiku*)
12319  version_type=linux
12320  need_lib_prefix=no
12321  need_version=no
12322  dynamic_linker="$host_os runtime_loader"
12323  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12324  soname_spec='${libname}${release}${shared_ext}$major'
12325  shlibpath_var=LIBRARY_PATH
12326  shlibpath_overrides_runpath=yes
12327  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12328  hardcode_into_libs=yes
12329  ;;
12330
12331hpux9* | hpux10* | hpux11*)
12332  # Give a soname corresponding to the major version so that dld.sl refuses to
12333  # link against other versions.
12334  version_type=sunos
12335  need_lib_prefix=no
12336  need_version=no
12337  case $host_cpu in
12338  ia64*)
12339    shrext_cmds='.so'
12340    hardcode_into_libs=yes
12341    dynamic_linker="$host_os dld.so"
12342    shlibpath_var=LD_LIBRARY_PATH
12343    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12344    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12345    soname_spec='${libname}${release}${shared_ext}$major'
12346    if test "X$HPUX_IA64_MODE" = X32; then
12347      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12348    else
12349      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12350    fi
12351    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12352    ;;
12353  hppa*64*)
12354    shrext_cmds='.sl'
12355    hardcode_into_libs=yes
12356    dynamic_linker="$host_os dld.sl"
12357    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12358    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12359    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12360    soname_spec='${libname}${release}${shared_ext}$major'
12361    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12362    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12363    ;;
12364  *)
12365    shrext_cmds='.sl'
12366    dynamic_linker="$host_os dld.sl"
12367    shlibpath_var=SHLIB_PATH
12368    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12369    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12370    soname_spec='${libname}${release}${shared_ext}$major'
12371    ;;
12372  esac
12373  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12374  postinstall_cmds='chmod 555 $lib'
12375  # or fails outright, so override atomically:
12376  install_override_mode=555
12377  ;;
12378
12379interix[3-9]*)
12380  version_type=linux
12381  need_lib_prefix=no
12382  need_version=no
12383  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12384  soname_spec='${libname}${release}${shared_ext}$major'
12385  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12386  shlibpath_var=LD_LIBRARY_PATH
12387  shlibpath_overrides_runpath=no
12388  hardcode_into_libs=yes
12389  ;;
12390
12391irix5* | irix6* | nonstopux*)
12392  case $host_os in
12393    nonstopux*) version_type=nonstopux ;;
12394    *)
12395	if test "$lt_cv_prog_gnu_ld" = yes; then
12396		version_type=linux
12397	else
12398		version_type=irix
12399	fi ;;
12400  esac
12401  need_lib_prefix=no
12402  need_version=no
12403  soname_spec='${libname}${release}${shared_ext}$major'
12404  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12405  case $host_os in
12406  irix5* | nonstopux*)
12407    libsuff= shlibsuff=
12408    ;;
12409  *)
12410    case $LD in # libtool.m4 will add one of these switches to LD
12411    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12412      libsuff= shlibsuff= libmagic=32-bit;;
12413    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12414      libsuff=32 shlibsuff=N32 libmagic=N32;;
12415    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12416      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12417    *) libsuff= shlibsuff= libmagic=never-match;;
12418    esac
12419    ;;
12420  esac
12421  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12422  shlibpath_overrides_runpath=no
12423  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12424  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12425  hardcode_into_libs=yes
12426  ;;
12427
12428# No shared lib support for Linux oldld, aout, or coff.
12429linux*oldld* | linux*aout* | linux*coff*)
12430  dynamic_linker=no
12431  ;;
12432
12433# This must be Linux ELF.
12434linux* | k*bsd*-gnu | kopensolaris*-gnu)
12435  version_type=linux
12436  need_lib_prefix=no
12437  need_version=no
12438  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12439  soname_spec='${libname}${release}${shared_ext}$major'
12440  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12441  shlibpath_var=LD_LIBRARY_PATH
12442  shlibpath_overrides_runpath=no
12443
12444  # Some binutils ld are patched to set DT_RUNPATH
12445  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12446  $as_echo_n "(cached) " >&6
12447else
12448  lt_cv_shlibpath_overrides_runpath=no
12449    save_LDFLAGS=$LDFLAGS
12450    save_libdir=$libdir
12451    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12452	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12453    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12454/* end confdefs.h.  */
12455
12456int
12457main ()
12458{
12459
12460  ;
12461  return 0;
12462}
12463_ACEOF
12464if ac_fn_c_try_link "$LINENO"; then :
12465  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12466  lt_cv_shlibpath_overrides_runpath=yes
12467fi
12468fi
12469rm -f core conftest.err conftest.$ac_objext \
12470    conftest$ac_exeext conftest.$ac_ext
12471    LDFLAGS=$save_LDFLAGS
12472    libdir=$save_libdir
12473
12474fi
12475
12476  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12477
12478  # This implies no fast_install, which is unacceptable.
12479  # Some rework will be needed to allow for fast_install
12480  # before this can be enabled.
12481  hardcode_into_libs=yes
12482
12483  # Add ABI-specific directories to the system library path.
12484  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12485
12486  # Append ld.so.conf contents to the search path
12487  if test -f /etc/ld.so.conf; then
12488    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' ' '`
12489    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12490
12491  fi
12492
12493  # We used to test for /lib/ld.so.1 and disable shared libraries on
12494  # powerpc, because MkLinux only supported shared libraries with the
12495  # GNU dynamic linker.  Since this was broken with cross compilers,
12496  # most powerpc-linux boxes support dynamic linking these days and
12497  # people can always --disable-shared, the test was removed, and we
12498  # assume the GNU/Linux dynamic linker is in use.
12499  dynamic_linker='GNU/Linux ld.so'
12500  ;;
12501
12502netbsd*)
12503  version_type=sunos
12504  need_lib_prefix=no
12505  need_version=no
12506  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12507    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12508    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12509    dynamic_linker='NetBSD (a.out) ld.so'
12510  else
12511    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12512    soname_spec='${libname}${release}${shared_ext}$major'
12513    dynamic_linker='NetBSD ld.elf_so'
12514  fi
12515  shlibpath_var=LD_LIBRARY_PATH
12516  shlibpath_overrides_runpath=yes
12517  hardcode_into_libs=yes
12518  ;;
12519
12520newsos6)
12521  version_type=linux
12522  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12523  shlibpath_var=LD_LIBRARY_PATH
12524  shlibpath_overrides_runpath=yes
12525  ;;
12526
12527*nto* | *qnx*)
12528  version_type=qnx
12529  need_lib_prefix=no
12530  need_version=no
12531  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12532  soname_spec='${libname}${release}${shared_ext}$major'
12533  shlibpath_var=LD_LIBRARY_PATH
12534  shlibpath_overrides_runpath=no
12535  hardcode_into_libs=yes
12536  dynamic_linker='ldqnx.so'
12537  ;;
12538
12539openbsd*)
12540  version_type=sunos
12541  sys_lib_dlsearch_path_spec="/usr/lib"
12542  need_lib_prefix=no
12543  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12544  case $host_os in
12545    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
12546    *)				need_version=no  ;;
12547  esac
12548  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12549  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12550  shlibpath_var=LD_LIBRARY_PATH
12551  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12552    case $host_os in
12553      openbsd2.[89] | openbsd2.[89].*)
12554	shlibpath_overrides_runpath=no
12555	;;
12556      *)
12557	shlibpath_overrides_runpath=yes
12558	;;
12559      esac
12560  else
12561    shlibpath_overrides_runpath=yes
12562  fi
12563  ;;
12564
12565os2*)
12566  libname_spec='$name'
12567  shrext_cmds=".dll"
12568  need_lib_prefix=no
12569  library_names_spec='$libname${shared_ext} $libname.a'
12570  dynamic_linker='OS/2 ld.exe'
12571  shlibpath_var=LIBPATH
12572  ;;
12573
12574osf3* | osf4* | osf5*)
12575  version_type=osf
12576  need_lib_prefix=no
12577  need_version=no
12578  soname_spec='${libname}${release}${shared_ext}$major'
12579  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12580  shlibpath_var=LD_LIBRARY_PATH
12581  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12582  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12583  ;;
12584
12585rdos*)
12586  dynamic_linker=no
12587  ;;
12588
12589solaris*)
12590  version_type=linux
12591  need_lib_prefix=no
12592  need_version=no
12593  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12594  soname_spec='${libname}${release}${shared_ext}$major'
12595  shlibpath_var=LD_LIBRARY_PATH
12596  shlibpath_overrides_runpath=yes
12597  hardcode_into_libs=yes
12598  # ldd complains unless libraries are executable
12599  postinstall_cmds='chmod +x $lib'
12600  ;;
12601
12602sunos4*)
12603  version_type=sunos
12604  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12605  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12606  shlibpath_var=LD_LIBRARY_PATH
12607  shlibpath_overrides_runpath=yes
12608  if test "$with_gnu_ld" = yes; then
12609    need_lib_prefix=no
12610  fi
12611  need_version=yes
12612  ;;
12613
12614sysv4 | sysv4.3*)
12615  version_type=linux
12616  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12617  soname_spec='${libname}${release}${shared_ext}$major'
12618  shlibpath_var=LD_LIBRARY_PATH
12619  case $host_vendor in
12620    sni)
12621      shlibpath_overrides_runpath=no
12622      need_lib_prefix=no
12623      runpath_var=LD_RUN_PATH
12624      ;;
12625    siemens)
12626      need_lib_prefix=no
12627      ;;
12628    motorola)
12629      need_lib_prefix=no
12630      need_version=no
12631      shlibpath_overrides_runpath=no
12632      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12633      ;;
12634  esac
12635  ;;
12636
12637sysv4*MP*)
12638  if test -d /usr/nec ;then
12639    version_type=linux
12640    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12641    soname_spec='$libname${shared_ext}.$major'
12642    shlibpath_var=LD_LIBRARY_PATH
12643  fi
12644  ;;
12645
12646sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12647  version_type=freebsd-elf
12648  need_lib_prefix=no
12649  need_version=no
12650  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12651  soname_spec='${libname}${release}${shared_ext}$major'
12652  shlibpath_var=LD_LIBRARY_PATH
12653  shlibpath_overrides_runpath=yes
12654  hardcode_into_libs=yes
12655  if test "$with_gnu_ld" = yes; then
12656    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12657  else
12658    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12659    case $host_os in
12660      sco3.2v5*)
12661        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12662	;;
12663    esac
12664  fi
12665  sys_lib_dlsearch_path_spec='/usr/lib'
12666  ;;
12667
12668tpf*)
12669  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12670  version_type=linux
12671  need_lib_prefix=no
12672  need_version=no
12673  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12674  shlibpath_var=LD_LIBRARY_PATH
12675  shlibpath_overrides_runpath=no
12676  hardcode_into_libs=yes
12677  ;;
12678
12679uts4*)
12680  version_type=linux
12681  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12682  soname_spec='${libname}${release}${shared_ext}$major'
12683  shlibpath_var=LD_LIBRARY_PATH
12684  ;;
12685
12686*)
12687  dynamic_linker=no
12688  ;;
12689esac
12690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12691$as_echo "$dynamic_linker" >&6; }
12692test "$dynamic_linker" = no && can_build_shared=no
12693
12694variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12695if test "$GCC" = yes; then
12696  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12697fi
12698
12699if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12700  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12701fi
12702if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12703  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12704fi
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12798$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12799hardcode_action=
12800if test -n "$hardcode_libdir_flag_spec" ||
12801   test -n "$runpath_var" ||
12802   test "X$hardcode_automatic" = "Xyes" ; then
12803
12804  # We can hardcode non-existent directories.
12805  if test "$hardcode_direct" != no &&
12806     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12807     # have to relink, otherwise we might link with an installed library
12808     # when we should be linking with a yet-to-be-installed one
12809     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12810     test "$hardcode_minus_L" != no; then
12811    # Linking always hardcodes the temporary library directory.
12812    hardcode_action=relink
12813  else
12814    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12815    hardcode_action=immediate
12816  fi
12817else
12818  # We cannot hardcode anything, or else we can only hardcode existing
12819  # directories.
12820  hardcode_action=unsupported
12821fi
12822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12823$as_echo "$hardcode_action" >&6; }
12824
12825if test "$hardcode_action" = relink ||
12826   test "$inherit_rpath" = yes; then
12827  # Fast installation is not supported
12828  enable_fast_install=no
12829elif test "$shlibpath_overrides_runpath" = yes ||
12830     test "$enable_shared" = no; then
12831  # Fast installation is not necessary
12832  enable_fast_install=needless
12833fi
12834
12835
12836
12837
12838
12839
12840  if test "x$enable_dlopen" != xyes; then
12841  enable_dlopen=unknown
12842  enable_dlopen_self=unknown
12843  enable_dlopen_self_static=unknown
12844else
12845  lt_cv_dlopen=no
12846  lt_cv_dlopen_libs=
12847
12848  case $host_os in
12849  beos*)
12850    lt_cv_dlopen="load_add_on"
12851    lt_cv_dlopen_libs=
12852    lt_cv_dlopen_self=yes
12853    ;;
12854
12855  mingw* | pw32* | cegcc*)
12856    lt_cv_dlopen="LoadLibrary"
12857    lt_cv_dlopen_libs=
12858    ;;
12859
12860  cygwin*)
12861    lt_cv_dlopen="dlopen"
12862    lt_cv_dlopen_libs=
12863    ;;
12864
12865  darwin*)
12866  # if libdl is installed we need to link against it
12867    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12868$as_echo_n "checking for dlopen in -ldl... " >&6; }
12869if ${ac_cv_lib_dl_dlopen+:} false; then :
12870  $as_echo_n "(cached) " >&6
12871else
12872  ac_check_lib_save_LIBS=$LIBS
12873LIBS="-ldl  $LIBS"
12874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12875/* end confdefs.h.  */
12876
12877/* Override any GCC internal prototype to avoid an error.
12878   Use char because int might match the return type of a GCC
12879   builtin and then its argument prototype would still apply.  */
12880#ifdef __cplusplus
12881extern "C"
12882#endif
12883char dlopen ();
12884int
12885main ()
12886{
12887return dlopen ();
12888  ;
12889  return 0;
12890}
12891_ACEOF
12892if ac_fn_c_try_link "$LINENO"; then :
12893  ac_cv_lib_dl_dlopen=yes
12894else
12895  ac_cv_lib_dl_dlopen=no
12896fi
12897rm -f core conftest.err conftest.$ac_objext \
12898    conftest$ac_exeext conftest.$ac_ext
12899LIBS=$ac_check_lib_save_LIBS
12900fi
12901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12902$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12903if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12904  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12905else
12906
12907    lt_cv_dlopen="dyld"
12908    lt_cv_dlopen_libs=
12909    lt_cv_dlopen_self=yes
12910
12911fi
12912
12913    ;;
12914
12915  *)
12916    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12917if test "x$ac_cv_func_shl_load" = xyes; then :
12918  lt_cv_dlopen="shl_load"
12919else
12920  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12921$as_echo_n "checking for shl_load in -ldld... " >&6; }
12922if ${ac_cv_lib_dld_shl_load+:} false; then :
12923  $as_echo_n "(cached) " >&6
12924else
12925  ac_check_lib_save_LIBS=$LIBS
12926LIBS="-ldld  $LIBS"
12927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12928/* end confdefs.h.  */
12929
12930/* Override any GCC internal prototype to avoid an error.
12931   Use char because int might match the return type of a GCC
12932   builtin and then its argument prototype would still apply.  */
12933#ifdef __cplusplus
12934extern "C"
12935#endif
12936char shl_load ();
12937int
12938main ()
12939{
12940return shl_load ();
12941  ;
12942  return 0;
12943}
12944_ACEOF
12945if ac_fn_c_try_link "$LINENO"; then :
12946  ac_cv_lib_dld_shl_load=yes
12947else
12948  ac_cv_lib_dld_shl_load=no
12949fi
12950rm -f core conftest.err conftest.$ac_objext \
12951    conftest$ac_exeext conftest.$ac_ext
12952LIBS=$ac_check_lib_save_LIBS
12953fi
12954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12955$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12956if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12957  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12958else
12959  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12960if test "x$ac_cv_func_dlopen" = xyes; then :
12961  lt_cv_dlopen="dlopen"
12962else
12963  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12964$as_echo_n "checking for dlopen in -ldl... " >&6; }
12965if ${ac_cv_lib_dl_dlopen+:} false; then :
12966  $as_echo_n "(cached) " >&6
12967else
12968  ac_check_lib_save_LIBS=$LIBS
12969LIBS="-ldl  $LIBS"
12970cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12971/* end confdefs.h.  */
12972
12973/* Override any GCC internal prototype to avoid an error.
12974   Use char because int might match the return type of a GCC
12975   builtin and then its argument prototype would still apply.  */
12976#ifdef __cplusplus
12977extern "C"
12978#endif
12979char dlopen ();
12980int
12981main ()
12982{
12983return dlopen ();
12984  ;
12985  return 0;
12986}
12987_ACEOF
12988if ac_fn_c_try_link "$LINENO"; then :
12989  ac_cv_lib_dl_dlopen=yes
12990else
12991  ac_cv_lib_dl_dlopen=no
12992fi
12993rm -f core conftest.err conftest.$ac_objext \
12994    conftest$ac_exeext conftest.$ac_ext
12995LIBS=$ac_check_lib_save_LIBS
12996fi
12997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12998$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12999if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13000  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13001else
13002  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13003$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13004if ${ac_cv_lib_svld_dlopen+:} false; then :
13005  $as_echo_n "(cached) " >&6
13006else
13007  ac_check_lib_save_LIBS=$LIBS
13008LIBS="-lsvld  $LIBS"
13009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13010/* end confdefs.h.  */
13011
13012/* Override any GCC internal prototype to avoid an error.
13013   Use char because int might match the return type of a GCC
13014   builtin and then its argument prototype would still apply.  */
13015#ifdef __cplusplus
13016extern "C"
13017#endif
13018char dlopen ();
13019int
13020main ()
13021{
13022return dlopen ();
13023  ;
13024  return 0;
13025}
13026_ACEOF
13027if ac_fn_c_try_link "$LINENO"; then :
13028  ac_cv_lib_svld_dlopen=yes
13029else
13030  ac_cv_lib_svld_dlopen=no
13031fi
13032rm -f core conftest.err conftest.$ac_objext \
13033    conftest$ac_exeext conftest.$ac_ext
13034LIBS=$ac_check_lib_save_LIBS
13035fi
13036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13037$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13038if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13039  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13040else
13041  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13042$as_echo_n "checking for dld_link in -ldld... " >&6; }
13043if ${ac_cv_lib_dld_dld_link+:} false; then :
13044  $as_echo_n "(cached) " >&6
13045else
13046  ac_check_lib_save_LIBS=$LIBS
13047LIBS="-ldld  $LIBS"
13048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13049/* end confdefs.h.  */
13050
13051/* Override any GCC internal prototype to avoid an error.
13052   Use char because int might match the return type of a GCC
13053   builtin and then its argument prototype would still apply.  */
13054#ifdef __cplusplus
13055extern "C"
13056#endif
13057char dld_link ();
13058int
13059main ()
13060{
13061return dld_link ();
13062  ;
13063  return 0;
13064}
13065_ACEOF
13066if ac_fn_c_try_link "$LINENO"; then :
13067  ac_cv_lib_dld_dld_link=yes
13068else
13069  ac_cv_lib_dld_dld_link=no
13070fi
13071rm -f core conftest.err conftest.$ac_objext \
13072    conftest$ac_exeext conftest.$ac_ext
13073LIBS=$ac_check_lib_save_LIBS
13074fi
13075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13076$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13077if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13078  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13079fi
13080
13081
13082fi
13083
13084
13085fi
13086
13087
13088fi
13089
13090
13091fi
13092
13093
13094fi
13095
13096    ;;
13097  esac
13098
13099  if test "x$lt_cv_dlopen" != xno; then
13100    enable_dlopen=yes
13101  else
13102    enable_dlopen=no
13103  fi
13104
13105  case $lt_cv_dlopen in
13106  dlopen)
13107    save_CPPFLAGS="$CPPFLAGS"
13108    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13109
13110    save_LDFLAGS="$LDFLAGS"
13111    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13112
13113    save_LIBS="$LIBS"
13114    LIBS="$lt_cv_dlopen_libs $LIBS"
13115
13116    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13117$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13118if ${lt_cv_dlopen_self+:} false; then :
13119  $as_echo_n "(cached) " >&6
13120else
13121  	  if test "$cross_compiling" = yes; then :
13122  lt_cv_dlopen_self=cross
13123else
13124  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13125  lt_status=$lt_dlunknown
13126  cat > conftest.$ac_ext <<_LT_EOF
13127#line $LINENO "configure"
13128#include "confdefs.h"
13129
13130#if HAVE_DLFCN_H
13131#include <dlfcn.h>
13132#endif
13133
13134#include <stdio.h>
13135
13136#ifdef RTLD_GLOBAL
13137#  define LT_DLGLOBAL		RTLD_GLOBAL
13138#else
13139#  ifdef DL_GLOBAL
13140#    define LT_DLGLOBAL		DL_GLOBAL
13141#  else
13142#    define LT_DLGLOBAL		0
13143#  endif
13144#endif
13145
13146/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13147   find out it does not work in some platform. */
13148#ifndef LT_DLLAZY_OR_NOW
13149#  ifdef RTLD_LAZY
13150#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13151#  else
13152#    ifdef DL_LAZY
13153#      define LT_DLLAZY_OR_NOW		DL_LAZY
13154#    else
13155#      ifdef RTLD_NOW
13156#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13157#      else
13158#        ifdef DL_NOW
13159#          define LT_DLLAZY_OR_NOW	DL_NOW
13160#        else
13161#          define LT_DLLAZY_OR_NOW	0
13162#        endif
13163#      endif
13164#    endif
13165#  endif
13166#endif
13167
13168/* When -fvisbility=hidden is used, assume the code has been annotated
13169   correspondingly for the symbols needed.  */
13170#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13171int fnord () __attribute__((visibility("default")));
13172#endif
13173
13174int fnord () { return 42; }
13175int main ()
13176{
13177  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13178  int status = $lt_dlunknown;
13179
13180  if (self)
13181    {
13182      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13183      else
13184        {
13185	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13186          else puts (dlerror ());
13187	}
13188      /* dlclose (self); */
13189    }
13190  else
13191    puts (dlerror ());
13192
13193  return status;
13194}
13195_LT_EOF
13196  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13197  (eval $ac_link) 2>&5
13198  ac_status=$?
13199  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13200  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13201    (./conftest; exit; ) >&5 2>/dev/null
13202    lt_status=$?
13203    case x$lt_status in
13204      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13205      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13206      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13207    esac
13208  else :
13209    # compilation failed
13210    lt_cv_dlopen_self=no
13211  fi
13212fi
13213rm -fr conftest*
13214
13215
13216fi
13217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13218$as_echo "$lt_cv_dlopen_self" >&6; }
13219
13220    if test "x$lt_cv_dlopen_self" = xyes; then
13221      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13222      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13223$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13224if ${lt_cv_dlopen_self_static+:} false; then :
13225  $as_echo_n "(cached) " >&6
13226else
13227  	  if test "$cross_compiling" = yes; then :
13228  lt_cv_dlopen_self_static=cross
13229else
13230  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13231  lt_status=$lt_dlunknown
13232  cat > conftest.$ac_ext <<_LT_EOF
13233#line $LINENO "configure"
13234#include "confdefs.h"
13235
13236#if HAVE_DLFCN_H
13237#include <dlfcn.h>
13238#endif
13239
13240#include <stdio.h>
13241
13242#ifdef RTLD_GLOBAL
13243#  define LT_DLGLOBAL		RTLD_GLOBAL
13244#else
13245#  ifdef DL_GLOBAL
13246#    define LT_DLGLOBAL		DL_GLOBAL
13247#  else
13248#    define LT_DLGLOBAL		0
13249#  endif
13250#endif
13251
13252/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13253   find out it does not work in some platform. */
13254#ifndef LT_DLLAZY_OR_NOW
13255#  ifdef RTLD_LAZY
13256#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13257#  else
13258#    ifdef DL_LAZY
13259#      define LT_DLLAZY_OR_NOW		DL_LAZY
13260#    else
13261#      ifdef RTLD_NOW
13262#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13263#      else
13264#        ifdef DL_NOW
13265#          define LT_DLLAZY_OR_NOW	DL_NOW
13266#        else
13267#          define LT_DLLAZY_OR_NOW	0
13268#        endif
13269#      endif
13270#    endif
13271#  endif
13272#endif
13273
13274/* When -fvisbility=hidden is used, assume the code has been annotated
13275   correspondingly for the symbols needed.  */
13276#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13277int fnord () __attribute__((visibility("default")));
13278#endif
13279
13280int fnord () { return 42; }
13281int main ()
13282{
13283  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13284  int status = $lt_dlunknown;
13285
13286  if (self)
13287    {
13288      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13289      else
13290        {
13291	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13292          else puts (dlerror ());
13293	}
13294      /* dlclose (self); */
13295    }
13296  else
13297    puts (dlerror ());
13298
13299  return status;
13300}
13301_LT_EOF
13302  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13303  (eval $ac_link) 2>&5
13304  ac_status=$?
13305  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13306  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13307    (./conftest; exit; ) >&5 2>/dev/null
13308    lt_status=$?
13309    case x$lt_status in
13310      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13311      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13312      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13313    esac
13314  else :
13315    # compilation failed
13316    lt_cv_dlopen_self_static=no
13317  fi
13318fi
13319rm -fr conftest*
13320
13321
13322fi
13323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13324$as_echo "$lt_cv_dlopen_self_static" >&6; }
13325    fi
13326
13327    CPPFLAGS="$save_CPPFLAGS"
13328    LDFLAGS="$save_LDFLAGS"
13329    LIBS="$save_LIBS"
13330    ;;
13331  esac
13332
13333  case $lt_cv_dlopen_self in
13334  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13335  *) enable_dlopen_self=unknown ;;
13336  esac
13337
13338  case $lt_cv_dlopen_self_static in
13339  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13340  *) enable_dlopen_self_static=unknown ;;
13341  esac
13342fi
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360striplib=
13361old_striplib=
13362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13363$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13364if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13365  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13366  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13368$as_echo "yes" >&6; }
13369else
13370# FIXME - insert some real tests, host_os isn't really good enough
13371  case $host_os in
13372  darwin*)
13373    if test -n "$STRIP" ; then
13374      striplib="$STRIP -x"
13375      old_striplib="$STRIP -S"
13376      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13377$as_echo "yes" >&6; }
13378    else
13379      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13380$as_echo "no" >&6; }
13381    fi
13382    ;;
13383  *)
13384    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13385$as_echo "no" >&6; }
13386    ;;
13387  esac
13388fi
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401  # Report which library types will actually be built
13402  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13403$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13405$as_echo "$can_build_shared" >&6; }
13406
13407  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13408$as_echo_n "checking whether to build shared libraries... " >&6; }
13409  test "$can_build_shared" = "no" && enable_shared=no
13410
13411  # On AIX, shared libraries and static libraries use the same namespace, and
13412  # are all built from PIC.
13413  case $host_os in
13414  aix3*)
13415    test "$enable_shared" = yes && enable_static=no
13416    if test -n "$RANLIB"; then
13417      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13418      postinstall_cmds='$RANLIB $lib'
13419    fi
13420    ;;
13421
13422  aix[4-9]*)
13423    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13424      test "$enable_shared" = yes && enable_static=no
13425    fi
13426    ;;
13427  esac
13428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13429$as_echo "$enable_shared" >&6; }
13430
13431  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13432$as_echo_n "checking whether to build static libraries... " >&6; }
13433  # Make sure either enable_shared or enable_static is yes.
13434  test "$enable_shared" = yes || enable_static=yes
13435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13436$as_echo "$enable_static" >&6; }
13437
13438
13439
13440
13441fi
13442ac_ext=c
13443ac_cpp='$CPP $CPPFLAGS'
13444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13446ac_compiler_gnu=$ac_cv_c_compiler_gnu
13447
13448CC="$lt_save_CC"
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462        ac_config_commands="$ac_config_commands libtool"
13463
13464
13465
13466
13467# Only expand once:
13468
13469
13470
13471
13472# Checks for header files.
13473for ac_header in stdarg.h stdbool.h netinet/in.h sys/param.h sys/socket.h sys/uio.h sys/resource.h arpa/inet.h syslog.h netdb.h sys/wait.h pwd.h glob.h grp.h login_cap.h winsock2.h ws2tcpip.h
13474do :
13475  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13476ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13477"
13478if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13479  cat >>confdefs.h <<_ACEOF
13480#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13481_ACEOF
13482
13483fi
13484
13485done
13486
13487
13488# check for types.
13489# Using own tests for int64* because autoconf builtin only give 32bit.
13490ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
13491if test "x$ac_cv_type_int8_t" = xyes; then :
13492
13493else
13494
13495cat >>confdefs.h <<_ACEOF
13496#define int8_t signed char
13497_ACEOF
13498
13499fi
13500
13501ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
13502if test "x$ac_cv_type_int16_t" = xyes; then :
13503
13504else
13505
13506cat >>confdefs.h <<_ACEOF
13507#define int16_t short
13508_ACEOF
13509
13510fi
13511
13512ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
13513if test "x$ac_cv_type_int32_t" = xyes; then :
13514
13515else
13516
13517cat >>confdefs.h <<_ACEOF
13518#define int32_t int
13519_ACEOF
13520
13521fi
13522
13523ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
13524if test "x$ac_cv_type_int64_t" = xyes; then :
13525
13526else
13527
13528cat >>confdefs.h <<_ACEOF
13529#define int64_t long long
13530_ACEOF
13531
13532fi
13533
13534ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
13535if test "x$ac_cv_type_uint8_t" = xyes; then :
13536
13537else
13538
13539cat >>confdefs.h <<_ACEOF
13540#define uint8_t unsigned char
13541_ACEOF
13542
13543fi
13544
13545ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
13546if test "x$ac_cv_type_uint16_t" = xyes; then :
13547
13548else
13549
13550cat >>confdefs.h <<_ACEOF
13551#define uint16_t unsigned short
13552_ACEOF
13553
13554fi
13555
13556ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
13557if test "x$ac_cv_type_uint32_t" = xyes; then :
13558
13559else
13560
13561cat >>confdefs.h <<_ACEOF
13562#define uint32_t unsigned int
13563_ACEOF
13564
13565fi
13566
13567ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
13568if test "x$ac_cv_type_uint64_t" = xyes; then :
13569
13570else
13571
13572cat >>confdefs.h <<_ACEOF
13573#define uint64_t unsigned long long
13574_ACEOF
13575
13576fi
13577
13578ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13579if test "x$ac_cv_type_size_t" = xyes; then :
13580
13581else
13582
13583cat >>confdefs.h <<_ACEOF
13584#define size_t unsigned int
13585_ACEOF
13586
13587fi
13588
13589ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13590if test "x$ac_cv_type_ssize_t" = xyes; then :
13591
13592else
13593
13594cat >>confdefs.h <<_ACEOF
13595#define ssize_t int
13596_ACEOF
13597
13598fi
13599
13600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
13601$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
13602if ${ac_cv_type_uid_t+:} false; then :
13603  $as_echo_n "(cached) " >&6
13604else
13605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13606/* end confdefs.h.  */
13607#include <sys/types.h>
13608
13609_ACEOF
13610if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13611  $EGREP "uid_t" >/dev/null 2>&1; then :
13612  ac_cv_type_uid_t=yes
13613else
13614  ac_cv_type_uid_t=no
13615fi
13616rm -f conftest*
13617
13618fi
13619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
13620$as_echo "$ac_cv_type_uid_t" >&6; }
13621if test $ac_cv_type_uid_t = no; then
13622
13623$as_echo "#define uid_t int" >>confdefs.h
13624
13625
13626$as_echo "#define gid_t int" >>confdefs.h
13627
13628fi
13629
13630ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13631if test "x$ac_cv_type_pid_t" = xyes; then :
13632
13633else
13634
13635cat >>confdefs.h <<_ACEOF
13636#define pid_t int
13637_ACEOF
13638
13639fi
13640
13641ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13642if test "x$ac_cv_type_off_t" = xyes; then :
13643
13644else
13645
13646cat >>confdefs.h <<_ACEOF
13647#define off_t long int
13648_ACEOF
13649
13650fi
13651
13652ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "
13653$ac_includes_default
13654#ifdef HAVE_WINSOCK2_H
13655#  include <winsock2.h>
13656#endif
13657
13658"
13659if test "x$ac_cv_type_u_char" = xyes; then :
13660
13661else
13662
13663$as_echo "#define u_char unsigned char" >>confdefs.h
13664
13665fi
13666
13667ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "
13668$ac_includes_default
13669#ifdef HAVE_SYS_RESOURCE_H
13670#  include <sys/resource.h>
13671#endif
13672
13673"
13674if test "x$ac_cv_type_rlim_t" = xyes; then :
13675
13676else
13677
13678$as_echo "#define rlim_t unsigned long" >>confdefs.h
13679
13680fi
13681
13682
13683ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
13684$ac_includes_default
13685#ifdef HAVE_SYS_SOCKET_H
13686#  include <sys/socket.h>
13687#endif
13688#ifdef HAVE_WS2TCPIP_H
13689#  include <ws2tcpip.h>
13690#endif
13691
13692"
13693if test "x$ac_cv_type_socklen_t" = xyes; then :
13694
13695else
13696
13697$as_echo "#define socklen_t int" >>confdefs.h
13698
13699fi
13700
13701 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
13702$ac_includes_default
13703#ifdef HAVE_SYS_TYPES_H
13704# include <sys/types.h>
13705#endif
13706#ifdef HAVE_NETINET_IN_H
13707# include <netinet/in.h>
13708#endif
13709
13710"
13711if test "x$ac_cv_type_in_addr_t" = xyes; then :
13712
13713else
13714
13715$as_echo "#define in_addr_t uint32_t" >>confdefs.h
13716
13717fi
13718
13719 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
13720$ac_includes_default
13721#ifdef HAVE_SYS_TYPES_H
13722# include <sys/types.h>
13723#endif
13724#ifdef HAVE_NETINET_IN_H
13725# include <netinet/in.h>
13726#endif
13727
13728"
13729if test "x$ac_cv_type_in_port_t" = xyes; then :
13730
13731else
13732
13733$as_echo "#define in_port_t uint16_t" >>confdefs.h
13734
13735fi
13736
13737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
13738$as_echo_n "checking if memcmp compares unsigned... " >&6; }
13739if test "$cross_compiling" = yes; then :
13740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
13741$as_echo "cross-compile no" >&6; }
13742
13743$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
13744
13745  case " $LIBOBJS " in
13746  *" memcmp.$ac_objext "* ) ;;
13747  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
13748 ;;
13749esac
13750
13751
13752else
13753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13754/* end confdefs.h.  */
13755
13756#include <stdio.h>
13757#include <stdlib.h>
13758#include <string.h>
13759int main(void)
13760{
13761	char a = 255, b = 0;
13762	if(memcmp(&a, &b, 1) < 0)
13763		return 1;
13764	return 0;
13765}
13766
13767_ACEOF
13768if ac_fn_c_try_run "$LINENO"; then :
13769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13770$as_echo "yes" >&6; }
13771else
13772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13773$as_echo "no" >&6; }
13774
13775$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
13776
13777  case " $LIBOBJS " in
13778  *" memcmp.$ac_objext "* ) ;;
13779  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
13780 ;;
13781esac
13782
13783
13784fi
13785rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13786  conftest.$ac_objext conftest.beam conftest.$ac_ext
13787fi
13788
13789
13790# add option to disable the evil rpath
13791
13792# Check whether --enable-rpath was given.
13793if test "${enable_rpath+set}" = set; then :
13794  enableval=$enable_rpath; enable_rpath=$enableval
13795else
13796  enable_rpath=yes
13797fi
13798
13799if test "x$enable_rpath" = xno; then
13800		ac_config_commands="$ac_config_commands disable-rpath"
13801
13802fi
13803
13804
13805
13806# check to see if libraries are needed for these functions.
13807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
13808$as_echo_n "checking for library containing inet_pton... " >&6; }
13809if ${ac_cv_search_inet_pton+:} false; then :
13810  $as_echo_n "(cached) " >&6
13811else
13812  ac_func_search_save_LIBS=$LIBS
13813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13814/* end confdefs.h.  */
13815
13816/* Override any GCC internal prototype to avoid an error.
13817   Use char because int might match the return type of a GCC
13818   builtin and then its argument prototype would still apply.  */
13819#ifdef __cplusplus
13820extern "C"
13821#endif
13822char inet_pton ();
13823int
13824main ()
13825{
13826return inet_pton ();
13827  ;
13828  return 0;
13829}
13830_ACEOF
13831for ac_lib in '' nsl; do
13832  if test -z "$ac_lib"; then
13833    ac_res="none required"
13834  else
13835    ac_res=-l$ac_lib
13836    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13837  fi
13838  if ac_fn_c_try_link "$LINENO"; then :
13839  ac_cv_search_inet_pton=$ac_res
13840fi
13841rm -f core conftest.err conftest.$ac_objext \
13842    conftest$ac_exeext
13843  if ${ac_cv_search_inet_pton+:} false; then :
13844  break
13845fi
13846done
13847if ${ac_cv_search_inet_pton+:} false; then :
13848
13849else
13850  ac_cv_search_inet_pton=no
13851fi
13852rm conftest.$ac_ext
13853LIBS=$ac_func_search_save_LIBS
13854fi
13855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
13856$as_echo "$ac_cv_search_inet_pton" >&6; }
13857ac_res=$ac_cv_search_inet_pton
13858if test "$ac_res" != no; then :
13859  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13860
13861fi
13862
13863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13864$as_echo_n "checking for library containing socket... " >&6; }
13865if ${ac_cv_search_socket+:} false; then :
13866  $as_echo_n "(cached) " >&6
13867else
13868  ac_func_search_save_LIBS=$LIBS
13869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13870/* end confdefs.h.  */
13871
13872/* Override any GCC internal prototype to avoid an error.
13873   Use char because int might match the return type of a GCC
13874   builtin and then its argument prototype would still apply.  */
13875#ifdef __cplusplus
13876extern "C"
13877#endif
13878char socket ();
13879int
13880main ()
13881{
13882return socket ();
13883  ;
13884  return 0;
13885}
13886_ACEOF
13887for ac_lib in '' socket; do
13888  if test -z "$ac_lib"; then
13889    ac_res="none required"
13890  else
13891    ac_res=-l$ac_lib
13892    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13893  fi
13894  if ac_fn_c_try_link "$LINENO"; then :
13895  ac_cv_search_socket=$ac_res
13896fi
13897rm -f core conftest.err conftest.$ac_objext \
13898    conftest$ac_exeext
13899  if ${ac_cv_search_socket+:} false; then :
13900  break
13901fi
13902done
13903if ${ac_cv_search_socket+:} false; then :
13904
13905else
13906  ac_cv_search_socket=no
13907fi
13908rm conftest.$ac_ext
13909LIBS=$ac_func_search_save_LIBS
13910fi
13911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13912$as_echo "$ac_cv_search_socket" >&6; }
13913ac_res=$ac_cv_search_socket
13914if test "$ac_res" != no; then :
13915  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13916
13917fi
13918
13919
13920# check wether strptime also works
13921
13922# check some functions of the OS before linking libs (while still runnable).
13923for ac_header in unistd.h
13924do :
13925  ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
13926if test "x$ac_cv_header_unistd_h" = xyes; then :
13927  cat >>confdefs.h <<_ACEOF
13928#define HAVE_UNISTD_H 1
13929_ACEOF
13930
13931fi
13932
13933done
13934
13935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
13936$as_echo_n "checking for working chown... " >&6; }
13937if ${ac_cv_func_chown_works+:} false; then :
13938  $as_echo_n "(cached) " >&6
13939else
13940  if test "$cross_compiling" = yes; then :
13941  ac_cv_func_chown_works=no
13942else
13943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13944/* end confdefs.h.  */
13945$ac_includes_default
13946#include <fcntl.h>
13947
13948int
13949main ()
13950{
13951  char *f = "conftest.chown";
13952  struct stat before, after;
13953
13954  if (creat (f, 0600) < 0)
13955    return 1;
13956  if (stat (f, &before) < 0)
13957    return 1;
13958  if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
13959    return 1;
13960  if (stat (f, &after) < 0)
13961    return 1;
13962  return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
13963
13964  ;
13965  return 0;
13966}
13967_ACEOF
13968if ac_fn_c_try_run "$LINENO"; then :
13969  ac_cv_func_chown_works=yes
13970else
13971  ac_cv_func_chown_works=no
13972fi
13973rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13974  conftest.$ac_objext conftest.beam conftest.$ac_ext
13975fi
13976
13977rm -f conftest.chown
13978
13979fi
13980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
13981$as_echo "$ac_cv_func_chown_works" >&6; }
13982if test $ac_cv_func_chown_works = yes; then
13983
13984$as_echo "#define HAVE_CHOWN 1" >>confdefs.h
13985
13986fi
13987
13988for ac_header in vfork.h
13989do :
13990  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13991if test "x$ac_cv_header_vfork_h" = xyes; then :
13992  cat >>confdefs.h <<_ACEOF
13993#define HAVE_VFORK_H 1
13994_ACEOF
13995
13996fi
13997
13998done
13999
14000for ac_func in fork vfork
14001do :
14002  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14003ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14004if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14005  cat >>confdefs.h <<_ACEOF
14006#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14007_ACEOF
14008
14009fi
14010done
14011
14012if test "x$ac_cv_func_fork" = xyes; then
14013  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14014$as_echo_n "checking for working fork... " >&6; }
14015if ${ac_cv_func_fork_works+:} false; then :
14016  $as_echo_n "(cached) " >&6
14017else
14018  if test "$cross_compiling" = yes; then :
14019  ac_cv_func_fork_works=cross
14020else
14021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14022/* end confdefs.h.  */
14023$ac_includes_default
14024int
14025main ()
14026{
14027
14028	  /* By Ruediger Kuhlmann. */
14029	  return fork () < 0;
14030
14031  ;
14032  return 0;
14033}
14034_ACEOF
14035if ac_fn_c_try_run "$LINENO"; then :
14036  ac_cv_func_fork_works=yes
14037else
14038  ac_cv_func_fork_works=no
14039fi
14040rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14041  conftest.$ac_objext conftest.beam conftest.$ac_ext
14042fi
14043
14044fi
14045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14046$as_echo "$ac_cv_func_fork_works" >&6; }
14047
14048else
14049  ac_cv_func_fork_works=$ac_cv_func_fork
14050fi
14051if test "x$ac_cv_func_fork_works" = xcross; then
14052  case $host in
14053    *-*-amigaos* | *-*-msdosdjgpp*)
14054      # Override, as these systems have only a dummy fork() stub
14055      ac_cv_func_fork_works=no
14056      ;;
14057    *)
14058      ac_cv_func_fork_works=yes
14059      ;;
14060  esac
14061  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14062$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14063fi
14064ac_cv_func_vfork_works=$ac_cv_func_vfork
14065if test "x$ac_cv_func_vfork" = xyes; then
14066  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14067$as_echo_n "checking for working vfork... " >&6; }
14068if ${ac_cv_func_vfork_works+:} false; then :
14069  $as_echo_n "(cached) " >&6
14070else
14071  if test "$cross_compiling" = yes; then :
14072  ac_cv_func_vfork_works=cross
14073else
14074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14075/* end confdefs.h.  */
14076/* Thanks to Paul Eggert for this test.  */
14077$ac_includes_default
14078#include <sys/wait.h>
14079#ifdef HAVE_VFORK_H
14080# include <vfork.h>
14081#endif
14082/* On some sparc systems, changes by the child to local and incoming
14083   argument registers are propagated back to the parent.  The compiler
14084   is told about this with #include <vfork.h>, but some compilers
14085   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
14086   static variable whose address is put into a register that is
14087   clobbered by the vfork.  */
14088static void
14089#ifdef __cplusplus
14090sparc_address_test (int arg)
14091# else
14092sparc_address_test (arg) int arg;
14093#endif
14094{
14095  static pid_t child;
14096  if (!child) {
14097    child = vfork ();
14098    if (child < 0) {
14099      perror ("vfork");
14100      _exit(2);
14101    }
14102    if (!child) {
14103      arg = getpid();
14104      write(-1, "", 0);
14105      _exit (arg);
14106    }
14107  }
14108}
14109
14110int
14111main ()
14112{
14113  pid_t parent = getpid ();
14114  pid_t child;
14115
14116  sparc_address_test (0);
14117
14118  child = vfork ();
14119
14120  if (child == 0) {
14121    /* Here is another test for sparc vfork register problems.  This
14122       test uses lots of local variables, at least as many local
14123       variables as main has allocated so far including compiler
14124       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
14125       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
14126       reuse the register of parent for one of the local variables,
14127       since it will think that parent can't possibly be used any more
14128       in this routine.  Assigning to the local variable will thus
14129       munge parent in the parent process.  */
14130    pid_t
14131      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14132      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14133    /* Convince the compiler that p..p7 are live; otherwise, it might
14134       use the same hardware register for all 8 local variables.  */
14135    if (p != p1 || p != p2 || p != p3 || p != p4
14136	|| p != p5 || p != p6 || p != p7)
14137      _exit(1);
14138
14139    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14140       from child file descriptors.  If the child closes a descriptor
14141       before it execs or exits, this munges the parent's descriptor
14142       as well.  Test for this by closing stdout in the child.  */
14143    _exit(close(fileno(stdout)) != 0);
14144  } else {
14145    int status;
14146    struct stat st;
14147
14148    while (wait(&status) != child)
14149      ;
14150    return (
14151	 /* Was there some problem with vforking?  */
14152	 child < 0
14153
14154	 /* Did the child fail?  (This shouldn't happen.)  */
14155	 || status
14156
14157	 /* Did the vfork/compiler bug occur?  */
14158	 || parent != getpid()
14159
14160	 /* Did the file descriptor bug occur?  */
14161	 || fstat(fileno(stdout), &st) != 0
14162	 );
14163  }
14164}
14165_ACEOF
14166if ac_fn_c_try_run "$LINENO"; then :
14167  ac_cv_func_vfork_works=yes
14168else
14169  ac_cv_func_vfork_works=no
14170fi
14171rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14172  conftest.$ac_objext conftest.beam conftest.$ac_ext
14173fi
14174
14175fi
14176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14177$as_echo "$ac_cv_func_vfork_works" >&6; }
14178
14179fi;
14180if test "x$ac_cv_func_fork_works" = xcross; then
14181  ac_cv_func_vfork_works=$ac_cv_func_vfork
14182  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14183$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14184fi
14185
14186if test "x$ac_cv_func_vfork_works" = xyes; then
14187
14188$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14189
14190else
14191
14192$as_echo "#define vfork fork" >>confdefs.h
14193
14194fi
14195if test "x$ac_cv_func_fork_works" = xyes; then
14196
14197$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14198
14199fi
14200
14201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14202$as_echo_n "checking return type of signal handlers... " >&6; }
14203if ${ac_cv_type_signal+:} false; then :
14204  $as_echo_n "(cached) " >&6
14205else
14206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14207/* end confdefs.h.  */
14208#include <sys/types.h>
14209#include <signal.h>
14210
14211int
14212main ()
14213{
14214return *(signal (0, 0)) (0) == 1;
14215  ;
14216  return 0;
14217}
14218_ACEOF
14219if ac_fn_c_try_compile "$LINENO"; then :
14220  ac_cv_type_signal=int
14221else
14222  ac_cv_type_signal=void
14223fi
14224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14225fi
14226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14227$as_echo "$ac_cv_type_signal" >&6; }
14228
14229cat >>confdefs.h <<_ACEOF
14230#define RETSIGTYPE $ac_cv_type_signal
14231_ACEOF
14232
14233
14234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14235$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14236if ${ac_cv_sys_largefile_source+:} false; then :
14237  $as_echo_n "(cached) " >&6
14238else
14239  while :; do
14240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14241/* end confdefs.h.  */
14242#include <sys/types.h> /* for off_t */
14243     #include <stdio.h>
14244int
14245main ()
14246{
14247int (*fp) (FILE *, off_t, int) = fseeko;
14248     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14249  ;
14250  return 0;
14251}
14252_ACEOF
14253if ac_fn_c_try_link "$LINENO"; then :
14254  ac_cv_sys_largefile_source=no; break
14255fi
14256rm -f core conftest.err conftest.$ac_objext \
14257    conftest$ac_exeext conftest.$ac_ext
14258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14259/* end confdefs.h.  */
14260#define _LARGEFILE_SOURCE 1
14261#include <sys/types.h> /* for off_t */
14262     #include <stdio.h>
14263int
14264main ()
14265{
14266int (*fp) (FILE *, off_t, int) = fseeko;
14267     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14268  ;
14269  return 0;
14270}
14271_ACEOF
14272if ac_fn_c_try_link "$LINENO"; then :
14273  ac_cv_sys_largefile_source=1; break
14274fi
14275rm -f core conftest.err conftest.$ac_objext \
14276    conftest$ac_exeext conftest.$ac_ext
14277  ac_cv_sys_largefile_source=unknown
14278  break
14279done
14280fi
14281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14282$as_echo "$ac_cv_sys_largefile_source" >&6; }
14283case $ac_cv_sys_largefile_source in #(
14284  no | unknown) ;;
14285  *)
14286cat >>confdefs.h <<_ACEOF
14287#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14288_ACEOF
14289;;
14290esac
14291rm -rf conftest*
14292
14293# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14294# in glibc 2.1.3, but that breaks too many other things.
14295# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14296if test $ac_cv_sys_largefile_source != unknown; then
14297
14298$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14299
14300fi
14301
14302
14303# Check whether --enable-largefile was given.
14304if test "${enable_largefile+set}" = set; then :
14305  enableval=$enable_largefile;
14306fi
14307
14308if test "$enable_largefile" != no; then
14309
14310  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14311$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14312if ${ac_cv_sys_largefile_CC+:} false; then :
14313  $as_echo_n "(cached) " >&6
14314else
14315  ac_cv_sys_largefile_CC=no
14316     if test "$GCC" != yes; then
14317       ac_save_CC=$CC
14318       while :; do
14319	 # IRIX 6.2 and later do not support large files by default,
14320	 # so use the C compiler's -n32 option if that helps.
14321	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14322/* end confdefs.h.  */
14323#include <sys/types.h>
14324 /* Check that off_t can represent 2**63 - 1 correctly.
14325    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14326    since some C++ compilers masquerading as C compilers
14327    incorrectly reject 9223372036854775807.  */
14328#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14329  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14330		       && LARGE_OFF_T % 2147483647 == 1)
14331		      ? 1 : -1];
14332int
14333main ()
14334{
14335
14336  ;
14337  return 0;
14338}
14339_ACEOF
14340	 if ac_fn_c_try_compile "$LINENO"; then :
14341  break
14342fi
14343rm -f core conftest.err conftest.$ac_objext
14344	 CC="$CC -n32"
14345	 if ac_fn_c_try_compile "$LINENO"; then :
14346  ac_cv_sys_largefile_CC=' -n32'; break
14347fi
14348rm -f core conftest.err conftest.$ac_objext
14349	 break
14350       done
14351       CC=$ac_save_CC
14352       rm -f conftest.$ac_ext
14353    fi
14354fi
14355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14356$as_echo "$ac_cv_sys_largefile_CC" >&6; }
14357  if test "$ac_cv_sys_largefile_CC" != no; then
14358    CC=$CC$ac_cv_sys_largefile_CC
14359  fi
14360
14361  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14362$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14363if ${ac_cv_sys_file_offset_bits+:} false; then :
14364  $as_echo_n "(cached) " >&6
14365else
14366  while :; do
14367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14368/* end confdefs.h.  */
14369#include <sys/types.h>
14370 /* Check that off_t can represent 2**63 - 1 correctly.
14371    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14372    since some C++ compilers masquerading as C compilers
14373    incorrectly reject 9223372036854775807.  */
14374#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14375  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14376		       && LARGE_OFF_T % 2147483647 == 1)
14377		      ? 1 : -1];
14378int
14379main ()
14380{
14381
14382  ;
14383  return 0;
14384}
14385_ACEOF
14386if ac_fn_c_try_compile "$LINENO"; then :
14387  ac_cv_sys_file_offset_bits=no; break
14388fi
14389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14391/* end confdefs.h.  */
14392#define _FILE_OFFSET_BITS 64
14393#include <sys/types.h>
14394 /* Check that off_t can represent 2**63 - 1 correctly.
14395    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14396    since some C++ compilers masquerading as C compilers
14397    incorrectly reject 9223372036854775807.  */
14398#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14399  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14400		       && LARGE_OFF_T % 2147483647 == 1)
14401		      ? 1 : -1];
14402int
14403main ()
14404{
14405
14406  ;
14407  return 0;
14408}
14409_ACEOF
14410if ac_fn_c_try_compile "$LINENO"; then :
14411  ac_cv_sys_file_offset_bits=64; break
14412fi
14413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14414  ac_cv_sys_file_offset_bits=unknown
14415  break
14416done
14417fi
14418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14419$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14420case $ac_cv_sys_file_offset_bits in #(
14421  no | unknown) ;;
14422  *)
14423cat >>confdefs.h <<_ACEOF
14424#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14425_ACEOF
14426;;
14427esac
14428rm -rf conftest*
14429  if test $ac_cv_sys_file_offset_bits = unknown; then
14430    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14431$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14432if ${ac_cv_sys_large_files+:} false; then :
14433  $as_echo_n "(cached) " >&6
14434else
14435  while :; do
14436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14437/* end confdefs.h.  */
14438#include <sys/types.h>
14439 /* Check that off_t can represent 2**63 - 1 correctly.
14440    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14441    since some C++ compilers masquerading as C compilers
14442    incorrectly reject 9223372036854775807.  */
14443#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14444  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14445		       && LARGE_OFF_T % 2147483647 == 1)
14446		      ? 1 : -1];
14447int
14448main ()
14449{
14450
14451  ;
14452  return 0;
14453}
14454_ACEOF
14455if ac_fn_c_try_compile "$LINENO"; then :
14456  ac_cv_sys_large_files=no; break
14457fi
14458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14460/* end confdefs.h.  */
14461#define _LARGE_FILES 1
14462#include <sys/types.h>
14463 /* Check that off_t can represent 2**63 - 1 correctly.
14464    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14465    since some C++ compilers masquerading as C compilers
14466    incorrectly reject 9223372036854775807.  */
14467#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14468  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14469		       && LARGE_OFF_T % 2147483647 == 1)
14470		      ? 1 : -1];
14471int
14472main ()
14473{
14474
14475  ;
14476  return 0;
14477}
14478_ACEOF
14479if ac_fn_c_try_compile "$LINENO"; then :
14480  ac_cv_sys_large_files=1; break
14481fi
14482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14483  ac_cv_sys_large_files=unknown
14484  break
14485done
14486fi
14487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14488$as_echo "$ac_cv_sys_large_files" >&6; }
14489case $ac_cv_sys_large_files in #(
14490  no | unknown) ;;
14491  *)
14492cat >>confdefs.h <<_ACEOF
14493#define _LARGE_FILES $ac_cv_sys_large_files
14494_ACEOF
14495;;
14496esac
14497rm -rf conftest*
14498  fi
14499fi
14500
14501
14502
14503
14504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
14505$as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
14506cache=`$as_echo "-D_LARGEFILE_SOURCE=1" | $as_tr_sh`
14507if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
14508  $as_echo_n "(cached) " >&6
14509else
14510
14511echo '
14512#include <stdio.h>
14513int test() {
14514        int a = fseeko(stdin, 0, 0);
14515        return a;
14516}
14517' > conftest.c
14518echo 'void f(){}' >>conftest.c
14519if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
14520eval "cv_prog_cc_flag_needed_$cache=no"
14521else
14522
14523if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
14524eval "cv_prog_cc_flag_needed_$cache=yes"
14525else
14526eval "cv_prog_cc_flag_needed_$cache=fail"
14527#echo 'Test with flag fails too!'
14528#cat conftest.c
14529#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
14530#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
14531#exit 1
14532fi
14533
14534fi
14535rm -f conftest conftest.c conftest.o
14536
14537fi
14538
14539if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
14540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14541$as_echo "yes" >&6; }
14542:
14543CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
14544else
14545if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
14546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14547$as_echo "no" >&6; }
14548#echo 'Test with flag is no!'
14549#cat conftest.c
14550#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
14551#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
14552#exit 1
14553:
14554
14555else
14556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14557$as_echo "failed" >&6; }
14558:
14559
14560fi
14561fi
14562
14563
14564
14565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
14566$as_echo_n "checking if nonblocking sockets work... " >&6; }
14567if echo $target | grep mingw32 >/dev/null; then
14568	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
14569$as_echo "no (windows)" >&6; }
14570
14571$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
14572
14573else
14574if test "$cross_compiling" = yes; then :
14575
14576	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
14577$as_echo "crosscompile(yes)" >&6; }
14578
14579else
14580  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14581/* end confdefs.h.  */
14582
14583
14584#include <stdio.h>
14585#include <string.h>
14586#include <stdlib.h>
14587#include <fcntl.h>
14588#include <errno.h>
14589#ifdef HAVE_SYS_TYPES_H
14590#include <sys/types.h>
14591#endif
14592#ifdef HAVE_SYS_SOCKET_H
14593#include <sys/socket.h>
14594#endif
14595#ifdef HAVE_NETINET_IN_H
14596#include <netinet/in.h>
14597#endif
14598#ifdef HAVE_ARPA_INET_H
14599#include <arpa/inet.h>
14600#endif
14601#ifdef HAVE_UNISTD_H
14602#include <unistd.h>
14603#endif
14604#ifdef HAVE_TIME_H
14605#include <time.h>
14606#endif
14607
14608int main(void)
14609{
14610	int port;
14611	int sfd, cfd;
14612	int num = 10;
14613	int i, p;
14614	struct sockaddr_in a;
14615	/* test if select and nonblocking reads work well together */
14616	/* open port.
14617	   fork child to send 10 messages.
14618	   select to read.
14619	   then try to nonblocking read the 10 messages
14620	   then, nonblocking read must give EAGAIN
14621	*/
14622
14623	port = 12345 + (time(0)%32);
14624	sfd = socket(PF_INET, SOCK_DGRAM, 0);
14625	if(sfd == -1) {
14626		perror("socket");
14627		return 1;
14628	}
14629	memset(&a, 0, sizeof(a));
14630	a.sin_family = AF_INET;
14631	a.sin_port = htons(port);
14632	a.sin_addr.s_addr = inet_addr("127.0.0.1");
14633	if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
14634		perror("bind");
14635		return 1;
14636	}
14637	if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
14638		perror("fcntl");
14639		return 1;
14640	}
14641
14642	cfd = socket(PF_INET, SOCK_DGRAM, 0);
14643	if(cfd == -1) {
14644		perror("client socket");
14645		return 1;
14646	}
14647	a.sin_port = 0;
14648	if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
14649		perror("client bind");
14650		return 1;
14651	}
14652	a.sin_port = htons(port);
14653
14654	/* no handler, causes exit in 10 seconds */
14655	alarm(10);
14656
14657	/* send and receive on the socket */
14658	if((p=fork()) == 0) {
14659		for(i=0; i<num; i++) {
14660			if(sendto(cfd, &i, sizeof(i), 0,
14661				(struct sockaddr*)&a, sizeof(a)) < 0) {
14662				perror("sendto");
14663				return 1;
14664			}
14665		}
14666	} else {
14667		/* parent */
14668		fd_set rset;
14669		int x;
14670		if(p == -1) {
14671			perror("fork");
14672			return 1;
14673		}
14674		FD_ZERO(&rset);
14675		FD_SET(sfd, &rset);
14676		if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
14677			perror("select");
14678			return 1;
14679		}
14680		i = 0;
14681		while(i < num) {
14682			if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
14683				if(errno == EAGAIN)
14684					continue;
14685				perror("recv");
14686				return 1;
14687			}
14688			i++;
14689		}
14690		/* now we want to get EAGAIN: nonblocking goodness */
14691		errno = 0;
14692		recv(sfd, &x, sizeof(x), 0);
14693		if(errno != EAGAIN) {
14694			perror("trying to recv again");
14695			return 1;
14696		}
14697		/* EAGAIN encountered */
14698	}
14699
14700	close(sfd);
14701	close(cfd);
14702	return 0;
14703}
14704
14705_ACEOF
14706if ac_fn_c_try_run "$LINENO"; then :
14707
14708	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14709$as_echo "yes" >&6; }
14710
14711else
14712
14713	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14714$as_echo "no" >&6; }
14715
14716$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
14717
14718
14719fi
14720rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14721  conftest.$ac_objext conftest.beam conftest.$ac_ext
14722fi
14723
14724fi
14725
14726
14727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
14728$as_echo_n "checking whether mkdir has one arg... " >&6; }
14729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14730/* end confdefs.h.  */
14731
14732#include <stdio.h>
14733#include <unistd.h>
14734#ifdef HAVE_WINSOCK2_H
14735#include <winsock2.h>
14736#endif
14737#ifdef HAVE_SYS_STAT_H
14738#include <sys/stat.h>
14739#endif
14740
14741int
14742main ()
14743{
14744
14745	(void)mkdir("directory");
14746
14747  ;
14748  return 0;
14749}
14750_ACEOF
14751if ac_fn_c_try_compile "$LINENO"; then :
14752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14753$as_echo "yes" >&6; }
14754
14755$as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
14756
14757
14758else
14759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14760$as_echo "no" >&6; }
14761
14762fi
14763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14764
14765for ac_func in strptime
14766do :
14767  ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
14768if test "x$ac_cv_func_strptime" = xyes; then :
14769  cat >>confdefs.h <<_ACEOF
14770#define HAVE_STRPTIME 1
14771_ACEOF
14772
14773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
14774$as_echo_n "checking whether strptime works... " >&6; }
14775if test c${cross_compiling} = cno; then
14776if test "$cross_compiling" = yes; then :
14777  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14778$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14779as_fn_error $? "cannot run test program while cross compiling
14780See \`config.log' for more details" "$LINENO" 5; }
14781else
14782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14783/* end confdefs.h.  */
14784
14785#define _XOPEN_SOURCE
14786#include <time.h>
14787int main(void) { struct tm tm; char *res;
14788res = strptime("2010-07-15T00:00:00+00:00", "%t%Y%t-%t%m%t-%t%d%tT%t%H%t:%t%M%t:%t%S%t", &tm);
14789if (!res) return 2;
14790res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
14791if (!res) return 1; return 0; }
14792
14793_ACEOF
14794if ac_fn_c_try_run "$LINENO"; then :
14795  eval "ac_cv_c_strptime_works=yes"
14796else
14797  eval "ac_cv_c_strptime_works=no"
14798fi
14799rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14800  conftest.$ac_objext conftest.beam conftest.$ac_ext
14801fi
14802
14803else
14804eval "ac_cv_c_strptime_works=maybe"
14805fi
14806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
14807$as_echo "$ac_cv_c_strptime_works" >&6; }
14808if test $ac_cv_c_strptime_works = no; then
14809case " $LIBOBJS " in
14810  *" strptime.$ac_objext "* ) ;;
14811  *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
14812 ;;
14813esac
14814
14815else
14816
14817cat >>confdefs.h <<_ACEOF
14818#define STRPTIME_WORKS 1
14819_ACEOF
14820
14821fi
14822
14823else
14824  case " $LIBOBJS " in
14825  *" strptime.$ac_objext "* ) ;;
14826  *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
14827 ;;
14828esac
14829
14830fi
14831done
14832
14833
14834# set memory allocation checking if requested
14835# Check whether --enable-alloc-checks was given.
14836if test "${enable_alloc_checks+set}" = set; then :
14837  enableval=$enable_alloc_checks;
14838fi
14839
14840# Check whether --enable-alloc-lite was given.
14841if test "${enable_alloc_lite+set}" = set; then :
14842  enableval=$enable_alloc_lite;
14843fi
14844
14845# Check whether --enable-alloc-nonregional was given.
14846if test "${enable_alloc_nonregional+set}" = set; then :
14847  enableval=$enable_alloc_nonregional;
14848fi
14849
14850if test x_$enable_alloc_nonregional = x_yes; then
14851
14852$as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h
14853
14854fi
14855if test x_$enable_alloc_checks = x_yes; then
14856
14857$as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h
14858
14859else
14860	if test x_$enable_alloc_lite = x_yes; then
14861
14862$as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h
14863
14864	else
14865
14866	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
14867$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
14868	if test "$cross_compiling" = yes; then :
14869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5
14870$as_echo "no (crosscompile)" >&6; }
14871	case " $LIBOBJS " in
14872  *" malloc.$ac_objext "* ) ;;
14873  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
14874 ;;
14875esac
14876
14877
14878cat >>confdefs.h <<_ACEOF
14879#define malloc rpl_malloc_unbound
14880_ACEOF
14881
14882else
14883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14884/* end confdefs.h.  */
14885#if defined STDC_HEADERS || defined HAVE_STDLIB_H
14886#include <stdlib.h>
14887#else
14888char *malloc ();
14889#endif
14890
14891int
14892main ()
14893{
14894 if(malloc(0) != 0) return 1;
14895  ;
14896  return 0;
14897}
14898
14899_ACEOF
14900if ac_fn_c_try_run "$LINENO"; then :
14901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14902$as_echo "no" >&6; }
14903	case " $LIBOBJS " in
14904  *" malloc.$ac_objext "* ) ;;
14905  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
14906 ;;
14907esac
14908
14909
14910cat >>confdefs.h <<_ACEOF
14911#define malloc rpl_malloc_unbound
14912_ACEOF
14913
14914else
14915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14916$as_echo "yes" >&6; }
14917
14918$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
14919
14920fi
14921rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14922  conftest.$ac_objext conftest.beam conftest.$ac_ext
14923fi
14924
14925
14926	fi
14927fi
14928
14929# check windows threads (we use them, not pthreads, on windows).
14930if test "$on_mingw" = "yes"; then
14931# check windows threads
14932	for ac_header in windows.h
14933do :
14934  ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
14935"
14936if test "x$ac_cv_header_windows_h" = xyes; then :
14937  cat >>confdefs.h <<_ACEOF
14938#define HAVE_WINDOWS_H 1
14939_ACEOF
14940
14941fi
14942
14943done
14944
14945	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5
14946$as_echo_n "checking for CreateThread... " >&6; }
14947	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14948/* end confdefs.h.  */
14949
14950#ifdef HAVE_WINDOWS_H
14951#include <windows.h>
14952#endif
14953
14954int
14955main ()
14956{
14957
14958	HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
14959
14960  ;
14961  return 0;
14962}
14963_ACEOF
14964if ac_fn_c_try_compile "$LINENO"; then :
14965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14966$as_echo "yes" >&6; }
14967
14968$as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h
14969
14970
14971else
14972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14973$as_echo "no" >&6; }
14974
14975fi
14976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14977
14978else
14979# not on mingw, check thread libraries.
14980
14981# check for thread library.
14982# check this first, so that the pthread lib does not get linked in via
14983# libssl or libpython, and thus distorts the tests, and we end up using
14984# the non-threadsafe C libraries.
14985
14986# Check whether --with-pthreads was given.
14987if test "${with_pthreads+set}" = set; then :
14988  withval=$with_pthreads;
14989else
14990   withval="yes"
14991fi
14992
14993ub_have_pthreads=no
14994if test x_$withval != x_no; then
14995
14996
14997
14998ac_ext=c
14999ac_cpp='$CPP $CPPFLAGS'
15000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15002ac_compiler_gnu=$ac_cv_c_compiler_gnu
15003
15004acx_pthread_ok=no
15005
15006# We used to check for pthread.h first, but this fails if pthread.h
15007# requires special compiler flags (e.g. on True64 or Sequent).
15008# It gets checked for in the link test anyway.
15009
15010# First of all, check if the user has set any of the PTHREAD_LIBS,
15011# etcetera environment variables, and if threads linking works using
15012# them:
15013if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15014        save_CFLAGS="$CFLAGS"
15015        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15016        save_LIBS="$LIBS"
15017        LIBS="$PTHREAD_LIBS $LIBS"
15018        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15019$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15020        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15021/* end confdefs.h.  */
15022
15023/* Override any GCC internal prototype to avoid an error.
15024   Use char because int might match the return type of a GCC
15025   builtin and then its argument prototype would still apply.  */
15026#ifdef __cplusplus
15027extern "C"
15028#endif
15029char pthread_join ();
15030int
15031main ()
15032{
15033return pthread_join ();
15034  ;
15035  return 0;
15036}
15037_ACEOF
15038if ac_fn_c_try_link "$LINENO"; then :
15039  acx_pthread_ok=yes
15040fi
15041rm -f core conftest.err conftest.$ac_objext \
15042    conftest$ac_exeext conftest.$ac_ext
15043        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15044$as_echo "$acx_pthread_ok" >&6; }
15045        if test x"$acx_pthread_ok" = xno; then
15046                PTHREAD_LIBS=""
15047                PTHREAD_CFLAGS=""
15048        fi
15049        LIBS="$save_LIBS"
15050        CFLAGS="$save_CFLAGS"
15051fi
15052
15053# We must check for the threads library under a number of different
15054# names; the ordering is very important because some systems
15055# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15056# libraries is broken (non-POSIX).
15057
15058# Create a list of thread flags to try.  Items starting with a "-" are
15059# C compiler flags, and other items are library names, except for "none"
15060# which indicates that we try without any flags at all, and "pthread-config"
15061# which is a program returning the flags for the Pth emulation library.
15062
15063acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15064
15065# The ordering *is* (sometimes) important.  Some notes on the
15066# individual items follow:
15067
15068# pthreads: AIX (must check this before -lpthread)
15069# none: in case threads are in libc; should be tried before -Kthread and
15070#       other compiler flags to prevent continual compiler warnings
15071# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15072# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15073# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15074# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15075# -pthreads: Solaris/gcc
15076# -mthreads: Mingw32/gcc, Lynx/gcc
15077# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15078#      doesn't hurt to check since this sometimes defines pthreads too;
15079#      also defines -D_REENTRANT)
15080#      ... -mt is also the pthreads flag for HP/aCC
15081# pthread: Linux, etcetera
15082# --thread-safe: KAI C++
15083# pthread-config: use pthread-config program (for GNU Pth library)
15084
15085case "${host_cpu}-${host_os}" in
15086        *solaris*)
15087
15088        # On Solaris (at least, for some versions), libc contains stubbed
15089        # (non-functional) versions of the pthreads routines, so link-based
15090        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
15091        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
15092        # a function called by this macro, so we could check for that, but
15093        # who knows whether they'll stub that too in a future libc.)  So,
15094        # we'll just look for -pthreads and -lpthread first:
15095
15096        acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
15097        ;;
15098esac
15099
15100if test x"$acx_pthread_ok" = xno; then
15101for flag in $acx_pthread_flags; do
15102
15103        case $flag in
15104                none)
15105                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15106$as_echo_n "checking whether pthreads work without any flags... " >&6; }
15107                ;;
15108
15109                -*)
15110                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15111$as_echo_n "checking whether pthreads work with $flag... " >&6; }
15112                PTHREAD_CFLAGS="$flag"
15113                ;;
15114
15115		pthread-config)
15116		# Extract the first word of "pthread-config", so it can be a program name with args.
15117set dummy pthread-config; ac_word=$2
15118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15119$as_echo_n "checking for $ac_word... " >&6; }
15120if ${ac_cv_prog_acx_pthread_config+:} false; then :
15121  $as_echo_n "(cached) " >&6
15122else
15123  if test -n "$acx_pthread_config"; then
15124  ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
15125else
15126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15127for as_dir in $PATH
15128do
15129  IFS=$as_save_IFS
15130  test -z "$as_dir" && as_dir=.
15131    for ac_exec_ext in '' $ac_executable_extensions; do
15132  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15133    ac_cv_prog_acx_pthread_config="yes"
15134    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15135    break 2
15136  fi
15137done
15138  done
15139IFS=$as_save_IFS
15140
15141  test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
15142fi
15143fi
15144acx_pthread_config=$ac_cv_prog_acx_pthread_config
15145if test -n "$acx_pthread_config"; then
15146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
15147$as_echo "$acx_pthread_config" >&6; }
15148else
15149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15150$as_echo "no" >&6; }
15151fi
15152
15153
15154		if test x"$acx_pthread_config" = xno; then continue; fi
15155		PTHREAD_CFLAGS="`pthread-config --cflags`"
15156		PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15157		;;
15158
15159                *)
15160                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15161$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15162                PTHREAD_LIBS="-l$flag"
15163                ;;
15164        esac
15165
15166        save_LIBS="$LIBS"
15167        save_CFLAGS="$CFLAGS"
15168        LIBS="$PTHREAD_LIBS $LIBS"
15169        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15170
15171        # Check for various functions.  We must include pthread.h,
15172        # since some functions may be macros.  (On the Sequent, we
15173        # need a special flag -Kthread to make this header compile.)
15174        # We check for pthread_join because it is in -lpthread on IRIX
15175        # while pthread_create is in libc.  We check for pthread_attr_init
15176        # due to DEC craziness with -lpthreads.  We check for
15177        # pthread_cleanup_push because it is one of the few pthread
15178        # functions on Solaris that doesn't have a non-functional libc stub.
15179        # We try pthread_create on general principles.
15180        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15181/* end confdefs.h.  */
15182#include <pthread.h>
15183int
15184main ()
15185{
15186pthread_t th; pthread_join(th, 0);
15187                     pthread_attr_init(0); pthread_cleanup_push(0, 0);
15188                     pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15189  ;
15190  return 0;
15191}
15192_ACEOF
15193if ac_fn_c_try_link "$LINENO"; then :
15194  acx_pthread_ok=yes
15195fi
15196rm -f core conftest.err conftest.$ac_objext \
15197    conftest$ac_exeext conftest.$ac_ext
15198
15199        LIBS="$save_LIBS"
15200        CFLAGS="$save_CFLAGS"
15201
15202        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15203$as_echo "$acx_pthread_ok" >&6; }
15204        if test "x$acx_pthread_ok" = xyes; then
15205                break;
15206        fi
15207
15208        PTHREAD_LIBS=""
15209        PTHREAD_CFLAGS=""
15210done
15211fi
15212
15213# Various other checks:
15214if test "x$acx_pthread_ok" = xyes; then
15215        save_LIBS="$LIBS"
15216        LIBS="$PTHREAD_LIBS $LIBS"
15217        save_CFLAGS="$CFLAGS"
15218        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15219
15220        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15221	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15222$as_echo_n "checking for joinable pthread attribute... " >&6; }
15223	attr_name=unknown
15224	for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15225	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15226/* end confdefs.h.  */
15227#include <pthread.h>
15228int
15229main ()
15230{
15231int attr=$attr; return attr;
15232  ;
15233  return 0;
15234}
15235_ACEOF
15236if ac_fn_c_try_link "$LINENO"; then :
15237  attr_name=$attr; break
15238fi
15239rm -f core conftest.err conftest.$ac_objext \
15240    conftest$ac_exeext conftest.$ac_ext
15241	done
15242        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15243$as_echo "$attr_name" >&6; }
15244        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15245
15246cat >>confdefs.h <<_ACEOF
15247#define PTHREAD_CREATE_JOINABLE $attr_name
15248_ACEOF
15249
15250        fi
15251
15252        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15253$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15254        flag=no
15255        case "${host_cpu}-${host_os}" in
15256            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
15257            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
15258        esac
15259        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15260$as_echo "${flag}" >&6; }
15261        if test "x$flag" != xno; then
15262            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15263        fi
15264
15265        LIBS="$save_LIBS"
15266        CFLAGS="$save_CFLAGS"
15267
15268        # More AIX lossage: must compile with xlc_r or cc_r
15269	if test x"$GCC" != xyes; then
15270          for ac_prog in xlc_r cc_r
15271do
15272  # Extract the first word of "$ac_prog", so it can be a program name with args.
15273set dummy $ac_prog; ac_word=$2
15274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15275$as_echo_n "checking for $ac_word... " >&6; }
15276if ${ac_cv_prog_PTHREAD_CC+:} false; then :
15277  $as_echo_n "(cached) " >&6
15278else
15279  if test -n "$PTHREAD_CC"; then
15280  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15281else
15282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15283for as_dir in $PATH
15284do
15285  IFS=$as_save_IFS
15286  test -z "$as_dir" && as_dir=.
15287    for ac_exec_ext in '' $ac_executable_extensions; do
15288  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15289    ac_cv_prog_PTHREAD_CC="$ac_prog"
15290    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15291    break 2
15292  fi
15293done
15294  done
15295IFS=$as_save_IFS
15296
15297fi
15298fi
15299PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15300if test -n "$PTHREAD_CC"; then
15301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15302$as_echo "$PTHREAD_CC" >&6; }
15303else
15304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15305$as_echo "no" >&6; }
15306fi
15307
15308
15309  test -n "$PTHREAD_CC" && break
15310done
15311test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
15312
15313        else
15314          PTHREAD_CC=$CC
15315	fi
15316else
15317        PTHREAD_CC="$CC"
15318fi
15319
15320
15321
15322
15323
15324# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15325if test x"$acx_pthread_ok" = xyes; then
15326
15327
15328$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15329
15330		LIBS="$PTHREAD_LIBS $LIBS"
15331		CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15332		CC="$PTHREAD_CC"
15333		ub_have_pthreads=yes
15334		ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h>
15335"
15336if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then :
15337
15338cat >>confdefs.h <<_ACEOF
15339#define HAVE_PTHREAD_SPINLOCK_T 1
15340_ACEOF
15341
15342
15343fi
15344ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
15345"
15346if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
15347
15348cat >>confdefs.h <<_ACEOF
15349#define HAVE_PTHREAD_RWLOCK_T 1
15350_ACEOF
15351
15352
15353fi
15354
15355
15356        :
15357else
15358        acx_pthread_ok=no
15359
15360fi
15361ac_ext=c
15362ac_cpp='$CPP $CPPFLAGS'
15363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15365ac_compiler_gnu=$ac_cv_c_compiler_gnu
15366
15367
15368fi
15369
15370# check solaris thread library
15371
15372# Check whether --with-solaris-threads was given.
15373if test "${with_solaris_threads+set}" = set; then :
15374  withval=$with_solaris_threads;
15375else
15376   withval="no"
15377fi
15378
15379ub_have_sol_threads=no
15380if test x_$withval != x_no; then
15381	if test x_$ub_have_pthreads != x_no; then
15382	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
15383$as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
15384	else
15385	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
15386$as_echo_n "checking for library containing thr_create... " >&6; }
15387if ${ac_cv_search_thr_create+:} false; then :
15388  $as_echo_n "(cached) " >&6
15389else
15390  ac_func_search_save_LIBS=$LIBS
15391cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15392/* end confdefs.h.  */
15393
15394/* Override any GCC internal prototype to avoid an error.
15395   Use char because int might match the return type of a GCC
15396   builtin and then its argument prototype would still apply.  */
15397#ifdef __cplusplus
15398extern "C"
15399#endif
15400char thr_create ();
15401int
15402main ()
15403{
15404return thr_create ();
15405  ;
15406  return 0;
15407}
15408_ACEOF
15409for ac_lib in '' thread; do
15410  if test -z "$ac_lib"; then
15411    ac_res="none required"
15412  else
15413    ac_res=-l$ac_lib
15414    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15415  fi
15416  if ac_fn_c_try_link "$LINENO"; then :
15417  ac_cv_search_thr_create=$ac_res
15418fi
15419rm -f core conftest.err conftest.$ac_objext \
15420    conftest$ac_exeext
15421  if ${ac_cv_search_thr_create+:} false; then :
15422  break
15423fi
15424done
15425if ${ac_cv_search_thr_create+:} false; then :
15426
15427else
15428  ac_cv_search_thr_create=no
15429fi
15430rm conftest.$ac_ext
15431LIBS=$ac_func_search_save_LIBS
15432fi
15433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
15434$as_echo "$ac_cv_search_thr_create" >&6; }
15435ac_res=$ac_cv_search_thr_create
15436if test "$ac_res" != no; then :
15437  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15438
15439
15440$as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h
15441
15442
15443
15444
15445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5
15446$as_echo_n "checking whether $CC supports -mt... " >&6; }
15447cache=`echo mt | sed 'y%.=/+-%___p_%'`
15448if eval \${cv_prog_cc_flag_$cache+:} false; then :
15449  $as_echo_n "(cached) " >&6
15450else
15451
15452echo 'void f(){}' >conftest.c
15453if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then
15454eval "cv_prog_cc_flag_$cache=yes"
15455else
15456eval "cv_prog_cc_flag_$cache=no"
15457fi
15458rm -f conftest conftest.o conftest.c
15459
15460fi
15461
15462if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
15463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15464$as_echo "yes" >&6; }
15465:
15466CFLAGS="$CFLAGS -mt"
15467else
15468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15469$as_echo "no" >&6; }
15470:
15471CFLAGS="$CFLAGS -D_REENTRANT"
15472fi
15473
15474		ub_have_sol_threads=yes
15475
15476else
15477
15478		as_fn_error $? "no solaris threads found." "$LINENO" 5
15479
15480fi
15481
15482	fi
15483fi
15484
15485fi # end of non-mingw check of thread libraries
15486
15487# Check for PyUnbound
15488
15489# Check whether --with-pyunbound was given.
15490if test "${with_pyunbound+set}" = set; then :
15491  withval=$with_pyunbound;
15492else
15493   withval="no"
15494fi
15495
15496
15497ub_test_python=no
15498ub_with_pyunbound=no
15499if test x_$withval != x_no; then
15500   ub_with_pyunbound=yes
15501   ub_test_python=yes
15502fi
15503
15504# Check for Python module
15505
15506# Check whether --with-pythonmodule was given.
15507if test "${with_pythonmodule+set}" = set; then :
15508  withval=$with_pythonmodule;
15509else
15510   withval="no"
15511fi
15512
15513
15514ub_with_pythonmod=no
15515if test x_$withval != x_no; then
15516   ub_with_pythonmod=yes
15517   ub_test_python=yes
15518fi
15519
15520# Check for Python & SWIG only on PyUnbound or PyModule
15521if test x_$ub_test_python != x_no; then
15522
15523   # Check for Python
15524   ub_have_python=no
15525   ac_save_LIBS="$LIBS"
15526        #
15527        # Allow the use of a (user set) custom python version
15528        #
15529
15530
15531        # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
15532set dummy python$PYTHON_VERSION; ac_word=$2
15533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15534$as_echo_n "checking for $ac_word... " >&6; }
15535if ${ac_cv_path_PYTHON+:} false; then :
15536  $as_echo_n "(cached) " >&6
15537else
15538  case $PYTHON in
15539  [\\/]* | ?:[\\/]*)
15540  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
15541  ;;
15542  *)
15543  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15544for as_dir in $PATH
15545do
15546  IFS=$as_save_IFS
15547  test -z "$as_dir" && as_dir=.
15548    for ac_exec_ext in '' $ac_executable_extensions; do
15549  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15550    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
15551    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15552    break 2
15553  fi
15554done
15555  done
15556IFS=$as_save_IFS
15557
15558  ;;
15559esac
15560fi
15561PYTHON=$ac_cv_path_PYTHON
15562if test -n "$PYTHON"; then
15563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
15564$as_echo "$PYTHON" >&6; }
15565else
15566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15567$as_echo "no" >&6; }
15568fi
15569
15570
15571        if test -z "$PYTHON"; then
15572           as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
15573           PYTHON_VERSION=""
15574        fi
15575
15576        if test -z "$PYTHON_VERSION"; then
15577		PYTHON_VERSION=`$PYTHON -c "import sys, string; \
15578			print string.split(sys.version)[0]"`
15579	fi
15580
15581        #
15582        # Check for a version of Python >= 2.1.0
15583        #
15584        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
15585$as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
15586        ac_supports_python_ver=`$PYTHON -c "import sys, string; \
15587                ver = string.split(sys.version)[0]; \
15588                print ver >= '2.1.0'"`
15589        if test "$ac_supports_python_ver" != "True"; then
15590                if test -z "$PYTHON_NOVERSIONCHECK"; then
15591                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15592$as_echo "no" >&6; }
15593                        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15594$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15595as_fn_error $? "
15596This version of the AC_PYTHON_DEVEL macro
15597doesn't work properly with versions of Python before
155982.1.0. You may need to re-run configure, setting the
15599variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
15600PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
15601Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
15602to something else than an empty string.
15603
15604See \`config.log' for more details" "$LINENO" 5; }
15605                else
15606                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
15607$as_echo "skip at user request" >&6; }
15608                fi
15609        else
15610                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15611$as_echo "yes" >&6; }
15612        fi
15613
15614        #
15615        # if the macro parameter ``version'' is set, honour it
15616        #
15617        if test -n ""; then
15618                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
15619$as_echo_n "checking for a version of Python ... " >&6; }
15620                ac_supports_python_ver=`$PYTHON -c "import sys, string; \
15621                        ver = string.split(sys.version)[0]; \
15622                        print ver "`
15623                if test "$ac_supports_python_ver" = "True"; then
15624                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15625$as_echo "yes" >&6; }
15626                else
15627                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15628$as_echo "no" >&6; }
15629                        as_fn_error $? "this package requires Python .
15630If you have it installed, but it isn't the default Python
15631interpreter in your system path, please pass the PYTHON_VERSION
15632variable to configure. See \`\`configure --help'' for reference.
15633" "$LINENO" 5
15634                        PYTHON_VERSION=""
15635                fi
15636        fi
15637
15638        #
15639        # Check if you have distutils, else fail
15640        #
15641        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
15642$as_echo_n "checking for the distutils Python package... " >&6; }
15643        ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
15644        if test -z "$ac_distutils_result"; then
15645                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15646$as_echo "yes" >&6; }
15647        else
15648                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15649$as_echo "no" >&6; }
15650                as_fn_error $? "cannot import Python module \"distutils\".
15651Please check your Python installation. The error was:
15652$ac_distutils_result" "$LINENO" 5
15653                PYTHON_VERSION=""
15654        fi
15655
15656        #
15657        # Check for Python include path
15658        #
15659        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
15660$as_echo_n "checking for Python include path... " >&6; }
15661        if test -z "$PYTHON_CPPFLAGS"; then
15662                python_path=`$PYTHON -c "import distutils.sysconfig; \
15663                        print distutils.sysconfig.get_python_inc();"`
15664                if test -n "${python_path}"; then
15665                        python_path="-I$python_path"
15666                fi
15667                PYTHON_CPPFLAGS=$python_path
15668        fi
15669        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
15670$as_echo "$PYTHON_CPPFLAGS" >&6; }
15671
15672
15673        #
15674        # Check for Python library path
15675        #
15676        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
15677$as_echo_n "checking for Python library path... " >&6; }
15678        if test -z "$PYTHON_LDFLAGS"; then
15679                # (makes two attempts to ensure we've got a version number
15680                # from the interpreter)
15681                py_version=`$PYTHON -c "from distutils.sysconfig import *; \
15682                        from string import join; \
15683                        print join(get_config_vars('VERSION'))"`
15684                if test "$py_version" = "None"; then
15685                        if test -n "$PYTHON_VERSION"; then
15686                                py_version=$PYTHON_VERSION
15687                        else
15688                                py_version=`$PYTHON -c "import sys; \
15689                                        print sys.version[:3]"`
15690                        fi
15691                fi
15692
15693                PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
15694                        from string import join; \
15695                        print '-L' + get_python_lib(0,1), \
15696                        '-L' + os.path.dirname(get_python_lib(0,1)), \
15697                        '-lpython';"`$py_version
15698        fi
15699        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
15700$as_echo "$PYTHON_LDFLAGS" >&6; }
15701
15702
15703        #
15704        # Check for site packages
15705        #
15706        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
15707$as_echo_n "checking for Python site-packages path... " >&6; }
15708        if test -z "$PYTHON_SITE_PKG"; then
15709                PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
15710                        print distutils.sysconfig.get_python_lib(1,0);"`
15711        fi
15712        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
15713$as_echo "$PYTHON_SITE_PKG" >&6; }
15714
15715
15716        #
15717        # libraries which must be linked in when embedding
15718        #
15719        { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
15720$as_echo_n "checking python extra libraries... " >&6; }
15721        if test -z "$PYTHON_EXTRA_LIBS"; then
15722           PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
15723                conf = distutils.sysconfig.get_config_var; \
15724                print conf('LOCALMODLIBS'), conf('LIBS')"`
15725        fi
15726        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
15727$as_echo "$PYTHON_EXTRA_LIBS" >&6; }
15728
15729
15730        #
15731        # linking flags needed when embedding
15732        #
15733        { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
15734$as_echo_n "checking python extra linking flags... " >&6; }
15735        if test -z "$PYTHON_EXTRA_LDFLAGS"; then
15736                PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
15737                        conf = distutils.sysconfig.get_config_var; \
15738                        print conf('LINKFORSHARED')"`
15739        fi
15740        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
15741$as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
15742
15743
15744        #
15745        # final check to see if everything compiles alright
15746        #
15747        { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
15748$as_echo_n "checking consistency of all components of python development environment... " >&6; }
15749        ac_ext=c
15750ac_cpp='$CPP $CPPFLAGS'
15751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15753ac_compiler_gnu=$ac_cv_c_compiler_gnu
15754
15755        # save current global flags
15756        ac_save_LIBS="$LIBS"
15757        ac_save_CPPFLAGS="$CPPFLAGS"
15758
15759        LIBS="$LIBS $PYTHON_LDFLAGS"
15760        CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
15761        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15762/* end confdefs.h.  */
15763
15764                #include <Python.h>
15765
15766int
15767main ()
15768{
15769
15770                Py_Initialize();
15771
15772  ;
15773  return 0;
15774}
15775_ACEOF
15776if ac_fn_c_try_link "$LINENO"; then :
15777  pythonexists=yes
15778else
15779  pythonexists=no
15780fi
15781rm -f core conftest.err conftest.$ac_objext \
15782    conftest$ac_exeext conftest.$ac_ext
15783
15784        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
15785$as_echo "$pythonexists" >&6; }
15786
15787        if test ! "$pythonexists" = "yes"; then
15788           as_fn_error $? "
15789  Could not link test program to Python. Maybe the main Python library has been
15790  installed in some non-standard library path. If so, pass it to configure,
15791  via the LDFLAGS environment variable.
15792  Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
15793  ============================================================================
15794   ERROR!
15795   You probably have to install the development version of the Python package
15796   for your distribution.  The exact name of this package varies among them.
15797  ============================================================================
15798           " "$LINENO" 5
15799          PYTHON_VERSION=""
15800        fi
15801        ac_ext=c
15802ac_cpp='$CPP $CPPFLAGS'
15803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15805ac_compiler_gnu=$ac_cv_c_compiler_gnu
15806
15807        # turn back to default flags
15808        CPPFLAGS="$ac_save_CPPFLAGS"
15809        LIBS="$ac_save_LIBS"
15810
15811        #
15812        # all done!
15813        #
15814
15815   if test ! -z "$PYTHON_VERSION"; then
15816	if test `$PYTHON -c "print '$PYTHON_VERSION' >= '2.4.0'"` = "False"; then
15817		as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5
15818	fi
15819
15820      # Have Python
15821
15822$as_echo "#define HAVE_PYTHON 1" >>confdefs.h
15823
15824      LIBS="$PYTHON_LDFLAGS $LIBS"
15825      CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
15826      ub_have_python=yes
15827
15828      # Check for SWIG
15829      ub_have_swig=no
15830
15831        # Extract the first word of "swig", so it can be a program name with args.
15832set dummy swig; ac_word=$2
15833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15834$as_echo_n "checking for $ac_word... " >&6; }
15835if ${ac_cv_path_SWIG+:} false; then :
15836  $as_echo_n "(cached) " >&6
15837else
15838  case $SWIG in
15839  [\\/]* | ?:[\\/]*)
15840  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
15841  ;;
15842  *)
15843  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15844for as_dir in $PATH
15845do
15846  IFS=$as_save_IFS
15847  test -z "$as_dir" && as_dir=.
15848    for ac_exec_ext in '' $ac_executable_extensions; do
15849  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15850    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
15851    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15852    break 2
15853  fi
15854done
15855  done
15856IFS=$as_save_IFS
15857
15858  ;;
15859esac
15860fi
15861SWIG=$ac_cv_path_SWIG
15862if test -n "$SWIG"; then
15863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
15864$as_echo "$SWIG" >&6; }
15865else
15866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15867$as_echo "no" >&6; }
15868fi
15869
15870
15871        if test -z "$SWIG" ; then
15872                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
15873$as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
15874                SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
15875        elif test -n "" ; then
15876                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
15877$as_echo_n "checking for SWIG version... " >&6; }
15878                swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
15879                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
15880$as_echo "$swig_version" >&6; }
15881                if test -n "$swig_version" ; then
15882                        # Calculate the required version number components
15883                        required=
15884                        required_major=`echo $required | sed 's/[^0-9].*//'`
15885                        if test -z "$required_major" ; then
15886                                required_major=0
15887                        fi
15888                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
15889                        required_minor=`echo $required | sed 's/[^0-9].*//'`
15890                        if test -z "$required_minor" ; then
15891                                required_minor=0
15892                        fi
15893                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
15894                        required_patch=`echo $required | sed 's/[^0-9].*//'`
15895                        if test -z "$required_patch" ; then
15896                                required_patch=0
15897                        fi
15898                        # Calculate the available version number components
15899                        available=$swig_version
15900                        available_major=`echo $available | sed 's/[^0-9].*//'`
15901                        if test -z "$available_major" ; then
15902                                available_major=0
15903                        fi
15904                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
15905                        available_minor=`echo $available | sed 's/[^0-9].*//'`
15906                        if test -z "$available_minor" ; then
15907                                available_minor=0
15908                        fi
15909                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
15910                        available_patch=`echo $available | sed 's/[^0-9].*//'`
15911                        if test -z "$available_patch" ; then
15912                                available_patch=0
15913                        fi
15914                        if test $available_major -ne $required_major \
15915                                -o $available_minor -ne $required_minor \
15916                                -o $available_patch -lt $required_patch ; then
15917                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >=  is required.  You have $swig_version.  You should look at http://www.swig.org" >&5
15918$as_echo "$as_me: WARNING: SWIG version >=  is required.  You have $swig_version.  You should look at http://www.swig.org" >&2;}
15919                                SWIG='echo "Error: SWIG version >=  is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
15920                        else
15921                                { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
15922$as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
15923                                SWIG_LIB=`$SWIG -swiglib`
15924                                { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
15925$as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
15926                        fi
15927                else
15928                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
15929$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
15930                        SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
15931                fi
15932        fi
15933
15934
15935      { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5
15936$as_echo_n "checking SWIG... " >&6; }
15937      if test ! -x "$SWIG"; then
15938         as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5
15939      else
15940
15941$as_echo "#define HAVE_SWIG 1" >>confdefs.h
15942
15943         swig="$SWIG"
15944
15945         { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5
15946$as_echo "present" >&6; }
15947
15948         # If have Python & SWIG
15949         # Declare PythonMod
15950         if test x_$ub_with_pythonmod != x_no; then
15951
15952$as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h
15953
15954            WITH_PYTHONMODULE=yes
15955
15956	    PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo"
15957
15958	    PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h'
15959
15960	    PYTHONMOD_INSTALL=pythonmod-install
15961
15962	    PYTHONMOD_UNINSTALL=pythonmod-uninstall
15963
15964         fi
15965
15966         # Declare PyUnbound
15967         if test x_$ub_with_pyunbound != x_no; then
15968
15969$as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h
15970
15971            WITH_PYUNBOUND=yes
15972
15973	    PYUNBOUND_OBJ="libunbound_wrap.lo"
15974
15975	    PYUNBOUND_TARGET="_unbound.la"
15976
15977	    PYUNBOUND_INSTALL=pyunbound-install
15978
15979	    PYUNBOUND_UNINSTALL=pyunbound-uninstall
15980
15981         fi
15982      fi
15983   else
15984      { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
15985$as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
15986      ub_with_pyunbound=no
15987      ub_with_pythonmod=no
15988   fi
15989fi
15990
15991if test "`uname`" = "NetBSD"; then
15992	NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
15993
15994fi
15995CONFIG_DATE=`date +%Y%m%d`
15996
15997
15998# Checks for libraries.
15999
16000# libnss
16001USE_NSS="no"
16002
16003# Check whether --with-nss was given.
16004if test "${with_nss+set}" = set; then :
16005  withval=$with_nss;
16006	USE_NSS="yes"
16007
16008$as_echo "#define HAVE_NSS 1" >>confdefs.h
16009
16010	if test "$withval" != "/usr" -a "$withval" != "" -a "$withval" != "yes"; then
16011		CPPFLAGS="$CPPFLAGS -I$withval/include"
16012		LDFLAGS="$LDFLAGS -L$withval/lib"
16013
16014	if test "x$enable_rpath" = xyes; then
16015		if echo "$withval/lib" | grep "^/" >/dev/null; then
16016			RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
16017		fi
16018	fi
16019
16020		CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
16021	else
16022		CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
16023	fi
16024        LIBS="$LIBS -lnss3 -lnspr4"
16025
16026
16027fi
16028
16029
16030# openssl
16031if test $USE_NSS = "no"; then
16032
16033
16034# Check whether --with-ssl was given.
16035if test "${with_ssl+set}" = set; then :
16036  withval=$with_ssl;
16037
16038else
16039
16040            withval="yes"
16041
16042fi
16043
16044    if test x_$withval = x_no; then
16045	as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5
16046    fi
16047
16048    withval=$withval
16049    if test x_$withval != x_no; then
16050        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
16051$as_echo_n "checking for SSL... " >&6; }
16052        if test x_$withval = x_ -o x_$withval = x_yes; then
16053            withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
16054        fi
16055        for dir in $withval; do
16056            ssldir="$dir"
16057            if test -f "$dir/include/openssl/ssl.h"; then
16058                found_ssl="yes"
16059
16060cat >>confdefs.h <<_ACEOF
16061#define HAVE_SSL /**/
16062_ACEOF
16063
16064                                if test "$ssldir" != "/usr"; then
16065                        CPPFLAGS="$CPPFLAGS -I$ssldir/include"
16066                        LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
16067                fi
16068                break;
16069            fi
16070        done
16071        if test x_$found_ssl != x_yes; then
16072            as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
16073        else
16074            { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
16075$as_echo "found in $ssldir" >&6; }
16076            HAVE_SSL=yes
16077                        if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
16078                LDFLAGS="$LDFLAGS -L$ssldir/lib"
16079                LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
16080
16081	if test "x$enable_rpath" = xyes; then
16082		if echo "$ssldir/lib" | grep "^/" >/dev/null; then
16083			RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
16084		fi
16085	fi
16086
16087            fi
16088
16089            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5
16090$as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
16091            LIBS="$LIBS -lcrypto"
16092            LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
16093            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16094/* end confdefs.h.  */
16095
16096int
16097main ()
16098{
16099
16100                int HMAC_CTX_init(void);
16101                (void)HMAC_CTX_init();
16102
16103  ;
16104  return 0;
16105}
16106_ACEOF
16107if ac_fn_c_try_link "$LINENO"; then :
16108
16109                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16110$as_echo "yes" >&6; }
16111
16112$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16113
16114
16115else
16116
16117                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16118$as_echo "no" >&6; }
16119                # check if -lwsock32 or -lgdi32 are needed.
16120                BAKLIBS="$LIBS"
16121                BAKSSLLIBS="$LIBSSL_LIBS"
16122                LIBS="$LIBS -lgdi32"
16123                LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32"
16124                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
16125$as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
16126                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16127/* end confdefs.h.  */
16128
16129int
16130main ()
16131{
16132
16133                    int HMAC_CTX_init(void);
16134                    (void)HMAC_CTX_init();
16135
16136  ;
16137  return 0;
16138}
16139_ACEOF
16140if ac_fn_c_try_link "$LINENO"; then :
16141
16142
16143$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16144
16145                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16146$as_echo "yes" >&6; }
16147
16148else
16149
16150                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16151$as_echo "no" >&6; }
16152                    LIBS="$BAKLIBS"
16153                    LIBSSL_LIBS="$BAKSSLLIBS"
16154                    LIBS="$LIBS -ldl"
16155                    LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
16156                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
16157$as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
16158                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16159/* end confdefs.h.  */
16160
16161int
16162main ()
16163{
16164
16165                        int HMAC_CTX_init(void);
16166                        (void)HMAC_CTX_init();
16167
16168  ;
16169  return 0;
16170}
16171_ACEOF
16172if ac_fn_c_try_link "$LINENO"; then :
16173
16174
16175$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16176
16177                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16178$as_echo "yes" >&6; }
16179
16180else
16181
16182                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16183$as_echo "no" >&6; }
16184                    as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
16185
16186fi
16187rm -f core conftest.err conftest.$ac_objext \
16188    conftest$ac_exeext conftest.$ac_ext
16189
16190fi
16191rm -f core conftest.err conftest.$ac_objext \
16192    conftest$ac_exeext conftest.$ac_ext
16193
16194fi
16195rm -f core conftest.err conftest.$ac_objext \
16196    conftest$ac_exeext conftest.$ac_ext
16197        fi
16198
16199
16200	# openssl engine functionality needs dlopen().
16201	BAKLIBS="$LIBS"
16202	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16203$as_echo_n "checking for library containing dlopen... " >&6; }
16204if ${ac_cv_search_dlopen+:} false; then :
16205  $as_echo_n "(cached) " >&6
16206else
16207  ac_func_search_save_LIBS=$LIBS
16208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16209/* end confdefs.h.  */
16210
16211/* Override any GCC internal prototype to avoid an error.
16212   Use char because int might match the return type of a GCC
16213   builtin and then its argument prototype would still apply.  */
16214#ifdef __cplusplus
16215extern "C"
16216#endif
16217char dlopen ();
16218int
16219main ()
16220{
16221return dlopen ();
16222  ;
16223  return 0;
16224}
16225_ACEOF
16226for ac_lib in '' dl; do
16227  if test -z "$ac_lib"; then
16228    ac_res="none required"
16229  else
16230    ac_res=-l$ac_lib
16231    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16232  fi
16233  if ac_fn_c_try_link "$LINENO"; then :
16234  ac_cv_search_dlopen=$ac_res
16235fi
16236rm -f core conftest.err conftest.$ac_objext \
16237    conftest$ac_exeext
16238  if ${ac_cv_search_dlopen+:} false; then :
16239  break
16240fi
16241done
16242if ${ac_cv_search_dlopen+:} false; then :
16243
16244else
16245  ac_cv_search_dlopen=no
16246fi
16247rm conftest.$ac_ext
16248LIBS=$ac_func_search_save_LIBS
16249fi
16250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16251$as_echo "$ac_cv_search_dlopen" >&6; }
16252ac_res=$ac_cv_search_dlopen
16253if test "$ac_res" != no; then :
16254  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16255
16256fi
16257
16258	if test "$LIBS" != "$BAKLIBS"; then
16259		LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
16260	fi
16261    fi
16262for ac_header in openssl/ssl.h
16263do :
16264  ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
16265"
16266if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
16267  cat >>confdefs.h <<_ACEOF
16268#define HAVE_OPENSSL_SSL_H 1
16269_ACEOF
16270
16271fi
16272
16273done
16274
16275for ac_header in openssl/err.h
16276do :
16277  ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
16278"
16279if test "x$ac_cv_header_openssl_err_h" = xyes; then :
16280  cat >>confdefs.h <<_ACEOF
16281#define HAVE_OPENSSL_ERR_H 1
16282_ACEOF
16283
16284fi
16285
16286done
16287
16288for ac_header in openssl/rand.h
16289do :
16290  ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
16291"
16292if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
16293  cat >>confdefs.h <<_ACEOF
16294#define HAVE_OPENSSL_RAND_H 1
16295_ACEOF
16296
16297fi
16298
16299done
16300
16301
16302
16303
16304# check if libssl needs libdl
16305BAKLIBS="$LIBS"
16306LIBS="-lssl $LIBS"
16307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
16308$as_echo_n "checking if libssl needs libdl... " >&6; }
16309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16310/* end confdefs.h.  */
16311
16312/* Override any GCC internal prototype to avoid an error.
16313   Use char because int might match the return type of a GCC
16314   builtin and then its argument prototype would still apply.  */
16315#ifdef __cplusplus
16316extern "C"
16317#endif
16318char SSL_CTX_new ();
16319int
16320main ()
16321{
16322return SSL_CTX_new ();
16323  ;
16324  return 0;
16325}
16326_ACEOF
16327if ac_fn_c_try_link "$LINENO"; then :
16328
16329	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16330$as_echo "no" >&6; }
16331	LIBS="$BAKLIBS"
16332
16333else
16334
16335	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16336$as_echo "yes" >&6; }
16337	LIBS="$BAKLIBS"
16338	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16339$as_echo_n "checking for library containing dlopen... " >&6; }
16340if ${ac_cv_search_dlopen+:} false; then :
16341  $as_echo_n "(cached) " >&6
16342else
16343  ac_func_search_save_LIBS=$LIBS
16344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16345/* end confdefs.h.  */
16346
16347/* Override any GCC internal prototype to avoid an error.
16348   Use char because int might match the return type of a GCC
16349   builtin and then its argument prototype would still apply.  */
16350#ifdef __cplusplus
16351extern "C"
16352#endif
16353char dlopen ();
16354int
16355main ()
16356{
16357return dlopen ();
16358  ;
16359  return 0;
16360}
16361_ACEOF
16362for ac_lib in '' dl; do
16363  if test -z "$ac_lib"; then
16364    ac_res="none required"
16365  else
16366    ac_res=-l$ac_lib
16367    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16368  fi
16369  if ac_fn_c_try_link "$LINENO"; then :
16370  ac_cv_search_dlopen=$ac_res
16371fi
16372rm -f core conftest.err conftest.$ac_objext \
16373    conftest$ac_exeext
16374  if ${ac_cv_search_dlopen+:} false; then :
16375  break
16376fi
16377done
16378if ${ac_cv_search_dlopen+:} false; then :
16379
16380else
16381  ac_cv_search_dlopen=no
16382fi
16383rm conftest.$ac_ext
16384LIBS=$ac_func_search_save_LIBS
16385fi
16386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16387$as_echo "$ac_cv_search_dlopen" >&6; }
16388ac_res=$ac_cv_search_dlopen
16389if test "$ac_res" != no; then :
16390  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16391
16392fi
16393
16394
16395fi
16396rm -f core conftest.err conftest.$ac_objext \
16397    conftest$ac_exeext conftest.$ac_ext
16398for ac_header in openssl/conf.h
16399do :
16400  ac_fn_c_check_header_compile "$LINENO" "openssl/conf.h" "ac_cv_header_openssl_conf_h" "$ac_includes_default
16401"
16402if test "x$ac_cv_header_openssl_conf_h" = xyes; then :
16403  cat >>confdefs.h <<_ACEOF
16404#define HAVE_OPENSSL_CONF_H 1
16405_ACEOF
16406
16407fi
16408
16409done
16410
16411for ac_header in openssl/engine.h
16412do :
16413  ac_fn_c_check_header_compile "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default
16414"
16415if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
16416  cat >>confdefs.h <<_ACEOF
16417#define HAVE_OPENSSL_ENGINE_H 1
16418_ACEOF
16419
16420fi
16421
16422done
16423
16424for ac_func in OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode
16425do :
16426  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16427ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16428if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16429  cat >>confdefs.h <<_ACEOF
16430#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16431_ACEOF
16432
16433fi
16434done
16435
16436ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" "
16437$ac_includes_default
16438#ifdef HAVE_OPENSSL_ERR_H
16439#include <openssl/err.h>
16440#endif
16441
16442#ifdef HAVE_OPENSSL_RAND_H
16443#include <openssl/rand.h>
16444#endif
16445
16446#ifdef HAVE_OPENSSL_CONF_H
16447#include <openssl/conf.h>
16448#endif
16449
16450#ifdef HAVE_OPENSSL_ENGINE_H
16451#include <openssl/engine.h>
16452#endif
16453#include <openssl/ssl.h>
16454#include <openssl/evp.h>
16455
16456"
16457if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then :
16458  ac_have_decl=1
16459else
16460  ac_have_decl=0
16461fi
16462
16463cat >>confdefs.h <<_ACEOF
16464#define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl
16465_ACEOF
16466ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" "
16467$ac_includes_default
16468#ifdef HAVE_OPENSSL_ERR_H
16469#include <openssl/err.h>
16470#endif
16471
16472#ifdef HAVE_OPENSSL_RAND_H
16473#include <openssl/rand.h>
16474#endif
16475
16476#ifdef HAVE_OPENSSL_CONF_H
16477#include <openssl/conf.h>
16478#endif
16479
16480#ifdef HAVE_OPENSSL_ENGINE_H
16481#include <openssl/engine.h>
16482#endif
16483#include <openssl/ssl.h>
16484#include <openssl/evp.h>
16485
16486"
16487if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then :
16488  ac_have_decl=1
16489else
16490  ac_have_decl=0
16491fi
16492
16493cat >>confdefs.h <<_ACEOF
16494#define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl
16495_ACEOF
16496
16497fi
16498
16499
16500# Check whether --enable-sha2 was given.
16501if test "${enable_sha2+set}" = set; then :
16502  enableval=$enable_sha2;
16503fi
16504
16505case "$enable_sha2" in
16506	no)
16507	;;
16508	yes|*)
16509
16510$as_echo "#define USE_SHA2 1" >>confdefs.h
16511
16512	;;
16513esac
16514
16515# check wether gost also works
16516
16517# Check whether --enable-gost was given.
16518if test "${enable_gost+set}" = set; then :
16519  enableval=$enable_gost;
16520fi
16521
16522use_gost="no"
16523if test $USE_NSS = "no"; then
16524case "$enable_gost" in
16525	no)
16526	;;
16527	*)
16528	ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
16529if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
16530  :
16531else
16532  as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
16533fi
16534
16535	ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
16536if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
16537
16538else
16539  as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
16540fi
16541
16542
16543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
16544$as_echo_n "checking if GOST works... " >&6; }
16545if test c${cross_compiling} = cno; then
16546BAKCFLAGS="$CFLAGS"
16547if test -n "$ssldir"; then
16548	CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib"
16549fi
16550if test "$cross_compiling" = yes; then :
16551  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16552$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16553as_fn_error $? "cannot run test program while cross compiling
16554See \`config.log' for more details" "$LINENO" 5; }
16555else
16556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16557/* end confdefs.h.  */
16558
16559#include <string.h>
16560#include <openssl/ssl.h>
16561#include <openssl/evp.h>
16562#include <openssl/engine.h>
16563#include <openssl/conf.h>
16564/* routine to load gost from ldns */
16565int load_gost_id(void)
16566{
16567	static int gost_id = 0;
16568	const EVP_PKEY_ASN1_METHOD* meth;
16569	ENGINE* e;
16570
16571	if(gost_id) return gost_id;
16572
16573	/* see if configuration loaded gost implementation from other engine*/
16574	meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
16575	if(meth) {
16576		EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
16577		return gost_id;
16578	}
16579
16580	/* see if engine can be loaded already */
16581	e = ENGINE_by_id("gost");
16582	if(!e) {
16583		/* load it ourself, in case statically linked */
16584		ENGINE_load_builtin_engines();
16585		ENGINE_load_dynamic();
16586		e = ENGINE_by_id("gost");
16587	}
16588	if(!e) {
16589		/* no gost engine in openssl */
16590		return 0;
16591	}
16592	if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
16593		ENGINE_finish(e);
16594		ENGINE_free(e);
16595		return 0;
16596	}
16597
16598	meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
16599	if(!meth) {
16600		/* algo not found */
16601		ENGINE_finish(e);
16602		ENGINE_free(e);
16603		return 0;
16604	}
16605	EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
16606	return gost_id;
16607}
16608int main(void) {
16609	EVP_MD_CTX* ctx;
16610	const EVP_MD* md;
16611	unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
16612	const char* str = "Hello world";
16613	const unsigned char check[] = {
16614		0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
16615		0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
16616		0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
16617		0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
16618	};
16619	OPENSSL_config(NULL);
16620	(void)load_gost_id();
16621	md = EVP_get_digestbyname("md_gost94");
16622	if(!md) return 1;
16623	memset(digest, 0, sizeof(digest));
16624	ctx = EVP_MD_CTX_create();
16625	if(!ctx) return 2;
16626	if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
16627	if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
16628	if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
16629	/* uncomment to see the hash calculated.
16630		{int i;
16631		for(i=0; i<32; i++)
16632			printf(" %2.2x", (int)digest[i]);
16633		printf("\n");}
16634	*/
16635	if(memcmp(digest, check, sizeof(check)) != 0)
16636		return 6;
16637	return 0;
16638}
16639
16640_ACEOF
16641if ac_fn_c_try_run "$LINENO"; then :
16642  eval "ac_cv_c_gost_works=yes"
16643else
16644  eval "ac_cv_c_gost_works=no"
16645fi
16646rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16647  conftest.$ac_objext conftest.beam conftest.$ac_ext
16648fi
16649
16650CFLAGS="$BAKCFLAGS"
16651else
16652eval "ac_cv_c_gost_works=maybe"
16653fi
16654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5
16655$as_echo "$ac_cv_c_gost_works" >&6; }
16656
16657	if test "$ac_cv_c_gost_works" != no; then
16658		use_gost="yes"
16659
16660$as_echo "#define USE_GOST 1" >>confdefs.h
16661
16662	fi
16663	;;
16664esac
16665fi
16666# Check whether --enable-ecdsa was given.
16667if test "${enable_ecdsa+set}" = set; then :
16668  enableval=$enable_ecdsa;
16669fi
16670
16671use_ecdsa="no"
16672case "$enable_ecdsa" in
16673    no)
16674      ;;
16675    *)
16676      if test $USE_NSS = "no"; then
16677	      ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
16678if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
16679
16680else
16681  as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
16682fi
16683
16684	      ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
16685if test "x$ac_cv_func_SHA384_Init" = xyes; then :
16686
16687else
16688  as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
16689fi
16690
16691	      ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
16692#include <openssl/evp.h>
16693
16694"
16695if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
16696  ac_have_decl=1
16697else
16698  ac_have_decl=0
16699fi
16700
16701cat >>confdefs.h <<_ACEOF
16702#define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
16703_ACEOF
16704if test $ac_have_decl = 1; then :
16705
16706else
16707  as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
16708fi
16709ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
16710#include <openssl/evp.h>
16711
16712"
16713if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
16714  ac_have_decl=1
16715else
16716  ac_have_decl=0
16717fi
16718
16719cat >>confdefs.h <<_ACEOF
16720#define HAVE_DECL_NID_SECP384R1 $ac_have_decl
16721_ACEOF
16722if test $ac_have_decl = 1; then :
16723
16724else
16725  as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
16726fi
16727
16728	      # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
16729	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
16730$as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
16731	      if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then
16732		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16733$as_echo "no" >&6; }
16734
16735cat >>confdefs.h <<_ACEOF
16736#define USE_ECDSA_EVP_WORKAROUND 1
16737_ACEOF
16738
16739	      else
16740		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16741$as_echo "yes" >&6; }
16742	      fi
16743      fi
16744      # we now know we have ECDSA and the required curves.
16745
16746cat >>confdefs.h <<_ACEOF
16747#define USE_ECDSA 1
16748_ACEOF
16749
16750      use_ecdsa="yes"
16751      ;;
16752esac
16753
16754# check for libevent
16755
16756# Check whether --with-libevent was given.
16757if test "${with_libevent+set}" = set; then :
16758  withval=$with_libevent;
16759else
16760   withval="no"
16761fi
16762
16763if test x_$withval = x_yes -o x_$withval != x_no; then
16764        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
16765$as_echo_n "checking for libevent... " >&6; }
16766        if test x_$withval = x_ -o x_$withval = x_yes; then
16767            withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
16768        fi
16769        for dir in $withval; do
16770            thedir="$dir"
16771            if test -f "$dir/include/event.h"; then
16772                found_libevent="yes"
16773				if test "$thedir" != "/usr"; then
16774                    CPPFLAGS="$CPPFLAGS -I$thedir/include"
16775		fi
16776                break;
16777            fi
16778        done
16779        if test x_$found_libevent != x_yes; then
16780		if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
16781			# libevent source directory
16782            		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
16783$as_echo "found in $thedir" >&6; }
16784                	CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
16785			BAK_LDFLAGS_SET="1"
16786			BAK_LDFLAGS="$LDFLAGS"
16787			# remove evdns from linking
16788			mkdir build >/dev/null 2>&1
16789			mkdir build/libevent >/dev/null 2>&1
16790			mkdir build/libevent/.libs >/dev/null 2>&1
16791			ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
16792			ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
16793			ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
16794			cp $ev_files_o build/libevent
16795			cp $ev_files_lo build/libevent
16796			cp $ev_files_libso build/libevent/.libs
16797            		LATE_LDFLAGS="build/libevent/*.lo -lm"
16798			LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
16799		else
16800            		as_fn_error $? "Cannot find the libevent library in $withval
16801You can restart ./configure --with-libevent=no to use a builtin alternative.
16802Please note that this alternative is not as capable as libevent when using
16803large outgoing port ranges.  " "$LINENO" 5
16804		fi
16805        else
16806            { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
16807$as_echo "found in $thedir" >&6; }
16808	    	    if test "$thedir" != "/usr" -a "$thedir" != ""; then
16809                LDFLAGS="$LDFLAGS -L$thedir/lib"
16810
16811	if test "x$enable_rpath" = xyes; then
16812		if echo "$thedir/lib" | grep "^/" >/dev/null; then
16813			RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
16814		fi
16815	fi
16816
16817	    fi
16818        fi
16819	# check for library used by libevent after 1.3c
16820	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
16821$as_echo_n "checking for library containing clock_gettime... " >&6; }
16822if ${ac_cv_search_clock_gettime+:} false; then :
16823  $as_echo_n "(cached) " >&6
16824else
16825  ac_func_search_save_LIBS=$LIBS
16826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16827/* end confdefs.h.  */
16828
16829/* Override any GCC internal prototype to avoid an error.
16830   Use char because int might match the return type of a GCC
16831   builtin and then its argument prototype would still apply.  */
16832#ifdef __cplusplus
16833extern "C"
16834#endif
16835char clock_gettime ();
16836int
16837main ()
16838{
16839return clock_gettime ();
16840  ;
16841  return 0;
16842}
16843_ACEOF
16844for ac_lib in '' rt; do
16845  if test -z "$ac_lib"; then
16846    ac_res="none required"
16847  else
16848    ac_res=-l$ac_lib
16849    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16850  fi
16851  if ac_fn_c_try_link "$LINENO"; then :
16852  ac_cv_search_clock_gettime=$ac_res
16853fi
16854rm -f core conftest.err conftest.$ac_objext \
16855    conftest$ac_exeext
16856  if ${ac_cv_search_clock_gettime+:} false; then :
16857  break
16858fi
16859done
16860if ${ac_cv_search_clock_gettime+:} false; then :
16861
16862else
16863  ac_cv_search_clock_gettime=no
16864fi
16865rm conftest.$ac_ext
16866LIBS=$ac_func_search_save_LIBS
16867fi
16868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
16869$as_echo "$ac_cv_search_clock_gettime" >&6; }
16870ac_res=$ac_cv_search_clock_gettime
16871if test "$ac_res" != no; then :
16872  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16873
16874fi
16875
16876
16877	# is the event.h header libev or libevent?
16878	for ac_header in event.h
16879do :
16880  ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
16881"
16882if test "x$ac_cv_header_event_h" = xyes; then :
16883  cat >>confdefs.h <<_ACEOF
16884#define HAVE_EVENT_H 1
16885_ACEOF
16886
16887fi
16888
16889done
16890
16891	ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
16892#include <event.h>
16893
16894"
16895if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then :
16896
16897		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
16898$as_echo_n "checking for library containing event_set... " >&6; }
16899if ${ac_cv_search_event_set+:} false; then :
16900  $as_echo_n "(cached) " >&6
16901else
16902  ac_func_search_save_LIBS=$LIBS
16903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16904/* end confdefs.h.  */
16905
16906/* Override any GCC internal prototype to avoid an error.
16907   Use char because int might match the return type of a GCC
16908   builtin and then its argument prototype would still apply.  */
16909#ifdef __cplusplus
16910extern "C"
16911#endif
16912char event_set ();
16913int
16914main ()
16915{
16916return event_set ();
16917  ;
16918  return 0;
16919}
16920_ACEOF
16921for ac_lib in '' ev; do
16922  if test -z "$ac_lib"; then
16923    ac_res="none required"
16924  else
16925    ac_res=-l$ac_lib
16926    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16927  fi
16928  if ac_fn_c_try_link "$LINENO"; then :
16929  ac_cv_search_event_set=$ac_res
16930fi
16931rm -f core conftest.err conftest.$ac_objext \
16932    conftest$ac_exeext
16933  if ${ac_cv_search_event_set+:} false; then :
16934  break
16935fi
16936done
16937if ${ac_cv_search_event_set+:} false; then :
16938
16939else
16940  ac_cv_search_event_set=no
16941fi
16942rm conftest.$ac_ext
16943LIBS=$ac_func_search_save_LIBS
16944fi
16945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
16946$as_echo "$ac_cv_search_event_set" >&6; }
16947ac_res=$ac_cv_search_event_set
16948if test "$ac_res" != no; then :
16949  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16950
16951fi
16952
16953
16954else
16955
16956		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
16957$as_echo_n "checking for library containing event_set... " >&6; }
16958if ${ac_cv_search_event_set+:} false; then :
16959  $as_echo_n "(cached) " >&6
16960else
16961  ac_func_search_save_LIBS=$LIBS
16962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16963/* end confdefs.h.  */
16964
16965/* Override any GCC internal prototype to avoid an error.
16966   Use char because int might match the return type of a GCC
16967   builtin and then its argument prototype would still apply.  */
16968#ifdef __cplusplus
16969extern "C"
16970#endif
16971char event_set ();
16972int
16973main ()
16974{
16975return event_set ();
16976  ;
16977  return 0;
16978}
16979_ACEOF
16980for ac_lib in '' event; do
16981  if test -z "$ac_lib"; then
16982    ac_res="none required"
16983  else
16984    ac_res=-l$ac_lib
16985    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16986  fi
16987  if ac_fn_c_try_link "$LINENO"; then :
16988  ac_cv_search_event_set=$ac_res
16989fi
16990rm -f core conftest.err conftest.$ac_objext \
16991    conftest$ac_exeext
16992  if ${ac_cv_search_event_set+:} false; then :
16993  break
16994fi
16995done
16996if ${ac_cv_search_event_set+:} false; then :
16997
16998else
16999  ac_cv_search_event_set=no
17000fi
17001rm conftest.$ac_ext
17002LIBS=$ac_func_search_save_LIBS
17003fi
17004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
17005$as_echo "$ac_cv_search_event_set" >&6; }
17006ac_res=$ac_cv_search_event_set
17007if test "$ac_res" != no; then :
17008  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17009
17010fi
17011
17012
17013fi
17014
17015	for ac_func in event_base_free
17016do :
17017  ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
17018if test "x$ac_cv_func_event_base_free" = xyes; then :
17019  cat >>confdefs.h <<_ACEOF
17020#define HAVE_EVENT_BASE_FREE 1
17021_ACEOF
17022
17023fi
17024done
17025 # only in libevent 1.2 and later
17026	for ac_func in event_base_once
17027do :
17028  ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
17029if test "x$ac_cv_func_event_base_once" = xyes; then :
17030  cat >>confdefs.h <<_ACEOF
17031#define HAVE_EVENT_BASE_ONCE 1
17032_ACEOF
17033
17034fi
17035done
17036 # only in libevent 1.4.1 and later
17037	for ac_func in event_base_new
17038do :
17039  ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
17040if test "x$ac_cv_func_event_base_new" = xyes; then :
17041  cat >>confdefs.h <<_ACEOF
17042#define HAVE_EVENT_BASE_NEW 1
17043_ACEOF
17044
17045fi
17046done
17047 # only in libevent 1.4.1 and later
17048	for ac_func in event_base_get_method
17049do :
17050  ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
17051if test "x$ac_cv_func_event_base_get_method" = xyes; then :
17052  cat >>confdefs.h <<_ACEOF
17053#define HAVE_EVENT_BASE_GET_METHOD 1
17054_ACEOF
17055
17056fi
17057done
17058 # only in libevent 1.4.3 and later
17059	for ac_func in ev_loop
17060do :
17061  ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
17062if test "x$ac_cv_func_ev_loop" = xyes; then :
17063  cat >>confdefs.h <<_ACEOF
17064#define HAVE_EV_LOOP 1
17065_ACEOF
17066
17067fi
17068done
17069 # only in libev. (tested on 3.51)
17070	for ac_func in ev_default_loop
17071do :
17072  ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
17073if test "x$ac_cv_func_ev_default_loop" = xyes; then :
17074  cat >>confdefs.h <<_ACEOF
17075#define HAVE_EV_DEFAULT_LOOP 1
17076_ACEOF
17077
17078fi
17079done
17080 # only in libev. (tested on 4.00)
17081	if test -n "$BAK_LDFLAGS_SET"; then
17082		LDFLAGS="$BAK_LDFLAGS"
17083	fi
17084else
17085
17086$as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
17087
17088fi
17089
17090# check for libexpat
17091
17092# Check whether --with-libexpat was given.
17093if test "${with_libexpat+set}" = set; then :
17094  withval=$with_libexpat;
17095else
17096   withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
17097fi
17098
17099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
17100$as_echo_n "checking for libexpat... " >&6; }
17101found_libexpat="no"
17102for dir in $withval ; do
17103            if test -f "$dir/include/expat.h"; then
17104		found_libexpat="yes"
17105				if test "$dir" != "/usr"; then
17106                    CPPFLAGS="$CPPFLAGS -I$dir/include"
17107		    LDFLAGS="$LDFLAGS -L$dir/lib"
17108		fi
17109            	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
17110$as_echo "found in $dir" >&6; }
17111                break;
17112            fi
17113done
17114if test x_$found_libexpat != x_yes; then
17115	as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5
17116fi
17117for ac_header in expat.h
17118do :
17119  ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default
17120"
17121if test "x$ac_cv_header_expat_h" = xyes; then :
17122  cat >>confdefs.h <<_ACEOF
17123#define HAVE_EXPAT_H 1
17124_ACEOF
17125
17126fi
17127
17128done
17129
17130
17131# set static linking if requested
17132
17133staticexe=""
17134# Check whether --enable-static-exe was given.
17135if test "${enable_static_exe+set}" = set; then :
17136  enableval=$enable_static_exe;
17137fi
17138
17139if test x_$enable_static_exe = x_yes; then
17140	staticexe="-static"
17141	if test "$on_mingw" = yes; then
17142		staticexe="-all-static"
17143		# for static crosscompile, include gdi32 and zlib here.
17144		if test "`uname`" = "Linux"; then
17145			LIBS="$LIBS -lgdi32 -lz"
17146		fi
17147	fi
17148fi
17149
17150# set lock checking if requested
17151# Check whether --enable-lock_checks was given.
17152if test "${enable_lock_checks+set}" = set; then :
17153  enableval=$enable_lock_checks;
17154fi
17155
17156if test x_$enable_lock_checks = x_yes; then
17157
17158$as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h
17159
17160	CHECKLOCK_OBJ="checklocks.lo"
17161
17162fi
17163
17164
17165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
17166$as_echo_n "checking for getaddrinfo... " >&6; }
17167ac_cv_func_getaddrinfo=no
17168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17169/* end confdefs.h.  */
17170
17171#ifdef __cplusplus
17172extern "C"
17173{
17174#endif
17175char* getaddrinfo();
17176char* (*f) () = getaddrinfo;
17177#ifdef __cplusplus
17178}
17179#endif
17180int main() {
17181        ;
17182        return 0;
17183}
17184
17185_ACEOF
17186if ac_fn_c_try_link "$LINENO"; then :
17187  ac_cv_func_getaddrinfo="yes"
17188if test "$ac_cv_header_windows_h" = "yes"; then
17189
17190$as_echo "#define USE_WINSOCK 1" >>confdefs.h
17191
17192	USE_WINSOCK="1"
17193	LIBS="$LIBS -lws2_32"
17194fi
17195
17196else
17197  ORIGLIBS="$LIBS"
17198LIBS="$LIBS -lws2_32"
17199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17200/* end confdefs.h.  */
17201
17202#ifdef HAVE_WS2TCPIP_H
17203#include <ws2tcpip.h>
17204#endif
17205
17206int
17207main ()
17208{
17209
17210        (void)getaddrinfo(NULL, NULL, NULL, NULL);
17211
17212
17213  ;
17214  return 0;
17215}
17216_ACEOF
17217if ac_fn_c_try_link "$LINENO"; then :
17218
17219ac_cv_func_getaddrinfo="yes"
17220
17221$as_echo "#define USE_WINSOCK 1" >>confdefs.h
17222
17223USE_WINSOCK="1"
17224
17225else
17226
17227ac_cv_func_getaddrinfo="no"
17228LIBS="$ORIGLIBS"
17229
17230fi
17231rm -f core conftest.err conftest.$ac_objext \
17232    conftest$ac_exeext conftest.$ac_ext
17233
17234fi
17235rm -f core conftest.err conftest.$ac_objext \
17236    conftest$ac_exeext conftest.$ac_ext
17237
17238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
17239$as_echo "$ac_cv_func_getaddrinfo" >&6; }
17240if test $ac_cv_func_getaddrinfo = yes; then
17241
17242$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
17243
17244fi
17245
17246if test "$USE_WINSOCK" = 1; then
17247
17248$as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h
17249
17250	for ac_header in iphlpapi.h
17251do :
17252  ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default
17253#include <windows.h>
17254
17255"
17256if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
17257  cat >>confdefs.h <<_ACEOF
17258#define HAVE_IPHLPAPI_H 1
17259_ACEOF
17260
17261fi
17262
17263done
17264
17265	if test -n "$ac_tool_prefix"; then
17266  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
17267set dummy ${ac_tool_prefix}windres; ac_word=$2
17268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17269$as_echo_n "checking for $ac_word... " >&6; }
17270if ${ac_cv_prog_WINDRES+:} false; then :
17271  $as_echo_n "(cached) " >&6
17272else
17273  if test -n "$WINDRES"; then
17274  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
17275else
17276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17277for as_dir in $PATH
17278do
17279  IFS=$as_save_IFS
17280  test -z "$as_dir" && as_dir=.
17281    for ac_exec_ext in '' $ac_executable_extensions; do
17282  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17283    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
17284    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17285    break 2
17286  fi
17287done
17288  done
17289IFS=$as_save_IFS
17290
17291fi
17292fi
17293WINDRES=$ac_cv_prog_WINDRES
17294if test -n "$WINDRES"; then
17295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
17296$as_echo "$WINDRES" >&6; }
17297else
17298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17299$as_echo "no" >&6; }
17300fi
17301
17302
17303fi
17304if test -z "$ac_cv_prog_WINDRES"; then
17305  ac_ct_WINDRES=$WINDRES
17306  # Extract the first word of "windres", so it can be a program name with args.
17307set dummy windres; ac_word=$2
17308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17309$as_echo_n "checking for $ac_word... " >&6; }
17310if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
17311  $as_echo_n "(cached) " >&6
17312else
17313  if test -n "$ac_ct_WINDRES"; then
17314  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
17315else
17316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17317for as_dir in $PATH
17318do
17319  IFS=$as_save_IFS
17320  test -z "$as_dir" && as_dir=.
17321    for ac_exec_ext in '' $ac_executable_extensions; do
17322  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17323    ac_cv_prog_ac_ct_WINDRES="windres"
17324    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17325    break 2
17326  fi
17327done
17328  done
17329IFS=$as_save_IFS
17330
17331fi
17332fi
17333ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
17334if test -n "$ac_ct_WINDRES"; then
17335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
17336$as_echo "$ac_ct_WINDRES" >&6; }
17337else
17338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17339$as_echo "no" >&6; }
17340fi
17341
17342  if test "x$ac_ct_WINDRES" = x; then
17343    WINDRES=""
17344  else
17345    case $cross_compiling:$ac_tool_warned in
17346yes:)
17347{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17348$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17349ac_tool_warned=yes ;;
17350esac
17351    WINDRES=$ac_ct_WINDRES
17352  fi
17353else
17354  WINDRES="$ac_cv_prog_WINDRES"
17355fi
17356
17357	LIBS="$LIBS -liphlpapi"
17358	WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
17359
17360	WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c"
17361
17362	WIN_DAEMON_OBJ="win_svc.lo w_inst.lo"
17363
17364	WIN_DAEMON_OBJ_LINK="rsrc_unbound.o"
17365
17366	WIN_HOST_OBJ_LINK="rsrc_unbound_host.o"
17367
17368	WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo"
17369
17370	WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o"
17371
17372	WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o"
17373
17374fi
17375if test $ac_cv_func_getaddrinfo = no; then
17376	case " $LIBOBJS " in
17377  *" fake-rfc2553.$ac_objext "* ) ;;
17378  *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
17379 ;;
17380esac
17381
17382fi
17383# check after getaddrinfo for its libraries
17384
17385# check ioctlsocket
17386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
17387$as_echo_n "checking for ioctlsocket... " >&6; }
17388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17389/* end confdefs.h.  */
17390
17391#ifdef HAVE_WINSOCK2_H
17392#include <winsock2.h>
17393#endif
17394
17395int
17396main ()
17397{
17398
17399	(void)ioctlsocket(0, 0, NULL);
17400
17401  ;
17402  return 0;
17403}
17404_ACEOF
17405if ac_fn_c_try_link "$LINENO"; then :
17406
17407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17408$as_echo "yes" >&6; }
17409
17410$as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
17411
17412
17413else
17414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17415$as_echo "no" >&6; }
17416fi
17417rm -f core conftest.err conftest.$ac_objext \
17418    conftest$ac_exeext conftest.$ac_ext
17419
17420
17421# see if daemon(3) exists, and if it is deprecated.
17422for ac_func in daemon
17423do :
17424  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
17425if test "x$ac_cv_func_daemon" = xyes; then :
17426  cat >>confdefs.h <<_ACEOF
17427#define HAVE_DAEMON 1
17428_ACEOF
17429
17430fi
17431done
17432
17433if test $ac_cv_func_daemon = yes; then
17434
17435
17436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5
17437$as_echo_n "checking if daemon is deprecated... " >&6; }
17438cache=`echo daemon | sed 'y%.=/+-%___p_%'`
17439if eval \${cv_cc_deprecated_$cache+:} false; then :
17440  $as_echo_n "(cached) " >&6
17441else
17442
17443echo '
17444#include <stdlib.h>
17445' >conftest.c
17446echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c
17447if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then
17448eval "cv_cc_deprecated_$cache=no"
17449else
17450eval "cv_cc_deprecated_$cache=yes"
17451fi
17452rm -f conftest conftest.o conftest.c
17453
17454fi
17455
17456if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
17457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17458$as_echo "yes" >&6; }
17459
17460cat >>confdefs.h <<_ACEOF
17461#define DEPRECATED_DAEMON 1
17462_ACEOF
17463
17464:
17465
17466else
17467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17468$as_echo "no" >&6; }
17469:
17470
17471fi
17472
17473fi
17474
17475ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "
17476$ac_includes_default
17477#if HAVE_SYS_PARAM_H
17478#include <sys/param.h>
17479#endif
17480
17481#ifdef HAVE_SYS_SOCKET_H
17482#include <sys/socket.h>
17483#endif
17484
17485#ifdef HAVE_SYS_UIO_H
17486#include <sys/uio.h>
17487#endif
17488
17489#ifdef HAVE_NETINET_IN_H
17490#include <netinet/in.h>
17491#endif
17492
17493#ifdef HAVE_ARPA_INET_H
17494#include <arpa/inet.h>
17495#endif
17496
17497#ifdef HAVE_WINSOCK2_H
17498#include <winsock2.h>
17499#endif
17500
17501#ifdef HAVE_WS2TCPIP_H
17502#include <ws2tcpip.h>
17503#endif
17504
17505"
17506if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then :
17507
17508cat >>confdefs.h <<_ACEOF
17509#define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1
17510_ACEOF
17511
17512
17513fi
17514
17515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
17516$as_echo_n "checking for library containing setusercontext... " >&6; }
17517if ${ac_cv_search_setusercontext+:} false; then :
17518  $as_echo_n "(cached) " >&6
17519else
17520  ac_func_search_save_LIBS=$LIBS
17521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17522/* end confdefs.h.  */
17523
17524/* Override any GCC internal prototype to avoid an error.
17525   Use char because int might match the return type of a GCC
17526   builtin and then its argument prototype would still apply.  */
17527#ifdef __cplusplus
17528extern "C"
17529#endif
17530char setusercontext ();
17531int
17532main ()
17533{
17534return setusercontext ();
17535  ;
17536  return 0;
17537}
17538_ACEOF
17539for ac_lib in '' util; do
17540  if test -z "$ac_lib"; then
17541    ac_res="none required"
17542  else
17543    ac_res=-l$ac_lib
17544    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17545  fi
17546  if ac_fn_c_try_link "$LINENO"; then :
17547  ac_cv_search_setusercontext=$ac_res
17548fi
17549rm -f core conftest.err conftest.$ac_objext \
17550    conftest$ac_exeext
17551  if ${ac_cv_search_setusercontext+:} false; then :
17552  break
17553fi
17554done
17555if ${ac_cv_search_setusercontext+:} false; then :
17556
17557else
17558  ac_cv_search_setusercontext=no
17559fi
17560rm conftest.$ac_ext
17561LIBS=$ac_func_search_save_LIBS
17562fi
17563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
17564$as_echo "$ac_cv_search_setusercontext" >&6; }
17565ac_res=$ac_cv_search_setusercontext
17566if test "$ac_res" != no; then :
17567  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17568
17569fi
17570
17571for ac_func in tzset sigprocmask fcntl getpwnam getrlimit setrlimit setsid sbrk chroot kill sleep usleep random srandom recvmsg sendmsg writev socketpair glob initgroups strftime localtime_r setusercontext _beginthreadex
17572do :
17573  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17574ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17575if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17576  cat >>confdefs.h <<_ACEOF
17577#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17578_ACEOF
17579
17580fi
17581done
17582
17583for ac_func in setresuid
17584do :
17585  ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
17586if test "x$ac_cv_func_setresuid" = xyes; then :
17587  cat >>confdefs.h <<_ACEOF
17588#define HAVE_SETRESUID 1
17589_ACEOF
17590
17591else
17592  for ac_func in setreuid
17593do :
17594  ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
17595if test "x$ac_cv_func_setreuid" = xyes; then :
17596  cat >>confdefs.h <<_ACEOF
17597#define HAVE_SETREUID 1
17598_ACEOF
17599
17600fi
17601done
17602
17603fi
17604done
17605
17606for ac_func in setresgid
17607do :
17608  ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
17609if test "x$ac_cv_func_setresgid" = xyes; then :
17610  cat >>confdefs.h <<_ACEOF
17611#define HAVE_SETRESGID 1
17612_ACEOF
17613
17614else
17615  for ac_func in setregid
17616do :
17617  ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
17618if test "x$ac_cv_func_setregid" = xyes; then :
17619  cat >>confdefs.h <<_ACEOF
17620#define HAVE_SETREGID 1
17621_ACEOF
17622
17623fi
17624done
17625
17626fi
17627done
17628
17629
17630# check if setreuid en setregid fail, on MacOSX10.4(darwin8).
17631if echo $build_os | grep darwin8 > /dev/null; then
17632
17633$as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
17634
17635fi
17636ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
17637if test "x$ac_cv_func_inet_aton" = xyes; then :
17638  $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
17639
17640else
17641  case " $LIBOBJS " in
17642  *" inet_aton.$ac_objext "* ) ;;
17643  *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
17644 ;;
17645esac
17646
17647fi
17648
17649
17650ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
17651if test "x$ac_cv_func_inet_pton" = xyes; then :
17652  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
17653
17654else
17655  case " $LIBOBJS " in
17656  *" inet_pton.$ac_objext "* ) ;;
17657  *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
17658 ;;
17659esac
17660
17661fi
17662
17663
17664ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
17665if test "x$ac_cv_func_inet_ntop" = xyes; then :
17666  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
17667
17668else
17669  case " $LIBOBJS " in
17670  *" inet_ntop.$ac_objext "* ) ;;
17671  *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
17672 ;;
17673esac
17674
17675fi
17676
17677
17678ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
17679if test "x$ac_cv_func_snprintf" = xyes; then :
17680  $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
17681
17682else
17683  case " $LIBOBJS " in
17684  *" snprintf.$ac_objext "* ) ;;
17685  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
17686 ;;
17687esac
17688
17689fi
17690
17691
17692ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
17693if test "x$ac_cv_func_strlcpy" = xyes; then :
17694  $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
17695
17696else
17697  case " $LIBOBJS " in
17698  *" strlcpy.$ac_objext "* ) ;;
17699  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
17700 ;;
17701esac
17702
17703fi
17704
17705
17706ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
17707if test "x$ac_cv_func_memmove" = xyes; then :
17708  $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
17709
17710else
17711  case " $LIBOBJS " in
17712  *" memmove.$ac_objext "* ) ;;
17713  *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
17714 ;;
17715esac
17716
17717fi
17718
17719
17720ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
17721if test "x$ac_cv_func_gmtime_r" = xyes; then :
17722  $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
17723
17724else
17725  case " $LIBOBJS " in
17726  *" gmtime_r.$ac_objext "* ) ;;
17727  *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
17728 ;;
17729esac
17730
17731fi
17732
17733
17734LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
17735
17736ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
17737if test "x$ac_cv_func_ctime_r" = xyes; then :
17738  $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
17739
17740else
17741  case " $LIBOBJS " in
17742  *" ctime_r.$ac_objext "* ) ;;
17743  *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
17744 ;;
17745esac
17746
17747fi
17748
17749
17750
17751# Check whether --enable-allsymbols was given.
17752if test "${enable_allsymbols+set}" = set; then :
17753  enableval=$enable_allsymbols;
17754fi
17755
17756case "$enable_allsymbols" in
17757	yes)
17758	COMMON_OBJ_ALL_SYMBOLS=""
17759	UBSYMS=""
17760	EXTRALINK="-L. -L.libs -lunbound"
17761
17762$as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h
17763
17764	;;
17765	no|*)
17766	COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)'
17767	UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def'
17768	EXTRALINK=""
17769	;;
17770esac
17771
17772
17773
17774if test x_$enable_lock_checks = x_yes; then
17775	UBSYMS="-export-symbols clubsyms.def"
17776	cp ${srcdir}/libunbound/ubsyms.def clubsyms.def
17777	echo lock_protect >> clubsyms.def
17778	echo lock_unprotect >> clubsyms.def
17779	echo lock_get_mem >> clubsyms.def
17780	echo checklock_start >> clubsyms.def
17781	echo checklock_stop >> clubsyms.def
17782	echo checklock_lock >> clubsyms.def
17783	echo checklock_unlock >> clubsyms.def
17784	echo checklock_init >> clubsyms.def
17785	echo checklock_thrcreate >> clubsyms.def
17786	echo checklock_thrjoin >> clubsyms.def
17787fi
17788
17789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5
17790$as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; }
17791# on openBSD, the implicit rule make $< work.
17792# on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
17793# gmake works.
17794cat >conftest.make <<EOF
17795all:	conftest.lo
17796
17797conftest.lo foo.lo bla.lo:
17798	if test -f "\$<"; then touch \$@; fi
17799
17800.SUFFIXES: .lo
17801.c.lo:
17802	if test -f "\$<"; then touch \$@; fi
17803
17804conftest.lo:        conftest.dir/conftest.c
17805EOF
17806mkdir conftest.dir
17807touch conftest.dir/conftest.c
17808rm -f conftest.lo conftest.c
17809${MAKE:-make} -f conftest.make >/dev/null
17810rm -f conftest.make conftest.c conftest.dir/conftest.c
17811rm -rf conftest.dir
17812if test ! -f conftest.lo; then
17813	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17814$as_echo "no" >&6; }
17815	SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source'
17816	SOURCEFILE='`cat .source`'
17817else
17818	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17819$as_echo "yes" >&6; }
17820	SOURCEDETERMINE=':'
17821	SOURCEFILE='$<'
17822fi
17823rm -f conftest.lo
17824
17825
17826
17827# see if we want to build the library or everything
17828ALLTARGET="alltargets"
17829
17830# Check whether --with-libunbound-only was given.
17831if test "${with_libunbound_only+set}" = set; then :
17832  withval=$with_libunbound_only;
17833	if test "$withval" = "yes"; then
17834		ALLTARGET="lib"
17835	fi
17836
17837fi
17838
17839
17840
17841# check this after all other compilation checks, since the linking of the lib
17842# may break checks after this.
17843
17844# Check whether --with-ldns was given.
17845if test "${with_ldns+set}" = set; then :
17846  withval=$with_ldns;
17847	if test "$withval" != "yes"; then
17848		if test "$withval" != "/usr" -a "$withval" != ""; then
17849			CPPFLAGS="-I$withval/include $CPPFLAGS"
17850			LDFLAGS="-L$withval/lib $LDFLAGS"
17851
17852	if test "x$enable_rpath" = xyes; then
17853		if echo "$withval/lib" | grep "^/" >/dev/null; then
17854			RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
17855		fi
17856	fi
17857
17858		fi
17859		ldnsdir="$withval"
17860
17861	fi
17862
17863fi
17864
17865
17866# check if ldns is good enough
17867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns_rr_new in -lldns" >&5
17868$as_echo_n "checking for ldns_rr_new in -lldns... " >&6; }
17869if ${ac_cv_lib_ldns_ldns_rr_new+:} false; then :
17870  $as_echo_n "(cached) " >&6
17871else
17872  ac_check_lib_save_LIBS=$LIBS
17873LIBS="-lldns  $LIBS"
17874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17875/* end confdefs.h.  */
17876
17877/* Override any GCC internal prototype to avoid an error.
17878   Use char because int might match the return type of a GCC
17879   builtin and then its argument prototype would still apply.  */
17880#ifdef __cplusplus
17881extern "C"
17882#endif
17883char ldns_rr_new ();
17884int
17885main ()
17886{
17887return ldns_rr_new ();
17888  ;
17889  return 0;
17890}
17891_ACEOF
17892if ac_fn_c_try_link "$LINENO"; then :
17893  ac_cv_lib_ldns_ldns_rr_new=yes
17894else
17895  ac_cv_lib_ldns_ldns_rr_new=no
17896fi
17897rm -f core conftest.err conftest.$ac_objext \
17898    conftest$ac_exeext conftest.$ac_ext
17899LIBS=$ac_check_lib_save_LIBS
17900fi
17901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldns_ldns_rr_new" >&5
17902$as_echo "$ac_cv_lib_ldns_ldns_rr_new" >&6; }
17903if test "x$ac_cv_lib_ldns_ldns_rr_new" = xyes; then :
17904  cat >>confdefs.h <<_ACEOF
17905#define HAVE_LIBLDNS 1
17906_ACEOF
17907
17908  LIBS="-lldns $LIBS"
17909
17910else
17911
17912	as_fn_error $? "No ldns library found, install the ldns library into system lib dir or use --with-ldns=path to other location.  The --with-ldns can point to the make-dir of ldns.  Install the package ldns or download source http://www.nlnetlabs.nl/projects/ldns" "$LINENO" 5
17913
17914fi
17915
17916ac_fn_c_check_func "$LINENO" "ldns_buffer_copy" "ac_cv_func_ldns_buffer_copy"
17917if test "x$ac_cv_func_ldns_buffer_copy" = xyes; then :
17918
17919fi
17920
17921if test $USE_NSS = "no"; then
17922    ac_fn_c_check_func "$LINENO" "ldns_key_buf2rsa_raw" "ac_cv_func_ldns_key_buf2rsa_raw"
17923if test "x$ac_cv_func_ldns_key_buf2rsa_raw" = xyes; then :
17924
17925fi
17926
17927else
17928        ac_cv_func_ldns_key_buf2rsa_raw="yes"
17929fi
17930ac_fn_c_check_func "$LINENO" "ldns_get_random" "ac_cv_func_ldns_get_random"
17931if test "x$ac_cv_func_ldns_get_random" = xyes; then :
17932
17933fi
17934
17935ac_fn_c_check_func "$LINENO" "ldns_b32_ntop_extended_hex" "ac_cv_func_ldns_b32_ntop_extended_hex"
17936if test "x$ac_cv_func_ldns_b32_ntop_extended_hex" = xyes; then :
17937
17938fi
17939
17940if test x$use_gost = xyes -a x$USE_NSS = xno; then
17941    ac_fn_c_check_func "$LINENO" "ldns_key_EVP_load_gost_id" "ac_cv_func_ldns_key_EVP_load_gost_id"
17942if test "x$ac_cv_func_ldns_key_EVP_load_gost_id" = xyes; then :
17943
17944fi
17945
17946    for ac_func in ldns_key_EVP_unload_gost
17947do :
17948  ac_fn_c_check_func "$LINENO" "ldns_key_EVP_unload_gost" "ac_cv_func_ldns_key_EVP_unload_gost"
17949if test "x$ac_cv_func_ldns_key_EVP_unload_gost" = xyes; then :
17950  cat >>confdefs.h <<_ACEOF
17951#define HAVE_LDNS_KEY_EVP_UNLOAD_GOST 1
17952_ACEOF
17953
17954fi
17955done
17956
17957else
17958        ac_cv_func_ldns_key_EVP_load_gost_id="yes"
17959fi
17960if test x$use_ecdsa = xyes; then
17961    ac_fn_c_check_decl "$LINENO" "LDNS_ECDSAP384SHA384" "ac_cv_have_decl_LDNS_ECDSAP384SHA384" "
17962$ac_includes_default
17963#ifdef HAVE_SYS_SOCKET_H
17964#  include <sys/socket.h>
17965#endif
17966#ifdef HAVE_WS2TCPIP_H
17967#  include <ws2tcpip.h>
17968#endif
17969#include <ldns/ldns.h>
17970
17971"
17972if test "x$ac_cv_have_decl_LDNS_ECDSAP384SHA384" = xyes; then :
17973
17974fi
17975
17976else
17977    ac_cv_have_decl_LDNS_ECDSAP384SHA384="yes"
17978fi
17979for ac_header in ldns/ldns.h
17980do :
17981  ac_fn_c_check_header_compile "$LINENO" "ldns/ldns.h" "ac_cv_header_ldns_ldns_h" "$ac_includes_default
17982#ifdef HAVE_SYS_SOCKET_H
17983#include <sys/socket.h>
17984#endif
17985
17986#ifdef HAVE_NETINET_IN_H
17987#include <netinet/in.h>
17988#endif
17989
17990#ifdef HAVE_ARPA_INET_H
17991#include <arpa/inet.h>
17992#endif
17993
17994#ifdef HAVE_WINSOCK2_H
17995#include <winsock2.h>
17996#endif
17997
17998#ifdef HAVE_WS2TCPIP_H
17999#include <ws2tcpip.h>
18000#endif
18001
18002"
18003if test "x$ac_cv_header_ldns_ldns_h" = xyes; then :
18004  cat >>confdefs.h <<_ACEOF
18005#define HAVE_LDNS_LDNS_H 1
18006_ACEOF
18007
18008else
18009
18010	as_fn_error $? "No ldns include file found, install the ldns library development files.  Install package ldns-dev or ldns-devel or download source http://www.nlnetlabs.nl/projects/ldns" "$LINENO" 5
18011
18012fi
18013
18014done
18015
18016if test $ac_cv_func_ldns_buffer_copy = yes \
18017    -a $ac_cv_func_ldns_key_buf2rsa_raw = yes \
18018    -a $ac_cv_func_ldns_get_random = yes \
18019    -a $ac_cv_header_ldns_ldns_h = yes \
18020    -a $ac_cv_func_ldns_b32_ntop_extended_hex = yes \
18021    -a $ac_cv_func_ldns_key_EVP_load_gost_id = yes \
18022    -a $ac_cv_have_decl_LDNS_ECDSAP384SHA384 = yes; then
18023        :
18024else
18025    as_fn_error $? "ldns library is not recent, update the ldns library, install it into system lib dir or use --with-ldns=path to other location.  The --with-ldns can point to the make-dir of ldns.  Package libldns or download source http://www.nlnetlabs.nl/projects/ldns" "$LINENO" 5
18026fi
18027
18028
18029  { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5
18030$as_echo "$as_me: Stripping extension flags..." >&6;}
18031
18032  if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then
18033    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
18034
18035$as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h
18036
18037  fi
18038
18039
18040  if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then
18041    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`"
18042
18043$as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h
18044
18045  fi
18046
18047
18048  if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then
18049    CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`"
18050
18051$as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h
18052
18053  fi
18054
18055
18056  if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then
18057    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`"
18058
18059$as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h
18060
18061  fi
18062
18063
18064  if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then
18065    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`"
18066
18067$as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h
18068
18069  fi
18070
18071
18072  if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then
18073    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`"
18074
18075$as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h
18076
18077  fi
18078
18079
18080  if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then
18081    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`"
18082
18083$as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h
18084
18085  fi
18086
18087
18088  if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then
18089    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`"
18090
18091$as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
18092
18093  fi
18094
18095
18096LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
18097
18098
18099cat >>confdefs.h <<_ACEOF
18100#define MAXSYSLOGMSGLEN 10240
18101_ACEOF
18102
18103
18104
18105
18106ac_config_files="$ac_config_files Makefile doc/example.conf doc/libunbound.3 doc/unbound.8 doc/unbound-anchor.8 doc/unbound-checkconf.8 doc/unbound.conf.5 doc/unbound-control.8"
18107
18108ac_config_headers="$ac_config_headers config.h"
18109
18110cat >confcache <<\_ACEOF
18111# This file is a shell script that caches the results of configure
18112# tests run on this system so they can be shared between configure
18113# scripts and configure runs, see configure's option --config-cache.
18114# It is not useful on other systems.  If it contains results you don't
18115# want to keep, you may remove or edit it.
18116#
18117# config.status only pays attention to the cache file if you give it
18118# the --recheck option to rerun configure.
18119#
18120# `ac_cv_env_foo' variables (set or unset) will be overridden when
18121# loading this file, other *unset* `ac_cv_foo' will be assigned the
18122# following values.
18123
18124_ACEOF
18125
18126# The following way of writing the cache mishandles newlines in values,
18127# but we know of no workaround that is simple, portable, and efficient.
18128# So, we kill variables containing newlines.
18129# Ultrix sh set writes to stderr and can't be redirected directly,
18130# and sets the high bit in the cache file unless we assign to the vars.
18131(
18132  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18133    eval ac_val=\$$ac_var
18134    case $ac_val in #(
18135    *${as_nl}*)
18136      case $ac_var in #(
18137      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18138$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18139      esac
18140      case $ac_var in #(
18141      _ | IFS | as_nl) ;; #(
18142      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18143      *) { eval $ac_var=; unset $ac_var;} ;;
18144      esac ;;
18145    esac
18146  done
18147
18148  (set) 2>&1 |
18149    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18150    *${as_nl}ac_space=\ *)
18151      # `set' does not quote correctly, so add quotes: double-quote
18152      # substitution turns \\\\ into \\, and sed turns \\ into \.
18153      sed -n \
18154	"s/'/'\\\\''/g;
18155	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18156      ;; #(
18157    *)
18158      # `set' quotes correctly as required by POSIX, so do not add quotes.
18159      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18160      ;;
18161    esac |
18162    sort
18163) |
18164  sed '
18165     /^ac_cv_env_/b end
18166     t clear
18167     :clear
18168     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18169     t end
18170     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18171     :end' >>confcache
18172if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18173  if test -w "$cache_file"; then
18174    if test "x$cache_file" != "x/dev/null"; then
18175      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18176$as_echo "$as_me: updating cache $cache_file" >&6;}
18177      if test ! -f "$cache_file" || test -h "$cache_file"; then
18178	cat confcache >"$cache_file"
18179      else
18180        case $cache_file in #(
18181        */* | ?:*)
18182	  mv -f confcache "$cache_file"$$ &&
18183	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18184        *)
18185	  mv -f confcache "$cache_file" ;;
18186	esac
18187      fi
18188    fi
18189  else
18190    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18191$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18192  fi
18193fi
18194rm -f confcache
18195
18196test "x$prefix" = xNONE && prefix=$ac_default_prefix
18197# Let make expand exec_prefix.
18198test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18199
18200DEFS=-DHAVE_CONFIG_H
18201
18202ac_libobjs=
18203ac_ltlibobjs=
18204U=
18205for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18206  # 1. Remove the extension, and $U if already installed.
18207  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18208  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18209  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18210  #    will be set to the directory where LIBOBJS objects are built.
18211  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18212  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18213done
18214LIBOBJS=$ac_libobjs
18215
18216LTLIBOBJS=$ac_ltlibobjs
18217
18218
18219
18220: "${CONFIG_STATUS=./config.status}"
18221ac_write_fail=0
18222ac_clean_files_save=$ac_clean_files
18223ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18224{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18225$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18226as_write_fail=0
18227cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18228#! $SHELL
18229# Generated by $as_me.
18230# Run this file to recreate the current configuration.
18231# Compiler output produced by configure, useful for debugging
18232# configure, is in config.log if it exists.
18233
18234debug=false
18235ac_cs_recheck=false
18236ac_cs_silent=false
18237
18238SHELL=\${CONFIG_SHELL-$SHELL}
18239export SHELL
18240_ASEOF
18241cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18242## -------------------- ##
18243## M4sh Initialization. ##
18244## -------------------- ##
18245
18246# Be more Bourne compatible
18247DUALCASE=1; export DUALCASE # for MKS sh
18248if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18249  emulate sh
18250  NULLCMD=:
18251  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18252  # is contrary to our usage.  Disable this feature.
18253  alias -g '${1+"$@"}'='"$@"'
18254  setopt NO_GLOB_SUBST
18255else
18256  case `(set -o) 2>/dev/null` in #(
18257  *posix*) :
18258    set -o posix ;; #(
18259  *) :
18260     ;;
18261esac
18262fi
18263
18264
18265as_nl='
18266'
18267export as_nl
18268# Printing a long string crashes Solaris 7 /usr/bin/printf.
18269as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18270as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18271as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18272# Prefer a ksh shell builtin over an external printf program on Solaris,
18273# but without wasting forks for bash or zsh.
18274if test -z "$BASH_VERSION$ZSH_VERSION" \
18275    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18276  as_echo='print -r --'
18277  as_echo_n='print -rn --'
18278elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18279  as_echo='printf %s\n'
18280  as_echo_n='printf %s'
18281else
18282  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18283    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18284    as_echo_n='/usr/ucb/echo -n'
18285  else
18286    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18287    as_echo_n_body='eval
18288      arg=$1;
18289      case $arg in #(
18290      *"$as_nl"*)
18291	expr "X$arg" : "X\\(.*\\)$as_nl";
18292	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18293      esac;
18294      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18295    '
18296    export as_echo_n_body
18297    as_echo_n='sh -c $as_echo_n_body as_echo'
18298  fi
18299  export as_echo_body
18300  as_echo='sh -c $as_echo_body as_echo'
18301fi
18302
18303# The user is always right.
18304if test "${PATH_SEPARATOR+set}" != set; then
18305  PATH_SEPARATOR=:
18306  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18307    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18308      PATH_SEPARATOR=';'
18309  }
18310fi
18311
18312
18313# IFS
18314# We need space, tab and new line, in precisely that order.  Quoting is
18315# there to prevent editors from complaining about space-tab.
18316# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18317# splitting by setting IFS to empty value.)
18318IFS=" ""	$as_nl"
18319
18320# Find who we are.  Look in the path if we contain no directory separator.
18321as_myself=
18322case $0 in #((
18323  *[\\/]* ) as_myself=$0 ;;
18324  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18325for as_dir in $PATH
18326do
18327  IFS=$as_save_IFS
18328  test -z "$as_dir" && as_dir=.
18329    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18330  done
18331IFS=$as_save_IFS
18332
18333     ;;
18334esac
18335# We did not find ourselves, most probably we were run as `sh COMMAND'
18336# in which case we are not to be found in the path.
18337if test "x$as_myself" = x; then
18338  as_myself=$0
18339fi
18340if test ! -f "$as_myself"; then
18341  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18342  exit 1
18343fi
18344
18345# Unset variables that we do not need and which cause bugs (e.g. in
18346# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18347# suppresses any "Segmentation fault" message there.  '((' could
18348# trigger a bug in pdksh 5.2.14.
18349for as_var in BASH_ENV ENV MAIL MAILPATH
18350do eval test x\${$as_var+set} = xset \
18351  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18352done
18353PS1='$ '
18354PS2='> '
18355PS4='+ '
18356
18357# NLS nuisances.
18358LC_ALL=C
18359export LC_ALL
18360LANGUAGE=C
18361export LANGUAGE
18362
18363# CDPATH.
18364(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18365
18366
18367# as_fn_error STATUS ERROR [LINENO LOG_FD]
18368# ----------------------------------------
18369# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18370# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18371# script with STATUS, using 1 if that was 0.
18372as_fn_error ()
18373{
18374  as_status=$1; test $as_status -eq 0 && as_status=1
18375  if test "$4"; then
18376    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18377    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18378  fi
18379  $as_echo "$as_me: error: $2" >&2
18380  as_fn_exit $as_status
18381} # as_fn_error
18382
18383
18384# as_fn_set_status STATUS
18385# -----------------------
18386# Set $? to STATUS, without forking.
18387as_fn_set_status ()
18388{
18389  return $1
18390} # as_fn_set_status
18391
18392# as_fn_exit STATUS
18393# -----------------
18394# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18395as_fn_exit ()
18396{
18397  set +e
18398  as_fn_set_status $1
18399  exit $1
18400} # as_fn_exit
18401
18402# as_fn_unset VAR
18403# ---------------
18404# Portably unset VAR.
18405as_fn_unset ()
18406{
18407  { eval $1=; unset $1;}
18408}
18409as_unset=as_fn_unset
18410# as_fn_append VAR VALUE
18411# ----------------------
18412# Append the text in VALUE to the end of the definition contained in VAR. Take
18413# advantage of any shell optimizations that allow amortized linear growth over
18414# repeated appends, instead of the typical quadratic growth present in naive
18415# implementations.
18416if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18417  eval 'as_fn_append ()
18418  {
18419    eval $1+=\$2
18420  }'
18421else
18422  as_fn_append ()
18423  {
18424    eval $1=\$$1\$2
18425  }
18426fi # as_fn_append
18427
18428# as_fn_arith ARG...
18429# ------------------
18430# Perform arithmetic evaluation on the ARGs, and store the result in the
18431# global $as_val. Take advantage of shells that can avoid forks. The arguments
18432# must be portable across $(()) and expr.
18433if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18434  eval 'as_fn_arith ()
18435  {
18436    as_val=$(( $* ))
18437  }'
18438else
18439  as_fn_arith ()
18440  {
18441    as_val=`expr "$@" || test $? -eq 1`
18442  }
18443fi # as_fn_arith
18444
18445
18446if expr a : '\(a\)' >/dev/null 2>&1 &&
18447   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18448  as_expr=expr
18449else
18450  as_expr=false
18451fi
18452
18453if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18454  as_basename=basename
18455else
18456  as_basename=false
18457fi
18458
18459if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18460  as_dirname=dirname
18461else
18462  as_dirname=false
18463fi
18464
18465as_me=`$as_basename -- "$0" ||
18466$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18467	 X"$0" : 'X\(//\)$' \| \
18468	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18469$as_echo X/"$0" |
18470    sed '/^.*\/\([^/][^/]*\)\/*$/{
18471	    s//\1/
18472	    q
18473	  }
18474	  /^X\/\(\/\/\)$/{
18475	    s//\1/
18476	    q
18477	  }
18478	  /^X\/\(\/\).*/{
18479	    s//\1/
18480	    q
18481	  }
18482	  s/.*/./; q'`
18483
18484# Avoid depending upon Character Ranges.
18485as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18486as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18487as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18488as_cr_digits='0123456789'
18489as_cr_alnum=$as_cr_Letters$as_cr_digits
18490
18491ECHO_C= ECHO_N= ECHO_T=
18492case `echo -n x` in #(((((
18493-n*)
18494  case `echo 'xy\c'` in
18495  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18496  xy)  ECHO_C='\c';;
18497  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18498       ECHO_T='	';;
18499  esac;;
18500*)
18501  ECHO_N='-n';;
18502esac
18503
18504rm -f conf$$ conf$$.exe conf$$.file
18505if test -d conf$$.dir; then
18506  rm -f conf$$.dir/conf$$.file
18507else
18508  rm -f conf$$.dir
18509  mkdir conf$$.dir 2>/dev/null
18510fi
18511if (echo >conf$$.file) 2>/dev/null; then
18512  if ln -s conf$$.file conf$$ 2>/dev/null; then
18513    as_ln_s='ln -s'
18514    # ... but there are two gotchas:
18515    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18516    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18517    # In both cases, we have to default to `cp -p'.
18518    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18519      as_ln_s='cp -p'
18520  elif ln conf$$.file conf$$ 2>/dev/null; then
18521    as_ln_s=ln
18522  else
18523    as_ln_s='cp -p'
18524  fi
18525else
18526  as_ln_s='cp -p'
18527fi
18528rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18529rmdir conf$$.dir 2>/dev/null
18530
18531
18532# as_fn_mkdir_p
18533# -------------
18534# Create "$as_dir" as a directory, including parents if necessary.
18535as_fn_mkdir_p ()
18536{
18537
18538  case $as_dir in #(
18539  -*) as_dir=./$as_dir;;
18540  esac
18541  test -d "$as_dir" || eval $as_mkdir_p || {
18542    as_dirs=
18543    while :; do
18544      case $as_dir in #(
18545      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18546      *) as_qdir=$as_dir;;
18547      esac
18548      as_dirs="'$as_qdir' $as_dirs"
18549      as_dir=`$as_dirname -- "$as_dir" ||
18550$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18551	 X"$as_dir" : 'X\(//\)[^/]' \| \
18552	 X"$as_dir" : 'X\(//\)$' \| \
18553	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18554$as_echo X"$as_dir" |
18555    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18556	    s//\1/
18557	    q
18558	  }
18559	  /^X\(\/\/\)[^/].*/{
18560	    s//\1/
18561	    q
18562	  }
18563	  /^X\(\/\/\)$/{
18564	    s//\1/
18565	    q
18566	  }
18567	  /^X\(\/\).*/{
18568	    s//\1/
18569	    q
18570	  }
18571	  s/.*/./; q'`
18572      test -d "$as_dir" && break
18573    done
18574    test -z "$as_dirs" || eval "mkdir $as_dirs"
18575  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18576
18577
18578} # as_fn_mkdir_p
18579if mkdir -p . 2>/dev/null; then
18580  as_mkdir_p='mkdir -p "$as_dir"'
18581else
18582  test -d ./-p && rmdir ./-p
18583  as_mkdir_p=false
18584fi
18585
18586if test -x / >/dev/null 2>&1; then
18587  as_test_x='test -x'
18588else
18589  if ls -dL / >/dev/null 2>&1; then
18590    as_ls_L_option=L
18591  else
18592    as_ls_L_option=
18593  fi
18594  as_test_x='
18595    eval sh -c '\''
18596      if test -d "$1"; then
18597	test -d "$1/.";
18598      else
18599	case $1 in #(
18600	-*)set "./$1";;
18601	esac;
18602	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18603	???[sx]*):;;*)false;;esac;fi
18604    '\'' sh
18605  '
18606fi
18607as_executable_p=$as_test_x
18608
18609# Sed expression to map a string onto a valid CPP name.
18610as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18611
18612# Sed expression to map a string onto a valid variable name.
18613as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18614
18615
18616exec 6>&1
18617## ----------------------------------- ##
18618## Main body of $CONFIG_STATUS script. ##
18619## ----------------------------------- ##
18620_ASEOF
18621test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18622
18623cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18624# Save the log message, to keep $0 and so on meaningful, and to
18625# report actual input values of CONFIG_FILES etc. instead of their
18626# values after options handling.
18627ac_log="
18628This file was extended by unbound $as_me 1.4.18, which was
18629generated by GNU Autoconf 2.68.  Invocation command line was
18630
18631  CONFIG_FILES    = $CONFIG_FILES
18632  CONFIG_HEADERS  = $CONFIG_HEADERS
18633  CONFIG_LINKS    = $CONFIG_LINKS
18634  CONFIG_COMMANDS = $CONFIG_COMMANDS
18635  $ $0 $@
18636
18637on `(hostname || uname -n) 2>/dev/null | sed 1q`
18638"
18639
18640_ACEOF
18641
18642case $ac_config_files in *"
18643"*) set x $ac_config_files; shift; ac_config_files=$*;;
18644esac
18645
18646case $ac_config_headers in *"
18647"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18648esac
18649
18650
18651cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18652# Files that config.status was made for.
18653config_files="$ac_config_files"
18654config_headers="$ac_config_headers"
18655config_commands="$ac_config_commands"
18656
18657_ACEOF
18658
18659cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18660ac_cs_usage="\
18661\`$as_me' instantiates files and other configuration actions
18662from templates according to the current configuration.  Unless the files
18663and actions are specified as TAGs, all are instantiated by default.
18664
18665Usage: $0 [OPTION]... [TAG]...
18666
18667  -h, --help       print this help, then exit
18668  -V, --version    print version number and configuration settings, then exit
18669      --config     print configuration, then exit
18670  -q, --quiet, --silent
18671                   do not print progress messages
18672  -d, --debug      don't remove temporary files
18673      --recheck    update $as_me by reconfiguring in the same conditions
18674      --file=FILE[:TEMPLATE]
18675                   instantiate the configuration file FILE
18676      --header=FILE[:TEMPLATE]
18677                   instantiate the configuration header FILE
18678
18679Configuration files:
18680$config_files
18681
18682Configuration headers:
18683$config_headers
18684
18685Configuration commands:
18686$config_commands
18687
18688Report bugs to <unbound-bugs@nlnetlabs.nl>."
18689
18690_ACEOF
18691cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18692ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18693ac_cs_version="\\
18694unbound config.status 1.4.18
18695configured by $0, generated by GNU Autoconf 2.68,
18696  with options \\"\$ac_cs_config\\"
18697
18698Copyright (C) 2010 Free Software Foundation, Inc.
18699This config.status script is free software; the Free Software Foundation
18700gives unlimited permission to copy, distribute and modify it."
18701
18702ac_pwd='$ac_pwd'
18703srcdir='$srcdir'
18704AWK='$AWK'
18705test -n "\$AWK" || AWK=awk
18706_ACEOF
18707
18708cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18709# The default lists apply if the user does not specify any file.
18710ac_need_defaults=:
18711while test $# != 0
18712do
18713  case $1 in
18714  --*=?*)
18715    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18716    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18717    ac_shift=:
18718    ;;
18719  --*=)
18720    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18721    ac_optarg=
18722    ac_shift=:
18723    ;;
18724  *)
18725    ac_option=$1
18726    ac_optarg=$2
18727    ac_shift=shift
18728    ;;
18729  esac
18730
18731  case $ac_option in
18732  # Handling of the options.
18733  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18734    ac_cs_recheck=: ;;
18735  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18736    $as_echo "$ac_cs_version"; exit ;;
18737  --config | --confi | --conf | --con | --co | --c )
18738    $as_echo "$ac_cs_config"; exit ;;
18739  --debug | --debu | --deb | --de | --d | -d )
18740    debug=: ;;
18741  --file | --fil | --fi | --f )
18742    $ac_shift
18743    case $ac_optarg in
18744    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18745    '') as_fn_error $? "missing file argument" ;;
18746    esac
18747    as_fn_append CONFIG_FILES " '$ac_optarg'"
18748    ac_need_defaults=false;;
18749  --header | --heade | --head | --hea )
18750    $ac_shift
18751    case $ac_optarg in
18752    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18753    esac
18754    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18755    ac_need_defaults=false;;
18756  --he | --h)
18757    # Conflict between --help and --header
18758    as_fn_error $? "ambiguous option: \`$1'
18759Try \`$0 --help' for more information.";;
18760  --help | --hel | -h )
18761    $as_echo "$ac_cs_usage"; exit ;;
18762  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18763  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18764    ac_cs_silent=: ;;
18765
18766  # This is an error.
18767  -*) as_fn_error $? "unrecognized option: \`$1'
18768Try \`$0 --help' for more information." ;;
18769
18770  *) as_fn_append ac_config_targets " $1"
18771     ac_need_defaults=false ;;
18772
18773  esac
18774  shift
18775done
18776
18777ac_configure_extra_args=
18778
18779if $ac_cs_silent; then
18780  exec 6>/dev/null
18781  ac_configure_extra_args="$ac_configure_extra_args --silent"
18782fi
18783
18784_ACEOF
18785cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18786if \$ac_cs_recheck; then
18787  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18788  shift
18789  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18790  CONFIG_SHELL='$SHELL'
18791  export CONFIG_SHELL
18792  exec "\$@"
18793fi
18794
18795_ACEOF
18796cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18797exec 5>>config.log
18798{
18799  echo
18800  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18801## Running $as_me. ##
18802_ASBOX
18803  $as_echo "$ac_log"
18804} >&5
18805
18806_ACEOF
18807cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18808#
18809# INIT-COMMANDS
18810#
18811
18812
18813# The HP-UX ksh and POSIX shell print the target directory to stdout
18814# if CDPATH is set.
18815(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18816
18817sed_quote_subst='$sed_quote_subst'
18818double_quote_subst='$double_quote_subst'
18819delay_variable_subst='$delay_variable_subst'
18820macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18821macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18822enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18823enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18824pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18825enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18826SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18827ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18828host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18829host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18830host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18831build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18832build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18833build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18834SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18835Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18836GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18837EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18838FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18839LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18840NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18841LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18842max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18843ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18844exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18845lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18846lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18847lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18848lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18849lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18850reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18851reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18852OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18853deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18854file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18855file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18856want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18857DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18858sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18859AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18860AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18861archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18862STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18863RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18864old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18865old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18866old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18867lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18868CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18869CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18870compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18871GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18872lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18873lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18874lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18875lt_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"`'
18876nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18877lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18878objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18879MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18880lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18881lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18882lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18883lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18884lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18885need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18886MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18887DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18888NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18889LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18890OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18891OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18892libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18893shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18894extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18895archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18896enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18897export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18898whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18899compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18900old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18901old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18902archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18903archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18904module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18905module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18906with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18907allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18908no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18909hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18910hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18911hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18912hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18913hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18914hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18915hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18916hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18917inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18918link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18919always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18920export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18921exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18922include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18923prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18924postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18925file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18926variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18927need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18928need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18929version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18930runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18931shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18932shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18933libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18934library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18935soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18936install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18937postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18938postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18939finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18940finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18941hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18942sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18943sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18944hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18945enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18946enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18947enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18948old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18949striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18950
18951LTCC='$LTCC'
18952LTCFLAGS='$LTCFLAGS'
18953compiler='$compiler_DEFAULT'
18954
18955# A function that is used when there is no print builtin or printf.
18956func_fallback_echo ()
18957{
18958  eval 'cat <<_LTECHO_EOF
18959\$1
18960_LTECHO_EOF'
18961}
18962
18963# Quote evaled strings.
18964for var in SHELL \
18965ECHO \
18966SED \
18967GREP \
18968EGREP \
18969FGREP \
18970LD \
18971NM \
18972LN_S \
18973lt_SP2NL \
18974lt_NL2SP \
18975reload_flag \
18976OBJDUMP \
18977deplibs_check_method \
18978file_magic_cmd \
18979file_magic_glob \
18980want_nocaseglob \
18981DLLTOOL \
18982sharedlib_from_linklib_cmd \
18983AR \
18984AR_FLAGS \
18985archiver_list_spec \
18986STRIP \
18987RANLIB \
18988CC \
18989CFLAGS \
18990compiler \
18991lt_cv_sys_global_symbol_pipe \
18992lt_cv_sys_global_symbol_to_cdecl \
18993lt_cv_sys_global_symbol_to_c_name_address \
18994lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18995nm_file_list_spec \
18996lt_prog_compiler_no_builtin_flag \
18997lt_prog_compiler_pic \
18998lt_prog_compiler_wl \
18999lt_prog_compiler_static \
19000lt_cv_prog_compiler_c_o \
19001need_locks \
19002MANIFEST_TOOL \
19003DSYMUTIL \
19004NMEDIT \
19005LIPO \
19006OTOOL \
19007OTOOL64 \
19008shrext_cmds \
19009export_dynamic_flag_spec \
19010whole_archive_flag_spec \
19011compiler_needs_object \
19012with_gnu_ld \
19013allow_undefined_flag \
19014no_undefined_flag \
19015hardcode_libdir_flag_spec \
19016hardcode_libdir_flag_spec_ld \
19017hardcode_libdir_separator \
19018exclude_expsyms \
19019include_expsyms \
19020file_list_spec \
19021variables_saved_for_relink \
19022libname_spec \
19023library_names_spec \
19024soname_spec \
19025install_override_mode \
19026finish_eval \
19027old_striplib \
19028striplib; do
19029    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19030    *[\\\\\\\`\\"\\\$]*)
19031      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19032      ;;
19033    *)
19034      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19035      ;;
19036    esac
19037done
19038
19039# Double-quote double-evaled strings.
19040for var in reload_cmds \
19041old_postinstall_cmds \
19042old_postuninstall_cmds \
19043old_archive_cmds \
19044extract_expsyms_cmds \
19045old_archive_from_new_cmds \
19046old_archive_from_expsyms_cmds \
19047archive_cmds \
19048archive_expsym_cmds \
19049module_cmds \
19050module_expsym_cmds \
19051export_symbols_cmds \
19052prelink_cmds \
19053postlink_cmds \
19054postinstall_cmds \
19055postuninstall_cmds \
19056finish_cmds \
19057sys_lib_search_path_spec \
19058sys_lib_dlsearch_path_spec; do
19059    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19060    *[\\\\\\\`\\"\\\$]*)
19061      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19062      ;;
19063    *)
19064      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19065      ;;
19066    esac
19067done
19068
19069ac_aux_dir='$ac_aux_dir'
19070xsi_shell='$xsi_shell'
19071lt_shell_append='$lt_shell_append'
19072
19073# See if we are running on zsh, and set the options which allow our
19074# commands through without removal of \ escapes INIT.
19075if test -n "\${ZSH_VERSION+set}" ; then
19076   setopt NO_GLOB_SUBST
19077fi
19078
19079
19080    PACKAGE='$PACKAGE'
19081    VERSION='$VERSION'
19082    TIMESTAMP='$TIMESTAMP'
19083    RM='$RM'
19084    ofile='$ofile'
19085
19086
19087
19088
19089_ACEOF
19090
19091cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19092
19093# Handling of arguments.
19094for ac_config_target in $ac_config_targets
19095do
19096  case $ac_config_target in
19097    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19098    "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
19099    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19100    "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
19101    "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;;
19102    "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;;
19103    "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;;
19104    "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;;
19105    "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;;
19106    "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;;
19107    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19108
19109  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19110  esac
19111done
19112
19113
19114# If the user did not use the arguments to specify the items to instantiate,
19115# then the envvar interface is used.  Set only those that are not.
19116# We use the long form for the default assignment because of an extremely
19117# bizarre bug on SunOS 4.1.3.
19118if $ac_need_defaults; then
19119  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19120  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19121  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19122fi
19123
19124# Have a temporary directory for convenience.  Make it in the build tree
19125# simply because there is no reason against having it here, and in addition,
19126# creating and moving files from /tmp can sometimes cause problems.
19127# Hook for its removal unless debugging.
19128# Note that there is a small window in which the directory will not be cleaned:
19129# after its creation but before its name has been assigned to `$tmp'.
19130$debug ||
19131{
19132  tmp= ac_tmp=
19133  trap 'exit_status=$?
19134  : "${ac_tmp:=$tmp}"
19135  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19136' 0
19137  trap 'as_fn_exit 1' 1 2 13 15
19138}
19139# Create a (secure) tmp directory for tmp files.
19140
19141{
19142  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19143  test -d "$tmp"
19144}  ||
19145{
19146  tmp=./conf$$-$RANDOM
19147  (umask 077 && mkdir "$tmp")
19148} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19149ac_tmp=$tmp
19150
19151# Set up the scripts for CONFIG_FILES section.
19152# No need to generate them if there are no CONFIG_FILES.
19153# This happens for instance with `./config.status config.h'.
19154if test -n "$CONFIG_FILES"; then
19155
19156
19157ac_cr=`echo X | tr X '\015'`
19158# On cygwin, bash can eat \r inside `` if the user requested igncr.
19159# But we know of no other shell where ac_cr would be empty at this
19160# point, so we can use a bashism as a fallback.
19161if test "x$ac_cr" = x; then
19162  eval ac_cr=\$\'\\r\'
19163fi
19164ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19165if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19166  ac_cs_awk_cr='\\r'
19167else
19168  ac_cs_awk_cr=$ac_cr
19169fi
19170
19171echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19172_ACEOF
19173
19174
19175{
19176  echo "cat >conf$$subs.awk <<_ACEOF" &&
19177  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19178  echo "_ACEOF"
19179} >conf$$subs.sh ||
19180  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19181ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19182ac_delim='%!_!# '
19183for ac_last_try in false false false false false :; do
19184  . ./conf$$subs.sh ||
19185    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19186
19187  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19188  if test $ac_delim_n = $ac_delim_num; then
19189    break
19190  elif $ac_last_try; then
19191    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19192  else
19193    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19194  fi
19195done
19196rm -f conf$$subs.sh
19197
19198cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19199cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19200_ACEOF
19201sed -n '
19202h
19203s/^/S["/; s/!.*/"]=/
19204p
19205g
19206s/^[^!]*!//
19207:repl
19208t repl
19209s/'"$ac_delim"'$//
19210t delim
19211:nl
19212h
19213s/\(.\{148\}\)..*/\1/
19214t more1
19215s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19216p
19217n
19218b repl
19219:more1
19220s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19221p
19222g
19223s/.\{148\}//
19224t nl
19225:delim
19226h
19227s/\(.\{148\}\)..*/\1/
19228t more2
19229s/["\\]/\\&/g; s/^/"/; s/$/"/
19230p
19231b
19232:more2
19233s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19234p
19235g
19236s/.\{148\}//
19237t delim
19238' <conf$$subs.awk | sed '
19239/^[^""]/{
19240  N
19241  s/\n//
19242}
19243' >>$CONFIG_STATUS || ac_write_fail=1
19244rm -f conf$$subs.awk
19245cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19246_ACAWK
19247cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19248  for (key in S) S_is_set[key] = 1
19249  FS = ""
19250
19251}
19252{
19253  line = $ 0
19254  nfields = split(line, field, "@")
19255  substed = 0
19256  len = length(field[1])
19257  for (i = 2; i < nfields; i++) {
19258    key = field[i]
19259    keylen = length(key)
19260    if (S_is_set[key]) {
19261      value = S[key]
19262      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19263      len += length(value) + length(field[++i])
19264      substed = 1
19265    } else
19266      len += 1 + keylen
19267  }
19268
19269  print line
19270}
19271
19272_ACAWK
19273_ACEOF
19274cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19275if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19276  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19277else
19278  cat
19279fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19280  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19281_ACEOF
19282
19283# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19284# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19285# trailing colons and then remove the whole line if VPATH becomes empty
19286# (actually we leave an empty line to preserve line numbers).
19287if test "x$srcdir" = x.; then
19288  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19289h
19290s///
19291s/^/:/
19292s/[	 ]*$/:/
19293s/:\$(srcdir):/:/g
19294s/:\${srcdir}:/:/g
19295s/:@srcdir@:/:/g
19296s/^:*//
19297s/:*$//
19298x
19299s/\(=[	 ]*\).*/\1/
19300G
19301s/\n//
19302s/^[^=]*=[	 ]*$//
19303}'
19304fi
19305
19306cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19307fi # test -n "$CONFIG_FILES"
19308
19309# Set up the scripts for CONFIG_HEADERS section.
19310# No need to generate them if there are no CONFIG_HEADERS.
19311# This happens for instance with `./config.status Makefile'.
19312if test -n "$CONFIG_HEADERS"; then
19313cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19314BEGIN {
19315_ACEOF
19316
19317# Transform confdefs.h into an awk script `defines.awk', embedded as
19318# here-document in config.status, that substitutes the proper values into
19319# config.h.in to produce config.h.
19320
19321# Create a delimiter string that does not exist in confdefs.h, to ease
19322# handling of long lines.
19323ac_delim='%!_!# '
19324for ac_last_try in false false :; do
19325  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19326  if test -z "$ac_tt"; then
19327    break
19328  elif $ac_last_try; then
19329    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19330  else
19331    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19332  fi
19333done
19334
19335# For the awk script, D is an array of macro values keyed by name,
19336# likewise P contains macro parameters if any.  Preserve backslash
19337# newline sequences.
19338
19339ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19340sed -n '
19341s/.\{148\}/&'"$ac_delim"'/g
19342t rset
19343:rset
19344s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19345t def
19346d
19347:def
19348s/\\$//
19349t bsnl
19350s/["\\]/\\&/g
19351s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19352D["\1"]=" \3"/p
19353s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19354d
19355:bsnl
19356s/["\\]/\\&/g
19357s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19358D["\1"]=" \3\\\\\\n"\\/p
19359t cont
19360s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19361t cont
19362d
19363:cont
19364n
19365s/.\{148\}/&'"$ac_delim"'/g
19366t clear
19367:clear
19368s/\\$//
19369t bsnlc
19370s/["\\]/\\&/g; s/^/"/; s/$/"/p
19371d
19372:bsnlc
19373s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19374b cont
19375' <confdefs.h | sed '
19376s/'"$ac_delim"'/"\\\
19377"/g' >>$CONFIG_STATUS || ac_write_fail=1
19378
19379cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19380  for (key in D) D_is_set[key] = 1
19381  FS = ""
19382}
19383/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19384  line = \$ 0
19385  split(line, arg, " ")
19386  if (arg[1] == "#") {
19387    defundef = arg[2]
19388    mac1 = arg[3]
19389  } else {
19390    defundef = substr(arg[1], 2)
19391    mac1 = arg[2]
19392  }
19393  split(mac1, mac2, "(") #)
19394  macro = mac2[1]
19395  prefix = substr(line, 1, index(line, defundef) - 1)
19396  if (D_is_set[macro]) {
19397    # Preserve the white space surrounding the "#".
19398    print prefix "define", macro P[macro] D[macro]
19399    next
19400  } else {
19401    # Replace #undef with comments.  This is necessary, for example,
19402    # in the case of _POSIX_SOURCE, which is predefined and required
19403    # on some systems where configure will not decide to define it.
19404    if (defundef == "undef") {
19405      print "/*", prefix defundef, macro, "*/"
19406      next
19407    }
19408  }
19409}
19410{ print }
19411_ACAWK
19412_ACEOF
19413cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19414  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19415fi # test -n "$CONFIG_HEADERS"
19416
19417
19418eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19419shift
19420for ac_tag
19421do
19422  case $ac_tag in
19423  :[FHLC]) ac_mode=$ac_tag; continue;;
19424  esac
19425  case $ac_mode$ac_tag in
19426  :[FHL]*:*);;
19427  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19428  :[FH]-) ac_tag=-:-;;
19429  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19430  esac
19431  ac_save_IFS=$IFS
19432  IFS=:
19433  set x $ac_tag
19434  IFS=$ac_save_IFS
19435  shift
19436  ac_file=$1
19437  shift
19438
19439  case $ac_mode in
19440  :L) ac_source=$1;;
19441  :[FH])
19442    ac_file_inputs=
19443    for ac_f
19444    do
19445      case $ac_f in
19446      -) ac_f="$ac_tmp/stdin";;
19447      *) # Look for the file first in the build tree, then in the source tree
19448	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19449	 # because $ac_f cannot contain `:'.
19450	 test -f "$ac_f" ||
19451	   case $ac_f in
19452	   [\\/$]*) false;;
19453	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19454	   esac ||
19455	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19456      esac
19457      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19458      as_fn_append ac_file_inputs " '$ac_f'"
19459    done
19460
19461    # Let's still pretend it is `configure' which instantiates (i.e., don't
19462    # use $as_me), people would be surprised to read:
19463    #    /* config.h.  Generated by config.status.  */
19464    configure_input='Generated from '`
19465	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19466	`' by configure.'
19467    if test x"$ac_file" != x-; then
19468      configure_input="$ac_file.  $configure_input"
19469      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19470$as_echo "$as_me: creating $ac_file" >&6;}
19471    fi
19472    # Neutralize special characters interpreted by sed in replacement strings.
19473    case $configure_input in #(
19474    *\&* | *\|* | *\\* )
19475       ac_sed_conf_input=`$as_echo "$configure_input" |
19476       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19477    *) ac_sed_conf_input=$configure_input;;
19478    esac
19479
19480    case $ac_tag in
19481    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19482      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19483    esac
19484    ;;
19485  esac
19486
19487  ac_dir=`$as_dirname -- "$ac_file" ||
19488$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19489	 X"$ac_file" : 'X\(//\)[^/]' \| \
19490	 X"$ac_file" : 'X\(//\)$' \| \
19491	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19492$as_echo X"$ac_file" |
19493    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19494	    s//\1/
19495	    q
19496	  }
19497	  /^X\(\/\/\)[^/].*/{
19498	    s//\1/
19499	    q
19500	  }
19501	  /^X\(\/\/\)$/{
19502	    s//\1/
19503	    q
19504	  }
19505	  /^X\(\/\).*/{
19506	    s//\1/
19507	    q
19508	  }
19509	  s/.*/./; q'`
19510  as_dir="$ac_dir"; as_fn_mkdir_p
19511  ac_builddir=.
19512
19513case "$ac_dir" in
19514.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19515*)
19516  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19517  # A ".." for each directory in $ac_dir_suffix.
19518  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19519  case $ac_top_builddir_sub in
19520  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19521  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19522  esac ;;
19523esac
19524ac_abs_top_builddir=$ac_pwd
19525ac_abs_builddir=$ac_pwd$ac_dir_suffix
19526# for backward compatibility:
19527ac_top_builddir=$ac_top_build_prefix
19528
19529case $srcdir in
19530  .)  # We are building in place.
19531    ac_srcdir=.
19532    ac_top_srcdir=$ac_top_builddir_sub
19533    ac_abs_top_srcdir=$ac_pwd ;;
19534  [\\/]* | ?:[\\/]* )  # Absolute name.
19535    ac_srcdir=$srcdir$ac_dir_suffix;
19536    ac_top_srcdir=$srcdir
19537    ac_abs_top_srcdir=$srcdir ;;
19538  *) # Relative name.
19539    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19540    ac_top_srcdir=$ac_top_build_prefix$srcdir
19541    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19542esac
19543ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19544
19545
19546  case $ac_mode in
19547  :F)
19548  #
19549  # CONFIG_FILE
19550  #
19551
19552_ACEOF
19553
19554cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19555# If the template does not know about datarootdir, expand it.
19556# FIXME: This hack should be removed a few years after 2.60.
19557ac_datarootdir_hack=; ac_datarootdir_seen=
19558ac_sed_dataroot='
19559/datarootdir/ {
19560  p
19561  q
19562}
19563/@datadir@/p
19564/@docdir@/p
19565/@infodir@/p
19566/@localedir@/p
19567/@mandir@/p'
19568case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19569*datarootdir*) ac_datarootdir_seen=yes;;
19570*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19571  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19572$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19573_ACEOF
19574cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19575  ac_datarootdir_hack='
19576  s&@datadir@&$datadir&g
19577  s&@docdir@&$docdir&g
19578  s&@infodir@&$infodir&g
19579  s&@localedir@&$localedir&g
19580  s&@mandir@&$mandir&g
19581  s&\\\${datarootdir}&$datarootdir&g' ;;
19582esac
19583_ACEOF
19584
19585# Neutralize VPATH when `$srcdir' = `.'.
19586# Shell code in configure.ac might set extrasub.
19587# FIXME: do we really want to maintain this feature?
19588cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19589ac_sed_extra="$ac_vpsub
19590$extrasub
19591_ACEOF
19592cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19593:t
19594/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19595s|@configure_input@|$ac_sed_conf_input|;t t
19596s&@top_builddir@&$ac_top_builddir_sub&;t t
19597s&@top_build_prefix@&$ac_top_build_prefix&;t t
19598s&@srcdir@&$ac_srcdir&;t t
19599s&@abs_srcdir@&$ac_abs_srcdir&;t t
19600s&@top_srcdir@&$ac_top_srcdir&;t t
19601s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19602s&@builddir@&$ac_builddir&;t t
19603s&@abs_builddir@&$ac_abs_builddir&;t t
19604s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19605$ac_datarootdir_hack
19606"
19607eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19608  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19609
19610test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19611  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19612  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19613      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19614  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19615which seems to be undefined.  Please make sure it is defined" >&5
19616$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19617which seems to be undefined.  Please make sure it is defined" >&2;}
19618
19619  rm -f "$ac_tmp/stdin"
19620  case $ac_file in
19621  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19622  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19623  esac \
19624  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19625 ;;
19626  :H)
19627  #
19628  # CONFIG_HEADER
19629  #
19630  if test x"$ac_file" != x-; then
19631    {
19632      $as_echo "/* $configure_input  */" \
19633      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19634    } >"$ac_tmp/config.h" \
19635      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19636    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19637      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19638$as_echo "$as_me: $ac_file is unchanged" >&6;}
19639    else
19640      rm -f "$ac_file"
19641      mv "$ac_tmp/config.h" "$ac_file" \
19642	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19643    fi
19644  else
19645    $as_echo "/* $configure_input  */" \
19646      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19647      || as_fn_error $? "could not create -" "$LINENO" 5
19648  fi
19649 ;;
19650
19651  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19652$as_echo "$as_me: executing $ac_file commands" >&6;}
19653 ;;
19654  esac
19655
19656
19657  case $ac_file$ac_mode in
19658    "libtool":C)
19659
19660    # See if we are running on zsh, and set the options which allow our
19661    # commands through without removal of \ escapes.
19662    if test -n "${ZSH_VERSION+set}" ; then
19663      setopt NO_GLOB_SUBST
19664    fi
19665
19666    cfgfile="${ofile}T"
19667    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19668    $RM "$cfgfile"
19669
19670    cat <<_LT_EOF >> "$cfgfile"
19671#! $SHELL
19672
19673# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19674# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19675# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19676# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19677#
19678#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19679#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
19680#                 Inc.
19681#   Written by Gordon Matzigkeit, 1996
19682#
19683#   This file is part of GNU Libtool.
19684#
19685# GNU Libtool is free software; you can redistribute it and/or
19686# modify it under the terms of the GNU General Public License as
19687# published by the Free Software Foundation; either version 2 of
19688# the License, or (at your option) any later version.
19689#
19690# As a special exception to the GNU General Public License,
19691# if you distribute this file as part of a program or library that
19692# is built using GNU Libtool, you may include this file under the
19693# same distribution terms that you use for the rest of that program.
19694#
19695# GNU Libtool is distributed in the hope that it will be useful,
19696# but WITHOUT ANY WARRANTY; without even the implied warranty of
19697# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19698# GNU General Public License for more details.
19699#
19700# You should have received a copy of the GNU General Public License
19701# along with GNU Libtool; see the file COPYING.  If not, a copy
19702# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19703# obtained by writing to the Free Software Foundation, Inc.,
19704# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19705
19706
19707# The names of the tagged configurations supported by this script.
19708available_tags=""
19709
19710# ### BEGIN LIBTOOL CONFIG
19711
19712# Which release of libtool.m4 was used?
19713macro_version=$macro_version
19714macro_revision=$macro_revision
19715
19716# Whether or not to build shared libraries.
19717build_libtool_libs=$enable_shared
19718
19719# Whether or not to build static libraries.
19720build_old_libs=$enable_static
19721
19722# What type of objects to build.
19723pic_mode=$pic_mode
19724
19725# Whether or not to optimize for fast installation.
19726fast_install=$enable_fast_install
19727
19728# Shell to use when invoking shell scripts.
19729SHELL=$lt_SHELL
19730
19731# An echo program that protects backslashes.
19732ECHO=$lt_ECHO
19733
19734# The host system.
19735host_alias=$host_alias
19736host=$host
19737host_os=$host_os
19738
19739# The build system.
19740build_alias=$build_alias
19741build=$build
19742build_os=$build_os
19743
19744# A sed program that does not truncate output.
19745SED=$lt_SED
19746
19747# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19748Xsed="\$SED -e 1s/^X//"
19749
19750# A grep program that handles long lines.
19751GREP=$lt_GREP
19752
19753# An ERE matcher.
19754EGREP=$lt_EGREP
19755
19756# A literal string matcher.
19757FGREP=$lt_FGREP
19758
19759# A BSD- or MS-compatible name lister.
19760NM=$lt_NM
19761
19762# Whether we need soft or hard links.
19763LN_S=$lt_LN_S
19764
19765# What is the maximum length of a command?
19766max_cmd_len=$max_cmd_len
19767
19768# Object file suffix (normally "o").
19769objext=$ac_objext
19770
19771# Executable file suffix (normally "").
19772exeext=$exeext
19773
19774# whether the shell understands "unset".
19775lt_unset=$lt_unset
19776
19777# turn spaces into newlines.
19778SP2NL=$lt_lt_SP2NL
19779
19780# turn newlines into spaces.
19781NL2SP=$lt_lt_NL2SP
19782
19783# convert \$build file names to \$host format.
19784to_host_file_cmd=$lt_cv_to_host_file_cmd
19785
19786# convert \$build files to toolchain format.
19787to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19788
19789# An object symbol dumper.
19790OBJDUMP=$lt_OBJDUMP
19791
19792# Method to check whether dependent libraries are shared objects.
19793deplibs_check_method=$lt_deplibs_check_method
19794
19795# Command to use when deplibs_check_method = "file_magic".
19796file_magic_cmd=$lt_file_magic_cmd
19797
19798# How to find potential files when deplibs_check_method = "file_magic".
19799file_magic_glob=$lt_file_magic_glob
19800
19801# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19802want_nocaseglob=$lt_want_nocaseglob
19803
19804# DLL creation program.
19805DLLTOOL=$lt_DLLTOOL
19806
19807# Command to associate shared and link libraries.
19808sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19809
19810# The archiver.
19811AR=$lt_AR
19812
19813# Flags to create an archive.
19814AR_FLAGS=$lt_AR_FLAGS
19815
19816# How to feed a file listing to the archiver.
19817archiver_list_spec=$lt_archiver_list_spec
19818
19819# A symbol stripping program.
19820STRIP=$lt_STRIP
19821
19822# Commands used to install an old-style archive.
19823RANLIB=$lt_RANLIB
19824old_postinstall_cmds=$lt_old_postinstall_cmds
19825old_postuninstall_cmds=$lt_old_postuninstall_cmds
19826
19827# Whether to use a lock for old archive extraction.
19828lock_old_archive_extraction=$lock_old_archive_extraction
19829
19830# A C compiler.
19831LTCC=$lt_CC
19832
19833# LTCC compiler flags.
19834LTCFLAGS=$lt_CFLAGS
19835
19836# Take the output of nm and produce a listing of raw symbols and C names.
19837global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19838
19839# Transform the output of nm in a proper C declaration.
19840global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19841
19842# Transform the output of nm in a C name address pair.
19843global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19844
19845# Transform the output of nm in a C name address pair when lib prefix is needed.
19846global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19847
19848# Specify filename containing input files for \$NM.
19849nm_file_list_spec=$lt_nm_file_list_spec
19850
19851# The root where to search for dependent libraries,and in which our libraries should be installed.
19852lt_sysroot=$lt_sysroot
19853
19854# The name of the directory that contains temporary libtool files.
19855objdir=$objdir
19856
19857# Used to examine libraries when file_magic_cmd begins with "file".
19858MAGIC_CMD=$MAGIC_CMD
19859
19860# Must we lock files when doing compilation?
19861need_locks=$lt_need_locks
19862
19863# Manifest tool.
19864MANIFEST_TOOL=$lt_MANIFEST_TOOL
19865
19866# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19867DSYMUTIL=$lt_DSYMUTIL
19868
19869# Tool to change global to local symbols on Mac OS X.
19870NMEDIT=$lt_NMEDIT
19871
19872# Tool to manipulate fat objects and archives on Mac OS X.
19873LIPO=$lt_LIPO
19874
19875# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19876OTOOL=$lt_OTOOL
19877
19878# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19879OTOOL64=$lt_OTOOL64
19880
19881# Old archive suffix (normally "a").
19882libext=$libext
19883
19884# Shared library suffix (normally ".so").
19885shrext_cmds=$lt_shrext_cmds
19886
19887# The commands to extract the exported symbol list from a shared archive.
19888extract_expsyms_cmds=$lt_extract_expsyms_cmds
19889
19890# Variables whose values should be saved in libtool wrapper scripts and
19891# restored at link time.
19892variables_saved_for_relink=$lt_variables_saved_for_relink
19893
19894# Do we need the "lib" prefix for modules?
19895need_lib_prefix=$need_lib_prefix
19896
19897# Do we need a version for libraries?
19898need_version=$need_version
19899
19900# Library versioning type.
19901version_type=$version_type
19902
19903# Shared library runtime path variable.
19904runpath_var=$runpath_var
19905
19906# Shared library path variable.
19907shlibpath_var=$shlibpath_var
19908
19909# Is shlibpath searched before the hard-coded library search path?
19910shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19911
19912# Format of library name prefix.
19913libname_spec=$lt_libname_spec
19914
19915# List of archive names.  First name is the real one, the rest are links.
19916# The last name is the one that the linker finds with -lNAME
19917library_names_spec=$lt_library_names_spec
19918
19919# The coded name of the library, if different from the real name.
19920soname_spec=$lt_soname_spec
19921
19922# Permission mode override for installation of shared libraries.
19923install_override_mode=$lt_install_override_mode
19924
19925# Command to use after installation of a shared archive.
19926postinstall_cmds=$lt_postinstall_cmds
19927
19928# Command to use after uninstallation of a shared archive.
19929postuninstall_cmds=$lt_postuninstall_cmds
19930
19931# Commands used to finish a libtool library installation in a directory.
19932finish_cmds=$lt_finish_cmds
19933
19934# As "finish_cmds", except a single script fragment to be evaled but
19935# not shown.
19936finish_eval=$lt_finish_eval
19937
19938# Whether we should hardcode library paths into libraries.
19939hardcode_into_libs=$hardcode_into_libs
19940
19941# Compile-time system search path for libraries.
19942sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19943
19944# Run-time system search path for libraries.
19945sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19946
19947# Whether dlopen is supported.
19948dlopen_support=$enable_dlopen
19949
19950# Whether dlopen of programs is supported.
19951dlopen_self=$enable_dlopen_self
19952
19953# Whether dlopen of statically linked programs is supported.
19954dlopen_self_static=$enable_dlopen_self_static
19955
19956# Commands to strip libraries.
19957old_striplib=$lt_old_striplib
19958striplib=$lt_striplib
19959
19960
19961# The linker used to build libraries.
19962LD=$lt_LD
19963
19964# How to create reloadable object files.
19965reload_flag=$lt_reload_flag
19966reload_cmds=$lt_reload_cmds
19967
19968# Commands used to build an old-style archive.
19969old_archive_cmds=$lt_old_archive_cmds
19970
19971# A language specific compiler.
19972CC=$lt_compiler
19973
19974# Is the compiler the GNU compiler?
19975with_gcc=$GCC
19976
19977# Compiler flag to turn off builtin functions.
19978no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19979
19980# Additional compiler flags for building library objects.
19981pic_flag=$lt_lt_prog_compiler_pic
19982
19983# How to pass a linker flag through the compiler.
19984wl=$lt_lt_prog_compiler_wl
19985
19986# Compiler flag to prevent dynamic linking.
19987link_static_flag=$lt_lt_prog_compiler_static
19988
19989# Does compiler simultaneously support -c and -o options?
19990compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19991
19992# Whether or not to add -lc for building shared libraries.
19993build_libtool_need_lc=$archive_cmds_need_lc
19994
19995# Whether or not to disallow shared libs when runtime libs are static.
19996allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19997
19998# Compiler flag to allow reflexive dlopens.
19999export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20000
20001# Compiler flag to generate shared objects directly from archives.
20002whole_archive_flag_spec=$lt_whole_archive_flag_spec
20003
20004# Whether the compiler copes with passing no objects directly.
20005compiler_needs_object=$lt_compiler_needs_object
20006
20007# Create an old-style archive from a shared archive.
20008old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20009
20010# Create a temporary old-style archive to link instead of a shared archive.
20011old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20012
20013# Commands used to build a shared archive.
20014archive_cmds=$lt_archive_cmds
20015archive_expsym_cmds=$lt_archive_expsym_cmds
20016
20017# Commands used to build a loadable module if different from building
20018# a shared archive.
20019module_cmds=$lt_module_cmds
20020module_expsym_cmds=$lt_module_expsym_cmds
20021
20022# Whether we are building with GNU ld or not.
20023with_gnu_ld=$lt_with_gnu_ld
20024
20025# Flag that allows shared libraries with undefined symbols to be built.
20026allow_undefined_flag=$lt_allow_undefined_flag
20027
20028# Flag that enforces no undefined symbols.
20029no_undefined_flag=$lt_no_undefined_flag
20030
20031# Flag to hardcode \$libdir into a binary during linking.
20032# This must work even if \$libdir does not exist
20033hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20034
20035# If ld is used when linking, flag to hardcode \$libdir into a binary
20036# during linking.  This must work even if \$libdir does not exist.
20037hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20038
20039# Whether we need a single "-rpath" flag with a separated argument.
20040hardcode_libdir_separator=$lt_hardcode_libdir_separator
20041
20042# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20043# DIR into the resulting binary.
20044hardcode_direct=$hardcode_direct
20045
20046# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20047# DIR into the resulting binary and the resulting library dependency is
20048# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20049# library is relocated.
20050hardcode_direct_absolute=$hardcode_direct_absolute
20051
20052# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20053# into the resulting binary.
20054hardcode_minus_L=$hardcode_minus_L
20055
20056# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20057# into the resulting binary.
20058hardcode_shlibpath_var=$hardcode_shlibpath_var
20059
20060# Set to "yes" if building a shared library automatically hardcodes DIR
20061# into the library and all subsequent libraries and executables linked
20062# against it.
20063hardcode_automatic=$hardcode_automatic
20064
20065# Set to yes if linker adds runtime paths of dependent libraries
20066# to runtime path list.
20067inherit_rpath=$inherit_rpath
20068
20069# Whether libtool must link a program against all its dependency libraries.
20070link_all_deplibs=$link_all_deplibs
20071
20072# Set to "yes" if exported symbols are required.
20073always_export_symbols=$always_export_symbols
20074
20075# The commands to list exported symbols.
20076export_symbols_cmds=$lt_export_symbols_cmds
20077
20078# Symbols that should not be listed in the preloaded symbols.
20079exclude_expsyms=$lt_exclude_expsyms
20080
20081# Symbols that must always be exported.
20082include_expsyms=$lt_include_expsyms
20083
20084# Commands necessary for linking programs (against libraries) with templates.
20085prelink_cmds=$lt_prelink_cmds
20086
20087# Commands necessary for finishing linking programs.
20088postlink_cmds=$lt_postlink_cmds
20089
20090# Specify filename containing input files.
20091file_list_spec=$lt_file_list_spec
20092
20093# How to hardcode a shared library path into an executable.
20094hardcode_action=$hardcode_action
20095
20096# ### END LIBTOOL CONFIG
20097
20098_LT_EOF
20099
20100  case $host_os in
20101  aix3*)
20102    cat <<\_LT_EOF >> "$cfgfile"
20103# AIX sometimes has problems with the GCC collect2 program.  For some
20104# reason, if we set the COLLECT_NAMES environment variable, the problems
20105# vanish in a puff of smoke.
20106if test "X${COLLECT_NAMES+set}" != Xset; then
20107  COLLECT_NAMES=
20108  export COLLECT_NAMES
20109fi
20110_LT_EOF
20111    ;;
20112  esac
20113
20114
20115ltmain="$ac_aux_dir/ltmain.sh"
20116
20117
20118  # We use sed instead of cat because bash on DJGPP gets confused if
20119  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20120  # text mode, it properly converts lines to CR/LF.  This bash problem
20121  # is reportedly fixed, but why not run on old versions too?
20122  sed '$q' "$ltmain" >> "$cfgfile" \
20123     || (rm -f "$cfgfile"; exit 1)
20124
20125  if test x"$xsi_shell" = xyes; then
20126  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20127func_dirname ()\
20128{\
20129\    case ${1} in\
20130\      */*) func_dirname_result="${1%/*}${2}" ;;\
20131\      *  ) func_dirname_result="${3}" ;;\
20132\    esac\
20133} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20134  && mv -f "$cfgfile.tmp" "$cfgfile" \
20135    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20136test 0 -eq $? || _lt_function_replace_fail=:
20137
20138
20139  sed -e '/^func_basename ()$/,/^} # func_basename /c\
20140func_basename ()\
20141{\
20142\    func_basename_result="${1##*/}"\
20143} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20144  && mv -f "$cfgfile.tmp" "$cfgfile" \
20145    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20146test 0 -eq $? || _lt_function_replace_fail=:
20147
20148
20149  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20150func_dirname_and_basename ()\
20151{\
20152\    case ${1} in\
20153\      */*) func_dirname_result="${1%/*}${2}" ;;\
20154\      *  ) func_dirname_result="${3}" ;;\
20155\    esac\
20156\    func_basename_result="${1##*/}"\
20157} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20158  && mv -f "$cfgfile.tmp" "$cfgfile" \
20159    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20160test 0 -eq $? || _lt_function_replace_fail=:
20161
20162
20163  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20164func_stripname ()\
20165{\
20166\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20167\    # positional parameters, so assign one to ordinary parameter first.\
20168\    func_stripname_result=${3}\
20169\    func_stripname_result=${func_stripname_result#"${1}"}\
20170\    func_stripname_result=${func_stripname_result%"${2}"}\
20171} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20172  && mv -f "$cfgfile.tmp" "$cfgfile" \
20173    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20174test 0 -eq $? || _lt_function_replace_fail=:
20175
20176
20177  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20178func_split_long_opt ()\
20179{\
20180\    func_split_long_opt_name=${1%%=*}\
20181\    func_split_long_opt_arg=${1#*=}\
20182} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20183  && mv -f "$cfgfile.tmp" "$cfgfile" \
20184    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20185test 0 -eq $? || _lt_function_replace_fail=:
20186
20187
20188  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20189func_split_short_opt ()\
20190{\
20191\    func_split_short_opt_arg=${1#??}\
20192\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20193} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20194  && mv -f "$cfgfile.tmp" "$cfgfile" \
20195    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20196test 0 -eq $? || _lt_function_replace_fail=:
20197
20198
20199  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20200func_lo2o ()\
20201{\
20202\    case ${1} in\
20203\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20204\      *)    func_lo2o_result=${1} ;;\
20205\    esac\
20206} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20207  && mv -f "$cfgfile.tmp" "$cfgfile" \
20208    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20209test 0 -eq $? || _lt_function_replace_fail=:
20210
20211
20212  sed -e '/^func_xform ()$/,/^} # func_xform /c\
20213func_xform ()\
20214{\
20215    func_xform_result=${1%.*}.lo\
20216} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20217  && mv -f "$cfgfile.tmp" "$cfgfile" \
20218    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20219test 0 -eq $? || _lt_function_replace_fail=:
20220
20221
20222  sed -e '/^func_arith ()$/,/^} # func_arith /c\
20223func_arith ()\
20224{\
20225    func_arith_result=$(( $* ))\
20226} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20227  && mv -f "$cfgfile.tmp" "$cfgfile" \
20228    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20229test 0 -eq $? || _lt_function_replace_fail=:
20230
20231
20232  sed -e '/^func_len ()$/,/^} # func_len /c\
20233func_len ()\
20234{\
20235    func_len_result=${#1}\
20236} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20237  && mv -f "$cfgfile.tmp" "$cfgfile" \
20238    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20239test 0 -eq $? || _lt_function_replace_fail=:
20240
20241fi
20242
20243if test x"$lt_shell_append" = xyes; then
20244  sed -e '/^func_append ()$/,/^} # func_append /c\
20245func_append ()\
20246{\
20247    eval "${1}+=\\${2}"\
20248} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20249  && mv -f "$cfgfile.tmp" "$cfgfile" \
20250    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20251test 0 -eq $? || _lt_function_replace_fail=:
20252
20253
20254  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20255func_append_quoted ()\
20256{\
20257\    func_quote_for_eval "${2}"\
20258\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20259} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20260  && mv -f "$cfgfile.tmp" "$cfgfile" \
20261    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20262test 0 -eq $? || _lt_function_replace_fail=:
20263
20264
20265  # Save a `func_append' function call where possible by direct use of '+='
20266  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20267    && mv -f "$cfgfile.tmp" "$cfgfile" \
20268      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20269  test 0 -eq $? || _lt_function_replace_fail=:
20270else
20271  # Save a `func_append' function call even when '+=' is not available
20272  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20273    && mv -f "$cfgfile.tmp" "$cfgfile" \
20274      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20275  test 0 -eq $? || _lt_function_replace_fail=:
20276fi
20277
20278if test x"$_lt_function_replace_fail" = x":"; then
20279  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20280$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20281fi
20282
20283
20284   mv -f "$cfgfile" "$ofile" ||
20285    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20286  chmod +x "$ofile"
20287
20288 ;;
20289    "disable-rpath":C)
20290	sed < libtool > libtool-2 \
20291	's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
20292	mv libtool-2 libtool
20293	chmod 755 libtool
20294	libtool="./libtool"
20295	 ;;
20296
20297  esac
20298done # for ac_tag
20299
20300
20301as_fn_exit 0
20302_ACEOF
20303ac_clean_files=$ac_clean_files_save
20304
20305test $ac_write_fail = 0 ||
20306  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20307
20308
20309# configure is writing to config.log, and then calls config.status.
20310# config.status does its own redirection, appending to config.log.
20311# Unfortunately, on DOS this fails, as config.log is still kept open
20312# by configure, so config.status won't be able to write to it; its
20313# output is simply discarded.  So we exec the FD to /dev/null,
20314# effectively closing config.log, so it can be properly (re)opened and
20315# appended to by config.status.  When coming back to configure, we
20316# need to make the FD available again.
20317if test "$no_create" != yes; then
20318  ac_cs_success=:
20319  ac_config_status_args=
20320  test "$silent" = yes &&
20321    ac_config_status_args="$ac_config_status_args --quiet"
20322  exec 5>/dev/null
20323  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20324  exec 5>>config.log
20325  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20326  # would make configure fail if this is the last instruction.
20327  $ac_cs_success || as_fn_exit 1
20328fi
20329if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20330  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20331$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20332fi
20333
20334