xref: /freebsd/contrib/unbound/configure (revision 206b73d0)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for unbound 1.9.2.
4#
5# Report bugs to <unbound-bugs@nlnetlabs.nl>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: unbound-bugs@nlnetlabs.nl about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='unbound'
592PACKAGE_TARNAME='unbound'
593PACKAGE_VERSION='1.9.2'
594PACKAGE_STRING='unbound 1.9.2'
595PACKAGE_BUGREPORT='unbound-bugs@nlnetlabs.nl'
596PACKAGE_URL=''
597
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612#  include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617#  include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
634ac_subst_vars='LTLIBOBJS
635date
636version
637INSTALLTARGET
638ALLTARGET
639SOURCEFILE
640SOURCEDETERMINE
641IPSECMOD_HEADER
642IPSECMOD_OBJ
643DNSCRYPT_OBJ
644DNSCRYPT_SRC
645ENABLE_DNSCRYPT
646ENABLE_DNSCRYPT_XCHACHA20
647DNSTAP_OBJ
648DNSTAP_SRC
649opt_dnstap_socket_path
650ENABLE_DNSTAP
651PROTOC_C
652UBSYMS
653EXTRALINK
654COMMON_OBJ_ALL_SYMBOLS
655LIBOBJ_WITHOUT_CTIME
656LIBOBJ_WITHOUT_CTIMEARC4
657WIN_CHECKCONF_OBJ_LINK
658WIN_CONTROL_OBJ_LINK
659WIN_UBANCHOR_OBJ_LINK
660WIN_HOST_OBJ_LINK
661WIN_DAEMON_OBJ_LINK
662WIN_DAEMON_OBJ
663WIN_DAEMON_SRC
664WINAPPS
665WINDRES
666CHECKLOCK_OBJ
667USE_SYSTEMD_FALSE
668USE_SYSTEMD_TRUE
669SYSTEMD_DAEMON_LIBS
670SYSTEMD_DAEMON_CFLAGS
671SYSTEMD_LIBS
672SYSTEMD_CFLAGS
673staticexe
674PC_LIBEVENT_DEPENDENCY
675UNBOUND_EVENT_UNINSTALL
676UNBOUND_EVENT_INSTALL
677SUBNET_HEADER
678SUBNET_OBJ
679SSLLIB
680HAVE_SSL
681CONFIG_DATE
682NETBSD_LINTFLAGS
683PYUNBOUND_UNINSTALL
684PYUNBOUND_INSTALL
685PYUNBOUND_TARGET
686PYUNBOUND_OBJ
687WITH_PYUNBOUND
688PYTHONMOD_UNINSTALL
689PYTHONMOD_INSTALL
690PYTHONMOD_HEADER
691PYTHONMOD_OBJ
692WITH_PYTHONMODULE
693swig
694SWIG_LIB
695SWIG
696PC_PY_DEPENDENCY
697PY_MAJOR_VERSION
698PYTHON_SITE_PKG
699PYTHON_LDFLAGS
700PYTHON_CPPFLAGS
701PYTHON
702PYTHON_VERSION
703PTHREAD_CFLAGS_ONLY
704PTHREAD_CFLAGS
705PTHREAD_LIBS
706PTHREAD_CC
707ax_pthread_config
708RUNTIME_PATH
709LIBOBJS
710PKG_CONFIG_LIBDIR
711PKG_CONFIG_PATH
712PKG_CONFIG
713LT_SYS_LIBRARY_PATH
714OTOOL64
715OTOOL
716LIPO
717NMEDIT
718DSYMUTIL
719MANIFEST_TOOL
720AWK
721RANLIB
722ac_ct_AR
723DLLTOOL
724OBJDUMP
725LN_S
726NM
727ac_ct_DUMPBIN
728DUMPBIN
729LD
730FGREP
731SED
732LIBTOOL
733AR
734host_os
735host_vendor
736host_cpu
737host
738build_os
739build_vendor
740build_cpu
741build
742libtool
743STRIP
744doxygen
745YFLAGS
746YACC
747LEXLIB
748LEX_OUTPUT_ROOT
749LEX
750debug_enabled
751DEPFLAG
752UNBOUND_USERNAME
753UNBOUND_ROOTCERT_FILE
754UNBOUND_ROOTKEY_FILE
755UNBOUND_PIDFILE
756UNBOUND_SHARE_DIR
757UNBOUND_CHROOT_DIR
758UNBOUND_RUN_DIR
759ub_conf_dir
760ub_conf_file
761UNBOUND_LOCALSTATE_DIR
762UNBOUND_SYSCONF_DIR
763UNBOUND_SBIN_DIR
764EGREP
765GREP
766CPP
767OBJEXT
768EXEEXT
769ac_ct_CC
770CPPFLAGS
771LDFLAGS
772CFLAGS
773CC
774LIBUNBOUND_AGE
775LIBUNBOUND_REVISION
776LIBUNBOUND_CURRENT
777UNBOUND_VERSION_MICRO
778UNBOUND_VERSION_MINOR
779UNBOUND_VERSION_MAJOR
780target_alias
781host_alias
782build_alias
783LIBS
784ECHO_T
785ECHO_N
786ECHO_C
787DEFS
788mandir
789localedir
790libdir
791psdir
792pdfdir
793dvidir
794htmldir
795infodir
796docdir
797oldincludedir
798includedir
799localstatedir
800sharedstatedir
801sysconfdir
802datadir
803datarootdir
804libexecdir
805sbindir
806bindir
807program_transform_name
808prefix
809exec_prefix
810PACKAGE_URL
811PACKAGE_BUGREPORT
812PACKAGE_STRING
813PACKAGE_VERSION
814PACKAGE_TARNAME
815PACKAGE_NAME
816PATH_SEPARATOR
817SHELL'
818ac_subst_files=''
819ac_user_opts='
820enable_option_checking
821with_conf_file
822with_run_dir
823with_chroot_dir
824with_share_dir
825with_pidfile
826with_rootkey_file
827with_rootcert_file
828with_username
829enable_checking
830enable_debug
831enable_flto
832enable_pie
833enable_relro_now
834enable_shared
835enable_static
836with_pic
837enable_fast_install
838with_aix_soname
839with_gnu_ld
840with_sysroot
841enable_libtool_lock
842enable_rpath
843enable_largefile
844enable_alloc_checks
845enable_alloc_lite
846enable_alloc_nonregional
847with_pthreads
848with_solaris_threads
849with_pyunbound
850with_pythonmodule
851enable_swig_version_check
852with_nss
853with_nettle
854with_ssl
855enable_sha1
856enable_sha2
857enable_subnet
858enable_gost
859enable_ecdsa
860enable_dsa
861enable_ed25519
862enable_ed448
863enable_event_api
864enable_tfo_client
865enable_tfo_server
866with_libevent
867with_libexpat
868with_libhiredis
869enable_static_exe
870enable_systemd
871enable_lock_checks
872enable_allsymbols
873enable_dnstap
874with_dnstap_socket_path
875with_protobuf_c
876with_libfstrm
877enable_dnscrypt
878with_libsodium
879enable_cachedb
880enable_ipsecmod
881with_libunbound_only
882'
883      ac_precious_vars='build_alias
884host_alias
885target_alias
886CC
887CFLAGS
888LDFLAGS
889LIBS
890CPPFLAGS
891CPP
892YACC
893YFLAGS
894LT_SYS_LIBRARY_PATH
895PKG_CONFIG
896PKG_CONFIG_PATH
897PKG_CONFIG_LIBDIR
898PYTHON_VERSION
899SYSTEMD_CFLAGS
900SYSTEMD_LIBS
901SYSTEMD_DAEMON_CFLAGS
902SYSTEMD_DAEMON_LIBS'
903
904
905# Initialize some variables set by options.
906ac_init_help=
907ac_init_version=false
908ac_unrecognized_opts=
909ac_unrecognized_sep=
910# The variables have the same names as the options, with
911# dashes changed to underlines.
912cache_file=/dev/null
913exec_prefix=NONE
914no_create=
915no_recursion=
916prefix=NONE
917program_prefix=NONE
918program_suffix=NONE
919program_transform_name=s,x,x,
920silent=
921site=
922srcdir=
923verbose=
924x_includes=NONE
925x_libraries=NONE
926
927# Installation directory options.
928# These are left unexpanded so users can "make install exec_prefix=/foo"
929# and all the variables that are supposed to be based on exec_prefix
930# by default will actually change.
931# Use braces instead of parens because sh, perl, etc. also accept them.
932# (The list follows the same order as the GNU Coding Standards.)
933bindir='${exec_prefix}/bin'
934sbindir='${exec_prefix}/sbin'
935libexecdir='${exec_prefix}/libexec'
936datarootdir='${prefix}/share'
937datadir='${datarootdir}'
938sysconfdir='${prefix}/etc'
939sharedstatedir='${prefix}/com'
940localstatedir='${prefix}/var'
941includedir='${prefix}/include'
942oldincludedir='/usr/include'
943docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
944infodir='${datarootdir}/info'
945htmldir='${docdir}'
946dvidir='${docdir}'
947pdfdir='${docdir}'
948psdir='${docdir}'
949libdir='${exec_prefix}/lib'
950localedir='${datarootdir}/locale'
951mandir='${datarootdir}/man'
952
953ac_prev=
954ac_dashdash=
955for ac_option
956do
957  # If the previous option needs an argument, assign it.
958  if test -n "$ac_prev"; then
959    eval $ac_prev=\$ac_option
960    ac_prev=
961    continue
962  fi
963
964  case $ac_option in
965  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
966  *=)   ac_optarg= ;;
967  *)    ac_optarg=yes ;;
968  esac
969
970  # Accept the important Cygnus configure options, so we can diagnose typos.
971
972  case $ac_dashdash$ac_option in
973  --)
974    ac_dashdash=yes ;;
975
976  -bindir | --bindir | --bindi | --bind | --bin | --bi)
977    ac_prev=bindir ;;
978  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
979    bindir=$ac_optarg ;;
980
981  -build | --build | --buil | --bui | --bu)
982    ac_prev=build_alias ;;
983  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
984    build_alias=$ac_optarg ;;
985
986  -cache-file | --cache-file | --cache-fil | --cache-fi \
987  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
988    ac_prev=cache_file ;;
989  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
990  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
991    cache_file=$ac_optarg ;;
992
993  --config-cache | -C)
994    cache_file=config.cache ;;
995
996  -datadir | --datadir | --datadi | --datad)
997    ac_prev=datadir ;;
998  -datadir=* | --datadir=* | --datadi=* | --datad=*)
999    datadir=$ac_optarg ;;
1000
1001  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1002  | --dataroo | --dataro | --datar)
1003    ac_prev=datarootdir ;;
1004  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1005  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1006    datarootdir=$ac_optarg ;;
1007
1008  -disable-* | --disable-*)
1009    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1010    # Reject names that are not valid shell variable names.
1011    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012      as_fn_error $? "invalid feature name: $ac_useropt"
1013    ac_useropt_orig=$ac_useropt
1014    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015    case $ac_user_opts in
1016      *"
1017"enable_$ac_useropt"
1018"*) ;;
1019      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1020	 ac_unrecognized_sep=', ';;
1021    esac
1022    eval enable_$ac_useropt=no ;;
1023
1024  -docdir | --docdir | --docdi | --doc | --do)
1025    ac_prev=docdir ;;
1026  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1027    docdir=$ac_optarg ;;
1028
1029  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1030    ac_prev=dvidir ;;
1031  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1032    dvidir=$ac_optarg ;;
1033
1034  -enable-* | --enable-*)
1035    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1036    # Reject names that are not valid shell variable names.
1037    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1038      as_fn_error $? "invalid feature name: $ac_useropt"
1039    ac_useropt_orig=$ac_useropt
1040    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1041    case $ac_user_opts in
1042      *"
1043"enable_$ac_useropt"
1044"*) ;;
1045      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1046	 ac_unrecognized_sep=', ';;
1047    esac
1048    eval enable_$ac_useropt=\$ac_optarg ;;
1049
1050  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1051  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1052  | --exec | --exe | --ex)
1053    ac_prev=exec_prefix ;;
1054  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1055  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1056  | --exec=* | --exe=* | --ex=*)
1057    exec_prefix=$ac_optarg ;;
1058
1059  -gas | --gas | --ga | --g)
1060    # Obsolete; use --with-gas.
1061    with_gas=yes ;;
1062
1063  -help | --help | --hel | --he | -h)
1064    ac_init_help=long ;;
1065  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1066    ac_init_help=recursive ;;
1067  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1068    ac_init_help=short ;;
1069
1070  -host | --host | --hos | --ho)
1071    ac_prev=host_alias ;;
1072  -host=* | --host=* | --hos=* | --ho=*)
1073    host_alias=$ac_optarg ;;
1074
1075  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1076    ac_prev=htmldir ;;
1077  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1078  | --ht=*)
1079    htmldir=$ac_optarg ;;
1080
1081  -includedir | --includedir | --includedi | --included | --include \
1082  | --includ | --inclu | --incl | --inc)
1083    ac_prev=includedir ;;
1084  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1085  | --includ=* | --inclu=* | --incl=* | --inc=*)
1086    includedir=$ac_optarg ;;
1087
1088  -infodir | --infodir | --infodi | --infod | --info | --inf)
1089    ac_prev=infodir ;;
1090  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1091    infodir=$ac_optarg ;;
1092
1093  -libdir | --libdir | --libdi | --libd)
1094    ac_prev=libdir ;;
1095  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1096    libdir=$ac_optarg ;;
1097
1098  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1099  | --libexe | --libex | --libe)
1100    ac_prev=libexecdir ;;
1101  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1102  | --libexe=* | --libex=* | --libe=*)
1103    libexecdir=$ac_optarg ;;
1104
1105  -localedir | --localedir | --localedi | --localed | --locale)
1106    ac_prev=localedir ;;
1107  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1108    localedir=$ac_optarg ;;
1109
1110  -localstatedir | --localstatedir | --localstatedi | --localstated \
1111  | --localstate | --localstat | --localsta | --localst | --locals)
1112    ac_prev=localstatedir ;;
1113  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1114  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1115    localstatedir=$ac_optarg ;;
1116
1117  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1118    ac_prev=mandir ;;
1119  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1120    mandir=$ac_optarg ;;
1121
1122  -nfp | --nfp | --nf)
1123    # Obsolete; use --without-fp.
1124    with_fp=no ;;
1125
1126  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1127  | --no-cr | --no-c | -n)
1128    no_create=yes ;;
1129
1130  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1131  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1132    no_recursion=yes ;;
1133
1134  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1135  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1136  | --oldin | --oldi | --old | --ol | --o)
1137    ac_prev=oldincludedir ;;
1138  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1139  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1140  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1141    oldincludedir=$ac_optarg ;;
1142
1143  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1144    ac_prev=prefix ;;
1145  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1146    prefix=$ac_optarg ;;
1147
1148  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1149  | --program-pre | --program-pr | --program-p)
1150    ac_prev=program_prefix ;;
1151  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1152  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1153    program_prefix=$ac_optarg ;;
1154
1155  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1156  | --program-suf | --program-su | --program-s)
1157    ac_prev=program_suffix ;;
1158  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1159  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1160    program_suffix=$ac_optarg ;;
1161
1162  -program-transform-name | --program-transform-name \
1163  | --program-transform-nam | --program-transform-na \
1164  | --program-transform-n | --program-transform- \
1165  | --program-transform | --program-transfor \
1166  | --program-transfo | --program-transf \
1167  | --program-trans | --program-tran \
1168  | --progr-tra | --program-tr | --program-t)
1169    ac_prev=program_transform_name ;;
1170  -program-transform-name=* | --program-transform-name=* \
1171  | --program-transform-nam=* | --program-transform-na=* \
1172  | --program-transform-n=* | --program-transform-=* \
1173  | --program-transform=* | --program-transfor=* \
1174  | --program-transfo=* | --program-transf=* \
1175  | --program-trans=* | --program-tran=* \
1176  | --progr-tra=* | --program-tr=* | --program-t=*)
1177    program_transform_name=$ac_optarg ;;
1178
1179  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1180    ac_prev=pdfdir ;;
1181  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1182    pdfdir=$ac_optarg ;;
1183
1184  -psdir | --psdir | --psdi | --psd | --ps)
1185    ac_prev=psdir ;;
1186  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1187    psdir=$ac_optarg ;;
1188
1189  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1190  | -silent | --silent | --silen | --sile | --sil)
1191    silent=yes ;;
1192
1193  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1194    ac_prev=sbindir ;;
1195  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1196  | --sbi=* | --sb=*)
1197    sbindir=$ac_optarg ;;
1198
1199  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1200  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1201  | --sharedst | --shareds | --shared | --share | --shar \
1202  | --sha | --sh)
1203    ac_prev=sharedstatedir ;;
1204  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1205  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1206  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1207  | --sha=* | --sh=*)
1208    sharedstatedir=$ac_optarg ;;
1209
1210  -site | --site | --sit)
1211    ac_prev=site ;;
1212  -site=* | --site=* | --sit=*)
1213    site=$ac_optarg ;;
1214
1215  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1216    ac_prev=srcdir ;;
1217  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1218    srcdir=$ac_optarg ;;
1219
1220  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1221  | --syscon | --sysco | --sysc | --sys | --sy)
1222    ac_prev=sysconfdir ;;
1223  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1224  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1225    sysconfdir=$ac_optarg ;;
1226
1227  -target | --target | --targe | --targ | --tar | --ta | --t)
1228    ac_prev=target_alias ;;
1229  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1230    target_alias=$ac_optarg ;;
1231
1232  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1233    verbose=yes ;;
1234
1235  -version | --version | --versio | --versi | --vers | -V)
1236    ac_init_version=: ;;
1237
1238  -with-* | --with-*)
1239    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1240    # Reject names that are not valid shell variable names.
1241    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1242      as_fn_error $? "invalid package name: $ac_useropt"
1243    ac_useropt_orig=$ac_useropt
1244    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245    case $ac_user_opts in
1246      *"
1247"with_$ac_useropt"
1248"*) ;;
1249      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1250	 ac_unrecognized_sep=', ';;
1251    esac
1252    eval with_$ac_useropt=\$ac_optarg ;;
1253
1254  -without-* | --without-*)
1255    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1256    # Reject names that are not valid shell variable names.
1257    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258      as_fn_error $? "invalid package name: $ac_useropt"
1259    ac_useropt_orig=$ac_useropt
1260    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261    case $ac_user_opts in
1262      *"
1263"with_$ac_useropt"
1264"*) ;;
1265      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1266	 ac_unrecognized_sep=', ';;
1267    esac
1268    eval with_$ac_useropt=no ;;
1269
1270  --x)
1271    # Obsolete; use --with-x.
1272    with_x=yes ;;
1273
1274  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1275  | --x-incl | --x-inc | --x-in | --x-i)
1276    ac_prev=x_includes ;;
1277  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1278  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1279    x_includes=$ac_optarg ;;
1280
1281  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1282  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1283    ac_prev=x_libraries ;;
1284  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1285  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1286    x_libraries=$ac_optarg ;;
1287
1288  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1289Try \`$0 --help' for more information"
1290    ;;
1291
1292  *=*)
1293    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1294    # Reject names that are not valid shell variable names.
1295    case $ac_envvar in #(
1296      '' | [0-9]* | *[!_$as_cr_alnum]* )
1297      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1298    esac
1299    eval $ac_envvar=\$ac_optarg
1300    export $ac_envvar ;;
1301
1302  *)
1303    # FIXME: should be removed in autoconf 3.0.
1304    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1305    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1306      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1307    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1308    ;;
1309
1310  esac
1311done
1312
1313if test -n "$ac_prev"; then
1314  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1315  as_fn_error $? "missing argument to $ac_option"
1316fi
1317
1318if test -n "$ac_unrecognized_opts"; then
1319  case $enable_option_checking in
1320    no) ;;
1321    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1322    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1323  esac
1324fi
1325
1326# Check all directory arguments for consistency.
1327for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1328		datadir sysconfdir sharedstatedir localstatedir includedir \
1329		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1330		libdir localedir mandir
1331do
1332  eval ac_val=\$$ac_var
1333  # Remove trailing slashes.
1334  case $ac_val in
1335    */ )
1336      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1337      eval $ac_var=\$ac_val;;
1338  esac
1339  # Be sure to have absolute directory names.
1340  case $ac_val in
1341    [\\/$]* | ?:[\\/]* )  continue;;
1342    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1343  esac
1344  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1345done
1346
1347# There might be people who depend on the old broken behavior: `$host'
1348# used to hold the argument of --host etc.
1349# FIXME: To remove some day.
1350build=$build_alias
1351host=$host_alias
1352target=$target_alias
1353
1354# FIXME: To remove some day.
1355if test "x$host_alias" != x; then
1356  if test "x$build_alias" = x; then
1357    cross_compiling=maybe
1358  elif test "x$build_alias" != "x$host_alias"; then
1359    cross_compiling=yes
1360  fi
1361fi
1362
1363ac_tool_prefix=
1364test -n "$host_alias" && ac_tool_prefix=$host_alias-
1365
1366test "$silent" = yes && exec 6>/dev/null
1367
1368
1369ac_pwd=`pwd` && test -n "$ac_pwd" &&
1370ac_ls_di=`ls -di .` &&
1371ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1372  as_fn_error $? "working directory cannot be determined"
1373test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1374  as_fn_error $? "pwd does not report name of working directory"
1375
1376
1377# Find the source files, if location was not specified.
1378if test -z "$srcdir"; then
1379  ac_srcdir_defaulted=yes
1380  # Try the directory containing this script, then the parent directory.
1381  ac_confdir=`$as_dirname -- "$as_myself" ||
1382$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1383	 X"$as_myself" : 'X\(//\)[^/]' \| \
1384	 X"$as_myself" : 'X\(//\)$' \| \
1385	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1386$as_echo X"$as_myself" |
1387    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1388	    s//\1/
1389	    q
1390	  }
1391	  /^X\(\/\/\)[^/].*/{
1392	    s//\1/
1393	    q
1394	  }
1395	  /^X\(\/\/\)$/{
1396	    s//\1/
1397	    q
1398	  }
1399	  /^X\(\/\).*/{
1400	    s//\1/
1401	    q
1402	  }
1403	  s/.*/./; q'`
1404  srcdir=$ac_confdir
1405  if test ! -r "$srcdir/$ac_unique_file"; then
1406    srcdir=..
1407  fi
1408else
1409  ac_srcdir_defaulted=no
1410fi
1411if test ! -r "$srcdir/$ac_unique_file"; then
1412  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1413  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1414fi
1415ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1416ac_abs_confdir=`(
1417	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1418	pwd)`
1419# When building in place, set srcdir=.
1420if test "$ac_abs_confdir" = "$ac_pwd"; then
1421  srcdir=.
1422fi
1423# Remove unnecessary trailing slashes from srcdir.
1424# Double slashes in file names in object file debugging info
1425# mess up M-x gdb in Emacs.
1426case $srcdir in
1427*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1428esac
1429for ac_var in $ac_precious_vars; do
1430  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1431  eval ac_env_${ac_var}_value=\$${ac_var}
1432  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1433  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1434done
1435
1436#
1437# Report the --help message.
1438#
1439if test "$ac_init_help" = "long"; then
1440  # Omit some internal or obsolete options to make the list less imposing.
1441  # This message is too long to be a string in the A/UX 3.1 sh.
1442  cat <<_ACEOF
1443\`configure' configures unbound 1.9.2 to adapt to many kinds of systems.
1444
1445Usage: $0 [OPTION]... [VAR=VALUE]...
1446
1447To assign environment variables (e.g., CC, CFLAGS...), specify them as
1448VAR=VALUE.  See below for descriptions of some of the useful variables.
1449
1450Defaults for the options are specified in brackets.
1451
1452Configuration:
1453  -h, --help              display this help and exit
1454      --help=short        display options specific to this package
1455      --help=recursive    display the short help of all the included packages
1456  -V, --version           display version information and exit
1457  -q, --quiet, --silent   do not print \`checking ...' messages
1458      --cache-file=FILE   cache test results in FILE [disabled]
1459  -C, --config-cache      alias for \`--cache-file=config.cache'
1460  -n, --no-create         do not create output files
1461      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1462
1463Installation directories:
1464  --prefix=PREFIX         install architecture-independent files in PREFIX
1465                          [$ac_default_prefix]
1466  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1467                          [PREFIX]
1468
1469By default, \`make install' will install all the files in
1470\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1471an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1472for instance \`--prefix=\$HOME'.
1473
1474For better control, use the options below.
1475
1476Fine tuning of the installation directories:
1477  --bindir=DIR            user executables [EPREFIX/bin]
1478  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1479  --libexecdir=DIR        program executables [EPREFIX/libexec]
1480  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1481  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1482  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1483  --libdir=DIR            object code libraries [EPREFIX/lib]
1484  --includedir=DIR        C header files [PREFIX/include]
1485  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1486  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1487  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1488  --infodir=DIR           info documentation [DATAROOTDIR/info]
1489  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1490  --mandir=DIR            man documentation [DATAROOTDIR/man]
1491  --docdir=DIR            documentation root [DATAROOTDIR/doc/unbound]
1492  --htmldir=DIR           html documentation [DOCDIR]
1493  --dvidir=DIR            dvi documentation [DOCDIR]
1494  --pdfdir=DIR            pdf documentation [DOCDIR]
1495  --psdir=DIR             ps documentation [DOCDIR]
1496_ACEOF
1497
1498  cat <<\_ACEOF
1499
1500System types:
1501  --build=BUILD     configure for building on BUILD [guessed]
1502  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1503_ACEOF
1504fi
1505
1506if test -n "$ac_init_help"; then
1507  case $ac_init_help in
1508     short | recursive ) echo "Configuration of unbound 1.9.2:";;
1509   esac
1510  cat <<\_ACEOF
1511
1512Optional Features:
1513  --disable-option-checking  ignore unrecognized --enable/--with options
1514  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1515  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1516  --enable-checking       Enable warnings, asserts, makefile-dependencies
1517  --enable-debug          same as enable-checking
1518  --disable-flto          Disable link-time optimization (gcc specific option)
1519  --enable-pie            Enable Position-Independent Executable (eg. to fully
1520                          benefit from ASLR, small performance penalty)
1521  --enable-relro-now      Enable full relocation binding at load-time (RELRO
1522                          NOW, to protect GOT and .dtor areas)
1523  --enable-shared[=PKGS]  build shared libraries [default=yes]
1524  --enable-static[=PKGS]  build static libraries [default=yes]
1525  --enable-fast-install[=PKGS]
1526                          optimize for fast installation [default=yes]
1527  --disable-libtool-lock  avoid locking (might break parallel builds)
1528  --disable-rpath         disable hardcoded rpath (default=enabled)
1529  --disable-largefile     omit support for large files
1530  --enable-alloc-checks   enable to memory allocation statistics, for debug
1531                          purposes
1532  --enable-alloc-lite     enable for lightweight alloc assertions, for debug
1533                          purposes
1534  --enable-alloc-nonregional
1535                          enable nonregional allocs, slow but exposes regional
1536                          allocations to other memory purifiers, for debug
1537                          purposes
1538  --disable-swig-version-check
1539                          Disable swig version check to build python modules
1540                          with older swig even though that is unreliable
1541  --disable-sha1          Disable SHA1 RRSIG support, does not disable nsec3
1542                          support
1543  --disable-sha2          Disable SHA256 and SHA512 RRSIG support
1544  --enable-subnet         Enable client subnet
1545  --disable-gost          Disable GOST support
1546  --disable-ecdsa         Disable ECDSA support
1547  --disable-dsa           Disable DSA support
1548  --disable-ed25519       Disable ED25519 support
1549  --disable-ed448         Disable ED448 support
1550  --enable-event-api      Enable (experimental) pluggable event base
1551                          libunbound API installed to unbound-event.h
1552  --enable-tfo-client     Enable TCP Fast Open for client mode
1553  --enable-tfo-server     Enable TCP Fast Open for server mode
1554  --enable-static-exe     enable to compile executables statically against
1555                          (event) libs, for debug purposes
1556  --enable-systemd        compile with systemd support
1557  --enable-lock-checks    enable to check lock and unlock calls, for debug
1558                          purposes
1559  --enable-allsymbols     export all symbols from libunbound and link binaries
1560                          to it, smaller install size but libunbound export
1561                          table is polluted by internal symbols
1562  --enable-dnstap         Enable dnstap support (requires fstrm, protobuf-c)
1563  --enable-dnscrypt       Enable dnscrypt support (requires libsodium)
1564  --enable-cachedb        enable cachedb module that can use external cache
1565                          storage
1566  --enable-ipsecmod       Enable ipsecmod module that facilitates
1567                          opportunistic IPsec
1568
1569Optional Packages:
1570  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1571  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1572  --with-conf-file=path   Pathname to the Unbound configuration file
1573  --with-run-dir=path     set default directory to chdir to (by default dir
1574                          part of cfg file)
1575  --with-chroot-dir=path  set default directory to chroot to (by default same
1576                          as run-dir)
1577  --with-share-dir=path   set default directory with shared data (by default
1578                          same as share/unbound)
1579  --with-pidfile=filename set default pathname to unbound pidfile (default
1580                          run-dir/unbound.pid)
1581  --with-rootkey-file=filename
1582                          set default pathname to root key file (default
1583                          run-dir/root.key). This file is read and written.
1584  --with-rootcert-file=filename
1585                          set default pathname to root update certificate file
1586                          (default run-dir/icannbundle.pem). This file need
1587                          not exist if you are content with the builtin.
1588  --with-username=user    set default user that unbound changes to (default
1589                          user is unbound)
1590  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1591                          both]
1592  --with-aix-soname=aix|svr4|both
1593                          shared library versioning (aka "SONAME") variant to
1594                          provide on AIX, [default=aix].
1595  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1596  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1597                          compiler's sysroot if not specified).
1598  --with-pthreads         use pthreads library, or --without-pthreads to
1599                          disable threading support.
1600  --with-solaris-threads  use solaris native thread library.
1601  --with-pyunbound        build PyUnbound, or --without-pyunbound to skip it.
1602                          (default=no)
1603  --with-pythonmodule     build Python module, or --without-pythonmodule to
1604                          disable script engine. (default=no)
1605  --with-nss=path         use libnss instead of openssl, installed at path.
1606  --with-nettle=path      use libnettle as crypto library, installed at path.
1607  --with-ssl=pathname     enable SSL (will check /usr/local/ssl /usr/lib/ssl
1608                          /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1609                          /usr)
1610  --with-libevent=pathname
1611                          use libevent (will check /usr/local /opt/local
1612                          /usr/lib /usr/pkg /usr/sfw /usr or you can specify
1613                          an explicit path). Slower, but allows use of large
1614                          outgoing port ranges.
1615  --with-libexpat=path    specify explicit path for libexpat.
1616  --with-libhiredis=path  specify explicit path for libhiredis.
1617  --with-dnstap-socket-path=pathname
1618                          set default dnstap socket path
1619  --with-protobuf-c=path  Path where protobuf-c is installed, for dnstap
1620  --with-libfstrm=path    Path where libfstrm is installed, for dnstap
1621  --with-libsodium=path   Path where libsodium is installed, for dnscrypt
1622  --with-libunbound-only  do not build daemon and tool programs
1623
1624Some influential environment variables:
1625  CC          C compiler command
1626  CFLAGS      C compiler flags
1627  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1628              nonstandard directory <lib dir>
1629  LIBS        libraries to pass to the linker, e.g. -l<library>
1630  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1631              you have headers in a nonstandard directory <include dir>
1632  CPP         C preprocessor
1633  YACC        The `Yet Another Compiler Compiler' implementation to use.
1634              Defaults to the first program found out of: `bison -y', `byacc',
1635              `yacc'.
1636  YFLAGS      The list of arguments that will be passed by default to $YACC.
1637              This script will default YFLAGS to the empty string to avoid a
1638              default value of `-d' given by some make applications.
1639  LT_SYS_LIBRARY_PATH
1640              User-defined run-time library search path.
1641  PKG_CONFIG  path to pkg-config utility
1642  PKG_CONFIG_PATH
1643              directories to add to pkg-config's search path
1644  PKG_CONFIG_LIBDIR
1645              path overriding pkg-config's built-in search path
1646  PYTHON_VERSION
1647              The installed Python version to use, for example '2.3'. This
1648              string will be appended to the Python interpreter canonical
1649              name.
1650  SYSTEMD_CFLAGS
1651              C compiler flags for SYSTEMD, overriding pkg-config
1652  SYSTEMD_LIBS
1653              linker flags for SYSTEMD, overriding pkg-config
1654  SYSTEMD_DAEMON_CFLAGS
1655              C compiler flags for SYSTEMD_DAEMON, overriding pkg-config
1656  SYSTEMD_DAEMON_LIBS
1657              linker flags for SYSTEMD_DAEMON, overriding pkg-config
1658
1659Use these variables to override the choices made by `configure' or to help
1660it to find libraries and programs with nonstandard names/locations.
1661
1662Report bugs to <unbound-bugs@nlnetlabs.nl>.
1663_ACEOF
1664ac_status=$?
1665fi
1666
1667if test "$ac_init_help" = "recursive"; then
1668  # If there are subdirs, report their specific --help.
1669  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1670    test -d "$ac_dir" ||
1671      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1672      continue
1673    ac_builddir=.
1674
1675case "$ac_dir" in
1676.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1677*)
1678  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1679  # A ".." for each directory in $ac_dir_suffix.
1680  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1681  case $ac_top_builddir_sub in
1682  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1683  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1684  esac ;;
1685esac
1686ac_abs_top_builddir=$ac_pwd
1687ac_abs_builddir=$ac_pwd$ac_dir_suffix
1688# for backward compatibility:
1689ac_top_builddir=$ac_top_build_prefix
1690
1691case $srcdir in
1692  .)  # We are building in place.
1693    ac_srcdir=.
1694    ac_top_srcdir=$ac_top_builddir_sub
1695    ac_abs_top_srcdir=$ac_pwd ;;
1696  [\\/]* | ?:[\\/]* )  # Absolute name.
1697    ac_srcdir=$srcdir$ac_dir_suffix;
1698    ac_top_srcdir=$srcdir
1699    ac_abs_top_srcdir=$srcdir ;;
1700  *) # Relative name.
1701    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1702    ac_top_srcdir=$ac_top_build_prefix$srcdir
1703    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1704esac
1705ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1706
1707    cd "$ac_dir" || { ac_status=$?; continue; }
1708    # Check for guested configure.
1709    if test -f "$ac_srcdir/configure.gnu"; then
1710      echo &&
1711      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1712    elif test -f "$ac_srcdir/configure"; then
1713      echo &&
1714      $SHELL "$ac_srcdir/configure" --help=recursive
1715    else
1716      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1717    fi || ac_status=$?
1718    cd "$ac_pwd" || { ac_status=$?; break; }
1719  done
1720fi
1721
1722test -n "$ac_init_help" && exit $ac_status
1723if $ac_init_version; then
1724  cat <<\_ACEOF
1725unbound configure 1.9.2
1726generated by GNU Autoconf 2.69
1727
1728Copyright (C) 2012 Free Software Foundation, Inc.
1729This configure script is free software; the Free Software Foundation
1730gives unlimited permission to copy, distribute and modify it.
1731_ACEOF
1732  exit
1733fi
1734
1735## ------------------------ ##
1736## Autoconf initialization. ##
1737## ------------------------ ##
1738
1739# ac_fn_c_try_compile LINENO
1740# --------------------------
1741# Try to compile conftest.$ac_ext, and return whether this succeeded.
1742ac_fn_c_try_compile ()
1743{
1744  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745  rm -f conftest.$ac_objext
1746  if { { ac_try="$ac_compile"
1747case "(($ac_try" in
1748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749  *) ac_try_echo=$ac_try;;
1750esac
1751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752$as_echo "$ac_try_echo"; } >&5
1753  (eval "$ac_compile") 2>conftest.err
1754  ac_status=$?
1755  if test -s conftest.err; then
1756    grep -v '^ *+' conftest.err >conftest.er1
1757    cat conftest.er1 >&5
1758    mv -f conftest.er1 conftest.err
1759  fi
1760  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761  test $ac_status = 0; } && {
1762	 test -z "$ac_c_werror_flag" ||
1763	 test ! -s conftest.err
1764       } && test -s conftest.$ac_objext; then :
1765  ac_retval=0
1766else
1767  $as_echo "$as_me: failed program was:" >&5
1768sed 's/^/| /' conftest.$ac_ext >&5
1769
1770	ac_retval=1
1771fi
1772  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773  as_fn_set_status $ac_retval
1774
1775} # ac_fn_c_try_compile
1776
1777# ac_fn_c_try_cpp LINENO
1778# ----------------------
1779# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1780ac_fn_c_try_cpp ()
1781{
1782  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783  if { { ac_try="$ac_cpp conftest.$ac_ext"
1784case "(($ac_try" in
1785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786  *) ac_try_echo=$ac_try;;
1787esac
1788eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789$as_echo "$ac_try_echo"; } >&5
1790  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1791  ac_status=$?
1792  if test -s conftest.err; then
1793    grep -v '^ *+' conftest.err >conftest.er1
1794    cat conftest.er1 >&5
1795    mv -f conftest.er1 conftest.err
1796  fi
1797  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798  test $ac_status = 0; } > conftest.i && {
1799	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1800	 test ! -s conftest.err
1801       }; then :
1802  ac_retval=0
1803else
1804  $as_echo "$as_me: failed program was:" >&5
1805sed 's/^/| /' conftest.$ac_ext >&5
1806
1807    ac_retval=1
1808fi
1809  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810  as_fn_set_status $ac_retval
1811
1812} # ac_fn_c_try_cpp
1813
1814# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1815# -------------------------------------------------------
1816# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1817# the include files in INCLUDES and setting the cache variable VAR
1818# accordingly.
1819ac_fn_c_check_header_mongrel ()
1820{
1821  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822  if eval \${$3+:} false; then :
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
1827fi
1828eval ac_res=\$$3
1829	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830$as_echo "$ac_res" >&6; }
1831else
1832  # Is the header compilable?
1833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1834$as_echo_n "checking $2 usability... " >&6; }
1835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836/* end confdefs.h.  */
1837$4
1838#include <$2>
1839_ACEOF
1840if ac_fn_c_try_compile "$LINENO"; then :
1841  ac_header_compiler=yes
1842else
1843  ac_header_compiler=no
1844fi
1845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1847$as_echo "$ac_header_compiler" >&6; }
1848
1849# Is the header present?
1850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1851$as_echo_n "checking $2 presence... " >&6; }
1852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853/* end confdefs.h.  */
1854#include <$2>
1855_ACEOF
1856if ac_fn_c_try_cpp "$LINENO"; then :
1857  ac_header_preproc=yes
1858else
1859  ac_header_preproc=no
1860fi
1861rm -f conftest.err conftest.i conftest.$ac_ext
1862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1863$as_echo "$ac_header_preproc" >&6; }
1864
1865# So?  What about this header?
1866case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1867  yes:no: )
1868    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1869$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1870    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1871$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1872    ;;
1873  no:yes:* )
1874    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1875$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1876    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1877$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1878    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1879$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1880    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1881$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1882    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1883$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1884( $as_echo "## ---------------------------------------- ##
1885## Report this to unbound-bugs@nlnetlabs.nl ##
1886## ---------------------------------------- ##"
1887     ) | sed "s/^/$as_me: WARNING:     /" >&2
1888    ;;
1889esac
1890  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1891$as_echo_n "checking for $2... " >&6; }
1892if eval \${$3+:} false; then :
1893  $as_echo_n "(cached) " >&6
1894else
1895  eval "$3=\$ac_header_compiler"
1896fi
1897eval ac_res=\$$3
1898	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899$as_echo "$ac_res" >&6; }
1900fi
1901  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902
1903} # ac_fn_c_check_header_mongrel
1904
1905# ac_fn_c_try_run LINENO
1906# ----------------------
1907# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1908# that executables *can* be run.
1909ac_fn_c_try_run ()
1910{
1911  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912  if { { ac_try="$ac_link"
1913case "(($ac_try" in
1914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1915  *) ac_try_echo=$ac_try;;
1916esac
1917eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1918$as_echo "$ac_try_echo"; } >&5
1919  (eval "$ac_link") 2>&5
1920  ac_status=$?
1921  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1922  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1923  { { case "(($ac_try" in
1924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1925  *) ac_try_echo=$ac_try;;
1926esac
1927eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1928$as_echo "$ac_try_echo"; } >&5
1929  (eval "$ac_try") 2>&5
1930  ac_status=$?
1931  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1932  test $ac_status = 0; }; }; then :
1933  ac_retval=0
1934else
1935  $as_echo "$as_me: program exited with status $ac_status" >&5
1936       $as_echo "$as_me: failed program was:" >&5
1937sed 's/^/| /' conftest.$ac_ext >&5
1938
1939       ac_retval=$ac_status
1940fi
1941  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1942  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943  as_fn_set_status $ac_retval
1944
1945} # ac_fn_c_try_run
1946
1947# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1948# -------------------------------------------------------
1949# Tests whether HEADER exists and can be compiled using the include files in
1950# INCLUDES, setting the cache variable VAR accordingly.
1951ac_fn_c_check_header_compile ()
1952{
1953  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1955$as_echo_n "checking for $2... " >&6; }
1956if eval \${$3+:} false; then :
1957  $as_echo_n "(cached) " >&6
1958else
1959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960/* end confdefs.h.  */
1961$4
1962#include <$2>
1963_ACEOF
1964if ac_fn_c_try_compile "$LINENO"; then :
1965  eval "$3=yes"
1966else
1967  eval "$3=no"
1968fi
1969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1970fi
1971eval ac_res=\$$3
1972	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973$as_echo "$ac_res" >&6; }
1974  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975
1976} # ac_fn_c_check_header_compile
1977
1978# ac_fn_c_try_link LINENO
1979# -----------------------
1980# Try to link conftest.$ac_ext, and return whether this succeeded.
1981ac_fn_c_try_link ()
1982{
1983  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984  rm -f conftest.$ac_objext conftest$ac_exeext
1985  if { { ac_try="$ac_link"
1986case "(($ac_try" in
1987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1988  *) ac_try_echo=$ac_try;;
1989esac
1990eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991$as_echo "$ac_try_echo"; } >&5
1992  (eval "$ac_link") 2>conftest.err
1993  ac_status=$?
1994  if test -s conftest.err; then
1995    grep -v '^ *+' conftest.err >conftest.er1
1996    cat conftest.er1 >&5
1997    mv -f conftest.er1 conftest.err
1998  fi
1999  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000  test $ac_status = 0; } && {
2001	 test -z "$ac_c_werror_flag" ||
2002	 test ! -s conftest.err
2003       } && test -s conftest$ac_exeext && {
2004	 test "$cross_compiling" = yes ||
2005	 test -x conftest$ac_exeext
2006       }; then :
2007  ac_retval=0
2008else
2009  $as_echo "$as_me: failed program was:" >&5
2010sed 's/^/| /' conftest.$ac_ext >&5
2011
2012	ac_retval=1
2013fi
2014  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2015  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2016  # interfere with the next link command; also delete a directory that is
2017  # left behind by Apple's compiler.  We do this before executing the actions.
2018  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2019  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2020  as_fn_set_status $ac_retval
2021
2022} # ac_fn_c_try_link
2023
2024# ac_fn_c_check_func LINENO FUNC VAR
2025# ----------------------------------
2026# Tests whether FUNC exists, setting the cache variable VAR accordingly
2027ac_fn_c_check_func ()
2028{
2029  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2030  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2031$as_echo_n "checking for $2... " >&6; }
2032if eval \${$3+:} false; then :
2033  $as_echo_n "(cached) " >&6
2034else
2035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036/* end confdefs.h.  */
2037/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2038   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2039#define $2 innocuous_$2
2040
2041/* System header to define __stub macros and hopefully few prototypes,
2042    which can conflict with char $2 (); below.
2043    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2044    <limits.h> exists even on freestanding compilers.  */
2045
2046#ifdef __STDC__
2047# include <limits.h>
2048#else
2049# include <assert.h>
2050#endif
2051
2052#undef $2
2053
2054/* Override any GCC internal prototype to avoid an error.
2055   Use char because int might match the return type of a GCC
2056   builtin and then its argument prototype would still apply.  */
2057#ifdef __cplusplus
2058extern "C"
2059#endif
2060char $2 ();
2061/* The GNU C library defines this for functions which it implements
2062    to always fail with ENOSYS.  Some functions are actually named
2063    something starting with __ and the normal name is an alias.  */
2064#if defined __stub_$2 || defined __stub___$2
2065choke me
2066#endif
2067
2068int
2069main ()
2070{
2071return $2 ();
2072  ;
2073  return 0;
2074}
2075_ACEOF
2076if ac_fn_c_try_link "$LINENO"; then :
2077  eval "$3=yes"
2078else
2079  eval "$3=no"
2080fi
2081rm -f core conftest.err conftest.$ac_objext \
2082    conftest$ac_exeext conftest.$ac_ext
2083fi
2084eval ac_res=\$$3
2085	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2086$as_echo "$ac_res" >&6; }
2087  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2088
2089} # ac_fn_c_check_func
2090
2091# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2092# -------------------------------------------
2093# Tests whether TYPE exists after having included INCLUDES, setting cache
2094# variable VAR accordingly.
2095ac_fn_c_check_type ()
2096{
2097  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2098  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2099$as_echo_n "checking for $2... " >&6; }
2100if eval \${$3+:} false; then :
2101  $as_echo_n "(cached) " >&6
2102else
2103  eval "$3=no"
2104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105/* end confdefs.h.  */
2106$4
2107int
2108main ()
2109{
2110if (sizeof ($2))
2111	 return 0;
2112  ;
2113  return 0;
2114}
2115_ACEOF
2116if ac_fn_c_try_compile "$LINENO"; then :
2117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118/* end confdefs.h.  */
2119$4
2120int
2121main ()
2122{
2123if (sizeof (($2)))
2124	    return 0;
2125  ;
2126  return 0;
2127}
2128_ACEOF
2129if ac_fn_c_try_compile "$LINENO"; then :
2130
2131else
2132  eval "$3=yes"
2133fi
2134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2135fi
2136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2137fi
2138eval ac_res=\$$3
2139	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2140$as_echo "$ac_res" >&6; }
2141  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2142
2143} # ac_fn_c_check_type
2144
2145# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2146# --------------------------------------------
2147# Tries to find the compile-time value of EXPR in a program that includes
2148# INCLUDES, setting VAR accordingly. Returns whether the value could be
2149# computed
2150ac_fn_c_compute_int ()
2151{
2152  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2153  if test "$cross_compiling" = yes; then
2154    # Depending upon the size, compute the lo and hi bounds.
2155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156/* end confdefs.h.  */
2157$4
2158int
2159main ()
2160{
2161static int test_array [1 - 2 * !(($2) >= 0)];
2162test_array [0] = 0;
2163return test_array [0];
2164
2165  ;
2166  return 0;
2167}
2168_ACEOF
2169if ac_fn_c_try_compile "$LINENO"; then :
2170  ac_lo=0 ac_mid=0
2171  while :; do
2172    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173/* end confdefs.h.  */
2174$4
2175int
2176main ()
2177{
2178static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2179test_array [0] = 0;
2180return test_array [0];
2181
2182  ;
2183  return 0;
2184}
2185_ACEOF
2186if ac_fn_c_try_compile "$LINENO"; then :
2187  ac_hi=$ac_mid; break
2188else
2189  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2190			if test $ac_lo -le $ac_mid; then
2191			  ac_lo= ac_hi=
2192			  break
2193			fi
2194			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2195fi
2196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197  done
2198else
2199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200/* end confdefs.h.  */
2201$4
2202int
2203main ()
2204{
2205static int test_array [1 - 2 * !(($2) < 0)];
2206test_array [0] = 0;
2207return test_array [0];
2208
2209  ;
2210  return 0;
2211}
2212_ACEOF
2213if ac_fn_c_try_compile "$LINENO"; then :
2214  ac_hi=-1 ac_mid=-1
2215  while :; do
2216    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2217/* end confdefs.h.  */
2218$4
2219int
2220main ()
2221{
2222static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2223test_array [0] = 0;
2224return test_array [0];
2225
2226  ;
2227  return 0;
2228}
2229_ACEOF
2230if ac_fn_c_try_compile "$LINENO"; then :
2231  ac_lo=$ac_mid; break
2232else
2233  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2234			if test $ac_mid -le $ac_hi; then
2235			  ac_lo= ac_hi=
2236			  break
2237			fi
2238			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2239fi
2240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2241  done
2242else
2243  ac_lo= ac_hi=
2244fi
2245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246fi
2247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248# Binary search between lo and hi bounds.
2249while test "x$ac_lo" != "x$ac_hi"; do
2250  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252/* end confdefs.h.  */
2253$4
2254int
2255main ()
2256{
2257static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2258test_array [0] = 0;
2259return test_array [0];
2260
2261  ;
2262  return 0;
2263}
2264_ACEOF
2265if ac_fn_c_try_compile "$LINENO"; then :
2266  ac_hi=$ac_mid
2267else
2268  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2269fi
2270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271done
2272case $ac_lo in #((
2273?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2274'') ac_retval=1 ;;
2275esac
2276  else
2277    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278/* end confdefs.h.  */
2279$4
2280static long int longval () { return $2; }
2281static unsigned long int ulongval () { return $2; }
2282#include <stdio.h>
2283#include <stdlib.h>
2284int
2285main ()
2286{
2287
2288  FILE *f = fopen ("conftest.val", "w");
2289  if (! f)
2290    return 1;
2291  if (($2) < 0)
2292    {
2293      long int i = longval ();
2294      if (i != ($2))
2295	return 1;
2296      fprintf (f, "%ld", i);
2297    }
2298  else
2299    {
2300      unsigned long int i = ulongval ();
2301      if (i != ($2))
2302	return 1;
2303      fprintf (f, "%lu", i);
2304    }
2305  /* Do not output a trailing newline, as this causes \r\n confusion
2306     on some platforms.  */
2307  return ferror (f) || fclose (f) != 0;
2308
2309  ;
2310  return 0;
2311}
2312_ACEOF
2313if ac_fn_c_try_run "$LINENO"; then :
2314  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2315else
2316  ac_retval=1
2317fi
2318rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2319  conftest.$ac_objext conftest.beam conftest.$ac_ext
2320rm -f conftest.val
2321
2322  fi
2323  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2324  as_fn_set_status $ac_retval
2325
2326} # ac_fn_c_compute_int
2327
2328# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2329# ---------------------------------------------
2330# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2331# accordingly.
2332ac_fn_c_check_decl ()
2333{
2334  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2335  as_decl_name=`echo $2|sed 's/ *(.*//'`
2336  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2337  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2338$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2339if eval \${$3+:} false; then :
2340  $as_echo_n "(cached) " >&6
2341else
2342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2343/* end confdefs.h.  */
2344$4
2345int
2346main ()
2347{
2348#ifndef $as_decl_name
2349#ifdef __cplusplus
2350  (void) $as_decl_use;
2351#else
2352  (void) $as_decl_name;
2353#endif
2354#endif
2355
2356  ;
2357  return 0;
2358}
2359_ACEOF
2360if ac_fn_c_try_compile "$LINENO"; then :
2361  eval "$3=yes"
2362else
2363  eval "$3=no"
2364fi
2365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2366fi
2367eval ac_res=\$$3
2368	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2369$as_echo "$ac_res" >&6; }
2370  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2371
2372} # ac_fn_c_check_decl
2373
2374# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2375# ----------------------------------------------------
2376# Tries to find if the field MEMBER exists in type AGGR, after including
2377# INCLUDES, setting cache variable VAR accordingly.
2378ac_fn_c_check_member ()
2379{
2380  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2381  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2382$as_echo_n "checking for $2.$3... " >&6; }
2383if eval \${$4+:} false; then :
2384  $as_echo_n "(cached) " >&6
2385else
2386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2387/* end confdefs.h.  */
2388$5
2389int
2390main ()
2391{
2392static $2 ac_aggr;
2393if (ac_aggr.$3)
2394return 0;
2395  ;
2396  return 0;
2397}
2398_ACEOF
2399if ac_fn_c_try_compile "$LINENO"; then :
2400  eval "$4=yes"
2401else
2402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2403/* end confdefs.h.  */
2404$5
2405int
2406main ()
2407{
2408static $2 ac_aggr;
2409if (sizeof ac_aggr.$3)
2410return 0;
2411  ;
2412  return 0;
2413}
2414_ACEOF
2415if ac_fn_c_try_compile "$LINENO"; then :
2416  eval "$4=yes"
2417else
2418  eval "$4=no"
2419fi
2420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2421fi
2422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2423fi
2424eval ac_res=\$$4
2425	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2426$as_echo "$ac_res" >&6; }
2427  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2428
2429} # ac_fn_c_check_member
2430cat >config.log <<_ACEOF
2431This file contains any messages produced by compilers while
2432running configure, to aid debugging if configure makes a mistake.
2433
2434It was created by unbound $as_me 1.9.2, which was
2435generated by GNU Autoconf 2.69.  Invocation command line was
2436
2437  $ $0 $@
2438
2439_ACEOF
2440exec 5>>config.log
2441{
2442cat <<_ASUNAME
2443## --------- ##
2444## Platform. ##
2445## --------- ##
2446
2447hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2448uname -m = `(uname -m) 2>/dev/null || echo unknown`
2449uname -r = `(uname -r) 2>/dev/null || echo unknown`
2450uname -s = `(uname -s) 2>/dev/null || echo unknown`
2451uname -v = `(uname -v) 2>/dev/null || echo unknown`
2452
2453/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2454/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2455
2456/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2457/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2458/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2459/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2460/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2461/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2462/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2463
2464_ASUNAME
2465
2466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467for as_dir in $PATH
2468do
2469  IFS=$as_save_IFS
2470  test -z "$as_dir" && as_dir=.
2471    $as_echo "PATH: $as_dir"
2472  done
2473IFS=$as_save_IFS
2474
2475} >&5
2476
2477cat >&5 <<_ACEOF
2478
2479
2480## ----------- ##
2481## Core tests. ##
2482## ----------- ##
2483
2484_ACEOF
2485
2486
2487# Keep a trace of the command line.
2488# Strip out --no-create and --no-recursion so they do not pile up.
2489# Strip out --silent because we don't want to record it for future runs.
2490# Also quote any args containing shell meta-characters.
2491# Make two passes to allow for proper duplicate-argument suppression.
2492ac_configure_args=
2493ac_configure_args0=
2494ac_configure_args1=
2495ac_must_keep_next=false
2496for ac_pass in 1 2
2497do
2498  for ac_arg
2499  do
2500    case $ac_arg in
2501    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2502    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2503    | -silent | --silent | --silen | --sile | --sil)
2504      continue ;;
2505    *\'*)
2506      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2507    esac
2508    case $ac_pass in
2509    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2510    2)
2511      as_fn_append ac_configure_args1 " '$ac_arg'"
2512      if test $ac_must_keep_next = true; then
2513	ac_must_keep_next=false # Got value, back to normal.
2514      else
2515	case $ac_arg in
2516	  *=* | --config-cache | -C | -disable-* | --disable-* \
2517	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2518	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2519	  | -with-* | --with-* | -without-* | --without-* | --x)
2520	    case "$ac_configure_args0 " in
2521	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2522	    esac
2523	    ;;
2524	  -* ) ac_must_keep_next=true ;;
2525	esac
2526      fi
2527      as_fn_append ac_configure_args " '$ac_arg'"
2528      ;;
2529    esac
2530  done
2531done
2532{ ac_configure_args0=; unset ac_configure_args0;}
2533{ ac_configure_args1=; unset ac_configure_args1;}
2534
2535# When interrupted or exit'd, cleanup temporary files, and complete
2536# config.log.  We remove comments because anyway the quotes in there
2537# would cause problems or look ugly.
2538# WARNING: Use '\'' to represent an apostrophe within the trap.
2539# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2540trap 'exit_status=$?
2541  # Save into config.log some information that might help in debugging.
2542  {
2543    echo
2544
2545    $as_echo "## ---------------- ##
2546## Cache variables. ##
2547## ---------------- ##"
2548    echo
2549    # The following way of writing the cache mishandles newlines in values,
2550(
2551  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2552    eval ac_val=\$$ac_var
2553    case $ac_val in #(
2554    *${as_nl}*)
2555      case $ac_var in #(
2556      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2557$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2558      esac
2559      case $ac_var in #(
2560      _ | IFS | as_nl) ;; #(
2561      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2562      *) { eval $ac_var=; unset $ac_var;} ;;
2563      esac ;;
2564    esac
2565  done
2566  (set) 2>&1 |
2567    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2568    *${as_nl}ac_space=\ *)
2569      sed -n \
2570	"s/'\''/'\''\\\\'\'''\''/g;
2571	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2572      ;; #(
2573    *)
2574      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2575      ;;
2576    esac |
2577    sort
2578)
2579    echo
2580
2581    $as_echo "## ----------------- ##
2582## Output variables. ##
2583## ----------------- ##"
2584    echo
2585    for ac_var in $ac_subst_vars
2586    do
2587      eval ac_val=\$$ac_var
2588      case $ac_val in
2589      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2590      esac
2591      $as_echo "$ac_var='\''$ac_val'\''"
2592    done | sort
2593    echo
2594
2595    if test -n "$ac_subst_files"; then
2596      $as_echo "## ------------------- ##
2597## File substitutions. ##
2598## ------------------- ##"
2599      echo
2600      for ac_var in $ac_subst_files
2601      do
2602	eval ac_val=\$$ac_var
2603	case $ac_val in
2604	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2605	esac
2606	$as_echo "$ac_var='\''$ac_val'\''"
2607      done | sort
2608      echo
2609    fi
2610
2611    if test -s confdefs.h; then
2612      $as_echo "## ----------- ##
2613## confdefs.h. ##
2614## ----------- ##"
2615      echo
2616      cat confdefs.h
2617      echo
2618    fi
2619    test "$ac_signal" != 0 &&
2620      $as_echo "$as_me: caught signal $ac_signal"
2621    $as_echo "$as_me: exit $exit_status"
2622  } >&5
2623  rm -f core *.core core.conftest.* &&
2624    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2625    exit $exit_status
2626' 0
2627for ac_signal in 1 2 13 15; do
2628  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2629done
2630ac_signal=0
2631
2632# confdefs.h avoids OS command line length limits that DEFS can exceed.
2633rm -f -r conftest* confdefs.h
2634
2635$as_echo "/* confdefs.h */" > confdefs.h
2636
2637# Predefined preprocessor variables.
2638
2639cat >>confdefs.h <<_ACEOF
2640#define PACKAGE_NAME "$PACKAGE_NAME"
2641_ACEOF
2642
2643cat >>confdefs.h <<_ACEOF
2644#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2645_ACEOF
2646
2647cat >>confdefs.h <<_ACEOF
2648#define PACKAGE_VERSION "$PACKAGE_VERSION"
2649_ACEOF
2650
2651cat >>confdefs.h <<_ACEOF
2652#define PACKAGE_STRING "$PACKAGE_STRING"
2653_ACEOF
2654
2655cat >>confdefs.h <<_ACEOF
2656#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2657_ACEOF
2658
2659cat >>confdefs.h <<_ACEOF
2660#define PACKAGE_URL "$PACKAGE_URL"
2661_ACEOF
2662
2663
2664# Let the site file select an alternate cache file if it wants to.
2665# Prefer an explicitly selected file to automatically selected ones.
2666ac_site_file1=NONE
2667ac_site_file2=NONE
2668if test -n "$CONFIG_SITE"; then
2669  # We do not want a PATH search for config.site.
2670  case $CONFIG_SITE in #((
2671    -*)  ac_site_file1=./$CONFIG_SITE;;
2672    */*) ac_site_file1=$CONFIG_SITE;;
2673    *)   ac_site_file1=./$CONFIG_SITE;;
2674  esac
2675elif test "x$prefix" != xNONE; then
2676  ac_site_file1=$prefix/share/config.site
2677  ac_site_file2=$prefix/etc/config.site
2678else
2679  ac_site_file1=$ac_default_prefix/share/config.site
2680  ac_site_file2=$ac_default_prefix/etc/config.site
2681fi
2682for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2683do
2684  test "x$ac_site_file" = xNONE && continue
2685  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2686    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2687$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2688    sed 's/^/| /' "$ac_site_file" >&5
2689    . "$ac_site_file" \
2690      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2691$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2692as_fn_error $? "failed to load site script $ac_site_file
2693See \`config.log' for more details" "$LINENO" 5; }
2694  fi
2695done
2696
2697if test -r "$cache_file"; then
2698  # Some versions of bash will fail to source /dev/null (special files
2699  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2700  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2701    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2702$as_echo "$as_me: loading cache $cache_file" >&6;}
2703    case $cache_file in
2704      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2705      *)                      . "./$cache_file";;
2706    esac
2707  fi
2708else
2709  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2710$as_echo "$as_me: creating cache $cache_file" >&6;}
2711  >$cache_file
2712fi
2713
2714# Check that the precious variables saved in the cache have kept the same
2715# value.
2716ac_cache_corrupted=false
2717for ac_var in $ac_precious_vars; do
2718  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2719  eval ac_new_set=\$ac_env_${ac_var}_set
2720  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2721  eval ac_new_val=\$ac_env_${ac_var}_value
2722  case $ac_old_set,$ac_new_set in
2723    set,)
2724      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2725$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2726      ac_cache_corrupted=: ;;
2727    ,set)
2728      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2729$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2730      ac_cache_corrupted=: ;;
2731    ,);;
2732    *)
2733      if test "x$ac_old_val" != "x$ac_new_val"; then
2734	# differences in whitespace do not lead to failure.
2735	ac_old_val_w=`echo x $ac_old_val`
2736	ac_new_val_w=`echo x $ac_new_val`
2737	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2738	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2739$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2740	  ac_cache_corrupted=:
2741	else
2742	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2743$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2744	  eval $ac_var=\$ac_old_val
2745	fi
2746	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2747$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2748	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2749$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2750      fi;;
2751  esac
2752  # Pass precious variables to config.status.
2753  if test "$ac_new_set" = set; then
2754    case $ac_new_val in
2755    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2756    *) ac_arg=$ac_var=$ac_new_val ;;
2757    esac
2758    case " $ac_configure_args " in
2759      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2760      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2761    esac
2762  fi
2763done
2764if $ac_cache_corrupted; then
2765  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2766$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2767  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2768$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2769  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2770fi
2771## -------------------- ##
2772## Main body of script. ##
2773## -------------------- ##
2774
2775ac_ext=c
2776ac_cpp='$CPP $CPPFLAGS'
2777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2779ac_compiler_gnu=$ac_cv_c_compiler_gnu
2780
2781
2782UNBOUND_VERSION_MAJOR=1
2783
2784UNBOUND_VERSION_MINOR=9
2785
2786UNBOUND_VERSION_MICRO=2
2787
2788
2789LIBUNBOUND_CURRENT=9
2790LIBUNBOUND_REVISION=2
2791LIBUNBOUND_AGE=1
2792# 1.0.0 had 0:12:0
2793# 1.0.1 had 0:13:0
2794# 1.0.2 had 0:14:0
2795# 1.1.0 had 0:15:0
2796# 1.1.1 had 0:16:0
2797# 1.2.0 had 0:17:0
2798# 1.2.1 had 0:18:0
2799# 1.3.0 had 1:0:0   # ub_cancel and -export-symbols.
2800# 1.3.1 had 1:1:0
2801# 1.3.2 had 1:2:0
2802# 1.3.3 had 1:3:0
2803# 1.3.4 had 1:4:0
2804# 1.4.0-snapshots had 1:5:0
2805# 1.4.0 had 1:5:0 (not 2:0:0)   # ub_result.why_bogus
2806# 1.4.1 had 2:1:0
2807# 1.4.2 had 2:2:0
2808# 1.4.3 had 2:3:0
2809# 1.4.4 had 2:4:0
2810# 1.4.5 had 2:5:0
2811# 1.4.6 had 2:6:0
2812# 1.4.7 had 2:7:0
2813# 1.4.8 had 2:8:0
2814# 1.4.9 had 2:9:0
2815# 1.4.10 had 2:10:0
2816# 1.4.11 had 2:11:0
2817# 1.4.12 had 2:12:0
2818# 1.4.13 had 2:13:0
2819# and 1.4.13p1 and 1.4.13.p2
2820# 1.4.14 had 2:14:0
2821# 1.4.15 had 3:0:1 # adds ub_version()
2822# 1.4.16 had 3:1:1
2823# 1.4.17 had 3:2:1
2824# 1.4.18 had 3:3:1
2825# 1.4.19 had 3:4:1
2826# 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1
2827# 1.4.21 had 4:1:2
2828# 1.4.22 had 4:1:2
2829# 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr
2830# 1.5.1 had 5:3:3
2831# 1.5.2 had 5:5:3
2832# 1.5.3 had 5:6:3
2833# 1.5.4 had 5:7:3
2834# 1.5.5 had 5:8:3
2835# 1.5.6 had 5:9:3
2836# 1.5.7 had 5:10:3
2837# 1.5.8 had 6:0:4 # adds ub_ctx_set_stub
2838# 1.5.9 had 6:1:4
2839# 1.5.10 had 6:2:4
2840# 1.6.0 had 6:3:4
2841# 1.6.1 had 7:0:5 # ub_callback_t typedef renamed to ub_callback_type
2842# 1.6.2 had 7:1:5
2843# 1.6.3 had 7:2:5
2844# 1.6.4 had 7:3:5
2845# 1.6.5 had 7:4:5
2846# 1.6.6 had 7:5:5
2847# 1.6.7 had 7:6:5
2848# 1.6.8 had 7:7:5
2849# 1.7.0 had 7:8:5
2850# 1.7.1 had 7:9:5
2851# 1.7.2 had 7:10:5
2852# 1.7.3 had 7:11:5
2853# 1.8.0 had 8:0:0 # changes the event callback function signature
2854# 1.8.1 had 8:1:0
2855# 1.8.2 had 8:2:0
2856# 1.8.3 had 8:3:0
2857# 1.9.0 had 9:0:1 # add ub_ctx_set_tls
2858# 1.9.1 had 9:1:1
2859# 1.9.2 had 9:2:1
2860
2861#   Current  -- the number of the binary API that we're implementing
2862#   Revision -- which iteration of the implementation of the binary
2863#               API are we supplying?
2864#   Age      -- How many previous binary API versions do we also
2865#               support?
2866#
2867# If we release a new version that does not change the binary API,
2868# increment Revision.
2869#
2870# If we release a new version that changes the binary API, but does
2871# not break programs compiled against the old binary API, increment
2872# Current and Age.  Set Revision to 0, since this is the first
2873# implementation of the new API.
2874#
2875# Otherwise, we're changing the binary API and breaking backward
2876# compatibility with old binaries.  Increment Current.  Set Age to 0,
2877# since we're backward compatible with no previous APIs.  Set Revision
2878# to 0 too.
2879
2880
2881
2882
2883CFLAGS="$CFLAGS"
2884ac_ext=c
2885ac_cpp='$CPP $CPPFLAGS'
2886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2888ac_compiler_gnu=$ac_cv_c_compiler_gnu
2889if test -n "$ac_tool_prefix"; then
2890  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2891set dummy ${ac_tool_prefix}gcc; 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2907    ac_cv_prog_CC="${ac_tool_prefix}gcc"
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
2927fi
2928if test -z "$ac_cv_prog_CC"; then
2929  ac_ct_CC=$CC
2930  # Extract the first word of "gcc", so it can be a program name with args.
2931set dummy gcc; ac_word=$2
2932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933$as_echo_n "checking for $ac_word... " >&6; }
2934if ${ac_cv_prog_ac_ct_CC+:} false; then :
2935  $as_echo_n "(cached) " >&6
2936else
2937  if test -n "$ac_ct_CC"; then
2938  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2939else
2940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941for as_dir in $PATH
2942do
2943  IFS=$as_save_IFS
2944  test -z "$as_dir" && as_dir=.
2945    for ac_exec_ext in '' $ac_executable_extensions; do
2946  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2947    ac_cv_prog_ac_ct_CC="gcc"
2948    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2949    break 2
2950  fi
2951done
2952  done
2953IFS=$as_save_IFS
2954
2955fi
2956fi
2957ac_ct_CC=$ac_cv_prog_ac_ct_CC
2958if test -n "$ac_ct_CC"; then
2959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2960$as_echo "$ac_ct_CC" >&6; }
2961else
2962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963$as_echo "no" >&6; }
2964fi
2965
2966  if test "x$ac_ct_CC" = x; then
2967    CC=""
2968  else
2969    case $cross_compiling:$ac_tool_warned in
2970yes:)
2971{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2972$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2973ac_tool_warned=yes ;;
2974esac
2975    CC=$ac_ct_CC
2976  fi
2977else
2978  CC="$ac_cv_prog_CC"
2979fi
2980
2981if test -z "$CC"; then
2982          if test -n "$ac_tool_prefix"; then
2983    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2984set dummy ${ac_tool_prefix}cc; ac_word=$2
2985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2986$as_echo_n "checking for $ac_word... " >&6; }
2987if ${ac_cv_prog_CC+:} false; then :
2988  $as_echo_n "(cached) " >&6
2989else
2990  if test -n "$CC"; then
2991  ac_cv_prog_CC="$CC" # Let the user override the test.
2992else
2993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994for as_dir in $PATH
2995do
2996  IFS=$as_save_IFS
2997  test -z "$as_dir" && as_dir=.
2998    for ac_exec_ext in '' $ac_executable_extensions; do
2999  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3000    ac_cv_prog_CC="${ac_tool_prefix}cc"
3001    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3002    break 2
3003  fi
3004done
3005  done
3006IFS=$as_save_IFS
3007
3008fi
3009fi
3010CC=$ac_cv_prog_CC
3011if test -n "$CC"; then
3012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3013$as_echo "$CC" >&6; }
3014else
3015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016$as_echo "no" >&6; }
3017fi
3018
3019
3020  fi
3021fi
3022if test -z "$CC"; then
3023  # Extract the first word of "cc", so it can be a program name with args.
3024set dummy cc; ac_word=$2
3025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026$as_echo_n "checking for $ac_word... " >&6; }
3027if ${ac_cv_prog_CC+:} false; then :
3028  $as_echo_n "(cached) " >&6
3029else
3030  if test -n "$CC"; then
3031  ac_cv_prog_CC="$CC" # Let the user override the test.
3032else
3033  ac_prog_rejected=no
3034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035for as_dir in $PATH
3036do
3037  IFS=$as_save_IFS
3038  test -z "$as_dir" && as_dir=.
3039    for ac_exec_ext in '' $ac_executable_extensions; do
3040  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3041    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3042       ac_prog_rejected=yes
3043       continue
3044     fi
3045    ac_cv_prog_CC="cc"
3046    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3047    break 2
3048  fi
3049done
3050  done
3051IFS=$as_save_IFS
3052
3053if test $ac_prog_rejected = yes; then
3054  # We found a bogon in the path, so make sure we never use it.
3055  set dummy $ac_cv_prog_CC
3056  shift
3057  if test $# != 0; then
3058    # We chose a different compiler from the bogus one.
3059    # However, it has the same basename, so the bogon will be chosen
3060    # first if we set CC to just the basename; use the full file name.
3061    shift
3062    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3063  fi
3064fi
3065fi
3066fi
3067CC=$ac_cv_prog_CC
3068if test -n "$CC"; then
3069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3070$as_echo "$CC" >&6; }
3071else
3072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073$as_echo "no" >&6; }
3074fi
3075
3076
3077fi
3078if test -z "$CC"; then
3079  if test -n "$ac_tool_prefix"; then
3080  for ac_prog in cl.exe
3081  do
3082    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3083set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3085$as_echo_n "checking for $ac_word... " >&6; }
3086if ${ac_cv_prog_CC+:} false; then :
3087  $as_echo_n "(cached) " >&6
3088else
3089  if test -n "$CC"; then
3090  ac_cv_prog_CC="$CC" # Let the user override the test.
3091else
3092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093for as_dir in $PATH
3094do
3095  IFS=$as_save_IFS
3096  test -z "$as_dir" && as_dir=.
3097    for ac_exec_ext in '' $ac_executable_extensions; do
3098  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3099    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3100    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3101    break 2
3102  fi
3103done
3104  done
3105IFS=$as_save_IFS
3106
3107fi
3108fi
3109CC=$ac_cv_prog_CC
3110if test -n "$CC"; then
3111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3112$as_echo "$CC" >&6; }
3113else
3114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115$as_echo "no" >&6; }
3116fi
3117
3118
3119    test -n "$CC" && break
3120  done
3121fi
3122if test -z "$CC"; then
3123  ac_ct_CC=$CC
3124  for ac_prog in cl.exe
3125do
3126  # Extract the first word of "$ac_prog", so it can be a program name with args.
3127set dummy $ac_prog; ac_word=$2
3128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129$as_echo_n "checking for $ac_word... " >&6; }
3130if ${ac_cv_prog_ac_ct_CC+:} false; then :
3131  $as_echo_n "(cached) " >&6
3132else
3133  if test -n "$ac_ct_CC"; then
3134  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3135else
3136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137for as_dir in $PATH
3138do
3139  IFS=$as_save_IFS
3140  test -z "$as_dir" && as_dir=.
3141    for ac_exec_ext in '' $ac_executable_extensions; do
3142  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3143    ac_cv_prog_ac_ct_CC="$ac_prog"
3144    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3145    break 2
3146  fi
3147done
3148  done
3149IFS=$as_save_IFS
3150
3151fi
3152fi
3153ac_ct_CC=$ac_cv_prog_ac_ct_CC
3154if test -n "$ac_ct_CC"; then
3155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3156$as_echo "$ac_ct_CC" >&6; }
3157else
3158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159$as_echo "no" >&6; }
3160fi
3161
3162
3163  test -n "$ac_ct_CC" && break
3164done
3165
3166  if test "x$ac_ct_CC" = x; then
3167    CC=""
3168  else
3169    case $cross_compiling:$ac_tool_warned in
3170yes:)
3171{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3172$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3173ac_tool_warned=yes ;;
3174esac
3175    CC=$ac_ct_CC
3176  fi
3177fi
3178
3179fi
3180
3181
3182test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3183$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3184as_fn_error $? "no acceptable C compiler found in \$PATH
3185See \`config.log' for more details" "$LINENO" 5; }
3186
3187# Provide some information about the compiler.
3188$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3189set X $ac_compile
3190ac_compiler=$2
3191for ac_option in --version -v -V -qversion; do
3192  { { ac_try="$ac_compiler $ac_option >&5"
3193case "(($ac_try" in
3194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195  *) ac_try_echo=$ac_try;;
3196esac
3197eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3198$as_echo "$ac_try_echo"; } >&5
3199  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3200  ac_status=$?
3201  if test -s conftest.err; then
3202    sed '10a\
3203... rest of stderr output deleted ...
3204         10q' conftest.err >conftest.er1
3205    cat conftest.er1 >&5
3206  fi
3207  rm -f conftest.er1 conftest.err
3208  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3209  test $ac_status = 0; }
3210done
3211
3212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213/* end confdefs.h.  */
3214
3215int
3216main ()
3217{
3218
3219  ;
3220  return 0;
3221}
3222_ACEOF
3223ac_clean_files_save=$ac_clean_files
3224ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3225# Try to create an executable without -o first, disregard a.out.
3226# It will help us diagnose broken compilers, and finding out an intuition
3227# of exeext.
3228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3229$as_echo_n "checking whether the C compiler works... " >&6; }
3230ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3231
3232# The possible output files:
3233ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3234
3235ac_rmfiles=
3236for ac_file in $ac_files
3237do
3238  case $ac_file in
3239    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3240    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3241  esac
3242done
3243rm -f $ac_rmfiles
3244
3245if { { ac_try="$ac_link_default"
3246case "(($ac_try" in
3247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248  *) ac_try_echo=$ac_try;;
3249esac
3250eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3251$as_echo "$ac_try_echo"; } >&5
3252  (eval "$ac_link_default") 2>&5
3253  ac_status=$?
3254  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3255  test $ac_status = 0; }; then :
3256  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3257# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3258# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3259# so that the user can short-circuit this test for compilers unknown to
3260# Autoconf.
3261for ac_file in $ac_files ''
3262do
3263  test -f "$ac_file" || continue
3264  case $ac_file in
3265    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3266	;;
3267    [ab].out )
3268	# We found the default executable, but exeext='' is most
3269	# certainly right.
3270	break;;
3271    *.* )
3272	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3273	then :; else
3274	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3275	fi
3276	# We set ac_cv_exeext here because the later test for it is not
3277	# safe: cross compilers may not add the suffix if given an `-o'
3278	# argument, so we may need to know it at that point already.
3279	# Even if this section looks crufty: it has the advantage of
3280	# actually working.
3281	break;;
3282    * )
3283	break;;
3284  esac
3285done
3286test "$ac_cv_exeext" = no && ac_cv_exeext=
3287
3288else
3289  ac_file=''
3290fi
3291if test -z "$ac_file"; then :
3292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293$as_echo "no" >&6; }
3294$as_echo "$as_me: failed program was:" >&5
3295sed 's/^/| /' conftest.$ac_ext >&5
3296
3297{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3298$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3299as_fn_error 77 "C compiler cannot create executables
3300See \`config.log' for more details" "$LINENO" 5; }
3301else
3302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3303$as_echo "yes" >&6; }
3304fi
3305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3306$as_echo_n "checking for C compiler default output file name... " >&6; }
3307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3308$as_echo "$ac_file" >&6; }
3309ac_exeext=$ac_cv_exeext
3310
3311rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3312ac_clean_files=$ac_clean_files_save
3313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3314$as_echo_n "checking for suffix of executables... " >&6; }
3315if { { ac_try="$ac_link"
3316case "(($ac_try" in
3317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318  *) ac_try_echo=$ac_try;;
3319esac
3320eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321$as_echo "$ac_try_echo"; } >&5
3322  (eval "$ac_link") 2>&5
3323  ac_status=$?
3324  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325  test $ac_status = 0; }; then :
3326  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3327# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3328# work properly (i.e., refer to `conftest.exe'), while it won't with
3329# `rm'.
3330for ac_file in conftest.exe conftest conftest.*; do
3331  test -f "$ac_file" || continue
3332  case $ac_file in
3333    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3334    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3335	  break;;
3336    * ) break;;
3337  esac
3338done
3339else
3340  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3341$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3342as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3343See \`config.log' for more details" "$LINENO" 5; }
3344fi
3345rm -f conftest conftest$ac_cv_exeext
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3347$as_echo "$ac_cv_exeext" >&6; }
3348
3349rm -f conftest.$ac_ext
3350EXEEXT=$ac_cv_exeext
3351ac_exeext=$EXEEXT
3352cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3353/* end confdefs.h.  */
3354#include <stdio.h>
3355int
3356main ()
3357{
3358FILE *f = fopen ("conftest.out", "w");
3359 return ferror (f) || fclose (f) != 0;
3360
3361  ;
3362  return 0;
3363}
3364_ACEOF
3365ac_clean_files="$ac_clean_files conftest.out"
3366# Check that the compiler produces executables we can run.  If not, either
3367# the compiler is broken, or we cross compile.
3368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3369$as_echo_n "checking whether we are cross compiling... " >&6; }
3370if test "$cross_compiling" != yes; then
3371  { { ac_try="$ac_link"
3372case "(($ac_try" in
3373  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374  *) ac_try_echo=$ac_try;;
3375esac
3376eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3377$as_echo "$ac_try_echo"; } >&5
3378  (eval "$ac_link") 2>&5
3379  ac_status=$?
3380  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3381  test $ac_status = 0; }
3382  if { ac_try='./conftest$ac_cv_exeext'
3383  { { case "(($ac_try" in
3384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385  *) ac_try_echo=$ac_try;;
3386esac
3387eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3388$as_echo "$ac_try_echo"; } >&5
3389  (eval "$ac_try") 2>&5
3390  ac_status=$?
3391  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3392  test $ac_status = 0; }; }; then
3393    cross_compiling=no
3394  else
3395    if test "$cross_compiling" = maybe; then
3396	cross_compiling=yes
3397    else
3398	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3399$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3400as_fn_error $? "cannot run C compiled programs.
3401If you meant to cross compile, use \`--host'.
3402See \`config.log' for more details" "$LINENO" 5; }
3403    fi
3404  fi
3405fi
3406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3407$as_echo "$cross_compiling" >&6; }
3408
3409rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3410ac_clean_files=$ac_clean_files_save
3411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3412$as_echo_n "checking for suffix of object files... " >&6; }
3413if ${ac_cv_objext+:} false; then :
3414  $as_echo_n "(cached) " >&6
3415else
3416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417/* end confdefs.h.  */
3418
3419int
3420main ()
3421{
3422
3423  ;
3424  return 0;
3425}
3426_ACEOF
3427rm -f conftest.o conftest.obj
3428if { { ac_try="$ac_compile"
3429case "(($ac_try" in
3430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431  *) ac_try_echo=$ac_try;;
3432esac
3433eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3434$as_echo "$ac_try_echo"; } >&5
3435  (eval "$ac_compile") 2>&5
3436  ac_status=$?
3437  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3438  test $ac_status = 0; }; then :
3439  for ac_file in conftest.o conftest.obj conftest.*; do
3440  test -f "$ac_file" || continue;
3441  case $ac_file in
3442    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3443    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3444       break;;
3445  esac
3446done
3447else
3448  $as_echo "$as_me: failed program was:" >&5
3449sed 's/^/| /' conftest.$ac_ext >&5
3450
3451{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453as_fn_error $? "cannot compute suffix of object files: cannot compile
3454See \`config.log' for more details" "$LINENO" 5; }
3455fi
3456rm -f conftest.$ac_cv_objext conftest.$ac_ext
3457fi
3458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3459$as_echo "$ac_cv_objext" >&6; }
3460OBJEXT=$ac_cv_objext
3461ac_objext=$OBJEXT
3462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3463$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3464if ${ac_cv_c_compiler_gnu+:} false; then :
3465  $as_echo_n "(cached) " >&6
3466else
3467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468/* end confdefs.h.  */
3469
3470int
3471main ()
3472{
3473#ifndef __GNUC__
3474       choke me
3475#endif
3476
3477  ;
3478  return 0;
3479}
3480_ACEOF
3481if ac_fn_c_try_compile "$LINENO"; then :
3482  ac_compiler_gnu=yes
3483else
3484  ac_compiler_gnu=no
3485fi
3486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3487ac_cv_c_compiler_gnu=$ac_compiler_gnu
3488
3489fi
3490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3491$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3492if test $ac_compiler_gnu = yes; then
3493  GCC=yes
3494else
3495  GCC=
3496fi
3497ac_test_CFLAGS=${CFLAGS+set}
3498ac_save_CFLAGS=$CFLAGS
3499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3500$as_echo_n "checking whether $CC accepts -g... " >&6; }
3501if ${ac_cv_prog_cc_g+:} false; then :
3502  $as_echo_n "(cached) " >&6
3503else
3504  ac_save_c_werror_flag=$ac_c_werror_flag
3505   ac_c_werror_flag=yes
3506   ac_cv_prog_cc_g=no
3507   CFLAGS="-g"
3508   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509/* end confdefs.h.  */
3510
3511int
3512main ()
3513{
3514
3515  ;
3516  return 0;
3517}
3518_ACEOF
3519if ac_fn_c_try_compile "$LINENO"; then :
3520  ac_cv_prog_cc_g=yes
3521else
3522  CFLAGS=""
3523      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524/* end confdefs.h.  */
3525
3526int
3527main ()
3528{
3529
3530  ;
3531  return 0;
3532}
3533_ACEOF
3534if ac_fn_c_try_compile "$LINENO"; then :
3535
3536else
3537  ac_c_werror_flag=$ac_save_c_werror_flag
3538	 CFLAGS="-g"
3539	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540/* end confdefs.h.  */
3541
3542int
3543main ()
3544{
3545
3546  ;
3547  return 0;
3548}
3549_ACEOF
3550if ac_fn_c_try_compile "$LINENO"; then :
3551  ac_cv_prog_cc_g=yes
3552fi
3553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3554fi
3555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3556fi
3557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3558   ac_c_werror_flag=$ac_save_c_werror_flag
3559fi
3560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3561$as_echo "$ac_cv_prog_cc_g" >&6; }
3562if test "$ac_test_CFLAGS" = set; then
3563  CFLAGS=$ac_save_CFLAGS
3564elif test $ac_cv_prog_cc_g = yes; then
3565  if test "$GCC" = yes; then
3566    CFLAGS="-g -O2"
3567  else
3568    CFLAGS="-g"
3569  fi
3570else
3571  if test "$GCC" = yes; then
3572    CFLAGS="-O2"
3573  else
3574    CFLAGS=
3575  fi
3576fi
3577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3578$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3579if ${ac_cv_prog_cc_c89+:} false; then :
3580  $as_echo_n "(cached) " >&6
3581else
3582  ac_cv_prog_cc_c89=no
3583ac_save_CC=$CC
3584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585/* end confdefs.h.  */
3586#include <stdarg.h>
3587#include <stdio.h>
3588struct stat;
3589/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3590struct buf { int x; };
3591FILE * (*rcsopen) (struct buf *, struct stat *, int);
3592static char *e (p, i)
3593     char **p;
3594     int i;
3595{
3596  return p[i];
3597}
3598static char *f (char * (*g) (char **, int), char **p, ...)
3599{
3600  char *s;
3601  va_list v;
3602  va_start (v,p);
3603  s = g (p, va_arg (v,int));
3604  va_end (v);
3605  return s;
3606}
3607
3608/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3609   function prototypes and stuff, but not '\xHH' hex character constants.
3610   These don't provoke an error unfortunately, instead are silently treated
3611   as 'x'.  The following induces an error, until -std is added to get
3612   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3613   array size at least.  It's necessary to write '\x00'==0 to get something
3614   that's true only with -std.  */
3615int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3616
3617/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3618   inside strings and character constants.  */
3619#define FOO(x) 'x'
3620int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3621
3622int test (int i, double x);
3623struct s1 {int (*f) (int a);};
3624struct s2 {int (*f) (double a);};
3625int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3626int argc;
3627char **argv;
3628int
3629main ()
3630{
3631return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3632  ;
3633  return 0;
3634}
3635_ACEOF
3636for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3637	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3638do
3639  CC="$ac_save_CC $ac_arg"
3640  if ac_fn_c_try_compile "$LINENO"; then :
3641  ac_cv_prog_cc_c89=$ac_arg
3642fi
3643rm -f core conftest.err conftest.$ac_objext
3644  test "x$ac_cv_prog_cc_c89" != "xno" && break
3645done
3646rm -f conftest.$ac_ext
3647CC=$ac_save_CC
3648
3649fi
3650# AC_CACHE_VAL
3651case "x$ac_cv_prog_cc_c89" in
3652  x)
3653    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3654$as_echo "none needed" >&6; } ;;
3655  xno)
3656    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3657$as_echo "unsupported" >&6; } ;;
3658  *)
3659    CC="$CC $ac_cv_prog_cc_c89"
3660    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3661$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3662esac
3663if test "x$ac_cv_prog_cc_c89" != xno; then :
3664
3665fi
3666
3667ac_ext=c
3668ac_cpp='$CPP $CPPFLAGS'
3669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3671ac_compiler_gnu=$ac_cv_c_compiler_gnu
3672
3673
3674ac_ext=c
3675ac_cpp='$CPP $CPPFLAGS'
3676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3678ac_compiler_gnu=$ac_cv_c_compiler_gnu
3679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3680$as_echo_n "checking how to run the C preprocessor... " >&6; }
3681# On Suns, sometimes $CPP names a directory.
3682if test -n "$CPP" && test -d "$CPP"; then
3683  CPP=
3684fi
3685if test -z "$CPP"; then
3686  if ${ac_cv_prog_CPP+:} false; then :
3687  $as_echo_n "(cached) " >&6
3688else
3689      # Double quotes because CPP needs to be expanded
3690    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3691    do
3692      ac_preproc_ok=false
3693for ac_c_preproc_warn_flag in '' yes
3694do
3695  # Use a header file that comes with gcc, so configuring glibc
3696  # with a fresh cross-compiler works.
3697  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3698  # <limits.h> exists even on freestanding compilers.
3699  # On the NeXT, cc -E runs the code through the compiler's parser,
3700  # not just through cpp. "Syntax error" is here to catch this case.
3701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702/* end confdefs.h.  */
3703#ifdef __STDC__
3704# include <limits.h>
3705#else
3706# include <assert.h>
3707#endif
3708		     Syntax error
3709_ACEOF
3710if ac_fn_c_try_cpp "$LINENO"; then :
3711
3712else
3713  # Broken: fails on valid input.
3714continue
3715fi
3716rm -f conftest.err conftest.i conftest.$ac_ext
3717
3718  # OK, works on sane cases.  Now check whether nonexistent headers
3719  # can be detected and how.
3720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721/* end confdefs.h.  */
3722#include <ac_nonexistent.h>
3723_ACEOF
3724if ac_fn_c_try_cpp "$LINENO"; then :
3725  # Broken: success on invalid input.
3726continue
3727else
3728  # Passes both tests.
3729ac_preproc_ok=:
3730break
3731fi
3732rm -f conftest.err conftest.i conftest.$ac_ext
3733
3734done
3735# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3736rm -f conftest.i conftest.err conftest.$ac_ext
3737if $ac_preproc_ok; then :
3738  break
3739fi
3740
3741    done
3742    ac_cv_prog_CPP=$CPP
3743
3744fi
3745  CPP=$ac_cv_prog_CPP
3746else
3747  ac_cv_prog_CPP=$CPP
3748fi
3749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3750$as_echo "$CPP" >&6; }
3751ac_preproc_ok=false
3752for ac_c_preproc_warn_flag in '' yes
3753do
3754  # Use a header file that comes with gcc, so configuring glibc
3755  # with a fresh cross-compiler works.
3756  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3757  # <limits.h> exists even on freestanding compilers.
3758  # On the NeXT, cc -E runs the code through the compiler's parser,
3759  # not just through cpp. "Syntax error" is here to catch this case.
3760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761/* end confdefs.h.  */
3762#ifdef __STDC__
3763# include <limits.h>
3764#else
3765# include <assert.h>
3766#endif
3767		     Syntax error
3768_ACEOF
3769if ac_fn_c_try_cpp "$LINENO"; then :
3770
3771else
3772  # Broken: fails on valid input.
3773continue
3774fi
3775rm -f conftest.err conftest.i conftest.$ac_ext
3776
3777  # OK, works on sane cases.  Now check whether nonexistent headers
3778  # can be detected and how.
3779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780/* end confdefs.h.  */
3781#include <ac_nonexistent.h>
3782_ACEOF
3783if ac_fn_c_try_cpp "$LINENO"; then :
3784  # Broken: success on invalid input.
3785continue
3786else
3787  # Passes both tests.
3788ac_preproc_ok=:
3789break
3790fi
3791rm -f conftest.err conftest.i conftest.$ac_ext
3792
3793done
3794# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3795rm -f conftest.i conftest.err conftest.$ac_ext
3796if $ac_preproc_ok; then :
3797
3798else
3799  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3800$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3801as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3802See \`config.log' for more details" "$LINENO" 5; }
3803fi
3804
3805ac_ext=c
3806ac_cpp='$CPP $CPPFLAGS'
3807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3809ac_compiler_gnu=$ac_cv_c_compiler_gnu
3810
3811
3812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3813$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3814if ${ac_cv_path_GREP+:} false; then :
3815  $as_echo_n "(cached) " >&6
3816else
3817  if test -z "$GREP"; then
3818  ac_path_GREP_found=false
3819  # Loop through the user's path and test for each of PROGNAME-LIST
3820  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3822do
3823  IFS=$as_save_IFS
3824  test -z "$as_dir" && as_dir=.
3825    for ac_prog in grep ggrep; do
3826    for ac_exec_ext in '' $ac_executable_extensions; do
3827      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3828      as_fn_executable_p "$ac_path_GREP" || continue
3829# Check for GNU ac_path_GREP and select it if it is found.
3830  # Check for GNU $ac_path_GREP
3831case `"$ac_path_GREP" --version 2>&1` in
3832*GNU*)
3833  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3834*)
3835  ac_count=0
3836  $as_echo_n 0123456789 >"conftest.in"
3837  while :
3838  do
3839    cat "conftest.in" "conftest.in" >"conftest.tmp"
3840    mv "conftest.tmp" "conftest.in"
3841    cp "conftest.in" "conftest.nl"
3842    $as_echo 'GREP' >> "conftest.nl"
3843    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3844    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3845    as_fn_arith $ac_count + 1 && ac_count=$as_val
3846    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3847      # Best one so far, save it but keep looking for a better one
3848      ac_cv_path_GREP="$ac_path_GREP"
3849      ac_path_GREP_max=$ac_count
3850    fi
3851    # 10*(2^10) chars as input seems more than enough
3852    test $ac_count -gt 10 && break
3853  done
3854  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3855esac
3856
3857      $ac_path_GREP_found && break 3
3858    done
3859  done
3860  done
3861IFS=$as_save_IFS
3862  if test -z "$ac_cv_path_GREP"; then
3863    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3864  fi
3865else
3866  ac_cv_path_GREP=$GREP
3867fi
3868
3869fi
3870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3871$as_echo "$ac_cv_path_GREP" >&6; }
3872 GREP="$ac_cv_path_GREP"
3873
3874
3875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3876$as_echo_n "checking for egrep... " >&6; }
3877if ${ac_cv_path_EGREP+:} false; then :
3878  $as_echo_n "(cached) " >&6
3879else
3880  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3881   then ac_cv_path_EGREP="$GREP -E"
3882   else
3883     if test -z "$EGREP"; then
3884  ac_path_EGREP_found=false
3885  # Loop through the user's path and test for each of PROGNAME-LIST
3886  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3888do
3889  IFS=$as_save_IFS
3890  test -z "$as_dir" && as_dir=.
3891    for ac_prog in egrep; do
3892    for ac_exec_ext in '' $ac_executable_extensions; do
3893      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3894      as_fn_executable_p "$ac_path_EGREP" || continue
3895# Check for GNU ac_path_EGREP and select it if it is found.
3896  # Check for GNU $ac_path_EGREP
3897case `"$ac_path_EGREP" --version 2>&1` in
3898*GNU*)
3899  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3900*)
3901  ac_count=0
3902  $as_echo_n 0123456789 >"conftest.in"
3903  while :
3904  do
3905    cat "conftest.in" "conftest.in" >"conftest.tmp"
3906    mv "conftest.tmp" "conftest.in"
3907    cp "conftest.in" "conftest.nl"
3908    $as_echo 'EGREP' >> "conftest.nl"
3909    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3910    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3911    as_fn_arith $ac_count + 1 && ac_count=$as_val
3912    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3913      # Best one so far, save it but keep looking for a better one
3914      ac_cv_path_EGREP="$ac_path_EGREP"
3915      ac_path_EGREP_max=$ac_count
3916    fi
3917    # 10*(2^10) chars as input seems more than enough
3918    test $ac_count -gt 10 && break
3919  done
3920  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3921esac
3922
3923      $ac_path_EGREP_found && break 3
3924    done
3925  done
3926  done
3927IFS=$as_save_IFS
3928  if test -z "$ac_cv_path_EGREP"; then
3929    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3930  fi
3931else
3932  ac_cv_path_EGREP=$EGREP
3933fi
3934
3935   fi
3936fi
3937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3938$as_echo "$ac_cv_path_EGREP" >&6; }
3939 EGREP="$ac_cv_path_EGREP"
3940
3941
3942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3943$as_echo_n "checking for ANSI C header files... " >&6; }
3944if ${ac_cv_header_stdc+:} false; then :
3945  $as_echo_n "(cached) " >&6
3946else
3947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3948/* end confdefs.h.  */
3949#include <stdlib.h>
3950#include <stdarg.h>
3951#include <string.h>
3952#include <float.h>
3953
3954int
3955main ()
3956{
3957
3958  ;
3959  return 0;
3960}
3961_ACEOF
3962if ac_fn_c_try_compile "$LINENO"; then :
3963  ac_cv_header_stdc=yes
3964else
3965  ac_cv_header_stdc=no
3966fi
3967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3968
3969if test $ac_cv_header_stdc = yes; then
3970  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3972/* end confdefs.h.  */
3973#include <string.h>
3974
3975_ACEOF
3976if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3977  $EGREP "memchr" >/dev/null 2>&1; then :
3978
3979else
3980  ac_cv_header_stdc=no
3981fi
3982rm -f conftest*
3983
3984fi
3985
3986if test $ac_cv_header_stdc = yes; then
3987  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989/* end confdefs.h.  */
3990#include <stdlib.h>
3991
3992_ACEOF
3993if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3994  $EGREP "free" >/dev/null 2>&1; then :
3995
3996else
3997  ac_cv_header_stdc=no
3998fi
3999rm -f conftest*
4000
4001fi
4002
4003if test $ac_cv_header_stdc = yes; then
4004  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4005  if test "$cross_compiling" = yes; then :
4006  :
4007else
4008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009/* end confdefs.h.  */
4010#include <ctype.h>
4011#include <stdlib.h>
4012#if ((' ' & 0x0FF) == 0x020)
4013# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4014# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4015#else
4016# define ISLOWER(c) \
4017		   (('a' <= (c) && (c) <= 'i') \
4018		     || ('j' <= (c) && (c) <= 'r') \
4019		     || ('s' <= (c) && (c) <= 'z'))
4020# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4021#endif
4022
4023#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4024int
4025main ()
4026{
4027  int i;
4028  for (i = 0; i < 256; i++)
4029    if (XOR (islower (i), ISLOWER (i))
4030	|| toupper (i) != TOUPPER (i))
4031      return 2;
4032  return 0;
4033}
4034_ACEOF
4035if ac_fn_c_try_run "$LINENO"; then :
4036
4037else
4038  ac_cv_header_stdc=no
4039fi
4040rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4041  conftest.$ac_objext conftest.beam conftest.$ac_ext
4042fi
4043
4044fi
4045fi
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4047$as_echo "$ac_cv_header_stdc" >&6; }
4048if test $ac_cv_header_stdc = yes; then
4049
4050$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4051
4052fi
4053
4054# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4055for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4056		  inttypes.h stdint.h unistd.h
4057do :
4058  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4059ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4060"
4061if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4062  cat >>confdefs.h <<_ACEOF
4063#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4064_ACEOF
4065
4066fi
4067
4068done
4069
4070
4071
4072  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4073if test "x$ac_cv_header_minix_config_h" = xyes; then :
4074  MINIX=yes
4075else
4076  MINIX=
4077fi
4078
4079
4080  if test "$MINIX" = yes; then
4081
4082$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4083
4084
4085$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4086
4087
4088$as_echo "#define _MINIX 1" >>confdefs.h
4089
4090  fi
4091
4092
4093  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4094$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4095if ${ac_cv_safe_to_define___extensions__+:} false; then :
4096  $as_echo_n "(cached) " >&6
4097else
4098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099/* end confdefs.h.  */
4100
4101#         define __EXTENSIONS__ 1
4102          $ac_includes_default
4103int
4104main ()
4105{
4106
4107  ;
4108  return 0;
4109}
4110_ACEOF
4111if ac_fn_c_try_compile "$LINENO"; then :
4112  ac_cv_safe_to_define___extensions__=yes
4113else
4114  ac_cv_safe_to_define___extensions__=no
4115fi
4116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4117fi
4118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4119$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4120  test $ac_cv_safe_to_define___extensions__ = yes &&
4121    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4122
4123  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4124
4125  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4126
4127  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4128
4129  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4130
4131
4132
4133if test "$ac_cv_header_minix_config_h" = "yes"; then
4134
4135$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4136
4137fi
4138
4139case "$prefix" in
4140        NONE)
4141		prefix="/usr/local"
4142        ;;
4143esac
4144case "$exec_prefix" in
4145        NONE)
4146		exec_prefix="$prefix"
4147        ;;
4148esac
4149
4150# are we on MinGW?
4151if uname -s 2>&1 | grep MINGW32 >/dev/null; then on_mingw="yes"
4152else
4153	if echo $host $target | grep mingw32 >/dev/null; then on_mingw="yes"
4154	else on_mingw="no"; fi
4155fi
4156
4157#
4158# Determine configuration file
4159# the eval is to evaluate shell expansion twice
4160UNBOUND_SBIN_DIR=`eval echo "${sbindir}"`
4161
4162UNBOUND_SYSCONF_DIR=`eval echo "${sysconfdir}"`
4163
4164UNBOUND_LOCALSTATE_DIR=`eval echo "${localstatedir}"`
4165
4166if test $on_mingw = "no"; then
4167  ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"`
4168else
4169  ub_conf_file="C:\\Program Files\\Unbound\\service.conf"
4170fi
4171
4172# Check whether --with-conf_file was given.
4173if test "${with_conf_file+set}" = set; then :
4174  withval=$with_conf_file; ub_conf_file="$withval"
4175fi
4176
4177
4178hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`"
4179
4180
4181cat >>confdefs.h <<_ACEOF
4182#define CONFIGFILE "$hdr_config"
4183_ACEOF
4184
4185ub_conf_dir=`$as_dirname -- "$ub_conf_file" ||
4186$as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4187	 X"$ub_conf_file" : 'X\(//\)[^/]' \| \
4188	 X"$ub_conf_file" : 'X\(//\)$' \| \
4189	 X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null ||
4190$as_echo X"$ub_conf_file" |
4191    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4192	    s//\1/
4193	    q
4194	  }
4195	  /^X\(\/\/\)[^/].*/{
4196	    s//\1/
4197	    q
4198	  }
4199	  /^X\(\/\/\)$/{
4200	    s//\1/
4201	    q
4202	  }
4203	  /^X\(\/\).*/{
4204	    s//\1/
4205	    q
4206	  }
4207	  s/.*/./; q'`
4208
4209
4210# Determine run, chroot directory and pidfile locations
4211
4212# Check whether --with-run-dir was given.
4213if test "${with_run_dir+set}" = set; then :
4214  withval=$with_run_dir; UNBOUND_RUN_DIR="$withval"
4215else
4216  if test $on_mingw = no; then
4217    UNBOUND_RUN_DIR=`dirname "$ub_conf_file"`
4218else
4219    UNBOUND_RUN_DIR=""
4220fi
4221
4222fi
4223
4224
4225hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4226
4227
4228cat >>confdefs.h <<_ACEOF
4229#define RUN_DIR "$hdr_run"
4230_ACEOF
4231
4232
4233
4234# Check whether --with-chroot-dir was given.
4235if test "${with_chroot_dir+set}" = set; then :
4236  withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval"
4237else
4238  if test $on_mingw = no; then
4239    UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR"
4240else
4241    UNBOUND_CHROOT_DIR=""
4242fi
4243
4244fi
4245
4246
4247hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4248
4249
4250cat >>confdefs.h <<_ACEOF
4251#define CHROOT_DIR "$hdr_chroot"
4252_ACEOF
4253
4254
4255
4256# Check whether --with-share-dir was given.
4257if test "${with_share_dir+set}" = set; then :
4258  withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval"
4259else
4260  UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR"
4261fi
4262
4263
4264
4265cat >>confdefs.h <<_ACEOF
4266#define SHARE_DIR "$UNBOUND_SHARE_DIR"
4267_ACEOF
4268
4269
4270
4271# Check whether --with-pidfile was given.
4272if test "${with_pidfile+set}" = set; then :
4273  withval=$with_pidfile; UNBOUND_PIDFILE="$withval"
4274else
4275  if test $on_mingw = no; then
4276    UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid"
4277else
4278    UNBOUND_PIDFILE=""
4279fi
4280
4281fi
4282
4283
4284hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4285
4286
4287cat >>confdefs.h <<_ACEOF
4288#define PIDFILE "$hdr_pid"
4289_ACEOF
4290
4291
4292
4293# Check whether --with-rootkey-file was given.
4294if test "${with_rootkey_file+set}" = set; then :
4295  withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval"
4296else
4297  if test $on_mingw = no; then
4298    UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key"
4299else
4300    UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key"
4301fi
4302
4303fi
4304
4305
4306hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4307
4308
4309cat >>confdefs.h <<_ACEOF
4310#define ROOT_ANCHOR_FILE "$hdr_rkey"
4311_ACEOF
4312
4313
4314
4315# Check whether --with-rootcert-file was given.
4316if test "${with_rootcert_file+set}" = set; then :
4317  withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval"
4318else
4319  if test $on_mingw = no; then
4320    UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem"
4321else
4322    UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem"
4323fi
4324
4325fi
4326
4327
4328hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4329
4330
4331cat >>confdefs.h <<_ACEOF
4332#define ROOT_CERT_FILE "$hdr_rpem"
4333_ACEOF
4334
4335
4336
4337# Check whether --with-username was given.
4338if test "${with_username+set}" = set; then :
4339  withval=$with_username; UNBOUND_USERNAME="$withval"
4340else
4341  UNBOUND_USERNAME="unbound"
4342fi
4343
4344
4345
4346cat >>confdefs.h <<_ACEOF
4347#define UB_USERNAME "$UNBOUND_USERNAME"
4348_ACEOF
4349
4350
4351
4352$as_echo "#define WINVER 0x0502" >>confdefs.h
4353
4354wnvs=`echo $PACKAGE_VERSION | sed -e 's/^[^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^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]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9]*$/\1,\2,\3,0/' `
4355
4356
4357cat >>confdefs.h <<_ACEOF
4358#define RSRC_PACKAGE_VERSION $wnvs
4359_ACEOF
4360
4361
4362# Checks for typedefs, structures, and compiler characteristics.
4363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4364$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4365if ${ac_cv_c_const+:} false; then :
4366  $as_echo_n "(cached) " >&6
4367else
4368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369/* end confdefs.h.  */
4370
4371int
4372main ()
4373{
4374
4375#ifndef __cplusplus
4376  /* Ultrix mips cc rejects this sort of thing.  */
4377  typedef int charset[2];
4378  const charset cs = { 0, 0 };
4379  /* SunOS 4.1.1 cc rejects this.  */
4380  char const *const *pcpcc;
4381  char **ppc;
4382  /* NEC SVR4.0.2 mips cc rejects this.  */
4383  struct point {int x, y;};
4384  static struct point const zero = {0,0};
4385  /* AIX XL C 1.02.0.0 rejects this.
4386     It does not let you subtract one const X* pointer from another in
4387     an arm of an if-expression whose if-part is not a constant
4388     expression */
4389  const char *g = "string";
4390  pcpcc = &g + (g ? g-g : 0);
4391  /* HPUX 7.0 cc rejects these. */
4392  ++pcpcc;
4393  ppc = (char**) pcpcc;
4394  pcpcc = (char const *const *) ppc;
4395  { /* SCO 3.2v4 cc rejects this sort of thing.  */
4396    char tx;
4397    char *t = &tx;
4398    char const *s = 0 ? (char *) 0 : (char const *) 0;
4399
4400    *t++ = 0;
4401    if (s) return 0;
4402  }
4403  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4404    int x[] = {25, 17};
4405    const int *foo = &x[0];
4406    ++foo;
4407  }
4408  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4409    typedef const int *iptr;
4410    iptr p = 0;
4411    ++p;
4412  }
4413  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4414       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4415    struct s { int j; const int *ap[3]; } bx;
4416    struct s *b = &bx; b->j = 5;
4417  }
4418  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4419    const int foo = 10;
4420    if (!foo) return 0;
4421  }
4422  return !cs[0] && !zero.x;
4423#endif
4424
4425  ;
4426  return 0;
4427}
4428_ACEOF
4429if ac_fn_c_try_compile "$LINENO"; then :
4430  ac_cv_c_const=yes
4431else
4432  ac_cv_c_const=no
4433fi
4434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4435fi
4436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4437$as_echo "$ac_cv_c_const" >&6; }
4438if test $ac_cv_c_const = no; then
4439
4440$as_echo "#define const /**/" >>confdefs.h
4441
4442fi
4443
4444ac_ext=c
4445ac_cpp='$CPP $CPPFLAGS'
4446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4448ac_compiler_gnu=$ac_cv_c_compiler_gnu
4449
4450# allow user to override the -g -O2 flags.
4451default_cflags=no
4452if test "x$CFLAGS" = "x" ; then
4453
4454
4455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
4456$as_echo_n "checking whether $CC supports -g... " >&6; }
4457cache=`echo g | sed 'y%.=/+-%___p_%'`
4458if eval \${cv_prog_cc_flag_$cache+:} false; then :
4459  $as_echo_n "(cached) " >&6
4460else
4461
4462echo 'void f(void){}' >conftest.c
4463if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
4464eval "cv_prog_cc_flag_$cache=yes"
4465else
4466eval "cv_prog_cc_flag_$cache=no"
4467fi
4468rm -f conftest conftest.o conftest.c
4469
4470fi
4471
4472if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4474$as_echo "yes" >&6; }
4475:
4476CFLAGS="$CFLAGS -g"
4477else
4478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4479$as_echo "no" >&6; }
4480:
4481
4482fi
4483
4484
4485
4486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4487$as_echo_n "checking whether $CC supports -O2... " >&6; }
4488cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4489if eval \${cv_prog_cc_flag_$cache+:} false; then :
4490  $as_echo_n "(cached) " >&6
4491else
4492
4493echo 'void f(void){}' >conftest.c
4494if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4495eval "cv_prog_cc_flag_$cache=yes"
4496else
4497eval "cv_prog_cc_flag_$cache=no"
4498fi
4499rm -f conftest conftest.o conftest.c
4500
4501fi
4502
4503if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4505$as_echo "yes" >&6; }
4506:
4507CFLAGS="$CFLAGS -O2"
4508else
4509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4510$as_echo "no" >&6; }
4511:
4512
4513fi
4514
4515default_cflags=yes
4516fi
4517ac_ext=c
4518ac_cpp='$CPP $CPPFLAGS'
4519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4521ac_compiler_gnu=$ac_cv_c_compiler_gnu
4522if test -n "$ac_tool_prefix"; then
4523  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4524set dummy ${ac_tool_prefix}gcc; ac_word=$2
4525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4526$as_echo_n "checking for $ac_word... " >&6; }
4527if ${ac_cv_prog_CC+:} false; then :
4528  $as_echo_n "(cached) " >&6
4529else
4530  if test -n "$CC"; then
4531  ac_cv_prog_CC="$CC" # Let the user override the test.
4532else
4533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534for as_dir in $PATH
4535do
4536  IFS=$as_save_IFS
4537  test -z "$as_dir" && as_dir=.
4538    for ac_exec_ext in '' $ac_executable_extensions; do
4539  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4540    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4541    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4542    break 2
4543  fi
4544done
4545  done
4546IFS=$as_save_IFS
4547
4548fi
4549fi
4550CC=$ac_cv_prog_CC
4551if test -n "$CC"; then
4552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4553$as_echo "$CC" >&6; }
4554else
4555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4556$as_echo "no" >&6; }
4557fi
4558
4559
4560fi
4561if test -z "$ac_cv_prog_CC"; then
4562  ac_ct_CC=$CC
4563  # Extract the first word of "gcc", so it can be a program name with args.
4564set dummy gcc; ac_word=$2
4565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4566$as_echo_n "checking for $ac_word... " >&6; }
4567if ${ac_cv_prog_ac_ct_CC+:} false; then :
4568  $as_echo_n "(cached) " >&6
4569else
4570  if test -n "$ac_ct_CC"; then
4571  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4572else
4573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574for as_dir in $PATH
4575do
4576  IFS=$as_save_IFS
4577  test -z "$as_dir" && as_dir=.
4578    for ac_exec_ext in '' $ac_executable_extensions; do
4579  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4580    ac_cv_prog_ac_ct_CC="gcc"
4581    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4582    break 2
4583  fi
4584done
4585  done
4586IFS=$as_save_IFS
4587
4588fi
4589fi
4590ac_ct_CC=$ac_cv_prog_ac_ct_CC
4591if test -n "$ac_ct_CC"; then
4592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4593$as_echo "$ac_ct_CC" >&6; }
4594else
4595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4596$as_echo "no" >&6; }
4597fi
4598
4599  if test "x$ac_ct_CC" = x; then
4600    CC=""
4601  else
4602    case $cross_compiling:$ac_tool_warned in
4603yes:)
4604{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4605$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4606ac_tool_warned=yes ;;
4607esac
4608    CC=$ac_ct_CC
4609  fi
4610else
4611  CC="$ac_cv_prog_CC"
4612fi
4613
4614if test -z "$CC"; then
4615          if test -n "$ac_tool_prefix"; then
4616    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4617set dummy ${ac_tool_prefix}cc; ac_word=$2
4618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4619$as_echo_n "checking for $ac_word... " >&6; }
4620if ${ac_cv_prog_CC+:} false; then :
4621  $as_echo_n "(cached) " >&6
4622else
4623  if test -n "$CC"; then
4624  ac_cv_prog_CC="$CC" # Let the user override the test.
4625else
4626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627for as_dir in $PATH
4628do
4629  IFS=$as_save_IFS
4630  test -z "$as_dir" && as_dir=.
4631    for ac_exec_ext in '' $ac_executable_extensions; do
4632  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4633    ac_cv_prog_CC="${ac_tool_prefix}cc"
4634    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4635    break 2
4636  fi
4637done
4638  done
4639IFS=$as_save_IFS
4640
4641fi
4642fi
4643CC=$ac_cv_prog_CC
4644if test -n "$CC"; then
4645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4646$as_echo "$CC" >&6; }
4647else
4648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4649$as_echo "no" >&6; }
4650fi
4651
4652
4653  fi
4654fi
4655if test -z "$CC"; then
4656  # Extract the first word of "cc", so it can be a program name with args.
4657set dummy cc; ac_word=$2
4658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4659$as_echo_n "checking for $ac_word... " >&6; }
4660if ${ac_cv_prog_CC+:} false; then :
4661  $as_echo_n "(cached) " >&6
4662else
4663  if test -n "$CC"; then
4664  ac_cv_prog_CC="$CC" # Let the user override the test.
4665else
4666  ac_prog_rejected=no
4667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668for as_dir in $PATH
4669do
4670  IFS=$as_save_IFS
4671  test -z "$as_dir" && as_dir=.
4672    for ac_exec_ext in '' $ac_executable_extensions; do
4673  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4674    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4675       ac_prog_rejected=yes
4676       continue
4677     fi
4678    ac_cv_prog_CC="cc"
4679    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4680    break 2
4681  fi
4682done
4683  done
4684IFS=$as_save_IFS
4685
4686if test $ac_prog_rejected = yes; then
4687  # We found a bogon in the path, so make sure we never use it.
4688  set dummy $ac_cv_prog_CC
4689  shift
4690  if test $# != 0; then
4691    # We chose a different compiler from the bogus one.
4692    # However, it has the same basename, so the bogon will be chosen
4693    # first if we set CC to just the basename; use the full file name.
4694    shift
4695    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4696  fi
4697fi
4698fi
4699fi
4700CC=$ac_cv_prog_CC
4701if test -n "$CC"; then
4702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4703$as_echo "$CC" >&6; }
4704else
4705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4706$as_echo "no" >&6; }
4707fi
4708
4709
4710fi
4711if test -z "$CC"; then
4712  if test -n "$ac_tool_prefix"; then
4713  for ac_prog in cl.exe
4714  do
4715    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4716set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4718$as_echo_n "checking for $ac_word... " >&6; }
4719if ${ac_cv_prog_CC+:} false; then :
4720  $as_echo_n "(cached) " >&6
4721else
4722  if test -n "$CC"; then
4723  ac_cv_prog_CC="$CC" # Let the user override the test.
4724else
4725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726for as_dir in $PATH
4727do
4728  IFS=$as_save_IFS
4729  test -z "$as_dir" && as_dir=.
4730    for ac_exec_ext in '' $ac_executable_extensions; do
4731  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4732    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4733    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4734    break 2
4735  fi
4736done
4737  done
4738IFS=$as_save_IFS
4739
4740fi
4741fi
4742CC=$ac_cv_prog_CC
4743if test -n "$CC"; then
4744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4745$as_echo "$CC" >&6; }
4746else
4747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4748$as_echo "no" >&6; }
4749fi
4750
4751
4752    test -n "$CC" && break
4753  done
4754fi
4755if test -z "$CC"; then
4756  ac_ct_CC=$CC
4757  for ac_prog in cl.exe
4758do
4759  # Extract the first word of "$ac_prog", so it can be a program name with args.
4760set dummy $ac_prog; ac_word=$2
4761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4762$as_echo_n "checking for $ac_word... " >&6; }
4763if ${ac_cv_prog_ac_ct_CC+:} false; then :
4764  $as_echo_n "(cached) " >&6
4765else
4766  if test -n "$ac_ct_CC"; then
4767  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4768else
4769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770for as_dir in $PATH
4771do
4772  IFS=$as_save_IFS
4773  test -z "$as_dir" && as_dir=.
4774    for ac_exec_ext in '' $ac_executable_extensions; do
4775  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4776    ac_cv_prog_ac_ct_CC="$ac_prog"
4777    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4778    break 2
4779  fi
4780done
4781  done
4782IFS=$as_save_IFS
4783
4784fi
4785fi
4786ac_ct_CC=$ac_cv_prog_ac_ct_CC
4787if test -n "$ac_ct_CC"; then
4788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4789$as_echo "$ac_ct_CC" >&6; }
4790else
4791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4792$as_echo "no" >&6; }
4793fi
4794
4795
4796  test -n "$ac_ct_CC" && break
4797done
4798
4799  if test "x$ac_ct_CC" = x; then
4800    CC=""
4801  else
4802    case $cross_compiling:$ac_tool_warned in
4803yes:)
4804{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4805$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4806ac_tool_warned=yes ;;
4807esac
4808    CC=$ac_ct_CC
4809  fi
4810fi
4811
4812fi
4813
4814
4815test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4816$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4817as_fn_error $? "no acceptable C compiler found in \$PATH
4818See \`config.log' for more details" "$LINENO" 5; }
4819
4820# Provide some information about the compiler.
4821$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4822set X $ac_compile
4823ac_compiler=$2
4824for ac_option in --version -v -V -qversion; do
4825  { { ac_try="$ac_compiler $ac_option >&5"
4826case "(($ac_try" in
4827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4828  *) ac_try_echo=$ac_try;;
4829esac
4830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4831$as_echo "$ac_try_echo"; } >&5
4832  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4833  ac_status=$?
4834  if test -s conftest.err; then
4835    sed '10a\
4836... rest of stderr output deleted ...
4837         10q' conftest.err >conftest.er1
4838    cat conftest.er1 >&5
4839  fi
4840  rm -f conftest.er1 conftest.err
4841  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4842  test $ac_status = 0; }
4843done
4844
4845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4846$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4847if ${ac_cv_c_compiler_gnu+:} false; then :
4848  $as_echo_n "(cached) " >&6
4849else
4850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4851/* end confdefs.h.  */
4852
4853int
4854main ()
4855{
4856#ifndef __GNUC__
4857       choke me
4858#endif
4859
4860  ;
4861  return 0;
4862}
4863_ACEOF
4864if ac_fn_c_try_compile "$LINENO"; then :
4865  ac_compiler_gnu=yes
4866else
4867  ac_compiler_gnu=no
4868fi
4869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4870ac_cv_c_compiler_gnu=$ac_compiler_gnu
4871
4872fi
4873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4874$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4875if test $ac_compiler_gnu = yes; then
4876  GCC=yes
4877else
4878  GCC=
4879fi
4880ac_test_CFLAGS=${CFLAGS+set}
4881ac_save_CFLAGS=$CFLAGS
4882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4883$as_echo_n "checking whether $CC accepts -g... " >&6; }
4884if ${ac_cv_prog_cc_g+:} false; then :
4885  $as_echo_n "(cached) " >&6
4886else
4887  ac_save_c_werror_flag=$ac_c_werror_flag
4888   ac_c_werror_flag=yes
4889   ac_cv_prog_cc_g=no
4890   CFLAGS="-g"
4891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892/* end confdefs.h.  */
4893
4894int
4895main ()
4896{
4897
4898  ;
4899  return 0;
4900}
4901_ACEOF
4902if ac_fn_c_try_compile "$LINENO"; then :
4903  ac_cv_prog_cc_g=yes
4904else
4905  CFLAGS=""
4906      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4907/* end confdefs.h.  */
4908
4909int
4910main ()
4911{
4912
4913  ;
4914  return 0;
4915}
4916_ACEOF
4917if ac_fn_c_try_compile "$LINENO"; then :
4918
4919else
4920  ac_c_werror_flag=$ac_save_c_werror_flag
4921	 CFLAGS="-g"
4922	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923/* end confdefs.h.  */
4924
4925int
4926main ()
4927{
4928
4929  ;
4930  return 0;
4931}
4932_ACEOF
4933if ac_fn_c_try_compile "$LINENO"; then :
4934  ac_cv_prog_cc_g=yes
4935fi
4936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4937fi
4938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4939fi
4940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4941   ac_c_werror_flag=$ac_save_c_werror_flag
4942fi
4943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4944$as_echo "$ac_cv_prog_cc_g" >&6; }
4945if test "$ac_test_CFLAGS" = set; then
4946  CFLAGS=$ac_save_CFLAGS
4947elif test $ac_cv_prog_cc_g = yes; then
4948  if test "$GCC" = yes; then
4949    CFLAGS="-g -O2"
4950  else
4951    CFLAGS="-g"
4952  fi
4953else
4954  if test "$GCC" = yes; then
4955    CFLAGS="-O2"
4956  else
4957    CFLAGS=
4958  fi
4959fi
4960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4961$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4962if ${ac_cv_prog_cc_c89+:} false; then :
4963  $as_echo_n "(cached) " >&6
4964else
4965  ac_cv_prog_cc_c89=no
4966ac_save_CC=$CC
4967cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4968/* end confdefs.h.  */
4969#include <stdarg.h>
4970#include <stdio.h>
4971struct stat;
4972/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4973struct buf { int x; };
4974FILE * (*rcsopen) (struct buf *, struct stat *, int);
4975static char *e (p, i)
4976     char **p;
4977     int i;
4978{
4979  return p[i];
4980}
4981static char *f (char * (*g) (char **, int), char **p, ...)
4982{
4983  char *s;
4984  va_list v;
4985  va_start (v,p);
4986  s = g (p, va_arg (v,int));
4987  va_end (v);
4988  return s;
4989}
4990
4991/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4992   function prototypes and stuff, but not '\xHH' hex character constants.
4993   These don't provoke an error unfortunately, instead are silently treated
4994   as 'x'.  The following induces an error, until -std is added to get
4995   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4996   array size at least.  It's necessary to write '\x00'==0 to get something
4997   that's true only with -std.  */
4998int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4999
5000/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5001   inside strings and character constants.  */
5002#define FOO(x) 'x'
5003int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5004
5005int test (int i, double x);
5006struct s1 {int (*f) (int a);};
5007struct s2 {int (*f) (double a);};
5008int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5009int argc;
5010char **argv;
5011int
5012main ()
5013{
5014return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5015  ;
5016  return 0;
5017}
5018_ACEOF
5019for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5020	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5021do
5022  CC="$ac_save_CC $ac_arg"
5023  if ac_fn_c_try_compile "$LINENO"; then :
5024  ac_cv_prog_cc_c89=$ac_arg
5025fi
5026rm -f core conftest.err conftest.$ac_objext
5027  test "x$ac_cv_prog_cc_c89" != "xno" && break
5028done
5029rm -f conftest.$ac_ext
5030CC=$ac_save_CC
5031
5032fi
5033# AC_CACHE_VAL
5034case "x$ac_cv_prog_cc_c89" in
5035  x)
5036    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5037$as_echo "none needed" >&6; } ;;
5038  xno)
5039    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5040$as_echo "unsupported" >&6; } ;;
5041  *)
5042    CC="$CC $ac_cv_prog_cc_c89"
5043    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5044$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5045esac
5046if test "x$ac_cv_prog_cc_c89" != xno; then :
5047
5048fi
5049
5050ac_ext=c
5051ac_cpp='$CPP $CPPFLAGS'
5052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5054ac_compiler_gnu=$ac_cv_c_compiler_gnu
5055
5056
5057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
5058$as_echo_n "checking $CC dependency flag... " >&6; }
5059echo 'void f(){}' >conftest.c
5060if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
5061	DEPFLAG="-MM"
5062else
5063  if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
5064	DEPFLAG="-xM1"
5065  else
5066	DEPFLAG="-MM"  # dunno do something
5067  fi
5068fi
5069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
5070$as_echo "$DEPFLAG" >&6; }
5071rm -f conftest.c
5072
5073
5074
5075
5076
5077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
5078$as_echo_n "checking whether $CC supports -Werror... " >&6; }
5079cache=`echo Werror | sed 'y%.=/+-%___p_%'`
5080if eval \${cv_prog_cc_flag_$cache+:} false; then :
5081  $as_echo_n "(cached) " >&6
5082else
5083
5084echo 'void f(void){}' >conftest.c
5085if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
5086eval "cv_prog_cc_flag_$cache=yes"
5087else
5088eval "cv_prog_cc_flag_$cache=no"
5089fi
5090rm -f conftest conftest.o conftest.c
5091
5092fi
5093
5094if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5096$as_echo "yes" >&6; }
5097:
5098ERRFLAG="-Werror"
5099else
5100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5101$as_echo "no" >&6; }
5102:
5103ERRFLAG="-errwarn"
5104fi
5105
5106
5107
5108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5109$as_echo_n "checking whether $CC supports -Wall... " >&6; }
5110cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5111if eval \${cv_prog_cc_flag_$cache+:} false; then :
5112  $as_echo_n "(cached) " >&6
5113else
5114
5115echo 'void f(void){}' >conftest.c
5116if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5117eval "cv_prog_cc_flag_$cache=yes"
5118else
5119eval "cv_prog_cc_flag_$cache=no"
5120fi
5121rm -f conftest conftest.o conftest.c
5122
5123fi
5124
5125if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5127$as_echo "yes" >&6; }
5128:
5129ERRFLAG="$ERRFLAG -Wall"
5130else
5131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5132$as_echo "no" >&6; }
5133:
5134ERRFLAG="$ERRFLAG -errfmt"
5135fi
5136
5137
5138
5139
5140
5141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
5142$as_echo_n "checking whether $CC supports -std=c99... " >&6; }
5143cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
5144if eval \${cv_prog_cc_flag_$cache+:} false; then :
5145  $as_echo_n "(cached) " >&6
5146else
5147
5148echo 'void f(void){}' >conftest.c
5149if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
5150eval "cv_prog_cc_flag_$cache=yes"
5151else
5152eval "cv_prog_cc_flag_$cache=no"
5153fi
5154rm -f conftest conftest.o conftest.c
5155
5156fi
5157
5158if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5160$as_echo "yes" >&6; }
5161:
5162C99FLAG="-std=c99"
5163else
5164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165$as_echo "no" >&6; }
5166:
5167
5168fi
5169
5170
5171
5172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
5173$as_echo_n "checking whether $CC supports -xc99... " >&6; }
5174cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
5175if eval \${cv_prog_cc_flag_$cache+:} false; then :
5176  $as_echo_n "(cached) " >&6
5177else
5178
5179echo 'void f(void){}' >conftest.c
5180if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
5181eval "cv_prog_cc_flag_$cache=yes"
5182else
5183eval "cv_prog_cc_flag_$cache=no"
5184fi
5185rm -f conftest conftest.o conftest.c
5186
5187fi
5188
5189if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5191$as_echo "yes" >&6; }
5192:
5193C99FLAG="-xc99"
5194else
5195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5196$as_echo "no" >&6; }
5197:
5198
5199fi
5200
5201
5202for ac_header in getopt.h time.h
5203do :
5204  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5205ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5206"
5207if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5208  cat >>confdefs.h <<_ACEOF
5209#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5210_ACEOF
5211
5212fi
5213
5214done
5215
5216
5217
5218
5219
5220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC" >&5
5221$as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC... " >&6; }
5222cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" | $as_tr_sh`
5223if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5224  $as_echo_n "(cached) " >&6
5225else
5226
5227echo '
5228#include "confdefs.h"
5229#include <stdlib.h>
5230#include <ctype.h>
5231#include <sys/time.h>
5232#ifdef HAVE_TIME_H
5233#include <time.h>
5234#endif
5235#include <unistd.h>
5236#include <netdb.h>
5237#ifdef HAVE_GETOPT_H
5238#include <getopt.h>
5239#endif
5240
5241int test() {
5242	int a;
5243	char **opts = NULL;
5244	struct timeval tv;
5245	char *t;
5246	time_t time = 0;
5247	char *buf = NULL;
5248	const char* str = NULL;
5249	struct msghdr msg;
5250	msg.msg_control = 0;
5251	t = ctime_r(&time, buf);
5252	tv.tv_usec = 10;
5253	srandom(32);
5254	a = getopt(2, opts, "a");
5255	a = isascii(32);
5256	str = gai_strerror(0);
5257	if(str && t && tv.tv_usec && msg.msg_control)
5258		a = 0;
5259	return a;
5260}
5261' > conftest.c
5262echo 'void f(){}' >>conftest.c
5263if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5264eval "cv_prog_cc_flag_needed_$cache=no"
5265else
5266
5267if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_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
5268eval "cv_prog_cc_flag_needed_$cache=yes"
5269else
5270eval "cv_prog_cc_flag_needed_$cache=fail"
5271#echo 'Test with flag fails too!'
5272#cat conftest.c
5273#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5274#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5275#exit 1
5276fi
5277
5278fi
5279rm -f conftest conftest.c conftest.o
5280
5281fi
5282
5283if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5285$as_echo "yes" >&6; }
5286:
5287CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE"
5288else
5289if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5291$as_echo "no" >&6; }
5292#echo 'Test with flag is no!'
5293#cat conftest.c
5294#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5295#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5296#exit 1
5297:
5298
5299else
5300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5301$as_echo "failed" >&6; }
5302:
5303
5304fi
5305fi
5306
5307
5308
5309
5310
5311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC" >&5
5312$as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC... " >&6; }
5313cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh`
5314if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5315  $as_echo_n "(cached) " >&6
5316else
5317
5318echo '
5319#include "confdefs.h"
5320#include <stdlib.h>
5321#include <ctype.h>
5322#include <sys/time.h>
5323#ifdef HAVE_TIME_H
5324#include <time.h>
5325#endif
5326#include <unistd.h>
5327#include <netdb.h>
5328#ifdef HAVE_GETOPT_H
5329#include <getopt.h>
5330#endif
5331
5332int test() {
5333	int a;
5334	char **opts = NULL;
5335	struct timeval tv;
5336	char *t;
5337	time_t time = 0;
5338	char *buf = NULL;
5339	const char* str = NULL;
5340	struct msghdr msg;
5341	msg.msg_control = 0;
5342	t = ctime_r(&time, buf);
5343	tv.tv_usec = 10;
5344	srandom(32);
5345	a = getopt(2, opts, "a");
5346	a = isascii(32);
5347	str = gai_strerror(0);
5348	if(str && t && tv.tv_usec && msg.msg_control)
5349		a = 0;
5350	return a;
5351}
5352' > conftest.c
5353echo 'void f(){}' >>conftest.c
5354if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5355eval "cv_prog_cc_flag_needed_$cache=no"
5356else
5357
5358if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5359eval "cv_prog_cc_flag_needed_$cache=yes"
5360else
5361eval "cv_prog_cc_flag_needed_$cache=fail"
5362#echo 'Test with flag fails too!'
5363#cat conftest.c
5364#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5365#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5366#exit 1
5367fi
5368
5369fi
5370rm -f conftest conftest.c conftest.o
5371
5372fi
5373
5374if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5376$as_echo "yes" >&6; }
5377:
5378CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
5379else
5380if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382$as_echo "no" >&6; }
5383#echo 'Test with flag is no!'
5384#cat conftest.c
5385#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5386#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5387#exit 1
5388:
5389
5390else
5391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5392$as_echo "failed" >&6; }
5393:
5394
5395fi
5396fi
5397
5398
5399
5400
5401
5402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
5403$as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
5404cache=`$as_echo "$C99FLAG" | $as_tr_sh`
5405if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5406  $as_echo_n "(cached) " >&6
5407else
5408
5409echo '
5410#include <stdbool.h>
5411#include <ctype.h>
5412int test() {
5413        int a = 0;
5414        return a;
5415}
5416' > conftest.c
5417echo 'void f(){}' >>conftest.c
5418if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5419eval "cv_prog_cc_flag_needed_$cache=no"
5420else
5421
5422if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
5423eval "cv_prog_cc_flag_needed_$cache=yes"
5424else
5425eval "cv_prog_cc_flag_needed_$cache=fail"
5426#echo 'Test with flag fails too!'
5427#cat conftest.c
5428#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5429#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5430#exit 1
5431fi
5432
5433fi
5434rm -f conftest conftest.c conftest.o
5435
5436fi
5437
5438if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5440$as_echo "yes" >&6; }
5441:
5442CFLAGS="$CFLAGS $C99FLAG"
5443else
5444if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5446$as_echo "no" >&6; }
5447#echo 'Test with flag is no!'
5448#cat conftest.c
5449#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5450#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5451#exit 1
5452:
5453
5454else
5455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5456$as_echo "failed" >&6; }
5457:
5458
5459fi
5460fi
5461
5462
5463
5464
5465
5466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC" >&5
5467$as_echo_n "checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC... " >&6; }
5468cache=_D_BSD_SOURCE__D_DEFAULT_SOURCE
5469if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5470  $as_echo_n "(cached) " >&6
5471else
5472
5473echo '
5474#include <ctype.h>
5475
5476int test() {
5477        int a;
5478        a = isascii(32);
5479        return a;
5480}
5481' > conftest.c
5482echo 'void f(){}' >>conftest.c
5483if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5484eval "cv_prog_cc_flag_needed_$cache=no"
5485else
5486
5487if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5488eval "cv_prog_cc_flag_needed_$cache=yes"
5489else
5490eval "cv_prog_cc_flag_needed_$cache=fail"
5491#echo 'Test with flag fails too!'
5492#cat conftest.c
5493#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5494#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5495#exit 1
5496fi
5497
5498fi
5499rm -f conftest conftest.c conftest.o
5500
5501fi
5502
5503if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5505$as_echo "yes" >&6; }
5506:
5507CFLAGS="$CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE"
5508else
5509if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5511$as_echo "no" >&6; }
5512#echo 'Test with flag is no!'
5513#cat conftest.c
5514#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5515#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5516#exit 1
5517:
5518
5519else
5520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5521$as_echo "failed" >&6; }
5522:
5523
5524fi
5525fi
5526
5527
5528
5529
5530
5531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
5532$as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
5533cache=_D_GNU_SOURCE
5534if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5535  $as_echo_n "(cached) " >&6
5536else
5537
5538echo '
5539#include <netinet/in.h>
5540
5541int test() {
5542        struct in6_pktinfo inf;
5543	int a = (int)sizeof(inf);
5544        return a;
5545}
5546' > conftest.c
5547echo 'void f(){}' >>conftest.c
5548if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5549eval "cv_prog_cc_flag_needed_$cache=no"
5550else
5551
5552if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5553eval "cv_prog_cc_flag_needed_$cache=yes"
5554else
5555eval "cv_prog_cc_flag_needed_$cache=fail"
5556#echo 'Test with flag fails too!'
5557#cat conftest.c
5558#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5559#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5560#exit 1
5561fi
5562
5563fi
5564rm -f conftest conftest.c conftest.o
5565
5566fi
5567
5568if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5570$as_echo "yes" >&6; }
5571:
5572CFLAGS="$CFLAGS -D_GNU_SOURCE"
5573else
5574if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5576$as_echo "no" >&6; }
5577#echo 'Test with flag is no!'
5578#cat conftest.c
5579#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5580#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5581#exit 1
5582:
5583
5584else
5585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5586$as_echo "failed" >&6; }
5587:
5588
5589fi
5590fi
5591
5592
5593# check again for GNU_SOURCE for setresgid. May fail if setresgid
5594# is not available at all. -D_FRSRESGID is to make this check unique.
5595# otherwise we would get the previous cached result.
5596
5597
5598
5599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
5600$as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
5601cache=_D_GNU_SOURCE__D_FRSRESGID
5602if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5603  $as_echo_n "(cached) " >&6
5604else
5605
5606echo '
5607#include <unistd.h>
5608
5609int test() {
5610	int a = setresgid(0,0,0);
5611	a = setresuid(0,0,0);
5612        return a;
5613}
5614' > conftest.c
5615echo 'void f(){}' >>conftest.c
5616if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5617eval "cv_prog_cc_flag_needed_$cache=no"
5618else
5619
5620if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
5621eval "cv_prog_cc_flag_needed_$cache=yes"
5622else
5623eval "cv_prog_cc_flag_needed_$cache=fail"
5624#echo 'Test with flag fails too!'
5625#cat conftest.c
5626#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5627#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5628#exit 1
5629fi
5630
5631fi
5632rm -f conftest conftest.c conftest.o
5633
5634fi
5635
5636if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5638$as_echo "yes" >&6; }
5639:
5640CFLAGS="$CFLAGS -D_GNU_SOURCE"
5641else
5642if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5644$as_echo "no" >&6; }
5645#echo 'Test with flag is no!'
5646#cat conftest.c
5647#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5648#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5649#exit 1
5650:
5651
5652else
5653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5654$as_echo "failed" >&6; }
5655:
5656
5657fi
5658fi
5659
5660
5661
5662
5663
5664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
5665$as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
5666cache=_D_POSIX_C_SOURCE_200112
5667if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5668  $as_echo_n "(cached) " >&6
5669else
5670
5671echo '
5672#include "confdefs.h"
5673#ifdef HAVE_TIME_H
5674#include <time.h>
5675#endif
5676#include <netdb.h>
5677
5678int test() {
5679        int a = 0;
5680        char *t;
5681        time_t time = 0;
5682        char *buf = NULL;
5683	const char* str = NULL;
5684        t = ctime_r(&time, buf);
5685	str = gai_strerror(0);
5686	if(t && str)
5687		a = 0;
5688        return a;
5689}
5690' > conftest.c
5691echo 'void f(){}' >>conftest.c
5692if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5693eval "cv_prog_cc_flag_needed_$cache=no"
5694else
5695
5696if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
5697eval "cv_prog_cc_flag_needed_$cache=yes"
5698else
5699eval "cv_prog_cc_flag_needed_$cache=fail"
5700#echo 'Test with flag fails too!'
5701#cat conftest.c
5702#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5703#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5704#exit 1
5705fi
5706
5707fi
5708rm -f conftest conftest.c conftest.o
5709
5710fi
5711
5712if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5714$as_echo "yes" >&6; }
5715:
5716CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
5717else
5718if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5720$as_echo "no" >&6; }
5721#echo 'Test with flag is no!'
5722#cat conftest.c
5723#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5724#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5725#exit 1
5726:
5727
5728else
5729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5730$as_echo "failed" >&6; }
5731:
5732
5733fi
5734fi
5735
5736
5737
5738
5739
5740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
5741$as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
5742cache=_D__EXTENSIONS__
5743if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5744  $as_echo_n "(cached) " >&6
5745else
5746
5747echo '
5748#include "confdefs.h"
5749#include <stdlib.h>
5750#include <ctype.h>
5751#include <sys/time.h>
5752#ifdef HAVE_TIME_H
5753#include <time.h>
5754#endif
5755#include <unistd.h>
5756#ifdef HAVE_GETOPT_H
5757#include <getopt.h>
5758#endif
5759
5760int test() {
5761        int a;
5762        char **opts = NULL;
5763        struct timeval tv;
5764        tv.tv_usec = 10;
5765        srandom(32);
5766        a = getopt(2, opts, "a");
5767        a = isascii(32);
5768	if(tv.tv_usec)
5769		a = 0;
5770        return a;
5771}
5772' > conftest.c
5773echo 'void f(){}' >>conftest.c
5774if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5775eval "cv_prog_cc_flag_needed_$cache=no"
5776else
5777
5778if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
5779eval "cv_prog_cc_flag_needed_$cache=yes"
5780else
5781eval "cv_prog_cc_flag_needed_$cache=fail"
5782#echo 'Test with flag fails too!'
5783#cat conftest.c
5784#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5785#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5786#exit 1
5787fi
5788
5789fi
5790rm -f conftest conftest.c conftest.o
5791
5792fi
5793
5794if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5796$as_echo "yes" >&6; }
5797:
5798CFLAGS="$CFLAGS -D__EXTENSIONS__"
5799else
5800if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5802$as_echo "no" >&6; }
5803#echo 'Test with flag is no!'
5804#cat conftest.c
5805#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5806#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5807#exit 1
5808:
5809
5810else
5811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5812$as_echo "failed" >&6; }
5813:
5814
5815fi
5816fi
5817
5818
5819
5820
5821# debug mode flags warnings
5822# Check whether --enable-checking was given.
5823if test "${enable_checking+set}" = set; then :
5824  enableval=$enable_checking;
5825fi
5826
5827# Check whether --enable-debug was given.
5828if test "${enable_debug+set}" = set; then :
5829  enableval=$enable_debug;
5830fi
5831
5832if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug";
5833else debug_enabled="$enable_checking"; fi
5834
5835case "$debug_enabled" in
5836        yes)
5837
5838
5839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
5840$as_echo_n "checking whether $CC supports -W... " >&6; }
5841cache=`echo W | sed 'y%.=/+-%___p_%'`
5842if eval \${cv_prog_cc_flag_$cache+:} false; then :
5843  $as_echo_n "(cached) " >&6
5844else
5845
5846echo 'void f(void){}' >conftest.c
5847if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
5848eval "cv_prog_cc_flag_$cache=yes"
5849else
5850eval "cv_prog_cc_flag_$cache=no"
5851fi
5852rm -f conftest conftest.o conftest.c
5853
5854fi
5855
5856if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5858$as_echo "yes" >&6; }
5859:
5860CFLAGS="$CFLAGS -W"
5861else
5862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5863$as_echo "no" >&6; }
5864:
5865
5866fi
5867
5868
5869
5870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5871$as_echo_n "checking whether $CC supports -Wall... " >&6; }
5872cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5873if eval \${cv_prog_cc_flag_$cache+:} false; then :
5874  $as_echo_n "(cached) " >&6
5875else
5876
5877echo 'void f(void){}' >conftest.c
5878if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5879eval "cv_prog_cc_flag_$cache=yes"
5880else
5881eval "cv_prog_cc_flag_$cache=no"
5882fi
5883rm -f conftest conftest.o conftest.c
5884
5885fi
5886
5887if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5889$as_echo "yes" >&6; }
5890:
5891CFLAGS="$CFLAGS -Wall"
5892else
5893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5894$as_echo "no" >&6; }
5895:
5896
5897fi
5898
5899
5900
5901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
5902$as_echo_n "checking whether $CC supports -Wextra... " >&6; }
5903cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
5904if eval \${cv_prog_cc_flag_$cache+:} false; then :
5905  $as_echo_n "(cached) " >&6
5906else
5907
5908echo 'void f(void){}' >conftest.c
5909if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then
5910eval "cv_prog_cc_flag_$cache=yes"
5911else
5912eval "cv_prog_cc_flag_$cache=no"
5913fi
5914rm -f conftest conftest.o conftest.c
5915
5916fi
5917
5918if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5920$as_echo "yes" >&6; }
5921:
5922CFLAGS="$CFLAGS -Wextra"
5923else
5924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5925$as_echo "no" >&6; }
5926:
5927
5928fi
5929
5930
5931
5932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
5933$as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
5934cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
5935if eval \${cv_prog_cc_flag_$cache+:} false; then :
5936  $as_echo_n "(cached) " >&6
5937else
5938
5939echo 'void f(void){}' >conftest.c
5940if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
5941eval "cv_prog_cc_flag_$cache=yes"
5942else
5943eval "cv_prog_cc_flag_$cache=no"
5944fi
5945rm -f conftest conftest.o conftest.c
5946
5947fi
5948
5949if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5951$as_echo "yes" >&6; }
5952:
5953CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5954else
5955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5956$as_echo "no" >&6; }
5957:
5958
5959fi
5960
5961
5962$as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h
5963
5964		;;
5965	no|*)
5966		# nothing to do.
5967		;;
5968esac
5969if test "$default_cflags" = "yes"; then
5970	# only when CFLAGS was "" at the start, if the users wants to
5971	# override we shouldn't add default cflags, because they wouldn't
5972	# be able to turn off these options and set the CFLAGS wanted.
5973
5974    # Check whether --enable-flto was given.
5975if test "${enable_flto+set}" = set; then :
5976  enableval=$enable_flto;
5977fi
5978
5979    if test "x$enable_flto" != "xno"; then :
5980
5981        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
5982$as_echo_n "checking if $CC supports -flto... " >&6; }
5983        BAKCFLAGS="$CFLAGS"
5984        CFLAGS="$CFLAGS -flto"
5985        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986/* end confdefs.h.  */
5987
5988int
5989main ()
5990{
5991
5992  ;
5993  return 0;
5994}
5995_ACEOF
5996if ac_fn_c_try_link "$LINENO"; then :
5997
5998            if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then
5999                CFLAGS="$BAKCFLAGS"
6000                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6001$as_echo "no" >&6; }
6002            else
6003                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6004$as_echo "yes" >&6; }
6005            fi
6006            rm -f conftest conftest.c conftest.o
6007
6008else
6009  CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6010$as_echo "no" >&6; }
6011fi
6012rm -f core conftest.err conftest.$ac_objext \
6013    conftest$ac_exeext conftest.$ac_ext
6014
6015fi
6016
6017
6018    # Check whether --enable-pie was given.
6019if test "${enable_pie+set}" = set; then :
6020  enableval=$enable_pie;
6021fi
6022
6023    if test "x$enable_pie" = "xyes"; then :
6024
6025	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5
6026$as_echo_n "checking if $CC supports PIE... " >&6; }
6027	BAKLDFLAGS="$LDFLAGS"
6028	BAKCFLAGS="$CFLAGS"
6029	LDFLAGS="$LDFLAGS -pie"
6030	CFLAGS="$CFLAGS -fPIE"
6031	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6032/* end confdefs.h.  */
6033
6034int
6035main ()
6036{
6037
6038  ;
6039  return 0;
6040}
6041_ACEOF
6042if ac_fn_c_try_link "$LINENO"; then :
6043
6044	    if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
6045		LDFLAGS="$BAKLDFLAGS"
6046		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6047$as_echo "no" >&6; }
6048	    else
6049		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6050$as_echo "yes" >&6; }
6051	    fi
6052	    rm -f conftest conftest.c conftest.o
6053
6054else
6055  LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6056$as_echo "no" >&6; }
6057fi
6058rm -f core conftest.err conftest.$ac_objext \
6059    conftest$ac_exeext conftest.$ac_ext
6060
6061fi
6062
6063
6064    # Check whether --enable-relro_now was given.
6065if test "${enable_relro_now+set}" = set; then :
6066  enableval=$enable_relro_now;
6067fi
6068
6069    if test "x$enable_relro_now" = "xyes"; then :
6070
6071	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5
6072$as_echo_n "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; }
6073	BAKLDFLAGS="$LDFLAGS"
6074	LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now"
6075	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076/* end confdefs.h.  */
6077
6078int
6079main ()
6080{
6081
6082  ;
6083  return 0;
6084}
6085_ACEOF
6086if ac_fn_c_try_link "$LINENO"; then :
6087
6088	    if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
6089		LDFLAGS="$BAKLDFLAGS"
6090		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6091$as_echo "no" >&6; }
6092	    else
6093		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6094$as_echo "yes" >&6; }
6095	    fi
6096	    rm -f conftest conftest.c conftest.o
6097
6098else
6099  LDFLAGS="$BAKLDFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6100$as_echo "no" >&6; }
6101fi
6102rm -f core conftest.err conftest.$ac_objext \
6103    conftest$ac_exeext conftest.$ac_ext
6104
6105fi
6106
6107fi
6108
6109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6110$as_echo_n "checking for inline... " >&6; }
6111if ${ac_cv_c_inline+:} false; then :
6112  $as_echo_n "(cached) " >&6
6113else
6114  ac_cv_c_inline=no
6115for ac_kw in inline __inline__ __inline; do
6116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6117/* end confdefs.h.  */
6118#ifndef __cplusplus
6119typedef int foo_t;
6120static $ac_kw foo_t static_foo () {return 0; }
6121$ac_kw foo_t foo () {return 0; }
6122#endif
6123
6124_ACEOF
6125if ac_fn_c_try_compile "$LINENO"; then :
6126  ac_cv_c_inline=$ac_kw
6127fi
6128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6129  test "$ac_cv_c_inline" != no && break
6130done
6131
6132fi
6133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6134$as_echo "$ac_cv_c_inline" >&6; }
6135
6136case $ac_cv_c_inline in
6137  inline | yes) ;;
6138  *)
6139    case $ac_cv_c_inline in
6140      no) ac_val=;;
6141      *) ac_val=$ac_cv_c_inline;;
6142    esac
6143    cat >>confdefs.h <<_ACEOF
6144#ifndef __cplusplus
6145#define inline $ac_val
6146#endif
6147_ACEOF
6148    ;;
6149esac
6150
6151
6152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
6153$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
6154if ${ac_cv_c_format_attribute+:} false; then :
6155  $as_echo_n "(cached) " >&6
6156else
6157  ac_cv_c_format_attribute=no
6158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6159/* end confdefs.h.  */
6160#include <stdio.h>
6161void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6162void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6163
6164int
6165main ()
6166{
6167
6168   f ("%s", "str");
6169
6170  ;
6171  return 0;
6172}
6173_ACEOF
6174if ac_fn_c_try_compile "$LINENO"; then :
6175  ac_cv_c_format_attribute="yes"
6176else
6177  ac_cv_c_format_attribute="no"
6178fi
6179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6180
6181fi
6182
6183
6184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
6185$as_echo "$ac_cv_c_format_attribute" >&6; }
6186if test $ac_cv_c_format_attribute = yes; then
6187
6188$as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
6189
6190fi
6191
6192
6193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
6194$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
6195if ${ac_cv_c_unused_attribute+:} false; then :
6196  $as_echo_n "(cached) " >&6
6197else
6198  ac_cv_c_unused_attribute=no
6199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6200/* end confdefs.h.  */
6201#include <stdio.h>
6202void f (char *u __attribute__((unused)));
6203
6204int
6205main ()
6206{
6207
6208   f ("x");
6209
6210  ;
6211  return 0;
6212}
6213_ACEOF
6214if ac_fn_c_try_compile "$LINENO"; then :
6215  ac_cv_c_unused_attribute="yes"
6216else
6217  ac_cv_c_unused_attribute="no"
6218fi
6219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6220
6221fi
6222
6223
6224
6225
6226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
6227$as_echo "$ac_cv_c_unused_attribute" >&6; }
6228if test $ac_cv_c_unused_attribute = yes; then
6229
6230$as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
6231
6232fi
6233
6234
6235
6236
6237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute" >&5
6238$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute... " >&6; }
6239if ${ac_cv_c_weak_attribute+:} false; then :
6240  $as_echo_n "(cached) " >&6
6241else
6242  ac_cv_c_weak_attribute=no
6243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6244/* end confdefs.h.  */
6245 #include <stdio.h>
6246__attribute__((weak)) void f(int x) { printf("%d", x); }
6247
6248int
6249main ()
6250{
6251
6252   f(1);
6253
6254  ;
6255  return 0;
6256}
6257_ACEOF
6258if ac_fn_c_try_compile "$LINENO"; then :
6259  ac_cv_c_weak_attribute="yes"
6260else
6261  ac_cv_c_weak_attribute="no"
6262fi
6263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6264
6265fi
6266
6267
6268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_weak_attribute" >&5
6269$as_echo "$ac_cv_c_weak_attribute" >&6; }
6270if test $ac_cv_c_weak_attribute = yes; then
6271
6272$as_echo "#define HAVE_ATTR_WEAK 1" >>confdefs.h
6273
6274
6275$as_echo "#define ATTR_WEAK __attribute__((weak))" >>confdefs.h
6276
6277fi
6278
6279
6280
6281
6282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute" >&5
6283$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute... " >&6; }
6284if ${ac_cv_c_noreturn_attribute+:} false; then :
6285  $as_echo_n "(cached) " >&6
6286else
6287  ac_cv_c_noreturn_attribute=no
6288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6289/* end confdefs.h.  */
6290 #include <stdio.h>
6291__attribute__((noreturn)) void f(int x) { printf("%d", x); }
6292
6293int
6294main ()
6295{
6296
6297   f(1);
6298
6299  ;
6300  return 0;
6301}
6302_ACEOF
6303if ac_fn_c_try_compile "$LINENO"; then :
6304  ac_cv_c_noreturn_attribute="yes"
6305else
6306  ac_cv_c_noreturn_attribute="no"
6307fi
6308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6309
6310fi
6311
6312
6313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_noreturn_attribute" >&5
6314$as_echo "$ac_cv_c_noreturn_attribute" >&6; }
6315if test $ac_cv_c_noreturn_attribute = yes; then
6316
6317$as_echo "#define HAVE_ATTR_NORETURN 1" >>confdefs.h
6318
6319
6320$as_echo "#define ATTR_NORETURN __attribute__((__noreturn__))" >>confdefs.h
6321
6322fi
6323
6324
6325if test "$srcdir" != "."; then
6326	CPPFLAGS="$CPPFLAGS -I$srcdir"
6327fi
6328
6329
6330
6331
6332
6333for ac_prog in flex lex
6334do
6335  # Extract the first word of "$ac_prog", so it can be a program name with args.
6336set dummy $ac_prog; ac_word=$2
6337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6338$as_echo_n "checking for $ac_word... " >&6; }
6339if ${ac_cv_prog_LEX+:} false; then :
6340  $as_echo_n "(cached) " >&6
6341else
6342  if test -n "$LEX"; then
6343  ac_cv_prog_LEX="$LEX" # Let the user override the test.
6344else
6345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346for as_dir in $PATH
6347do
6348  IFS=$as_save_IFS
6349  test -z "$as_dir" && as_dir=.
6350    for ac_exec_ext in '' $ac_executable_extensions; do
6351  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6352    ac_cv_prog_LEX="$ac_prog"
6353    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6354    break 2
6355  fi
6356done
6357  done
6358IFS=$as_save_IFS
6359
6360fi
6361fi
6362LEX=$ac_cv_prog_LEX
6363if test -n "$LEX"; then
6364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6365$as_echo "$LEX" >&6; }
6366else
6367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6368$as_echo "no" >&6; }
6369fi
6370
6371
6372  test -n "$LEX" && break
6373done
6374test -n "$LEX" || LEX=":"
6375
6376if test "x$LEX" != "x:"; then
6377  cat >conftest.l <<_ACEOF
6378%%
6379a { ECHO; }
6380b { REJECT; }
6381c { yymore (); }
6382d { yyless (1); }
6383e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
6384    yyless ((input () != 0)); }
6385f { unput (yytext[0]); }
6386. { BEGIN INITIAL; }
6387%%
6388#ifdef YYTEXT_POINTER
6389extern char *yytext;
6390#endif
6391int
6392main (void)
6393{
6394  return ! yylex () + ! yywrap ();
6395}
6396_ACEOF
6397{ { ac_try="$LEX conftest.l"
6398case "(($ac_try" in
6399  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6400  *) ac_try_echo=$ac_try;;
6401esac
6402eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6403$as_echo "$ac_try_echo"; } >&5
6404  (eval "$LEX conftest.l") 2>&5
6405  ac_status=$?
6406  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6407  test $ac_status = 0; }
6408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6409$as_echo_n "checking lex output file root... " >&6; }
6410if ${ac_cv_prog_lex_root+:} false; then :
6411  $as_echo_n "(cached) " >&6
6412else
6413
6414if test -f lex.yy.c; then
6415  ac_cv_prog_lex_root=lex.yy
6416elif test -f lexyy.c; then
6417  ac_cv_prog_lex_root=lexyy
6418else
6419  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
6420fi
6421fi
6422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6423$as_echo "$ac_cv_prog_lex_root" >&6; }
6424LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6425
6426if test -z "${LEXLIB+set}"; then
6427  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6428$as_echo_n "checking lex library... " >&6; }
6429if ${ac_cv_lib_lex+:} false; then :
6430  $as_echo_n "(cached) " >&6
6431else
6432
6433    ac_save_LIBS=$LIBS
6434    ac_cv_lib_lex='none needed'
6435    for ac_lib in '' -lfl -ll; do
6436      LIBS="$ac_lib $ac_save_LIBS"
6437      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6438/* end confdefs.h.  */
6439`cat $LEX_OUTPUT_ROOT.c`
6440_ACEOF
6441if ac_fn_c_try_link "$LINENO"; then :
6442  ac_cv_lib_lex=$ac_lib
6443fi
6444rm -f core conftest.err conftest.$ac_objext \
6445    conftest$ac_exeext conftest.$ac_ext
6446      test "$ac_cv_lib_lex" != 'none needed' && break
6447    done
6448    LIBS=$ac_save_LIBS
6449
6450fi
6451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6452$as_echo "$ac_cv_lib_lex" >&6; }
6453  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6454fi
6455
6456
6457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6458$as_echo_n "checking whether yytext is a pointer... " >&6; }
6459if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
6460  $as_echo_n "(cached) " >&6
6461else
6462  # POSIX says lex can declare yytext either as a pointer or an array; the
6463# default is implementation-dependent.  Figure out which it is, since
6464# not all implementations provide the %pointer and %array declarations.
6465ac_cv_prog_lex_yytext_pointer=no
6466ac_save_LIBS=$LIBS
6467LIBS="$LEXLIB $ac_save_LIBS"
6468cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469/* end confdefs.h.  */
6470
6471  #define YYTEXT_POINTER 1
6472`cat $LEX_OUTPUT_ROOT.c`
6473_ACEOF
6474if ac_fn_c_try_link "$LINENO"; then :
6475  ac_cv_prog_lex_yytext_pointer=yes
6476fi
6477rm -f core conftest.err conftest.$ac_objext \
6478    conftest$ac_exeext conftest.$ac_ext
6479LIBS=$ac_save_LIBS
6480
6481fi
6482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6483$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6484if test $ac_cv_prog_lex_yytext_pointer = yes; then
6485
6486$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6487
6488fi
6489rm -f conftest.l $LEX_OUTPUT_ROOT.c
6490
6491fi
6492if test "$LEX" != "" -a "$LEX" != ":"; then
6493
6494	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
6495$as_echo_n "checking for yylex_destroy... " >&6; }
6496	if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then
6497
6498$as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h
6499
6500		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6501$as_echo "yes" >&6; }
6502	else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503$as_echo "no" >&6; };
6504		LEX=":"
6505	fi
6506
6507fi
6508if test "$LEX" != "" -a "$LEX" != ":"; then
6509
6510	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lex %option" >&5
6511$as_echo_n "checking for lex %option... " >&6; }
6512	if cat <<EOF | $LEX -t 2>&1 | grep yy_delete_buffer >/dev/null 2>&1; then
6513%option nounput
6514%%
6515EOF
6516		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6517$as_echo "yes" >&6; }
6518	else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519$as_echo "no" >&6; };
6520		LEX=":"
6521	fi
6522
6523fi
6524for ac_prog in 'bison -y' byacc
6525do
6526  # Extract the first word of "$ac_prog", so it can be a program name with args.
6527set dummy $ac_prog; ac_word=$2
6528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6529$as_echo_n "checking for $ac_word... " >&6; }
6530if ${ac_cv_prog_YACC+:} false; then :
6531  $as_echo_n "(cached) " >&6
6532else
6533  if test -n "$YACC"; then
6534  ac_cv_prog_YACC="$YACC" # Let the user override the test.
6535else
6536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537for as_dir in $PATH
6538do
6539  IFS=$as_save_IFS
6540  test -z "$as_dir" && as_dir=.
6541    for ac_exec_ext in '' $ac_executable_extensions; do
6542  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6543    ac_cv_prog_YACC="$ac_prog"
6544    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6545    break 2
6546  fi
6547done
6548  done
6549IFS=$as_save_IFS
6550
6551fi
6552fi
6553YACC=$ac_cv_prog_YACC
6554if test -n "$YACC"; then
6555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6556$as_echo "$YACC" >&6; }
6557else
6558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6559$as_echo "no" >&6; }
6560fi
6561
6562
6563  test -n "$YACC" && break
6564done
6565test -n "$YACC" || YACC="yacc"
6566
6567# Extract the first word of "doxygen", so it can be a program name with args.
6568set dummy doxygen; ac_word=$2
6569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6570$as_echo_n "checking for $ac_word... " >&6; }
6571if ${ac_cv_prog_doxygen+:} false; then :
6572  $as_echo_n "(cached) " >&6
6573else
6574  if test -n "$doxygen"; then
6575  ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
6576else
6577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578for as_dir in $PATH
6579do
6580  IFS=$as_save_IFS
6581  test -z "$as_dir" && as_dir=.
6582    for ac_exec_ext in '' $ac_executable_extensions; do
6583  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6584    ac_cv_prog_doxygen="doxygen"
6585    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6586    break 2
6587  fi
6588done
6589  done
6590IFS=$as_save_IFS
6591
6592fi
6593fi
6594doxygen=$ac_cv_prog_doxygen
6595if test -n "$doxygen"; then
6596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
6597$as_echo "$doxygen" >&6; }
6598else
6599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6600$as_echo "no" >&6; }
6601fi
6602
6603
6604if test -n "$ac_tool_prefix"; then
6605  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6606set dummy ${ac_tool_prefix}strip; ac_word=$2
6607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6608$as_echo_n "checking for $ac_word... " >&6; }
6609if ${ac_cv_prog_STRIP+:} false; then :
6610  $as_echo_n "(cached) " >&6
6611else
6612  if test -n "$STRIP"; then
6613  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6614else
6615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616for as_dir in $PATH
6617do
6618  IFS=$as_save_IFS
6619  test -z "$as_dir" && as_dir=.
6620    for ac_exec_ext in '' $ac_executable_extensions; do
6621  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6622    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6623    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6624    break 2
6625  fi
6626done
6627  done
6628IFS=$as_save_IFS
6629
6630fi
6631fi
6632STRIP=$ac_cv_prog_STRIP
6633if test -n "$STRIP"; then
6634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6635$as_echo "$STRIP" >&6; }
6636else
6637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6638$as_echo "no" >&6; }
6639fi
6640
6641
6642fi
6643if test -z "$ac_cv_prog_STRIP"; then
6644  ac_ct_STRIP=$STRIP
6645  # Extract the first word of "strip", so it can be a program name with args.
6646set dummy strip; ac_word=$2
6647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6648$as_echo_n "checking for $ac_word... " >&6; }
6649if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6650  $as_echo_n "(cached) " >&6
6651else
6652  if test -n "$ac_ct_STRIP"; then
6653  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6654else
6655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656for as_dir in $PATH
6657do
6658  IFS=$as_save_IFS
6659  test -z "$as_dir" && as_dir=.
6660    for ac_exec_ext in '' $ac_executable_extensions; do
6661  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6662    ac_cv_prog_ac_ct_STRIP="strip"
6663    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6664    break 2
6665  fi
6666done
6667  done
6668IFS=$as_save_IFS
6669
6670fi
6671fi
6672ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6673if test -n "$ac_ct_STRIP"; then
6674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6675$as_echo "$ac_ct_STRIP" >&6; }
6676else
6677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6678$as_echo "no" >&6; }
6679fi
6680
6681  if test "x$ac_ct_STRIP" = x; then
6682    STRIP=""
6683  else
6684    case $cross_compiling:$ac_tool_warned in
6685yes:)
6686{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6687$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6688ac_tool_warned=yes ;;
6689esac
6690    STRIP=$ac_ct_STRIP
6691  fi
6692else
6693  STRIP="$ac_cv_prog_STRIP"
6694fi
6695
6696ac_aux_dir=
6697for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6698  if test -f "$ac_dir/install-sh"; then
6699    ac_aux_dir=$ac_dir
6700    ac_install_sh="$ac_aux_dir/install-sh -c"
6701    break
6702  elif test -f "$ac_dir/install.sh"; then
6703    ac_aux_dir=$ac_dir
6704    ac_install_sh="$ac_aux_dir/install.sh -c"
6705    break
6706  elif test -f "$ac_dir/shtool"; then
6707    ac_aux_dir=$ac_dir
6708    ac_install_sh="$ac_aux_dir/shtool install -c"
6709    break
6710  fi
6711done
6712if test -z "$ac_aux_dir"; then
6713  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6714fi
6715
6716# These three variables are undocumented and unsupported,
6717# and are intended to be withdrawn in a future Autoconf release.
6718# They can cause serious problems if a builder's source tree is in a directory
6719# whose full name contains unusual characters.
6720ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
6721ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
6722ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
6723
6724
6725# Make sure we can run config.sub.
6726$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6727  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6728
6729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6730$as_echo_n "checking build system type... " >&6; }
6731if ${ac_cv_build+:} false; then :
6732  $as_echo_n "(cached) " >&6
6733else
6734  ac_build_alias=$build_alias
6735test "x$ac_build_alias" = x &&
6736  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6737test "x$ac_build_alias" = x &&
6738  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6739ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6740  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6741
6742fi
6743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6744$as_echo "$ac_cv_build" >&6; }
6745case $ac_cv_build in
6746*-*-*) ;;
6747*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6748esac
6749build=$ac_cv_build
6750ac_save_IFS=$IFS; IFS='-'
6751set x $ac_cv_build
6752shift
6753build_cpu=$1
6754build_vendor=$2
6755shift; shift
6756# Remember, the first character of IFS is used to create $*,
6757# except with old shells:
6758build_os=$*
6759IFS=$ac_save_IFS
6760case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6761
6762
6763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6764$as_echo_n "checking host system type... " >&6; }
6765if ${ac_cv_host+:} false; then :
6766  $as_echo_n "(cached) " >&6
6767else
6768  if test "x$host_alias" = x; then
6769  ac_cv_host=$ac_cv_build
6770else
6771  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6772    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6773fi
6774
6775fi
6776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6777$as_echo "$ac_cv_host" >&6; }
6778case $ac_cv_host in
6779*-*-*) ;;
6780*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6781esac
6782host=$ac_cv_host
6783ac_save_IFS=$IFS; IFS='-'
6784set x $ac_cv_host
6785shift
6786host_cpu=$1
6787host_vendor=$2
6788shift; shift
6789# Remember, the first character of IFS is used to create $*,
6790# except with old shells:
6791host_os=$*
6792IFS=$ac_save_IFS
6793case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6794
6795
6796
6797# skip these tests, we do not need them.
6798
6799
6800
6801
6802
6803
6804
6805
6806# always use ./libtool unless override from commandline (libtool=mylibtool)
6807if test -z "$libtool"; then
6808	libtool="./libtool"
6809fi
6810
6811# avoid libtool max commandline length test on systems that fork slowly.
6812
6813if echo "$host_os" | grep "sunos4" >/dev/null; then
6814	lt_cv_sys_max_cmd_len=32750;
6815fi
6816if test -n "$ac_tool_prefix"; then
6817  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6818set dummy ${ac_tool_prefix}ar; ac_word=$2
6819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6820$as_echo_n "checking for $ac_word... " >&6; }
6821if ${ac_cv_path_AR+:} false; then :
6822  $as_echo_n "(cached) " >&6
6823else
6824  case $AR in
6825  [\\/]* | ?:[\\/]*)
6826  ac_cv_path_AR="$AR" # Let the user override the test with a path.
6827  ;;
6828  *)
6829  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830for as_dir in $PATH
6831do
6832  IFS=$as_save_IFS
6833  test -z "$as_dir" && as_dir=.
6834    for ac_exec_ext in '' $ac_executable_extensions; do
6835  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6836    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6837    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6838    break 2
6839  fi
6840done
6841  done
6842IFS=$as_save_IFS
6843
6844  ;;
6845esac
6846fi
6847AR=$ac_cv_path_AR
6848if test -n "$AR"; then
6849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6850$as_echo "$AR" >&6; }
6851else
6852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6853$as_echo "no" >&6; }
6854fi
6855
6856
6857fi
6858if test -z "$ac_cv_path_AR"; then
6859  ac_pt_AR=$AR
6860  # Extract the first word of "ar", so it can be a program name with args.
6861set dummy ar; ac_word=$2
6862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6863$as_echo_n "checking for $ac_word... " >&6; }
6864if ${ac_cv_path_ac_pt_AR+:} false; then :
6865  $as_echo_n "(cached) " >&6
6866else
6867  case $ac_pt_AR in
6868  [\\/]* | ?:[\\/]*)
6869  ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6870  ;;
6871  *)
6872  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873for as_dir in $PATH
6874do
6875  IFS=$as_save_IFS
6876  test -z "$as_dir" && as_dir=.
6877    for ac_exec_ext in '' $ac_executable_extensions; do
6878  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6879    ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6880    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6881    break 2
6882  fi
6883done
6884  done
6885IFS=$as_save_IFS
6886
6887  ;;
6888esac
6889fi
6890ac_pt_AR=$ac_cv_path_ac_pt_AR
6891if test -n "$ac_pt_AR"; then
6892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
6893$as_echo "$ac_pt_AR" >&6; }
6894else
6895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6896$as_echo "no" >&6; }
6897fi
6898
6899  if test "x$ac_pt_AR" = x; then
6900    AR="false"
6901  else
6902    case $cross_compiling:$ac_tool_warned in
6903yes:)
6904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6906ac_tool_warned=yes ;;
6907esac
6908    AR=$ac_pt_AR
6909  fi
6910else
6911  AR="$ac_cv_path_AR"
6912fi
6913
6914if test $AR = false; then
6915	as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
6916fi
6917
6918case `pwd` in
6919  *\ * | *\	*)
6920    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6921$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6922esac
6923
6924
6925
6926macro_version='2.4.6'
6927macro_revision='2.4.6'
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941ltmain=$ac_aux_dir/ltmain.sh
6942
6943# Backslashify metacharacters that are still active within
6944# double-quoted strings.
6945sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6946
6947# Same as above, but do not quote variable references.
6948double_quote_subst='s/\(["`\\]\)/\\\1/g'
6949
6950# Sed substitution to delay expansion of an escaped shell variable in a
6951# double_quote_subst'ed string.
6952delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6953
6954# Sed substitution to delay expansion of an escaped single quote.
6955delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6956
6957# Sed substitution to avoid accidental globbing in evaled expressions
6958no_glob_subst='s/\*/\\\*/g'
6959
6960ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6961ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6962ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6963
6964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6965$as_echo_n "checking how to print strings... " >&6; }
6966# Test print first, because it will be a builtin if present.
6967if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6968   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6969  ECHO='print -r --'
6970elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6971  ECHO='printf %s\n'
6972else
6973  # Use this function as a fallback that always works.
6974  func_fallback_echo ()
6975  {
6976    eval 'cat <<_LTECHO_EOF
6977$1
6978_LTECHO_EOF'
6979  }
6980  ECHO='func_fallback_echo'
6981fi
6982
6983# func_echo_all arg...
6984# Invoke $ECHO with all args, space-separated.
6985func_echo_all ()
6986{
6987    $ECHO ""
6988}
6989
6990case $ECHO in
6991  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6992$as_echo "printf" >&6; } ;;
6993  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6994$as_echo "print -r" >&6; } ;;
6995  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6996$as_echo "cat" >&6; } ;;
6997esac
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7013$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7014if ${ac_cv_path_SED+:} false; then :
7015  $as_echo_n "(cached) " >&6
7016else
7017            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7018     for ac_i in 1 2 3 4 5 6 7; do
7019       ac_script="$ac_script$as_nl$ac_script"
7020     done
7021     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7022     { ac_script=; unset ac_script;}
7023     if test -z "$SED"; then
7024  ac_path_SED_found=false
7025  # Loop through the user's path and test for each of PROGNAME-LIST
7026  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027for as_dir in $PATH
7028do
7029  IFS=$as_save_IFS
7030  test -z "$as_dir" && as_dir=.
7031    for ac_prog in sed gsed; do
7032    for ac_exec_ext in '' $ac_executable_extensions; do
7033      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7034      as_fn_executable_p "$ac_path_SED" || continue
7035# Check for GNU ac_path_SED and select it if it is found.
7036  # Check for GNU $ac_path_SED
7037case `"$ac_path_SED" --version 2>&1` in
7038*GNU*)
7039  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7040*)
7041  ac_count=0
7042  $as_echo_n 0123456789 >"conftest.in"
7043  while :
7044  do
7045    cat "conftest.in" "conftest.in" >"conftest.tmp"
7046    mv "conftest.tmp" "conftest.in"
7047    cp "conftest.in" "conftest.nl"
7048    $as_echo '' >> "conftest.nl"
7049    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7050    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7051    as_fn_arith $ac_count + 1 && ac_count=$as_val
7052    if test $ac_count -gt ${ac_path_SED_max-0}; then
7053      # Best one so far, save it but keep looking for a better one
7054      ac_cv_path_SED="$ac_path_SED"
7055      ac_path_SED_max=$ac_count
7056    fi
7057    # 10*(2^10) chars as input seems more than enough
7058    test $ac_count -gt 10 && break
7059  done
7060  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7061esac
7062
7063      $ac_path_SED_found && break 3
7064    done
7065  done
7066  done
7067IFS=$as_save_IFS
7068  if test -z "$ac_cv_path_SED"; then
7069    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7070  fi
7071else
7072  ac_cv_path_SED=$SED
7073fi
7074
7075fi
7076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7077$as_echo "$ac_cv_path_SED" >&6; }
7078 SED="$ac_cv_path_SED"
7079  rm -f conftest.sed
7080
7081test -z "$SED" && SED=sed
7082Xsed="$SED -e 1s/^X//"
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7095$as_echo_n "checking for fgrep... " >&6; }
7096if ${ac_cv_path_FGREP+:} false; then :
7097  $as_echo_n "(cached) " >&6
7098else
7099  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7100   then ac_cv_path_FGREP="$GREP -F"
7101   else
7102     if test -z "$FGREP"; then
7103  ac_path_FGREP_found=false
7104  # Loop through the user's path and test for each of PROGNAME-LIST
7105  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7107do
7108  IFS=$as_save_IFS
7109  test -z "$as_dir" && as_dir=.
7110    for ac_prog in fgrep; do
7111    for ac_exec_ext in '' $ac_executable_extensions; do
7112      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7113      as_fn_executable_p "$ac_path_FGREP" || continue
7114# Check for GNU ac_path_FGREP and select it if it is found.
7115  # Check for GNU $ac_path_FGREP
7116case `"$ac_path_FGREP" --version 2>&1` in
7117*GNU*)
7118  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7119*)
7120  ac_count=0
7121  $as_echo_n 0123456789 >"conftest.in"
7122  while :
7123  do
7124    cat "conftest.in" "conftest.in" >"conftest.tmp"
7125    mv "conftest.tmp" "conftest.in"
7126    cp "conftest.in" "conftest.nl"
7127    $as_echo 'FGREP' >> "conftest.nl"
7128    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7129    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7130    as_fn_arith $ac_count + 1 && ac_count=$as_val
7131    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7132      # Best one so far, save it but keep looking for a better one
7133      ac_cv_path_FGREP="$ac_path_FGREP"
7134      ac_path_FGREP_max=$ac_count
7135    fi
7136    # 10*(2^10) chars as input seems more than enough
7137    test $ac_count -gt 10 && break
7138  done
7139  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7140esac
7141
7142      $ac_path_FGREP_found && break 3
7143    done
7144  done
7145  done
7146IFS=$as_save_IFS
7147  if test -z "$ac_cv_path_FGREP"; then
7148    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7149  fi
7150else
7151  ac_cv_path_FGREP=$FGREP
7152fi
7153
7154   fi
7155fi
7156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7157$as_echo "$ac_cv_path_FGREP" >&6; }
7158 FGREP="$ac_cv_path_FGREP"
7159
7160
7161test -z "$GREP" && GREP=grep
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181# Check whether --with-gnu-ld was given.
7182if test "${with_gnu_ld+set}" = set; then :
7183  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7184else
7185  with_gnu_ld=no
7186fi
7187
7188ac_prog=ld
7189if test yes = "$GCC"; then
7190  # Check if gcc -print-prog-name=ld gives a path.
7191  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7192$as_echo_n "checking for ld used by $CC... " >&6; }
7193  case $host in
7194  *-*-mingw*)
7195    # gcc leaves a trailing carriage return, which upsets mingw
7196    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7197  *)
7198    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7199  esac
7200  case $ac_prog in
7201    # Accept absolute paths.
7202    [\\/]* | ?:[\\/]*)
7203      re_direlt='/[^/][^/]*/\.\./'
7204      # Canonicalize the pathname of ld
7205      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7206      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7207	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7208      done
7209      test -z "$LD" && LD=$ac_prog
7210      ;;
7211  "")
7212    # If it fails, then pretend we aren't using GCC.
7213    ac_prog=ld
7214    ;;
7215  *)
7216    # If it is relative, then search for the first ld in PATH.
7217    with_gnu_ld=unknown
7218    ;;
7219  esac
7220elif test yes = "$with_gnu_ld"; then
7221  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7222$as_echo_n "checking for GNU ld... " >&6; }
7223else
7224  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7225$as_echo_n "checking for non-GNU ld... " >&6; }
7226fi
7227if ${lt_cv_path_LD+:} false; then :
7228  $as_echo_n "(cached) " >&6
7229else
7230  if test -z "$LD"; then
7231  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7232  for ac_dir in $PATH; do
7233    IFS=$lt_save_ifs
7234    test -z "$ac_dir" && ac_dir=.
7235    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7236      lt_cv_path_LD=$ac_dir/$ac_prog
7237      # Check to see if the program is GNU ld.  I'd rather use --version,
7238      # but apparently some variants of GNU ld only accept -v.
7239      # Break only if it was the GNU/non-GNU ld that we prefer.
7240      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7241      *GNU* | *'with BFD'*)
7242	test no != "$with_gnu_ld" && break
7243	;;
7244      *)
7245	test yes != "$with_gnu_ld" && break
7246	;;
7247      esac
7248    fi
7249  done
7250  IFS=$lt_save_ifs
7251else
7252  lt_cv_path_LD=$LD # Let the user override the test with a path.
7253fi
7254fi
7255
7256LD=$lt_cv_path_LD
7257if test -n "$LD"; then
7258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7259$as_echo "$LD" >&6; }
7260else
7261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7262$as_echo "no" >&6; }
7263fi
7264test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7266$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7267if ${lt_cv_prog_gnu_ld+:} false; then :
7268  $as_echo_n "(cached) " >&6
7269else
7270  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7271case `$LD -v 2>&1 </dev/null` in
7272*GNU* | *'with BFD'*)
7273  lt_cv_prog_gnu_ld=yes
7274  ;;
7275*)
7276  lt_cv_prog_gnu_ld=no
7277  ;;
7278esac
7279fi
7280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7281$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7282with_gnu_ld=$lt_cv_prog_gnu_ld
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7293$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7294if ${lt_cv_path_NM+:} false; then :
7295  $as_echo_n "(cached) " >&6
7296else
7297  if test -n "$NM"; then
7298  # Let the user override the test.
7299  lt_cv_path_NM=$NM
7300else
7301  lt_nm_to_check=${ac_tool_prefix}nm
7302  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7303    lt_nm_to_check="$lt_nm_to_check nm"
7304  fi
7305  for lt_tmp_nm in $lt_nm_to_check; do
7306    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7307    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7308      IFS=$lt_save_ifs
7309      test -z "$ac_dir" && ac_dir=.
7310      tmp_nm=$ac_dir/$lt_tmp_nm
7311      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7312	# Check to see if the nm accepts a BSD-compat flag.
7313	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7314	#   nm: unknown option "B" ignored
7315	# Tru64's nm complains that /dev/null is an invalid object file
7316	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7317	case $build_os in
7318	mingw*) lt_bad_file=conftest.nm/nofile ;;
7319	*) lt_bad_file=/dev/null ;;
7320	esac
7321	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7322	*$lt_bad_file* | *'Invalid file or object type'*)
7323	  lt_cv_path_NM="$tmp_nm -B"
7324	  break 2
7325	  ;;
7326	*)
7327	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7328	  */dev/null*)
7329	    lt_cv_path_NM="$tmp_nm -p"
7330	    break 2
7331	    ;;
7332	  *)
7333	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7334	    continue # so that we can try to find one that supports BSD flags
7335	    ;;
7336	  esac
7337	  ;;
7338	esac
7339      fi
7340    done
7341    IFS=$lt_save_ifs
7342  done
7343  : ${lt_cv_path_NM=no}
7344fi
7345fi
7346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7347$as_echo "$lt_cv_path_NM" >&6; }
7348if test no != "$lt_cv_path_NM"; then
7349  NM=$lt_cv_path_NM
7350else
7351  # Didn't find any BSD compatible name lister, look for dumpbin.
7352  if test -n "$DUMPBIN"; then :
7353    # Let the user override the test.
7354  else
7355    if test -n "$ac_tool_prefix"; then
7356  for ac_prog in dumpbin "link -dump"
7357  do
7358    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7359set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7361$as_echo_n "checking for $ac_word... " >&6; }
7362if ${ac_cv_prog_DUMPBIN+:} false; then :
7363  $as_echo_n "(cached) " >&6
7364else
7365  if test -n "$DUMPBIN"; then
7366  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7367else
7368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369for as_dir in $PATH
7370do
7371  IFS=$as_save_IFS
7372  test -z "$as_dir" && as_dir=.
7373    for ac_exec_ext in '' $ac_executable_extensions; do
7374  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7375    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7376    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7377    break 2
7378  fi
7379done
7380  done
7381IFS=$as_save_IFS
7382
7383fi
7384fi
7385DUMPBIN=$ac_cv_prog_DUMPBIN
7386if test -n "$DUMPBIN"; then
7387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7388$as_echo "$DUMPBIN" >&6; }
7389else
7390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7391$as_echo "no" >&6; }
7392fi
7393
7394
7395    test -n "$DUMPBIN" && break
7396  done
7397fi
7398if test -z "$DUMPBIN"; then
7399  ac_ct_DUMPBIN=$DUMPBIN
7400  for ac_prog in dumpbin "link -dump"
7401do
7402  # Extract the first word of "$ac_prog", so it can be a program name with args.
7403set dummy $ac_prog; ac_word=$2
7404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7405$as_echo_n "checking for $ac_word... " >&6; }
7406if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7407  $as_echo_n "(cached) " >&6
7408else
7409  if test -n "$ac_ct_DUMPBIN"; then
7410  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7411else
7412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413for as_dir in $PATH
7414do
7415  IFS=$as_save_IFS
7416  test -z "$as_dir" && as_dir=.
7417    for ac_exec_ext in '' $ac_executable_extensions; do
7418  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7419    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7420    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7421    break 2
7422  fi
7423done
7424  done
7425IFS=$as_save_IFS
7426
7427fi
7428fi
7429ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7430if test -n "$ac_ct_DUMPBIN"; then
7431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7432$as_echo "$ac_ct_DUMPBIN" >&6; }
7433else
7434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7435$as_echo "no" >&6; }
7436fi
7437
7438
7439  test -n "$ac_ct_DUMPBIN" && break
7440done
7441
7442  if test "x$ac_ct_DUMPBIN" = x; then
7443    DUMPBIN=":"
7444  else
7445    case $cross_compiling:$ac_tool_warned in
7446yes:)
7447{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7448$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7449ac_tool_warned=yes ;;
7450esac
7451    DUMPBIN=$ac_ct_DUMPBIN
7452  fi
7453fi
7454
7455    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7456    *COFF*)
7457      DUMPBIN="$DUMPBIN -symbols -headers"
7458      ;;
7459    *)
7460      DUMPBIN=:
7461      ;;
7462    esac
7463  fi
7464
7465  if test : != "$DUMPBIN"; then
7466    NM=$DUMPBIN
7467  fi
7468fi
7469test -z "$NM" && NM=nm
7470
7471
7472
7473
7474
7475
7476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7477$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7478if ${lt_cv_nm_interface+:} false; then :
7479  $as_echo_n "(cached) " >&6
7480else
7481  lt_cv_nm_interface="BSD nm"
7482  echo "int some_variable = 0;" > conftest.$ac_ext
7483  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7484  (eval "$ac_compile" 2>conftest.err)
7485  cat conftest.err >&5
7486  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7487  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7488  cat conftest.err >&5
7489  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7490  cat conftest.out >&5
7491  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7492    lt_cv_nm_interface="MS dumpbin"
7493  fi
7494  rm -f conftest*
7495fi
7496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7497$as_echo "$lt_cv_nm_interface" >&6; }
7498
7499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7500$as_echo_n "checking whether ln -s works... " >&6; }
7501LN_S=$as_ln_s
7502if test "$LN_S" = "ln -s"; then
7503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7504$as_echo "yes" >&6; }
7505else
7506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7507$as_echo "no, using $LN_S" >&6; }
7508fi
7509
7510# find the maximum length of command line arguments
7511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7512$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7513if ${lt_cv_sys_max_cmd_len+:} false; then :
7514  $as_echo_n "(cached) " >&6
7515else
7516    i=0
7517  teststring=ABCD
7518
7519  case $build_os in
7520  msdosdjgpp*)
7521    # On DJGPP, this test can blow up pretty badly due to problems in libc
7522    # (any single argument exceeding 2000 bytes causes a buffer overrun
7523    # during glob expansion).  Even if it were fixed, the result of this
7524    # check would be larger than it should be.
7525    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7526    ;;
7527
7528  gnu*)
7529    # Under GNU Hurd, this test is not required because there is
7530    # no limit to the length of command line arguments.
7531    # Libtool will interpret -1 as no limit whatsoever
7532    lt_cv_sys_max_cmd_len=-1;
7533    ;;
7534
7535  cygwin* | mingw* | cegcc*)
7536    # On Win9x/ME, this test blows up -- it succeeds, but takes
7537    # about 5 minutes as the teststring grows exponentially.
7538    # Worse, since 9x/ME are not pre-emptively multitasking,
7539    # you end up with a "frozen" computer, even though with patience
7540    # the test eventually succeeds (with a max line length of 256k).
7541    # Instead, let's just punt: use the minimum linelength reported by
7542    # all of the supported platforms: 8192 (on NT/2K/XP).
7543    lt_cv_sys_max_cmd_len=8192;
7544    ;;
7545
7546  mint*)
7547    # On MiNT this can take a long time and run out of memory.
7548    lt_cv_sys_max_cmd_len=8192;
7549    ;;
7550
7551  amigaos*)
7552    # On AmigaOS with pdksh, this test takes hours, literally.
7553    # So we just punt and use a minimum line length of 8192.
7554    lt_cv_sys_max_cmd_len=8192;
7555    ;;
7556
7557  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7558    # This has been around since 386BSD, at least.  Likely further.
7559    if test -x /sbin/sysctl; then
7560      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7561    elif test -x /usr/sbin/sysctl; then
7562      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7563    else
7564      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7565    fi
7566    # And add a safety zone
7567    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7568    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7569    ;;
7570
7571  interix*)
7572    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7573    lt_cv_sys_max_cmd_len=196608
7574    ;;
7575
7576  os2*)
7577    # The test takes a long time on OS/2.
7578    lt_cv_sys_max_cmd_len=8192
7579    ;;
7580
7581  osf*)
7582    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7583    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7584    # nice to cause kernel panics so lets avoid the loop below.
7585    # First set a reasonable default.
7586    lt_cv_sys_max_cmd_len=16384
7587    #
7588    if test -x /sbin/sysconfig; then
7589      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7590        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7591      esac
7592    fi
7593    ;;
7594  sco3.2v5*)
7595    lt_cv_sys_max_cmd_len=102400
7596    ;;
7597  sysv5* | sco5v6* | sysv4.2uw2*)
7598    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7599    if test -n "$kargmax"; then
7600      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
7601    else
7602      lt_cv_sys_max_cmd_len=32768
7603    fi
7604    ;;
7605  *)
7606    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7607    if test -n "$lt_cv_sys_max_cmd_len" && \
7608       test undefined != "$lt_cv_sys_max_cmd_len"; then
7609      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7610      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7611    else
7612      # Make teststring a little bigger before we do anything with it.
7613      # a 1K string should be a reasonable start.
7614      for i in 1 2 3 4 5 6 7 8; do
7615        teststring=$teststring$teststring
7616      done
7617      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7618      # If test is not a shell built-in, we'll probably end up computing a
7619      # maximum length that is only half of the actual maximum length, but
7620      # we can't tell.
7621      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7622	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7623	      test 17 != "$i" # 1/2 MB should be enough
7624      do
7625        i=`expr $i + 1`
7626        teststring=$teststring$teststring
7627      done
7628      # Only check the string length outside the loop.
7629      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7630      teststring=
7631      # Add a significant safety factor because C++ compilers can tack on
7632      # massive amounts of additional arguments before passing them to the
7633      # linker.  It appears as though 1/2 is a usable value.
7634      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7635    fi
7636    ;;
7637  esac
7638
7639fi
7640
7641if test -n "$lt_cv_sys_max_cmd_len"; then
7642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7643$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7644else
7645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7646$as_echo "none" >&6; }
7647fi
7648max_cmd_len=$lt_cv_sys_max_cmd_len
7649
7650
7651
7652
7653
7654
7655: ${CP="cp -f"}
7656: ${MV="mv -f"}
7657: ${RM="rm -f"}
7658
7659if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7660  lt_unset=unset
7661else
7662  lt_unset=false
7663fi
7664
7665
7666
7667
7668
7669# test EBCDIC or ASCII
7670case `echo X|tr X '\101'` in
7671 A) # ASCII based system
7672    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7673  lt_SP2NL='tr \040 \012'
7674  lt_NL2SP='tr \015\012 \040\040'
7675  ;;
7676 *) # EBCDIC based system
7677  lt_SP2NL='tr \100 \n'
7678  lt_NL2SP='tr \r\n \100\100'
7679  ;;
7680esac
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7691$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7692if ${lt_cv_to_host_file_cmd+:} false; then :
7693  $as_echo_n "(cached) " >&6
7694else
7695  case $host in
7696  *-*-mingw* )
7697    case $build in
7698      *-*-mingw* ) # actually msys
7699        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7700        ;;
7701      *-*-cygwin* )
7702        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7703        ;;
7704      * ) # otherwise, assume *nix
7705        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7706        ;;
7707    esac
7708    ;;
7709  *-*-cygwin* )
7710    case $build in
7711      *-*-mingw* ) # actually msys
7712        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7713        ;;
7714      *-*-cygwin* )
7715        lt_cv_to_host_file_cmd=func_convert_file_noop
7716        ;;
7717      * ) # otherwise, assume *nix
7718        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7719        ;;
7720    esac
7721    ;;
7722  * ) # unhandled hosts (and "normal" native builds)
7723    lt_cv_to_host_file_cmd=func_convert_file_noop
7724    ;;
7725esac
7726
7727fi
7728
7729to_host_file_cmd=$lt_cv_to_host_file_cmd
7730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7731$as_echo "$lt_cv_to_host_file_cmd" >&6; }
7732
7733
7734
7735
7736
7737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7738$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7739if ${lt_cv_to_tool_file_cmd+:} false; then :
7740  $as_echo_n "(cached) " >&6
7741else
7742  #assume ordinary cross tools, or native build.
7743lt_cv_to_tool_file_cmd=func_convert_file_noop
7744case $host in
7745  *-*-mingw* )
7746    case $build in
7747      *-*-mingw* ) # actually msys
7748        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7749        ;;
7750    esac
7751    ;;
7752esac
7753
7754fi
7755
7756to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7758$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7759
7760
7761
7762
7763
7764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7765$as_echo_n "checking for $LD option to reload object files... " >&6; }
7766if ${lt_cv_ld_reload_flag+:} false; then :
7767  $as_echo_n "(cached) " >&6
7768else
7769  lt_cv_ld_reload_flag='-r'
7770fi
7771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7772$as_echo "$lt_cv_ld_reload_flag" >&6; }
7773reload_flag=$lt_cv_ld_reload_flag
7774case $reload_flag in
7775"" | " "*) ;;
7776*) reload_flag=" $reload_flag" ;;
7777esac
7778reload_cmds='$LD$reload_flag -o $output$reload_objs'
7779case $host_os in
7780  cygwin* | mingw* | pw32* | cegcc*)
7781    if test yes != "$GCC"; then
7782      reload_cmds=false
7783    fi
7784    ;;
7785  darwin*)
7786    if test yes = "$GCC"; then
7787      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7788    else
7789      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7790    fi
7791    ;;
7792esac
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802if test -n "$ac_tool_prefix"; then
7803  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7804set dummy ${ac_tool_prefix}objdump; ac_word=$2
7805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7806$as_echo_n "checking for $ac_word... " >&6; }
7807if ${ac_cv_prog_OBJDUMP+:} false; then :
7808  $as_echo_n "(cached) " >&6
7809else
7810  if test -n "$OBJDUMP"; then
7811  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7812else
7813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814for as_dir in $PATH
7815do
7816  IFS=$as_save_IFS
7817  test -z "$as_dir" && as_dir=.
7818    for ac_exec_ext in '' $ac_executable_extensions; do
7819  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7820    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7821    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7822    break 2
7823  fi
7824done
7825  done
7826IFS=$as_save_IFS
7827
7828fi
7829fi
7830OBJDUMP=$ac_cv_prog_OBJDUMP
7831if test -n "$OBJDUMP"; then
7832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7833$as_echo "$OBJDUMP" >&6; }
7834else
7835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7836$as_echo "no" >&6; }
7837fi
7838
7839
7840fi
7841if test -z "$ac_cv_prog_OBJDUMP"; then
7842  ac_ct_OBJDUMP=$OBJDUMP
7843  # Extract the first word of "objdump", so it can be a program name with args.
7844set dummy objdump; ac_word=$2
7845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7846$as_echo_n "checking for $ac_word... " >&6; }
7847if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7848  $as_echo_n "(cached) " >&6
7849else
7850  if test -n "$ac_ct_OBJDUMP"; then
7851  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7852else
7853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854for as_dir in $PATH
7855do
7856  IFS=$as_save_IFS
7857  test -z "$as_dir" && as_dir=.
7858    for ac_exec_ext in '' $ac_executable_extensions; do
7859  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7860    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7861    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7862    break 2
7863  fi
7864done
7865  done
7866IFS=$as_save_IFS
7867
7868fi
7869fi
7870ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7871if test -n "$ac_ct_OBJDUMP"; then
7872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7873$as_echo "$ac_ct_OBJDUMP" >&6; }
7874else
7875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7876$as_echo "no" >&6; }
7877fi
7878
7879  if test "x$ac_ct_OBJDUMP" = x; then
7880    OBJDUMP="false"
7881  else
7882    case $cross_compiling:$ac_tool_warned in
7883yes:)
7884{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7885$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7886ac_tool_warned=yes ;;
7887esac
7888    OBJDUMP=$ac_ct_OBJDUMP
7889  fi
7890else
7891  OBJDUMP="$ac_cv_prog_OBJDUMP"
7892fi
7893
7894test -z "$OBJDUMP" && OBJDUMP=objdump
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7905$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7906if ${lt_cv_deplibs_check_method+:} false; then :
7907  $as_echo_n "(cached) " >&6
7908else
7909  lt_cv_file_magic_cmd='$MAGIC_CMD'
7910lt_cv_file_magic_test_file=
7911lt_cv_deplibs_check_method='unknown'
7912# Need to set the preceding variable on all platforms that support
7913# interlibrary dependencies.
7914# 'none' -- dependencies not supported.
7915# 'unknown' -- same as none, but documents that we really don't know.
7916# 'pass_all' -- all dependencies passed with no checks.
7917# 'test_compile' -- check by making test program.
7918# 'file_magic [[regex]]' -- check by looking for files in library path
7919# that responds to the $file_magic_cmd with a given extended regex.
7920# If you have 'file' or equivalent on your system and you're not sure
7921# whether 'pass_all' will *always* work, you probably want this one.
7922
7923case $host_os in
7924aix[4-9]*)
7925  lt_cv_deplibs_check_method=pass_all
7926  ;;
7927
7928beos*)
7929  lt_cv_deplibs_check_method=pass_all
7930  ;;
7931
7932bsdi[45]*)
7933  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7934  lt_cv_file_magic_cmd='/usr/bin/file -L'
7935  lt_cv_file_magic_test_file=/shlib/libc.so
7936  ;;
7937
7938cygwin*)
7939  # func_win32_libid is a shell function defined in ltmain.sh
7940  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7941  lt_cv_file_magic_cmd='func_win32_libid'
7942  ;;
7943
7944mingw* | pw32*)
7945  # Base MSYS/MinGW do not provide the 'file' command needed by
7946  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7947  # unless we find 'file', for example because we are cross-compiling.
7948  if ( file / ) >/dev/null 2>&1; then
7949    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7950    lt_cv_file_magic_cmd='func_win32_libid'
7951  else
7952    # Keep this pattern in sync with the one in func_win32_libid.
7953    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7954    lt_cv_file_magic_cmd='$OBJDUMP -f'
7955  fi
7956  ;;
7957
7958cegcc*)
7959  # use the weaker test based on 'objdump'. See mingw*.
7960  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7961  lt_cv_file_magic_cmd='$OBJDUMP -f'
7962  ;;
7963
7964darwin* | rhapsody*)
7965  lt_cv_deplibs_check_method=pass_all
7966  ;;
7967
7968freebsd* | dragonfly*)
7969  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7970    case $host_cpu in
7971    i*86 )
7972      # Not sure whether the presence of OpenBSD here was a mistake.
7973      # Let's accept both of them until this is cleared up.
7974      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7975      lt_cv_file_magic_cmd=/usr/bin/file
7976      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7977      ;;
7978    esac
7979  else
7980    lt_cv_deplibs_check_method=pass_all
7981  fi
7982  ;;
7983
7984haiku*)
7985  lt_cv_deplibs_check_method=pass_all
7986  ;;
7987
7988hpux10.20* | hpux11*)
7989  lt_cv_file_magic_cmd=/usr/bin/file
7990  case $host_cpu in
7991  ia64*)
7992    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7993    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7994    ;;
7995  hppa*64*)
7996    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]'
7997    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7998    ;;
7999  *)
8000    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8001    lt_cv_file_magic_test_file=/usr/lib/libc.sl
8002    ;;
8003  esac
8004  ;;
8005
8006interix[3-9]*)
8007  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8008  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8009  ;;
8010
8011irix5* | irix6* | nonstopux*)
8012  case $LD in
8013  *-32|*"-32 ") libmagic=32-bit;;
8014  *-n32|*"-n32 ") libmagic=N32;;
8015  *-64|*"-64 ") libmagic=64-bit;;
8016  *) libmagic=never-match;;
8017  esac
8018  lt_cv_deplibs_check_method=pass_all
8019  ;;
8020
8021# This must be glibc/ELF.
8022linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8023  lt_cv_deplibs_check_method=pass_all
8024  ;;
8025
8026netbsd*)
8027  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8028    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8029  else
8030    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8031  fi
8032  ;;
8033
8034newos6*)
8035  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8036  lt_cv_file_magic_cmd=/usr/bin/file
8037  lt_cv_file_magic_test_file=/usr/lib/libnls.so
8038  ;;
8039
8040*nto* | *qnx*)
8041  lt_cv_deplibs_check_method=pass_all
8042  ;;
8043
8044openbsd* | bitrig*)
8045  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8046    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8047  else
8048    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8049  fi
8050  ;;
8051
8052osf3* | osf4* | osf5*)
8053  lt_cv_deplibs_check_method=pass_all
8054  ;;
8055
8056rdos*)
8057  lt_cv_deplibs_check_method=pass_all
8058  ;;
8059
8060solaris*)
8061  lt_cv_deplibs_check_method=pass_all
8062  ;;
8063
8064sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8065  lt_cv_deplibs_check_method=pass_all
8066  ;;
8067
8068sysv4 | sysv4.3*)
8069  case $host_vendor in
8070  motorola)
8071    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]'
8072    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8073    ;;
8074  ncr)
8075    lt_cv_deplibs_check_method=pass_all
8076    ;;
8077  sequent)
8078    lt_cv_file_magic_cmd='/bin/file'
8079    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8080    ;;
8081  sni)
8082    lt_cv_file_magic_cmd='/bin/file'
8083    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8084    lt_cv_file_magic_test_file=/lib/libc.so
8085    ;;
8086  siemens)
8087    lt_cv_deplibs_check_method=pass_all
8088    ;;
8089  pc)
8090    lt_cv_deplibs_check_method=pass_all
8091    ;;
8092  esac
8093  ;;
8094
8095tpf*)
8096  lt_cv_deplibs_check_method=pass_all
8097  ;;
8098os2*)
8099  lt_cv_deplibs_check_method=pass_all
8100  ;;
8101esac
8102
8103fi
8104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8105$as_echo "$lt_cv_deplibs_check_method" >&6; }
8106
8107file_magic_glob=
8108want_nocaseglob=no
8109if test "$build" = "$host"; then
8110  case $host_os in
8111  mingw* | pw32*)
8112    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8113      want_nocaseglob=yes
8114    else
8115      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8116    fi
8117    ;;
8118  esac
8119fi
8120
8121file_magic_cmd=$lt_cv_file_magic_cmd
8122deplibs_check_method=$lt_cv_deplibs_check_method
8123test -z "$deplibs_check_method" && deplibs_check_method=unknown
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146if test -n "$ac_tool_prefix"; then
8147  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8148set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8150$as_echo_n "checking for $ac_word... " >&6; }
8151if ${ac_cv_prog_DLLTOOL+:} false; then :
8152  $as_echo_n "(cached) " >&6
8153else
8154  if test -n "$DLLTOOL"; then
8155  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8156else
8157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8158for as_dir in $PATH
8159do
8160  IFS=$as_save_IFS
8161  test -z "$as_dir" && as_dir=.
8162    for ac_exec_ext in '' $ac_executable_extensions; do
8163  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8164    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8165    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8166    break 2
8167  fi
8168done
8169  done
8170IFS=$as_save_IFS
8171
8172fi
8173fi
8174DLLTOOL=$ac_cv_prog_DLLTOOL
8175if test -n "$DLLTOOL"; then
8176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8177$as_echo "$DLLTOOL" >&6; }
8178else
8179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8180$as_echo "no" >&6; }
8181fi
8182
8183
8184fi
8185if test -z "$ac_cv_prog_DLLTOOL"; then
8186  ac_ct_DLLTOOL=$DLLTOOL
8187  # Extract the first word of "dlltool", so it can be a program name with args.
8188set dummy dlltool; ac_word=$2
8189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8190$as_echo_n "checking for $ac_word... " >&6; }
8191if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8192  $as_echo_n "(cached) " >&6
8193else
8194  if test -n "$ac_ct_DLLTOOL"; then
8195  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8196else
8197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8198for as_dir in $PATH
8199do
8200  IFS=$as_save_IFS
8201  test -z "$as_dir" && as_dir=.
8202    for ac_exec_ext in '' $ac_executable_extensions; do
8203  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8204    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8205    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8206    break 2
8207  fi
8208done
8209  done
8210IFS=$as_save_IFS
8211
8212fi
8213fi
8214ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8215if test -n "$ac_ct_DLLTOOL"; then
8216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8217$as_echo "$ac_ct_DLLTOOL" >&6; }
8218else
8219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8220$as_echo "no" >&6; }
8221fi
8222
8223  if test "x$ac_ct_DLLTOOL" = x; then
8224    DLLTOOL="false"
8225  else
8226    case $cross_compiling:$ac_tool_warned in
8227yes:)
8228{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8229$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8230ac_tool_warned=yes ;;
8231esac
8232    DLLTOOL=$ac_ct_DLLTOOL
8233  fi
8234else
8235  DLLTOOL="$ac_cv_prog_DLLTOOL"
8236fi
8237
8238test -z "$DLLTOOL" && DLLTOOL=dlltool
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8250$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8251if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8252  $as_echo_n "(cached) " >&6
8253else
8254  lt_cv_sharedlib_from_linklib_cmd='unknown'
8255
8256case $host_os in
8257cygwin* | mingw* | pw32* | cegcc*)
8258  # two different shell functions defined in ltmain.sh;
8259  # decide which one to use based on capabilities of $DLLTOOL
8260  case `$DLLTOOL --help 2>&1` in
8261  *--identify-strict*)
8262    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8263    ;;
8264  *)
8265    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8266    ;;
8267  esac
8268  ;;
8269*)
8270  # fallback: assume linklib IS sharedlib
8271  lt_cv_sharedlib_from_linklib_cmd=$ECHO
8272  ;;
8273esac
8274
8275fi
8276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8277$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8278sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8279test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8280
8281
8282
8283
8284
8285
8286
8287if test -n "$ac_tool_prefix"; then
8288  for ac_prog in ar
8289  do
8290    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8291set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8293$as_echo_n "checking for $ac_word... " >&6; }
8294if ${ac_cv_prog_AR+:} false; then :
8295  $as_echo_n "(cached) " >&6
8296else
8297  if test -n "$AR"; then
8298  ac_cv_prog_AR="$AR" # Let the user override the test.
8299else
8300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301for as_dir in $PATH
8302do
8303  IFS=$as_save_IFS
8304  test -z "$as_dir" && as_dir=.
8305    for ac_exec_ext in '' $ac_executable_extensions; do
8306  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8307    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8308    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8309    break 2
8310  fi
8311done
8312  done
8313IFS=$as_save_IFS
8314
8315fi
8316fi
8317AR=$ac_cv_prog_AR
8318if test -n "$AR"; then
8319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8320$as_echo "$AR" >&6; }
8321else
8322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8323$as_echo "no" >&6; }
8324fi
8325
8326
8327    test -n "$AR" && break
8328  done
8329fi
8330if test -z "$AR"; then
8331  ac_ct_AR=$AR
8332  for ac_prog in ar
8333do
8334  # Extract the first word of "$ac_prog", so it can be a program name with args.
8335set dummy $ac_prog; ac_word=$2
8336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8337$as_echo_n "checking for $ac_word... " >&6; }
8338if ${ac_cv_prog_ac_ct_AR+:} false; then :
8339  $as_echo_n "(cached) " >&6
8340else
8341  if test -n "$ac_ct_AR"; then
8342  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8343else
8344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8345for as_dir in $PATH
8346do
8347  IFS=$as_save_IFS
8348  test -z "$as_dir" && as_dir=.
8349    for ac_exec_ext in '' $ac_executable_extensions; do
8350  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8351    ac_cv_prog_ac_ct_AR="$ac_prog"
8352    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8353    break 2
8354  fi
8355done
8356  done
8357IFS=$as_save_IFS
8358
8359fi
8360fi
8361ac_ct_AR=$ac_cv_prog_ac_ct_AR
8362if test -n "$ac_ct_AR"; then
8363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8364$as_echo "$ac_ct_AR" >&6; }
8365else
8366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8367$as_echo "no" >&6; }
8368fi
8369
8370
8371  test -n "$ac_ct_AR" && break
8372done
8373
8374  if test "x$ac_ct_AR" = x; then
8375    AR="false"
8376  else
8377    case $cross_compiling:$ac_tool_warned in
8378yes:)
8379{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8380$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8381ac_tool_warned=yes ;;
8382esac
8383    AR=$ac_ct_AR
8384  fi
8385fi
8386
8387: ${AR=ar}
8388: ${AR_FLAGS=cru}
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8401$as_echo_n "checking for archiver @FILE support... " >&6; }
8402if ${lt_cv_ar_at_file+:} false; then :
8403  $as_echo_n "(cached) " >&6
8404else
8405  lt_cv_ar_at_file=no
8406   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8407/* end confdefs.h.  */
8408
8409int
8410main ()
8411{
8412
8413  ;
8414  return 0;
8415}
8416_ACEOF
8417if ac_fn_c_try_compile "$LINENO"; then :
8418  echo conftest.$ac_objext > conftest.lst
8419      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8420      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8421  (eval $lt_ar_try) 2>&5
8422  ac_status=$?
8423  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8424  test $ac_status = 0; }
8425      if test 0 -eq "$ac_status"; then
8426	# Ensure the archiver fails upon bogus file names.
8427	rm -f conftest.$ac_objext libconftest.a
8428	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8429  (eval $lt_ar_try) 2>&5
8430  ac_status=$?
8431  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8432  test $ac_status = 0; }
8433	if test 0 -ne "$ac_status"; then
8434          lt_cv_ar_at_file=@
8435        fi
8436      fi
8437      rm -f conftest.* libconftest.a
8438
8439fi
8440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8441
8442fi
8443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8444$as_echo "$lt_cv_ar_at_file" >&6; }
8445
8446if test no = "$lt_cv_ar_at_file"; then
8447  archiver_list_spec=
8448else
8449  archiver_list_spec=$lt_cv_ar_at_file
8450fi
8451
8452
8453
8454
8455
8456
8457
8458if test -n "$ac_tool_prefix"; then
8459  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8460set dummy ${ac_tool_prefix}strip; ac_word=$2
8461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8462$as_echo_n "checking for $ac_word... " >&6; }
8463if ${ac_cv_prog_STRIP+:} false; then :
8464  $as_echo_n "(cached) " >&6
8465else
8466  if test -n "$STRIP"; then
8467  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8468else
8469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8470for as_dir in $PATH
8471do
8472  IFS=$as_save_IFS
8473  test -z "$as_dir" && as_dir=.
8474    for ac_exec_ext in '' $ac_executable_extensions; do
8475  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8476    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8477    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8478    break 2
8479  fi
8480done
8481  done
8482IFS=$as_save_IFS
8483
8484fi
8485fi
8486STRIP=$ac_cv_prog_STRIP
8487if test -n "$STRIP"; then
8488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8489$as_echo "$STRIP" >&6; }
8490else
8491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8492$as_echo "no" >&6; }
8493fi
8494
8495
8496fi
8497if test -z "$ac_cv_prog_STRIP"; then
8498  ac_ct_STRIP=$STRIP
8499  # Extract the first word of "strip", so it can be a program name with args.
8500set dummy strip; ac_word=$2
8501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8502$as_echo_n "checking for $ac_word... " >&6; }
8503if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8504  $as_echo_n "(cached) " >&6
8505else
8506  if test -n "$ac_ct_STRIP"; then
8507  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8508else
8509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8510for as_dir in $PATH
8511do
8512  IFS=$as_save_IFS
8513  test -z "$as_dir" && as_dir=.
8514    for ac_exec_ext in '' $ac_executable_extensions; do
8515  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8516    ac_cv_prog_ac_ct_STRIP="strip"
8517    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8518    break 2
8519  fi
8520done
8521  done
8522IFS=$as_save_IFS
8523
8524fi
8525fi
8526ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8527if test -n "$ac_ct_STRIP"; then
8528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8529$as_echo "$ac_ct_STRIP" >&6; }
8530else
8531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8532$as_echo "no" >&6; }
8533fi
8534
8535  if test "x$ac_ct_STRIP" = x; then
8536    STRIP=":"
8537  else
8538    case $cross_compiling:$ac_tool_warned in
8539yes:)
8540{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8541$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8542ac_tool_warned=yes ;;
8543esac
8544    STRIP=$ac_ct_STRIP
8545  fi
8546else
8547  STRIP="$ac_cv_prog_STRIP"
8548fi
8549
8550test -z "$STRIP" && STRIP=:
8551
8552
8553
8554
8555
8556
8557if test -n "$ac_tool_prefix"; then
8558  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8559set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8561$as_echo_n "checking for $ac_word... " >&6; }
8562if ${ac_cv_prog_RANLIB+:} false; then :
8563  $as_echo_n "(cached) " >&6
8564else
8565  if test -n "$RANLIB"; then
8566  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8567else
8568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8569for as_dir in $PATH
8570do
8571  IFS=$as_save_IFS
8572  test -z "$as_dir" && as_dir=.
8573    for ac_exec_ext in '' $ac_executable_extensions; do
8574  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8575    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8576    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8577    break 2
8578  fi
8579done
8580  done
8581IFS=$as_save_IFS
8582
8583fi
8584fi
8585RANLIB=$ac_cv_prog_RANLIB
8586if test -n "$RANLIB"; then
8587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8588$as_echo "$RANLIB" >&6; }
8589else
8590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591$as_echo "no" >&6; }
8592fi
8593
8594
8595fi
8596if test -z "$ac_cv_prog_RANLIB"; then
8597  ac_ct_RANLIB=$RANLIB
8598  # Extract the first word of "ranlib", so it can be a program name with args.
8599set dummy ranlib; ac_word=$2
8600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8601$as_echo_n "checking for $ac_word... " >&6; }
8602if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8603  $as_echo_n "(cached) " >&6
8604else
8605  if test -n "$ac_ct_RANLIB"; then
8606  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8607else
8608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8609for as_dir in $PATH
8610do
8611  IFS=$as_save_IFS
8612  test -z "$as_dir" && as_dir=.
8613    for ac_exec_ext in '' $ac_executable_extensions; do
8614  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8615    ac_cv_prog_ac_ct_RANLIB="ranlib"
8616    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8617    break 2
8618  fi
8619done
8620  done
8621IFS=$as_save_IFS
8622
8623fi
8624fi
8625ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8626if test -n "$ac_ct_RANLIB"; then
8627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8628$as_echo "$ac_ct_RANLIB" >&6; }
8629else
8630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8631$as_echo "no" >&6; }
8632fi
8633
8634  if test "x$ac_ct_RANLIB" = x; then
8635    RANLIB=":"
8636  else
8637    case $cross_compiling:$ac_tool_warned in
8638yes:)
8639{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8640$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8641ac_tool_warned=yes ;;
8642esac
8643    RANLIB=$ac_ct_RANLIB
8644  fi
8645else
8646  RANLIB="$ac_cv_prog_RANLIB"
8647fi
8648
8649test -z "$RANLIB" && RANLIB=:
8650
8651
8652
8653
8654
8655
8656# Determine commands to create old-style static archives.
8657old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8658old_postinstall_cmds='chmod 644 $oldlib'
8659old_postuninstall_cmds=
8660
8661if test -n "$RANLIB"; then
8662  case $host_os in
8663  bitrig* | openbsd*)
8664    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8665    ;;
8666  *)
8667    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8668    ;;
8669  esac
8670  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8671fi
8672
8673case $host_os in
8674  darwin*)
8675    lock_old_archive_extraction=yes ;;
8676  *)
8677    lock_old_archive_extraction=no ;;
8678esac
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700for ac_prog in gawk mawk nawk awk
8701do
8702  # Extract the first word of "$ac_prog", so it can be a program name with args.
8703set dummy $ac_prog; ac_word=$2
8704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8705$as_echo_n "checking for $ac_word... " >&6; }
8706if ${ac_cv_prog_AWK+:} false; then :
8707  $as_echo_n "(cached) " >&6
8708else
8709  if test -n "$AWK"; then
8710  ac_cv_prog_AWK="$AWK" # Let the user override the test.
8711else
8712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8713for as_dir in $PATH
8714do
8715  IFS=$as_save_IFS
8716  test -z "$as_dir" && as_dir=.
8717    for ac_exec_ext in '' $ac_executable_extensions; do
8718  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8719    ac_cv_prog_AWK="$ac_prog"
8720    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8721    break 2
8722  fi
8723done
8724  done
8725IFS=$as_save_IFS
8726
8727fi
8728fi
8729AWK=$ac_cv_prog_AWK
8730if test -n "$AWK"; then
8731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8732$as_echo "$AWK" >&6; }
8733else
8734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8735$as_echo "no" >&6; }
8736fi
8737
8738
8739  test -n "$AWK" && break
8740done
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760# If no C compiler was specified, use CC.
8761LTCC=${LTCC-"$CC"}
8762
8763# If no C compiler flags were specified, use CFLAGS.
8764LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8765
8766# Allow CC to be a program name with arguments.
8767compiler=$CC
8768
8769
8770# Check for command to grab the raw symbol name followed by C symbol from nm.
8771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8772$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8773if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8774  $as_echo_n "(cached) " >&6
8775else
8776
8777# These are sane defaults that work on at least a few old systems.
8778# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8779
8780# Character class describing NM global symbol codes.
8781symcode='[BCDEGRST]'
8782
8783# Regexp to match symbols that can be accessed directly from C.
8784sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8785
8786# Define system-specific variables.
8787case $host_os in
8788aix*)
8789  symcode='[BCDT]'
8790  ;;
8791cygwin* | mingw* | pw32* | cegcc*)
8792  symcode='[ABCDGISTW]'
8793  ;;
8794hpux*)
8795  if test ia64 = "$host_cpu"; then
8796    symcode='[ABCDEGRST]'
8797  fi
8798  ;;
8799irix* | nonstopux*)
8800  symcode='[BCDEGRST]'
8801  ;;
8802osf*)
8803  symcode='[BCDEGQRST]'
8804  ;;
8805solaris*)
8806  symcode='[BDRT]'
8807  ;;
8808sco3.2v5*)
8809  symcode='[DT]'
8810  ;;
8811sysv4.2uw2*)
8812  symcode='[DT]'
8813  ;;
8814sysv5* | sco5v6* | unixware* | OpenUNIX*)
8815  symcode='[ABDT]'
8816  ;;
8817sysv4)
8818  symcode='[DFNSTU]'
8819  ;;
8820esac
8821
8822# If we're using GNU nm, then use its standard symbol codes.
8823case `$NM -V 2>&1` in
8824*GNU* | *'with BFD'*)
8825  symcode='[ABCDGIRSTW]' ;;
8826esac
8827
8828if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8829  # Gets list of data symbols to import.
8830  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8831  # Adjust the below global symbol transforms to fixup imported variables.
8832  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8833  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
8834  lt_c_name_lib_hook="\
8835  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
8836  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
8837else
8838  # Disable hooks by default.
8839  lt_cv_sys_global_symbol_to_import=
8840  lt_cdecl_hook=
8841  lt_c_name_hook=
8842  lt_c_name_lib_hook=
8843fi
8844
8845# Transform an extracted symbol line into a proper C declaration.
8846# Some systems (esp. on ia64) link data and code symbols differently,
8847# so use this general approach.
8848lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8849$lt_cdecl_hook\
8850" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8851" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8852
8853# Transform an extracted symbol line into symbol name and symbol address
8854lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8855$lt_c_name_hook\
8856" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8857" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
8858
8859# Transform an extracted symbol line into symbol name with lib prefix and
8860# symbol address.
8861lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8862$lt_c_name_lib_hook\
8863" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8864" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
8865" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
8866
8867# Handle CRLF in mingw tool chain
8868opt_cr=
8869case $build_os in
8870mingw*)
8871  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8872  ;;
8873esac
8874
8875# Try without a prefix underscore, then with it.
8876for ac_symprfx in "" "_"; do
8877
8878  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8879  symxfrm="\\1 $ac_symprfx\\2 \\2"
8880
8881  # Write the raw and C identifiers.
8882  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8883    # Fake it for dumpbin and say T for any non-static function,
8884    # D for any global variable and I for any imported variable.
8885    # Also find C++ and __fastcall symbols from MSVC++,
8886    # which start with @ or ?.
8887    lt_cv_sys_global_symbol_pipe="$AWK '"\
8888"     {last_section=section; section=\$ 3};"\
8889"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8890"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8891"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8892"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8893"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8894"     \$ 0!~/External *\|/{next};"\
8895"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8896"     {if(hide[section]) next};"\
8897"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8898"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8899"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8900"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8901"     ' prfx=^$ac_symprfx"
8902  else
8903    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8904  fi
8905  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8906
8907  # Check to see that the pipe works correctly.
8908  pipe_works=no
8909
8910  rm -f conftest*
8911  cat > conftest.$ac_ext <<_LT_EOF
8912#ifdef __cplusplus
8913extern "C" {
8914#endif
8915char nm_test_var;
8916void nm_test_func(void);
8917void nm_test_func(void){}
8918#ifdef __cplusplus
8919}
8920#endif
8921int main(){nm_test_var='a';nm_test_func();return(0);}
8922_LT_EOF
8923
8924  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8925  (eval $ac_compile) 2>&5
8926  ac_status=$?
8927  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8928  test $ac_status = 0; }; then
8929    # Now try to grab the symbols.
8930    nlist=conftest.nm
8931    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8932  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8933  ac_status=$?
8934  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8935  test $ac_status = 0; } && test -s "$nlist"; then
8936      # Try sorting and uniquifying the output.
8937      if sort "$nlist" | uniq > "$nlist"T; then
8938	mv -f "$nlist"T "$nlist"
8939      else
8940	rm -f "$nlist"T
8941      fi
8942
8943      # Make sure that we snagged all the symbols we need.
8944      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8945	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8946	  cat <<_LT_EOF > conftest.$ac_ext
8947/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8948#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8949/* DATA imports from DLLs on WIN32 can't be const, because runtime
8950   relocations are performed -- see ld's documentation on pseudo-relocs.  */
8951# define LT_DLSYM_CONST
8952#elif defined __osf__
8953/* This system does not cope well with relocations in const data.  */
8954# define LT_DLSYM_CONST
8955#else
8956# define LT_DLSYM_CONST const
8957#endif
8958
8959#ifdef __cplusplus
8960extern "C" {
8961#endif
8962
8963_LT_EOF
8964	  # Now generate the symbol file.
8965	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8966
8967	  cat <<_LT_EOF >> conftest.$ac_ext
8968
8969/* The mapping between symbol names and symbols.  */
8970LT_DLSYM_CONST struct {
8971  const char *name;
8972  void       *address;
8973}
8974lt__PROGRAM__LTX_preloaded_symbols[] =
8975{
8976  { "@PROGRAM@", (void *) 0 },
8977_LT_EOF
8978	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8979	  cat <<\_LT_EOF >> conftest.$ac_ext
8980  {0, (void *) 0}
8981};
8982
8983/* This works around a problem in FreeBSD linker */
8984#ifdef FREEBSD_WORKAROUND
8985static const void *lt_preloaded_setup() {
8986  return lt__PROGRAM__LTX_preloaded_symbols;
8987}
8988#endif
8989
8990#ifdef __cplusplus
8991}
8992#endif
8993_LT_EOF
8994	  # Now try linking the two files.
8995	  mv conftest.$ac_objext conftstm.$ac_objext
8996	  lt_globsym_save_LIBS=$LIBS
8997	  lt_globsym_save_CFLAGS=$CFLAGS
8998	  LIBS=conftstm.$ac_objext
8999	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9000	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9001  (eval $ac_link) 2>&5
9002  ac_status=$?
9003  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9004  test $ac_status = 0; } && test -s conftest$ac_exeext; then
9005	    pipe_works=yes
9006	  fi
9007	  LIBS=$lt_globsym_save_LIBS
9008	  CFLAGS=$lt_globsym_save_CFLAGS
9009	else
9010	  echo "cannot find nm_test_func in $nlist" >&5
9011	fi
9012      else
9013	echo "cannot find nm_test_var in $nlist" >&5
9014      fi
9015    else
9016      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9017    fi
9018  else
9019    echo "$progname: failed program was:" >&5
9020    cat conftest.$ac_ext >&5
9021  fi
9022  rm -rf conftest* conftst*
9023
9024  # Do not use the global_symbol_pipe unless it works.
9025  if test yes = "$pipe_works"; then
9026    break
9027  else
9028    lt_cv_sys_global_symbol_pipe=
9029  fi
9030done
9031
9032fi
9033
9034if test -z "$lt_cv_sys_global_symbol_pipe"; then
9035  lt_cv_sys_global_symbol_to_cdecl=
9036fi
9037if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9039$as_echo "failed" >&6; }
9040else
9041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9042$as_echo "ok" >&6; }
9043fi
9044
9045# Response file support.
9046if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9047  nm_file_list_spec='@'
9048elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9049  nm_file_list_spec='@'
9050fi
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9089$as_echo_n "checking for sysroot... " >&6; }
9090
9091# Check whether --with-sysroot was given.
9092if test "${with_sysroot+set}" = set; then :
9093  withval=$with_sysroot;
9094else
9095  with_sysroot=no
9096fi
9097
9098
9099lt_sysroot=
9100case $with_sysroot in #(
9101 yes)
9102   if test yes = "$GCC"; then
9103     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9104   fi
9105   ;; #(
9106 /*)
9107   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9108   ;; #(
9109 no|'')
9110   ;; #(
9111 *)
9112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9113$as_echo "$with_sysroot" >&6; }
9114   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9115   ;;
9116esac
9117
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9119$as_echo "${lt_sysroot:-no}" >&6; }
9120
9121
9122
9123
9124
9125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9126$as_echo_n "checking for a working dd... " >&6; }
9127if ${ac_cv_path_lt_DD+:} false; then :
9128  $as_echo_n "(cached) " >&6
9129else
9130  printf 0123456789abcdef0123456789abcdef >conftest.i
9131cat conftest.i conftest.i >conftest2.i
9132: ${lt_DD:=$DD}
9133if test -z "$lt_DD"; then
9134  ac_path_lt_DD_found=false
9135  # Loop through the user's path and test for each of PROGNAME-LIST
9136  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9137for as_dir in $PATH
9138do
9139  IFS=$as_save_IFS
9140  test -z "$as_dir" && as_dir=.
9141    for ac_prog in dd; do
9142    for ac_exec_ext in '' $ac_executable_extensions; do
9143      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9144      as_fn_executable_p "$ac_path_lt_DD" || continue
9145if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9146  cmp -s conftest.i conftest.out \
9147  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9148fi
9149      $ac_path_lt_DD_found && break 3
9150    done
9151  done
9152  done
9153IFS=$as_save_IFS
9154  if test -z "$ac_cv_path_lt_DD"; then
9155    :
9156  fi
9157else
9158  ac_cv_path_lt_DD=$lt_DD
9159fi
9160
9161rm -f conftest.i conftest2.i conftest.out
9162fi
9163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9164$as_echo "$ac_cv_path_lt_DD" >&6; }
9165
9166
9167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9168$as_echo_n "checking how to truncate binary pipes... " >&6; }
9169if ${lt_cv_truncate_bin+:} false; then :
9170  $as_echo_n "(cached) " >&6
9171else
9172  printf 0123456789abcdef0123456789abcdef >conftest.i
9173cat conftest.i conftest.i >conftest2.i
9174lt_cv_truncate_bin=
9175if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9176  cmp -s conftest.i conftest.out \
9177  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9178fi
9179rm -f conftest.i conftest2.i conftest.out
9180test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9181fi
9182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9183$as_echo "$lt_cv_truncate_bin" >&6; }
9184
9185
9186
9187
9188
9189
9190
9191# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
9192func_cc_basename ()
9193{
9194    for cc_temp in $*""; do
9195      case $cc_temp in
9196        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9197        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9198        \-*) ;;
9199        *) break;;
9200      esac
9201    done
9202    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9203}
9204
9205# Check whether --enable-libtool-lock was given.
9206if test "${enable_libtool_lock+set}" = set; then :
9207  enableval=$enable_libtool_lock;
9208fi
9209
9210test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9211
9212# Some flags need to be propagated to the compiler or linker for good
9213# libtool support.
9214case $host in
9215ia64-*-hpux*)
9216  # Find out what ABI is being produced by ac_compile, and set mode
9217  # options accordingly.
9218  echo 'int i;' > conftest.$ac_ext
9219  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9220  (eval $ac_compile) 2>&5
9221  ac_status=$?
9222  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9223  test $ac_status = 0; }; then
9224    case `/usr/bin/file conftest.$ac_objext` in
9225      *ELF-32*)
9226	HPUX_IA64_MODE=32
9227	;;
9228      *ELF-64*)
9229	HPUX_IA64_MODE=64
9230	;;
9231    esac
9232  fi
9233  rm -rf conftest*
9234  ;;
9235*-*-irix6*)
9236  # Find out what ABI is being produced by ac_compile, and set linker
9237  # options accordingly.
9238  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9239  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9240  (eval $ac_compile) 2>&5
9241  ac_status=$?
9242  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9243  test $ac_status = 0; }; then
9244    if test yes = "$lt_cv_prog_gnu_ld"; then
9245      case `/usr/bin/file conftest.$ac_objext` in
9246	*32-bit*)
9247	  LD="${LD-ld} -melf32bsmip"
9248	  ;;
9249	*N32*)
9250	  LD="${LD-ld} -melf32bmipn32"
9251	  ;;
9252	*64-bit*)
9253	  LD="${LD-ld} -melf64bmip"
9254	;;
9255      esac
9256    else
9257      case `/usr/bin/file conftest.$ac_objext` in
9258	*32-bit*)
9259	  LD="${LD-ld} -32"
9260	  ;;
9261	*N32*)
9262	  LD="${LD-ld} -n32"
9263	  ;;
9264	*64-bit*)
9265	  LD="${LD-ld} -64"
9266	  ;;
9267      esac
9268    fi
9269  fi
9270  rm -rf conftest*
9271  ;;
9272
9273mips64*-*linux*)
9274  # Find out what ABI is being produced by ac_compile, and set linker
9275  # options accordingly.
9276  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9277  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9278  (eval $ac_compile) 2>&5
9279  ac_status=$?
9280  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9281  test $ac_status = 0; }; then
9282    emul=elf
9283    case `/usr/bin/file conftest.$ac_objext` in
9284      *32-bit*)
9285	emul="${emul}32"
9286	;;
9287      *64-bit*)
9288	emul="${emul}64"
9289	;;
9290    esac
9291    case `/usr/bin/file conftest.$ac_objext` in
9292      *MSB*)
9293	emul="${emul}btsmip"
9294	;;
9295      *LSB*)
9296	emul="${emul}ltsmip"
9297	;;
9298    esac
9299    case `/usr/bin/file conftest.$ac_objext` in
9300      *N32*)
9301	emul="${emul}n32"
9302	;;
9303    esac
9304    LD="${LD-ld} -m $emul"
9305  fi
9306  rm -rf conftest*
9307  ;;
9308
9309x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9310s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9311  # Find out what ABI is being produced by ac_compile, and set linker
9312  # options accordingly.  Note that the listed cases only cover the
9313  # situations where additional linker options are needed (such as when
9314  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9315  # vice versa); the common cases where no linker options are needed do
9316  # not appear in the list.
9317  echo 'int i;' > conftest.$ac_ext
9318  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9319  (eval $ac_compile) 2>&5
9320  ac_status=$?
9321  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9322  test $ac_status = 0; }; then
9323    case `/usr/bin/file conftest.o` in
9324      *32-bit*)
9325	case $host in
9326	  x86_64-*kfreebsd*-gnu)
9327	    LD="${LD-ld} -m elf_i386_fbsd"
9328	    ;;
9329	  x86_64-*linux*)
9330	    case `/usr/bin/file conftest.o` in
9331	      *x86-64*)
9332		LD="${LD-ld} -m elf32_x86_64"
9333		;;
9334	      *)
9335		LD="${LD-ld} -m elf_i386"
9336		;;
9337	    esac
9338	    ;;
9339	  powerpc64le-*linux*)
9340	    LD="${LD-ld} -m elf32lppclinux"
9341	    ;;
9342	  powerpc64-*linux*)
9343	    LD="${LD-ld} -m elf32ppclinux"
9344	    ;;
9345	  s390x-*linux*)
9346	    LD="${LD-ld} -m elf_s390"
9347	    ;;
9348	  sparc64-*linux*)
9349	    LD="${LD-ld} -m elf32_sparc"
9350	    ;;
9351	esac
9352	;;
9353      *64-bit*)
9354	case $host in
9355	  x86_64-*kfreebsd*-gnu)
9356	    LD="${LD-ld} -m elf_x86_64_fbsd"
9357	    ;;
9358	  x86_64-*linux*)
9359	    LD="${LD-ld} -m elf_x86_64"
9360	    ;;
9361	  powerpcle-*linux*)
9362	    LD="${LD-ld} -m elf64lppc"
9363	    ;;
9364	  powerpc-*linux*)
9365	    LD="${LD-ld} -m elf64ppc"
9366	    ;;
9367	  s390*-*linux*|s390*-*tpf*)
9368	    LD="${LD-ld} -m elf64_s390"
9369	    ;;
9370	  sparc*-*linux*)
9371	    LD="${LD-ld} -m elf64_sparc"
9372	    ;;
9373	esac
9374	;;
9375    esac
9376  fi
9377  rm -rf conftest*
9378  ;;
9379
9380*-*-sco3.2v5*)
9381  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9382  SAVE_CFLAGS=$CFLAGS
9383  CFLAGS="$CFLAGS -belf"
9384  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9385$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9386if ${lt_cv_cc_needs_belf+:} false; then :
9387  $as_echo_n "(cached) " >&6
9388else
9389  ac_ext=c
9390ac_cpp='$CPP $CPPFLAGS'
9391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9393ac_compiler_gnu=$ac_cv_c_compiler_gnu
9394
9395     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9396/* end confdefs.h.  */
9397
9398int
9399main ()
9400{
9401
9402  ;
9403  return 0;
9404}
9405_ACEOF
9406if ac_fn_c_try_link "$LINENO"; then :
9407  lt_cv_cc_needs_belf=yes
9408else
9409  lt_cv_cc_needs_belf=no
9410fi
9411rm -f core conftest.err conftest.$ac_objext \
9412    conftest$ac_exeext conftest.$ac_ext
9413     ac_ext=c
9414ac_cpp='$CPP $CPPFLAGS'
9415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9417ac_compiler_gnu=$ac_cv_c_compiler_gnu
9418
9419fi
9420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9421$as_echo "$lt_cv_cc_needs_belf" >&6; }
9422  if test yes != "$lt_cv_cc_needs_belf"; then
9423    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9424    CFLAGS=$SAVE_CFLAGS
9425  fi
9426  ;;
9427*-*solaris*)
9428  # Find out what ABI is being produced by ac_compile, and set linker
9429  # options accordingly.
9430  echo 'int i;' > conftest.$ac_ext
9431  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9432  (eval $ac_compile) 2>&5
9433  ac_status=$?
9434  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9435  test $ac_status = 0; }; then
9436    case `/usr/bin/file conftest.o` in
9437    *64-bit*)
9438      case $lt_cv_prog_gnu_ld in
9439      yes*)
9440        case $host in
9441        i?86-*-solaris*|x86_64-*-solaris*)
9442          LD="${LD-ld} -m elf_x86_64"
9443          ;;
9444        sparc*-*-solaris*)
9445          LD="${LD-ld} -m elf64_sparc"
9446          ;;
9447        esac
9448        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9449        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9450          LD=${LD-ld}_sol2
9451        fi
9452        ;;
9453      *)
9454	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9455	  LD="${LD-ld} -64"
9456	fi
9457	;;
9458      esac
9459      ;;
9460    esac
9461  fi
9462  rm -rf conftest*
9463  ;;
9464esac
9465
9466need_locks=$enable_libtool_lock
9467
9468if test -n "$ac_tool_prefix"; then
9469  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9470set dummy ${ac_tool_prefix}mt; ac_word=$2
9471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9472$as_echo_n "checking for $ac_word... " >&6; }
9473if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9474  $as_echo_n "(cached) " >&6
9475else
9476  if test -n "$MANIFEST_TOOL"; then
9477  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9478else
9479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9480for as_dir in $PATH
9481do
9482  IFS=$as_save_IFS
9483  test -z "$as_dir" && as_dir=.
9484    for ac_exec_ext in '' $ac_executable_extensions; do
9485  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9486    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9487    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9488    break 2
9489  fi
9490done
9491  done
9492IFS=$as_save_IFS
9493
9494fi
9495fi
9496MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9497if test -n "$MANIFEST_TOOL"; then
9498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9499$as_echo "$MANIFEST_TOOL" >&6; }
9500else
9501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9502$as_echo "no" >&6; }
9503fi
9504
9505
9506fi
9507if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9508  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9509  # Extract the first word of "mt", so it can be a program name with args.
9510set dummy mt; ac_word=$2
9511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9512$as_echo_n "checking for $ac_word... " >&6; }
9513if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9514  $as_echo_n "(cached) " >&6
9515else
9516  if test -n "$ac_ct_MANIFEST_TOOL"; then
9517  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9518else
9519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9520for as_dir in $PATH
9521do
9522  IFS=$as_save_IFS
9523  test -z "$as_dir" && as_dir=.
9524    for ac_exec_ext in '' $ac_executable_extensions; do
9525  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9526    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9527    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9528    break 2
9529  fi
9530done
9531  done
9532IFS=$as_save_IFS
9533
9534fi
9535fi
9536ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9537if test -n "$ac_ct_MANIFEST_TOOL"; then
9538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9539$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9540else
9541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9542$as_echo "no" >&6; }
9543fi
9544
9545  if test "x$ac_ct_MANIFEST_TOOL" = x; then
9546    MANIFEST_TOOL=":"
9547  else
9548    case $cross_compiling:$ac_tool_warned in
9549yes:)
9550{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9551$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9552ac_tool_warned=yes ;;
9553esac
9554    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9555  fi
9556else
9557  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9558fi
9559
9560test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9562$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9563if ${lt_cv_path_mainfest_tool+:} false; then :
9564  $as_echo_n "(cached) " >&6
9565else
9566  lt_cv_path_mainfest_tool=no
9567  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9568  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9569  cat conftest.err >&5
9570  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9571    lt_cv_path_mainfest_tool=yes
9572  fi
9573  rm -f conftest*
9574fi
9575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9576$as_echo "$lt_cv_path_mainfest_tool" >&6; }
9577if test yes != "$lt_cv_path_mainfest_tool"; then
9578  MANIFEST_TOOL=:
9579fi
9580
9581
9582
9583
9584
9585
9586  case $host_os in
9587    rhapsody* | darwin*)
9588    if test -n "$ac_tool_prefix"; then
9589  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9590set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9592$as_echo_n "checking for $ac_word... " >&6; }
9593if ${ac_cv_prog_DSYMUTIL+:} false; then :
9594  $as_echo_n "(cached) " >&6
9595else
9596  if test -n "$DSYMUTIL"; then
9597  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9598else
9599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9600for as_dir in $PATH
9601do
9602  IFS=$as_save_IFS
9603  test -z "$as_dir" && as_dir=.
9604    for ac_exec_ext in '' $ac_executable_extensions; do
9605  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9606    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9607    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9608    break 2
9609  fi
9610done
9611  done
9612IFS=$as_save_IFS
9613
9614fi
9615fi
9616DSYMUTIL=$ac_cv_prog_DSYMUTIL
9617if test -n "$DSYMUTIL"; then
9618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9619$as_echo "$DSYMUTIL" >&6; }
9620else
9621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9622$as_echo "no" >&6; }
9623fi
9624
9625
9626fi
9627if test -z "$ac_cv_prog_DSYMUTIL"; then
9628  ac_ct_DSYMUTIL=$DSYMUTIL
9629  # Extract the first word of "dsymutil", so it can be a program name with args.
9630set dummy dsymutil; ac_word=$2
9631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9632$as_echo_n "checking for $ac_word... " >&6; }
9633if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9634  $as_echo_n "(cached) " >&6
9635else
9636  if test -n "$ac_ct_DSYMUTIL"; then
9637  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9638else
9639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9640for as_dir in $PATH
9641do
9642  IFS=$as_save_IFS
9643  test -z "$as_dir" && as_dir=.
9644    for ac_exec_ext in '' $ac_executable_extensions; do
9645  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9646    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9647    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9648    break 2
9649  fi
9650done
9651  done
9652IFS=$as_save_IFS
9653
9654fi
9655fi
9656ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9657if test -n "$ac_ct_DSYMUTIL"; then
9658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9659$as_echo "$ac_ct_DSYMUTIL" >&6; }
9660else
9661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9662$as_echo "no" >&6; }
9663fi
9664
9665  if test "x$ac_ct_DSYMUTIL" = x; then
9666    DSYMUTIL=":"
9667  else
9668    case $cross_compiling:$ac_tool_warned in
9669yes:)
9670{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9671$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9672ac_tool_warned=yes ;;
9673esac
9674    DSYMUTIL=$ac_ct_DSYMUTIL
9675  fi
9676else
9677  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9678fi
9679
9680    if test -n "$ac_tool_prefix"; then
9681  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9682set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9684$as_echo_n "checking for $ac_word... " >&6; }
9685if ${ac_cv_prog_NMEDIT+:} false; then :
9686  $as_echo_n "(cached) " >&6
9687else
9688  if test -n "$NMEDIT"; then
9689  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9690else
9691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9692for as_dir in $PATH
9693do
9694  IFS=$as_save_IFS
9695  test -z "$as_dir" && as_dir=.
9696    for ac_exec_ext in '' $ac_executable_extensions; do
9697  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9698    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9699    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9700    break 2
9701  fi
9702done
9703  done
9704IFS=$as_save_IFS
9705
9706fi
9707fi
9708NMEDIT=$ac_cv_prog_NMEDIT
9709if test -n "$NMEDIT"; then
9710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9711$as_echo "$NMEDIT" >&6; }
9712else
9713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9714$as_echo "no" >&6; }
9715fi
9716
9717
9718fi
9719if test -z "$ac_cv_prog_NMEDIT"; then
9720  ac_ct_NMEDIT=$NMEDIT
9721  # Extract the first word of "nmedit", so it can be a program name with args.
9722set dummy nmedit; ac_word=$2
9723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9724$as_echo_n "checking for $ac_word... " >&6; }
9725if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9726  $as_echo_n "(cached) " >&6
9727else
9728  if test -n "$ac_ct_NMEDIT"; then
9729  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9730else
9731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9732for as_dir in $PATH
9733do
9734  IFS=$as_save_IFS
9735  test -z "$as_dir" && as_dir=.
9736    for ac_exec_ext in '' $ac_executable_extensions; do
9737  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9738    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9739    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9740    break 2
9741  fi
9742done
9743  done
9744IFS=$as_save_IFS
9745
9746fi
9747fi
9748ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9749if test -n "$ac_ct_NMEDIT"; then
9750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9751$as_echo "$ac_ct_NMEDIT" >&6; }
9752else
9753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9754$as_echo "no" >&6; }
9755fi
9756
9757  if test "x$ac_ct_NMEDIT" = x; then
9758    NMEDIT=":"
9759  else
9760    case $cross_compiling:$ac_tool_warned in
9761yes:)
9762{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9763$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9764ac_tool_warned=yes ;;
9765esac
9766    NMEDIT=$ac_ct_NMEDIT
9767  fi
9768else
9769  NMEDIT="$ac_cv_prog_NMEDIT"
9770fi
9771
9772    if test -n "$ac_tool_prefix"; then
9773  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9774set dummy ${ac_tool_prefix}lipo; ac_word=$2
9775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9776$as_echo_n "checking for $ac_word... " >&6; }
9777if ${ac_cv_prog_LIPO+:} false; then :
9778  $as_echo_n "(cached) " >&6
9779else
9780  if test -n "$LIPO"; then
9781  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9782else
9783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9784for as_dir in $PATH
9785do
9786  IFS=$as_save_IFS
9787  test -z "$as_dir" && as_dir=.
9788    for ac_exec_ext in '' $ac_executable_extensions; do
9789  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9790    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9791    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9792    break 2
9793  fi
9794done
9795  done
9796IFS=$as_save_IFS
9797
9798fi
9799fi
9800LIPO=$ac_cv_prog_LIPO
9801if test -n "$LIPO"; then
9802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9803$as_echo "$LIPO" >&6; }
9804else
9805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9806$as_echo "no" >&6; }
9807fi
9808
9809
9810fi
9811if test -z "$ac_cv_prog_LIPO"; then
9812  ac_ct_LIPO=$LIPO
9813  # Extract the first word of "lipo", so it can be a program name with args.
9814set dummy lipo; ac_word=$2
9815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9816$as_echo_n "checking for $ac_word... " >&6; }
9817if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9818  $as_echo_n "(cached) " >&6
9819else
9820  if test -n "$ac_ct_LIPO"; then
9821  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9822else
9823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9824for as_dir in $PATH
9825do
9826  IFS=$as_save_IFS
9827  test -z "$as_dir" && as_dir=.
9828    for ac_exec_ext in '' $ac_executable_extensions; do
9829  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9830    ac_cv_prog_ac_ct_LIPO="lipo"
9831    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9832    break 2
9833  fi
9834done
9835  done
9836IFS=$as_save_IFS
9837
9838fi
9839fi
9840ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9841if test -n "$ac_ct_LIPO"; then
9842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9843$as_echo "$ac_ct_LIPO" >&6; }
9844else
9845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9846$as_echo "no" >&6; }
9847fi
9848
9849  if test "x$ac_ct_LIPO" = x; then
9850    LIPO=":"
9851  else
9852    case $cross_compiling:$ac_tool_warned in
9853yes:)
9854{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9855$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9856ac_tool_warned=yes ;;
9857esac
9858    LIPO=$ac_ct_LIPO
9859  fi
9860else
9861  LIPO="$ac_cv_prog_LIPO"
9862fi
9863
9864    if test -n "$ac_tool_prefix"; then
9865  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9866set dummy ${ac_tool_prefix}otool; ac_word=$2
9867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9868$as_echo_n "checking for $ac_word... " >&6; }
9869if ${ac_cv_prog_OTOOL+:} false; then :
9870  $as_echo_n "(cached) " >&6
9871else
9872  if test -n "$OTOOL"; then
9873  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9874else
9875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9876for as_dir in $PATH
9877do
9878  IFS=$as_save_IFS
9879  test -z "$as_dir" && as_dir=.
9880    for ac_exec_ext in '' $ac_executable_extensions; do
9881  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9882    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9883    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9884    break 2
9885  fi
9886done
9887  done
9888IFS=$as_save_IFS
9889
9890fi
9891fi
9892OTOOL=$ac_cv_prog_OTOOL
9893if test -n "$OTOOL"; then
9894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9895$as_echo "$OTOOL" >&6; }
9896else
9897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9898$as_echo "no" >&6; }
9899fi
9900
9901
9902fi
9903if test -z "$ac_cv_prog_OTOOL"; then
9904  ac_ct_OTOOL=$OTOOL
9905  # Extract the first word of "otool", so it can be a program name with args.
9906set dummy otool; ac_word=$2
9907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9908$as_echo_n "checking for $ac_word... " >&6; }
9909if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9910  $as_echo_n "(cached) " >&6
9911else
9912  if test -n "$ac_ct_OTOOL"; then
9913  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9914else
9915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9916for as_dir in $PATH
9917do
9918  IFS=$as_save_IFS
9919  test -z "$as_dir" && as_dir=.
9920    for ac_exec_ext in '' $ac_executable_extensions; do
9921  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9922    ac_cv_prog_ac_ct_OTOOL="otool"
9923    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9924    break 2
9925  fi
9926done
9927  done
9928IFS=$as_save_IFS
9929
9930fi
9931fi
9932ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9933if test -n "$ac_ct_OTOOL"; then
9934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9935$as_echo "$ac_ct_OTOOL" >&6; }
9936else
9937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9938$as_echo "no" >&6; }
9939fi
9940
9941  if test "x$ac_ct_OTOOL" = x; then
9942    OTOOL=":"
9943  else
9944    case $cross_compiling:$ac_tool_warned in
9945yes:)
9946{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9947$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9948ac_tool_warned=yes ;;
9949esac
9950    OTOOL=$ac_ct_OTOOL
9951  fi
9952else
9953  OTOOL="$ac_cv_prog_OTOOL"
9954fi
9955
9956    if test -n "$ac_tool_prefix"; then
9957  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9958set dummy ${ac_tool_prefix}otool64; ac_word=$2
9959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9960$as_echo_n "checking for $ac_word... " >&6; }
9961if ${ac_cv_prog_OTOOL64+:} false; then :
9962  $as_echo_n "(cached) " >&6
9963else
9964  if test -n "$OTOOL64"; then
9965  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9966else
9967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9968for as_dir in $PATH
9969do
9970  IFS=$as_save_IFS
9971  test -z "$as_dir" && as_dir=.
9972    for ac_exec_ext in '' $ac_executable_extensions; do
9973  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9974    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9975    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9976    break 2
9977  fi
9978done
9979  done
9980IFS=$as_save_IFS
9981
9982fi
9983fi
9984OTOOL64=$ac_cv_prog_OTOOL64
9985if test -n "$OTOOL64"; then
9986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9987$as_echo "$OTOOL64" >&6; }
9988else
9989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9990$as_echo "no" >&6; }
9991fi
9992
9993
9994fi
9995if test -z "$ac_cv_prog_OTOOL64"; then
9996  ac_ct_OTOOL64=$OTOOL64
9997  # Extract the first word of "otool64", so it can be a program name with args.
9998set dummy otool64; ac_word=$2
9999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10000$as_echo_n "checking for $ac_word... " >&6; }
10001if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10002  $as_echo_n "(cached) " >&6
10003else
10004  if test -n "$ac_ct_OTOOL64"; then
10005  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10006else
10007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10008for as_dir in $PATH
10009do
10010  IFS=$as_save_IFS
10011  test -z "$as_dir" && as_dir=.
10012    for ac_exec_ext in '' $ac_executable_extensions; do
10013  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10014    ac_cv_prog_ac_ct_OTOOL64="otool64"
10015    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10016    break 2
10017  fi
10018done
10019  done
10020IFS=$as_save_IFS
10021
10022fi
10023fi
10024ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10025if test -n "$ac_ct_OTOOL64"; then
10026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10027$as_echo "$ac_ct_OTOOL64" >&6; }
10028else
10029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10030$as_echo "no" >&6; }
10031fi
10032
10033  if test "x$ac_ct_OTOOL64" = x; then
10034    OTOOL64=":"
10035  else
10036    case $cross_compiling:$ac_tool_warned in
10037yes:)
10038{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10039$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10040ac_tool_warned=yes ;;
10041esac
10042    OTOOL64=$ac_ct_OTOOL64
10043  fi
10044else
10045  OTOOL64="$ac_cv_prog_OTOOL64"
10046fi
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10075$as_echo_n "checking for -single_module linker flag... " >&6; }
10076if ${lt_cv_apple_cc_single_mod+:} false; then :
10077  $as_echo_n "(cached) " >&6
10078else
10079  lt_cv_apple_cc_single_mod=no
10080      if test -z "$LT_MULTI_MODULE"; then
10081	# By default we will add the -single_module flag. You can override
10082	# by either setting the environment variable LT_MULTI_MODULE
10083	# non-empty at configure time, or by adding -multi_module to the
10084	# link flags.
10085	rm -rf libconftest.dylib*
10086	echo "int foo(void){return 1;}" > conftest.c
10087	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10088-dynamiclib -Wl,-single_module conftest.c" >&5
10089	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10090	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10091        _lt_result=$?
10092	# If there is a non-empty error log, and "single_module"
10093	# appears in it, assume the flag caused a linker warning
10094        if test -s conftest.err && $GREP single_module conftest.err; then
10095	  cat conftest.err >&5
10096	# Otherwise, if the output was created with a 0 exit code from
10097	# the compiler, it worked.
10098	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10099	  lt_cv_apple_cc_single_mod=yes
10100	else
10101	  cat conftest.err >&5
10102	fi
10103	rm -rf libconftest.dylib*
10104	rm -f conftest.*
10105      fi
10106fi
10107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10108$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10109
10110    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10111$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10112if ${lt_cv_ld_exported_symbols_list+:} false; then :
10113  $as_echo_n "(cached) " >&6
10114else
10115  lt_cv_ld_exported_symbols_list=no
10116      save_LDFLAGS=$LDFLAGS
10117      echo "_main" > conftest.sym
10118      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10119      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10120/* end confdefs.h.  */
10121
10122int
10123main ()
10124{
10125
10126  ;
10127  return 0;
10128}
10129_ACEOF
10130if ac_fn_c_try_link "$LINENO"; then :
10131  lt_cv_ld_exported_symbols_list=yes
10132else
10133  lt_cv_ld_exported_symbols_list=no
10134fi
10135rm -f core conftest.err conftest.$ac_objext \
10136    conftest$ac_exeext conftest.$ac_ext
10137	LDFLAGS=$save_LDFLAGS
10138
10139fi
10140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10141$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10142
10143    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10144$as_echo_n "checking for -force_load linker flag... " >&6; }
10145if ${lt_cv_ld_force_load+:} false; then :
10146  $as_echo_n "(cached) " >&6
10147else
10148  lt_cv_ld_force_load=no
10149      cat > conftest.c << _LT_EOF
10150int forced_loaded() { return 2;}
10151_LT_EOF
10152      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10153      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10154      echo "$AR cru libconftest.a conftest.o" >&5
10155      $AR cru libconftest.a conftest.o 2>&5
10156      echo "$RANLIB libconftest.a" >&5
10157      $RANLIB libconftest.a 2>&5
10158      cat > conftest.c << _LT_EOF
10159int main() { return 0;}
10160_LT_EOF
10161      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10162      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10163      _lt_result=$?
10164      if test -s conftest.err && $GREP force_load conftest.err; then
10165	cat conftest.err >&5
10166      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10167	lt_cv_ld_force_load=yes
10168      else
10169	cat conftest.err >&5
10170      fi
10171        rm -f conftest.err libconftest.a conftest conftest.c
10172        rm -rf conftest.dSYM
10173
10174fi
10175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10176$as_echo "$lt_cv_ld_force_load" >&6; }
10177    case $host_os in
10178    rhapsody* | darwin1.[012])
10179      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10180    darwin1.*)
10181      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10182    darwin*) # darwin 5.x on
10183      # if running on 10.5 or later, the deployment target defaults
10184      # to the OS version, if on x86, and 10.4, the deployment
10185      # target defaults to 10.4. Don't you love it?
10186      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10187	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10188	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10189	10.[012][,.]*)
10190	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10191	10.*)
10192	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10193      esac
10194    ;;
10195  esac
10196    if test yes = "$lt_cv_apple_cc_single_mod"; then
10197      _lt_dar_single_mod='$single_module'
10198    fi
10199    if test yes = "$lt_cv_ld_exported_symbols_list"; then
10200      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10201    else
10202      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10203    fi
10204    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10205      _lt_dsymutil='~$DSYMUTIL $lib || :'
10206    else
10207      _lt_dsymutil=
10208    fi
10209    ;;
10210  esac
10211
10212# func_munge_path_list VARIABLE PATH
10213# -----------------------------------
10214# VARIABLE is name of variable containing _space_ separated list of
10215# directories to be munged by the contents of PATH, which is string
10216# having a format:
10217# "DIR[:DIR]:"
10218#       string "DIR[ DIR]" will be prepended to VARIABLE
10219# ":DIR[:DIR]"
10220#       string "DIR[ DIR]" will be appended to VARIABLE
10221# "DIRP[:DIRP]::[DIRA:]DIRA"
10222#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10223#       "DIRA[ DIRA]" will be appended to VARIABLE
10224# "DIR[:DIR]"
10225#       VARIABLE will be replaced by "DIR[ DIR]"
10226func_munge_path_list ()
10227{
10228    case x$2 in
10229    x)
10230        ;;
10231    *:)
10232        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10233        ;;
10234    x:*)
10235        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10236        ;;
10237    *::*)
10238        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10239        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10240        ;;
10241    *)
10242        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10243        ;;
10244    esac
10245}
10246
10247for ac_header in dlfcn.h
10248do :
10249  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10250"
10251if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10252  cat >>confdefs.h <<_ACEOF
10253#define HAVE_DLFCN_H 1
10254_ACEOF
10255
10256fi
10257
10258done
10259
10260
10261
10262
10263
10264
10265
10266# Set options
10267
10268
10269
10270        enable_dlopen=no
10271
10272
10273  enable_win32_dll=no
10274
10275
10276            # Check whether --enable-shared was given.
10277if test "${enable_shared+set}" = set; then :
10278  enableval=$enable_shared; p=${PACKAGE-default}
10279    case $enableval in
10280    yes) enable_shared=yes ;;
10281    no) enable_shared=no ;;
10282    *)
10283      enable_shared=no
10284      # Look at the argument we got.  We use all the common list separators.
10285      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10286      for pkg in $enableval; do
10287	IFS=$lt_save_ifs
10288	if test "X$pkg" = "X$p"; then
10289	  enable_shared=yes
10290	fi
10291      done
10292      IFS=$lt_save_ifs
10293      ;;
10294    esac
10295else
10296  enable_shared=yes
10297fi
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307  # Check whether --enable-static was given.
10308if test "${enable_static+set}" = set; then :
10309  enableval=$enable_static; p=${PACKAGE-default}
10310    case $enableval in
10311    yes) enable_static=yes ;;
10312    no) enable_static=no ;;
10313    *)
10314     enable_static=no
10315      # Look at the argument we got.  We use all the common list separators.
10316      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10317      for pkg in $enableval; do
10318	IFS=$lt_save_ifs
10319	if test "X$pkg" = "X$p"; then
10320	  enable_static=yes
10321	fi
10322      done
10323      IFS=$lt_save_ifs
10324      ;;
10325    esac
10326else
10327  enable_static=yes
10328fi
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339# Check whether --with-pic was given.
10340if test "${with_pic+set}" = set; then :
10341  withval=$with_pic; lt_p=${PACKAGE-default}
10342    case $withval in
10343    yes|no) pic_mode=$withval ;;
10344    *)
10345      pic_mode=default
10346      # Look at the argument we got.  We use all the common list separators.
10347      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10348      for lt_pkg in $withval; do
10349	IFS=$lt_save_ifs
10350	if test "X$lt_pkg" = "X$lt_p"; then
10351	  pic_mode=yes
10352	fi
10353      done
10354      IFS=$lt_save_ifs
10355      ;;
10356    esac
10357else
10358  pic_mode=default
10359fi
10360
10361
10362
10363
10364
10365
10366
10367
10368  # Check whether --enable-fast-install was given.
10369if test "${enable_fast_install+set}" = set; then :
10370  enableval=$enable_fast_install; p=${PACKAGE-default}
10371    case $enableval in
10372    yes) enable_fast_install=yes ;;
10373    no) enable_fast_install=no ;;
10374    *)
10375      enable_fast_install=no
10376      # Look at the argument we got.  We use all the common list separators.
10377      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10378      for pkg in $enableval; do
10379	IFS=$lt_save_ifs
10380	if test "X$pkg" = "X$p"; then
10381	  enable_fast_install=yes
10382	fi
10383      done
10384      IFS=$lt_save_ifs
10385      ;;
10386    esac
10387else
10388  enable_fast_install=yes
10389fi
10390
10391
10392
10393
10394
10395
10396
10397
10398  shared_archive_member_spec=
10399case $host,$enable_shared in
10400power*-*-aix[5-9]*,yes)
10401  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10402$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10403
10404# Check whether --with-aix-soname was given.
10405if test "${with_aix_soname+set}" = set; then :
10406  withval=$with_aix_soname; case $withval in
10407    aix|svr4|both)
10408      ;;
10409    *)
10410      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10411      ;;
10412    esac
10413    lt_cv_with_aix_soname=$with_aix_soname
10414else
10415  if ${lt_cv_with_aix_soname+:} false; then :
10416  $as_echo_n "(cached) " >&6
10417else
10418  lt_cv_with_aix_soname=aix
10419fi
10420
10421    with_aix_soname=$lt_cv_with_aix_soname
10422fi
10423
10424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10425$as_echo "$with_aix_soname" >&6; }
10426  if test aix != "$with_aix_soname"; then
10427    # For the AIX way of multilib, we name the shared archive member
10428    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10429    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10430    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10431    # the AIX toolchain works better with OBJECT_MODE set (default 32).
10432    if test 64 = "${OBJECT_MODE-32}"; then
10433      shared_archive_member_spec=shr_64
10434    else
10435      shared_archive_member_spec=shr
10436    fi
10437  fi
10438  ;;
10439*)
10440  with_aix_soname=aix
10441  ;;
10442esac
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453# This can be used to rebuild libtool when needed
10454LIBTOOL_DEPS=$ltmain
10455
10456# Always use our own libtool.
10457LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488test -z "$LN_S" && LN_S="ln -s"
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503if test -n "${ZSH_VERSION+set}"; then
10504   setopt NO_GLOB_SUBST
10505fi
10506
10507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10508$as_echo_n "checking for objdir... " >&6; }
10509if ${lt_cv_objdir+:} false; then :
10510  $as_echo_n "(cached) " >&6
10511else
10512  rm -f .libs 2>/dev/null
10513mkdir .libs 2>/dev/null
10514if test -d .libs; then
10515  lt_cv_objdir=.libs
10516else
10517  # MS-DOS does not allow filenames that begin with a dot.
10518  lt_cv_objdir=_libs
10519fi
10520rmdir .libs 2>/dev/null
10521fi
10522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10523$as_echo "$lt_cv_objdir" >&6; }
10524objdir=$lt_cv_objdir
10525
10526
10527
10528
10529
10530cat >>confdefs.h <<_ACEOF
10531#define LT_OBJDIR "$lt_cv_objdir/"
10532_ACEOF
10533
10534
10535
10536
10537case $host_os in
10538aix3*)
10539  # AIX sometimes has problems with the GCC collect2 program.  For some
10540  # reason, if we set the COLLECT_NAMES environment variable, the problems
10541  # vanish in a puff of smoke.
10542  if test set != "${COLLECT_NAMES+set}"; then
10543    COLLECT_NAMES=
10544    export COLLECT_NAMES
10545  fi
10546  ;;
10547esac
10548
10549# Global variables:
10550ofile=libtool
10551can_build_shared=yes
10552
10553# All known linkers require a '.a' archive for static linking (except MSVC,
10554# which needs '.lib').
10555libext=a
10556
10557with_gnu_ld=$lt_cv_prog_gnu_ld
10558
10559old_CC=$CC
10560old_CFLAGS=$CFLAGS
10561
10562# Set sane defaults for various variables
10563test -z "$CC" && CC=cc
10564test -z "$LTCC" && LTCC=$CC
10565test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10566test -z "$LD" && LD=ld
10567test -z "$ac_objext" && ac_objext=o
10568
10569func_cc_basename $compiler
10570cc_basename=$func_cc_basename_result
10571
10572
10573# Only perform the check for file, if the check method requires it
10574test -z "$MAGIC_CMD" && MAGIC_CMD=file
10575case $deplibs_check_method in
10576file_magic*)
10577  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10578    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10579$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10580if ${lt_cv_path_MAGIC_CMD+:} false; then :
10581  $as_echo_n "(cached) " >&6
10582else
10583  case $MAGIC_CMD in
10584[\\/*] |  ?:[\\/]*)
10585  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10586  ;;
10587*)
10588  lt_save_MAGIC_CMD=$MAGIC_CMD
10589  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10590  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10591  for ac_dir in $ac_dummy; do
10592    IFS=$lt_save_ifs
10593    test -z "$ac_dir" && ac_dir=.
10594    if test -f "$ac_dir/${ac_tool_prefix}file"; then
10595      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10596      if test -n "$file_magic_test_file"; then
10597	case $deplibs_check_method in
10598	"file_magic "*)
10599	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10600	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10601	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10602	    $EGREP "$file_magic_regex" > /dev/null; then
10603	    :
10604	  else
10605	    cat <<_LT_EOF 1>&2
10606
10607*** Warning: the command libtool uses to detect shared libraries,
10608*** $file_magic_cmd, produces output that libtool cannot recognize.
10609*** The result is that libtool may fail to recognize shared libraries
10610*** as such.  This will affect the creation of libtool libraries that
10611*** depend on shared libraries, but programs linked with such libtool
10612*** libraries will work regardless of this problem.  Nevertheless, you
10613*** may want to report the problem to your system manager and/or to
10614*** bug-libtool@gnu.org
10615
10616_LT_EOF
10617	  fi ;;
10618	esac
10619      fi
10620      break
10621    fi
10622  done
10623  IFS=$lt_save_ifs
10624  MAGIC_CMD=$lt_save_MAGIC_CMD
10625  ;;
10626esac
10627fi
10628
10629MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10630if test -n "$MAGIC_CMD"; then
10631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10632$as_echo "$MAGIC_CMD" >&6; }
10633else
10634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10635$as_echo "no" >&6; }
10636fi
10637
10638
10639
10640
10641
10642if test -z "$lt_cv_path_MAGIC_CMD"; then
10643  if test -n "$ac_tool_prefix"; then
10644    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10645$as_echo_n "checking for file... " >&6; }
10646if ${lt_cv_path_MAGIC_CMD+:} false; then :
10647  $as_echo_n "(cached) " >&6
10648else
10649  case $MAGIC_CMD in
10650[\\/*] |  ?:[\\/]*)
10651  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10652  ;;
10653*)
10654  lt_save_MAGIC_CMD=$MAGIC_CMD
10655  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10656  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10657  for ac_dir in $ac_dummy; do
10658    IFS=$lt_save_ifs
10659    test -z "$ac_dir" && ac_dir=.
10660    if test -f "$ac_dir/file"; then
10661      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10662      if test -n "$file_magic_test_file"; then
10663	case $deplibs_check_method in
10664	"file_magic "*)
10665	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10666	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10667	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10668	    $EGREP "$file_magic_regex" > /dev/null; then
10669	    :
10670	  else
10671	    cat <<_LT_EOF 1>&2
10672
10673*** Warning: the command libtool uses to detect shared libraries,
10674*** $file_magic_cmd, produces output that libtool cannot recognize.
10675*** The result is that libtool may fail to recognize shared libraries
10676*** as such.  This will affect the creation of libtool libraries that
10677*** depend on shared libraries, but programs linked with such libtool
10678*** libraries will work regardless of this problem.  Nevertheless, you
10679*** may want to report the problem to your system manager and/or to
10680*** bug-libtool@gnu.org
10681
10682_LT_EOF
10683	  fi ;;
10684	esac
10685      fi
10686      break
10687    fi
10688  done
10689  IFS=$lt_save_ifs
10690  MAGIC_CMD=$lt_save_MAGIC_CMD
10691  ;;
10692esac
10693fi
10694
10695MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10696if test -n "$MAGIC_CMD"; then
10697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10698$as_echo "$MAGIC_CMD" >&6; }
10699else
10700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10701$as_echo "no" >&6; }
10702fi
10703
10704
10705  else
10706    MAGIC_CMD=:
10707  fi
10708fi
10709
10710  fi
10711  ;;
10712esac
10713
10714# Use C for the default configuration in the libtool script
10715
10716lt_save_CC=$CC
10717ac_ext=c
10718ac_cpp='$CPP $CPPFLAGS'
10719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10721ac_compiler_gnu=$ac_cv_c_compiler_gnu
10722
10723
10724# Source file extension for C test sources.
10725ac_ext=c
10726
10727# Object file extension for compiled C test sources.
10728objext=o
10729objext=$objext
10730
10731# Code to be used in simple compile tests
10732lt_simple_compile_test_code="int some_variable = 0;"
10733
10734# Code to be used in simple link tests
10735lt_simple_link_test_code='int main(){return(0);}'
10736
10737
10738
10739
10740
10741
10742
10743# If no C compiler was specified, use CC.
10744LTCC=${LTCC-"$CC"}
10745
10746# If no C compiler flags were specified, use CFLAGS.
10747LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10748
10749# Allow CC to be a program name with arguments.
10750compiler=$CC
10751
10752# Save the default compiler, since it gets overwritten when the other
10753# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10754compiler_DEFAULT=$CC
10755
10756# save warnings/boilerplate of simple test code
10757ac_outfile=conftest.$ac_objext
10758echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10759eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10760_lt_compiler_boilerplate=`cat conftest.err`
10761$RM conftest*
10762
10763ac_outfile=conftest.$ac_objext
10764echo "$lt_simple_link_test_code" >conftest.$ac_ext
10765eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10766_lt_linker_boilerplate=`cat conftest.err`
10767$RM -r conftest*
10768
10769
10770if test -n "$compiler"; then
10771
10772lt_prog_compiler_no_builtin_flag=
10773
10774if test yes = "$GCC"; then
10775  case $cc_basename in
10776  nvcc*)
10777    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10778  *)
10779    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10780  esac
10781
10782  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10783$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10784if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10785  $as_echo_n "(cached) " >&6
10786else
10787  lt_cv_prog_compiler_rtti_exceptions=no
10788   ac_outfile=conftest.$ac_objext
10789   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10790   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10791   # Insert the option either (1) after the last *FLAGS variable, or
10792   # (2) before a word containing "conftest.", or (3) at the end.
10793   # Note that $ac_compile itself does not contain backslashes and begins
10794   # with a dollar sign (not a hyphen), so the echo should work correctly.
10795   # The option is referenced via a variable to avoid confusing sed.
10796   lt_compile=`echo "$ac_compile" | $SED \
10797   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10798   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10799   -e 's:$: $lt_compiler_flag:'`
10800   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10801   (eval "$lt_compile" 2>conftest.err)
10802   ac_status=$?
10803   cat conftest.err >&5
10804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805   if (exit $ac_status) && test -s "$ac_outfile"; then
10806     # The compiler can only warn and ignore the option if not recognized
10807     # So say no if there are warnings other than the usual output.
10808     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10809     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10810     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10811       lt_cv_prog_compiler_rtti_exceptions=yes
10812     fi
10813   fi
10814   $RM conftest*
10815
10816fi
10817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10818$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10819
10820if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10821    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10822else
10823    :
10824fi
10825
10826fi
10827
10828
10829
10830
10831
10832
10833  lt_prog_compiler_wl=
10834lt_prog_compiler_pic=
10835lt_prog_compiler_static=
10836
10837
10838  if test yes = "$GCC"; then
10839    lt_prog_compiler_wl='-Wl,'
10840    lt_prog_compiler_static='-static'
10841
10842    case $host_os in
10843      aix*)
10844      # All AIX code is PIC.
10845      if test ia64 = "$host_cpu"; then
10846	# AIX 5 now supports IA64 processor
10847	lt_prog_compiler_static='-Bstatic'
10848      fi
10849      lt_prog_compiler_pic='-fPIC'
10850      ;;
10851
10852    amigaos*)
10853      case $host_cpu in
10854      powerpc)
10855            # see comment about AmigaOS4 .so support
10856            lt_prog_compiler_pic='-fPIC'
10857        ;;
10858      m68k)
10859            # FIXME: we need at least 68020 code to build shared libraries, but
10860            # adding the '-m68020' flag to GCC prevents building anything better,
10861            # like '-m68040'.
10862            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10863        ;;
10864      esac
10865      ;;
10866
10867    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10868      # PIC is the default for these OSes.
10869      ;;
10870
10871    mingw* | cygwin* | pw32* | os2* | cegcc*)
10872      # This hack is so that the source file can tell whether it is being
10873      # built for inclusion in a dll (and should export symbols for example).
10874      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10875      # (--disable-auto-import) libraries
10876      lt_prog_compiler_pic='-DDLL_EXPORT'
10877      case $host_os in
10878      os2*)
10879	lt_prog_compiler_static='$wl-static'
10880	;;
10881      esac
10882      ;;
10883
10884    darwin* | rhapsody*)
10885      # PIC is the default on this platform
10886      # Common symbols not allowed in MH_DYLIB files
10887      lt_prog_compiler_pic='-fno-common'
10888      ;;
10889
10890    haiku*)
10891      # PIC is the default for Haiku.
10892      # The "-static" flag exists, but is broken.
10893      lt_prog_compiler_static=
10894      ;;
10895
10896    hpux*)
10897      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10898      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10899      # sets the default TLS model and affects inlining.
10900      case $host_cpu in
10901      hppa*64*)
10902	# +Z the default
10903	;;
10904      *)
10905	lt_prog_compiler_pic='-fPIC'
10906	;;
10907      esac
10908      ;;
10909
10910    interix[3-9]*)
10911      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10912      # Instead, we relocate shared libraries at runtime.
10913      ;;
10914
10915    msdosdjgpp*)
10916      # Just because we use GCC doesn't mean we suddenly get shared libraries
10917      # on systems that don't support them.
10918      lt_prog_compiler_can_build_shared=no
10919      enable_shared=no
10920      ;;
10921
10922    *nto* | *qnx*)
10923      # QNX uses GNU C++, but need to define -shared option too, otherwise
10924      # it will coredump.
10925      lt_prog_compiler_pic='-fPIC -shared'
10926      ;;
10927
10928    sysv4*MP*)
10929      if test -d /usr/nec; then
10930	lt_prog_compiler_pic=-Kconform_pic
10931      fi
10932      ;;
10933
10934    *)
10935      lt_prog_compiler_pic='-fPIC'
10936      ;;
10937    esac
10938
10939    case $cc_basename in
10940    nvcc*) # Cuda Compiler Driver 2.2
10941      lt_prog_compiler_wl='-Xlinker '
10942      if test -n "$lt_prog_compiler_pic"; then
10943        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10944      fi
10945      ;;
10946    esac
10947  else
10948    # PORTME Check for flag to pass linker flags through the system compiler.
10949    case $host_os in
10950    aix*)
10951      lt_prog_compiler_wl='-Wl,'
10952      if test ia64 = "$host_cpu"; then
10953	# AIX 5 now supports IA64 processor
10954	lt_prog_compiler_static='-Bstatic'
10955      else
10956	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10957      fi
10958      ;;
10959
10960    darwin* | rhapsody*)
10961      # PIC is the default on this platform
10962      # Common symbols not allowed in MH_DYLIB files
10963      lt_prog_compiler_pic='-fno-common'
10964      case $cc_basename in
10965      nagfor*)
10966        # NAG Fortran compiler
10967        lt_prog_compiler_wl='-Wl,-Wl,,'
10968        lt_prog_compiler_pic='-PIC'
10969        lt_prog_compiler_static='-Bstatic'
10970        ;;
10971      esac
10972      ;;
10973
10974    mingw* | cygwin* | pw32* | os2* | cegcc*)
10975      # This hack is so that the source file can tell whether it is being
10976      # built for inclusion in a dll (and should export symbols for example).
10977      lt_prog_compiler_pic='-DDLL_EXPORT'
10978      case $host_os in
10979      os2*)
10980	lt_prog_compiler_static='$wl-static'
10981	;;
10982      esac
10983      ;;
10984
10985    hpux9* | hpux10* | hpux11*)
10986      lt_prog_compiler_wl='-Wl,'
10987      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10988      # not for PA HP-UX.
10989      case $host_cpu in
10990      hppa*64*|ia64*)
10991	# +Z the default
10992	;;
10993      *)
10994	lt_prog_compiler_pic='+Z'
10995	;;
10996      esac
10997      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10998      lt_prog_compiler_static='$wl-a ${wl}archive'
10999      ;;
11000
11001    irix5* | irix6* | nonstopux*)
11002      lt_prog_compiler_wl='-Wl,'
11003      # PIC (with -KPIC) is the default.
11004      lt_prog_compiler_static='-non_shared'
11005      ;;
11006
11007    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11008      case $cc_basename in
11009      # old Intel for x86_64, which still supported -KPIC.
11010      ecc*)
11011	lt_prog_compiler_wl='-Wl,'
11012	lt_prog_compiler_pic='-KPIC'
11013	lt_prog_compiler_static='-static'
11014        ;;
11015      # icc used to be incompatible with GCC.
11016      # ICC 10 doesn't accept -KPIC any more.
11017      icc* | ifort*)
11018	lt_prog_compiler_wl='-Wl,'
11019	lt_prog_compiler_pic='-fPIC'
11020	lt_prog_compiler_static='-static'
11021        ;;
11022      # Lahey Fortran 8.1.
11023      lf95*)
11024	lt_prog_compiler_wl='-Wl,'
11025	lt_prog_compiler_pic='--shared'
11026	lt_prog_compiler_static='--static'
11027	;;
11028      nagfor*)
11029	# NAG Fortran compiler
11030	lt_prog_compiler_wl='-Wl,-Wl,,'
11031	lt_prog_compiler_pic='-PIC'
11032	lt_prog_compiler_static='-Bstatic'
11033	;;
11034      tcc*)
11035	# Fabrice Bellard et al's Tiny C Compiler
11036	lt_prog_compiler_wl='-Wl,'
11037	lt_prog_compiler_pic='-fPIC'
11038	lt_prog_compiler_static='-static'
11039	;;
11040      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11041        # Portland Group compilers (*not* the Pentium gcc compiler,
11042	# which looks to be a dead project)
11043	lt_prog_compiler_wl='-Wl,'
11044	lt_prog_compiler_pic='-fpic'
11045	lt_prog_compiler_static='-Bstatic'
11046        ;;
11047      ccc*)
11048        lt_prog_compiler_wl='-Wl,'
11049        # All Alpha code is PIC.
11050        lt_prog_compiler_static='-non_shared'
11051        ;;
11052      xl* | bgxl* | bgf* | mpixl*)
11053	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11054	lt_prog_compiler_wl='-Wl,'
11055	lt_prog_compiler_pic='-qpic'
11056	lt_prog_compiler_static='-qstaticlink'
11057	;;
11058      *)
11059	case `$CC -V 2>&1 | sed 5q` in
11060	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11061	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
11062	  lt_prog_compiler_pic='-KPIC'
11063	  lt_prog_compiler_static='-Bstatic'
11064	  lt_prog_compiler_wl=''
11065	  ;;
11066	*Sun\ F* | *Sun*Fortran*)
11067	  lt_prog_compiler_pic='-KPIC'
11068	  lt_prog_compiler_static='-Bstatic'
11069	  lt_prog_compiler_wl='-Qoption ld '
11070	  ;;
11071	*Sun\ C*)
11072	  # Sun C 5.9
11073	  lt_prog_compiler_pic='-KPIC'
11074	  lt_prog_compiler_static='-Bstatic'
11075	  lt_prog_compiler_wl='-Wl,'
11076	  ;;
11077        *Intel*\ [CF]*Compiler*)
11078	  lt_prog_compiler_wl='-Wl,'
11079	  lt_prog_compiler_pic='-fPIC'
11080	  lt_prog_compiler_static='-static'
11081	  ;;
11082	*Portland\ Group*)
11083	  lt_prog_compiler_wl='-Wl,'
11084	  lt_prog_compiler_pic='-fpic'
11085	  lt_prog_compiler_static='-Bstatic'
11086	  ;;
11087	esac
11088	;;
11089      esac
11090      ;;
11091
11092    newsos6)
11093      lt_prog_compiler_pic='-KPIC'
11094      lt_prog_compiler_static='-Bstatic'
11095      ;;
11096
11097    *nto* | *qnx*)
11098      # QNX uses GNU C++, but need to define -shared option too, otherwise
11099      # it will coredump.
11100      lt_prog_compiler_pic='-fPIC -shared'
11101      ;;
11102
11103    osf3* | osf4* | osf5*)
11104      lt_prog_compiler_wl='-Wl,'
11105      # All OSF/1 code is PIC.
11106      lt_prog_compiler_static='-non_shared'
11107      ;;
11108
11109    rdos*)
11110      lt_prog_compiler_static='-non_shared'
11111      ;;
11112
11113    solaris*)
11114      lt_prog_compiler_pic='-KPIC'
11115      lt_prog_compiler_static='-Bstatic'
11116      case $cc_basename in
11117      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11118	lt_prog_compiler_wl='-Qoption ld ';;
11119      *)
11120	lt_prog_compiler_wl='-Wl,';;
11121      esac
11122      ;;
11123
11124    sunos4*)
11125      lt_prog_compiler_wl='-Qoption ld '
11126      lt_prog_compiler_pic='-PIC'
11127      lt_prog_compiler_static='-Bstatic'
11128      ;;
11129
11130    sysv4 | sysv4.2uw2* | sysv4.3*)
11131      lt_prog_compiler_wl='-Wl,'
11132      lt_prog_compiler_pic='-KPIC'
11133      lt_prog_compiler_static='-Bstatic'
11134      ;;
11135
11136    sysv4*MP*)
11137      if test -d /usr/nec; then
11138	lt_prog_compiler_pic='-Kconform_pic'
11139	lt_prog_compiler_static='-Bstatic'
11140      fi
11141      ;;
11142
11143    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11144      lt_prog_compiler_wl='-Wl,'
11145      lt_prog_compiler_pic='-KPIC'
11146      lt_prog_compiler_static='-Bstatic'
11147      ;;
11148
11149    unicos*)
11150      lt_prog_compiler_wl='-Wl,'
11151      lt_prog_compiler_can_build_shared=no
11152      ;;
11153
11154    uts4*)
11155      lt_prog_compiler_pic='-pic'
11156      lt_prog_compiler_static='-Bstatic'
11157      ;;
11158
11159    *)
11160      lt_prog_compiler_can_build_shared=no
11161      ;;
11162    esac
11163  fi
11164
11165case $host_os in
11166  # For platforms that do not support PIC, -DPIC is meaningless:
11167  *djgpp*)
11168    lt_prog_compiler_pic=
11169    ;;
11170  *)
11171    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11172    ;;
11173esac
11174
11175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11176$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11177if ${lt_cv_prog_compiler_pic+:} false; then :
11178  $as_echo_n "(cached) " >&6
11179else
11180  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11181fi
11182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11183$as_echo "$lt_cv_prog_compiler_pic" >&6; }
11184lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11185
11186#
11187# Check to make sure the PIC flag actually works.
11188#
11189if test -n "$lt_prog_compiler_pic"; then
11190  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11191$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11192if ${lt_cv_prog_compiler_pic_works+:} false; then :
11193  $as_echo_n "(cached) " >&6
11194else
11195  lt_cv_prog_compiler_pic_works=no
11196   ac_outfile=conftest.$ac_objext
11197   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11198   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
11199   # Insert the option either (1) after the last *FLAGS variable, or
11200   # (2) before a word containing "conftest.", or (3) at the end.
11201   # Note that $ac_compile itself does not contain backslashes and begins
11202   # with a dollar sign (not a hyphen), so the echo should work correctly.
11203   # The option is referenced via a variable to avoid confusing sed.
11204   lt_compile=`echo "$ac_compile" | $SED \
11205   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11206   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11207   -e 's:$: $lt_compiler_flag:'`
11208   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11209   (eval "$lt_compile" 2>conftest.err)
11210   ac_status=$?
11211   cat conftest.err >&5
11212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213   if (exit $ac_status) && test -s "$ac_outfile"; then
11214     # The compiler can only warn and ignore the option if not recognized
11215     # So say no if there are warnings other than the usual output.
11216     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11217     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11218     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11219       lt_cv_prog_compiler_pic_works=yes
11220     fi
11221   fi
11222   $RM conftest*
11223
11224fi
11225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11226$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11227
11228if test yes = "$lt_cv_prog_compiler_pic_works"; then
11229    case $lt_prog_compiler_pic in
11230     "" | " "*) ;;
11231     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11232     esac
11233else
11234    lt_prog_compiler_pic=
11235     lt_prog_compiler_can_build_shared=no
11236fi
11237
11238fi
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250#
11251# Check to make sure the static flag actually works.
11252#
11253wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11255$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11256if ${lt_cv_prog_compiler_static_works+:} false; then :
11257  $as_echo_n "(cached) " >&6
11258else
11259  lt_cv_prog_compiler_static_works=no
11260   save_LDFLAGS=$LDFLAGS
11261   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11262   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11263   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11264     # The linker can only warn and ignore the option if not recognized
11265     # So say no if there are warnings
11266     if test -s conftest.err; then
11267       # Append any errors to the config.log.
11268       cat conftest.err 1>&5
11269       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11270       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11271       if diff conftest.exp conftest.er2 >/dev/null; then
11272         lt_cv_prog_compiler_static_works=yes
11273       fi
11274     else
11275       lt_cv_prog_compiler_static_works=yes
11276     fi
11277   fi
11278   $RM -r conftest*
11279   LDFLAGS=$save_LDFLAGS
11280
11281fi
11282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11283$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11284
11285if test yes = "$lt_cv_prog_compiler_static_works"; then
11286    :
11287else
11288    lt_prog_compiler_static=
11289fi
11290
11291
11292
11293
11294
11295
11296
11297  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11298$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11299if ${lt_cv_prog_compiler_c_o+:} false; then :
11300  $as_echo_n "(cached) " >&6
11301else
11302  lt_cv_prog_compiler_c_o=no
11303   $RM -r conftest 2>/dev/null
11304   mkdir conftest
11305   cd conftest
11306   mkdir out
11307   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11308
11309   lt_compiler_flag="-o out/conftest2.$ac_objext"
11310   # Insert the option either (1) after the last *FLAGS variable, or
11311   # (2) before a word containing "conftest.", or (3) at the end.
11312   # Note that $ac_compile itself does not contain backslashes and begins
11313   # with a dollar sign (not a hyphen), so the echo should work correctly.
11314   lt_compile=`echo "$ac_compile" | $SED \
11315   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11316   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11317   -e 's:$: $lt_compiler_flag:'`
11318   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11319   (eval "$lt_compile" 2>out/conftest.err)
11320   ac_status=$?
11321   cat out/conftest.err >&5
11322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11324   then
11325     # The compiler can only warn and ignore the option if not recognized
11326     # So say no if there are warnings
11327     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11328     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11329     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11330       lt_cv_prog_compiler_c_o=yes
11331     fi
11332   fi
11333   chmod u+w . 2>&5
11334   $RM conftest*
11335   # SGI C++ compiler will create directory out/ii_files/ for
11336   # template instantiation
11337   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11338   $RM out/* && rmdir out
11339   cd ..
11340   $RM -r conftest
11341   $RM conftest*
11342
11343fi
11344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11345$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11346
11347
11348
11349
11350
11351
11352  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11353$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11354if ${lt_cv_prog_compiler_c_o+:} false; then :
11355  $as_echo_n "(cached) " >&6
11356else
11357  lt_cv_prog_compiler_c_o=no
11358   $RM -r conftest 2>/dev/null
11359   mkdir conftest
11360   cd conftest
11361   mkdir out
11362   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11363
11364   lt_compiler_flag="-o out/conftest2.$ac_objext"
11365   # Insert the option either (1) after the last *FLAGS variable, or
11366   # (2) before a word containing "conftest.", or (3) at the end.
11367   # Note that $ac_compile itself does not contain backslashes and begins
11368   # with a dollar sign (not a hyphen), so the echo should work correctly.
11369   lt_compile=`echo "$ac_compile" | $SED \
11370   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11371   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11372   -e 's:$: $lt_compiler_flag:'`
11373   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11374   (eval "$lt_compile" 2>out/conftest.err)
11375   ac_status=$?
11376   cat out/conftest.err >&5
11377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11379   then
11380     # The compiler can only warn and ignore the option if not recognized
11381     # So say no if there are warnings
11382     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11383     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11384     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11385       lt_cv_prog_compiler_c_o=yes
11386     fi
11387   fi
11388   chmod u+w . 2>&5
11389   $RM conftest*
11390   # SGI C++ compiler will create directory out/ii_files/ for
11391   # template instantiation
11392   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11393   $RM out/* && rmdir out
11394   cd ..
11395   $RM -r conftest
11396   $RM conftest*
11397
11398fi
11399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11400$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11401
11402
11403
11404
11405hard_links=nottested
11406if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11407  # do not overwrite the value of need_locks provided by the user
11408  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11409$as_echo_n "checking if we can lock with hard links... " >&6; }
11410  hard_links=yes
11411  $RM conftest*
11412  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11413  touch conftest.a
11414  ln conftest.a conftest.b 2>&5 || hard_links=no
11415  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11417$as_echo "$hard_links" >&6; }
11418  if test no = "$hard_links"; then
11419    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11420$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11421    need_locks=warn
11422  fi
11423else
11424  need_locks=no
11425fi
11426
11427
11428
11429
11430
11431
11432  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11433$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11434
11435  runpath_var=
11436  allow_undefined_flag=
11437  always_export_symbols=no
11438  archive_cmds=
11439  archive_expsym_cmds=
11440  compiler_needs_object=no
11441  enable_shared_with_static_runtimes=no
11442  export_dynamic_flag_spec=
11443  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11444  hardcode_automatic=no
11445  hardcode_direct=no
11446  hardcode_direct_absolute=no
11447  hardcode_libdir_flag_spec=
11448  hardcode_libdir_separator=
11449  hardcode_minus_L=no
11450  hardcode_shlibpath_var=unsupported
11451  inherit_rpath=no
11452  link_all_deplibs=unknown
11453  module_cmds=
11454  module_expsym_cmds=
11455  old_archive_from_new_cmds=
11456  old_archive_from_expsyms_cmds=
11457  thread_safe_flag_spec=
11458  whole_archive_flag_spec=
11459  # include_expsyms should be a list of space-separated symbols to be *always*
11460  # included in the symbol list
11461  include_expsyms=
11462  # exclude_expsyms can be an extended regexp of symbols to exclude
11463  # it will be wrapped by ' (' and ')$', so one must not match beginning or
11464  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11465  # as well as any symbol that contains 'd'.
11466  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11467  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11468  # platforms (ab)use it in PIC code, but their linkers get confused if
11469  # the symbol is explicitly referenced.  Since portable code cannot
11470  # rely on this symbol name, it's probably fine to never include it in
11471  # preloaded symbol tables.
11472  # Exclude shared library initialization/finalization symbols.
11473  extract_expsyms_cmds=
11474
11475  case $host_os in
11476  cygwin* | mingw* | pw32* | cegcc*)
11477    # FIXME: the MSVC++ port hasn't been tested in a loooong time
11478    # When not using gcc, we currently assume that we are using
11479    # Microsoft Visual C++.
11480    if test yes != "$GCC"; then
11481      with_gnu_ld=no
11482    fi
11483    ;;
11484  interix*)
11485    # we just hope/assume this is gcc and not c89 (= MSVC++)
11486    with_gnu_ld=yes
11487    ;;
11488  openbsd* | bitrig*)
11489    with_gnu_ld=no
11490    ;;
11491  esac
11492
11493  ld_shlibs=yes
11494
11495  # On some targets, GNU ld is compatible enough with the native linker
11496  # that we're better off using the native interface for both.
11497  lt_use_gnu_ld_interface=no
11498  if test yes = "$with_gnu_ld"; then
11499    case $host_os in
11500      aix*)
11501	# The AIX port of GNU ld has always aspired to compatibility
11502	# with the native linker.  However, as the warning in the GNU ld
11503	# block says, versions before 2.19.5* couldn't really create working
11504	# shared libraries, regardless of the interface used.
11505	case `$LD -v 2>&1` in
11506	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11507	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11508	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11509	  *)
11510	    lt_use_gnu_ld_interface=yes
11511	    ;;
11512	esac
11513	;;
11514      *)
11515	lt_use_gnu_ld_interface=yes
11516	;;
11517    esac
11518  fi
11519
11520  if test yes = "$lt_use_gnu_ld_interface"; then
11521    # If archive_cmds runs LD, not CC, wlarc should be empty
11522    wlarc='$wl'
11523
11524    # Set some defaults for GNU ld with shared library support. These
11525    # are reset later if shared libraries are not supported. Putting them
11526    # here allows them to be overridden if necessary.
11527    runpath_var=LD_RUN_PATH
11528    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11529    export_dynamic_flag_spec='$wl--export-dynamic'
11530    # ancient GNU ld didn't support --whole-archive et. al.
11531    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11532      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11533    else
11534      whole_archive_flag_spec=
11535    fi
11536    supports_anon_versioning=no
11537    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11538      *GNU\ gold*) supports_anon_versioning=yes ;;
11539      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11540      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11541      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11542      *\ 2.11.*) ;; # other 2.11 versions
11543      *) supports_anon_versioning=yes ;;
11544    esac
11545
11546    # See if GNU ld supports shared libraries.
11547    case $host_os in
11548    aix[3-9]*)
11549      # On AIX/PPC, the GNU linker is very broken
11550      if test ia64 != "$host_cpu"; then
11551	ld_shlibs=no
11552	cat <<_LT_EOF 1>&2
11553
11554*** Warning: the GNU linker, at least up to release 2.19, is reported
11555*** to be unable to reliably create shared libraries on AIX.
11556*** Therefore, libtool is disabling shared libraries support.  If you
11557*** really care for shared libraries, you may want to install binutils
11558*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11559*** You will then need to restart the configuration process.
11560
11561_LT_EOF
11562      fi
11563      ;;
11564
11565    amigaos*)
11566      case $host_cpu in
11567      powerpc)
11568            # see comment about AmigaOS4 .so support
11569            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11570            archive_expsym_cmds=''
11571        ;;
11572      m68k)
11573            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)'
11574            hardcode_libdir_flag_spec='-L$libdir'
11575            hardcode_minus_L=yes
11576        ;;
11577      esac
11578      ;;
11579
11580    beos*)
11581      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11582	allow_undefined_flag=unsupported
11583	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11584	# support --undefined.  This deserves some investigation.  FIXME
11585	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11586      else
11587	ld_shlibs=no
11588      fi
11589      ;;
11590
11591    cygwin* | mingw* | pw32* | cegcc*)
11592      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11593      # as there is no search path for DLLs.
11594      hardcode_libdir_flag_spec='-L$libdir'
11595      export_dynamic_flag_spec='$wl--export-all-symbols'
11596      allow_undefined_flag=unsupported
11597      always_export_symbols=no
11598      enable_shared_with_static_runtimes=yes
11599      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'
11600      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11601
11602      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11603        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11604	# If the export-symbols file already is a .def file, use it as
11605	# is; otherwise, prepend EXPORTS...
11606	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11607          cp $export_symbols $output_objdir/$soname.def;
11608        else
11609          echo EXPORTS > $output_objdir/$soname.def;
11610          cat $export_symbols >> $output_objdir/$soname.def;
11611        fi~
11612        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11613      else
11614	ld_shlibs=no
11615      fi
11616      ;;
11617
11618    haiku*)
11619      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11620      link_all_deplibs=yes
11621      ;;
11622
11623    os2*)
11624      hardcode_libdir_flag_spec='-L$libdir'
11625      hardcode_minus_L=yes
11626      allow_undefined_flag=unsupported
11627      shrext_cmds=.dll
11628      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11629	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11630	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11631	$ECHO EXPORTS >> $output_objdir/$libname.def~
11632	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11633	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11634	emximp -o $lib $output_objdir/$libname.def'
11635      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11636	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11637	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11638	$ECHO EXPORTS >> $output_objdir/$libname.def~
11639	prefix_cmds="$SED"~
11640	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11641	  prefix_cmds="$prefix_cmds -e 1d";
11642	fi~
11643	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11644	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11645	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11646	emximp -o $lib $output_objdir/$libname.def'
11647      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11648      enable_shared_with_static_runtimes=yes
11649      ;;
11650
11651    interix[3-9]*)
11652      hardcode_direct=no
11653      hardcode_shlibpath_var=no
11654      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11655      export_dynamic_flag_spec='$wl-E'
11656      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11657      # Instead, shared libraries are loaded at an image base (0x10000000 by
11658      # default) and relocated if they conflict, which is a slow very memory
11659      # consuming and fragmenting process.  To avoid this, we pick a random,
11660      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11661      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11662      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11663      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'
11664      ;;
11665
11666    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11667      tmp_diet=no
11668      if test linux-dietlibc = "$host_os"; then
11669	case $cc_basename in
11670	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11671	esac
11672      fi
11673      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11674	 && test no = "$tmp_diet"
11675      then
11676	tmp_addflag=' $pic_flag'
11677	tmp_sharedflag='-shared'
11678	case $cc_basename,$host_cpu in
11679        pgcc*)				# Portland Group C compiler
11680	  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'
11681	  tmp_addflag=' $pic_flag'
11682	  ;;
11683	pgf77* | pgf90* | pgf95* | pgfortran*)
11684					# Portland Group f77 and f90 compilers
11685	  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'
11686	  tmp_addflag=' $pic_flag -Mnomain' ;;
11687	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11688	  tmp_addflag=' -i_dynamic' ;;
11689	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11690	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11691	ifc* | ifort*)			# Intel Fortran compiler
11692	  tmp_addflag=' -nofor_main' ;;
11693	lf95*)				# Lahey Fortran 8.1
11694	  whole_archive_flag_spec=
11695	  tmp_sharedflag='--shared' ;;
11696        nagfor*)                        # NAGFOR 5.3
11697          tmp_sharedflag='-Wl,-shared' ;;
11698	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11699	  tmp_sharedflag='-qmkshrobj'
11700	  tmp_addflag= ;;
11701	nvcc*)	# Cuda Compiler Driver 2.2
11702	  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'
11703	  compiler_needs_object=yes
11704	  ;;
11705	esac
11706	case `$CC -V 2>&1 | sed 5q` in
11707	*Sun\ C*)			# Sun C 5.9
11708	  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'
11709	  compiler_needs_object=yes
11710	  tmp_sharedflag='-G' ;;
11711	*Sun\ F*)			# Sun Fortran 8.3
11712	  tmp_sharedflag='-G' ;;
11713	esac
11714	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11715
11716        if test yes = "$supports_anon_versioning"; then
11717          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11718            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11719            echo "local: *; };" >> $output_objdir/$libname.ver~
11720            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11721        fi
11722
11723	case $cc_basename in
11724	tcc*)
11725	  export_dynamic_flag_spec='-rdynamic'
11726	  ;;
11727	xlf* | bgf* | bgxlf* | mpixlf*)
11728	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11729	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11730	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11731	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11732	  if test yes = "$supports_anon_versioning"; then
11733	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11734              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11735              echo "local: *; };" >> $output_objdir/$libname.ver~
11736              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11737	  fi
11738	  ;;
11739	esac
11740      else
11741        ld_shlibs=no
11742      fi
11743      ;;
11744
11745    netbsd*)
11746      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11747	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11748	wlarc=
11749      else
11750	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11751	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11752      fi
11753      ;;
11754
11755    solaris*)
11756      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11757	ld_shlibs=no
11758	cat <<_LT_EOF 1>&2
11759
11760*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11761*** create shared libraries on Solaris systems.  Therefore, libtool
11762*** is disabling shared libraries support.  We urge you to upgrade GNU
11763*** binutils to release 2.9.1 or newer.  Another option is to modify
11764*** your PATH or compiler configuration so that the native linker is
11765*** used, and then restart.
11766
11767_LT_EOF
11768      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11769	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11770	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11771      else
11772	ld_shlibs=no
11773      fi
11774      ;;
11775
11776    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11777      case `$LD -v 2>&1` in
11778        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11779	ld_shlibs=no
11780	cat <<_LT_EOF 1>&2
11781
11782*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11783*** reliably create shared libraries on SCO systems.  Therefore, libtool
11784*** is disabling shared libraries support.  We urge you to upgrade GNU
11785*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11786*** your PATH or compiler configuration so that the native linker is
11787*** used, and then restart.
11788
11789_LT_EOF
11790	;;
11791	*)
11792	  # For security reasons, it is highly recommended that you always
11793	  # use absolute paths for naming shared libraries, and exclude the
11794	  # DT_RUNPATH tag from executables and libraries.  But doing so
11795	  # requires that you compile everything twice, which is a pain.
11796	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11797	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11798	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11799	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11800	  else
11801	    ld_shlibs=no
11802	  fi
11803	;;
11804      esac
11805      ;;
11806
11807    sunos4*)
11808      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11809      wlarc=
11810      hardcode_direct=yes
11811      hardcode_shlibpath_var=no
11812      ;;
11813
11814    *)
11815      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11816	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11817	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11818      else
11819	ld_shlibs=no
11820      fi
11821      ;;
11822    esac
11823
11824    if test no = "$ld_shlibs"; then
11825      runpath_var=
11826      hardcode_libdir_flag_spec=
11827      export_dynamic_flag_spec=
11828      whole_archive_flag_spec=
11829    fi
11830  else
11831    # PORTME fill in a description of your system's linker (not GNU ld)
11832    case $host_os in
11833    aix3*)
11834      allow_undefined_flag=unsupported
11835      always_export_symbols=yes
11836      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'
11837      # Note: this linker hardcodes the directories in LIBPATH if there
11838      # are no directories specified by -L.
11839      hardcode_minus_L=yes
11840      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11841	# Neither direct hardcoding nor static linking is supported with a
11842	# broken collect2.
11843	hardcode_direct=unsupported
11844      fi
11845      ;;
11846
11847    aix[4-9]*)
11848      if test ia64 = "$host_cpu"; then
11849	# On IA64, the linker does run time linking by default, so we don't
11850	# have to do anything special.
11851	aix_use_runtimelinking=no
11852	exp_sym_flag='-Bexport'
11853	no_entry_flag=
11854      else
11855	# If we're using GNU nm, then we don't want the "-C" option.
11856	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
11857	# Without the "-l" option, or with the "-B" option, AIX nm treats
11858	# weak defined symbols like other global defined symbols, whereas
11859	# GNU nm marks them as "W".
11860	# While the 'weak' keyword is ignored in the Export File, we need
11861	# it in the Import File for the 'aix-soname' feature, so we have
11862	# to replace the "-B" option with "-P" for AIX nm.
11863	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11864	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11865	else
11866	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11867	fi
11868	aix_use_runtimelinking=no
11869
11870	# Test if we are trying to use run time linking or normal
11871	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11872	# have runtime linking enabled, and use it for executables.
11873	# For shared libraries, we enable/disable runtime linking
11874	# depending on the kind of the shared library created -
11875	# when "with_aix_soname,aix_use_runtimelinking" is:
11876	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
11877	# "aix,yes"  lib.so          shared, rtl:yes, for executables
11878	#            lib.a           static archive
11879	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
11880	#            lib.a(lib.so.V) shared, rtl:no,  for executables
11881	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11882	#            lib.a(lib.so.V) shared, rtl:no
11883	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
11884	#            lib.a           static archive
11885	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11886	  for ld_flag in $LDFLAGS; do
11887	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11888	    aix_use_runtimelinking=yes
11889	    break
11890	  fi
11891	  done
11892	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11893	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
11894	    # so we don't have lib.a shared libs to link our executables.
11895	    # We have to force runtime linking in this case.
11896	    aix_use_runtimelinking=yes
11897	    LDFLAGS="$LDFLAGS -Wl,-brtl"
11898	  fi
11899	  ;;
11900	esac
11901
11902	exp_sym_flag='-bexport'
11903	no_entry_flag='-bnoentry'
11904      fi
11905
11906      # When large executables or shared objects are built, AIX ld can
11907      # have problems creating the table of contents.  If linking a library
11908      # or program results in "error TOC overflow" add -mminimal-toc to
11909      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11910      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11911
11912      archive_cmds=''
11913      hardcode_direct=yes
11914      hardcode_direct_absolute=yes
11915      hardcode_libdir_separator=':'
11916      link_all_deplibs=yes
11917      file_list_spec='$wl-f,'
11918      case $with_aix_soname,$aix_use_runtimelinking in
11919      aix,*) ;; # traditional, no import file
11920      svr4,* | *,yes) # use import file
11921	# The Import File defines what to hardcode.
11922	hardcode_direct=no
11923	hardcode_direct_absolute=no
11924	;;
11925      esac
11926
11927      if test yes = "$GCC"; then
11928	case $host_os in aix4.[012]|aix4.[012].*)
11929	# We only want to do this on AIX 4.2 and lower, the check
11930	# below for broken collect2 doesn't work under 4.3+
11931	  collect2name=`$CC -print-prog-name=collect2`
11932	  if test -f "$collect2name" &&
11933	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11934	  then
11935	  # We have reworked collect2
11936	  :
11937	  else
11938	  # We have old collect2
11939	  hardcode_direct=unsupported
11940	  # It fails to find uninstalled libraries when the uninstalled
11941	  # path is not listed in the libpath.  Setting hardcode_minus_L
11942	  # to unsupported forces relinking
11943	  hardcode_minus_L=yes
11944	  hardcode_libdir_flag_spec='-L$libdir'
11945	  hardcode_libdir_separator=
11946	  fi
11947	  ;;
11948	esac
11949	shared_flag='-shared'
11950	if test yes = "$aix_use_runtimelinking"; then
11951	  shared_flag="$shared_flag "'$wl-G'
11952	fi
11953	# Need to ensure runtime linking is disabled for the traditional
11954	# shared library, or the linker may eventually find shared libraries
11955	# /with/ Import File - we do not want to mix them.
11956	shared_flag_aix='-shared'
11957	shared_flag_svr4='-shared $wl-G'
11958      else
11959	# not using gcc
11960	if test ia64 = "$host_cpu"; then
11961	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11962	# chokes on -Wl,-G. The following line is correct:
11963	  shared_flag='-G'
11964	else
11965	  if test yes = "$aix_use_runtimelinking"; then
11966	    shared_flag='$wl-G'
11967	  else
11968	    shared_flag='$wl-bM:SRE'
11969	  fi
11970	  shared_flag_aix='$wl-bM:SRE'
11971	  shared_flag_svr4='$wl-G'
11972	fi
11973      fi
11974
11975      export_dynamic_flag_spec='$wl-bexpall'
11976      # It seems that -bexpall does not export symbols beginning with
11977      # underscore (_), so it is better to generate a list of symbols to export.
11978      always_export_symbols=yes
11979      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11980	# Warning - without using the other runtime loading flags (-brtl),
11981	# -berok will link without error, but may produce a broken library.
11982	allow_undefined_flag='-berok'
11983        # Determine the default libpath from the value encoded in an
11984        # empty executable.
11985        if test set = "${lt_cv_aix_libpath+set}"; then
11986  aix_libpath=$lt_cv_aix_libpath
11987else
11988  if ${lt_cv_aix_libpath_+:} false; then :
11989  $as_echo_n "(cached) " >&6
11990else
11991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11992/* end confdefs.h.  */
11993
11994int
11995main ()
11996{
11997
11998  ;
11999  return 0;
12000}
12001_ACEOF
12002if ac_fn_c_try_link "$LINENO"; then :
12003
12004  lt_aix_libpath_sed='
12005      /Import File Strings/,/^$/ {
12006	  /^0/ {
12007	      s/^0  *\([^ ]*\) *$/\1/
12008	      p
12009	  }
12010      }'
12011  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12012  # Check for a 64-bit object if we didn't find anything.
12013  if test -z "$lt_cv_aix_libpath_"; then
12014    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12015  fi
12016fi
12017rm -f core conftest.err conftest.$ac_objext \
12018    conftest$ac_exeext conftest.$ac_ext
12019  if test -z "$lt_cv_aix_libpath_"; then
12020    lt_cv_aix_libpath_=/usr/lib:/lib
12021  fi
12022
12023fi
12024
12025  aix_libpath=$lt_cv_aix_libpath_
12026fi
12027
12028        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12029        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
12030      else
12031	if test ia64 = "$host_cpu"; then
12032	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12033	  allow_undefined_flag="-z nodefs"
12034	  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"
12035	else
12036	 # Determine the default libpath from the value encoded in an
12037	 # empty executable.
12038	 if test set = "${lt_cv_aix_libpath+set}"; then
12039  aix_libpath=$lt_cv_aix_libpath
12040else
12041  if ${lt_cv_aix_libpath_+:} false; then :
12042  $as_echo_n "(cached) " >&6
12043else
12044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12045/* end confdefs.h.  */
12046
12047int
12048main ()
12049{
12050
12051  ;
12052  return 0;
12053}
12054_ACEOF
12055if ac_fn_c_try_link "$LINENO"; then :
12056
12057  lt_aix_libpath_sed='
12058      /Import File Strings/,/^$/ {
12059	  /^0/ {
12060	      s/^0  *\([^ ]*\) *$/\1/
12061	      p
12062	  }
12063      }'
12064  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12065  # Check for a 64-bit object if we didn't find anything.
12066  if test -z "$lt_cv_aix_libpath_"; then
12067    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12068  fi
12069fi
12070rm -f core conftest.err conftest.$ac_objext \
12071    conftest$ac_exeext conftest.$ac_ext
12072  if test -z "$lt_cv_aix_libpath_"; then
12073    lt_cv_aix_libpath_=/usr/lib:/lib
12074  fi
12075
12076fi
12077
12078  aix_libpath=$lt_cv_aix_libpath_
12079fi
12080
12081	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12082	  # Warning - without using the other run time loading flags,
12083	  # -berok will link without error, but may produce a broken library.
12084	  no_undefined_flag=' $wl-bernotok'
12085	  allow_undefined_flag=' $wl-berok'
12086	  if test yes = "$with_gnu_ld"; then
12087	    # We only use this code for GNU lds that support --whole-archive.
12088	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12089	  else
12090	    # Exported symbols can be pulled into shared objects from archives
12091	    whole_archive_flag_spec='$convenience'
12092	  fi
12093	  archive_cmds_need_lc=yes
12094	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12095	  # -brtl affects multiple linker settings, -berok does not and is overridden later
12096	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12097	  if test svr4 != "$with_aix_soname"; then
12098	    # This is similar to how AIX traditionally builds its shared libraries.
12099	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12100	  fi
12101	  if test aix != "$with_aix_soname"; then
12102	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12103	  else
12104	    # used by -dlpreopen to get the symbols
12105	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
12106	  fi
12107	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12108	fi
12109      fi
12110      ;;
12111
12112    amigaos*)
12113      case $host_cpu in
12114      powerpc)
12115            # see comment about AmigaOS4 .so support
12116            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12117            archive_expsym_cmds=''
12118        ;;
12119      m68k)
12120            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)'
12121            hardcode_libdir_flag_spec='-L$libdir'
12122            hardcode_minus_L=yes
12123        ;;
12124      esac
12125      ;;
12126
12127    bsdi[45]*)
12128      export_dynamic_flag_spec=-rdynamic
12129      ;;
12130
12131    cygwin* | mingw* | pw32* | cegcc*)
12132      # When not using gcc, we currently assume that we are using
12133      # Microsoft Visual C++.
12134      # hardcode_libdir_flag_spec is actually meaningless, as there is
12135      # no search path for DLLs.
12136      case $cc_basename in
12137      cl*)
12138	# Native MSVC
12139	hardcode_libdir_flag_spec=' '
12140	allow_undefined_flag=unsupported
12141	always_export_symbols=yes
12142	file_list_spec='@'
12143	# Tell ltmain to make .lib files, not .a files.
12144	libext=lib
12145	# Tell ltmain to make .dll files, not .so files.
12146	shrext_cmds=.dll
12147	# FIXME: Setting linknames here is a bad hack.
12148	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12149	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12150            cp "$export_symbols" "$output_objdir/$soname.def";
12151            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12152          else
12153            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12154          fi~
12155          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12156          linknames='
12157	# The linker will not automatically build a static lib if we build a DLL.
12158	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12159	enable_shared_with_static_runtimes=yes
12160	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12161	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12162	# Don't use ranlib
12163	old_postinstall_cmds='chmod 644 $oldlib'
12164	postlink_cmds='lt_outputfile="@OUTPUT@"~
12165          lt_tool_outputfile="@TOOL_OUTPUT@"~
12166          case $lt_outputfile in
12167            *.exe|*.EXE) ;;
12168            *)
12169              lt_outputfile=$lt_outputfile.exe
12170              lt_tool_outputfile=$lt_tool_outputfile.exe
12171              ;;
12172          esac~
12173          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12174            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12175            $RM "$lt_outputfile.manifest";
12176          fi'
12177	;;
12178      *)
12179	# Assume MSVC wrapper
12180	hardcode_libdir_flag_spec=' '
12181	allow_undefined_flag=unsupported
12182	# Tell ltmain to make .lib files, not .a files.
12183	libext=lib
12184	# Tell ltmain to make .dll files, not .so files.
12185	shrext_cmds=.dll
12186	# FIXME: Setting linknames here is a bad hack.
12187	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12188	# The linker will automatically build a .lib file if we build a DLL.
12189	old_archive_from_new_cmds='true'
12190	# FIXME: Should let the user specify the lib program.
12191	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12192	enable_shared_with_static_runtimes=yes
12193	;;
12194      esac
12195      ;;
12196
12197    darwin* | rhapsody*)
12198
12199
12200  archive_cmds_need_lc=no
12201  hardcode_direct=no
12202  hardcode_automatic=yes
12203  hardcode_shlibpath_var=unsupported
12204  if test yes = "$lt_cv_ld_force_load"; then
12205    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\"`'
12206
12207  else
12208    whole_archive_flag_spec=''
12209  fi
12210  link_all_deplibs=yes
12211  allow_undefined_flag=$_lt_dar_allow_undefined
12212  case $cc_basename in
12213     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12214     *) _lt_dar_can_shared=$GCC ;;
12215  esac
12216  if test yes = "$_lt_dar_can_shared"; then
12217    output_verbose_link_cmd=func_echo_all
12218    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12219    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12220    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"
12221    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"
12222
12223  else
12224  ld_shlibs=no
12225  fi
12226
12227      ;;
12228
12229    dgux*)
12230      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12231      hardcode_libdir_flag_spec='-L$libdir'
12232      hardcode_shlibpath_var=no
12233      ;;
12234
12235    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12236    # support.  Future versions do this automatically, but an explicit c++rt0.o
12237    # does not break anything, and helps significantly (at the cost of a little
12238    # extra space).
12239    freebsd2.2*)
12240      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12241      hardcode_libdir_flag_spec='-R$libdir'
12242      hardcode_direct=yes
12243      hardcode_shlibpath_var=no
12244      ;;
12245
12246    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12247    freebsd2.*)
12248      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12249      hardcode_direct=yes
12250      hardcode_minus_L=yes
12251      hardcode_shlibpath_var=no
12252      ;;
12253
12254    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12255    freebsd* | dragonfly*)
12256      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12257      hardcode_libdir_flag_spec='-R$libdir'
12258      hardcode_direct=yes
12259      hardcode_shlibpath_var=no
12260      ;;
12261
12262    hpux9*)
12263      if test yes = "$GCC"; then
12264	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12265      else
12266	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12267      fi
12268      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12269      hardcode_libdir_separator=:
12270      hardcode_direct=yes
12271
12272      # hardcode_minus_L: Not really in the search PATH,
12273      # but as the default location of the library.
12274      hardcode_minus_L=yes
12275      export_dynamic_flag_spec='$wl-E'
12276      ;;
12277
12278    hpux10*)
12279      if test yes,no = "$GCC,$with_gnu_ld"; then
12280	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12281      else
12282	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12283      fi
12284      if test no = "$with_gnu_ld"; then
12285	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12286	hardcode_libdir_separator=:
12287	hardcode_direct=yes
12288	hardcode_direct_absolute=yes
12289	export_dynamic_flag_spec='$wl-E'
12290	# hardcode_minus_L: Not really in the search PATH,
12291	# but as the default location of the library.
12292	hardcode_minus_L=yes
12293      fi
12294      ;;
12295
12296    hpux11*)
12297      if test yes,no = "$GCC,$with_gnu_ld"; then
12298	case $host_cpu in
12299	hppa*64*)
12300	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12301	  ;;
12302	ia64*)
12303	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12304	  ;;
12305	*)
12306	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12307	  ;;
12308	esac
12309      else
12310	case $host_cpu in
12311	hppa*64*)
12312	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12313	  ;;
12314	ia64*)
12315	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12316	  ;;
12317	*)
12318
12319	  # Older versions of the 11.00 compiler do not understand -b yet
12320	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12321	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12322$as_echo_n "checking if $CC understands -b... " >&6; }
12323if ${lt_cv_prog_compiler__b+:} false; then :
12324  $as_echo_n "(cached) " >&6
12325else
12326  lt_cv_prog_compiler__b=no
12327   save_LDFLAGS=$LDFLAGS
12328   LDFLAGS="$LDFLAGS -b"
12329   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12330   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12331     # The linker can only warn and ignore the option if not recognized
12332     # So say no if there are warnings
12333     if test -s conftest.err; then
12334       # Append any errors to the config.log.
12335       cat conftest.err 1>&5
12336       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12337       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12338       if diff conftest.exp conftest.er2 >/dev/null; then
12339         lt_cv_prog_compiler__b=yes
12340       fi
12341     else
12342       lt_cv_prog_compiler__b=yes
12343     fi
12344   fi
12345   $RM -r conftest*
12346   LDFLAGS=$save_LDFLAGS
12347
12348fi
12349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12350$as_echo "$lt_cv_prog_compiler__b" >&6; }
12351
12352if test yes = "$lt_cv_prog_compiler__b"; then
12353    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12354else
12355    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12356fi
12357
12358	  ;;
12359	esac
12360      fi
12361      if test no = "$with_gnu_ld"; then
12362	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12363	hardcode_libdir_separator=:
12364
12365	case $host_cpu in
12366	hppa*64*|ia64*)
12367	  hardcode_direct=no
12368	  hardcode_shlibpath_var=no
12369	  ;;
12370	*)
12371	  hardcode_direct=yes
12372	  hardcode_direct_absolute=yes
12373	  export_dynamic_flag_spec='$wl-E'
12374
12375	  # hardcode_minus_L: Not really in the search PATH,
12376	  # but as the default location of the library.
12377	  hardcode_minus_L=yes
12378	  ;;
12379	esac
12380      fi
12381      ;;
12382
12383    irix5* | irix6* | nonstopux*)
12384      if test yes = "$GCC"; then
12385	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'
12386	# Try to use the -exported_symbol ld option, if it does not
12387	# work, assume that -exports_file does not work either and
12388	# implicitly export all symbols.
12389	# This should be the same for all languages, so no per-tag cache variable.
12390	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12391$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12392if ${lt_cv_irix_exported_symbol+:} false; then :
12393  $as_echo_n "(cached) " >&6
12394else
12395  save_LDFLAGS=$LDFLAGS
12396	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12397	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12398/* end confdefs.h.  */
12399int foo (void) { return 0; }
12400_ACEOF
12401if ac_fn_c_try_link "$LINENO"; then :
12402  lt_cv_irix_exported_symbol=yes
12403else
12404  lt_cv_irix_exported_symbol=no
12405fi
12406rm -f core conftest.err conftest.$ac_objext \
12407    conftest$ac_exeext conftest.$ac_ext
12408           LDFLAGS=$save_LDFLAGS
12409fi
12410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12411$as_echo "$lt_cv_irix_exported_symbol" >&6; }
12412	if test yes = "$lt_cv_irix_exported_symbol"; then
12413          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'
12414	fi
12415      else
12416	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'
12417	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'
12418      fi
12419      archive_cmds_need_lc='no'
12420      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12421      hardcode_libdir_separator=:
12422      inherit_rpath=yes
12423      link_all_deplibs=yes
12424      ;;
12425
12426    linux*)
12427      case $cc_basename in
12428      tcc*)
12429	# Fabrice Bellard et al's Tiny C Compiler
12430	ld_shlibs=yes
12431	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12432	;;
12433      esac
12434      ;;
12435
12436    netbsd*)
12437      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12438	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12439      else
12440	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12441      fi
12442      hardcode_libdir_flag_spec='-R$libdir'
12443      hardcode_direct=yes
12444      hardcode_shlibpath_var=no
12445      ;;
12446
12447    newsos6)
12448      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12449      hardcode_direct=yes
12450      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12451      hardcode_libdir_separator=:
12452      hardcode_shlibpath_var=no
12453      ;;
12454
12455    *nto* | *qnx*)
12456      ;;
12457
12458    openbsd* | bitrig*)
12459      if test -f /usr/libexec/ld.so; then
12460	hardcode_direct=yes
12461	hardcode_shlibpath_var=no
12462	hardcode_direct_absolute=yes
12463	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12464	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12465	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12466	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12467	  export_dynamic_flag_spec='$wl-E'
12468	else
12469	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12470	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12471	fi
12472      else
12473	ld_shlibs=no
12474      fi
12475      ;;
12476
12477    os2*)
12478      hardcode_libdir_flag_spec='-L$libdir'
12479      hardcode_minus_L=yes
12480      allow_undefined_flag=unsupported
12481      shrext_cmds=.dll
12482      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12483	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12484	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12485	$ECHO EXPORTS >> $output_objdir/$libname.def~
12486	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12487	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12488	emximp -o $lib $output_objdir/$libname.def'
12489      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12490	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12491	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12492	$ECHO EXPORTS >> $output_objdir/$libname.def~
12493	prefix_cmds="$SED"~
12494	if test EXPORTS = "`$SED 1q $export_symbols`"; then
12495	  prefix_cmds="$prefix_cmds -e 1d";
12496	fi~
12497	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12498	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12499	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12500	emximp -o $lib $output_objdir/$libname.def'
12501      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12502      enable_shared_with_static_runtimes=yes
12503      ;;
12504
12505    osf3*)
12506      if test yes = "$GCC"; then
12507	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12508	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'
12509      else
12510	allow_undefined_flag=' -expect_unresolved \*'
12511	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'
12512      fi
12513      archive_cmds_need_lc='no'
12514      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12515      hardcode_libdir_separator=:
12516      ;;
12517
12518    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12519      if test yes = "$GCC"; then
12520	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12521	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'
12522	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12523      else
12524	allow_undefined_flag=' -expect_unresolved \*'
12525	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'
12526	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~
12527          $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'
12528
12529	# Both c and cxx compiler support -rpath directly
12530	hardcode_libdir_flag_spec='-rpath $libdir'
12531      fi
12532      archive_cmds_need_lc='no'
12533      hardcode_libdir_separator=:
12534      ;;
12535
12536    solaris*)
12537      no_undefined_flag=' -z defs'
12538      if test yes = "$GCC"; then
12539	wlarc='$wl'
12540	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12541	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12542          $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'
12543      else
12544	case `$CC -V 2>&1` in
12545	*"Compilers 5.0"*)
12546	  wlarc=''
12547	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12548	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12549            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12550	  ;;
12551	*)
12552	  wlarc='$wl'
12553	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12554	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12555            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12556	  ;;
12557	esac
12558      fi
12559      hardcode_libdir_flag_spec='-R$libdir'
12560      hardcode_shlibpath_var=no
12561      case $host_os in
12562      solaris2.[0-5] | solaris2.[0-5].*) ;;
12563      *)
12564	# The compiler driver will combine and reorder linker options,
12565	# but understands '-z linker_flag'.  GCC discards it without '$wl',
12566	# but is careful enough not to reorder.
12567	# Supported since Solaris 2.6 (maybe 2.5.1?)
12568	if test yes = "$GCC"; then
12569	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12570	else
12571	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12572	fi
12573	;;
12574      esac
12575      link_all_deplibs=yes
12576      ;;
12577
12578    sunos4*)
12579      if test sequent = "$host_vendor"; then
12580	# Use $CC to link under sequent, because it throws in some extra .o
12581	# files that make .init and .fini sections work.
12582	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12583      else
12584	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12585      fi
12586      hardcode_libdir_flag_spec='-L$libdir'
12587      hardcode_direct=yes
12588      hardcode_minus_L=yes
12589      hardcode_shlibpath_var=no
12590      ;;
12591
12592    sysv4)
12593      case $host_vendor in
12594	sni)
12595	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12596	  hardcode_direct=yes # is this really true???
12597	;;
12598	siemens)
12599	  ## LD is ld it makes a PLAMLIB
12600	  ## CC just makes a GrossModule.
12601	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12602	  reload_cmds='$CC -r -o $output$reload_objs'
12603	  hardcode_direct=no
12604        ;;
12605	motorola)
12606	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12607	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12608	;;
12609      esac
12610      runpath_var='LD_RUN_PATH'
12611      hardcode_shlibpath_var=no
12612      ;;
12613
12614    sysv4.3*)
12615      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12616      hardcode_shlibpath_var=no
12617      export_dynamic_flag_spec='-Bexport'
12618      ;;
12619
12620    sysv4*MP*)
12621      if test -d /usr/nec; then
12622	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12623	hardcode_shlibpath_var=no
12624	runpath_var=LD_RUN_PATH
12625	hardcode_runpath_var=yes
12626	ld_shlibs=yes
12627      fi
12628      ;;
12629
12630    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12631      no_undefined_flag='$wl-z,text'
12632      archive_cmds_need_lc=no
12633      hardcode_shlibpath_var=no
12634      runpath_var='LD_RUN_PATH'
12635
12636      if test yes = "$GCC"; then
12637	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12638	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12639      else
12640	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12641	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12642      fi
12643      ;;
12644
12645    sysv5* | sco3.2v5* | sco5v6*)
12646      # Note: We CANNOT use -z defs as we might desire, because we do not
12647      # link with -lc, and that would cause any symbols used from libc to
12648      # always be unresolved, which means just about no library would
12649      # ever link correctly.  If we're not using GNU ld we use -z text
12650      # though, which does catch some bad symbols but isn't as heavy-handed
12651      # as -z defs.
12652      no_undefined_flag='$wl-z,text'
12653      allow_undefined_flag='$wl-z,nodefs'
12654      archive_cmds_need_lc=no
12655      hardcode_shlibpath_var=no
12656      hardcode_libdir_flag_spec='$wl-R,$libdir'
12657      hardcode_libdir_separator=':'
12658      link_all_deplibs=yes
12659      export_dynamic_flag_spec='$wl-Bexport'
12660      runpath_var='LD_RUN_PATH'
12661
12662      if test yes = "$GCC"; then
12663	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12664	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12665      else
12666	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12667	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12668      fi
12669      ;;
12670
12671    uts4*)
12672      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12673      hardcode_libdir_flag_spec='-L$libdir'
12674      hardcode_shlibpath_var=no
12675      ;;
12676
12677    *)
12678      ld_shlibs=no
12679      ;;
12680    esac
12681
12682    if test sni = "$host_vendor"; then
12683      case $host in
12684      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12685	export_dynamic_flag_spec='$wl-Blargedynsym'
12686	;;
12687      esac
12688    fi
12689  fi
12690
12691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12692$as_echo "$ld_shlibs" >&6; }
12693test no = "$ld_shlibs" && can_build_shared=no
12694
12695with_gnu_ld=$with_gnu_ld
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711#
12712# Do we need to explicitly link libc?
12713#
12714case "x$archive_cmds_need_lc" in
12715x|xyes)
12716  # Assume -lc should be added
12717  archive_cmds_need_lc=yes
12718
12719  if test yes,yes = "$GCC,$enable_shared"; then
12720    case $archive_cmds in
12721    *'~'*)
12722      # FIXME: we may have to deal with multi-command sequences.
12723      ;;
12724    '$CC '*)
12725      # Test whether the compiler implicitly links with -lc since on some
12726      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12727      # to ld, don't add -lc before -lgcc.
12728      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12729$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12730if ${lt_cv_archive_cmds_need_lc+:} false; then :
12731  $as_echo_n "(cached) " >&6
12732else
12733  $RM conftest*
12734	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12735
12736	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12737  (eval $ac_compile) 2>&5
12738  ac_status=$?
12739  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12740  test $ac_status = 0; } 2>conftest.err; then
12741	  soname=conftest
12742	  lib=conftest
12743	  libobjs=conftest.$ac_objext
12744	  deplibs=
12745	  wl=$lt_prog_compiler_wl
12746	  pic_flag=$lt_prog_compiler_pic
12747	  compiler_flags=-v
12748	  linker_flags=-v
12749	  verstring=
12750	  output_objdir=.
12751	  libname=conftest
12752	  lt_save_allow_undefined_flag=$allow_undefined_flag
12753	  allow_undefined_flag=
12754	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12755  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12756  ac_status=$?
12757  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12758  test $ac_status = 0; }
12759	  then
12760	    lt_cv_archive_cmds_need_lc=no
12761	  else
12762	    lt_cv_archive_cmds_need_lc=yes
12763	  fi
12764	  allow_undefined_flag=$lt_save_allow_undefined_flag
12765	else
12766	  cat conftest.err 1>&5
12767	fi
12768	$RM conftest*
12769
12770fi
12771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12772$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12773      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12774      ;;
12775    esac
12776  fi
12777  ;;
12778esac
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12932$as_echo_n "checking dynamic linker characteristics... " >&6; }
12933
12934if test yes = "$GCC"; then
12935  case $host_os in
12936    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12937    *) lt_awk_arg='/^libraries:/' ;;
12938  esac
12939  case $host_os in
12940    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12941    *) lt_sed_strip_eq='s|=/|/|g' ;;
12942  esac
12943  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12944  case $lt_search_path_spec in
12945  *\;*)
12946    # if the path contains ";" then we assume it to be the separator
12947    # otherwise default to the standard path separator (i.e. ":") - it is
12948    # assumed that no part of a normal pathname contains ";" but that should
12949    # okay in the real world where ";" in dirpaths is itself problematic.
12950    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12951    ;;
12952  *)
12953    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12954    ;;
12955  esac
12956  # Ok, now we have the path, separated by spaces, we can step through it
12957  # and add multilib dir if necessary...
12958  lt_tmp_lt_search_path_spec=
12959  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12960  # ...but if some path component already ends with the multilib dir we assume
12961  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12962  case "$lt_multi_os_dir; $lt_search_path_spec " in
12963  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12964    lt_multi_os_dir=
12965    ;;
12966  esac
12967  for lt_sys_path in $lt_search_path_spec; do
12968    if test -d "$lt_sys_path$lt_multi_os_dir"; then
12969      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12970    elif test -n "$lt_multi_os_dir"; then
12971      test -d "$lt_sys_path" && \
12972	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12973    fi
12974  done
12975  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12976BEGIN {RS = " "; FS = "/|\n";} {
12977  lt_foo = "";
12978  lt_count = 0;
12979  for (lt_i = NF; lt_i > 0; lt_i--) {
12980    if ($lt_i != "" && $lt_i != ".") {
12981      if ($lt_i == "..") {
12982        lt_count++;
12983      } else {
12984        if (lt_count == 0) {
12985          lt_foo = "/" $lt_i lt_foo;
12986        } else {
12987          lt_count--;
12988        }
12989      }
12990    }
12991  }
12992  if (lt_foo != "") { lt_freq[lt_foo]++; }
12993  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12994}'`
12995  # AWK program above erroneously prepends '/' to C:/dos/paths
12996  # for these hosts.
12997  case $host_os in
12998    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12999      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13000  esac
13001  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13002else
13003  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13004fi
13005library_names_spec=
13006libname_spec='lib$name'
13007soname_spec=
13008shrext_cmds=.so
13009postinstall_cmds=
13010postuninstall_cmds=
13011finish_cmds=
13012finish_eval=
13013shlibpath_var=
13014shlibpath_overrides_runpath=unknown
13015version_type=none
13016dynamic_linker="$host_os ld.so"
13017sys_lib_dlsearch_path_spec="/lib /usr/lib"
13018need_lib_prefix=unknown
13019hardcode_into_libs=no
13020
13021# when you set need_version to no, make sure it does not cause -set_version
13022# flags to be left without arguments
13023need_version=unknown
13024
13025
13026
13027case $host_os in
13028aix3*)
13029  version_type=linux # correct to gnu/linux during the next big refactor
13030  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13031  shlibpath_var=LIBPATH
13032
13033  # AIX 3 has no versioning support, so we append a major version to the name.
13034  soname_spec='$libname$release$shared_ext$major'
13035  ;;
13036
13037aix[4-9]*)
13038  version_type=linux # correct to gnu/linux during the next big refactor
13039  need_lib_prefix=no
13040  need_version=no
13041  hardcode_into_libs=yes
13042  if test ia64 = "$host_cpu"; then
13043    # AIX 5 supports IA64
13044    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13045    shlibpath_var=LD_LIBRARY_PATH
13046  else
13047    # With GCC up to 2.95.x, collect2 would create an import file
13048    # for dependence libraries.  The import file would start with
13049    # the line '#! .'.  This would cause the generated library to
13050    # depend on '.', always an invalid library.  This was fixed in
13051    # development snapshots of GCC prior to 3.0.
13052    case $host_os in
13053      aix4 | aix4.[01] | aix4.[01].*)
13054      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13055	   echo ' yes '
13056	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13057	:
13058      else
13059	can_build_shared=no
13060      fi
13061      ;;
13062    esac
13063    # Using Import Files as archive members, it is possible to support
13064    # filename-based versioning of shared library archives on AIX. While
13065    # this would work for both with and without runtime linking, it will
13066    # prevent static linking of such archives. So we do filename-based
13067    # shared library versioning with .so extension only, which is used
13068    # when both runtime linking and shared linking is enabled.
13069    # Unfortunately, runtime linking may impact performance, so we do
13070    # not want this to be the default eventually. Also, we use the
13071    # versioned .so libs for executables only if there is the -brtl
13072    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13073    # To allow for filename-based versioning support, we need to create
13074    # libNAME.so.V as an archive file, containing:
13075    # *) an Import File, referring to the versioned filename of the
13076    #    archive as well as the shared archive member, telling the
13077    #    bitwidth (32 or 64) of that shared object, and providing the
13078    #    list of exported symbols of that shared object, eventually
13079    #    decorated with the 'weak' keyword
13080    # *) the shared object with the F_LOADONLY flag set, to really avoid
13081    #    it being seen by the linker.
13082    # At run time we better use the real file rather than another symlink,
13083    # but for link time we create the symlink libNAME.so -> libNAME.so.V
13084
13085    case $with_aix_soname,$aix_use_runtimelinking in
13086    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13087    # soname into executable. Probably we can add versioning support to
13088    # collect2, so additional links can be useful in future.
13089    aix,yes) # traditional libtool
13090      dynamic_linker='AIX unversionable lib.so'
13091      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13092      # instead of lib<name>.a to let people know that these are not
13093      # typical AIX shared libraries.
13094      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13095      ;;
13096    aix,no) # traditional AIX only
13097      dynamic_linker='AIX lib.a(lib.so.V)'
13098      # We preserve .a as extension for shared libraries through AIX4.2
13099      # and later when we are not doing run time linking.
13100      library_names_spec='$libname$release.a $libname.a'
13101      soname_spec='$libname$release$shared_ext$major'
13102      ;;
13103    svr4,*) # full svr4 only
13104      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13105      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13106      # We do not specify a path in Import Files, so LIBPATH fires.
13107      shlibpath_overrides_runpath=yes
13108      ;;
13109    *,yes) # both, prefer svr4
13110      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13111      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13112      # unpreferred sharedlib libNAME.a needs extra handling
13113      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
13114      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
13115      # We do not specify a path in Import Files, so LIBPATH fires.
13116      shlibpath_overrides_runpath=yes
13117      ;;
13118    *,no) # both, prefer aix
13119      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13120      library_names_spec='$libname$release.a $libname.a'
13121      soname_spec='$libname$release$shared_ext$major'
13122      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13123      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
13124      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
13125      ;;
13126    esac
13127    shlibpath_var=LIBPATH
13128  fi
13129  ;;
13130
13131amigaos*)
13132  case $host_cpu in
13133  powerpc)
13134    # Since July 2007 AmigaOS4 officially supports .so libraries.
13135    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13136    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13137    ;;
13138  m68k)
13139    library_names_spec='$libname.ixlibrary $libname.a'
13140    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13141    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
13142    ;;
13143  esac
13144  ;;
13145
13146beos*)
13147  library_names_spec='$libname$shared_ext'
13148  dynamic_linker="$host_os ld.so"
13149  shlibpath_var=LIBRARY_PATH
13150  ;;
13151
13152bsdi[45]*)
13153  version_type=linux # correct to gnu/linux during the next big refactor
13154  need_version=no
13155  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13156  soname_spec='$libname$release$shared_ext$major'
13157  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13158  shlibpath_var=LD_LIBRARY_PATH
13159  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13160  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13161  # the default ld.so.conf also contains /usr/contrib/lib and
13162  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13163  # libtool to hard-code these into programs
13164  ;;
13165
13166cygwin* | mingw* | pw32* | cegcc*)
13167  version_type=windows
13168  shrext_cmds=.dll
13169  need_version=no
13170  need_lib_prefix=no
13171
13172  case $GCC,$cc_basename in
13173  yes,*)
13174    # gcc
13175    library_names_spec='$libname.dll.a'
13176    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13177    postinstall_cmds='base_file=`basename \$file`~
13178      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13179      dldir=$destdir/`dirname \$dlpath`~
13180      test -d \$dldir || mkdir -p \$dldir~
13181      $install_prog $dir/$dlname \$dldir/$dlname~
13182      chmod a+x \$dldir/$dlname~
13183      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13184        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13185      fi'
13186    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13187      dlpath=$dir/\$dldll~
13188       $RM \$dlpath'
13189    shlibpath_overrides_runpath=yes
13190
13191    case $host_os in
13192    cygwin*)
13193      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13194      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13195
13196      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13197      ;;
13198    mingw* | cegcc*)
13199      # MinGW DLLs use traditional 'lib' prefix
13200      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13201      ;;
13202    pw32*)
13203      # pw32 DLLs use 'pw' prefix rather than 'lib'
13204      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13205      ;;
13206    esac
13207    dynamic_linker='Win32 ld.exe'
13208    ;;
13209
13210  *,cl*)
13211    # Native MSVC
13212    libname_spec='$name'
13213    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13214    library_names_spec='$libname.dll.lib'
13215
13216    case $build_os in
13217    mingw*)
13218      sys_lib_search_path_spec=
13219      lt_save_ifs=$IFS
13220      IFS=';'
13221      for lt_path in $LIB
13222      do
13223        IFS=$lt_save_ifs
13224        # Let DOS variable expansion print the short 8.3 style file name.
13225        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13226        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13227      done
13228      IFS=$lt_save_ifs
13229      # Convert to MSYS style.
13230      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13231      ;;
13232    cygwin*)
13233      # Convert to unix form, then to dos form, then back to unix form
13234      # but this time dos style (no spaces!) so that the unix form looks
13235      # like /cygdrive/c/PROGRA~1:/cygdr...
13236      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13237      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13238      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13239      ;;
13240    *)
13241      sys_lib_search_path_spec=$LIB
13242      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13243        # It is most probably a Windows format PATH.
13244        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13245      else
13246        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13247      fi
13248      # FIXME: find the short name or the path components, as spaces are
13249      # common. (e.g. "Program Files" -> "PROGRA~1")
13250      ;;
13251    esac
13252
13253    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13254    postinstall_cmds='base_file=`basename \$file`~
13255      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13256      dldir=$destdir/`dirname \$dlpath`~
13257      test -d \$dldir || mkdir -p \$dldir~
13258      $install_prog $dir/$dlname \$dldir/$dlname'
13259    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13260      dlpath=$dir/\$dldll~
13261       $RM \$dlpath'
13262    shlibpath_overrides_runpath=yes
13263    dynamic_linker='Win32 link.exe'
13264    ;;
13265
13266  *)
13267    # Assume MSVC wrapper
13268    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13269    dynamic_linker='Win32 ld.exe'
13270    ;;
13271  esac
13272  # FIXME: first we should search . and the directory the executable is in
13273  shlibpath_var=PATH
13274  ;;
13275
13276darwin* | rhapsody*)
13277  dynamic_linker="$host_os dyld"
13278  version_type=darwin
13279  need_lib_prefix=no
13280  need_version=no
13281  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13282  soname_spec='$libname$release$major$shared_ext'
13283  shlibpath_overrides_runpath=yes
13284  shlibpath_var=DYLD_LIBRARY_PATH
13285  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13286
13287  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13288  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13289  ;;
13290
13291dgux*)
13292  version_type=linux # correct to gnu/linux during the next big refactor
13293  need_lib_prefix=no
13294  need_version=no
13295  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13296  soname_spec='$libname$release$shared_ext$major'
13297  shlibpath_var=LD_LIBRARY_PATH
13298  ;;
13299
13300freebsd* | dragonfly*)
13301  # DragonFly does not have aout.  When/if they implement a new
13302  # versioning mechanism, adjust this.
13303  if test -x /usr/bin/objformat; then
13304    objformat=`/usr/bin/objformat`
13305  else
13306    case $host_os in
13307    freebsd[23].*) objformat=aout ;;
13308    *) objformat=elf ;;
13309    esac
13310  fi
13311  version_type=freebsd-$objformat
13312  case $version_type in
13313    freebsd-elf*)
13314      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13315      soname_spec='$libname$release$shared_ext$major'
13316      need_version=no
13317      need_lib_prefix=no
13318      ;;
13319    freebsd-*)
13320      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13321      need_version=yes
13322      ;;
13323  esac
13324  shlibpath_var=LD_LIBRARY_PATH
13325  case $host_os in
13326  freebsd2.*)
13327    shlibpath_overrides_runpath=yes
13328    ;;
13329  freebsd3.[01]* | freebsdelf3.[01]*)
13330    shlibpath_overrides_runpath=yes
13331    hardcode_into_libs=yes
13332    ;;
13333  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13334  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13335    shlibpath_overrides_runpath=no
13336    hardcode_into_libs=yes
13337    ;;
13338  *) # from 4.6 on, and DragonFly
13339    shlibpath_overrides_runpath=yes
13340    hardcode_into_libs=yes
13341    ;;
13342  esac
13343  ;;
13344
13345haiku*)
13346  version_type=linux # correct to gnu/linux during the next big refactor
13347  need_lib_prefix=no
13348  need_version=no
13349  dynamic_linker="$host_os runtime_loader"
13350  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13351  soname_spec='$libname$release$shared_ext$major'
13352  shlibpath_var=LIBRARY_PATH
13353  shlibpath_overrides_runpath=no
13354  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13355  hardcode_into_libs=yes
13356  ;;
13357
13358hpux9* | hpux10* | hpux11*)
13359  # Give a soname corresponding to the major version so that dld.sl refuses to
13360  # link against other versions.
13361  version_type=sunos
13362  need_lib_prefix=no
13363  need_version=no
13364  case $host_cpu in
13365  ia64*)
13366    shrext_cmds='.so'
13367    hardcode_into_libs=yes
13368    dynamic_linker="$host_os dld.so"
13369    shlibpath_var=LD_LIBRARY_PATH
13370    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13371    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13372    soname_spec='$libname$release$shared_ext$major'
13373    if test 32 = "$HPUX_IA64_MODE"; then
13374      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13375      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13376    else
13377      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13378      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13379    fi
13380    ;;
13381  hppa*64*)
13382    shrext_cmds='.sl'
13383    hardcode_into_libs=yes
13384    dynamic_linker="$host_os dld.sl"
13385    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13386    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13387    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13388    soname_spec='$libname$release$shared_ext$major'
13389    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13390    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13391    ;;
13392  *)
13393    shrext_cmds='.sl'
13394    dynamic_linker="$host_os dld.sl"
13395    shlibpath_var=SHLIB_PATH
13396    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13397    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13398    soname_spec='$libname$release$shared_ext$major'
13399    ;;
13400  esac
13401  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13402  postinstall_cmds='chmod 555 $lib'
13403  # or fails outright, so override atomically:
13404  install_override_mode=555
13405  ;;
13406
13407interix[3-9]*)
13408  version_type=linux # correct to gnu/linux during the next big refactor
13409  need_lib_prefix=no
13410  need_version=no
13411  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13412  soname_spec='$libname$release$shared_ext$major'
13413  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13414  shlibpath_var=LD_LIBRARY_PATH
13415  shlibpath_overrides_runpath=no
13416  hardcode_into_libs=yes
13417  ;;
13418
13419irix5* | irix6* | nonstopux*)
13420  case $host_os in
13421    nonstopux*) version_type=nonstopux ;;
13422    *)
13423	if test yes = "$lt_cv_prog_gnu_ld"; then
13424		version_type=linux # correct to gnu/linux during the next big refactor
13425	else
13426		version_type=irix
13427	fi ;;
13428  esac
13429  need_lib_prefix=no
13430  need_version=no
13431  soname_spec='$libname$release$shared_ext$major'
13432  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13433  case $host_os in
13434  irix5* | nonstopux*)
13435    libsuff= shlibsuff=
13436    ;;
13437  *)
13438    case $LD in # libtool.m4 will add one of these switches to LD
13439    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13440      libsuff= shlibsuff= libmagic=32-bit;;
13441    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13442      libsuff=32 shlibsuff=N32 libmagic=N32;;
13443    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13444      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13445    *) libsuff= shlibsuff= libmagic=never-match;;
13446    esac
13447    ;;
13448  esac
13449  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13450  shlibpath_overrides_runpath=no
13451  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13452  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13453  hardcode_into_libs=yes
13454  ;;
13455
13456# No shared lib support for Linux oldld, aout, or coff.
13457linux*oldld* | linux*aout* | linux*coff*)
13458  dynamic_linker=no
13459  ;;
13460
13461linux*android*)
13462  version_type=none # Android doesn't support versioned libraries.
13463  need_lib_prefix=no
13464  need_version=no
13465  library_names_spec='$libname$release$shared_ext'
13466  soname_spec='$libname$release$shared_ext'
13467  finish_cmds=
13468  shlibpath_var=LD_LIBRARY_PATH
13469  shlibpath_overrides_runpath=yes
13470
13471  # This implies no fast_install, which is unacceptable.
13472  # Some rework will be needed to allow for fast_install
13473  # before this can be enabled.
13474  hardcode_into_libs=yes
13475
13476  dynamic_linker='Android linker'
13477  # Don't embed -rpath directories since the linker doesn't support them.
13478  hardcode_libdir_flag_spec='-L$libdir'
13479  ;;
13480
13481# This must be glibc/ELF.
13482linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13483  version_type=linux # correct to gnu/linux during the next big refactor
13484  need_lib_prefix=no
13485  need_version=no
13486  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13487  soname_spec='$libname$release$shared_ext$major'
13488  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13489  shlibpath_var=LD_LIBRARY_PATH
13490  shlibpath_overrides_runpath=no
13491
13492  # Some binutils ld are patched to set DT_RUNPATH
13493  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13494  $as_echo_n "(cached) " >&6
13495else
13496  lt_cv_shlibpath_overrides_runpath=no
13497    save_LDFLAGS=$LDFLAGS
13498    save_libdir=$libdir
13499    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13500	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13501    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13502/* end confdefs.h.  */
13503
13504int
13505main ()
13506{
13507
13508  ;
13509  return 0;
13510}
13511_ACEOF
13512if ac_fn_c_try_link "$LINENO"; then :
13513  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13514  lt_cv_shlibpath_overrides_runpath=yes
13515fi
13516fi
13517rm -f core conftest.err conftest.$ac_objext \
13518    conftest$ac_exeext conftest.$ac_ext
13519    LDFLAGS=$save_LDFLAGS
13520    libdir=$save_libdir
13521
13522fi
13523
13524  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13525
13526  # This implies no fast_install, which is unacceptable.
13527  # Some rework will be needed to allow for fast_install
13528  # before this can be enabled.
13529  hardcode_into_libs=yes
13530
13531  # Add ABI-specific directories to the system library path.
13532  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13533
13534  # Ideally, we could use ldconfig to report *all* directores which are
13535  # searched for libraries, however this is still not possible.  Aside from not
13536  # being certain /sbin/ldconfig is available, command
13537  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13538  # even though it is searched at run-time.  Try to do the best guess by
13539  # appending ld.so.conf contents (and includes) to the search path.
13540  if test -f /etc/ld.so.conf; then
13541    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' ' '`
13542    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13543  fi
13544
13545  # We used to test for /lib/ld.so.1 and disable shared libraries on
13546  # powerpc, because MkLinux only supported shared libraries with the
13547  # GNU dynamic linker.  Since this was broken with cross compilers,
13548  # most powerpc-linux boxes support dynamic linking these days and
13549  # people can always --disable-shared, the test was removed, and we
13550  # assume the GNU/Linux dynamic linker is in use.
13551  dynamic_linker='GNU/Linux ld.so'
13552  ;;
13553
13554netbsd*)
13555  version_type=sunos
13556  need_lib_prefix=no
13557  need_version=no
13558  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13559    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13560    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13561    dynamic_linker='NetBSD (a.out) ld.so'
13562  else
13563    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13564    soname_spec='$libname$release$shared_ext$major'
13565    dynamic_linker='NetBSD ld.elf_so'
13566  fi
13567  shlibpath_var=LD_LIBRARY_PATH
13568  shlibpath_overrides_runpath=yes
13569  hardcode_into_libs=yes
13570  ;;
13571
13572newsos6)
13573  version_type=linux # correct to gnu/linux during the next big refactor
13574  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13575  shlibpath_var=LD_LIBRARY_PATH
13576  shlibpath_overrides_runpath=yes
13577  ;;
13578
13579*nto* | *qnx*)
13580  version_type=qnx
13581  need_lib_prefix=no
13582  need_version=no
13583  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13584  soname_spec='$libname$release$shared_ext$major'
13585  shlibpath_var=LD_LIBRARY_PATH
13586  shlibpath_overrides_runpath=no
13587  hardcode_into_libs=yes
13588  dynamic_linker='ldqnx.so'
13589  ;;
13590
13591openbsd* | bitrig*)
13592  version_type=sunos
13593  sys_lib_dlsearch_path_spec=/usr/lib
13594  need_lib_prefix=no
13595  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13596    need_version=no
13597  else
13598    need_version=yes
13599  fi
13600  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13601  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13602  shlibpath_var=LD_LIBRARY_PATH
13603  shlibpath_overrides_runpath=yes
13604  ;;
13605
13606os2*)
13607  libname_spec='$name'
13608  version_type=windows
13609  shrext_cmds=.dll
13610  need_version=no
13611  need_lib_prefix=no
13612  # OS/2 can only load a DLL with a base name of 8 characters or less.
13613  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13614    v=$($ECHO $release$versuffix | tr -d .-);
13615    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13616    $ECHO $n$v`$shared_ext'
13617  library_names_spec='${libname}_dll.$libext'
13618  dynamic_linker='OS/2 ld.exe'
13619  shlibpath_var=BEGINLIBPATH
13620  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13621  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13622  postinstall_cmds='base_file=`basename \$file`~
13623    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13624    dldir=$destdir/`dirname \$dlpath`~
13625    test -d \$dldir || mkdir -p \$dldir~
13626    $install_prog $dir/$dlname \$dldir/$dlname~
13627    chmod a+x \$dldir/$dlname~
13628    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13629      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13630    fi'
13631  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13632    dlpath=$dir/\$dldll~
13633    $RM \$dlpath'
13634  ;;
13635
13636osf3* | osf4* | osf5*)
13637  version_type=osf
13638  need_lib_prefix=no
13639  need_version=no
13640  soname_spec='$libname$release$shared_ext$major'
13641  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13642  shlibpath_var=LD_LIBRARY_PATH
13643  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13644  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13645  ;;
13646
13647rdos*)
13648  dynamic_linker=no
13649  ;;
13650
13651solaris*)
13652  version_type=linux # correct to gnu/linux during the next big refactor
13653  need_lib_prefix=no
13654  need_version=no
13655  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13656  soname_spec='$libname$release$shared_ext$major'
13657  shlibpath_var=LD_LIBRARY_PATH
13658  shlibpath_overrides_runpath=yes
13659  hardcode_into_libs=yes
13660  # ldd complains unless libraries are executable
13661  postinstall_cmds='chmod +x $lib'
13662  ;;
13663
13664sunos4*)
13665  version_type=sunos
13666  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13667  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13668  shlibpath_var=LD_LIBRARY_PATH
13669  shlibpath_overrides_runpath=yes
13670  if test yes = "$with_gnu_ld"; then
13671    need_lib_prefix=no
13672  fi
13673  need_version=yes
13674  ;;
13675
13676sysv4 | sysv4.3*)
13677  version_type=linux # correct to gnu/linux during the next big refactor
13678  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13679  soname_spec='$libname$release$shared_ext$major'
13680  shlibpath_var=LD_LIBRARY_PATH
13681  case $host_vendor in
13682    sni)
13683      shlibpath_overrides_runpath=no
13684      need_lib_prefix=no
13685      runpath_var=LD_RUN_PATH
13686      ;;
13687    siemens)
13688      need_lib_prefix=no
13689      ;;
13690    motorola)
13691      need_lib_prefix=no
13692      need_version=no
13693      shlibpath_overrides_runpath=no
13694      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13695      ;;
13696  esac
13697  ;;
13698
13699sysv4*MP*)
13700  if test -d /usr/nec; then
13701    version_type=linux # correct to gnu/linux during the next big refactor
13702    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13703    soname_spec='$libname$shared_ext.$major'
13704    shlibpath_var=LD_LIBRARY_PATH
13705  fi
13706  ;;
13707
13708sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13709  version_type=sco
13710  need_lib_prefix=no
13711  need_version=no
13712  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13713  soname_spec='$libname$release$shared_ext$major'
13714  shlibpath_var=LD_LIBRARY_PATH
13715  shlibpath_overrides_runpath=yes
13716  hardcode_into_libs=yes
13717  if test yes = "$with_gnu_ld"; then
13718    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13719  else
13720    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13721    case $host_os in
13722      sco3.2v5*)
13723        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13724	;;
13725    esac
13726  fi
13727  sys_lib_dlsearch_path_spec='/usr/lib'
13728  ;;
13729
13730tpf*)
13731  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13732  version_type=linux # correct to gnu/linux during the next big refactor
13733  need_lib_prefix=no
13734  need_version=no
13735  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13736  shlibpath_var=LD_LIBRARY_PATH
13737  shlibpath_overrides_runpath=no
13738  hardcode_into_libs=yes
13739  ;;
13740
13741uts4*)
13742  version_type=linux # correct to gnu/linux during the next big refactor
13743  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13744  soname_spec='$libname$release$shared_ext$major'
13745  shlibpath_var=LD_LIBRARY_PATH
13746  ;;
13747
13748*)
13749  dynamic_linker=no
13750  ;;
13751esac
13752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13753$as_echo "$dynamic_linker" >&6; }
13754test no = "$dynamic_linker" && can_build_shared=no
13755
13756variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13757if test yes = "$GCC"; then
13758  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13759fi
13760
13761if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13762  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13763fi
13764
13765if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13766  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13767fi
13768
13769# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13770configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13771
13772# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13773func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13774
13775# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13776configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13875$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13876hardcode_action=
13877if test -n "$hardcode_libdir_flag_spec" ||
13878   test -n "$runpath_var" ||
13879   test yes = "$hardcode_automatic"; then
13880
13881  # We can hardcode non-existent directories.
13882  if test no != "$hardcode_direct" &&
13883     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13884     # have to relink, otherwise we might link with an installed library
13885     # when we should be linking with a yet-to-be-installed one
13886     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13887     test no != "$hardcode_minus_L"; then
13888    # Linking always hardcodes the temporary library directory.
13889    hardcode_action=relink
13890  else
13891    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13892    hardcode_action=immediate
13893  fi
13894else
13895  # We cannot hardcode anything, or else we can only hardcode existing
13896  # directories.
13897  hardcode_action=unsupported
13898fi
13899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13900$as_echo "$hardcode_action" >&6; }
13901
13902if test relink = "$hardcode_action" ||
13903   test yes = "$inherit_rpath"; then
13904  # Fast installation is not supported
13905  enable_fast_install=no
13906elif test yes = "$shlibpath_overrides_runpath" ||
13907     test no = "$enable_shared"; then
13908  # Fast installation is not necessary
13909  enable_fast_install=needless
13910fi
13911
13912
13913
13914
13915
13916
13917  if test yes != "$enable_dlopen"; then
13918  enable_dlopen=unknown
13919  enable_dlopen_self=unknown
13920  enable_dlopen_self_static=unknown
13921else
13922  lt_cv_dlopen=no
13923  lt_cv_dlopen_libs=
13924
13925  case $host_os in
13926  beos*)
13927    lt_cv_dlopen=load_add_on
13928    lt_cv_dlopen_libs=
13929    lt_cv_dlopen_self=yes
13930    ;;
13931
13932  mingw* | pw32* | cegcc*)
13933    lt_cv_dlopen=LoadLibrary
13934    lt_cv_dlopen_libs=
13935    ;;
13936
13937  cygwin*)
13938    lt_cv_dlopen=dlopen
13939    lt_cv_dlopen_libs=
13940    ;;
13941
13942  darwin*)
13943    # if libdl is installed we need to link against it
13944    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13945$as_echo_n "checking for dlopen in -ldl... " >&6; }
13946if ${ac_cv_lib_dl_dlopen+:} false; then :
13947  $as_echo_n "(cached) " >&6
13948else
13949  ac_check_lib_save_LIBS=$LIBS
13950LIBS="-ldl  $LIBS"
13951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13952/* end confdefs.h.  */
13953
13954/* Override any GCC internal prototype to avoid an error.
13955   Use char because int might match the return type of a GCC
13956   builtin and then its argument prototype would still apply.  */
13957#ifdef __cplusplus
13958extern "C"
13959#endif
13960char dlopen ();
13961int
13962main ()
13963{
13964return dlopen ();
13965  ;
13966  return 0;
13967}
13968_ACEOF
13969if ac_fn_c_try_link "$LINENO"; then :
13970  ac_cv_lib_dl_dlopen=yes
13971else
13972  ac_cv_lib_dl_dlopen=no
13973fi
13974rm -f core conftest.err conftest.$ac_objext \
13975    conftest$ac_exeext conftest.$ac_ext
13976LIBS=$ac_check_lib_save_LIBS
13977fi
13978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13979$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13980if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13981  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13982else
13983
13984    lt_cv_dlopen=dyld
13985    lt_cv_dlopen_libs=
13986    lt_cv_dlopen_self=yes
13987
13988fi
13989
13990    ;;
13991
13992  tpf*)
13993    # Don't try to run any link tests for TPF.  We know it's impossible
13994    # because TPF is a cross-compiler, and we know how we open DSOs.
13995    lt_cv_dlopen=dlopen
13996    lt_cv_dlopen_libs=
13997    lt_cv_dlopen_self=no
13998    ;;
13999
14000  *)
14001    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14002if test "x$ac_cv_func_shl_load" = xyes; then :
14003  lt_cv_dlopen=shl_load
14004else
14005  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14006$as_echo_n "checking for shl_load in -ldld... " >&6; }
14007if ${ac_cv_lib_dld_shl_load+:} false; then :
14008  $as_echo_n "(cached) " >&6
14009else
14010  ac_check_lib_save_LIBS=$LIBS
14011LIBS="-ldld  $LIBS"
14012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14013/* end confdefs.h.  */
14014
14015/* Override any GCC internal prototype to avoid an error.
14016   Use char because int might match the return type of a GCC
14017   builtin and then its argument prototype would still apply.  */
14018#ifdef __cplusplus
14019extern "C"
14020#endif
14021char shl_load ();
14022int
14023main ()
14024{
14025return shl_load ();
14026  ;
14027  return 0;
14028}
14029_ACEOF
14030if ac_fn_c_try_link "$LINENO"; then :
14031  ac_cv_lib_dld_shl_load=yes
14032else
14033  ac_cv_lib_dld_shl_load=no
14034fi
14035rm -f core conftest.err conftest.$ac_objext \
14036    conftest$ac_exeext conftest.$ac_ext
14037LIBS=$ac_check_lib_save_LIBS
14038fi
14039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14040$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14041if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14042  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14043else
14044  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14045if test "x$ac_cv_func_dlopen" = xyes; then :
14046  lt_cv_dlopen=dlopen
14047else
14048  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14049$as_echo_n "checking for dlopen in -ldl... " >&6; }
14050if ${ac_cv_lib_dl_dlopen+:} false; then :
14051  $as_echo_n "(cached) " >&6
14052else
14053  ac_check_lib_save_LIBS=$LIBS
14054LIBS="-ldl  $LIBS"
14055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14056/* end confdefs.h.  */
14057
14058/* Override any GCC internal prototype to avoid an error.
14059   Use char because int might match the return type of a GCC
14060   builtin and then its argument prototype would still apply.  */
14061#ifdef __cplusplus
14062extern "C"
14063#endif
14064char dlopen ();
14065int
14066main ()
14067{
14068return dlopen ();
14069  ;
14070  return 0;
14071}
14072_ACEOF
14073if ac_fn_c_try_link "$LINENO"; then :
14074  ac_cv_lib_dl_dlopen=yes
14075else
14076  ac_cv_lib_dl_dlopen=no
14077fi
14078rm -f core conftest.err conftest.$ac_objext \
14079    conftest$ac_exeext conftest.$ac_ext
14080LIBS=$ac_check_lib_save_LIBS
14081fi
14082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14083$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14084if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14085  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14086else
14087  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14088$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14089if ${ac_cv_lib_svld_dlopen+:} false; then :
14090  $as_echo_n "(cached) " >&6
14091else
14092  ac_check_lib_save_LIBS=$LIBS
14093LIBS="-lsvld  $LIBS"
14094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14095/* end confdefs.h.  */
14096
14097/* Override any GCC internal prototype to avoid an error.
14098   Use char because int might match the return type of a GCC
14099   builtin and then its argument prototype would still apply.  */
14100#ifdef __cplusplus
14101extern "C"
14102#endif
14103char dlopen ();
14104int
14105main ()
14106{
14107return dlopen ();
14108  ;
14109  return 0;
14110}
14111_ACEOF
14112if ac_fn_c_try_link "$LINENO"; then :
14113  ac_cv_lib_svld_dlopen=yes
14114else
14115  ac_cv_lib_svld_dlopen=no
14116fi
14117rm -f core conftest.err conftest.$ac_objext \
14118    conftest$ac_exeext conftest.$ac_ext
14119LIBS=$ac_check_lib_save_LIBS
14120fi
14121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14122$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14123if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14124  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14125else
14126  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14127$as_echo_n "checking for dld_link in -ldld... " >&6; }
14128if ${ac_cv_lib_dld_dld_link+:} false; then :
14129  $as_echo_n "(cached) " >&6
14130else
14131  ac_check_lib_save_LIBS=$LIBS
14132LIBS="-ldld  $LIBS"
14133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14134/* end confdefs.h.  */
14135
14136/* Override any GCC internal prototype to avoid an error.
14137   Use char because int might match the return type of a GCC
14138   builtin and then its argument prototype would still apply.  */
14139#ifdef __cplusplus
14140extern "C"
14141#endif
14142char dld_link ();
14143int
14144main ()
14145{
14146return dld_link ();
14147  ;
14148  return 0;
14149}
14150_ACEOF
14151if ac_fn_c_try_link "$LINENO"; then :
14152  ac_cv_lib_dld_dld_link=yes
14153else
14154  ac_cv_lib_dld_dld_link=no
14155fi
14156rm -f core conftest.err conftest.$ac_objext \
14157    conftest$ac_exeext conftest.$ac_ext
14158LIBS=$ac_check_lib_save_LIBS
14159fi
14160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14161$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14162if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14163  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14164fi
14165
14166
14167fi
14168
14169
14170fi
14171
14172
14173fi
14174
14175
14176fi
14177
14178
14179fi
14180
14181    ;;
14182  esac
14183
14184  if test no = "$lt_cv_dlopen"; then
14185    enable_dlopen=no
14186  else
14187    enable_dlopen=yes
14188  fi
14189
14190  case $lt_cv_dlopen in
14191  dlopen)
14192    save_CPPFLAGS=$CPPFLAGS
14193    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14194
14195    save_LDFLAGS=$LDFLAGS
14196    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14197
14198    save_LIBS=$LIBS
14199    LIBS="$lt_cv_dlopen_libs $LIBS"
14200
14201    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14202$as_echo_n "checking whether a program can dlopen itself... " >&6; }
14203if ${lt_cv_dlopen_self+:} false; then :
14204  $as_echo_n "(cached) " >&6
14205else
14206  	  if test yes = "$cross_compiling"; then :
14207  lt_cv_dlopen_self=cross
14208else
14209  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14210  lt_status=$lt_dlunknown
14211  cat > conftest.$ac_ext <<_LT_EOF
14212#line $LINENO "configure"
14213#include "confdefs.h"
14214
14215#if HAVE_DLFCN_H
14216#include <dlfcn.h>
14217#endif
14218
14219#include <stdio.h>
14220
14221#ifdef RTLD_GLOBAL
14222#  define LT_DLGLOBAL		RTLD_GLOBAL
14223#else
14224#  ifdef DL_GLOBAL
14225#    define LT_DLGLOBAL		DL_GLOBAL
14226#  else
14227#    define LT_DLGLOBAL		0
14228#  endif
14229#endif
14230
14231/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14232   find out it does not work in some platform. */
14233#ifndef LT_DLLAZY_OR_NOW
14234#  ifdef RTLD_LAZY
14235#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14236#  else
14237#    ifdef DL_LAZY
14238#      define LT_DLLAZY_OR_NOW		DL_LAZY
14239#    else
14240#      ifdef RTLD_NOW
14241#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14242#      else
14243#        ifdef DL_NOW
14244#          define LT_DLLAZY_OR_NOW	DL_NOW
14245#        else
14246#          define LT_DLLAZY_OR_NOW	0
14247#        endif
14248#      endif
14249#    endif
14250#  endif
14251#endif
14252
14253/* When -fvisibility=hidden is used, assume the code has been annotated
14254   correspondingly for the symbols needed.  */
14255#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14256int fnord () __attribute__((visibility("default")));
14257#endif
14258
14259int fnord () { return 42; }
14260int main ()
14261{
14262  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14263  int status = $lt_dlunknown;
14264
14265  if (self)
14266    {
14267      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14268      else
14269        {
14270	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14271          else puts (dlerror ());
14272	}
14273      /* dlclose (self); */
14274    }
14275  else
14276    puts (dlerror ());
14277
14278  return status;
14279}
14280_LT_EOF
14281  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14282  (eval $ac_link) 2>&5
14283  ac_status=$?
14284  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14285  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14286    (./conftest; exit; ) >&5 2>/dev/null
14287    lt_status=$?
14288    case x$lt_status in
14289      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14290      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14291      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14292    esac
14293  else :
14294    # compilation failed
14295    lt_cv_dlopen_self=no
14296  fi
14297fi
14298rm -fr conftest*
14299
14300
14301fi
14302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14303$as_echo "$lt_cv_dlopen_self" >&6; }
14304
14305    if test yes = "$lt_cv_dlopen_self"; then
14306      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14307      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14308$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14309if ${lt_cv_dlopen_self_static+:} false; then :
14310  $as_echo_n "(cached) " >&6
14311else
14312  	  if test yes = "$cross_compiling"; then :
14313  lt_cv_dlopen_self_static=cross
14314else
14315  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14316  lt_status=$lt_dlunknown
14317  cat > conftest.$ac_ext <<_LT_EOF
14318#line $LINENO "configure"
14319#include "confdefs.h"
14320
14321#if HAVE_DLFCN_H
14322#include <dlfcn.h>
14323#endif
14324
14325#include <stdio.h>
14326
14327#ifdef RTLD_GLOBAL
14328#  define LT_DLGLOBAL		RTLD_GLOBAL
14329#else
14330#  ifdef DL_GLOBAL
14331#    define LT_DLGLOBAL		DL_GLOBAL
14332#  else
14333#    define LT_DLGLOBAL		0
14334#  endif
14335#endif
14336
14337/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14338   find out it does not work in some platform. */
14339#ifndef LT_DLLAZY_OR_NOW
14340#  ifdef RTLD_LAZY
14341#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14342#  else
14343#    ifdef DL_LAZY
14344#      define LT_DLLAZY_OR_NOW		DL_LAZY
14345#    else
14346#      ifdef RTLD_NOW
14347#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14348#      else
14349#        ifdef DL_NOW
14350#          define LT_DLLAZY_OR_NOW	DL_NOW
14351#        else
14352#          define LT_DLLAZY_OR_NOW	0
14353#        endif
14354#      endif
14355#    endif
14356#  endif
14357#endif
14358
14359/* When -fvisibility=hidden is used, assume the code has been annotated
14360   correspondingly for the symbols needed.  */
14361#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14362int fnord () __attribute__((visibility("default")));
14363#endif
14364
14365int fnord () { return 42; }
14366int main ()
14367{
14368  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14369  int status = $lt_dlunknown;
14370
14371  if (self)
14372    {
14373      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14374      else
14375        {
14376	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14377          else puts (dlerror ());
14378	}
14379      /* dlclose (self); */
14380    }
14381  else
14382    puts (dlerror ());
14383
14384  return status;
14385}
14386_LT_EOF
14387  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14388  (eval $ac_link) 2>&5
14389  ac_status=$?
14390  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14391  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14392    (./conftest; exit; ) >&5 2>/dev/null
14393    lt_status=$?
14394    case x$lt_status in
14395      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14396      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14397      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14398    esac
14399  else :
14400    # compilation failed
14401    lt_cv_dlopen_self_static=no
14402  fi
14403fi
14404rm -fr conftest*
14405
14406
14407fi
14408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14409$as_echo "$lt_cv_dlopen_self_static" >&6; }
14410    fi
14411
14412    CPPFLAGS=$save_CPPFLAGS
14413    LDFLAGS=$save_LDFLAGS
14414    LIBS=$save_LIBS
14415    ;;
14416  esac
14417
14418  case $lt_cv_dlopen_self in
14419  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14420  *) enable_dlopen_self=unknown ;;
14421  esac
14422
14423  case $lt_cv_dlopen_self_static in
14424  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14425  *) enable_dlopen_self_static=unknown ;;
14426  esac
14427fi
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445striplib=
14446old_striplib=
14447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14448$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14449if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14450  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14451  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14453$as_echo "yes" >&6; }
14454else
14455# FIXME - insert some real tests, host_os isn't really good enough
14456  case $host_os in
14457  darwin*)
14458    if test -n "$STRIP"; then
14459      striplib="$STRIP -x"
14460      old_striplib="$STRIP -S"
14461      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14462$as_echo "yes" >&6; }
14463    else
14464      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14465$as_echo "no" >&6; }
14466    fi
14467    ;;
14468  *)
14469    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14470$as_echo "no" >&6; }
14471    ;;
14472  esac
14473fi
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486  # Report what library types will actually be built
14487  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14488$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14490$as_echo "$can_build_shared" >&6; }
14491
14492  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14493$as_echo_n "checking whether to build shared libraries... " >&6; }
14494  test no = "$can_build_shared" && enable_shared=no
14495
14496  # On AIX, shared libraries and static libraries use the same namespace, and
14497  # are all built from PIC.
14498  case $host_os in
14499  aix3*)
14500    test yes = "$enable_shared" && enable_static=no
14501    if test -n "$RANLIB"; then
14502      archive_cmds="$archive_cmds~\$RANLIB \$lib"
14503      postinstall_cmds='$RANLIB $lib'
14504    fi
14505    ;;
14506
14507  aix[4-9]*)
14508    if test ia64 != "$host_cpu"; then
14509      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14510      yes,aix,yes) ;;			# shared object as lib.so file only
14511      yes,svr4,*) ;;			# shared object as lib.so archive member only
14512      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
14513      esac
14514    fi
14515    ;;
14516  esac
14517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14518$as_echo "$enable_shared" >&6; }
14519
14520  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14521$as_echo_n "checking whether to build static libraries... " >&6; }
14522  # Make sure either enable_shared or enable_static is yes.
14523  test yes = "$enable_shared" || enable_static=yes
14524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14525$as_echo "$enable_static" >&6; }
14526
14527
14528
14529
14530fi
14531ac_ext=c
14532ac_cpp='$CPP $CPPFLAGS'
14533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14535ac_compiler_gnu=$ac_cv_c_compiler_gnu
14536
14537CC=$lt_save_CC
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553        ac_config_commands="$ac_config_commands libtool"
14554
14555
14556
14557
14558# Only expand once:
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14571	if test -n "$ac_tool_prefix"; then
14572  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14573set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14575$as_echo_n "checking for $ac_word... " >&6; }
14576if ${ac_cv_path_PKG_CONFIG+:} false; then :
14577  $as_echo_n "(cached) " >&6
14578else
14579  case $PKG_CONFIG in
14580  [\\/]* | ?:[\\/]*)
14581  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14582  ;;
14583  *)
14584  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14585for as_dir in $PATH
14586do
14587  IFS=$as_save_IFS
14588  test -z "$as_dir" && as_dir=.
14589    for ac_exec_ext in '' $ac_executable_extensions; do
14590  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14591    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14592    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14593    break 2
14594  fi
14595done
14596  done
14597IFS=$as_save_IFS
14598
14599  ;;
14600esac
14601fi
14602PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14603if test -n "$PKG_CONFIG"; then
14604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14605$as_echo "$PKG_CONFIG" >&6; }
14606else
14607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14608$as_echo "no" >&6; }
14609fi
14610
14611
14612fi
14613if test -z "$ac_cv_path_PKG_CONFIG"; then
14614  ac_pt_PKG_CONFIG=$PKG_CONFIG
14615  # Extract the first word of "pkg-config", so it can be a program name with args.
14616set dummy pkg-config; ac_word=$2
14617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14618$as_echo_n "checking for $ac_word... " >&6; }
14619if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14620  $as_echo_n "(cached) " >&6
14621else
14622  case $ac_pt_PKG_CONFIG in
14623  [\\/]* | ?:[\\/]*)
14624  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14625  ;;
14626  *)
14627  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14628for as_dir in $PATH
14629do
14630  IFS=$as_save_IFS
14631  test -z "$as_dir" && as_dir=.
14632    for ac_exec_ext in '' $ac_executable_extensions; do
14633  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14634    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14635    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14636    break 2
14637  fi
14638done
14639  done
14640IFS=$as_save_IFS
14641
14642  ;;
14643esac
14644fi
14645ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14646if test -n "$ac_pt_PKG_CONFIG"; then
14647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14648$as_echo "$ac_pt_PKG_CONFIG" >&6; }
14649else
14650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14651$as_echo "no" >&6; }
14652fi
14653
14654  if test "x$ac_pt_PKG_CONFIG" = x; then
14655    PKG_CONFIG=""
14656  else
14657    case $cross_compiling:$ac_tool_warned in
14658yes:)
14659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14661ac_tool_warned=yes ;;
14662esac
14663    PKG_CONFIG=$ac_pt_PKG_CONFIG
14664  fi
14665else
14666  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14667fi
14668
14669fi
14670if test -n "$PKG_CONFIG"; then
14671	_pkg_min_version=0.9.0
14672	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14673$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14674	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14675		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14676$as_echo "yes" >&6; }
14677	else
14678		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14679$as_echo "no" >&6; }
14680		PKG_CONFIG=""
14681	fi
14682fi
14683
14684# Checks for header files.
14685for ac_header in stdarg.h stdbool.h netinet/in.h netinet/tcp.h sys/param.h sys/socket.h sys/un.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 endian.h sys/endian.h libkern/OSByteOrder.h sys/ipc.h sys/shm.h
14686do :
14687  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14688ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14689"
14690if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14691  cat >>confdefs.h <<_ACEOF
14692#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14693_ACEOF
14694
14695fi
14696
14697done
14698
14699
14700# check for types.
14701# Using own tests for int64* because autoconf builtin only give 32bit.
14702ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
14703if test "x$ac_cv_type_int8_t" = xyes; then :
14704
14705else
14706
14707cat >>confdefs.h <<_ACEOF
14708#define int8_t signed char
14709_ACEOF
14710
14711fi
14712
14713ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
14714if test "x$ac_cv_type_int16_t" = xyes; then :
14715
14716else
14717
14718cat >>confdefs.h <<_ACEOF
14719#define int16_t short
14720_ACEOF
14721
14722fi
14723
14724ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
14725if test "x$ac_cv_type_int32_t" = xyes; then :
14726
14727else
14728
14729cat >>confdefs.h <<_ACEOF
14730#define int32_t int
14731_ACEOF
14732
14733fi
14734
14735ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
14736if test "x$ac_cv_type_int64_t" = xyes; then :
14737
14738else
14739
14740cat >>confdefs.h <<_ACEOF
14741#define int64_t long long
14742_ACEOF
14743
14744fi
14745
14746ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
14747if test "x$ac_cv_type_uint8_t" = xyes; then :
14748
14749else
14750
14751cat >>confdefs.h <<_ACEOF
14752#define uint8_t unsigned char
14753_ACEOF
14754
14755fi
14756
14757ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
14758if test "x$ac_cv_type_uint16_t" = xyes; then :
14759
14760else
14761
14762cat >>confdefs.h <<_ACEOF
14763#define uint16_t unsigned short
14764_ACEOF
14765
14766fi
14767
14768ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
14769if test "x$ac_cv_type_uint32_t" = xyes; then :
14770
14771else
14772
14773cat >>confdefs.h <<_ACEOF
14774#define uint32_t unsigned int
14775_ACEOF
14776
14777fi
14778
14779ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
14780if test "x$ac_cv_type_uint64_t" = xyes; then :
14781
14782else
14783
14784cat >>confdefs.h <<_ACEOF
14785#define uint64_t unsigned long long
14786_ACEOF
14787
14788fi
14789
14790ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14791if test "x$ac_cv_type_size_t" = xyes; then :
14792
14793else
14794
14795cat >>confdefs.h <<_ACEOF
14796#define size_t unsigned int
14797_ACEOF
14798
14799fi
14800
14801ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14802if test "x$ac_cv_type_ssize_t" = xyes; then :
14803
14804else
14805
14806cat >>confdefs.h <<_ACEOF
14807#define ssize_t int
14808_ACEOF
14809
14810fi
14811
14812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
14813$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14814if ${ac_cv_type_uid_t+:} false; then :
14815  $as_echo_n "(cached) " >&6
14816else
14817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14818/* end confdefs.h.  */
14819#include <sys/types.h>
14820
14821_ACEOF
14822if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14823  $EGREP "uid_t" >/dev/null 2>&1; then :
14824  ac_cv_type_uid_t=yes
14825else
14826  ac_cv_type_uid_t=no
14827fi
14828rm -f conftest*
14829
14830fi
14831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
14832$as_echo "$ac_cv_type_uid_t" >&6; }
14833if test $ac_cv_type_uid_t = no; then
14834
14835$as_echo "#define uid_t int" >>confdefs.h
14836
14837
14838$as_echo "#define gid_t int" >>confdefs.h
14839
14840fi
14841
14842ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14843if test "x$ac_cv_type_pid_t" = xyes; then :
14844
14845else
14846
14847cat >>confdefs.h <<_ACEOF
14848#define pid_t int
14849_ACEOF
14850
14851fi
14852
14853ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14854if test "x$ac_cv_type_off_t" = xyes; then :
14855
14856else
14857
14858cat >>confdefs.h <<_ACEOF
14859#define off_t long int
14860_ACEOF
14861
14862fi
14863
14864ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "
14865$ac_includes_default
14866#ifdef HAVE_WINSOCK2_H
14867#  include <winsock2.h>
14868#endif
14869
14870"
14871if test "x$ac_cv_type_u_char" = xyes; then :
14872
14873else
14874
14875$as_echo "#define u_char unsigned char" >>confdefs.h
14876
14877fi
14878
14879ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "
14880$ac_includes_default
14881#ifdef HAVE_SYS_RESOURCE_H
14882#  include <sys/resource.h>
14883#endif
14884
14885"
14886if test "x$ac_cv_type_rlim_t" = xyes; then :
14887
14888else
14889
14890$as_echo "#define rlim_t unsigned long" >>confdefs.h
14891
14892fi
14893
14894
14895ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14896$ac_includes_default
14897#ifdef HAVE_SYS_SOCKET_H
14898#  include <sys/socket.h>
14899#endif
14900#ifdef HAVE_WS2TCPIP_H
14901#  include <ws2tcpip.h>
14902#endif
14903
14904"
14905if test "x$ac_cv_type_socklen_t" = xyes; then :
14906
14907else
14908
14909$as_echo "#define socklen_t int" >>confdefs.h
14910
14911fi
14912
14913 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
14914$ac_includes_default
14915#ifdef HAVE_SYS_TYPES_H
14916# include <sys/types.h>
14917#endif
14918#ifdef HAVE_NETINET_IN_H
14919# include <netinet/in.h>
14920#endif
14921
14922"
14923if test "x$ac_cv_type_in_addr_t" = xyes; then :
14924
14925else
14926
14927$as_echo "#define in_addr_t uint32_t" >>confdefs.h
14928
14929fi
14930
14931 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
14932$ac_includes_default
14933#ifdef HAVE_SYS_TYPES_H
14934# include <sys/types.h>
14935#endif
14936#ifdef HAVE_NETINET_IN_H
14937# include <netinet/in.h>
14938#endif
14939
14940"
14941if test "x$ac_cv_type_in_port_t" = xyes; then :
14942
14943else
14944
14945$as_echo "#define in_port_t uint16_t" >>confdefs.h
14946
14947fi
14948
14949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
14950$as_echo_n "checking if memcmp compares unsigned... " >&6; }
14951if test "$cross_compiling" = yes; then :
14952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
14953$as_echo "cross-compile no" >&6; }
14954
14955$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
14956
14957  case " $LIBOBJS " in
14958  *" memcmp.$ac_objext "* ) ;;
14959  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14960 ;;
14961esac
14962
14963
14964else
14965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14966/* end confdefs.h.  */
14967
14968#include <stdio.h>
14969#include <stdlib.h>
14970#include <string.h>
14971int main(void)
14972{
14973	char a = 255, b = 0;
14974	if(memcmp(&a, &b, 1) < 0)
14975		return 1;
14976	return 0;
14977}
14978
14979_ACEOF
14980if ac_fn_c_try_run "$LINENO"; then :
14981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14982$as_echo "yes" >&6; }
14983else
14984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14985$as_echo "no" >&6; }
14986
14987$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
14988
14989  case " $LIBOBJS " in
14990  *" memcmp.$ac_objext "* ) ;;
14991  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14992 ;;
14993esac
14994
14995
14996fi
14997rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14998  conftest.$ac_objext conftest.beam conftest.$ac_ext
14999fi
15000
15001
15002# The cast to long int works around a bug in the HP C Compiler
15003# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15004# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15005# This bug is HP SR number 8606223364.
15006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
15007$as_echo_n "checking size of time_t... " >&6; }
15008if ${ac_cv_sizeof_time_t+:} false; then :
15009  $as_echo_n "(cached) " >&6
15010else
15011  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "
15012$ac_includes_default
15013#ifdef TIME_WITH_SYS_TIME
15014# include <sys/time.h>
15015# include <time.h>
15016#else
15017# ifdef HAVE_SYS_TIME_H
15018#  include <sys/time.h>
15019# else
15020#  include <time.h>
15021# endif
15022#endif
15023
15024"; then :
15025
15026else
15027  if test "$ac_cv_type_time_t" = yes; then
15028     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15029$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15030as_fn_error 77 "cannot compute sizeof (time_t)
15031See \`config.log' for more details" "$LINENO" 5; }
15032   else
15033     ac_cv_sizeof_time_t=0
15034   fi
15035fi
15036
15037fi
15038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
15039$as_echo "$ac_cv_sizeof_time_t" >&6; }
15040
15041
15042
15043cat >>confdefs.h <<_ACEOF
15044#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
15045_ACEOF
15046
15047
15048
15049# add option to disable the evil rpath
15050
15051# Check whether --enable-rpath was given.
15052if test "${enable_rpath+set}" = set; then :
15053  enableval=$enable_rpath; enable_rpath=$enableval
15054else
15055  enable_rpath=yes
15056fi
15057
15058if test "x$enable_rpath" = xno; then
15059		ac_config_commands="$ac_config_commands disable-rpath"
15060
15061fi
15062
15063
15064
15065# check to see if libraries are needed for these functions.
15066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
15067$as_echo_n "checking for library containing inet_pton... " >&6; }
15068if ${ac_cv_search_inet_pton+:} false; then :
15069  $as_echo_n "(cached) " >&6
15070else
15071  ac_func_search_save_LIBS=$LIBS
15072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15073/* end confdefs.h.  */
15074
15075/* Override any GCC internal prototype to avoid an error.
15076   Use char because int might match the return type of a GCC
15077   builtin and then its argument prototype would still apply.  */
15078#ifdef __cplusplus
15079extern "C"
15080#endif
15081char inet_pton ();
15082int
15083main ()
15084{
15085return inet_pton ();
15086  ;
15087  return 0;
15088}
15089_ACEOF
15090for ac_lib in '' nsl; do
15091  if test -z "$ac_lib"; then
15092    ac_res="none required"
15093  else
15094    ac_res=-l$ac_lib
15095    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15096  fi
15097  if ac_fn_c_try_link "$LINENO"; then :
15098  ac_cv_search_inet_pton=$ac_res
15099fi
15100rm -f core conftest.err conftest.$ac_objext \
15101    conftest$ac_exeext
15102  if ${ac_cv_search_inet_pton+:} false; then :
15103  break
15104fi
15105done
15106if ${ac_cv_search_inet_pton+:} false; then :
15107
15108else
15109  ac_cv_search_inet_pton=no
15110fi
15111rm conftest.$ac_ext
15112LIBS=$ac_func_search_save_LIBS
15113fi
15114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
15115$as_echo "$ac_cv_search_inet_pton" >&6; }
15116ac_res=$ac_cv_search_inet_pton
15117if test "$ac_res" != no; then :
15118  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15119
15120fi
15121
15122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
15123$as_echo_n "checking for library containing socket... " >&6; }
15124if ${ac_cv_search_socket+:} false; then :
15125  $as_echo_n "(cached) " >&6
15126else
15127  ac_func_search_save_LIBS=$LIBS
15128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15129/* end confdefs.h.  */
15130
15131/* Override any GCC internal prototype to avoid an error.
15132   Use char because int might match the return type of a GCC
15133   builtin and then its argument prototype would still apply.  */
15134#ifdef __cplusplus
15135extern "C"
15136#endif
15137char socket ();
15138int
15139main ()
15140{
15141return socket ();
15142  ;
15143  return 0;
15144}
15145_ACEOF
15146for ac_lib in '' socket; do
15147  if test -z "$ac_lib"; then
15148    ac_res="none required"
15149  else
15150    ac_res=-l$ac_lib
15151    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15152  fi
15153  if ac_fn_c_try_link "$LINENO"; then :
15154  ac_cv_search_socket=$ac_res
15155fi
15156rm -f core conftest.err conftest.$ac_objext \
15157    conftest$ac_exeext
15158  if ${ac_cv_search_socket+:} false; then :
15159  break
15160fi
15161done
15162if ${ac_cv_search_socket+:} false; then :
15163
15164else
15165  ac_cv_search_socket=no
15166fi
15167rm conftest.$ac_ext
15168LIBS=$ac_func_search_save_LIBS
15169fi
15170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
15171$as_echo "$ac_cv_search_socket" >&6; }
15172ac_res=$ac_cv_search_socket
15173if test "$ac_res" != no; then :
15174  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15175
15176fi
15177
15178
15179# check wether strptime also works
15180
15181# check some functions of the OS before linking libs (while still runnable).
15182for ac_header in unistd.h
15183do :
15184  ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
15185if test "x$ac_cv_header_unistd_h" = xyes; then :
15186  cat >>confdefs.h <<_ACEOF
15187#define HAVE_UNISTD_H 1
15188_ACEOF
15189
15190fi
15191
15192done
15193
15194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
15195$as_echo_n "checking for working chown... " >&6; }
15196if ${ac_cv_func_chown_works+:} false; then :
15197  $as_echo_n "(cached) " >&6
15198else
15199  if test "$cross_compiling" = yes; then :
15200  ac_cv_func_chown_works=no
15201else
15202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15203/* end confdefs.h.  */
15204$ac_includes_default
15205#include <fcntl.h>
15206
15207int
15208main ()
15209{
15210  char *f = "conftest.chown";
15211  struct stat before, after;
15212
15213  if (creat (f, 0600) < 0)
15214    return 1;
15215  if (stat (f, &before) < 0)
15216    return 1;
15217  if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
15218    return 1;
15219  if (stat (f, &after) < 0)
15220    return 1;
15221  return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
15222
15223  ;
15224  return 0;
15225}
15226_ACEOF
15227if ac_fn_c_try_run "$LINENO"; then :
15228  ac_cv_func_chown_works=yes
15229else
15230  ac_cv_func_chown_works=no
15231fi
15232rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15233  conftest.$ac_objext conftest.beam conftest.$ac_ext
15234fi
15235
15236rm -f conftest.chown
15237
15238fi
15239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
15240$as_echo "$ac_cv_func_chown_works" >&6; }
15241if test $ac_cv_func_chown_works = yes; then
15242
15243$as_echo "#define HAVE_CHOWN 1" >>confdefs.h
15244
15245fi
15246
15247for ac_header in vfork.h
15248do :
15249  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15250if test "x$ac_cv_header_vfork_h" = xyes; then :
15251  cat >>confdefs.h <<_ACEOF
15252#define HAVE_VFORK_H 1
15253_ACEOF
15254
15255fi
15256
15257done
15258
15259for ac_func in fork vfork
15260do :
15261  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15262ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15263if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15264  cat >>confdefs.h <<_ACEOF
15265#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15266_ACEOF
15267
15268fi
15269done
15270
15271if test "x$ac_cv_func_fork" = xyes; then
15272  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15273$as_echo_n "checking for working fork... " >&6; }
15274if ${ac_cv_func_fork_works+:} false; then :
15275  $as_echo_n "(cached) " >&6
15276else
15277  if test "$cross_compiling" = yes; then :
15278  ac_cv_func_fork_works=cross
15279else
15280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15281/* end confdefs.h.  */
15282$ac_includes_default
15283int
15284main ()
15285{
15286
15287	  /* By Ruediger Kuhlmann. */
15288	  return fork () < 0;
15289
15290  ;
15291  return 0;
15292}
15293_ACEOF
15294if ac_fn_c_try_run "$LINENO"; then :
15295  ac_cv_func_fork_works=yes
15296else
15297  ac_cv_func_fork_works=no
15298fi
15299rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15300  conftest.$ac_objext conftest.beam conftest.$ac_ext
15301fi
15302
15303fi
15304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15305$as_echo "$ac_cv_func_fork_works" >&6; }
15306
15307else
15308  ac_cv_func_fork_works=$ac_cv_func_fork
15309fi
15310if test "x$ac_cv_func_fork_works" = xcross; then
15311  case $host in
15312    *-*-amigaos* | *-*-msdosdjgpp*)
15313      # Override, as these systems have only a dummy fork() stub
15314      ac_cv_func_fork_works=no
15315      ;;
15316    *)
15317      ac_cv_func_fork_works=yes
15318      ;;
15319  esac
15320  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15321$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15322fi
15323ac_cv_func_vfork_works=$ac_cv_func_vfork
15324if test "x$ac_cv_func_vfork" = xyes; then
15325  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15326$as_echo_n "checking for working vfork... " >&6; }
15327if ${ac_cv_func_vfork_works+:} false; then :
15328  $as_echo_n "(cached) " >&6
15329else
15330  if test "$cross_compiling" = yes; then :
15331  ac_cv_func_vfork_works=cross
15332else
15333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15334/* end confdefs.h.  */
15335/* Thanks to Paul Eggert for this test.  */
15336$ac_includes_default
15337#include <sys/wait.h>
15338#ifdef HAVE_VFORK_H
15339# include <vfork.h>
15340#endif
15341/* On some sparc systems, changes by the child to local and incoming
15342   argument registers are propagated back to the parent.  The compiler
15343   is told about this with #include <vfork.h>, but some compilers
15344   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
15345   static variable whose address is put into a register that is
15346   clobbered by the vfork.  */
15347static void
15348#ifdef __cplusplus
15349sparc_address_test (int arg)
15350# else
15351sparc_address_test (arg) int arg;
15352#endif
15353{
15354  static pid_t child;
15355  if (!child) {
15356    child = vfork ();
15357    if (child < 0) {
15358      perror ("vfork");
15359      _exit(2);
15360    }
15361    if (!child) {
15362      arg = getpid();
15363      write(-1, "", 0);
15364      _exit (arg);
15365    }
15366  }
15367}
15368
15369int
15370main ()
15371{
15372  pid_t parent = getpid ();
15373  pid_t child;
15374
15375  sparc_address_test (0);
15376
15377  child = vfork ();
15378
15379  if (child == 0) {
15380    /* Here is another test for sparc vfork register problems.  This
15381       test uses lots of local variables, at least as many local
15382       variables as main has allocated so far including compiler
15383       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
15384       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
15385       reuse the register of parent for one of the local variables,
15386       since it will think that parent can't possibly be used any more
15387       in this routine.  Assigning to the local variable will thus
15388       munge parent in the parent process.  */
15389    pid_t
15390      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15391      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15392    /* Convince the compiler that p..p7 are live; otherwise, it might
15393       use the same hardware register for all 8 local variables.  */
15394    if (p != p1 || p != p2 || p != p3 || p != p4
15395	|| p != p5 || p != p6 || p != p7)
15396      _exit(1);
15397
15398    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15399       from child file descriptors.  If the child closes a descriptor
15400       before it execs or exits, this munges the parent's descriptor
15401       as well.  Test for this by closing stdout in the child.  */
15402    _exit(close(fileno(stdout)) != 0);
15403  } else {
15404    int status;
15405    struct stat st;
15406
15407    while (wait(&status) != child)
15408      ;
15409    return (
15410	 /* Was there some problem with vforking?  */
15411	 child < 0
15412
15413	 /* Did the child fail?  (This shouldn't happen.)  */
15414	 || status
15415
15416	 /* Did the vfork/compiler bug occur?  */
15417	 || parent != getpid()
15418
15419	 /* Did the file descriptor bug occur?  */
15420	 || fstat(fileno(stdout), &st) != 0
15421	 );
15422  }
15423}
15424_ACEOF
15425if ac_fn_c_try_run "$LINENO"; then :
15426  ac_cv_func_vfork_works=yes
15427else
15428  ac_cv_func_vfork_works=no
15429fi
15430rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15431  conftest.$ac_objext conftest.beam conftest.$ac_ext
15432fi
15433
15434fi
15435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15436$as_echo "$ac_cv_func_vfork_works" >&6; }
15437
15438fi;
15439if test "x$ac_cv_func_fork_works" = xcross; then
15440  ac_cv_func_vfork_works=$ac_cv_func_vfork
15441  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15442$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15443fi
15444
15445if test "x$ac_cv_func_vfork_works" = xyes; then
15446
15447$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15448
15449else
15450
15451$as_echo "#define vfork fork" >>confdefs.h
15452
15453fi
15454if test "x$ac_cv_func_fork_works" = xyes; then
15455
15456$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15457
15458fi
15459
15460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
15461$as_echo_n "checking return type of signal handlers... " >&6; }
15462if ${ac_cv_type_signal+:} false; then :
15463  $as_echo_n "(cached) " >&6
15464else
15465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15466/* end confdefs.h.  */
15467#include <sys/types.h>
15468#include <signal.h>
15469
15470int
15471main ()
15472{
15473return *(signal (0, 0)) (0) == 1;
15474  ;
15475  return 0;
15476}
15477_ACEOF
15478if ac_fn_c_try_compile "$LINENO"; then :
15479  ac_cv_type_signal=int
15480else
15481  ac_cv_type_signal=void
15482fi
15483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15484fi
15485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
15486$as_echo "$ac_cv_type_signal" >&6; }
15487
15488cat >>confdefs.h <<_ACEOF
15489#define RETSIGTYPE $ac_cv_type_signal
15490_ACEOF
15491
15492
15493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15494$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
15495if ${ac_cv_sys_largefile_source+:} false; then :
15496  $as_echo_n "(cached) " >&6
15497else
15498  while :; do
15499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15500/* end confdefs.h.  */
15501#include <sys/types.h> /* for off_t */
15502     #include <stdio.h>
15503int
15504main ()
15505{
15506int (*fp) (FILE *, off_t, int) = fseeko;
15507     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15508  ;
15509  return 0;
15510}
15511_ACEOF
15512if ac_fn_c_try_link "$LINENO"; then :
15513  ac_cv_sys_largefile_source=no; break
15514fi
15515rm -f core conftest.err conftest.$ac_objext \
15516    conftest$ac_exeext conftest.$ac_ext
15517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15518/* end confdefs.h.  */
15519#define _LARGEFILE_SOURCE 1
15520#include <sys/types.h> /* for off_t */
15521     #include <stdio.h>
15522int
15523main ()
15524{
15525int (*fp) (FILE *, off_t, int) = fseeko;
15526     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15527  ;
15528  return 0;
15529}
15530_ACEOF
15531if ac_fn_c_try_link "$LINENO"; then :
15532  ac_cv_sys_largefile_source=1; break
15533fi
15534rm -f core conftest.err conftest.$ac_objext \
15535    conftest$ac_exeext conftest.$ac_ext
15536  ac_cv_sys_largefile_source=unknown
15537  break
15538done
15539fi
15540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
15541$as_echo "$ac_cv_sys_largefile_source" >&6; }
15542case $ac_cv_sys_largefile_source in #(
15543  no | unknown) ;;
15544  *)
15545cat >>confdefs.h <<_ACEOF
15546#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15547_ACEOF
15548;;
15549esac
15550rm -rf conftest*
15551
15552# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15553# in glibc 2.1.3, but that breaks too many other things.
15554# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15555if test $ac_cv_sys_largefile_source != unknown; then
15556
15557$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15558
15559fi
15560
15561
15562# Check whether --enable-largefile was given.
15563if test "${enable_largefile+set}" = set; then :
15564  enableval=$enable_largefile;
15565fi
15566
15567if test "$enable_largefile" != no; then
15568
15569  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15570$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15571if ${ac_cv_sys_largefile_CC+:} false; then :
15572  $as_echo_n "(cached) " >&6
15573else
15574  ac_cv_sys_largefile_CC=no
15575     if test "$GCC" != yes; then
15576       ac_save_CC=$CC
15577       while :; do
15578	 # IRIX 6.2 and later do not support large files by default,
15579	 # so use the C compiler's -n32 option if that helps.
15580	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15581/* end confdefs.h.  */
15582#include <sys/types.h>
15583 /* Check that off_t can represent 2**63 - 1 correctly.
15584    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15585    since some C++ compilers masquerading as C compilers
15586    incorrectly reject 9223372036854775807.  */
15587#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15588  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15589		       && LARGE_OFF_T % 2147483647 == 1)
15590		      ? 1 : -1];
15591int
15592main ()
15593{
15594
15595  ;
15596  return 0;
15597}
15598_ACEOF
15599	 if ac_fn_c_try_compile "$LINENO"; then :
15600  break
15601fi
15602rm -f core conftest.err conftest.$ac_objext
15603	 CC="$CC -n32"
15604	 if ac_fn_c_try_compile "$LINENO"; then :
15605  ac_cv_sys_largefile_CC=' -n32'; break
15606fi
15607rm -f core conftest.err conftest.$ac_objext
15608	 break
15609       done
15610       CC=$ac_save_CC
15611       rm -f conftest.$ac_ext
15612    fi
15613fi
15614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15615$as_echo "$ac_cv_sys_largefile_CC" >&6; }
15616  if test "$ac_cv_sys_largefile_CC" != no; then
15617    CC=$CC$ac_cv_sys_largefile_CC
15618  fi
15619
15620  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15621$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15622if ${ac_cv_sys_file_offset_bits+:} false; then :
15623  $as_echo_n "(cached) " >&6
15624else
15625  while :; do
15626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15627/* end confdefs.h.  */
15628#include <sys/types.h>
15629 /* Check that off_t can represent 2**63 - 1 correctly.
15630    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15631    since some C++ compilers masquerading as C compilers
15632    incorrectly reject 9223372036854775807.  */
15633#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15634  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15635		       && LARGE_OFF_T % 2147483647 == 1)
15636		      ? 1 : -1];
15637int
15638main ()
15639{
15640
15641  ;
15642  return 0;
15643}
15644_ACEOF
15645if ac_fn_c_try_compile "$LINENO"; then :
15646  ac_cv_sys_file_offset_bits=no; break
15647fi
15648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15650/* end confdefs.h.  */
15651#define _FILE_OFFSET_BITS 64
15652#include <sys/types.h>
15653 /* Check that off_t can represent 2**63 - 1 correctly.
15654    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15655    since some C++ compilers masquerading as C compilers
15656    incorrectly reject 9223372036854775807.  */
15657#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15658  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15659		       && LARGE_OFF_T % 2147483647 == 1)
15660		      ? 1 : -1];
15661int
15662main ()
15663{
15664
15665  ;
15666  return 0;
15667}
15668_ACEOF
15669if ac_fn_c_try_compile "$LINENO"; then :
15670  ac_cv_sys_file_offset_bits=64; break
15671fi
15672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15673  ac_cv_sys_file_offset_bits=unknown
15674  break
15675done
15676fi
15677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15678$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15679case $ac_cv_sys_file_offset_bits in #(
15680  no | unknown) ;;
15681  *)
15682cat >>confdefs.h <<_ACEOF
15683#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15684_ACEOF
15685;;
15686esac
15687rm -rf conftest*
15688  if test $ac_cv_sys_file_offset_bits = unknown; then
15689    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15690$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15691if ${ac_cv_sys_large_files+:} false; then :
15692  $as_echo_n "(cached) " >&6
15693else
15694  while :; do
15695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15696/* end confdefs.h.  */
15697#include <sys/types.h>
15698 /* Check that off_t can represent 2**63 - 1 correctly.
15699    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15700    since some C++ compilers masquerading as C compilers
15701    incorrectly reject 9223372036854775807.  */
15702#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15703  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15704		       && LARGE_OFF_T % 2147483647 == 1)
15705		      ? 1 : -1];
15706int
15707main ()
15708{
15709
15710  ;
15711  return 0;
15712}
15713_ACEOF
15714if ac_fn_c_try_compile "$LINENO"; then :
15715  ac_cv_sys_large_files=no; break
15716fi
15717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15719/* end confdefs.h.  */
15720#define _LARGE_FILES 1
15721#include <sys/types.h>
15722 /* Check that off_t can represent 2**63 - 1 correctly.
15723    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15724    since some C++ compilers masquerading as C compilers
15725    incorrectly reject 9223372036854775807.  */
15726#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15727  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15728		       && LARGE_OFF_T % 2147483647 == 1)
15729		      ? 1 : -1];
15730int
15731main ()
15732{
15733
15734  ;
15735  return 0;
15736}
15737_ACEOF
15738if ac_fn_c_try_compile "$LINENO"; then :
15739  ac_cv_sys_large_files=1; break
15740fi
15741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15742  ac_cv_sys_large_files=unknown
15743  break
15744done
15745fi
15746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15747$as_echo "$ac_cv_sys_large_files" >&6; }
15748case $ac_cv_sys_large_files in #(
15749  no | unknown) ;;
15750  *)
15751cat >>confdefs.h <<_ACEOF
15752#define _LARGE_FILES $ac_cv_sys_large_files
15753_ACEOF
15754;;
15755esac
15756rm -rf conftest*
15757  fi
15758
15759
15760fi
15761
15762
15763
15764
15765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
15766$as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
15767cache=_D_LARGEFILE_SOURCE_1
15768if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
15769  $as_echo_n "(cached) " >&6
15770else
15771
15772echo '
15773#include <stdio.h>
15774int test() {
15775        int a = fseeko(stdin, 0, 0);
15776        return a;
15777}
15778' > conftest.c
15779echo 'void f(){}' >>conftest.c
15780if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
15781eval "cv_prog_cc_flag_needed_$cache=no"
15782else
15783
15784if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
15785eval "cv_prog_cc_flag_needed_$cache=yes"
15786else
15787eval "cv_prog_cc_flag_needed_$cache=fail"
15788#echo 'Test with flag fails too!'
15789#cat conftest.c
15790#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15791#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
15792#exit 1
15793fi
15794
15795fi
15796rm -f conftest conftest.c conftest.o
15797
15798fi
15799
15800if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
15801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15802$as_echo "yes" >&6; }
15803:
15804CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
15805else
15806if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
15807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15808$as_echo "no" >&6; }
15809#echo 'Test with flag is no!'
15810#cat conftest.c
15811#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15812#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
15813#exit 1
15814:
15815
15816else
15817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15818$as_echo "failed" >&6; }
15819:
15820
15821fi
15822fi
15823
15824
15825
15826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
15827$as_echo_n "checking if nonblocking sockets work... " >&6; }
15828if echo $target | grep mingw32 >/dev/null; then
15829	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
15830$as_echo "no (windows)" >&6; }
15831
15832$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
15833
15834else
15835if test "$cross_compiling" = yes; then :
15836
15837	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
15838$as_echo "crosscompile(yes)" >&6; }
15839
15840else
15841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15842/* end confdefs.h.  */
15843
15844
15845#include <stdio.h>
15846#include <string.h>
15847#include <stdlib.h>
15848#include <fcntl.h>
15849#include <errno.h>
15850#ifdef HAVE_SYS_TYPES_H
15851#include <sys/types.h>
15852#endif
15853#ifdef HAVE_SYS_SOCKET_H
15854#include <sys/socket.h>
15855#endif
15856#ifdef HAVE_NETINET_IN_H
15857#include <netinet/in.h>
15858#endif
15859#ifdef HAVE_ARPA_INET_H
15860#include <arpa/inet.h>
15861#endif
15862#ifdef HAVE_UNISTD_H
15863#include <unistd.h>
15864#endif
15865#ifdef HAVE_TIME_H
15866#include <time.h>
15867#endif
15868
15869int main(void)
15870{
15871	int port;
15872	int sfd, cfd;
15873	int num = 10;
15874	int i, p;
15875	struct sockaddr_in a;
15876	/* test if select and nonblocking reads work well together */
15877	/* open port.
15878	   fork child to send 10 messages.
15879	   select to read.
15880	   then try to nonblocking read the 10 messages
15881	   then, nonblocking read must give EAGAIN
15882	*/
15883
15884	port = 12345 + (time(0)%32);
15885	sfd = socket(PF_INET, SOCK_DGRAM, 0);
15886	if(sfd == -1) {
15887		perror("socket");
15888		return 1;
15889	}
15890	memset(&a, 0, sizeof(a));
15891	a.sin_family = AF_INET;
15892	a.sin_port = htons(port);
15893	a.sin_addr.s_addr = inet_addr("127.0.0.1");
15894	if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
15895		perror("bind");
15896		return 1;
15897	}
15898	if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
15899		perror("fcntl");
15900		return 1;
15901	}
15902
15903	cfd = socket(PF_INET, SOCK_DGRAM, 0);
15904	if(cfd == -1) {
15905		perror("client socket");
15906		return 1;
15907	}
15908	a.sin_port = 0;
15909	if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
15910		perror("client bind");
15911		return 1;
15912	}
15913	a.sin_port = htons(port);
15914
15915	/* no handler, causes exit in 10 seconds */
15916	alarm(10);
15917
15918	/* send and receive on the socket */
15919	if((p=fork()) == 0) {
15920		for(i=0; i<num; i++) {
15921			if(sendto(cfd, &i, sizeof(i), 0,
15922				(struct sockaddr*)&a, sizeof(a)) < 0) {
15923				perror("sendto");
15924				return 1;
15925			}
15926		}
15927	} else {
15928		/* parent */
15929		fd_set rset;
15930		int x;
15931		if(p == -1) {
15932			perror("fork");
15933			return 1;
15934		}
15935		FD_ZERO(&rset);
15936		FD_SET(sfd, &rset);
15937		if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
15938			perror("select");
15939			return 1;
15940		}
15941		i = 0;
15942		while(i < num) {
15943			if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
15944				if(errno == EAGAIN)
15945					continue;
15946				perror("recv");
15947				return 1;
15948			}
15949			i++;
15950		}
15951		/* now we want to get EAGAIN: nonblocking goodness */
15952		errno = 0;
15953		recv(sfd, &x, sizeof(x), 0);
15954		if(errno != EAGAIN) {
15955			perror("trying to recv again");
15956			return 1;
15957		}
15958		/* EAGAIN encountered */
15959	}
15960
15961	close(sfd);
15962	close(cfd);
15963	return 0;
15964}
15965
15966_ACEOF
15967if ac_fn_c_try_run "$LINENO"; then :
15968
15969	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15970$as_echo "yes" >&6; }
15971
15972else
15973
15974	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15975$as_echo "no" >&6; }
15976
15977$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
15978
15979
15980fi
15981rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15982  conftest.$ac_objext conftest.beam conftest.$ac_ext
15983fi
15984
15985fi
15986
15987
15988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
15989$as_echo_n "checking whether mkdir has one arg... " >&6; }
15990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15991/* end confdefs.h.  */
15992
15993#include <stdio.h>
15994#include <unistd.h>
15995#ifdef HAVE_WINSOCK2_H
15996#include <winsock2.h>
15997#endif
15998#ifdef HAVE_SYS_STAT_H
15999#include <sys/stat.h>
16000#endif
16001
16002int
16003main ()
16004{
16005
16006	(void)mkdir("directory");
16007
16008  ;
16009  return 0;
16010}
16011_ACEOF
16012if ac_fn_c_try_compile "$LINENO"; then :
16013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16014$as_echo "yes" >&6; }
16015
16016$as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
16017
16018
16019else
16020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16021$as_echo "no" >&6; }
16022
16023fi
16024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16025
16026for ac_func in strptime
16027do :
16028  ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
16029if test "x$ac_cv_func_strptime" = xyes; then :
16030  cat >>confdefs.h <<_ACEOF
16031#define HAVE_STRPTIME 1
16032_ACEOF
16033
16034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
16035$as_echo_n "checking whether strptime works... " >&6; }
16036if test c${cross_compiling} = cno; then
16037if test "$cross_compiling" = yes; then :
16038  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16039$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16040as_fn_error $? "cannot run test program while cross compiling
16041See \`config.log' for more details" "$LINENO" 5; }
16042else
16043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16044/* end confdefs.h.  */
16045
16046#define _XOPEN_SOURCE 600
16047#include <time.h>
16048int main(void) { struct tm tm; char *res;
16049res = 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);
16050if (!res) return 2;
16051res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
16052if (!res) return 1; return 0; }
16053
16054_ACEOF
16055if ac_fn_c_try_run "$LINENO"; then :
16056  eval "ac_cv_c_strptime_works=yes"
16057else
16058  eval "ac_cv_c_strptime_works=no"
16059fi
16060rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16061  conftest.$ac_objext conftest.beam conftest.$ac_ext
16062fi
16063
16064else
16065eval "ac_cv_c_strptime_works=maybe"
16066fi
16067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
16068$as_echo "$ac_cv_c_strptime_works" >&6; }
16069if test $ac_cv_c_strptime_works = no; then
16070case " $LIBOBJS " in
16071  *" strptime.$ac_objext "* ) ;;
16072  *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
16073 ;;
16074esac
16075
16076else
16077
16078cat >>confdefs.h <<_ACEOF
16079#define STRPTIME_WORKS 1
16080_ACEOF
16081
16082fi
16083
16084else
16085  case " $LIBOBJS " in
16086  *" strptime.$ac_objext "* ) ;;
16087  *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
16088 ;;
16089esac
16090
16091fi
16092done
16093
16094
16095# check if we can use SO_REUSEPORT
16096if echo "$host" | grep -i -e linux -e dragonfly >/dev/null; then
16097
16098$as_echo "#define REUSEPORT_DEFAULT 1" >>confdefs.h
16099
16100else
16101
16102$as_echo "#define REUSEPORT_DEFAULT 0" >>confdefs.h
16103
16104fi
16105
16106# set memory allocation checking if requested
16107# Check whether --enable-alloc-checks was given.
16108if test "${enable_alloc_checks+set}" = set; then :
16109  enableval=$enable_alloc_checks;
16110fi
16111
16112# Check whether --enable-alloc-lite was given.
16113if test "${enable_alloc_lite+set}" = set; then :
16114  enableval=$enable_alloc_lite;
16115fi
16116
16117# Check whether --enable-alloc-nonregional was given.
16118if test "${enable_alloc_nonregional+set}" = set; then :
16119  enableval=$enable_alloc_nonregional;
16120fi
16121
16122if test x_$enable_alloc_nonregional = x_yes; then
16123
16124$as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h
16125
16126fi
16127if test x_$enable_alloc_checks = x_yes; then
16128
16129$as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h
16130
16131else
16132	if test x_$enable_alloc_lite = x_yes; then
16133
16134$as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h
16135
16136	else
16137
16138	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
16139$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
16140	if test "$cross_compiling" = yes; then :
16141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5
16142$as_echo "no (crosscompile)" >&6; }
16143	case " $LIBOBJS " in
16144  *" malloc.$ac_objext "* ) ;;
16145  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
16146 ;;
16147esac
16148
16149
16150cat >>confdefs.h <<_ACEOF
16151#define malloc rpl_malloc_unbound
16152_ACEOF
16153
16154else
16155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16156/* end confdefs.h.  */
16157#if defined STDC_HEADERS || defined HAVE_STDLIB_H
16158#include <stdlib.h>
16159#else
16160char *malloc ();
16161#endif
16162
16163int
16164main ()
16165{
16166 if(malloc(0) != 0) return 1;
16167  ;
16168  return 0;
16169}
16170
16171_ACEOF
16172if ac_fn_c_try_run "$LINENO"; then :
16173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16174$as_echo "no" >&6; }
16175	case " $LIBOBJS " in
16176  *" malloc.$ac_objext "* ) ;;
16177  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
16178 ;;
16179esac
16180
16181
16182cat >>confdefs.h <<_ACEOF
16183#define malloc rpl_malloc_unbound
16184_ACEOF
16185
16186else
16187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16188$as_echo "yes" >&6; }
16189
16190$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
16191
16192fi
16193rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16194  conftest.$ac_objext conftest.beam conftest.$ac_ext
16195fi
16196
16197
16198	fi
16199fi
16200
16201# check windows threads (we use them, not pthreads, on windows).
16202if test "$on_mingw" = "yes"; then
16203# check windows threads
16204	for ac_header in windows.h
16205do :
16206  ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
16207"
16208if test "x$ac_cv_header_windows_h" = xyes; then :
16209  cat >>confdefs.h <<_ACEOF
16210#define HAVE_WINDOWS_H 1
16211_ACEOF
16212
16213fi
16214
16215done
16216
16217	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5
16218$as_echo_n "checking for CreateThread... " >&6; }
16219	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16220/* end confdefs.h.  */
16221
16222#ifdef HAVE_WINDOWS_H
16223#include <windows.h>
16224#endif
16225
16226int
16227main ()
16228{
16229
16230	HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
16231
16232  ;
16233  return 0;
16234}
16235_ACEOF
16236if ac_fn_c_try_compile "$LINENO"; then :
16237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16238$as_echo "yes" >&6; }
16239
16240$as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h
16241
16242
16243else
16244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16245$as_echo "no" >&6; }
16246
16247fi
16248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16249
16250else
16251# not on mingw, check thread libraries.
16252
16253# check for thread library.
16254# check this first, so that the pthread lib does not get linked in via
16255# libssl or libpython, and thus distorts the tests, and we end up using
16256# the non-threadsafe C libraries.
16257
16258# Check whether --with-pthreads was given.
16259if test "${with_pthreads+set}" = set; then :
16260  withval=$with_pthreads;
16261else
16262   withval="yes"
16263fi
16264
16265ub_have_pthreads=no
16266if test x_$withval != x_no; then
16267
16268
16269ac_ext=c
16270ac_cpp='$CPP $CPPFLAGS'
16271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16273ac_compiler_gnu=$ac_cv_c_compiler_gnu
16274
16275ax_pthread_ok=no
16276
16277# We used to check for pthread.h first, but this fails if pthread.h
16278# requires special compiler flags (e.g. on True64 or Sequent).
16279# It gets checked for in the link test anyway.
16280
16281# First of all, check if the user has set any of the PTHREAD_LIBS,
16282# etcetera environment variables, and if threads linking works using
16283# them:
16284if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16285        save_CFLAGS="$CFLAGS"
16286        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16287        save_LIBS="$LIBS"
16288        LIBS="$PTHREAD_LIBS $LIBS"
16289        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16290$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16291        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16292/* end confdefs.h.  */
16293
16294/* Override any GCC internal prototype to avoid an error.
16295   Use char because int might match the return type of a GCC
16296   builtin and then its argument prototype would still apply.  */
16297#ifdef __cplusplus
16298extern "C"
16299#endif
16300char pthread_join ();
16301int
16302main ()
16303{
16304return pthread_join ();
16305  ;
16306  return 0;
16307}
16308_ACEOF
16309if ac_fn_c_try_link "$LINENO"; then :
16310  ax_pthread_ok=yes
16311fi
16312rm -f core conftest.err conftest.$ac_objext \
16313    conftest$ac_exeext conftest.$ac_ext
16314        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16315$as_echo "$ax_pthread_ok" >&6; }
16316        if test x"$ax_pthread_ok" = xno; then
16317                PTHREAD_LIBS=""
16318                PTHREAD_CFLAGS=""
16319        fi
16320        LIBS="$save_LIBS"
16321        CFLAGS="$save_CFLAGS"
16322fi
16323
16324# We must check for the threads library under a number of different
16325# names; the ordering is very important because some systems
16326# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16327# libraries is broken (non-POSIX).
16328
16329# Create a list of thread flags to try.  Items starting with a "-" are
16330# C compiler flags, and other items are library names, except for "none"
16331# which indicates that we try without any flags at all, and "pthread-config"
16332# which is a program returning the flags for the Pth emulation library.
16333
16334ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16335
16336# The ordering *is* (sometimes) important.  Some notes on the
16337# individual items follow:
16338
16339# pthreads: AIX (must check this before -lpthread)
16340# none: in case threads are in libc; should be tried before -Kthread and
16341#       other compiler flags to prevent continual compiler warnings
16342# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16343# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16344# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16345# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16346# -pthreads: Solaris/gcc
16347# -mthreads: Mingw32/gcc, Lynx/gcc
16348# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16349#      doesn't hurt to check since this sometimes defines pthreads too;
16350#      also defines -D_REENTRANT)
16351#      ... -mt is also the pthreads flag for HP/aCC
16352# pthread: Linux, etcetera
16353# --thread-safe: KAI C++
16354# pthread-config: use pthread-config program (for GNU Pth library)
16355
16356case ${host_os} in
16357        solaris*)
16358
16359        # On Solaris (at least, for some versions), libc contains stubbed
16360        # (non-functional) versions of the pthreads routines, so link-based
16361        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
16362        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
16363        # a function called by this macro, so we could check for that, but
16364        # who knows whether they'll stub that too in a future libc.)  So,
16365        # we'll just look for -pthreads and -lpthread first:
16366
16367        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
16368        ;;
16369
16370        darwin*)
16371        ax_pthread_flags="-pthread $ax_pthread_flags"
16372        ;;
16373esac
16374
16375# Clang doesn't consider unrecognized options an error unless we specify
16376# -Werror. We throw in some extra Clang-specific options to ensure that
16377# this doesn't happen for GCC, which also accepts -Werror.
16378
16379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
16380$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
16381save_CFLAGS="$CFLAGS"
16382ax_pthread_extra_flags="-Werror"
16383CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
16384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16385/* end confdefs.h.  */
16386int foo(void);
16387int
16388main ()
16389{
16390foo()
16391  ;
16392  return 0;
16393}
16394_ACEOF
16395if ac_fn_c_try_compile "$LINENO"; then :
16396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16397$as_echo "yes" >&6; }
16398else
16399  ax_pthread_extra_flags=
16400                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16401$as_echo "no" >&6; }
16402fi
16403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16404CFLAGS="$save_CFLAGS"
16405
16406if test x"$ax_pthread_ok" = xno; then
16407for flag in $ax_pthread_flags; do
16408
16409        case $flag in
16410                none)
16411                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16412$as_echo_n "checking whether pthreads work without any flags... " >&6; }
16413                ;;
16414
16415                -*)
16416                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16417$as_echo_n "checking whether pthreads work with $flag... " >&6; }
16418                PTHREAD_CFLAGS="$flag"
16419                ;;
16420
16421                pthread-config)
16422                # Extract the first word of "pthread-config", so it can be a program name with args.
16423set dummy pthread-config; ac_word=$2
16424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16425$as_echo_n "checking for $ac_word... " >&6; }
16426if ${ac_cv_prog_ax_pthread_config+:} false; then :
16427  $as_echo_n "(cached) " >&6
16428else
16429  if test -n "$ax_pthread_config"; then
16430  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
16431else
16432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16433for as_dir in $PATH
16434do
16435  IFS=$as_save_IFS
16436  test -z "$as_dir" && as_dir=.
16437    for ac_exec_ext in '' $ac_executable_extensions; do
16438  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16439    ac_cv_prog_ax_pthread_config="yes"
16440    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16441    break 2
16442  fi
16443done
16444  done
16445IFS=$as_save_IFS
16446
16447  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
16448fi
16449fi
16450ax_pthread_config=$ac_cv_prog_ax_pthread_config
16451if test -n "$ax_pthread_config"; then
16452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
16453$as_echo "$ax_pthread_config" >&6; }
16454else
16455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16456$as_echo "no" >&6; }
16457fi
16458
16459
16460                if test x"$ax_pthread_config" = xno; then continue; fi
16461                PTHREAD_CFLAGS="`pthread-config --cflags`"
16462                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16463                ;;
16464
16465                *)
16466                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16467$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16468                PTHREAD_LIBS="-l$flag"
16469                ;;
16470        esac
16471
16472        save_LIBS="$LIBS"
16473        save_CFLAGS="$CFLAGS"
16474        LIBS="$PTHREAD_LIBS $LIBS"
16475        CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
16476
16477        # Check for various functions.  We must include pthread.h,
16478        # since some functions may be macros.  (On the Sequent, we
16479        # need a special flag -Kthread to make this header compile.)
16480        # We check for pthread_join because it is in -lpthread on IRIX
16481        # while pthread_create is in libc.  We check for pthread_attr_init
16482        # due to DEC craziness with -lpthreads.  We check for
16483        # pthread_cleanup_push because it is one of the few pthread
16484        # functions on Solaris that doesn't have a non-functional libc stub.
16485        # We try pthread_create on general principles.
16486        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16487/* end confdefs.h.  */
16488#include <pthread.h>
16489                        static void routine(void *a) { *((int*)a) = 0; }
16490                        static void *start_routine(void *a) { return a; }
16491int
16492main ()
16493{
16494pthread_t th; pthread_attr_t attr;
16495                        pthread_create(&th, 0, start_routine, 0);
16496                        pthread_join(th, 0);
16497                        pthread_attr_init(&attr);
16498                        pthread_cleanup_push(routine, 0);
16499                        pthread_cleanup_pop(0) /* ; */
16500  ;
16501  return 0;
16502}
16503_ACEOF
16504if ac_fn_c_try_link "$LINENO"; then :
16505  ax_pthread_ok=yes
16506fi
16507rm -f core conftest.err conftest.$ac_objext \
16508    conftest$ac_exeext conftest.$ac_ext
16509
16510        LIBS="$save_LIBS"
16511        CFLAGS="$save_CFLAGS"
16512
16513        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16514$as_echo "$ax_pthread_ok" >&6; }
16515        if test "x$ax_pthread_ok" = xyes; then
16516                break;
16517        fi
16518
16519        PTHREAD_LIBS=""
16520        PTHREAD_CFLAGS=""
16521done
16522fi
16523
16524# Various other checks:
16525if test "x$ax_pthread_ok" = xyes; then
16526        save_LIBS="$LIBS"
16527        LIBS="$PTHREAD_LIBS $LIBS"
16528        save_CFLAGS="$CFLAGS"
16529        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16530
16531        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16532        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16533$as_echo_n "checking for joinable pthread attribute... " >&6; }
16534        attr_name=unknown
16535        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16536            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16537/* end confdefs.h.  */
16538#include <pthread.h>
16539int
16540main ()
16541{
16542int attr = $attr; return attr /* ; */
16543  ;
16544  return 0;
16545}
16546_ACEOF
16547if ac_fn_c_try_link "$LINENO"; then :
16548  attr_name=$attr; break
16549fi
16550rm -f core conftest.err conftest.$ac_objext \
16551    conftest$ac_exeext conftest.$ac_ext
16552        done
16553        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16554$as_echo "$attr_name" >&6; }
16555        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16556
16557cat >>confdefs.h <<_ACEOF
16558#define PTHREAD_CREATE_JOINABLE $attr_name
16559_ACEOF
16560
16561        fi
16562
16563        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16564$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16565        flag=no
16566        case ${host_os} in
16567            aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
16568            osf* | hpux*) flag="-D_REENTRANT";;
16569            solaris*)
16570            if test "$GCC" = "yes"; then
16571                flag="-D_REENTRANT"
16572            else
16573                # TODO: What about Clang on Solaris?
16574                flag="-mt -D_REENTRANT"
16575            fi
16576            ;;
16577        esac
16578        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
16579$as_echo "$flag" >&6; }
16580        if test "x$flag" != xno; then
16581            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16582        fi
16583
16584        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16585$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16586if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
16587  $as_echo_n "(cached) " >&6
16588else
16589
16590                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16591/* end confdefs.h.  */
16592#include <pthread.h>
16593int
16594main ()
16595{
16596int i = PTHREAD_PRIO_INHERIT;
16597  ;
16598  return 0;
16599}
16600_ACEOF
16601if ac_fn_c_try_link "$LINENO"; then :
16602  ax_cv_PTHREAD_PRIO_INHERIT=yes
16603else
16604  ax_cv_PTHREAD_PRIO_INHERIT=no
16605fi
16606rm -f core conftest.err conftest.$ac_objext \
16607    conftest$ac_exeext conftest.$ac_ext
16608
16609fi
16610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16611$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16612        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
16613
16614$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16615
16616fi
16617
16618        LIBS="$save_LIBS"
16619        CFLAGS="$save_CFLAGS"
16620
16621        # More AIX lossage: compile with *_r variant
16622        if test "x$GCC" != xyes; then
16623            case $host_os in
16624                aix*)
16625                case "x/$CC" in #(
16626  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
16627    #handle absolute path differently from PATH based program lookup
16628                   case "x$CC" in #(
16629  x/*) :
16630    if as_fn_executable_p ${CC}_r; then :
16631  PTHREAD_CC="${CC}_r"
16632fi ;; #(
16633  *) :
16634    for ac_prog in ${CC}_r
16635do
16636  # Extract the first word of "$ac_prog", so it can be a program name with args.
16637set dummy $ac_prog; ac_word=$2
16638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16639$as_echo_n "checking for $ac_word... " >&6; }
16640if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16641  $as_echo_n "(cached) " >&6
16642else
16643  if test -n "$PTHREAD_CC"; then
16644  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16645else
16646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16647for as_dir in $PATH
16648do
16649  IFS=$as_save_IFS
16650  test -z "$as_dir" && as_dir=.
16651    for ac_exec_ext in '' $ac_executable_extensions; do
16652  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16653    ac_cv_prog_PTHREAD_CC="$ac_prog"
16654    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16655    break 2
16656  fi
16657done
16658  done
16659IFS=$as_save_IFS
16660
16661fi
16662fi
16663PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16664if test -n "$PTHREAD_CC"; then
16665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16666$as_echo "$PTHREAD_CC" >&6; }
16667else
16668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16669$as_echo "no" >&6; }
16670fi
16671
16672
16673  test -n "$PTHREAD_CC" && break
16674done
16675test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16676 ;;
16677esac ;; #(
16678  *) :
16679     ;;
16680esac
16681                ;;
16682            esac
16683        fi
16684fi
16685
16686test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16687
16688
16689
16690
16691
16692# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16693if test x"$ax_pthread_ok" = xyes; then
16694
16695
16696$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16697
16698		if test -n "$PTHREAD_LIBS"; then
16699		  LIBS="$PTHREAD_LIBS $LIBS"
16700		fi
16701		CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16702		CC="$PTHREAD_CC"
16703		ub_have_pthreads=yes
16704		ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h>
16705"
16706if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then :
16707
16708cat >>confdefs.h <<_ACEOF
16709#define HAVE_PTHREAD_SPINLOCK_T 1
16710_ACEOF
16711
16712
16713fi
16714ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
16715"
16716if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
16717
16718cat >>confdefs.h <<_ACEOF
16719#define HAVE_PTHREAD_RWLOCK_T 1
16720_ACEOF
16721
16722
16723fi
16724
16725
16726		if echo "$CFLAGS" | $GREP -e "-pthread" >/dev/null; then
16727		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread unused during linking" >&5
16728$as_echo_n "checking if -pthread unused during linking... " >&6; }
16729		# catch clang warning 'argument unused during compilation'
16730		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16731/* end confdefs.h.  */
16732$ac_includes_default
16733
16734int main(void) {return 0;}
16735
16736_ACEOF
16737		pthread_unused="yes"
16738		# first compile
16739		echo "$CC $CFLAGS -c conftest.c -o conftest.o" >&5
16740		$CC $CFLAGS -c conftest.c -o conftest.o 2>&5 >&5
16741		if test $? = 0; then
16742			# then link
16743			echo "$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest contest.o" >&5
16744			$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest conftest.o 2>&5 >&5
16745			if test $? -ne 0; then
16746				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16747$as_echo "yes" >&6; }
16748				CFLAGS=`echo "$CFLAGS" | sed -e 's/-pthread//'`
16749				PTHREAD_CFLAGS_ONLY="-pthread"
16750
16751			else
16752				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16753$as_echo "no" >&6; }
16754			fi
16755		else
16756			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16757$as_echo "no" >&6; }
16758		fi # endif cc successful
16759		rm -f conftest conftest.c conftest.o
16760		fi # endif -pthread in CFLAGS
16761
16762
16763        :
16764else
16765        ax_pthread_ok=no
16766
16767fi
16768ac_ext=c
16769ac_cpp='$CPP $CPPFLAGS'
16770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16772ac_compiler_gnu=$ac_cv_c_compiler_gnu
16773
16774
16775fi
16776
16777# check solaris thread library
16778
16779# Check whether --with-solaris-threads was given.
16780if test "${with_solaris_threads+set}" = set; then :
16781  withval=$with_solaris_threads;
16782else
16783   withval="no"
16784fi
16785
16786ub_have_sol_threads=no
16787if test x_$withval != x_no; then
16788	if test x_$ub_have_pthreads != x_no; then
16789	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
16790$as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
16791	else
16792	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
16793$as_echo_n "checking for library containing thr_create... " >&6; }
16794if ${ac_cv_search_thr_create+:} false; then :
16795  $as_echo_n "(cached) " >&6
16796else
16797  ac_func_search_save_LIBS=$LIBS
16798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16799/* end confdefs.h.  */
16800
16801/* Override any GCC internal prototype to avoid an error.
16802   Use char because int might match the return type of a GCC
16803   builtin and then its argument prototype would still apply.  */
16804#ifdef __cplusplus
16805extern "C"
16806#endif
16807char thr_create ();
16808int
16809main ()
16810{
16811return thr_create ();
16812  ;
16813  return 0;
16814}
16815_ACEOF
16816for ac_lib in '' thread; do
16817  if test -z "$ac_lib"; then
16818    ac_res="none required"
16819  else
16820    ac_res=-l$ac_lib
16821    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16822  fi
16823  if ac_fn_c_try_link "$LINENO"; then :
16824  ac_cv_search_thr_create=$ac_res
16825fi
16826rm -f core conftest.err conftest.$ac_objext \
16827    conftest$ac_exeext
16828  if ${ac_cv_search_thr_create+:} false; then :
16829  break
16830fi
16831done
16832if ${ac_cv_search_thr_create+:} false; then :
16833
16834else
16835  ac_cv_search_thr_create=no
16836fi
16837rm conftest.$ac_ext
16838LIBS=$ac_func_search_save_LIBS
16839fi
16840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
16841$as_echo "$ac_cv_search_thr_create" >&6; }
16842ac_res=$ac_cv_search_thr_create
16843if test "$ac_res" != no; then :
16844  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16845
16846
16847$as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h
16848
16849
16850
16851
16852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5
16853$as_echo_n "checking whether $CC supports -mt... " >&6; }
16854cache=`echo mt | sed 'y%.=/+-%___p_%'`
16855if eval \${cv_prog_cc_flag_$cache+:} false; then :
16856  $as_echo_n "(cached) " >&6
16857else
16858
16859echo 'void f(void){}' >conftest.c
16860if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then
16861eval "cv_prog_cc_flag_$cache=yes"
16862else
16863eval "cv_prog_cc_flag_$cache=no"
16864fi
16865rm -f conftest conftest.o conftest.c
16866
16867fi
16868
16869if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
16870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16871$as_echo "yes" >&6; }
16872:
16873CFLAGS="$CFLAGS -mt"
16874else
16875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16876$as_echo "no" >&6; }
16877:
16878CFLAGS="$CFLAGS -D_REENTRANT"
16879fi
16880
16881		ub_have_sol_threads=yes
16882
16883else
16884
16885		as_fn_error $? "no solaris threads found." "$LINENO" 5
16886
16887fi
16888
16889	fi
16890fi
16891
16892fi # end of non-mingw check of thread libraries
16893
16894# Check for PyUnbound
16895
16896# Check whether --with-pyunbound was given.
16897if test "${with_pyunbound+set}" = set; then :
16898  withval=$with_pyunbound;
16899else
16900   withval="no"
16901fi
16902
16903
16904ub_test_python=no
16905ub_with_pyunbound=no
16906if test x_$withval != x_no; then
16907   ub_with_pyunbound=yes
16908   ub_test_python=yes
16909fi
16910
16911# Check for Python module
16912
16913# Check whether --with-pythonmodule was given.
16914if test "${with_pythonmodule+set}" = set; then :
16915  withval=$with_pythonmodule;
16916else
16917   withval="no"
16918fi
16919
16920
16921ub_with_pythonmod=no
16922if test x_$withval != x_no; then
16923   ub_with_pythonmod=yes
16924   ub_test_python=yes
16925fi
16926
16927# Check for Python & SWIG only on PyUnbound or PyModule
16928if test x_$ub_test_python != x_no; then
16929
16930   # Check for Python
16931   ub_have_python=no
16932   ac_save_LIBS="$LIBS"
16933        #
16934        # Allow the use of a (user set) custom python version
16935        #
16936
16937
16938        # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
16939set dummy python$PYTHON_VERSION; ac_word=$2
16940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16941$as_echo_n "checking for $ac_word... " >&6; }
16942if ${ac_cv_path_PYTHON+:} false; then :
16943  $as_echo_n "(cached) " >&6
16944else
16945  case $PYTHON in
16946  [\\/]* | ?:[\\/]*)
16947  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
16948  ;;
16949  *)
16950  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16951for as_dir in $PATH
16952do
16953  IFS=$as_save_IFS
16954  test -z "$as_dir" && as_dir=.
16955    for ac_exec_ext in '' $ac_executable_extensions; do
16956  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16957    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
16958    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16959    break 2
16960  fi
16961done
16962  done
16963IFS=$as_save_IFS
16964
16965  ;;
16966esac
16967fi
16968PYTHON=$ac_cv_path_PYTHON
16969if test -n "$PYTHON"; then
16970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
16971$as_echo "$PYTHON" >&6; }
16972else
16973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16974$as_echo "no" >&6; }
16975fi
16976
16977
16978        if test -z "$PYTHON"; then
16979           as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
16980           PYTHON_VERSION=""
16981        fi
16982
16983        if test -z "$PYTHON_VERSION"; then
16984		PYTHON_VERSION=`$PYTHON -c "import sys; \
16985			print(sys.version.split()[0])"`
16986	fi
16987
16988        #
16989        # Check if you have distutils, else fail
16990        #
16991        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
16992$as_echo_n "checking for the distutils Python package... " >&6; }
16993        if ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`; then
16994                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16995$as_echo "yes" >&6; }
16996        else
16997                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16998$as_echo "no" >&6; }
16999                as_fn_error $? "cannot import Python module \"distutils\".
17000Please check your Python installation. The error was:
17001$ac_distutils_result" "$LINENO" 5
17002                PYTHON_VERSION=""
17003        fi
17004
17005        #
17006        # Check for Python include path
17007        #
17008        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
17009$as_echo_n "checking for Python include path... " >&6; }
17010        if test -z "$PYTHON_CPPFLAGS"; then
17011                python_path=`$PYTHON -c "import distutils.sysconfig; \
17012                        print(distutils.sysconfig.get_python_inc());"`
17013                if test -n "${python_path}"; then
17014                        python_path="-I$python_path"
17015                fi
17016                PYTHON_CPPFLAGS=$python_path
17017        fi
17018        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
17019$as_echo "$PYTHON_CPPFLAGS" >&6; }
17020
17021
17022        #
17023        # Check for Python library path
17024        #
17025        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
17026$as_echo_n "checking for Python library path... " >&6; }
17027        if test -z "$PYTHON_LDFLAGS"; then
17028                PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
17029                        print('-L'+get_config_var('LIBDIR')+' -L'+get_config_var('LIBDEST')+' '+get_config_var('BLDLIBRARY'));"`
17030        fi
17031        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
17032$as_echo "$PYTHON_LDFLAGS" >&6; }
17033
17034
17035        #
17036        # Check for site packages
17037        #
17038        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
17039$as_echo_n "checking for Python site-packages path... " >&6; }
17040        if test -z "$PYTHON_SITE_PKG"; then
17041                PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
17042                        print(distutils.sysconfig.get_python_lib(1,0));"`
17043        fi
17044        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
17045$as_echo "$PYTHON_SITE_PKG" >&6; }
17046
17047
17048        #
17049        # final check to see if everything compiles alright
17050        #
17051        { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
17052$as_echo_n "checking consistency of all components of python development environment... " >&6; }
17053        ac_ext=c
17054ac_cpp='$CPP $CPPFLAGS'
17055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17057ac_compiler_gnu=$ac_cv_c_compiler_gnu
17058
17059        # save current global flags
17060        ac_save_LIBS="$LIBS"
17061        ac_save_CPPFLAGS="$CPPFLAGS"
17062
17063        LIBS="$LIBS $PYTHON_LDFLAGS"
17064        CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
17065        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17066/* end confdefs.h.  */
17067
17068                #include <Python.h>
17069
17070int
17071main ()
17072{
17073
17074                Py_Initialize();
17075
17076  ;
17077  return 0;
17078}
17079_ACEOF
17080if ac_fn_c_try_link "$LINENO"; then :
17081  pythonexists=yes
17082else
17083  pythonexists=no
17084fi
17085rm -f core conftest.err conftest.$ac_objext \
17086    conftest$ac_exeext conftest.$ac_ext
17087
17088        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
17089$as_echo "$pythonexists" >&6; }
17090
17091        if test ! "$pythonexists" = "yes"; then
17092           as_fn_error $? "
17093  Could not link test program to Python. Maybe the main Python library has been
17094  installed in some non-standard library path. If so, pass it to configure,
17095  via the LDFLAGS environment variable.
17096  Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
17097  ============================================================================
17098   ERROR!
17099   You probably have to install the development version of the Python package
17100   for your distribution.  The exact name of this package varies among them.
17101  ============================================================================
17102           " "$LINENO" 5
17103          PYTHON_VERSION=""
17104        fi
17105        ac_ext=c
17106ac_cpp='$CPP $CPPFLAGS'
17107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17109ac_compiler_gnu=$ac_cv_c_compiler_gnu
17110
17111        # turn back to default flags
17112        CPPFLAGS="$ac_save_CPPFLAGS"
17113        LIBS="$ac_save_LIBS"
17114
17115        #
17116        # all done!
17117        #
17118
17119   if test ! -z "$PYTHON_VERSION"; then
17120	if test `$PYTHON -c "print('$PYTHON_VERSION' >= '2.4.0')"` = "False"; then
17121		as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5
17122	fi
17123
17124      PY_MAJOR_VERSION="`$PYTHON -c \"import sys; print(sys.version_info[0])\"`"
17125
17126      # Have Python
17127
17128$as_echo "#define HAVE_PYTHON 1" >>confdefs.h
17129
17130      if test -n "$LIBS"; then
17131        LIBS="$PYTHON_LDFLAGS $LIBS"
17132      else
17133        LIBS="$PYTHON_LDFLAGS"
17134      fi
17135      if test -n "$CPPFLAGS"; then
17136        CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
17137      else
17138        CPPFLAGS="$PYTHON_CPPFLAGS"
17139      fi
17140      ub_have_python=yes
17141      if test -n "$PKG_CONFIG" && \
17142    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"python\${PY_MAJOR_VERSION}\"\""; } >&5
17143  ($PKG_CONFIG --exists --print-errors ""python${PY_MAJOR_VERSION}"") 2>&5
17144  ac_status=$?
17145  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17146  test $ac_status = 0; }; then
17147  PC_PY_DEPENDENCY="python${PY_MAJOR_VERSION}"
17148else
17149  PC_PY_DEPENDENCY="python"
17150fi
17151
17152
17153      # Check for SWIG
17154      ub_have_swig=no
17155      # Check whether --enable-swig-version-check was given.
17156if test "${enable_swig_version_check+set}" = set; then :
17157  enableval=$enable_swig_version_check;
17158fi
17159
17160      if test "$enable_swig_version_check" = "yes"; then
17161
17162        # Extract the first word of "swig", so it can be a program name with args.
17163set dummy swig; ac_word=$2
17164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17165$as_echo_n "checking for $ac_word... " >&6; }
17166if ${ac_cv_path_SWIG+:} false; then :
17167  $as_echo_n "(cached) " >&6
17168else
17169  case $SWIG in
17170  [\\/]* | ?:[\\/]*)
17171  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
17172  ;;
17173  *)
17174  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17175for as_dir in $PATH
17176do
17177  IFS=$as_save_IFS
17178  test -z "$as_dir" && as_dir=.
17179    for ac_exec_ext in '' $ac_executable_extensions; do
17180  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17181    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
17182    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17183    break 2
17184  fi
17185done
17186  done
17187IFS=$as_save_IFS
17188
17189  ;;
17190esac
17191fi
17192SWIG=$ac_cv_path_SWIG
17193if test -n "$SWIG"; then
17194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
17195$as_echo "$SWIG" >&6; }
17196else
17197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17198$as_echo "no" >&6; }
17199fi
17200
17201
17202        if test -z "$SWIG" ; then
17203                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
17204$as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
17205                SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
17206        elif test -n "2.0.1" ; then
17207                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
17208$as_echo_n "checking for SWIG version... " >&6; }
17209                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'`
17210                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
17211$as_echo "$swig_version" >&6; }
17212                if test -n "$swig_version" ; then
17213                        # Calculate the required version number components
17214                        required=2.0.1
17215                        required_major=`echo $required | sed 's/[^0-9].*//'`
17216                        if test -z "$required_major" ; then
17217                                required_major=0
17218                        fi
17219                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17220                        required_minor=`echo $required | sed 's/[^0-9].*//'`
17221                        if test -z "$required_minor" ; then
17222                                required_minor=0
17223                        fi
17224                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17225                        required_patch=`echo $required | sed 's/[^0-9].*//'`
17226                        if test -z "$required_patch" ; then
17227                                required_patch=0
17228                        fi
17229                        # Calculate the available version number components
17230                        available=$swig_version
17231                        available_major=`echo $available | sed 's/[^0-9].*//'`
17232                        if test -z "$available_major" ; then
17233                                available_major=0
17234                        fi
17235                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17236                        available_minor=`echo $available | sed 's/[^0-9].*//'`
17237                        if test -z "$available_minor" ; then
17238                                available_minor=0
17239                        fi
17240                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17241                        available_patch=`echo $available | sed 's/[^0-9].*//'`
17242                        if test -z "$available_patch" ; then
17243                                available_patch=0
17244                        fi
17245			badversion=0
17246			if test $available_major -lt $required_major ; then
17247				badversion=1
17248			fi
17249                        if test $available_major -eq $required_major \
17250                                -a $available_minor -lt $required_minor ; then
17251				badversion=1
17252			fi
17253                        if test $available_major -eq $required_major \
17254                                -a $available_minor -eq $required_minor \
17255                                -a $available_patch -lt $required_patch ; then
17256				badversion=1
17257			fi
17258			if test $badversion -eq 1 ; then
17259                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= 2.0.1 is required.  You have $swig_version.  You should look at http://www.swig.org" >&5
17260$as_echo "$as_me: WARNING: SWIG version >= 2.0.1 is required.  You have $swig_version.  You should look at http://www.swig.org" >&2;}
17261                                SWIG='echo "Error: SWIG version >= 2.0.1 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
17262                        else
17263                                { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
17264$as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
17265                                SWIG_LIB=`$SWIG -swiglib`
17266                                { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
17267$as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
17268                        fi
17269                else
17270                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
17271$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
17272                        SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
17273                fi
17274        fi
17275
17276
17277      else
17278
17279        # Extract the first word of "swig", so it can be a program name with args.
17280set dummy swig; ac_word=$2
17281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17282$as_echo_n "checking for $ac_word... " >&6; }
17283if ${ac_cv_path_SWIG+:} false; then :
17284  $as_echo_n "(cached) " >&6
17285else
17286  case $SWIG in
17287  [\\/]* | ?:[\\/]*)
17288  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
17289  ;;
17290  *)
17291  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17292for as_dir in $PATH
17293do
17294  IFS=$as_save_IFS
17295  test -z "$as_dir" && as_dir=.
17296    for ac_exec_ext in '' $ac_executable_extensions; do
17297  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17298    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
17299    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17300    break 2
17301  fi
17302done
17303  done
17304IFS=$as_save_IFS
17305
17306  ;;
17307esac
17308fi
17309SWIG=$ac_cv_path_SWIG
17310if test -n "$SWIG"; then
17311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
17312$as_echo "$SWIG" >&6; }
17313else
17314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17315$as_echo "no" >&6; }
17316fi
17317
17318
17319        if test -z "$SWIG" ; then
17320                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
17321$as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
17322                SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
17323        elif test -n "" ; then
17324                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
17325$as_echo_n "checking for SWIG version... " >&6; }
17326                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'`
17327                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
17328$as_echo "$swig_version" >&6; }
17329                if test -n "$swig_version" ; then
17330                        # Calculate the required version number components
17331                        required=
17332                        required_major=`echo $required | sed 's/[^0-9].*//'`
17333                        if test -z "$required_major" ; then
17334                                required_major=0
17335                        fi
17336                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17337                        required_minor=`echo $required | sed 's/[^0-9].*//'`
17338                        if test -z "$required_minor" ; then
17339                                required_minor=0
17340                        fi
17341                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17342                        required_patch=`echo $required | sed 's/[^0-9].*//'`
17343                        if test -z "$required_patch" ; then
17344                                required_patch=0
17345                        fi
17346                        # Calculate the available version number components
17347                        available=$swig_version
17348                        available_major=`echo $available | sed 's/[^0-9].*//'`
17349                        if test -z "$available_major" ; then
17350                                available_major=0
17351                        fi
17352                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17353                        available_minor=`echo $available | sed 's/[^0-9].*//'`
17354                        if test -z "$available_minor" ; then
17355                                available_minor=0
17356                        fi
17357                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17358                        available_patch=`echo $available | sed 's/[^0-9].*//'`
17359                        if test -z "$available_patch" ; then
17360                                available_patch=0
17361                        fi
17362			badversion=0
17363			if test $available_major -lt $required_major ; then
17364				badversion=1
17365			fi
17366                        if test $available_major -eq $required_major \
17367                                -a $available_minor -lt $required_minor ; then
17368				badversion=1
17369			fi
17370                        if test $available_major -eq $required_major \
17371                                -a $available_minor -eq $required_minor \
17372                                -a $available_patch -lt $required_patch ; then
17373				badversion=1
17374			fi
17375			if test $badversion -eq 1 ; then
17376                                { $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
17377$as_echo "$as_me: WARNING: SWIG version >=  is required.  You have $swig_version.  You should look at http://www.swig.org" >&2;}
17378                                SWIG='echo "Error: SWIG version >=  is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
17379                        else
17380                                { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
17381$as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
17382                                SWIG_LIB=`$SWIG -swiglib`
17383                                { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
17384$as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
17385                        fi
17386                else
17387                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
17388$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
17389                        SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
17390                fi
17391        fi
17392
17393
17394      fi
17395      { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5
17396$as_echo_n "checking SWIG... " >&6; }
17397      if test ! -x "$SWIG"; then
17398         as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5
17399      else
17400
17401$as_echo "#define HAVE_SWIG 1" >>confdefs.h
17402
17403         swig="$SWIG"
17404
17405         { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5
17406$as_echo "present" >&6; }
17407
17408         # If have Python & SWIG
17409         # Declare PythonMod
17410         if test x_$ub_with_pythonmod != x_no; then
17411
17412$as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h
17413
17414            WITH_PYTHONMODULE=yes
17415
17416	    PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo"
17417
17418	    PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h'
17419
17420	    PYTHONMOD_INSTALL=pythonmod-install
17421
17422	    PYTHONMOD_UNINSTALL=pythonmod-uninstall
17423
17424         fi
17425
17426         # Declare PyUnbound
17427         if test x_$ub_with_pyunbound != x_no; then
17428
17429$as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h
17430
17431            WITH_PYUNBOUND=yes
17432
17433	    PYUNBOUND_OBJ="libunbound_wrap.lo"
17434
17435	    PYUNBOUND_TARGET="_unbound.la"
17436
17437	    PYUNBOUND_INSTALL=pyunbound-install
17438
17439	    PYUNBOUND_UNINSTALL=pyunbound-uninstall
17440
17441         fi
17442      fi
17443   else
17444      { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
17445$as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
17446      ub_with_pyunbound=no
17447      ub_with_pythonmod=no
17448   fi
17449fi
17450
17451if test "`uname`" = "NetBSD"; then
17452	NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
17453
17454fi
17455CONFIG_DATE=`date +%Y%m%d`
17456
17457
17458# Checks for libraries.
17459
17460# libnss
17461USE_NSS="no"
17462
17463# Check whether --with-nss was given.
17464if test "${with_nss+set}" = set; then :
17465  withval=$with_nss;
17466	USE_NSS="yes"
17467
17468$as_echo "#define HAVE_NSS 1" >>confdefs.h
17469
17470	if test "$withval" != "" -a "$withval" != "yes"; then
17471		CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
17472		LDFLAGS="$LDFLAGS -L$withval/lib"
17473
17474	if test "x$enable_rpath" = xyes; then
17475		if echo "$withval/lib" | grep "^/" >/dev/null; then
17476			RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
17477		fi
17478	fi
17479
17480		CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
17481	else
17482		CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
17483		CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
17484	fi
17485        LIBS="$LIBS -lnss3 -lnspr4"
17486	SSLLIB=""
17487
17488
17489fi
17490
17491
17492# libnettle
17493USE_NETTLE="no"
17494
17495# Check whether --with-nettle was given.
17496if test "${with_nettle+set}" = set; then :
17497  withval=$with_nettle;
17498	USE_NETTLE="yes"
17499
17500$as_echo "#define HAVE_NETTLE 1" >>confdefs.h
17501
17502	for ac_header in nettle/dsa-compat.h
17503do :
17504  ac_fn_c_check_header_compile "$LINENO" "nettle/dsa-compat.h" "ac_cv_header_nettle_dsa_compat_h" "$ac_includes_default
17505"
17506if test "x$ac_cv_header_nettle_dsa_compat_h" = xyes; then :
17507  cat >>confdefs.h <<_ACEOF
17508#define HAVE_NETTLE_DSA_COMPAT_H 1
17509_ACEOF
17510
17511fi
17512
17513done
17514
17515	if test "$withval" != "" -a "$withval" != "yes"; then
17516		CPPFLAGS="$CPPFLAGS -I$withval/include/nettle"
17517		LDFLAGS="$LDFLAGS -L$withval/lib"
17518
17519	if test "x$enable_rpath" = xyes; then
17520		if echo "$withval/lib" | grep "^/" >/dev/null; then
17521			RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
17522		fi
17523	fi
17524
17525	else
17526		CPPFLAGS="$CPPFLAGS -I/usr/include/nettle"
17527	fi
17528        LIBS="$LIBS -lhogweed -lnettle -lgmp"
17529	SSLLIB=""
17530
17531
17532fi
17533
17534
17535# openssl
17536if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
17537
17538
17539# Check whether --with-ssl was given.
17540if test "${with_ssl+set}" = set; then :
17541  withval=$with_ssl;
17542
17543else
17544
17545            withval="yes"
17546
17547fi
17548
17549    if test x_$withval = x_no; then
17550	as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5
17551    fi
17552
17553    withval=$withval
17554    if test x_$withval != x_no; then
17555        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
17556$as_echo_n "checking for SSL... " >&6; }
17557        if test x_$withval = x_ -o x_$withval = x_yes; then
17558            withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
17559        fi
17560        for dir in $withval; do
17561            ssldir="$dir"
17562            if test -f "$dir/include/openssl/ssl.h"; then
17563                found_ssl="yes"
17564
17565cat >>confdefs.h <<_ACEOF
17566#define HAVE_SSL /**/
17567_ACEOF
17568
17569                                if test "$ssldir" != "/usr"; then
17570                        CPPFLAGS="$CPPFLAGS -I$ssldir/include"
17571                        LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
17572                fi
17573                break;
17574            fi
17575        done
17576        if test x_$found_ssl != x_yes; then
17577            as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
17578        else
17579            { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
17580$as_echo "found in $ssldir" >&6; }
17581            HAVE_SSL=yes
17582                        if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
17583                LDFLAGS="$LDFLAGS -L$ssldir/lib"
17584                LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
17585
17586	if test "x$enable_rpath" = xyes; then
17587		if echo "$ssldir/lib" | grep "^/" >/dev/null; then
17588			RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
17589		fi
17590	fi
17591
17592            fi
17593
17594            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
17595$as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
17596            LIBS="$LIBS -lcrypto"
17597            LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
17598            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17599/* end confdefs.h.  */
17600
17601int
17602main ()
17603{
17604
17605                int HMAC_Update(void);
17606                (void)HMAC_Update();
17607
17608  ;
17609  return 0;
17610}
17611_ACEOF
17612if ac_fn_c_try_link "$LINENO"; then :
17613
17614                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17615$as_echo "yes" >&6; }
17616
17617$as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17618
17619
17620else
17621
17622                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17623$as_echo "no" >&6; }
17624                # check if -lwsock32 or -lgdi32 are needed.
17625                BAKLIBS="$LIBS"
17626                BAKSSLLIBS="$LIBSSL_LIBS"
17627		LIBS="$LIBS -lgdi32 -lws2_32"
17628		LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32"
17629                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
17630$as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
17631                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17632/* end confdefs.h.  */
17633
17634int
17635main ()
17636{
17637
17638                    int HMAC_Update(void);
17639                    (void)HMAC_Update();
17640
17641  ;
17642  return 0;
17643}
17644_ACEOF
17645if ac_fn_c_try_link "$LINENO"; then :
17646
17647
17648$as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17649
17650                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17651$as_echo "yes" >&6; }
17652
17653else
17654
17655                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17656$as_echo "no" >&6; }
17657                    LIBS="$BAKLIBS"
17658                    LIBSSL_LIBS="$BAKSSLLIBS"
17659                    LIBS="$LIBS -ldl"
17660                    LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
17661                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
17662$as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
17663                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17664/* end confdefs.h.  */
17665
17666int
17667main ()
17668{
17669
17670                        int HMAC_Update(void);
17671                        (void)HMAC_Update();
17672
17673  ;
17674  return 0;
17675}
17676_ACEOF
17677if ac_fn_c_try_link "$LINENO"; then :
17678
17679
17680$as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17681
17682                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17683$as_echo "yes" >&6; }
17684
17685else
17686
17687                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17688$as_echo "no" >&6; }
17689                        LIBS="$BAKLIBS"
17690                        LIBSSL_LIBS="$BAKSSLLIBS"
17691                        LIBS="$LIBS -ldl -pthread"
17692                        LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread"
17693                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl -pthread" >&5
17694$as_echo_n "checking if -lcrypto needs -ldl -pthread... " >&6; }
17695                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17696/* end confdefs.h.  */
17697
17698int
17699main ()
17700{
17701
17702                            int HMAC_Update(void);
17703                            (void)HMAC_Update();
17704
17705  ;
17706  return 0;
17707}
17708_ACEOF
17709if ac_fn_c_try_link "$LINENO"; then :
17710
17711
17712$as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17713
17714                            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17715$as_echo "yes" >&6; }
17716
17717else
17718
17719                            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17720$as_echo "no" >&6; }
17721                            as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
17722
17723fi
17724rm -f core conftest.err conftest.$ac_objext \
17725    conftest$ac_exeext conftest.$ac_ext
17726
17727fi
17728rm -f core conftest.err conftest.$ac_objext \
17729    conftest$ac_exeext conftest.$ac_ext
17730
17731fi
17732rm -f core conftest.err conftest.$ac_objext \
17733    conftest$ac_exeext conftest.$ac_ext
17734
17735fi
17736rm -f core conftest.err conftest.$ac_objext \
17737    conftest$ac_exeext conftest.$ac_ext
17738        fi
17739
17740
17741    fi
17742for ac_header in openssl/ssl.h
17743do :
17744  ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
17745"
17746if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
17747  cat >>confdefs.h <<_ACEOF
17748#define HAVE_OPENSSL_SSL_H 1
17749_ACEOF
17750
17751fi
17752
17753done
17754
17755for ac_header in openssl/err.h
17756do :
17757  ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
17758"
17759if test "x$ac_cv_header_openssl_err_h" = xyes; then :
17760  cat >>confdefs.h <<_ACEOF
17761#define HAVE_OPENSSL_ERR_H 1
17762_ACEOF
17763
17764fi
17765
17766done
17767
17768for ac_header in openssl/rand.h
17769do :
17770  ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
17771"
17772if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
17773  cat >>confdefs.h <<_ACEOF
17774#define HAVE_OPENSSL_RAND_H 1
17775_ACEOF
17776
17777fi
17778
17779done
17780
17781
17782
17783
17784# check if libssl needs libdl
17785BAKLIBS="$LIBS"
17786LIBS="-lssl $LIBS"
17787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
17788$as_echo_n "checking if libssl needs libdl... " >&6; }
17789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17790/* end confdefs.h.  */
17791
17792/* Override any GCC internal prototype to avoid an error.
17793   Use char because int might match the return type of a GCC
17794   builtin and then its argument prototype would still apply.  */
17795#ifdef __cplusplus
17796extern "C"
17797#endif
17798char SSL_CTX_new ();
17799int
17800main ()
17801{
17802return SSL_CTX_new ();
17803  ;
17804  return 0;
17805}
17806_ACEOF
17807if ac_fn_c_try_link "$LINENO"; then :
17808
17809	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17810$as_echo "no" >&6; }
17811	LIBS="$BAKLIBS"
17812
17813else
17814
17815	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17816$as_echo "yes" >&6; }
17817	LIBS="$BAKLIBS"
17818	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17819$as_echo_n "checking for library containing dlopen... " >&6; }
17820if ${ac_cv_search_dlopen+:} false; then :
17821  $as_echo_n "(cached) " >&6
17822else
17823  ac_func_search_save_LIBS=$LIBS
17824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17825/* end confdefs.h.  */
17826
17827/* Override any GCC internal prototype to avoid an error.
17828   Use char because int might match the return type of a GCC
17829   builtin and then its argument prototype would still apply.  */
17830#ifdef __cplusplus
17831extern "C"
17832#endif
17833char dlopen ();
17834int
17835main ()
17836{
17837return dlopen ();
17838  ;
17839  return 0;
17840}
17841_ACEOF
17842for ac_lib in '' dl; do
17843  if test -z "$ac_lib"; then
17844    ac_res="none required"
17845  else
17846    ac_res=-l$ac_lib
17847    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17848  fi
17849  if ac_fn_c_try_link "$LINENO"; then :
17850  ac_cv_search_dlopen=$ac_res
17851fi
17852rm -f core conftest.err conftest.$ac_objext \
17853    conftest$ac_exeext
17854  if ${ac_cv_search_dlopen+:} false; then :
17855  break
17856fi
17857done
17858if ${ac_cv_search_dlopen+:} false; then :
17859
17860else
17861  ac_cv_search_dlopen=no
17862fi
17863rm conftest.$ac_ext
17864LIBS=$ac_func_search_save_LIBS
17865fi
17866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17867$as_echo "$ac_cv_search_dlopen" >&6; }
17868ac_res=$ac_cv_search_dlopen
17869if test "$ac_res" != no; then :
17870  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17871
17872fi
17873
17874
17875fi
17876rm -f core conftest.err conftest.$ac_objext \
17877    conftest$ac_exeext conftest.$ac_ext
17878SSLLIB="-lssl"
17879
17880# check if -lcrypt32 is needed because CAPIENG needs that. (on windows)
17881BAKLIBS="$LIBS"
17882LIBS="-lssl $LIBS"
17883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs -lcrypt32" >&5
17884$as_echo_n "checking if libssl needs -lcrypt32... " >&6; }
17885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17886/* end confdefs.h.  */
17887
17888/* Override any GCC internal prototype to avoid an error.
17889   Use char because int might match the return type of a GCC
17890   builtin and then its argument prototype would still apply.  */
17891#ifdef __cplusplus
17892extern "C"
17893#endif
17894char HMAC_Update ();
17895int
17896main ()
17897{
17898return HMAC_Update ();
17899  ;
17900  return 0;
17901}
17902_ACEOF
17903if ac_fn_c_try_link "$LINENO"; then :
17904
17905	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17906$as_echo "no" >&6; }
17907	LIBS="$BAKLIBS"
17908
17909else
17910
17911	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17912$as_echo "yes" >&6; }
17913	LIBS="$BAKLIBS"
17914	LIBS="$LIBS -lcrypt32"
17915
17916fi
17917rm -f core conftest.err conftest.$ac_objext \
17918    conftest$ac_exeext conftest.$ac_ext
17919
17920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5
17921$as_echo_n "checking for LibreSSL... " >&6; }
17922if grep VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then
17923	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17924$as_echo "yes" >&6; }
17925
17926$as_echo "#define HAVE_LIBRESSL 1" >>confdefs.h
17927
17928	# libressl provides these compat functions, but they may also be
17929	# declared by the OS in libc.  See if they have been declared.
17930	ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
17931if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
17932  ac_have_decl=1
17933else
17934  ac_have_decl=0
17935fi
17936
17937cat >>confdefs.h <<_ACEOF
17938#define HAVE_DECL_STRLCPY $ac_have_decl
17939_ACEOF
17940ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
17941if test "x$ac_cv_have_decl_strlcat" = xyes; then :
17942  ac_have_decl=1
17943else
17944  ac_have_decl=0
17945fi
17946
17947cat >>confdefs.h <<_ACEOF
17948#define HAVE_DECL_STRLCAT $ac_have_decl
17949_ACEOF
17950ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default"
17951if test "x$ac_cv_have_decl_arc4random" = xyes; then :
17952  ac_have_decl=1
17953else
17954  ac_have_decl=0
17955fi
17956
17957cat >>confdefs.h <<_ACEOF
17958#define HAVE_DECL_ARC4RANDOM $ac_have_decl
17959_ACEOF
17960ac_fn_c_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default"
17961if test "x$ac_cv_have_decl_arc4random_uniform" = xyes; then :
17962  ac_have_decl=1
17963else
17964  ac_have_decl=0
17965fi
17966
17967cat >>confdefs.h <<_ACEOF
17968#define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl
17969_ACEOF
17970ac_fn_c_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "$ac_includes_default"
17971if test "x$ac_cv_have_decl_reallocarray" = xyes; then :
17972  ac_have_decl=1
17973else
17974  ac_have_decl=0
17975fi
17976
17977cat >>confdefs.h <<_ACEOF
17978#define HAVE_DECL_REALLOCARRAY $ac_have_decl
17979_ACEOF
17980
17981else
17982	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17983$as_echo "no" >&6; }
17984fi
17985for ac_header in openssl/conf.h openssl/engine.h openssl/bn.h openssl/dh.h openssl/dsa.h openssl/rsa.h
17986do :
17987  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17988ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17989"
17990if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17991  cat >>confdefs.h <<_ACEOF
17992#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17993_ACEOF
17994
17995fi
17996
17997done
17998
17999for ac_func in OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode EVP_MD_CTX_new OpenSSL_add_all_digests OPENSSL_init_crypto EVP_cleanup ERR_load_crypto_strings CRYPTO_cleanup_all_ex_data ERR_free_strings RAND_cleanup DSA_SIG_set0 EVP_dss1 EVP_DigestVerify SSL_CTX_set_tlsext_ticket_key_cb EVP_aes_256_cbc EVP_EncryptInit_ex HMAC_Init_ex CRYPTO_THREADID_set_callback
18000do :
18001  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18002ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18003if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18004  cat >>confdefs.h <<_ACEOF
18005#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18006_ACEOF
18007
18008fi
18009done
18010
18011
18012# these check_funcs need -lssl
18013BAKLIBS="$LIBS"
18014LIBS="-lssl $LIBS"
18015for ac_func in OPENSSL_init_ssl SSL_CTX_set_security_level SSL_set1_host SSL_get0_peername X509_VERIFY_PARAM_set1_host SSL_CTX_set_ciphersuites
18016do :
18017  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18018ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18019if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18020  cat >>confdefs.h <<_ACEOF
18021#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18022_ACEOF
18023
18024fi
18025done
18026
18027LIBS="$BAKLIBS"
18028
18029ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" "
18030$ac_includes_default
18031#ifdef HAVE_OPENSSL_ERR_H
18032#include <openssl/err.h>
18033#endif
18034
18035#ifdef HAVE_OPENSSL_RAND_H
18036#include <openssl/rand.h>
18037#endif
18038
18039#ifdef HAVE_OPENSSL_CONF_H
18040#include <openssl/conf.h>
18041#endif
18042
18043#ifdef HAVE_OPENSSL_ENGINE_H
18044#include <openssl/engine.h>
18045#endif
18046#include <openssl/ssl.h>
18047#include <openssl/evp.h>
18048
18049"
18050if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then :
18051  ac_have_decl=1
18052else
18053  ac_have_decl=0
18054fi
18055
18056cat >>confdefs.h <<_ACEOF
18057#define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl
18058_ACEOF
18059ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" "
18060$ac_includes_default
18061#ifdef HAVE_OPENSSL_ERR_H
18062#include <openssl/err.h>
18063#endif
18064
18065#ifdef HAVE_OPENSSL_RAND_H
18066#include <openssl/rand.h>
18067#endif
18068
18069#ifdef HAVE_OPENSSL_CONF_H
18070#include <openssl/conf.h>
18071#endif
18072
18073#ifdef HAVE_OPENSSL_ENGINE_H
18074#include <openssl/engine.h>
18075#endif
18076#include <openssl/ssl.h>
18077#include <openssl/evp.h>
18078
18079"
18080if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then :
18081  ac_have_decl=1
18082else
18083  ac_have_decl=0
18084fi
18085
18086cat >>confdefs.h <<_ACEOF
18087#define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl
18088_ACEOF
18089ac_fn_c_check_decl "$LINENO" "SSL_CTX_set_ecdh_auto" "ac_cv_have_decl_SSL_CTX_set_ecdh_auto" "
18090$ac_includes_default
18091#ifdef HAVE_OPENSSL_ERR_H
18092#include <openssl/err.h>
18093#endif
18094
18095#ifdef HAVE_OPENSSL_RAND_H
18096#include <openssl/rand.h>
18097#endif
18098
18099#ifdef HAVE_OPENSSL_CONF_H
18100#include <openssl/conf.h>
18101#endif
18102
18103#ifdef HAVE_OPENSSL_ENGINE_H
18104#include <openssl/engine.h>
18105#endif
18106#include <openssl/ssl.h>
18107#include <openssl/evp.h>
18108
18109"
18110if test "x$ac_cv_have_decl_SSL_CTX_set_ecdh_auto" = xyes; then :
18111  ac_have_decl=1
18112else
18113  ac_have_decl=0
18114fi
18115
18116cat >>confdefs.h <<_ACEOF
18117#define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO $ac_have_decl
18118_ACEOF
18119
18120fi
18121
18122
18123
18124# Check whether --enable-sha1 was given.
18125if test "${enable_sha1+set}" = set; then :
18126  enableval=$enable_sha1;
18127fi
18128
18129case "$enable_sha1" in
18130	no)
18131	;;
18132	yes|*)
18133
18134$as_echo "#define USE_SHA1 1" >>confdefs.h
18135
18136	;;
18137esac
18138
18139
18140# Check whether --enable-sha2 was given.
18141if test "${enable_sha2+set}" = set; then :
18142  enableval=$enable_sha2;
18143fi
18144
18145case "$enable_sha2" in
18146	no)
18147	;;
18148	yes|*)
18149
18150$as_echo "#define USE_SHA2 1" >>confdefs.h
18151
18152	;;
18153esac
18154
18155# Check whether --enable-subnet was given.
18156if test "${enable_subnet+set}" = set; then :
18157  enableval=$enable_subnet;
18158fi
18159
18160case "$enable_subnet" in
18161	yes)
18162
18163$as_echo "#define CLIENT_SUBNET 1" >>confdefs.h
18164
18165	SUBNET_OBJ="edns-subnet.lo subnetmod.lo addrtree.lo subnet-whitelist.lo"
18166
18167	SUBNET_HEADER='$(srcdir)/edns-subnet/subnetmod.h $(srcdir)/edns-subnet/edns-subnet.h $(srcdir)/edns-subnet/subnet-whitelist.h $(srcdir)/edns-subnet/addrtree.h'
18168
18169	;;
18170	no|*)
18171	;;
18172esac
18173
18174# check wether gost also works
18175
18176# Check whether --enable-gost was given.
18177if test "${enable_gost+set}" = set; then :
18178  enableval=$enable_gost;
18179fi
18180
18181use_gost="no"
18182if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18183case "$enable_gost" in
18184	no)
18185	;;
18186	*)
18187	ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
18188if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
18189  :
18190else
18191  as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
18192fi
18193
18194	ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
18195if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
18196
18197else
18198  as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
18199fi
18200
18201
18202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
18203$as_echo_n "checking if GOST works... " >&6; }
18204if test c${cross_compiling} = cno; then
18205BAKCFLAGS="$CFLAGS"
18206if test -n "$ssldir"; then
18207	CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib"
18208fi
18209if test "$cross_compiling" = yes; then :
18210  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18211$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18212as_fn_error $? "cannot run test program while cross compiling
18213See \`config.log' for more details" "$LINENO" 5; }
18214else
18215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18216/* end confdefs.h.  */
18217
18218#include <string.h>
18219#include <openssl/ssl.h>
18220#include <openssl/evp.h>
18221#include <openssl/engine.h>
18222#include <openssl/conf.h>
18223/* routine to load gost (from sldns) */
18224int load_gost_id(void)
18225{
18226	static int gost_id = 0;
18227	const EVP_PKEY_ASN1_METHOD* meth;
18228	ENGINE* e;
18229
18230	if(gost_id) return gost_id;
18231
18232	/* see if configuration loaded gost implementation from other engine*/
18233	meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
18234	if(meth) {
18235		EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
18236		return gost_id;
18237	}
18238
18239	/* see if engine can be loaded already */
18240	e = ENGINE_by_id("gost");
18241	if(!e) {
18242		/* load it ourself, in case statically linked */
18243		ENGINE_load_builtin_engines();
18244		ENGINE_load_dynamic();
18245		e = ENGINE_by_id("gost");
18246	}
18247	if(!e) {
18248		/* no gost engine in openssl */
18249		return 0;
18250	}
18251	if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
18252		ENGINE_finish(e);
18253		ENGINE_free(e);
18254		return 0;
18255	}
18256
18257	meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
18258	if(!meth) {
18259		/* algo not found */
18260		ENGINE_finish(e);
18261		ENGINE_free(e);
18262		return 0;
18263	}
18264	EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
18265	return gost_id;
18266}
18267int main(void) {
18268	EVP_MD_CTX* ctx;
18269	const EVP_MD* md;
18270	unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
18271	const char* str = "Hello world";
18272	const unsigned char check[] = {
18273		0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
18274		0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
18275		0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
18276		0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
18277	};
18278	OPENSSL_config(NULL);
18279	(void)load_gost_id();
18280	md = EVP_get_digestbyname("md_gost94");
18281	if(!md) return 1;
18282	memset(digest, 0, sizeof(digest));
18283	ctx = EVP_MD_CTX_create();
18284	if(!ctx) return 2;
18285	if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
18286	if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
18287	if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
18288	/* uncomment to see the hash calculated.
18289		{int i;
18290		for(i=0; i<32; i++)
18291			printf(" %2.2x", (int)digest[i]);
18292		printf("\n");}
18293	*/
18294	if(memcmp(digest, check, sizeof(check)) != 0)
18295		return 6;
18296	return 0;
18297}
18298
18299_ACEOF
18300if ac_fn_c_try_run "$LINENO"; then :
18301  eval "ac_cv_c_gost_works=yes"
18302else
18303  eval "ac_cv_c_gost_works=no"
18304fi
18305rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18306  conftest.$ac_objext conftest.beam conftest.$ac_ext
18307fi
18308
18309CFLAGS="$BAKCFLAGS"
18310else
18311eval "ac_cv_c_gost_works=maybe"
18312fi
18313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5
18314$as_echo "$ac_cv_c_gost_works" >&6; }
18315
18316	if test "$ac_cv_c_gost_works" != no; then
18317		use_gost="yes"
18318
18319$as_echo "#define USE_GOST 1" >>confdefs.h
18320
18321	fi
18322	;;
18323esac
18324fi
18325# Check whether --enable-ecdsa was given.
18326if test "${enable_ecdsa+set}" = set; then :
18327  enableval=$enable_ecdsa;
18328fi
18329
18330use_ecdsa="no"
18331case "$enable_ecdsa" in
18332    no)
18333      ;;
18334    *)
18335      if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18336	      ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
18337if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
18338
18339else
18340  as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18341fi
18342
18343	      ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
18344if test "x$ac_cv_func_SHA384_Init" = xyes; then :
18345
18346else
18347  as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18348fi
18349
18350	      ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
18351#include <openssl/evp.h>
18352
18353"
18354if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
18355  ac_have_decl=1
18356else
18357  ac_have_decl=0
18358fi
18359
18360cat >>confdefs.h <<_ACEOF
18361#define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
18362_ACEOF
18363if test $ac_have_decl = 1; then :
18364
18365else
18366  as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18367fi
18368ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
18369#include <openssl/evp.h>
18370
18371"
18372if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
18373  ac_have_decl=1
18374else
18375  ac_have_decl=0
18376fi
18377
18378cat >>confdefs.h <<_ACEOF
18379#define HAVE_DECL_NID_SECP384R1 $ac_have_decl
18380_ACEOF
18381if test $ac_have_decl = 1; then :
18382
18383else
18384  as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18385fi
18386
18387	      # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
18388	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
18389$as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
18390	      if grep OPENSSL_VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then
18391		if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then
18392		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18393$as_echo "no" >&6; }
18394
18395cat >>confdefs.h <<_ACEOF
18396#define USE_ECDSA_EVP_WORKAROUND 1
18397_ACEOF
18398
18399		else
18400		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18401$as_echo "yes" >&6; }
18402		fi
18403	      else
18404		# not OpenSSL, thus likely LibreSSL, which supports it
18405		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18406$as_echo "yes" >&6; }
18407	      fi
18408      fi
18409      # we now know we have ECDSA and the required curves.
18410
18411cat >>confdefs.h <<_ACEOF
18412#define USE_ECDSA 1
18413_ACEOF
18414
18415      use_ecdsa="yes"
18416      ;;
18417esac
18418
18419# Check whether --enable-dsa was given.
18420if test "${enable_dsa+set}" = set; then :
18421  enableval=$enable_dsa;
18422fi
18423
18424use_dsa="no"
18425case "$enable_dsa" in
18426    no)
18427      ;;
18428    *)
18429      # detect if DSA is supported, and turn it off if not.
18430      if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18431      ac_fn_c_check_func "$LINENO" "DSA_SIG_new" "ac_cv_func_DSA_SIG_new"
18432if test "x$ac_cv_func_DSA_SIG_new" = xyes; then :
18433
18434      as_ac_Type=`$as_echo "ac_cv_type_DSA_SIG*" | $as_tr_sh`
18435ac_fn_c_check_type "$LINENO" "DSA_SIG*" "$as_ac_Type" "
18436$ac_includes_default
18437#ifdef HAVE_OPENSSL_ERR_H
18438#include <openssl/err.h>
18439#endif
18440
18441#ifdef HAVE_OPENSSL_RAND_H
18442#include <openssl/rand.h>
18443#endif
18444
18445#ifdef HAVE_OPENSSL_CONF_H
18446#include <openssl/conf.h>
18447#endif
18448
18449#ifdef HAVE_OPENSSL_ENGINE_H
18450#include <openssl/engine.h>
18451#endif
18452
18453"
18454if eval test \"x\$"$as_ac_Type"\" = x"yes"; then :
18455
18456
18457cat >>confdefs.h <<_ACEOF
18458#define USE_DSA 1
18459_ACEOF
18460
18461
18462else
18463  if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
18464               fi
18465fi
18466
18467
18468else
18469  if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
18470               fi
18471fi
18472
18473      else
18474
18475cat >>confdefs.h <<_ACEOF
18476#define USE_DSA 1
18477_ACEOF
18478
18479      fi
18480      ;;
18481esac
18482
18483# Check whether --enable-ed25519 was given.
18484if test "${enable_ed25519+set}" = set; then :
18485  enableval=$enable_ed25519;
18486fi
18487
18488use_ed25519="no"
18489case "$enable_ed25519" in
18490    no)
18491      ;;
18492    *)
18493      if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18494	      ac_fn_c_check_decl "$LINENO" "NID_ED25519" "ac_cv_have_decl_NID_ED25519" "$ac_includes_default
18495#include <openssl/evp.h>
18496
18497"
18498if test "x$ac_cv_have_decl_NID_ED25519" = xyes; then :
18499  ac_have_decl=1
18500else
18501  ac_have_decl=0
18502fi
18503
18504cat >>confdefs.h <<_ACEOF
18505#define HAVE_DECL_NID_ED25519 $ac_have_decl
18506_ACEOF
18507if test $ac_have_decl = 1; then :
18508
18509      		use_ed25519="yes"
18510
18511else
18512   if test "x$enable_ed25519" = "xyes"; then as_fn_error $? "OpenSSL does not support ED25519 and you used --enable-ed25519." "$LINENO" 5
18513	      	fi
18514fi
18515
18516      fi
18517      if test $USE_NETTLE = "yes"; then
18518		for ac_header in nettle/eddsa.h
18519do :
18520  ac_fn_c_check_header_compile "$LINENO" "nettle/eddsa.h" "ac_cv_header_nettle_eddsa_h" "$ac_includes_default
18521"
18522if test "x$ac_cv_header_nettle_eddsa_h" = xyes; then :
18523  cat >>confdefs.h <<_ACEOF
18524#define HAVE_NETTLE_EDDSA_H 1
18525_ACEOF
18526 use_ed25519="yes"
18527fi
18528
18529done
18530
18531      fi
18532      if test $use_ed25519 = "yes"; then
18533
18534cat >>confdefs.h <<_ACEOF
18535#define USE_ED25519 1
18536_ACEOF
18537
18538      fi
18539      ;;
18540esac
18541
18542# Check whether --enable-ed448 was given.
18543if test "${enable_ed448+set}" = set; then :
18544  enableval=$enable_ed448;
18545fi
18546
18547use_ed448="no"
18548case "$enable_ed448" in
18549    no)
18550      ;;
18551    *)
18552      if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18553	      ac_fn_c_check_decl "$LINENO" "NID_ED448" "ac_cv_have_decl_NID_ED448" "$ac_includes_default
18554#include <openssl/evp.h>
18555
18556"
18557if test "x$ac_cv_have_decl_NID_ED448" = xyes; then :
18558  ac_have_decl=1
18559else
18560  ac_have_decl=0
18561fi
18562
18563cat >>confdefs.h <<_ACEOF
18564#define HAVE_DECL_NID_ED448 $ac_have_decl
18565_ACEOF
18566if test $ac_have_decl = 1; then :
18567
18568      		use_ed448="yes"
18569
18570else
18571   if test "x$enable_ed448" = "xyes"; then as_fn_error $? "OpenSSL does not support ED448 and you used --enable-ed448." "$LINENO" 5
18572	      	fi
18573fi
18574
18575      fi
18576      if test $use_ed448 = "yes"; then
18577
18578cat >>confdefs.h <<_ACEOF
18579#define USE_ED448 1
18580_ACEOF
18581
18582      fi
18583      ;;
18584esac
18585
18586# Check whether --enable-event-api was given.
18587if test "${enable_event_api+set}" = set; then :
18588  enableval=$enable_event_api;
18589fi
18590
18591case "$enable_event_api" in
18592    yes)
18593      UNBOUND_EVENT_INSTALL=unbound-event-install
18594
18595      UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall
18596
18597      ;;
18598    *)
18599      ;;
18600esac
18601
18602# Check whether --enable-tfo-client was given.
18603if test "${enable_tfo_client+set}" = set; then :
18604  enableval=$enable_tfo_client;
18605fi
18606
18607case "$enable_tfo_client" in
18608	yes)
18609		case `uname` in
18610			Linux) ac_fn_c_check_decl "$LINENO" "MSG_FASTOPEN" "ac_cv_have_decl_MSG_FASTOPEN" "$ac_includes_default
18611#include <netinet/tcp.h>
18612
18613"
18614if test "x$ac_cv_have_decl_MSG_FASTOPEN" = xyes; then :
18615  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
18616$as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
18617else
18618  as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
18619fi
18620
18621
18622cat >>confdefs.h <<_ACEOF
18623#define USE_MSG_FASTOPEN 1
18624_ACEOF
18625
18626			  ;;
18627			Darwin) ac_fn_c_check_decl "$LINENO" "CONNECT_RESUME_ON_READ_WRITE" "ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" "$ac_includes_default
18628#include <sys/socket.h>
18629
18630"
18631if test "x$ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" = xyes; then :
18632  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
18633$as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
18634else
18635  as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
18636fi
18637
18638
18639cat >>confdefs.h <<_ACEOF
18640#define USE_OSX_MSG_FASTOPEN 1
18641_ACEOF
18642
18643			  ;;
18644		esac
18645	;;
18646	no|*)
18647		;;
18648esac
18649
18650# Check whether --enable-tfo-server was given.
18651if test "${enable_tfo_server+set}" = set; then :
18652  enableval=$enable_tfo_server;
18653fi
18654
18655case "$enable_tfo_server" in
18656	yes)
18657	      ac_fn_c_check_decl "$LINENO" "TCP_FASTOPEN" "ac_cv_have_decl_TCP_FASTOPEN" "$ac_includes_default
18658#include <netinet/tcp.h>
18659
18660"
18661if test "x$ac_cv_have_decl_TCP_FASTOPEN" = xyes; then :
18662  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&5
18663$as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&2;}
18664else
18665  as_fn_error $? "TCP Fast Open is not available for server mode: please rerun without --enable-tfo-server" "$LINENO" 5
18666fi
18667
18668
18669cat >>confdefs.h <<_ACEOF
18670#define USE_TCP_FASTOPEN 1
18671_ACEOF
18672
18673		;;
18674	no|*)
18675		;;
18676esac
18677
18678# check for libevent
18679
18680# Check whether --with-libevent was given.
18681if test "${with_libevent+set}" = set; then :
18682  withval=$with_libevent;
18683else
18684   withval="no"
18685fi
18686
18687if test x_$withval = x_yes -o x_$withval != x_no; then
18688        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
18689$as_echo_n "checking for libevent... " >&6; }
18690        if test x_$withval = x_ -o x_$withval = x_yes; then
18691            withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
18692        fi
18693        for dir in $withval; do
18694            thedir="$dir"
18695            if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then
18696                found_libevent="yes"
18697				if test "$thedir" != "/usr"; then
18698                    CPPFLAGS="$CPPFLAGS -I$thedir/include"
18699		fi
18700                break;
18701            fi
18702        done
18703        if test x_$found_libevent != x_yes; then
18704		if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
18705			# libevent source directory
18706            		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
18707$as_echo "found in $thedir" >&6; }
18708                	CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
18709			BAK_LDFLAGS_SET="1"
18710			BAK_LDFLAGS="$LDFLAGS"
18711			# remove evdns from linking
18712			mkdir build >/dev/null 2>&1
18713			mkdir build/libevent >/dev/null 2>&1
18714			mkdir build/libevent/.libs >/dev/null 2>&1
18715			ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
18716			ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
18717			ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
18718			cp $ev_files_o build/libevent
18719			cp $ev_files_lo build/libevent
18720			cp $ev_files_libso build/libevent/.libs
18721            		LATE_LDFLAGS="build/libevent/*.lo -lm"
18722			LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
18723		else
18724            		as_fn_error $? "Cannot find the libevent library in $withval
18725You can restart ./configure --with-libevent=no to use a builtin alternative.
18726Please note that this alternative is not as capable as libevent when using
18727large outgoing port ranges.  " "$LINENO" 5
18728		fi
18729        else
18730            { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
18731$as_echo "found in $thedir" >&6; }
18732	    	    if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then
18733		    LDFLAGS="$LDFLAGS -L$thedir/lib/event2"
18734
18735	if test "x$enable_rpath" = xyes; then
18736		if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then
18737			RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2"
18738		fi
18739	fi
18740
18741	    else
18742		    		    if test "$thedir" != "/usr" -a "$thedir" != ""; then
18743			LDFLAGS="$LDFLAGS -L$thedir/lib"
18744
18745	if test "x$enable_rpath" = xyes; then
18746		if echo "$thedir/lib" | grep "^/" >/dev/null; then
18747			RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
18748		fi
18749	fi
18750
18751		    fi
18752	    fi
18753        fi
18754	# check for library used by libevent after 1.3c
18755	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
18756$as_echo_n "checking for library containing clock_gettime... " >&6; }
18757if ${ac_cv_search_clock_gettime+:} false; then :
18758  $as_echo_n "(cached) " >&6
18759else
18760  ac_func_search_save_LIBS=$LIBS
18761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18762/* end confdefs.h.  */
18763
18764/* Override any GCC internal prototype to avoid an error.
18765   Use char because int might match the return type of a GCC
18766   builtin and then its argument prototype would still apply.  */
18767#ifdef __cplusplus
18768extern "C"
18769#endif
18770char clock_gettime ();
18771int
18772main ()
18773{
18774return clock_gettime ();
18775  ;
18776  return 0;
18777}
18778_ACEOF
18779for ac_lib in '' rt; do
18780  if test -z "$ac_lib"; then
18781    ac_res="none required"
18782  else
18783    ac_res=-l$ac_lib
18784    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18785  fi
18786  if ac_fn_c_try_link "$LINENO"; then :
18787  ac_cv_search_clock_gettime=$ac_res
18788fi
18789rm -f core conftest.err conftest.$ac_objext \
18790    conftest$ac_exeext
18791  if ${ac_cv_search_clock_gettime+:} false; then :
18792  break
18793fi
18794done
18795if ${ac_cv_search_clock_gettime+:} false; then :
18796
18797else
18798  ac_cv_search_clock_gettime=no
18799fi
18800rm conftest.$ac_ext
18801LIBS=$ac_func_search_save_LIBS
18802fi
18803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
18804$as_echo "$ac_cv_search_clock_gettime" >&6; }
18805ac_res=$ac_cv_search_clock_gettime
18806if test "$ac_res" != no; then :
18807  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18808
18809fi
18810
18811
18812	# is the event.h header libev or libevent?
18813	for ac_header in event.h
18814do :
18815  ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
18816"
18817if test "x$ac_cv_header_event_h" = xyes; then :
18818  cat >>confdefs.h <<_ACEOF
18819#define HAVE_EVENT_H 1
18820_ACEOF
18821
18822fi
18823
18824done
18825
18826	ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
18827#include <event.h>
18828
18829"
18830if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then :
18831
18832		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
18833$as_echo_n "checking for library containing event_set... " >&6; }
18834if ${ac_cv_search_event_set+:} false; then :
18835  $as_echo_n "(cached) " >&6
18836else
18837  ac_func_search_save_LIBS=$LIBS
18838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18839/* end confdefs.h.  */
18840
18841/* Override any GCC internal prototype to avoid an error.
18842   Use char because int might match the return type of a GCC
18843   builtin and then its argument prototype would still apply.  */
18844#ifdef __cplusplus
18845extern "C"
18846#endif
18847char event_set ();
18848int
18849main ()
18850{
18851return event_set ();
18852  ;
18853  return 0;
18854}
18855_ACEOF
18856for ac_lib in '' ev; do
18857  if test -z "$ac_lib"; then
18858    ac_res="none required"
18859  else
18860    ac_res=-l$ac_lib
18861    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18862  fi
18863  if ac_fn_c_try_link "$LINENO"; then :
18864  ac_cv_search_event_set=$ac_res
18865fi
18866rm -f core conftest.err conftest.$ac_objext \
18867    conftest$ac_exeext
18868  if ${ac_cv_search_event_set+:} false; then :
18869  break
18870fi
18871done
18872if ${ac_cv_search_event_set+:} false; then :
18873
18874else
18875  ac_cv_search_event_set=no
18876fi
18877rm conftest.$ac_ext
18878LIBS=$ac_func_search_save_LIBS
18879fi
18880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
18881$as_echo "$ac_cv_search_event_set" >&6; }
18882ac_res=$ac_cv_search_event_set
18883if test "$ac_res" != no; then :
18884  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18885
18886fi
18887
18888
18889else
18890
18891		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
18892$as_echo_n "checking for library containing event_set... " >&6; }
18893if ${ac_cv_search_event_set+:} false; then :
18894  $as_echo_n "(cached) " >&6
18895else
18896  ac_func_search_save_LIBS=$LIBS
18897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18898/* end confdefs.h.  */
18899
18900/* Override any GCC internal prototype to avoid an error.
18901   Use char because int might match the return type of a GCC
18902   builtin and then its argument prototype would still apply.  */
18903#ifdef __cplusplus
18904extern "C"
18905#endif
18906char event_set ();
18907int
18908main ()
18909{
18910return event_set ();
18911  ;
18912  return 0;
18913}
18914_ACEOF
18915for ac_lib in '' event; do
18916  if test -z "$ac_lib"; then
18917    ac_res="none required"
18918  else
18919    ac_res=-l$ac_lib
18920    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18921  fi
18922  if ac_fn_c_try_link "$LINENO"; then :
18923  ac_cv_search_event_set=$ac_res
18924fi
18925rm -f core conftest.err conftest.$ac_objext \
18926    conftest$ac_exeext
18927  if ${ac_cv_search_event_set+:} false; then :
18928  break
18929fi
18930done
18931if ${ac_cv_search_event_set+:} false; then :
18932
18933else
18934  ac_cv_search_event_set=no
18935fi
18936rm conftest.$ac_ext
18937LIBS=$ac_func_search_save_LIBS
18938fi
18939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
18940$as_echo "$ac_cv_search_event_set" >&6; }
18941ac_res=$ac_cv_search_event_set
18942if test "$ac_res" != no; then :
18943  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18944
18945fi
18946
18947
18948fi
18949
18950	for ac_func in event_base_free
18951do :
18952  ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
18953if test "x$ac_cv_func_event_base_free" = xyes; then :
18954  cat >>confdefs.h <<_ACEOF
18955#define HAVE_EVENT_BASE_FREE 1
18956_ACEOF
18957
18958fi
18959done
18960 # only in libevent 1.2 and later
18961	for ac_func in event_base_once
18962do :
18963  ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
18964if test "x$ac_cv_func_event_base_once" = xyes; then :
18965  cat >>confdefs.h <<_ACEOF
18966#define HAVE_EVENT_BASE_ONCE 1
18967_ACEOF
18968
18969fi
18970done
18971 # only in libevent 1.4.1 and later
18972	for ac_func in event_base_new
18973do :
18974  ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
18975if test "x$ac_cv_func_event_base_new" = xyes; then :
18976  cat >>confdefs.h <<_ACEOF
18977#define HAVE_EVENT_BASE_NEW 1
18978_ACEOF
18979
18980fi
18981done
18982 # only in libevent 1.4.1 and later
18983	for ac_func in event_base_get_method
18984do :
18985  ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
18986if test "x$ac_cv_func_event_base_get_method" = xyes; then :
18987  cat >>confdefs.h <<_ACEOF
18988#define HAVE_EVENT_BASE_GET_METHOD 1
18989_ACEOF
18990
18991fi
18992done
18993 # only in libevent 1.4.3 and later
18994	for ac_func in ev_loop
18995do :
18996  ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
18997if test "x$ac_cv_func_ev_loop" = xyes; then :
18998  cat >>confdefs.h <<_ACEOF
18999#define HAVE_EV_LOOP 1
19000_ACEOF
19001
19002fi
19003done
19004 # only in libev. (tested on 3.51)
19005	for ac_func in ev_default_loop
19006do :
19007  ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
19008if test "x$ac_cv_func_ev_default_loop" = xyes; then :
19009  cat >>confdefs.h <<_ACEOF
19010#define HAVE_EV_DEFAULT_LOOP 1
19011_ACEOF
19012
19013fi
19014done
19015 # only in libev. (tested on 4.00)
19016	for ac_func in event_assign
19017do :
19018  ac_fn_c_check_func "$LINENO" "event_assign" "ac_cv_func_event_assign"
19019if test "x$ac_cv_func_event_assign" = xyes; then :
19020  cat >>confdefs.h <<_ACEOF
19021#define HAVE_EVENT_ASSIGN 1
19022_ACEOF
19023
19024fi
19025done
19026 # in libevent, for thread-safety
19027	ac_fn_c_check_decl "$LINENO" "evsignal_assign" "ac_cv_have_decl_evsignal_assign" "$ac_includes_default
19028#ifdef HAVE_EVENT_H
19029#  include <event.h>
19030#else
19031#  include \"event2/event.h\"
19032#endif
19033
19034"
19035if test "x$ac_cv_have_decl_evsignal_assign" = xyes; then :
19036  ac_have_decl=1
19037else
19038  ac_have_decl=0
19039fi
19040
19041cat >>confdefs.h <<_ACEOF
19042#define HAVE_DECL_EVSIGNAL_ASSIGN $ac_have_decl
19043_ACEOF
19044
19045        PC_LIBEVENT_DEPENDENCY="libevent"
19046
19047	if test -n "$BAK_LDFLAGS_SET"; then
19048		LDFLAGS="$BAK_LDFLAGS"
19049	fi
19050else
19051
19052$as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
19053
19054fi
19055
19056# check for libexpat
19057
19058# Check whether --with-libexpat was given.
19059if test "${with_libexpat+set}" = set; then :
19060  withval=$with_libexpat;
19061else
19062   withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19063fi
19064
19065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
19066$as_echo_n "checking for libexpat... " >&6; }
19067found_libexpat="no"
19068for dir in $withval ; do
19069            if test -f "$dir/include/expat.h"; then
19070		found_libexpat="yes"
19071				if test "$dir" != "/usr"; then
19072                    CPPFLAGS="$CPPFLAGS -I$dir/include"
19073		    LDFLAGS="$LDFLAGS -L$dir/lib"
19074		fi
19075            	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
19076$as_echo "found in $dir" >&6; }
19077                break;
19078            fi
19079done
19080if test x_$found_libexpat != x_yes; then
19081	as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5
19082fi
19083for ac_header in expat.h
19084do :
19085  ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default
19086"
19087if test "x$ac_cv_header_expat_h" = xyes; then :
19088  cat >>confdefs.h <<_ACEOF
19089#define HAVE_EXPAT_H 1
19090_ACEOF
19091
19092fi
19093
19094done
19095
19096ac_fn_c_check_decl "$LINENO" "XML_StopParser" "ac_cv_have_decl_XML_StopParser" "$ac_includes_default
19097#include <expat.h>
19098
19099"
19100if test "x$ac_cv_have_decl_XML_StopParser" = xyes; then :
19101  ac_have_decl=1
19102else
19103  ac_have_decl=0
19104fi
19105
19106cat >>confdefs.h <<_ACEOF
19107#define HAVE_DECL_XML_STOPPARSER $ac_have_decl
19108_ACEOF
19109
19110
19111# hiredis (redis C client for cachedb)
19112
19113# Check whether --with-libhiredis was given.
19114if test "${with_libhiredis+set}" = set; then :
19115  withval=$with_libhiredis;
19116else
19117   withval="no"
19118fi
19119
19120found_libhiredis="no"
19121if test x_$withval = x_yes -o x_$withval != x_no; then
19122   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhiredis" >&5
19123$as_echo_n "checking for libhiredis... " >&6; }
19124   if test x_$withval = x_ -o x_$withval = x_yes; then
19125            withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19126   fi
19127   for dir in $withval ; do
19128            if test -f "$dir/include/hiredis/hiredis.h"; then
19129		found_libhiredis="yes"
19130				if test "$dir" != "/usr"; then
19131                    CPPFLAGS="$CPPFLAGS -I$dir/include"
19132		    LDFLAGS="$LDFLAGS -L$dir/lib"
19133		fi
19134		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
19135$as_echo "found in $dir" >&6; }
19136
19137$as_echo "#define USE_REDIS 1" >>confdefs.h
19138
19139		LIBS="$LIBS -lhiredis"
19140                break;
19141            fi
19142    done
19143    if test x_$found_libhiredis != x_yes; then
19144	as_fn_error $? "Could not find libhiredis, hiredis.h" "$LINENO" 5
19145    fi
19146    for ac_header in hiredis/hiredis.h
19147do :
19148  ac_fn_c_check_header_compile "$LINENO" "hiredis/hiredis.h" "ac_cv_header_hiredis_hiredis_h" "$ac_includes_default
19149"
19150if test "x$ac_cv_header_hiredis_hiredis_h" = xyes; then :
19151  cat >>confdefs.h <<_ACEOF
19152#define HAVE_HIREDIS_HIREDIS_H 1
19153_ACEOF
19154
19155fi
19156
19157done
19158
19159    ac_fn_c_check_decl "$LINENO" "redisConnect" "ac_cv_have_decl_redisConnect" "$ac_includes_default
19160    #include <hiredis/hiredis.h>
19161
19162"
19163if test "x$ac_cv_have_decl_redisConnect" = xyes; then :
19164  ac_have_decl=1
19165else
19166  ac_have_decl=0
19167fi
19168
19169cat >>confdefs.h <<_ACEOF
19170#define HAVE_DECL_REDISCONNECT $ac_have_decl
19171_ACEOF
19172
19173fi
19174
19175# set static linking if requested
19176
19177staticexe=""
19178# Check whether --enable-static-exe was given.
19179if test "${enable_static_exe+set}" = set; then :
19180  enableval=$enable_static_exe;
19181fi
19182
19183if test x_$enable_static_exe = x_yes; then
19184	staticexe="-static"
19185	if test "$on_mingw" = yes; then
19186		staticexe="-all-static"
19187		# for static compile, include gdi32 and zlib here.
19188		if echo $LIBS | grep 'lgdi32' >/dev/null; then
19189			:
19190		else
19191			LIBS="$LIBS -lgdi32"
19192		fi
19193		LIBS="$LIBS -lz"
19194	fi
19195fi
19196
19197# Include systemd.m4 - begin
19198#   macros for configuring systemd
19199#   Copyright 2015, Sami Kerola, CloudFlare.
19200#   BSD licensed.
19201# Check whether --enable-systemd was given.
19202if test "${enable_systemd+set}" = set; then :
19203  enableval=$enable_systemd;
19204else
19205  enable_systemd=no
19206fi
19207
19208have_systemd=no
19209if test "x$enable_systemd" != xno; then :
19210
19211
19212
19213pkg_failed=no
19214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
19215$as_echo_n "checking for SYSTEMD... " >&6; }
19216
19217if test -n "$SYSTEMD_CFLAGS"; then
19218    pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
19219 elif test -n "$PKG_CONFIG"; then
19220    if test -n "$PKG_CONFIG" && \
19221    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
19222  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
19223  ac_status=$?
19224  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19225  test $ac_status = 0; }; then
19226  pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
19227		      test "x$?" != "x0" && pkg_failed=yes
19228else
19229  pkg_failed=yes
19230fi
19231 else
19232    pkg_failed=untried
19233fi
19234if test -n "$SYSTEMD_LIBS"; then
19235    pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
19236 elif test -n "$PKG_CONFIG"; then
19237    if test -n "$PKG_CONFIG" && \
19238    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
19239  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
19240  ac_status=$?
19241  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19242  test $ac_status = 0; }; then
19243  pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
19244		      test "x$?" != "x0" && pkg_failed=yes
19245else
19246  pkg_failed=yes
19247fi
19248 else
19249    pkg_failed=untried
19250fi
19251
19252
19253
19254if test $pkg_failed = yes; then
19255   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19256$as_echo "no" >&6; }
19257
19258if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19259        _pkg_short_errors_supported=yes
19260else
19261        _pkg_short_errors_supported=no
19262fi
19263        if test $_pkg_short_errors_supported = yes; then
19264	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
19265        else
19266	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
19267        fi
19268	# Put the nasty error message in config.log where it belongs
19269	echo "$SYSTEMD_PKG_ERRORS" >&5
19270
19271	have_systemd=no
19272elif test $pkg_failed = untried; then
19273     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19274$as_echo "no" >&6; }
19275	have_systemd=no
19276else
19277	SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
19278	SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
19279        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19280$as_echo "yes" >&6; }
19281	have_systemd=yes
19282fi
19283		if test "x$have_systemd" != "xyes"; then :
19284
19285
19286pkg_failed=no
19287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
19288$as_echo_n "checking for SYSTEMD_DAEMON... " >&6; }
19289
19290if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
19291    pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
19292 elif test -n "$PKG_CONFIG"; then
19293    if test -n "$PKG_CONFIG" && \
19294    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
19295  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
19296  ac_status=$?
19297  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19298  test $ac_status = 0; }; then
19299  pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
19300		      test "x$?" != "x0" && pkg_failed=yes
19301else
19302  pkg_failed=yes
19303fi
19304 else
19305    pkg_failed=untried
19306fi
19307if test -n "$SYSTEMD_DAEMON_LIBS"; then
19308    pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
19309 elif test -n "$PKG_CONFIG"; then
19310    if test -n "$PKG_CONFIG" && \
19311    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
19312  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
19313  ac_status=$?
19314  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19315  test $ac_status = 0; }; then
19316  pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
19317		      test "x$?" != "x0" && pkg_failed=yes
19318else
19319  pkg_failed=yes
19320fi
19321 else
19322    pkg_failed=untried
19323fi
19324
19325
19326
19327if test $pkg_failed = yes; then
19328   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19329$as_echo "no" >&6; }
19330
19331if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19332        _pkg_short_errors_supported=yes
19333else
19334        _pkg_short_errors_supported=no
19335fi
19336        if test $_pkg_short_errors_supported = yes; then
19337	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
19338        else
19339	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
19340        fi
19341	# Put the nasty error message in config.log where it belongs
19342	echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
19343
19344	have_systemd_daemon=no
19345elif test $pkg_failed = untried; then
19346     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19347$as_echo "no" >&6; }
19348	have_systemd_daemon=no
19349else
19350	SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
19351	SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
19352        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19353$as_echo "yes" >&6; }
19354	have_systemd_daemon=yes
19355fi
19356		if test "x$have_systemd_daemon" = "xyes"; then :
19357  have_systemd=yes
19358fi
19359
19360fi
19361	case $enable_systemd:$have_systemd in #(
19362  yes:no) :
19363    as_fn_error $? "systemd enabled but libsystemd not found" "$LINENO" 5 ;; #(
19364  *:yes) :
19365
19366$as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
19367
19368		LIBS="$LIBS $SYSTEMD_LIBS"
19369
19370	 ;; #(
19371  *) :
19372     ;;
19373esac
19374
19375
19376fi
19377 if test "x$have_systemd" = xyes; then
19378  USE_SYSTEMD_TRUE=
19379  USE_SYSTEMD_FALSE='#'
19380else
19381  USE_SYSTEMD_TRUE='#'
19382  USE_SYSTEMD_FALSE=
19383fi
19384
19385
19386# Include systemd.m4 - end
19387
19388# set lock checking if requested
19389# Check whether --enable-lock_checks was given.
19390if test "${enable_lock_checks+set}" = set; then :
19391  enableval=$enable_lock_checks;
19392fi
19393
19394if test x_$enable_lock_checks = x_yes; then
19395
19396$as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h
19397
19398	CHECKLOCK_OBJ="checklocks.lo"
19399
19400fi
19401
19402
19403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
19404$as_echo_n "checking for getaddrinfo... " >&6; }
19405ac_cv_func_getaddrinfo=no
19406cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19407/* end confdefs.h.  */
19408
19409#ifdef __cplusplus
19410extern "C"
19411{
19412#endif
19413char* getaddrinfo();
19414char* (*f) () = getaddrinfo;
19415#ifdef __cplusplus
19416}
19417#endif
19418int main() {
19419        ;
19420        return 0;
19421}
19422
19423_ACEOF
19424if ac_fn_c_try_link "$LINENO"; then :
19425  ac_cv_func_getaddrinfo="yes"
19426if test "$ac_cv_header_windows_h" = "yes"; then
19427
19428$as_echo "#define USE_WINSOCK 1" >>confdefs.h
19429
19430	USE_WINSOCK="1"
19431	if echo $LIBS | grep 'lws2_32' >/dev/null; then
19432		:
19433	else
19434		LIBS="$LIBS -lws2_32"
19435	fi
19436fi
19437
19438else
19439  ORIGLIBS="$LIBS"
19440LIBS="$LIBS -lws2_32"
19441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19442/* end confdefs.h.  */
19443
19444#ifdef HAVE_WS2TCPIP_H
19445#include <ws2tcpip.h>
19446#endif
19447
19448int
19449main ()
19450{
19451
19452        (void)getaddrinfo(NULL, NULL, NULL, NULL);
19453
19454
19455  ;
19456  return 0;
19457}
19458_ACEOF
19459if ac_fn_c_try_link "$LINENO"; then :
19460
19461ac_cv_func_getaddrinfo="yes"
19462
19463$as_echo "#define USE_WINSOCK 1" >>confdefs.h
19464
19465USE_WINSOCK="1"
19466
19467else
19468
19469ac_cv_func_getaddrinfo="no"
19470LIBS="$ORIGLIBS"
19471
19472fi
19473rm -f core conftest.err conftest.$ac_objext \
19474    conftest$ac_exeext conftest.$ac_ext
19475
19476fi
19477rm -f core conftest.err conftest.$ac_objext \
19478    conftest$ac_exeext conftest.$ac_ext
19479
19480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
19481$as_echo "$ac_cv_func_getaddrinfo" >&6; }
19482if test $ac_cv_func_getaddrinfo = yes; then
19483
19484$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
19485
19486fi
19487
19488if test "$USE_WINSOCK" = 1; then
19489
19490$as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h
19491
19492	for ac_header in iphlpapi.h
19493do :
19494  ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default
19495#include <windows.h>
19496
19497"
19498if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
19499  cat >>confdefs.h <<_ACEOF
19500#define HAVE_IPHLPAPI_H 1
19501_ACEOF
19502
19503fi
19504
19505done
19506
19507	if test -n "$ac_tool_prefix"; then
19508  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
19509set dummy ${ac_tool_prefix}windres; ac_word=$2
19510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19511$as_echo_n "checking for $ac_word... " >&6; }
19512if ${ac_cv_prog_WINDRES+:} false; then :
19513  $as_echo_n "(cached) " >&6
19514else
19515  if test -n "$WINDRES"; then
19516  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
19517else
19518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19519for as_dir in $PATH
19520do
19521  IFS=$as_save_IFS
19522  test -z "$as_dir" && as_dir=.
19523    for ac_exec_ext in '' $ac_executable_extensions; do
19524  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19525    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
19526    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19527    break 2
19528  fi
19529done
19530  done
19531IFS=$as_save_IFS
19532
19533fi
19534fi
19535WINDRES=$ac_cv_prog_WINDRES
19536if test -n "$WINDRES"; then
19537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
19538$as_echo "$WINDRES" >&6; }
19539else
19540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19541$as_echo "no" >&6; }
19542fi
19543
19544
19545fi
19546if test -z "$ac_cv_prog_WINDRES"; then
19547  ac_ct_WINDRES=$WINDRES
19548  # Extract the first word of "windres", so it can be a program name with args.
19549set dummy windres; ac_word=$2
19550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19551$as_echo_n "checking for $ac_word... " >&6; }
19552if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
19553  $as_echo_n "(cached) " >&6
19554else
19555  if test -n "$ac_ct_WINDRES"; then
19556  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
19557else
19558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19559for as_dir in $PATH
19560do
19561  IFS=$as_save_IFS
19562  test -z "$as_dir" && as_dir=.
19563    for ac_exec_ext in '' $ac_executable_extensions; do
19564  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19565    ac_cv_prog_ac_ct_WINDRES="windres"
19566    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19567    break 2
19568  fi
19569done
19570  done
19571IFS=$as_save_IFS
19572
19573fi
19574fi
19575ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
19576if test -n "$ac_ct_WINDRES"; then
19577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
19578$as_echo "$ac_ct_WINDRES" >&6; }
19579else
19580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19581$as_echo "no" >&6; }
19582fi
19583
19584  if test "x$ac_ct_WINDRES" = x; then
19585    WINDRES=""
19586  else
19587    case $cross_compiling:$ac_tool_warned in
19588yes:)
19589{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19590$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19591ac_tool_warned=yes ;;
19592esac
19593    WINDRES=$ac_ct_WINDRES
19594  fi
19595else
19596  WINDRES="$ac_cv_prog_WINDRES"
19597fi
19598
19599	LIBS="$LIBS -liphlpapi -lcrypt32"
19600	WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
19601
19602	WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c"
19603
19604	WIN_DAEMON_OBJ="win_svc.lo w_inst.lo"
19605
19606	WIN_DAEMON_OBJ_LINK="rsrc_unbound.o"
19607
19608	WIN_HOST_OBJ_LINK="rsrc_unbound_host.o"
19609
19610	WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo"
19611
19612	WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o"
19613
19614	WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o"
19615
19616fi
19617if test $ac_cv_func_getaddrinfo = no; then
19618	case " $LIBOBJS " in
19619  *" fake-rfc2553.$ac_objext "* ) ;;
19620  *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
19621 ;;
19622esac
19623
19624fi
19625# check after getaddrinfo for its libraries
19626
19627# check ioctlsocket
19628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
19629$as_echo_n "checking for ioctlsocket... " >&6; }
19630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19631/* end confdefs.h.  */
19632
19633#ifdef HAVE_WINSOCK2_H
19634#include <winsock2.h>
19635#endif
19636
19637int
19638main ()
19639{
19640
19641	(void)ioctlsocket(0, 0, NULL);
19642
19643  ;
19644  return 0;
19645}
19646_ACEOF
19647if ac_fn_c_try_link "$LINENO"; then :
19648
19649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19650$as_echo "yes" >&6; }
19651
19652$as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
19653
19654
19655else
19656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19657$as_echo "no" >&6; }
19658fi
19659rm -f core conftest.err conftest.$ac_objext \
19660    conftest$ac_exeext conftest.$ac_ext
19661
19662
19663# see if daemon(3) exists, and if it is deprecated.
19664for ac_func in daemon
19665do :
19666  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
19667if test "x$ac_cv_func_daemon" = xyes; then :
19668  cat >>confdefs.h <<_ACEOF
19669#define HAVE_DAEMON 1
19670_ACEOF
19671
19672fi
19673done
19674
19675if test $ac_cv_func_daemon = yes; then
19676
19677
19678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5
19679$as_echo_n "checking if daemon is deprecated... " >&6; }
19680cache=`echo daemon | sed 'y%.=/+-%___p_%'`
19681if eval \${cv_cc_deprecated_$cache+:} false; then :
19682  $as_echo_n "(cached) " >&6
19683else
19684
19685echo '
19686#include <stdlib.h>
19687' >conftest.c
19688echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c
19689if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then
19690eval "cv_cc_deprecated_$cache=no"
19691else
19692eval "cv_cc_deprecated_$cache=yes"
19693fi
19694rm -f conftest conftest.o conftest.c
19695
19696fi
19697
19698if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
19699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19700$as_echo "yes" >&6; }
19701
19702cat >>confdefs.h <<_ACEOF
19703#define DEPRECATED_DAEMON 1
19704_ACEOF
19705
19706:
19707
19708else
19709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19710$as_echo "no" >&6; }
19711:
19712
19713fi
19714
19715fi
19716
19717ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "
19718$ac_includes_default
19719#ifdef HAVE_SYS_UN_H
19720#include <sys/un.h>
19721#endif
19722
19723"
19724if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
19725
19726cat >>confdefs.h <<_ACEOF
19727#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
19728_ACEOF
19729
19730
19731fi
19732
19733ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "
19734$ac_includes_default
19735#if HAVE_SYS_PARAM_H
19736#include <sys/param.h>
19737#endif
19738
19739#ifdef HAVE_SYS_SOCKET_H
19740#include <sys/socket.h>
19741#endif
19742
19743#ifdef HAVE_SYS_UIO_H
19744#include <sys/uio.h>
19745#endif
19746
19747#ifdef HAVE_NETINET_IN_H
19748#include <netinet/in.h>
19749#endif
19750
19751#ifdef HAVE_NETINET_TCP_H
19752#include <netinet/tcp.h>
19753#endif
19754
19755#ifdef HAVE_ARPA_INET_H
19756#include <arpa/inet.h>
19757#endif
19758
19759#ifdef HAVE_WINSOCK2_H
19760#include <winsock2.h>
19761#endif
19762
19763#ifdef HAVE_WS2TCPIP_H
19764#include <ws2tcpip.h>
19765#endif
19766
19767"
19768if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then :
19769
19770cat >>confdefs.h <<_ACEOF
19771#define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1
19772_ACEOF
19773
19774
19775fi
19776
19777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
19778$as_echo_n "checking for library containing setusercontext... " >&6; }
19779if ${ac_cv_search_setusercontext+:} false; then :
19780  $as_echo_n "(cached) " >&6
19781else
19782  ac_func_search_save_LIBS=$LIBS
19783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19784/* end confdefs.h.  */
19785
19786/* Override any GCC internal prototype to avoid an error.
19787   Use char because int might match the return type of a GCC
19788   builtin and then its argument prototype would still apply.  */
19789#ifdef __cplusplus
19790extern "C"
19791#endif
19792char setusercontext ();
19793int
19794main ()
19795{
19796return setusercontext ();
19797  ;
19798  return 0;
19799}
19800_ACEOF
19801for ac_lib in '' util; do
19802  if test -z "$ac_lib"; then
19803    ac_res="none required"
19804  else
19805    ac_res=-l$ac_lib
19806    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19807  fi
19808  if ac_fn_c_try_link "$LINENO"; then :
19809  ac_cv_search_setusercontext=$ac_res
19810fi
19811rm -f core conftest.err conftest.$ac_objext \
19812    conftest$ac_exeext
19813  if ${ac_cv_search_setusercontext+:} false; then :
19814  break
19815fi
19816done
19817if ${ac_cv_search_setusercontext+:} false; then :
19818
19819else
19820  ac_cv_search_setusercontext=no
19821fi
19822rm conftest.$ac_ext
19823LIBS=$ac_func_search_save_LIBS
19824fi
19825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
19826$as_echo "$ac_cv_search_setusercontext" >&6; }
19827ac_res=$ac_cv_search_setusercontext
19828if test "$ac_res" != no; then :
19829  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19830
19831fi
19832
19833for ac_func in tzset sigprocmask fcntl getpwnam endpwent getrlimit setrlimit setsid chroot kill chown sleep usleep random srandom recvmsg sendmsg writev socketpair glob initgroups strftime localtime_r setusercontext _beginthreadex endservent endprotoent fsync shmget accept4
19834do :
19835  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19836ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19837if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19838  cat >>confdefs.h <<_ACEOF
19839#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19840_ACEOF
19841
19842fi
19843done
19844
19845for ac_func in setresuid
19846do :
19847  ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
19848if test "x$ac_cv_func_setresuid" = xyes; then :
19849  cat >>confdefs.h <<_ACEOF
19850#define HAVE_SETRESUID 1
19851_ACEOF
19852
19853else
19854  for ac_func in setreuid
19855do :
19856  ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
19857if test "x$ac_cv_func_setreuid" = xyes; then :
19858  cat >>confdefs.h <<_ACEOF
19859#define HAVE_SETREUID 1
19860_ACEOF
19861
19862fi
19863done
19864
19865fi
19866done
19867
19868for ac_func in setresgid
19869do :
19870  ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
19871if test "x$ac_cv_func_setresgid" = xyes; then :
19872  cat >>confdefs.h <<_ACEOF
19873#define HAVE_SETRESGID 1
19874_ACEOF
19875
19876else
19877  for ac_func in setregid
19878do :
19879  ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
19880if test "x$ac_cv_func_setregid" = xyes; then :
19881  cat >>confdefs.h <<_ACEOF
19882#define HAVE_SETREGID 1
19883_ACEOF
19884
19885fi
19886done
19887
19888fi
19889done
19890
19891
19892# check if setreuid en setregid fail, on MacOSX10.4(darwin8).
19893if echo $target_os | grep darwin8 > /dev/null; then
19894
19895$as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
19896
19897fi
19898ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "
19899$ac_includes_default
19900#ifdef HAVE_NETINET_IN_H
19901#include <netinet/in.h>
19902#endif
19903
19904#ifdef HAVE_NETINET_TCP_H
19905#include <netinet/tcp.h>
19906#endif
19907
19908#ifdef HAVE_ARPA_INET_H
19909#include <arpa/inet.h>
19910#endif
19911
19912#ifdef HAVE_WINSOCK2_H
19913#include <winsock2.h>
19914#endif
19915
19916#ifdef HAVE_WS2TCPIP_H
19917#include <ws2tcpip.h>
19918#endif
19919
19920"
19921if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
19922  ac_have_decl=1
19923else
19924  ac_have_decl=0
19925fi
19926
19927cat >>confdefs.h <<_ACEOF
19928#define HAVE_DECL_INET_PTON $ac_have_decl
19929_ACEOF
19930ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "
19931$ac_includes_default
19932#ifdef HAVE_NETINET_IN_H
19933#include <netinet/in.h>
19934#endif
19935
19936#ifdef HAVE_NETINET_TCP_H
19937#include <netinet/tcp.h>
19938#endif
19939
19940#ifdef HAVE_ARPA_INET_H
19941#include <arpa/inet.h>
19942#endif
19943
19944#ifdef HAVE_WINSOCK2_H
19945#include <winsock2.h>
19946#endif
19947
19948#ifdef HAVE_WS2TCPIP_H
19949#include <ws2tcpip.h>
19950#endif
19951
19952"
19953if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
19954  ac_have_decl=1
19955else
19956  ac_have_decl=0
19957fi
19958
19959cat >>confdefs.h <<_ACEOF
19960#define HAVE_DECL_INET_NTOP $ac_have_decl
19961_ACEOF
19962
19963ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
19964if test "x$ac_cv_func_inet_aton" = xyes; then :
19965  $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
19966
19967else
19968  case " $LIBOBJS " in
19969  *" inet_aton.$ac_objext "* ) ;;
19970  *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
19971 ;;
19972esac
19973
19974fi
19975
19976
19977ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
19978if test "x$ac_cv_func_inet_pton" = xyes; then :
19979  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
19980
19981else
19982  case " $LIBOBJS " in
19983  *" inet_pton.$ac_objext "* ) ;;
19984  *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
19985 ;;
19986esac
19987
19988fi
19989
19990
19991ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
19992if test "x$ac_cv_func_inet_ntop" = xyes; then :
19993  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
19994
19995else
19996  case " $LIBOBJS " in
19997  *" inet_ntop.$ac_objext "* ) ;;
19998  *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
19999 ;;
20000esac
20001
20002fi
20003
20004
20005ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
20006if test "x$ac_cv_func_snprintf" = xyes; then :
20007  $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
20008
20009else
20010  case " $LIBOBJS " in
20011  *" snprintf.$ac_objext "* ) ;;
20012  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20013 ;;
20014esac
20015
20016fi
20017
20018
20019# test if snprintf return the proper length
20020if test "x$ac_cv_func_snprintf" = xyes; then
20021    if test c${cross_compiling} = cno; then
20022	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct snprintf return value" >&5
20023$as_echo_n "checking for correct snprintf return value... " >&6; }
20024	if test "$cross_compiling" = yes; then :
20025  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20026$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20027as_fn_error $? "cannot run test program while cross compiling
20028See \`config.log' for more details" "$LINENO" 5; }
20029else
20030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20031/* end confdefs.h.  */
20032$ac_includes_default
20033
20034int main(void) { return !(snprintf(NULL, 0, "test") == 4); }
20035
20036_ACEOF
20037if ac_fn_c_try_run "$LINENO"; then :
20038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20039$as_echo "yes" >&6; }
20040else
20041
20042		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20043$as_echo "no" >&6; }
20044
20045$as_echo "#define SNPRINTF_RET_BROKEN /**/" >>confdefs.h
20046
20047		case " $LIBOBJS " in
20048  *" snprintf.$ac_objext "* ) ;;
20049  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20050 ;;
20051esac
20052
20053
20054fi
20055rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20056  conftest.$ac_objext conftest.beam conftest.$ac_ext
20057fi
20058
20059    fi
20060fi
20061ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
20062if test "x$ac_cv_func_strlcat" = xyes; then :
20063  $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
20064
20065else
20066  case " $LIBOBJS " in
20067  *" strlcat.$ac_objext "* ) ;;
20068  *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
20069 ;;
20070esac
20071
20072fi
20073
20074
20075ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
20076if test "x$ac_cv_func_strlcpy" = xyes; then :
20077  $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
20078
20079else
20080  case " $LIBOBJS " in
20081  *" strlcpy.$ac_objext "* ) ;;
20082  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
20083 ;;
20084esac
20085
20086fi
20087
20088
20089ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
20090if test "x$ac_cv_func_memmove" = xyes; then :
20091  $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
20092
20093else
20094  case " $LIBOBJS " in
20095  *" memmove.$ac_objext "* ) ;;
20096  *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
20097 ;;
20098esac
20099
20100fi
20101
20102
20103ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
20104if test "x$ac_cv_func_gmtime_r" = xyes; then :
20105  $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
20106
20107else
20108  case " $LIBOBJS " in
20109  *" gmtime_r.$ac_objext "* ) ;;
20110  *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
20111 ;;
20112esac
20113
20114fi
20115
20116
20117ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
20118if test "x$ac_cv_func_isblank" = xyes; then :
20119  $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
20120
20121else
20122  case " $LIBOBJS " in
20123  *" isblank.$ac_objext "* ) ;;
20124  *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
20125 ;;
20126esac
20127
20128fi
20129
20130
20131ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
20132if test "x$ac_cv_func_explicit_bzero" = xyes; then :
20133  $as_echo "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
20134
20135else
20136  case " $LIBOBJS " in
20137  *" explicit_bzero.$ac_objext "* ) ;;
20138  *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext"
20139 ;;
20140esac
20141
20142fi
20143
20144
20145LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS"
20146
20147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for reallocarray" >&5
20148$as_echo_n "checking for reallocarray... " >&6; }
20149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20150/* end confdefs.h.  */
20151$ac_includes_default
20152
20153#ifndef _OPENBSD_SOURCE
20154#define _OPENBSD_SOURCE 1
20155#endif
20156#include <stdlib.h>
20157int main(void) {
20158	void* p = reallocarray(NULL, 10, 100);
20159	free(p);
20160	return 0;
20161}
20162
20163_ACEOF
20164if ac_fn_c_try_link "$LINENO"; then :
20165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20166$as_echo "yes" >&6; }
20167
20168$as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h
20169
20170
20171else
20172
20173	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20174$as_echo "no" >&6; }
20175	case " $LIBOBJS " in
20176  *" reallocarray.$ac_objext "* ) ;;
20177  *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
20178 ;;
20179esac
20180
20181
20182fi
20183rm -f core conftest.err conftest.$ac_objext \
20184    conftest$ac_exeext conftest.$ac_ext
20185if test "$USE_NSS" = "no"; then
20186	ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
20187if test "x$ac_cv_func_arc4random" = xyes; then :
20188  $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
20189
20190else
20191  case " $LIBOBJS " in
20192  *" arc4random.$ac_objext "* ) ;;
20193  *) LIBOBJS="$LIBOBJS arc4random.$ac_objext"
20194 ;;
20195esac
20196
20197fi
20198
20199
20200	ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform"
20201if test "x$ac_cv_func_arc4random_uniform" = xyes; then :
20202  $as_echo "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h
20203
20204else
20205  case " $LIBOBJS " in
20206  *" arc4random_uniform.$ac_objext "* ) ;;
20207  *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext"
20208 ;;
20209esac
20210
20211fi
20212
20213
20214	if test "$ac_cv_func_arc4random" = "no"; then
20215		case " $LIBOBJS " in
20216  *" arc4_lock.$ac_objext "* ) ;;
20217  *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext"
20218 ;;
20219esac
20220
20221		for ac_func in getentropy
20222do :
20223  ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
20224if test "x$ac_cv_func_getentropy" = xyes; then :
20225  cat >>confdefs.h <<_ACEOF
20226#define HAVE_GETENTROPY 1
20227_ACEOF
20228
20229else
20230
20231		    if test "$USE_WINSOCK" = 1; then
20232			case " $LIBOBJS " in
20233  *" getentropy_win.$ac_objext "* ) ;;
20234  *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext"
20235 ;;
20236esac
20237
20238		    else
20239			case "$host" in
20240			Darwin|*darwin*)
20241				case " $LIBOBJS " in
20242  *" getentropy_osx.$ac_objext "* ) ;;
20243  *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext"
20244 ;;
20245esac
20246
20247			;;
20248			*solaris*|*sunos*|SunOS)
20249				case " $LIBOBJS " in
20250  *" getentropy_solaris.$ac_objext "* ) ;;
20251  *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext"
20252 ;;
20253esac
20254
20255				for ac_header in sys/sha2.h
20256do :
20257  ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default
20258"
20259if test "x$ac_cv_header_sys_sha2_h" = xyes; then :
20260  cat >>confdefs.h <<_ACEOF
20261#define HAVE_SYS_SHA2_H 1
20262_ACEOF
20263
20264else
20265
20266					for ac_func in SHA512_Update
20267do :
20268  ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
20269if test "x$ac_cv_func_SHA512_Update" = xyes; then :
20270  cat >>confdefs.h <<_ACEOF
20271#define HAVE_SHA512_UPDATE 1
20272_ACEOF
20273
20274else
20275
20276						case " $LIBOBJS " in
20277  *" sha512.$ac_objext "* ) ;;
20278  *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
20279 ;;
20280esac
20281
20282
20283fi
20284done
20285
20286
20287fi
20288
20289done
20290
20291				if test "$ac_cv_header_sys_sha2_h" = "yes"; then
20292					# this lib needed for sha2 on solaris
20293					LIBS="$LIBS -lmd"
20294				fi
20295				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20296$as_echo_n "checking for library containing clock_gettime... " >&6; }
20297if ${ac_cv_search_clock_gettime+:} false; then :
20298  $as_echo_n "(cached) " >&6
20299else
20300  ac_func_search_save_LIBS=$LIBS
20301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20302/* end confdefs.h.  */
20303
20304/* Override any GCC internal prototype to avoid an error.
20305   Use char because int might match the return type of a GCC
20306   builtin and then its argument prototype would still apply.  */
20307#ifdef __cplusplus
20308extern "C"
20309#endif
20310char clock_gettime ();
20311int
20312main ()
20313{
20314return clock_gettime ();
20315  ;
20316  return 0;
20317}
20318_ACEOF
20319for ac_lib in '' rt; do
20320  if test -z "$ac_lib"; then
20321    ac_res="none required"
20322  else
20323    ac_res=-l$ac_lib
20324    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20325  fi
20326  if ac_fn_c_try_link "$LINENO"; then :
20327  ac_cv_search_clock_gettime=$ac_res
20328fi
20329rm -f core conftest.err conftest.$ac_objext \
20330    conftest$ac_exeext
20331  if ${ac_cv_search_clock_gettime+:} false; then :
20332  break
20333fi
20334done
20335if ${ac_cv_search_clock_gettime+:} false; then :
20336
20337else
20338  ac_cv_search_clock_gettime=no
20339fi
20340rm conftest.$ac_ext
20341LIBS=$ac_func_search_save_LIBS
20342fi
20343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20344$as_echo "$ac_cv_search_clock_gettime" >&6; }
20345ac_res=$ac_cv_search_clock_gettime
20346if test "$ac_res" != no; then :
20347  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20348
20349fi
20350
20351			;;
20352			*linux*|Linux|*)
20353				case " $LIBOBJS " in
20354  *" getentropy_linux.$ac_objext "* ) ;;
20355  *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext"
20356 ;;
20357esac
20358
20359				for ac_func in SHA512_Update
20360do :
20361  ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
20362if test "x$ac_cv_func_SHA512_Update" = xyes; then :
20363  cat >>confdefs.h <<_ACEOF
20364#define HAVE_SHA512_UPDATE 1
20365_ACEOF
20366
20367else
20368
20369
20370$as_echo "#define COMPAT_SHA512 1" >>confdefs.h
20371
20372					case " $LIBOBJS " in
20373  *" sha512.$ac_objext "* ) ;;
20374  *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
20375 ;;
20376esac
20377
20378
20379fi
20380done
20381
20382				for ac_header in sys/sysctl.h
20383do :
20384  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
20385"
20386if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
20387  cat >>confdefs.h <<_ACEOF
20388#define HAVE_SYS_SYSCTL_H 1
20389_ACEOF
20390
20391fi
20392
20393done
20394
20395				for ac_func in getauxval
20396do :
20397  ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
20398if test "x$ac_cv_func_getauxval" = xyes; then :
20399  cat >>confdefs.h <<_ACEOF
20400#define HAVE_GETAUXVAL 1
20401_ACEOF
20402
20403fi
20404done
20405
20406				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20407$as_echo_n "checking for library containing clock_gettime... " >&6; }
20408if ${ac_cv_search_clock_gettime+:} false; then :
20409  $as_echo_n "(cached) " >&6
20410else
20411  ac_func_search_save_LIBS=$LIBS
20412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20413/* end confdefs.h.  */
20414
20415/* Override any GCC internal prototype to avoid an error.
20416   Use char because int might match the return type of a GCC
20417   builtin and then its argument prototype would still apply.  */
20418#ifdef __cplusplus
20419extern "C"
20420#endif
20421char clock_gettime ();
20422int
20423main ()
20424{
20425return clock_gettime ();
20426  ;
20427  return 0;
20428}
20429_ACEOF
20430for ac_lib in '' rt; do
20431  if test -z "$ac_lib"; then
20432    ac_res="none required"
20433  else
20434    ac_res=-l$ac_lib
20435    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20436  fi
20437  if ac_fn_c_try_link "$LINENO"; then :
20438  ac_cv_search_clock_gettime=$ac_res
20439fi
20440rm -f core conftest.err conftest.$ac_objext \
20441    conftest$ac_exeext
20442  if ${ac_cv_search_clock_gettime+:} false; then :
20443  break
20444fi
20445done
20446if ${ac_cv_search_clock_gettime+:} false; then :
20447
20448else
20449  ac_cv_search_clock_gettime=no
20450fi
20451rm conftest.$ac_ext
20452LIBS=$ac_func_search_save_LIBS
20453fi
20454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20455$as_echo "$ac_cv_search_clock_gettime" >&6; }
20456ac_res=$ac_cv_search_clock_gettime
20457if test "$ac_res" != no; then :
20458  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20459
20460fi
20461
20462			;;
20463			esac
20464		    fi
20465
20466fi
20467done
20468
20469	fi
20470fi
20471LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
20472
20473ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
20474if test "x$ac_cv_func_ctime_r" = xyes; then :
20475  $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
20476
20477else
20478  case " $LIBOBJS " in
20479  *" ctime_r.$ac_objext "* ) ;;
20480  *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
20481 ;;
20482esac
20483
20484fi
20485
20486
20487ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
20488if test "x$ac_cv_func_strsep" = xyes; then :
20489  $as_echo "#define HAVE_STRSEP 1" >>confdefs.h
20490
20491else
20492  case " $LIBOBJS " in
20493  *" strsep.$ac_objext "* ) ;;
20494  *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
20495 ;;
20496esac
20497
20498fi
20499
20500
20501
20502# Check whether --enable-allsymbols was given.
20503if test "${enable_allsymbols+set}" = set; then :
20504  enableval=$enable_allsymbols;
20505fi
20506
20507case "$enable_allsymbols" in
20508	yes)
20509	COMMON_OBJ_ALL_SYMBOLS=""
20510	UBSYMS=""
20511	EXTRALINK="-L. -L.libs -lunbound"
20512
20513$as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h
20514
20515	;;
20516	no|*)
20517	COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)'
20518	UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def'
20519	EXTRALINK=""
20520	;;
20521esac
20522
20523
20524
20525if test x_$enable_lock_checks = x_yes; then
20526	UBSYMS="-export-symbols clubsyms.def"
20527	cp ${srcdir}/libunbound/ubsyms.def clubsyms.def
20528	echo lock_protect >> clubsyms.def
20529	echo lock_unprotect >> clubsyms.def
20530	echo lock_get_mem >> clubsyms.def
20531	echo checklock_start >> clubsyms.def
20532	echo checklock_stop >> clubsyms.def
20533	echo checklock_lock >> clubsyms.def
20534	echo checklock_unlock >> clubsyms.def
20535	echo checklock_init >> clubsyms.def
20536	echo checklock_thrcreate >> clubsyms.def
20537	echo checklock_thrjoin >> clubsyms.def
20538fi
20539
20540# check for dnstap if requested
20541
20542  # Check whether --enable-dnstap was given.
20543if test "${enable_dnstap+set}" = set; then :
20544  enableval=$enable_dnstap; opt_dnstap=$enableval
20545else
20546  opt_dnstap=no
20547fi
20548
20549
20550
20551# Check whether --with-dnstap-socket-path was given.
20552if test "${with_dnstap_socket_path+set}" = set; then :
20553  withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval
20554else
20555  opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock"
20556fi
20557
20558
20559  if test "x$opt_dnstap" != "xno"; then
20560    # Extract the first word of "protoc-c", so it can be a program name with args.
20561set dummy protoc-c; ac_word=$2
20562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20563$as_echo_n "checking for $ac_word... " >&6; }
20564if ${ac_cv_path_PROTOC_C+:} false; then :
20565  $as_echo_n "(cached) " >&6
20566else
20567  case $PROTOC_C in
20568  [\\/]* | ?:[\\/]*)
20569  ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
20570  ;;
20571  *)
20572  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20573for as_dir in $PATH
20574do
20575  IFS=$as_save_IFS
20576  test -z "$as_dir" && as_dir=.
20577    for ac_exec_ext in '' $ac_executable_extensions; do
20578  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20579    ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
20580    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20581    break 2
20582  fi
20583done
20584  done
20585IFS=$as_save_IFS
20586
20587  ;;
20588esac
20589fi
20590PROTOC_C=$ac_cv_path_PROTOC_C
20591if test -n "$PROTOC_C"; then
20592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
20593$as_echo "$PROTOC_C" >&6; }
20594else
20595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20596$as_echo "no" >&6; }
20597fi
20598
20599
20600    if test -z "$PROTOC_C"; then
20601      as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5
20602    fi
20603
20604# Check whether --with-protobuf-c was given.
20605if test "${with_protobuf_c+set}" = set; then :
20606  withval=$with_protobuf_c;
20607	  # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
20608	  if test -f $withval/include/google/protobuf-c/protobuf-c.h; then
20609	    CFLAGS="$CFLAGS -I$withval/include/google"
20610	  else
20611	    CFLAGS="$CFLAGS -I$withval/include"
20612	  fi
20613	  LDFLAGS="$LDFLAGS -L$withval/lib"
20614
20615else
20616
20617	  # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
20618	  if test -f /usr/include/google/protobuf-c/protobuf-c.h; then
20619	    CFLAGS="$CFLAGS -I/usr/include/google"
20620	  else
20621	    if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then
20622	      CFLAGS="$CFLAGS -I/usr/local/include/google"
20623	      LDFLAGS="$LDFLAGS -L/usr/local/lib"
20624	    fi
20625	  fi
20626
20627fi
20628
20629
20630# Check whether --with-libfstrm was given.
20631if test "${with_libfstrm+set}" = set; then :
20632  withval=$with_libfstrm;
20633	CFLAGS="$CFLAGS -I$withval/include"
20634	LDFLAGS="$LDFLAGS -L$withval/lib"
20635
20636fi
20637
20638    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5
20639$as_echo_n "checking for library containing fstrm_iothr_init... " >&6; }
20640if ${ac_cv_search_fstrm_iothr_init+:} false; then :
20641  $as_echo_n "(cached) " >&6
20642else
20643  ac_func_search_save_LIBS=$LIBS
20644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20645/* end confdefs.h.  */
20646
20647/* Override any GCC internal prototype to avoid an error.
20648   Use char because int might match the return type of a GCC
20649   builtin and then its argument prototype would still apply.  */
20650#ifdef __cplusplus
20651extern "C"
20652#endif
20653char fstrm_iothr_init ();
20654int
20655main ()
20656{
20657return fstrm_iothr_init ();
20658  ;
20659  return 0;
20660}
20661_ACEOF
20662for ac_lib in '' fstrm; do
20663  if test -z "$ac_lib"; then
20664    ac_res="none required"
20665  else
20666    ac_res=-l$ac_lib
20667    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20668  fi
20669  if ac_fn_c_try_link "$LINENO"; then :
20670  ac_cv_search_fstrm_iothr_init=$ac_res
20671fi
20672rm -f core conftest.err conftest.$ac_objext \
20673    conftest$ac_exeext
20674  if ${ac_cv_search_fstrm_iothr_init+:} false; then :
20675  break
20676fi
20677done
20678if ${ac_cv_search_fstrm_iothr_init+:} false; then :
20679
20680else
20681  ac_cv_search_fstrm_iothr_init=no
20682fi
20683rm conftest.$ac_ext
20684LIBS=$ac_func_search_save_LIBS
20685fi
20686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5
20687$as_echo "$ac_cv_search_fstrm_iothr_init" >&6; }
20688ac_res=$ac_cv_search_fstrm_iothr_init
20689if test "$ac_res" != no; then :
20690  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20691
20692else
20693  as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5
20694fi
20695
20696    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
20697$as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
20698if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
20699  $as_echo_n "(cached) " >&6
20700else
20701  ac_func_search_save_LIBS=$LIBS
20702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20703/* end confdefs.h.  */
20704
20705/* Override any GCC internal prototype to avoid an error.
20706   Use char because int might match the return type of a GCC
20707   builtin and then its argument prototype would still apply.  */
20708#ifdef __cplusplus
20709extern "C"
20710#endif
20711char protobuf_c_message_pack ();
20712int
20713main ()
20714{
20715return protobuf_c_message_pack ();
20716  ;
20717  return 0;
20718}
20719_ACEOF
20720for ac_lib in '' protobuf-c; do
20721  if test -z "$ac_lib"; then
20722    ac_res="none required"
20723  else
20724    ac_res=-l$ac_lib
20725    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20726  fi
20727  if ac_fn_c_try_link "$LINENO"; then :
20728  ac_cv_search_protobuf_c_message_pack=$ac_res
20729fi
20730rm -f core conftest.err conftest.$ac_objext \
20731    conftest$ac_exeext
20732  if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
20733  break
20734fi
20735done
20736if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
20737
20738else
20739  ac_cv_search_protobuf_c_message_pack=no
20740fi
20741rm conftest.$ac_ext
20742LIBS=$ac_func_search_save_LIBS
20743fi
20744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
20745$as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
20746ac_res=$ac_cv_search_protobuf_c_message_pack
20747if test "$ac_res" != no; then :
20748  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20749
20750else
20751  as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
20752fi
20753
20754
20755
20756$as_echo "#define USE_DNSTAP 1" >>confdefs.h
20757
20758        ENABLE_DNSTAP=1
20759
20760
20761
20762        hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`"
20763
20764
20765cat >>confdefs.h <<_ACEOF
20766#define DNSTAP_SOCKET_PATH "$hdr_dnstap_socket_path"
20767_ACEOF
20768
20769
20770        DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c"
20771
20772        DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo"
20773
20774
20775  else
20776
20777        ENABLE_DNSTAP=0
20778
20779
20780
20781  fi
20782
20783
20784# check for dnscrypt if requested
20785
20786  # Check whether --enable-dnscrypt was given.
20787if test "${enable_dnscrypt+set}" = set; then :
20788  enableval=$enable_dnscrypt; opt_dnscrypt=$enableval
20789else
20790  opt_dnscrypt=no
20791fi
20792
20793
20794  if test "x$opt_dnscrypt" != "xno"; then
20795
20796# Check whether --with-libsodium was given.
20797if test "${with_libsodium+set}" = set; then :
20798  withval=$with_libsodium;
20799	CFLAGS="$CFLAGS -I$withval/include"
20800	LDFLAGS="$LDFLAGS -L$withval/lib"
20801
20802fi
20803
20804    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_init" >&5
20805$as_echo_n "checking for library containing sodium_init... " >&6; }
20806if ${ac_cv_search_sodium_init+:} false; then :
20807  $as_echo_n "(cached) " >&6
20808else
20809  ac_func_search_save_LIBS=$LIBS
20810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20811/* end confdefs.h.  */
20812
20813/* Override any GCC internal prototype to avoid an error.
20814   Use char because int might match the return type of a GCC
20815   builtin and then its argument prototype would still apply.  */
20816#ifdef __cplusplus
20817extern "C"
20818#endif
20819char sodium_init ();
20820int
20821main ()
20822{
20823return sodium_init ();
20824  ;
20825  return 0;
20826}
20827_ACEOF
20828for ac_lib in '' sodium; do
20829  if test -z "$ac_lib"; then
20830    ac_res="none required"
20831  else
20832    ac_res=-l$ac_lib
20833    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20834  fi
20835  if ac_fn_c_try_link "$LINENO"; then :
20836  ac_cv_search_sodium_init=$ac_res
20837fi
20838rm -f core conftest.err conftest.$ac_objext \
20839    conftest$ac_exeext
20840  if ${ac_cv_search_sodium_init+:} false; then :
20841  break
20842fi
20843done
20844if ${ac_cv_search_sodium_init+:} false; then :
20845
20846else
20847  ac_cv_search_sodium_init=no
20848fi
20849rm conftest.$ac_ext
20850LIBS=$ac_func_search_save_LIBS
20851fi
20852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_init" >&5
20853$as_echo "$ac_cv_search_sodium_init" >&6; }
20854ac_res=$ac_cv_search_sodium_init
20855if test "$ac_res" != no; then :
20856  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20857
20858else
20859  as_fn_error $? "The sodium library was not found. Please install sodium!" "$LINENO" 5
20860fi
20861
20862    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm" >&5
20863$as_echo_n "checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm... " >&6; }
20864if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
20865  $as_echo_n "(cached) " >&6
20866else
20867  ac_func_search_save_LIBS=$LIBS
20868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20869/* end confdefs.h.  */
20870
20871/* Override any GCC internal prototype to avoid an error.
20872   Use char because int might match the return type of a GCC
20873   builtin and then its argument prototype would still apply.  */
20874#ifdef __cplusplus
20875extern "C"
20876#endif
20877char crypto_box_curve25519xchacha20poly1305_beforenm ();
20878int
20879main ()
20880{
20881return crypto_box_curve25519xchacha20poly1305_beforenm ();
20882  ;
20883  return 0;
20884}
20885_ACEOF
20886for ac_lib in '' sodium; do
20887  if test -z "$ac_lib"; then
20888    ac_res="none required"
20889  else
20890    ac_res=-l$ac_lib
20891    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20892  fi
20893  if ac_fn_c_try_link "$LINENO"; then :
20894  ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=$ac_res
20895fi
20896rm -f core conftest.err conftest.$ac_objext \
20897    conftest$ac_exeext
20898  if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
20899  break
20900fi
20901done
20902if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
20903
20904else
20905  ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=no
20906fi
20907rm conftest.$ac_ext
20908LIBS=$ac_func_search_save_LIBS
20909fi
20910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&5
20911$as_echo "$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&6; }
20912ac_res=$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm
20913if test "$ac_res" != no; then :
20914  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20915
20916            ENABLE_DNSCRYPT_XCHACHA20=1
20917
20918
20919$as_echo "#define USE_DNSCRYPT_XCHACHA20 1" >>confdefs.h
20920
20921
20922else
20923
20924            ENABLE_DNSCRYPT_XCHACHA20=0
20925
20926
20927fi
20928
20929    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_set_misuse_handler" >&5
20930$as_echo_n "checking for library containing sodium_set_misuse_handler... " >&6; }
20931if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
20932  $as_echo_n "(cached) " >&6
20933else
20934  ac_func_search_save_LIBS=$LIBS
20935cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20936/* end confdefs.h.  */
20937
20938/* Override any GCC internal prototype to avoid an error.
20939   Use char because int might match the return type of a GCC
20940   builtin and then its argument prototype would still apply.  */
20941#ifdef __cplusplus
20942extern "C"
20943#endif
20944char sodium_set_misuse_handler ();
20945int
20946main ()
20947{
20948return sodium_set_misuse_handler ();
20949  ;
20950  return 0;
20951}
20952_ACEOF
20953for ac_lib in '' sodium; do
20954  if test -z "$ac_lib"; then
20955    ac_res="none required"
20956  else
20957    ac_res=-l$ac_lib
20958    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20959  fi
20960  if ac_fn_c_try_link "$LINENO"; then :
20961  ac_cv_search_sodium_set_misuse_handler=$ac_res
20962fi
20963rm -f core conftest.err conftest.$ac_objext \
20964    conftest$ac_exeext
20965  if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
20966  break
20967fi
20968done
20969if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
20970
20971else
20972  ac_cv_search_sodium_set_misuse_handler=no
20973fi
20974rm conftest.$ac_ext
20975LIBS=$ac_func_search_save_LIBS
20976fi
20977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_set_misuse_handler" >&5
20978$as_echo "$ac_cv_search_sodium_set_misuse_handler" >&6; }
20979ac_res=$ac_cv_search_sodium_set_misuse_handler
20980if test "$ac_res" != no; then :
20981  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20982
20983
20984$as_echo "#define SODIUM_MISUSE_HANDLER 1" >>confdefs.h
20985
20986
20987fi
20988
20989
20990
20991$as_echo "#define USE_DNSCRYPT 1" >>confdefs.h
20992
20993        ENABLE_DNSCRYPT=1
20994
20995
20996        DNSCRYPT_SRC="dnscrypt/dnscrypt.c"
20997
20998        DNSCRYPT_OBJ="dnscrypt.lo"
20999
21000
21001  else
21002    ENABLE_DNSCRYPT_XCHACHA20=0
21003
21004
21005        ENABLE_DNSCRYPT=0
21006
21007
21008
21009  fi
21010
21011
21012# check for cachedb if requested
21013# Check whether --enable-cachedb was given.
21014if test "${enable_cachedb+set}" = set; then :
21015  enableval=$enable_cachedb;
21016fi
21017
21018# turn on cachedb when hiredis support is enabled.
21019if test "$found_libhiredis" = "yes"; then enable_cachedb="yes"; fi
21020case "$enable_cachedb" in
21021    yes)
21022
21023$as_echo "#define USE_CACHEDB 1" >>confdefs.h
21024
21025    	;;
21026    no|*)
21027    	# nothing
21028    	;;
21029esac
21030
21031# check for ipsecmod if requested
21032# Check whether --enable-ipsecmod was given.
21033if test "${enable_ipsecmod+set}" = set; then :
21034  enableval=$enable_ipsecmod;
21035fi
21036
21037case "$enable_ipsecmod" in
21038	yes)
21039
21040$as_echo "#define USE_IPSECMOD 1" >>confdefs.h
21041
21042		IPSECMOD_OBJ="ipsecmod.lo ipsecmod-whitelist.lo"
21043
21044		IPSECMOD_HEADER='$(srcdir)/ipsecmod/ipsecmod.h $(srcdir)/ipsecmod/ipsecmod-whitelist.h'
21045
21046		;;
21047	no|*)
21048		# nothing
21049		;;
21050esac
21051
21052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5
21053$as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; }
21054# on openBSD, the implicit rule make $< work.
21055# on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
21056# gmake works.
21057cat >conftest.make <<EOF
21058all:	conftest.lo
21059
21060conftest.lo foo.lo bla.lo:
21061	if test -f "\$<"; then touch \$@; fi
21062
21063.SUFFIXES: .lo
21064.c.lo:
21065	if test -f "\$<"; then touch \$@; fi
21066
21067conftest.lo:        conftest.dir/conftest.c
21068EOF
21069mkdir conftest.dir
21070touch conftest.dir/conftest.c
21071rm -f conftest.lo conftest.c
21072${MAKE:-make} -f conftest.make >/dev/null
21073rm -f conftest.make conftest.c conftest.dir/conftest.c
21074rm -rf conftest.dir
21075if test ! -f conftest.lo; then
21076	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21077$as_echo "no" >&6; }
21078	SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source'
21079	SOURCEFILE='`cat .source`'
21080else
21081	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21082$as_echo "yes" >&6; }
21083	SOURCEDETERMINE=':'
21084	SOURCEFILE='$<'
21085fi
21086rm -f conftest.lo
21087
21088
21089
21090# see if we want to build the library or everything
21091ALLTARGET="alltargets"
21092INSTALLTARGET="install-all"
21093
21094# Check whether --with-libunbound-only was given.
21095if test "${with_libunbound_only+set}" = set; then :
21096  withval=$with_libunbound_only;
21097	if test "$withval" = "yes"; then
21098		ALLTARGET="lib"
21099		INSTALLTARGET="install-lib"
21100	fi
21101
21102fi
21103
21104if test $ALLTARGET = "alltargets"; then
21105	if test $USE_NSS = "yes"; then
21106		as_fn_error $? "--with-nss can only be used in combination with --with-libunbound-only." "$LINENO" 5
21107	fi
21108	if test $USE_NETTLE = "yes"; then
21109		as_fn_error $? "--with-nettle can only be used in combination with --with-libunbound-only." "$LINENO" 5
21110	fi
21111fi
21112
21113
21114
21115
21116
21117  { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5
21118$as_echo "$as_me: Stripping extension flags..." >&6;}
21119
21120  if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then
21121    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
21122
21123$as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h
21124
21125  fi
21126
21127
21128  if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then
21129    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`"
21130
21131$as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h
21132
21133  fi
21134
21135
21136  if echo $CFLAGS | grep " -D_DEFAULT_SOURCE" >/dev/null 2>&1; then
21137    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_DEFAULT_SOURCE//g'`"
21138
21139$as_echo "#define OMITTED__D_DEFAULT_SOURCE 1" >>confdefs.h
21140
21141  fi
21142
21143
21144  if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then
21145    CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`"
21146
21147$as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h
21148
21149  fi
21150
21151
21152  if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then
21153    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`"
21154
21155$as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h
21156
21157  fi
21158
21159
21160  if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then
21161    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`"
21162
21163$as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h
21164
21165  fi
21166
21167
21168  if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then
21169    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`"
21170
21171$as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h
21172
21173  fi
21174
21175
21176  if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then
21177    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`"
21178
21179$as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h
21180
21181  fi
21182
21183
21184  if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then
21185    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`"
21186
21187$as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
21188
21189  fi
21190
21191
21192if test -n "$LATE_LDFLAGS"; then
21193  LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
21194fi
21195# remove start spaces
21196LDFLAGS=`echo "$LDFLAGS"|sed -e 's/^ *//'`
21197LIBS=`echo "$LIBS"|sed -e 's/^ *//'`
21198
21199
21200cat >>confdefs.h <<_ACEOF
21201#define MAXSYSLOGMSGLEN 10240
21202_ACEOF
21203
21204
21205
21206
21207version=1.9.2
21208
21209date=`date +'%b %e, %Y'`
21210
21211
21212ac_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 doc/unbound-host.1 smallapp/unbound-control-setup.sh dnstap/dnstap_config.h dnscrypt/dnscrypt_config.h contrib/libunbound.pc contrib/unbound.socket contrib/unbound.service"
21213
21214ac_config_headers="$ac_config_headers config.h"
21215
21216cat >confcache <<\_ACEOF
21217# This file is a shell script that caches the results of configure
21218# tests run on this system so they can be shared between configure
21219# scripts and configure runs, see configure's option --config-cache.
21220# It is not useful on other systems.  If it contains results you don't
21221# want to keep, you may remove or edit it.
21222#
21223# config.status only pays attention to the cache file if you give it
21224# the --recheck option to rerun configure.
21225#
21226# `ac_cv_env_foo' variables (set or unset) will be overridden when
21227# loading this file, other *unset* `ac_cv_foo' will be assigned the
21228# following values.
21229
21230_ACEOF
21231
21232# The following way of writing the cache mishandles newlines in values,
21233# but we know of no workaround that is simple, portable, and efficient.
21234# So, we kill variables containing newlines.
21235# Ultrix sh set writes to stderr and can't be redirected directly,
21236# and sets the high bit in the cache file unless we assign to the vars.
21237(
21238  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21239    eval ac_val=\$$ac_var
21240    case $ac_val in #(
21241    *${as_nl}*)
21242      case $ac_var in #(
21243      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21244$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21245      esac
21246      case $ac_var in #(
21247      _ | IFS | as_nl) ;; #(
21248      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21249      *) { eval $ac_var=; unset $ac_var;} ;;
21250      esac ;;
21251    esac
21252  done
21253
21254  (set) 2>&1 |
21255    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21256    *${as_nl}ac_space=\ *)
21257      # `set' does not quote correctly, so add quotes: double-quote
21258      # substitution turns \\\\ into \\, and sed turns \\ into \.
21259      sed -n \
21260	"s/'/'\\\\''/g;
21261	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21262      ;; #(
21263    *)
21264      # `set' quotes correctly as required by POSIX, so do not add quotes.
21265      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21266      ;;
21267    esac |
21268    sort
21269) |
21270  sed '
21271     /^ac_cv_env_/b end
21272     t clear
21273     :clear
21274     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21275     t end
21276     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21277     :end' >>confcache
21278if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21279  if test -w "$cache_file"; then
21280    if test "x$cache_file" != "x/dev/null"; then
21281      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21282$as_echo "$as_me: updating cache $cache_file" >&6;}
21283      if test ! -f "$cache_file" || test -h "$cache_file"; then
21284	cat confcache >"$cache_file"
21285      else
21286        case $cache_file in #(
21287        */* | ?:*)
21288	  mv -f confcache "$cache_file"$$ &&
21289	  mv -f "$cache_file"$$ "$cache_file" ;; #(
21290        *)
21291	  mv -f confcache "$cache_file" ;;
21292	esac
21293      fi
21294    fi
21295  else
21296    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21297$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21298  fi
21299fi
21300rm -f confcache
21301
21302test "x$prefix" = xNONE && prefix=$ac_default_prefix
21303# Let make expand exec_prefix.
21304test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21305
21306DEFS=-DHAVE_CONFIG_H
21307
21308ac_libobjs=
21309ac_ltlibobjs=
21310U=
21311for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21312  # 1. Remove the extension, and $U if already installed.
21313  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21314  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21315  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21316  #    will be set to the directory where LIBOBJS objects are built.
21317  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21318  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21319done
21320LIBOBJS=$ac_libobjs
21321
21322LTLIBOBJS=$ac_ltlibobjs
21323
21324
21325if test -z "${USE_SYSTEMD_TRUE}" && test -z "${USE_SYSTEMD_FALSE}"; then
21326  as_fn_error $? "conditional \"USE_SYSTEMD\" was never defined.
21327Usually this means the macro was only invoked conditionally." "$LINENO" 5
21328fi
21329
21330: "${CONFIG_STATUS=./config.status}"
21331ac_write_fail=0
21332ac_clean_files_save=$ac_clean_files
21333ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21334{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21335$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21336as_write_fail=0
21337cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21338#! $SHELL
21339# Generated by $as_me.
21340# Run this file to recreate the current configuration.
21341# Compiler output produced by configure, useful for debugging
21342# configure, is in config.log if it exists.
21343
21344debug=false
21345ac_cs_recheck=false
21346ac_cs_silent=false
21347
21348SHELL=\${CONFIG_SHELL-$SHELL}
21349export SHELL
21350_ASEOF
21351cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21352## -------------------- ##
21353## M4sh Initialization. ##
21354## -------------------- ##
21355
21356# Be more Bourne compatible
21357DUALCASE=1; export DUALCASE # for MKS sh
21358if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21359  emulate sh
21360  NULLCMD=:
21361  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21362  # is contrary to our usage.  Disable this feature.
21363  alias -g '${1+"$@"}'='"$@"'
21364  setopt NO_GLOB_SUBST
21365else
21366  case `(set -o) 2>/dev/null` in #(
21367  *posix*) :
21368    set -o posix ;; #(
21369  *) :
21370     ;;
21371esac
21372fi
21373
21374
21375as_nl='
21376'
21377export as_nl
21378# Printing a long string crashes Solaris 7 /usr/bin/printf.
21379as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21380as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21381as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21382# Prefer a ksh shell builtin over an external printf program on Solaris,
21383# but without wasting forks for bash or zsh.
21384if test -z "$BASH_VERSION$ZSH_VERSION" \
21385    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21386  as_echo='print -r --'
21387  as_echo_n='print -rn --'
21388elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21389  as_echo='printf %s\n'
21390  as_echo_n='printf %s'
21391else
21392  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21393    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21394    as_echo_n='/usr/ucb/echo -n'
21395  else
21396    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21397    as_echo_n_body='eval
21398      arg=$1;
21399      case $arg in #(
21400      *"$as_nl"*)
21401	expr "X$arg" : "X\\(.*\\)$as_nl";
21402	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21403      esac;
21404      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21405    '
21406    export as_echo_n_body
21407    as_echo_n='sh -c $as_echo_n_body as_echo'
21408  fi
21409  export as_echo_body
21410  as_echo='sh -c $as_echo_body as_echo'
21411fi
21412
21413# The user is always right.
21414if test "${PATH_SEPARATOR+set}" != set; then
21415  PATH_SEPARATOR=:
21416  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21417    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21418      PATH_SEPARATOR=';'
21419  }
21420fi
21421
21422
21423# IFS
21424# We need space, tab and new line, in precisely that order.  Quoting is
21425# there to prevent editors from complaining about space-tab.
21426# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21427# splitting by setting IFS to empty value.)
21428IFS=" ""	$as_nl"
21429
21430# Find who we are.  Look in the path if we contain no directory separator.
21431as_myself=
21432case $0 in #((
21433  *[\\/]* ) as_myself=$0 ;;
21434  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21435for as_dir in $PATH
21436do
21437  IFS=$as_save_IFS
21438  test -z "$as_dir" && as_dir=.
21439    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21440  done
21441IFS=$as_save_IFS
21442
21443     ;;
21444esac
21445# We did not find ourselves, most probably we were run as `sh COMMAND'
21446# in which case we are not to be found in the path.
21447if test "x$as_myself" = x; then
21448  as_myself=$0
21449fi
21450if test ! -f "$as_myself"; then
21451  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21452  exit 1
21453fi
21454
21455# Unset variables that we do not need and which cause bugs (e.g. in
21456# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
21457# suppresses any "Segmentation fault" message there.  '((' could
21458# trigger a bug in pdksh 5.2.14.
21459for as_var in BASH_ENV ENV MAIL MAILPATH
21460do eval test x\${$as_var+set} = xset \
21461  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21462done
21463PS1='$ '
21464PS2='> '
21465PS4='+ '
21466
21467# NLS nuisances.
21468LC_ALL=C
21469export LC_ALL
21470LANGUAGE=C
21471export LANGUAGE
21472
21473# CDPATH.
21474(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21475
21476
21477# as_fn_error STATUS ERROR [LINENO LOG_FD]
21478# ----------------------------------------
21479# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21480# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21481# script with STATUS, using 1 if that was 0.
21482as_fn_error ()
21483{
21484  as_status=$1; test $as_status -eq 0 && as_status=1
21485  if test "$4"; then
21486    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21487    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21488  fi
21489  $as_echo "$as_me: error: $2" >&2
21490  as_fn_exit $as_status
21491} # as_fn_error
21492
21493
21494# as_fn_set_status STATUS
21495# -----------------------
21496# Set $? to STATUS, without forking.
21497as_fn_set_status ()
21498{
21499  return $1
21500} # as_fn_set_status
21501
21502# as_fn_exit STATUS
21503# -----------------
21504# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21505as_fn_exit ()
21506{
21507  set +e
21508  as_fn_set_status $1
21509  exit $1
21510} # as_fn_exit
21511
21512# as_fn_unset VAR
21513# ---------------
21514# Portably unset VAR.
21515as_fn_unset ()
21516{
21517  { eval $1=; unset $1;}
21518}
21519as_unset=as_fn_unset
21520# as_fn_append VAR VALUE
21521# ----------------------
21522# Append the text in VALUE to the end of the definition contained in VAR. Take
21523# advantage of any shell optimizations that allow amortized linear growth over
21524# repeated appends, instead of the typical quadratic growth present in naive
21525# implementations.
21526if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21527  eval 'as_fn_append ()
21528  {
21529    eval $1+=\$2
21530  }'
21531else
21532  as_fn_append ()
21533  {
21534    eval $1=\$$1\$2
21535  }
21536fi # as_fn_append
21537
21538# as_fn_arith ARG...
21539# ------------------
21540# Perform arithmetic evaluation on the ARGs, and store the result in the
21541# global $as_val. Take advantage of shells that can avoid forks. The arguments
21542# must be portable across $(()) and expr.
21543if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21544  eval 'as_fn_arith ()
21545  {
21546    as_val=$(( $* ))
21547  }'
21548else
21549  as_fn_arith ()
21550  {
21551    as_val=`expr "$@" || test $? -eq 1`
21552  }
21553fi # as_fn_arith
21554
21555
21556if expr a : '\(a\)' >/dev/null 2>&1 &&
21557   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21558  as_expr=expr
21559else
21560  as_expr=false
21561fi
21562
21563if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21564  as_basename=basename
21565else
21566  as_basename=false
21567fi
21568
21569if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21570  as_dirname=dirname
21571else
21572  as_dirname=false
21573fi
21574
21575as_me=`$as_basename -- "$0" ||
21576$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21577	 X"$0" : 'X\(//\)$' \| \
21578	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21579$as_echo X/"$0" |
21580    sed '/^.*\/\([^/][^/]*\)\/*$/{
21581	    s//\1/
21582	    q
21583	  }
21584	  /^X\/\(\/\/\)$/{
21585	    s//\1/
21586	    q
21587	  }
21588	  /^X\/\(\/\).*/{
21589	    s//\1/
21590	    q
21591	  }
21592	  s/.*/./; q'`
21593
21594# Avoid depending upon Character Ranges.
21595as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21596as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21597as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21598as_cr_digits='0123456789'
21599as_cr_alnum=$as_cr_Letters$as_cr_digits
21600
21601ECHO_C= ECHO_N= ECHO_T=
21602case `echo -n x` in #(((((
21603-n*)
21604  case `echo 'xy\c'` in
21605  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21606  xy)  ECHO_C='\c';;
21607  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21608       ECHO_T='	';;
21609  esac;;
21610*)
21611  ECHO_N='-n';;
21612esac
21613
21614rm -f conf$$ conf$$.exe conf$$.file
21615if test -d conf$$.dir; then
21616  rm -f conf$$.dir/conf$$.file
21617else
21618  rm -f conf$$.dir
21619  mkdir conf$$.dir 2>/dev/null
21620fi
21621if (echo >conf$$.file) 2>/dev/null; then
21622  if ln -s conf$$.file conf$$ 2>/dev/null; then
21623    as_ln_s='ln -s'
21624    # ... but there are two gotchas:
21625    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21626    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21627    # In both cases, we have to default to `cp -pR'.
21628    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21629      as_ln_s='cp -pR'
21630  elif ln conf$$.file conf$$ 2>/dev/null; then
21631    as_ln_s=ln
21632  else
21633    as_ln_s='cp -pR'
21634  fi
21635else
21636  as_ln_s='cp -pR'
21637fi
21638rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21639rmdir conf$$.dir 2>/dev/null
21640
21641
21642# as_fn_mkdir_p
21643# -------------
21644# Create "$as_dir" as a directory, including parents if necessary.
21645as_fn_mkdir_p ()
21646{
21647
21648  case $as_dir in #(
21649  -*) as_dir=./$as_dir;;
21650  esac
21651  test -d "$as_dir" || eval $as_mkdir_p || {
21652    as_dirs=
21653    while :; do
21654      case $as_dir in #(
21655      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21656      *) as_qdir=$as_dir;;
21657      esac
21658      as_dirs="'$as_qdir' $as_dirs"
21659      as_dir=`$as_dirname -- "$as_dir" ||
21660$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21661	 X"$as_dir" : 'X\(//\)[^/]' \| \
21662	 X"$as_dir" : 'X\(//\)$' \| \
21663	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21664$as_echo X"$as_dir" |
21665    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21666	    s//\1/
21667	    q
21668	  }
21669	  /^X\(\/\/\)[^/].*/{
21670	    s//\1/
21671	    q
21672	  }
21673	  /^X\(\/\/\)$/{
21674	    s//\1/
21675	    q
21676	  }
21677	  /^X\(\/\).*/{
21678	    s//\1/
21679	    q
21680	  }
21681	  s/.*/./; q'`
21682      test -d "$as_dir" && break
21683    done
21684    test -z "$as_dirs" || eval "mkdir $as_dirs"
21685  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21686
21687
21688} # as_fn_mkdir_p
21689if mkdir -p . 2>/dev/null; then
21690  as_mkdir_p='mkdir -p "$as_dir"'
21691else
21692  test -d ./-p && rmdir ./-p
21693  as_mkdir_p=false
21694fi
21695
21696
21697# as_fn_executable_p FILE
21698# -----------------------
21699# Test if FILE is an executable regular file.
21700as_fn_executable_p ()
21701{
21702  test -f "$1" && test -x "$1"
21703} # as_fn_executable_p
21704as_test_x='test -x'
21705as_executable_p=as_fn_executable_p
21706
21707# Sed expression to map a string onto a valid CPP name.
21708as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21709
21710# Sed expression to map a string onto a valid variable name.
21711as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21712
21713
21714exec 6>&1
21715## ----------------------------------- ##
21716## Main body of $CONFIG_STATUS script. ##
21717## ----------------------------------- ##
21718_ASEOF
21719test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21720
21721cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21722# Save the log message, to keep $0 and so on meaningful, and to
21723# report actual input values of CONFIG_FILES etc. instead of their
21724# values after options handling.
21725ac_log="
21726This file was extended by unbound $as_me 1.9.2, which was
21727generated by GNU Autoconf 2.69.  Invocation command line was
21728
21729  CONFIG_FILES    = $CONFIG_FILES
21730  CONFIG_HEADERS  = $CONFIG_HEADERS
21731  CONFIG_LINKS    = $CONFIG_LINKS
21732  CONFIG_COMMANDS = $CONFIG_COMMANDS
21733  $ $0 $@
21734
21735on `(hostname || uname -n) 2>/dev/null | sed 1q`
21736"
21737
21738_ACEOF
21739
21740case $ac_config_files in *"
21741"*) set x $ac_config_files; shift; ac_config_files=$*;;
21742esac
21743
21744case $ac_config_headers in *"
21745"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21746esac
21747
21748
21749cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21750# Files that config.status was made for.
21751config_files="$ac_config_files"
21752config_headers="$ac_config_headers"
21753config_commands="$ac_config_commands"
21754
21755_ACEOF
21756
21757cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21758ac_cs_usage="\
21759\`$as_me' instantiates files and other configuration actions
21760from templates according to the current configuration.  Unless the files
21761and actions are specified as TAGs, all are instantiated by default.
21762
21763Usage: $0 [OPTION]... [TAG]...
21764
21765  -h, --help       print this help, then exit
21766  -V, --version    print version number and configuration settings, then exit
21767      --config     print configuration, then exit
21768  -q, --quiet, --silent
21769                   do not print progress messages
21770  -d, --debug      don't remove temporary files
21771      --recheck    update $as_me by reconfiguring in the same conditions
21772      --file=FILE[:TEMPLATE]
21773                   instantiate the configuration file FILE
21774      --header=FILE[:TEMPLATE]
21775                   instantiate the configuration header FILE
21776
21777Configuration files:
21778$config_files
21779
21780Configuration headers:
21781$config_headers
21782
21783Configuration commands:
21784$config_commands
21785
21786Report bugs to <unbound-bugs@nlnetlabs.nl>."
21787
21788_ACEOF
21789cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21790ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21791ac_cs_version="\\
21792unbound config.status 1.9.2
21793configured by $0, generated by GNU Autoconf 2.69,
21794  with options \\"\$ac_cs_config\\"
21795
21796Copyright (C) 2012 Free Software Foundation, Inc.
21797This config.status script is free software; the Free Software Foundation
21798gives unlimited permission to copy, distribute and modify it."
21799
21800ac_pwd='$ac_pwd'
21801srcdir='$srcdir'
21802AWK='$AWK'
21803test -n "\$AWK" || AWK=awk
21804_ACEOF
21805
21806cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21807# The default lists apply if the user does not specify any file.
21808ac_need_defaults=:
21809while test $# != 0
21810do
21811  case $1 in
21812  --*=?*)
21813    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21814    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21815    ac_shift=:
21816    ;;
21817  --*=)
21818    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21819    ac_optarg=
21820    ac_shift=:
21821    ;;
21822  *)
21823    ac_option=$1
21824    ac_optarg=$2
21825    ac_shift=shift
21826    ;;
21827  esac
21828
21829  case $ac_option in
21830  # Handling of the options.
21831  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21832    ac_cs_recheck=: ;;
21833  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21834    $as_echo "$ac_cs_version"; exit ;;
21835  --config | --confi | --conf | --con | --co | --c )
21836    $as_echo "$ac_cs_config"; exit ;;
21837  --debug | --debu | --deb | --de | --d | -d )
21838    debug=: ;;
21839  --file | --fil | --fi | --f )
21840    $ac_shift
21841    case $ac_optarg in
21842    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21843    '') as_fn_error $? "missing file argument" ;;
21844    esac
21845    as_fn_append CONFIG_FILES " '$ac_optarg'"
21846    ac_need_defaults=false;;
21847  --header | --heade | --head | --hea )
21848    $ac_shift
21849    case $ac_optarg in
21850    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21851    esac
21852    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21853    ac_need_defaults=false;;
21854  --he | --h)
21855    # Conflict between --help and --header
21856    as_fn_error $? "ambiguous option: \`$1'
21857Try \`$0 --help' for more information.";;
21858  --help | --hel | -h )
21859    $as_echo "$ac_cs_usage"; exit ;;
21860  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21861  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21862    ac_cs_silent=: ;;
21863
21864  # This is an error.
21865  -*) as_fn_error $? "unrecognized option: \`$1'
21866Try \`$0 --help' for more information." ;;
21867
21868  *) as_fn_append ac_config_targets " $1"
21869     ac_need_defaults=false ;;
21870
21871  esac
21872  shift
21873done
21874
21875ac_configure_extra_args=
21876
21877if $ac_cs_silent; then
21878  exec 6>/dev/null
21879  ac_configure_extra_args="$ac_configure_extra_args --silent"
21880fi
21881
21882_ACEOF
21883cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21884if \$ac_cs_recheck; then
21885  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21886  shift
21887  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21888  CONFIG_SHELL='$SHELL'
21889  export CONFIG_SHELL
21890  exec "\$@"
21891fi
21892
21893_ACEOF
21894cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21895exec 5>>config.log
21896{
21897  echo
21898  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21899## Running $as_me. ##
21900_ASBOX
21901  $as_echo "$ac_log"
21902} >&5
21903
21904_ACEOF
21905cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21906#
21907# INIT-COMMANDS
21908#
21909
21910
21911# The HP-UX ksh and POSIX shell print the target directory to stdout
21912# if CDPATH is set.
21913(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21914
21915sed_quote_subst='$sed_quote_subst'
21916double_quote_subst='$double_quote_subst'
21917delay_variable_subst='$delay_variable_subst'
21918macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21919macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21920enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21921enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21922pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21923enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21924shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21925SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21926ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21927PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21928host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21929host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21930host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21931build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21932build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21933build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21934SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21935Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21936GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21937EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21938FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21939LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21940NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21941LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21942max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21943ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21944exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21945lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21946lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21947lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21948lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21949lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21950reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21951reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21952OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21953deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21954file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21955file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21956want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21957DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21958sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21959AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21960AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21961archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21962STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21963RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21964old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21965old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21966old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21967lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21968CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21969CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21970compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21971GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21972lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21973lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21974lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21975lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21976lt_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"`'
21977lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21978nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21979lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21980lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21981objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21982MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21983lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21984lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21985lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21986lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21987lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21988need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21989MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21990DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21991NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21992LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21993OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21994OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21995libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21996shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21997extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21998archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21999enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22000export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22001whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22002compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22003old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22004old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22005archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22006archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22007module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22008module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22009with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22010allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22011no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22012hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22013hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22014hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22015hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22016hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22017hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22018hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22019inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22020link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22021always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22022export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22023exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22024include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22025prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22026postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22027file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22028variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22029need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22030need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22031version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22032runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22033shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22034shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22035libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22036library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22037soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22038install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22039postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22040postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22041finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22042finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22043hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22044sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22045configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22046configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22047hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22048enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22049enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22050enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22051old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22052striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22053
22054LTCC='$LTCC'
22055LTCFLAGS='$LTCFLAGS'
22056compiler='$compiler_DEFAULT'
22057
22058# A function that is used when there is no print builtin or printf.
22059func_fallback_echo ()
22060{
22061  eval 'cat <<_LTECHO_EOF
22062\$1
22063_LTECHO_EOF'
22064}
22065
22066# Quote evaled strings.
22067for var in SHELL \
22068ECHO \
22069PATH_SEPARATOR \
22070SED \
22071GREP \
22072EGREP \
22073FGREP \
22074LD \
22075NM \
22076LN_S \
22077lt_SP2NL \
22078lt_NL2SP \
22079reload_flag \
22080OBJDUMP \
22081deplibs_check_method \
22082file_magic_cmd \
22083file_magic_glob \
22084want_nocaseglob \
22085DLLTOOL \
22086sharedlib_from_linklib_cmd \
22087AR \
22088AR_FLAGS \
22089archiver_list_spec \
22090STRIP \
22091RANLIB \
22092CC \
22093CFLAGS \
22094compiler \
22095lt_cv_sys_global_symbol_pipe \
22096lt_cv_sys_global_symbol_to_cdecl \
22097lt_cv_sys_global_symbol_to_import \
22098lt_cv_sys_global_symbol_to_c_name_address \
22099lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22100lt_cv_nm_interface \
22101nm_file_list_spec \
22102lt_cv_truncate_bin \
22103lt_prog_compiler_no_builtin_flag \
22104lt_prog_compiler_pic \
22105lt_prog_compiler_wl \
22106lt_prog_compiler_static \
22107lt_cv_prog_compiler_c_o \
22108need_locks \
22109MANIFEST_TOOL \
22110DSYMUTIL \
22111NMEDIT \
22112LIPO \
22113OTOOL \
22114OTOOL64 \
22115shrext_cmds \
22116export_dynamic_flag_spec \
22117whole_archive_flag_spec \
22118compiler_needs_object \
22119with_gnu_ld \
22120allow_undefined_flag \
22121no_undefined_flag \
22122hardcode_libdir_flag_spec \
22123hardcode_libdir_separator \
22124exclude_expsyms \
22125include_expsyms \
22126file_list_spec \
22127variables_saved_for_relink \
22128libname_spec \
22129library_names_spec \
22130soname_spec \
22131install_override_mode \
22132finish_eval \
22133old_striplib \
22134striplib; do
22135    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22136    *[\\\\\\\`\\"\\\$]*)
22137      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22138      ;;
22139    *)
22140      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22141      ;;
22142    esac
22143done
22144
22145# Double-quote double-evaled strings.
22146for var in reload_cmds \
22147old_postinstall_cmds \
22148old_postuninstall_cmds \
22149old_archive_cmds \
22150extract_expsyms_cmds \
22151old_archive_from_new_cmds \
22152old_archive_from_expsyms_cmds \
22153archive_cmds \
22154archive_expsym_cmds \
22155module_cmds \
22156module_expsym_cmds \
22157export_symbols_cmds \
22158prelink_cmds \
22159postlink_cmds \
22160postinstall_cmds \
22161postuninstall_cmds \
22162finish_cmds \
22163sys_lib_search_path_spec \
22164configure_time_dlsearch_path \
22165configure_time_lt_sys_library_path; do
22166    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22167    *[\\\\\\\`\\"\\\$]*)
22168      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22169      ;;
22170    *)
22171      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22172      ;;
22173    esac
22174done
22175
22176ac_aux_dir='$ac_aux_dir'
22177
22178# See if we are running on zsh, and set the options that allow our
22179# commands through without removal of \ escapes INIT.
22180if test -n "\${ZSH_VERSION+set}"; then
22181   setopt NO_GLOB_SUBST
22182fi
22183
22184
22185    PACKAGE='$PACKAGE'
22186    VERSION='$VERSION'
22187    RM='$RM'
22188    ofile='$ofile'
22189
22190
22191
22192
22193_ACEOF
22194
22195cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22196
22197# Handling of arguments.
22198for ac_config_target in $ac_config_targets
22199do
22200  case $ac_config_target in
22201    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22202    "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
22203    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22204    "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
22205    "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;;
22206    "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;;
22207    "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;;
22208    "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;;
22209    "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;;
22210    "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;;
22211    "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;;
22212    "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;;
22213    "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;;
22214    "dnscrypt/dnscrypt_config.h") CONFIG_FILES="$CONFIG_FILES dnscrypt/dnscrypt_config.h" ;;
22215    "contrib/libunbound.pc") CONFIG_FILES="$CONFIG_FILES contrib/libunbound.pc" ;;
22216    "contrib/unbound.socket") CONFIG_FILES="$CONFIG_FILES contrib/unbound.socket" ;;
22217    "contrib/unbound.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound.service" ;;
22218    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22219
22220  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22221  esac
22222done
22223
22224
22225# If the user did not use the arguments to specify the items to instantiate,
22226# then the envvar interface is used.  Set only those that are not.
22227# We use the long form for the default assignment because of an extremely
22228# bizarre bug on SunOS 4.1.3.
22229if $ac_need_defaults; then
22230  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22231  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22232  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22233fi
22234
22235# Have a temporary directory for convenience.  Make it in the build tree
22236# simply because there is no reason against having it here, and in addition,
22237# creating and moving files from /tmp can sometimes cause problems.
22238# Hook for its removal unless debugging.
22239# Note that there is a small window in which the directory will not be cleaned:
22240# after its creation but before its name has been assigned to `$tmp'.
22241$debug ||
22242{
22243  tmp= ac_tmp=
22244  trap 'exit_status=$?
22245  : "${ac_tmp:=$tmp}"
22246  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22247' 0
22248  trap 'as_fn_exit 1' 1 2 13 15
22249}
22250# Create a (secure) tmp directory for tmp files.
22251
22252{
22253  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22254  test -d "$tmp"
22255}  ||
22256{
22257  tmp=./conf$$-$RANDOM
22258  (umask 077 && mkdir "$tmp")
22259} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22260ac_tmp=$tmp
22261
22262# Set up the scripts for CONFIG_FILES section.
22263# No need to generate them if there are no CONFIG_FILES.
22264# This happens for instance with `./config.status config.h'.
22265if test -n "$CONFIG_FILES"; then
22266
22267
22268ac_cr=`echo X | tr X '\015'`
22269# On cygwin, bash can eat \r inside `` if the user requested igncr.
22270# But we know of no other shell where ac_cr would be empty at this
22271# point, so we can use a bashism as a fallback.
22272if test "x$ac_cr" = x; then
22273  eval ac_cr=\$\'\\r\'
22274fi
22275ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22276if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22277  ac_cs_awk_cr='\\r'
22278else
22279  ac_cs_awk_cr=$ac_cr
22280fi
22281
22282echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22283_ACEOF
22284
22285
22286{
22287  echo "cat >conf$$subs.awk <<_ACEOF" &&
22288  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22289  echo "_ACEOF"
22290} >conf$$subs.sh ||
22291  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22292ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22293ac_delim='%!_!# '
22294for ac_last_try in false false false false false :; do
22295  . ./conf$$subs.sh ||
22296    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22297
22298  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22299  if test $ac_delim_n = $ac_delim_num; then
22300    break
22301  elif $ac_last_try; then
22302    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22303  else
22304    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22305  fi
22306done
22307rm -f conf$$subs.sh
22308
22309cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22310cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22311_ACEOF
22312sed -n '
22313h
22314s/^/S["/; s/!.*/"]=/
22315p
22316g
22317s/^[^!]*!//
22318:repl
22319t repl
22320s/'"$ac_delim"'$//
22321t delim
22322:nl
22323h
22324s/\(.\{148\}\)..*/\1/
22325t more1
22326s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22327p
22328n
22329b repl
22330:more1
22331s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22332p
22333g
22334s/.\{148\}//
22335t nl
22336:delim
22337h
22338s/\(.\{148\}\)..*/\1/
22339t more2
22340s/["\\]/\\&/g; s/^/"/; s/$/"/
22341p
22342b
22343:more2
22344s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22345p
22346g
22347s/.\{148\}//
22348t delim
22349' <conf$$subs.awk | sed '
22350/^[^""]/{
22351  N
22352  s/\n//
22353}
22354' >>$CONFIG_STATUS || ac_write_fail=1
22355rm -f conf$$subs.awk
22356cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22357_ACAWK
22358cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22359  for (key in S) S_is_set[key] = 1
22360  FS = ""
22361
22362}
22363{
22364  line = $ 0
22365  nfields = split(line, field, "@")
22366  substed = 0
22367  len = length(field[1])
22368  for (i = 2; i < nfields; i++) {
22369    key = field[i]
22370    keylen = length(key)
22371    if (S_is_set[key]) {
22372      value = S[key]
22373      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22374      len += length(value) + length(field[++i])
22375      substed = 1
22376    } else
22377      len += 1 + keylen
22378  }
22379
22380  print line
22381}
22382
22383_ACAWK
22384_ACEOF
22385cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22386if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22387  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22388else
22389  cat
22390fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22391  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22392_ACEOF
22393
22394# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22395# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22396# trailing colons and then remove the whole line if VPATH becomes empty
22397# (actually we leave an empty line to preserve line numbers).
22398if test "x$srcdir" = x.; then
22399  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
22400h
22401s///
22402s/^/:/
22403s/[	 ]*$/:/
22404s/:\$(srcdir):/:/g
22405s/:\${srcdir}:/:/g
22406s/:@srcdir@:/:/g
22407s/^:*//
22408s/:*$//
22409x
22410s/\(=[	 ]*\).*/\1/
22411G
22412s/\n//
22413s/^[^=]*=[	 ]*$//
22414}'
22415fi
22416
22417cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22418fi # test -n "$CONFIG_FILES"
22419
22420# Set up the scripts for CONFIG_HEADERS section.
22421# No need to generate them if there are no CONFIG_HEADERS.
22422# This happens for instance with `./config.status Makefile'.
22423if test -n "$CONFIG_HEADERS"; then
22424cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22425BEGIN {
22426_ACEOF
22427
22428# Transform confdefs.h into an awk script `defines.awk', embedded as
22429# here-document in config.status, that substitutes the proper values into
22430# config.h.in to produce config.h.
22431
22432# Create a delimiter string that does not exist in confdefs.h, to ease
22433# handling of long lines.
22434ac_delim='%!_!# '
22435for ac_last_try in false false :; do
22436  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22437  if test -z "$ac_tt"; then
22438    break
22439  elif $ac_last_try; then
22440    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22441  else
22442    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22443  fi
22444done
22445
22446# For the awk script, D is an array of macro values keyed by name,
22447# likewise P contains macro parameters if any.  Preserve backslash
22448# newline sequences.
22449
22450ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22451sed -n '
22452s/.\{148\}/&'"$ac_delim"'/g
22453t rset
22454:rset
22455s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
22456t def
22457d
22458:def
22459s/\\$//
22460t bsnl
22461s/["\\]/\\&/g
22462s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22463D["\1"]=" \3"/p
22464s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
22465d
22466:bsnl
22467s/["\\]/\\&/g
22468s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22469D["\1"]=" \3\\\\\\n"\\/p
22470t cont
22471s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22472t cont
22473d
22474:cont
22475n
22476s/.\{148\}/&'"$ac_delim"'/g
22477t clear
22478:clear
22479s/\\$//
22480t bsnlc
22481s/["\\]/\\&/g; s/^/"/; s/$/"/p
22482d
22483:bsnlc
22484s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22485b cont
22486' <confdefs.h | sed '
22487s/'"$ac_delim"'/"\\\
22488"/g' >>$CONFIG_STATUS || ac_write_fail=1
22489
22490cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22491  for (key in D) D_is_set[key] = 1
22492  FS = ""
22493}
22494/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22495  line = \$ 0
22496  split(line, arg, " ")
22497  if (arg[1] == "#") {
22498    defundef = arg[2]
22499    mac1 = arg[3]
22500  } else {
22501    defundef = substr(arg[1], 2)
22502    mac1 = arg[2]
22503  }
22504  split(mac1, mac2, "(") #)
22505  macro = mac2[1]
22506  prefix = substr(line, 1, index(line, defundef) - 1)
22507  if (D_is_set[macro]) {
22508    # Preserve the white space surrounding the "#".
22509    print prefix "define", macro P[macro] D[macro]
22510    next
22511  } else {
22512    # Replace #undef with comments.  This is necessary, for example,
22513    # in the case of _POSIX_SOURCE, which is predefined and required
22514    # on some systems where configure will not decide to define it.
22515    if (defundef == "undef") {
22516      print "/*", prefix defundef, macro, "*/"
22517      next
22518    }
22519  }
22520}
22521{ print }
22522_ACAWK
22523_ACEOF
22524cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22525  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22526fi # test -n "$CONFIG_HEADERS"
22527
22528
22529eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22530shift
22531for ac_tag
22532do
22533  case $ac_tag in
22534  :[FHLC]) ac_mode=$ac_tag; continue;;
22535  esac
22536  case $ac_mode$ac_tag in
22537  :[FHL]*:*);;
22538  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22539  :[FH]-) ac_tag=-:-;;
22540  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22541  esac
22542  ac_save_IFS=$IFS
22543  IFS=:
22544  set x $ac_tag
22545  IFS=$ac_save_IFS
22546  shift
22547  ac_file=$1
22548  shift
22549
22550  case $ac_mode in
22551  :L) ac_source=$1;;
22552  :[FH])
22553    ac_file_inputs=
22554    for ac_f
22555    do
22556      case $ac_f in
22557      -) ac_f="$ac_tmp/stdin";;
22558      *) # Look for the file first in the build tree, then in the source tree
22559	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22560	 # because $ac_f cannot contain `:'.
22561	 test -f "$ac_f" ||
22562	   case $ac_f in
22563	   [\\/$]*) false;;
22564	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22565	   esac ||
22566	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22567      esac
22568      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22569      as_fn_append ac_file_inputs " '$ac_f'"
22570    done
22571
22572    # Let's still pretend it is `configure' which instantiates (i.e., don't
22573    # use $as_me), people would be surprised to read:
22574    #    /* config.h.  Generated by config.status.  */
22575    configure_input='Generated from '`
22576	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22577	`' by configure.'
22578    if test x"$ac_file" != x-; then
22579      configure_input="$ac_file.  $configure_input"
22580      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22581$as_echo "$as_me: creating $ac_file" >&6;}
22582    fi
22583    # Neutralize special characters interpreted by sed in replacement strings.
22584    case $configure_input in #(
22585    *\&* | *\|* | *\\* )
22586       ac_sed_conf_input=`$as_echo "$configure_input" |
22587       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22588    *) ac_sed_conf_input=$configure_input;;
22589    esac
22590
22591    case $ac_tag in
22592    *:-:* | *:-) cat >"$ac_tmp/stdin" \
22593      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22594    esac
22595    ;;
22596  esac
22597
22598  ac_dir=`$as_dirname -- "$ac_file" ||
22599$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22600	 X"$ac_file" : 'X\(//\)[^/]' \| \
22601	 X"$ac_file" : 'X\(//\)$' \| \
22602	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22603$as_echo X"$ac_file" |
22604    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22605	    s//\1/
22606	    q
22607	  }
22608	  /^X\(\/\/\)[^/].*/{
22609	    s//\1/
22610	    q
22611	  }
22612	  /^X\(\/\/\)$/{
22613	    s//\1/
22614	    q
22615	  }
22616	  /^X\(\/\).*/{
22617	    s//\1/
22618	    q
22619	  }
22620	  s/.*/./; q'`
22621  as_dir="$ac_dir"; as_fn_mkdir_p
22622  ac_builddir=.
22623
22624case "$ac_dir" in
22625.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22626*)
22627  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22628  # A ".." for each directory in $ac_dir_suffix.
22629  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22630  case $ac_top_builddir_sub in
22631  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22632  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22633  esac ;;
22634esac
22635ac_abs_top_builddir=$ac_pwd
22636ac_abs_builddir=$ac_pwd$ac_dir_suffix
22637# for backward compatibility:
22638ac_top_builddir=$ac_top_build_prefix
22639
22640case $srcdir in
22641  .)  # We are building in place.
22642    ac_srcdir=.
22643    ac_top_srcdir=$ac_top_builddir_sub
22644    ac_abs_top_srcdir=$ac_pwd ;;
22645  [\\/]* | ?:[\\/]* )  # Absolute name.
22646    ac_srcdir=$srcdir$ac_dir_suffix;
22647    ac_top_srcdir=$srcdir
22648    ac_abs_top_srcdir=$srcdir ;;
22649  *) # Relative name.
22650    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22651    ac_top_srcdir=$ac_top_build_prefix$srcdir
22652    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22653esac
22654ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22655
22656
22657  case $ac_mode in
22658  :F)
22659  #
22660  # CONFIG_FILE
22661  #
22662
22663_ACEOF
22664
22665cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22666# If the template does not know about datarootdir, expand it.
22667# FIXME: This hack should be removed a few years after 2.60.
22668ac_datarootdir_hack=; ac_datarootdir_seen=
22669ac_sed_dataroot='
22670/datarootdir/ {
22671  p
22672  q
22673}
22674/@datadir@/p
22675/@docdir@/p
22676/@infodir@/p
22677/@localedir@/p
22678/@mandir@/p'
22679case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22680*datarootdir*) ac_datarootdir_seen=yes;;
22681*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22682  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22683$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22684_ACEOF
22685cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22686  ac_datarootdir_hack='
22687  s&@datadir@&$datadir&g
22688  s&@docdir@&$docdir&g
22689  s&@infodir@&$infodir&g
22690  s&@localedir@&$localedir&g
22691  s&@mandir@&$mandir&g
22692  s&\\\${datarootdir}&$datarootdir&g' ;;
22693esac
22694_ACEOF
22695
22696# Neutralize VPATH when `$srcdir' = `.'.
22697# Shell code in configure.ac might set extrasub.
22698# FIXME: do we really want to maintain this feature?
22699cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22700ac_sed_extra="$ac_vpsub
22701$extrasub
22702_ACEOF
22703cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22704:t
22705/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22706s|@configure_input@|$ac_sed_conf_input|;t t
22707s&@top_builddir@&$ac_top_builddir_sub&;t t
22708s&@top_build_prefix@&$ac_top_build_prefix&;t t
22709s&@srcdir@&$ac_srcdir&;t t
22710s&@abs_srcdir@&$ac_abs_srcdir&;t t
22711s&@top_srcdir@&$ac_top_srcdir&;t t
22712s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22713s&@builddir@&$ac_builddir&;t t
22714s&@abs_builddir@&$ac_abs_builddir&;t t
22715s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22716$ac_datarootdir_hack
22717"
22718eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22719  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22720
22721test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22722  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22723  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
22724      "$ac_tmp/out"`; test -z "$ac_out"; } &&
22725  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22726which seems to be undefined.  Please make sure it is defined" >&5
22727$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22728which seems to be undefined.  Please make sure it is defined" >&2;}
22729
22730  rm -f "$ac_tmp/stdin"
22731  case $ac_file in
22732  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22733  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22734  esac \
22735  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22736 ;;
22737  :H)
22738  #
22739  # CONFIG_HEADER
22740  #
22741  if test x"$ac_file" != x-; then
22742    {
22743      $as_echo "/* $configure_input  */" \
22744      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22745    } >"$ac_tmp/config.h" \
22746      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22747    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22748      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22749$as_echo "$as_me: $ac_file is unchanged" >&6;}
22750    else
22751      rm -f "$ac_file"
22752      mv "$ac_tmp/config.h" "$ac_file" \
22753	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
22754    fi
22755  else
22756    $as_echo "/* $configure_input  */" \
22757      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22758      || as_fn_error $? "could not create -" "$LINENO" 5
22759  fi
22760 ;;
22761
22762  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22763$as_echo "$as_me: executing $ac_file commands" >&6;}
22764 ;;
22765  esac
22766
22767
22768  case $ac_file$ac_mode in
22769    "libtool":C)
22770
22771    # See if we are running on zsh, and set the options that allow our
22772    # commands through without removal of \ escapes.
22773    if test -n "${ZSH_VERSION+set}"; then
22774      setopt NO_GLOB_SUBST
22775    fi
22776
22777    cfgfile=${ofile}T
22778    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22779    $RM "$cfgfile"
22780
22781    cat <<_LT_EOF >> "$cfgfile"
22782#! $SHELL
22783# Generated automatically by $as_me ($PACKAGE) $VERSION
22784# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22785# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22786
22787# Provide generalized library-building support services.
22788# Written by Gordon Matzigkeit, 1996
22789
22790# Copyright (C) 2014 Free Software Foundation, Inc.
22791# This is free software; see the source for copying conditions.  There is NO
22792# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22793
22794# GNU Libtool is free software; you can redistribute it and/or modify
22795# it under the terms of the GNU General Public License as published by
22796# the Free Software Foundation; either version 2 of of the License, or
22797# (at your option) any later version.
22798#
22799# As a special exception to the GNU General Public License, if you
22800# distribute this file as part of a program or library that is built
22801# using GNU Libtool, you may include this file under the  same
22802# distribution terms that you use for the rest of that program.
22803#
22804# GNU Libtool is distributed in the hope that it will be useful, but
22805# WITHOUT ANY WARRANTY; without even the implied warranty of
22806# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22807# GNU General Public License for more details.
22808#
22809# You should have received a copy of the GNU General Public License
22810# along with this program.  If not, see <http://www.gnu.org/licenses/>.
22811
22812
22813# The names of the tagged configurations supported by this script.
22814available_tags=''
22815
22816# Configured defaults for sys_lib_dlsearch_path munging.
22817: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22818
22819# ### BEGIN LIBTOOL CONFIG
22820
22821# Which release of libtool.m4 was used?
22822macro_version=$macro_version
22823macro_revision=$macro_revision
22824
22825# Whether or not to build shared libraries.
22826build_libtool_libs=$enable_shared
22827
22828# Whether or not to build static libraries.
22829build_old_libs=$enable_static
22830
22831# What type of objects to build.
22832pic_mode=$pic_mode
22833
22834# Whether or not to optimize for fast installation.
22835fast_install=$enable_fast_install
22836
22837# Shared archive member basename,for filename based shared library versioning on AIX.
22838shared_archive_member_spec=$shared_archive_member_spec
22839
22840# Shell to use when invoking shell scripts.
22841SHELL=$lt_SHELL
22842
22843# An echo program that protects backslashes.
22844ECHO=$lt_ECHO
22845
22846# The PATH separator for the build system.
22847PATH_SEPARATOR=$lt_PATH_SEPARATOR
22848
22849# The host system.
22850host_alias=$host_alias
22851host=$host
22852host_os=$host_os
22853
22854# The build system.
22855build_alias=$build_alias
22856build=$build
22857build_os=$build_os
22858
22859# A sed program that does not truncate output.
22860SED=$lt_SED
22861
22862# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22863Xsed="\$SED -e 1s/^X//"
22864
22865# A grep program that handles long lines.
22866GREP=$lt_GREP
22867
22868# An ERE matcher.
22869EGREP=$lt_EGREP
22870
22871# A literal string matcher.
22872FGREP=$lt_FGREP
22873
22874# A BSD- or MS-compatible name lister.
22875NM=$lt_NM
22876
22877# Whether we need soft or hard links.
22878LN_S=$lt_LN_S
22879
22880# What is the maximum length of a command?
22881max_cmd_len=$max_cmd_len
22882
22883# Object file suffix (normally "o").
22884objext=$ac_objext
22885
22886# Executable file suffix (normally "").
22887exeext=$exeext
22888
22889# whether the shell understands "unset".
22890lt_unset=$lt_unset
22891
22892# turn spaces into newlines.
22893SP2NL=$lt_lt_SP2NL
22894
22895# turn newlines into spaces.
22896NL2SP=$lt_lt_NL2SP
22897
22898# convert \$build file names to \$host format.
22899to_host_file_cmd=$lt_cv_to_host_file_cmd
22900
22901# convert \$build files to toolchain format.
22902to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22903
22904# An object symbol dumper.
22905OBJDUMP=$lt_OBJDUMP
22906
22907# Method to check whether dependent libraries are shared objects.
22908deplibs_check_method=$lt_deplibs_check_method
22909
22910# Command to use when deplibs_check_method = "file_magic".
22911file_magic_cmd=$lt_file_magic_cmd
22912
22913# How to find potential files when deplibs_check_method = "file_magic".
22914file_magic_glob=$lt_file_magic_glob
22915
22916# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22917want_nocaseglob=$lt_want_nocaseglob
22918
22919# DLL creation program.
22920DLLTOOL=$lt_DLLTOOL
22921
22922# Command to associate shared and link libraries.
22923sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22924
22925# The archiver.
22926AR=$lt_AR
22927
22928# Flags to create an archive.
22929AR_FLAGS=$lt_AR_FLAGS
22930
22931# How to feed a file listing to the archiver.
22932archiver_list_spec=$lt_archiver_list_spec
22933
22934# A symbol stripping program.
22935STRIP=$lt_STRIP
22936
22937# Commands used to install an old-style archive.
22938RANLIB=$lt_RANLIB
22939old_postinstall_cmds=$lt_old_postinstall_cmds
22940old_postuninstall_cmds=$lt_old_postuninstall_cmds
22941
22942# Whether to use a lock for old archive extraction.
22943lock_old_archive_extraction=$lock_old_archive_extraction
22944
22945# A C compiler.
22946LTCC=$lt_CC
22947
22948# LTCC compiler flags.
22949LTCFLAGS=$lt_CFLAGS
22950
22951# Take the output of nm and produce a listing of raw symbols and C names.
22952global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22953
22954# Transform the output of nm in a proper C declaration.
22955global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22956
22957# Transform the output of nm into a list of symbols to manually relocate.
22958global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22959
22960# Transform the output of nm in a C name address pair.
22961global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22962
22963# Transform the output of nm in a C name address pair when lib prefix is needed.
22964global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22965
22966# The name lister interface.
22967nm_interface=$lt_lt_cv_nm_interface
22968
22969# Specify filename containing input files for \$NM.
22970nm_file_list_spec=$lt_nm_file_list_spec
22971
22972# The root where to search for dependent libraries,and where our libraries should be installed.
22973lt_sysroot=$lt_sysroot
22974
22975# Command to truncate a binary pipe.
22976lt_truncate_bin=$lt_lt_cv_truncate_bin
22977
22978# The name of the directory that contains temporary libtool files.
22979objdir=$objdir
22980
22981# Used to examine libraries when file_magic_cmd begins with "file".
22982MAGIC_CMD=$MAGIC_CMD
22983
22984# Must we lock files when doing compilation?
22985need_locks=$lt_need_locks
22986
22987# Manifest tool.
22988MANIFEST_TOOL=$lt_MANIFEST_TOOL
22989
22990# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22991DSYMUTIL=$lt_DSYMUTIL
22992
22993# Tool to change global to local symbols on Mac OS X.
22994NMEDIT=$lt_NMEDIT
22995
22996# Tool to manipulate fat objects and archives on Mac OS X.
22997LIPO=$lt_LIPO
22998
22999# ldd/readelf like tool for Mach-O binaries on Mac OS X.
23000OTOOL=$lt_OTOOL
23001
23002# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23003OTOOL64=$lt_OTOOL64
23004
23005# Old archive suffix (normally "a").
23006libext=$libext
23007
23008# Shared library suffix (normally ".so").
23009shrext_cmds=$lt_shrext_cmds
23010
23011# The commands to extract the exported symbol list from a shared archive.
23012extract_expsyms_cmds=$lt_extract_expsyms_cmds
23013
23014# Variables whose values should be saved in libtool wrapper scripts and
23015# restored at link time.
23016variables_saved_for_relink=$lt_variables_saved_for_relink
23017
23018# Do we need the "lib" prefix for modules?
23019need_lib_prefix=$need_lib_prefix
23020
23021# Do we need a version for libraries?
23022need_version=$need_version
23023
23024# Library versioning type.
23025version_type=$version_type
23026
23027# Shared library runtime path variable.
23028runpath_var=$runpath_var
23029
23030# Shared library path variable.
23031shlibpath_var=$shlibpath_var
23032
23033# Is shlibpath searched before the hard-coded library search path?
23034shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23035
23036# Format of library name prefix.
23037libname_spec=$lt_libname_spec
23038
23039# List of archive names.  First name is the real one, the rest are links.
23040# The last name is the one that the linker finds with -lNAME
23041library_names_spec=$lt_library_names_spec
23042
23043# The coded name of the library, if different from the real name.
23044soname_spec=$lt_soname_spec
23045
23046# Permission mode override for installation of shared libraries.
23047install_override_mode=$lt_install_override_mode
23048
23049# Command to use after installation of a shared archive.
23050postinstall_cmds=$lt_postinstall_cmds
23051
23052# Command to use after uninstallation of a shared archive.
23053postuninstall_cmds=$lt_postuninstall_cmds
23054
23055# Commands used to finish a libtool library installation in a directory.
23056finish_cmds=$lt_finish_cmds
23057
23058# As "finish_cmds", except a single script fragment to be evaled but
23059# not shown.
23060finish_eval=$lt_finish_eval
23061
23062# Whether we should hardcode library paths into libraries.
23063hardcode_into_libs=$hardcode_into_libs
23064
23065# Compile-time system search path for libraries.
23066sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23067
23068# Detected run-time system search path for libraries.
23069sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23070
23071# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23072configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23073
23074# Whether dlopen is supported.
23075dlopen_support=$enable_dlopen
23076
23077# Whether dlopen of programs is supported.
23078dlopen_self=$enable_dlopen_self
23079
23080# Whether dlopen of statically linked programs is supported.
23081dlopen_self_static=$enable_dlopen_self_static
23082
23083# Commands to strip libraries.
23084old_striplib=$lt_old_striplib
23085striplib=$lt_striplib
23086
23087
23088# The linker used to build libraries.
23089LD=$lt_LD
23090
23091# How to create reloadable object files.
23092reload_flag=$lt_reload_flag
23093reload_cmds=$lt_reload_cmds
23094
23095# Commands used to build an old-style archive.
23096old_archive_cmds=$lt_old_archive_cmds
23097
23098# A language specific compiler.
23099CC=$lt_compiler
23100
23101# Is the compiler the GNU compiler?
23102with_gcc=$GCC
23103
23104# Compiler flag to turn off builtin functions.
23105no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23106
23107# Additional compiler flags for building library objects.
23108pic_flag=$lt_lt_prog_compiler_pic
23109
23110# How to pass a linker flag through the compiler.
23111wl=$lt_lt_prog_compiler_wl
23112
23113# Compiler flag to prevent dynamic linking.
23114link_static_flag=$lt_lt_prog_compiler_static
23115
23116# Does compiler simultaneously support -c and -o options?
23117compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23118
23119# Whether or not to add -lc for building shared libraries.
23120build_libtool_need_lc=$archive_cmds_need_lc
23121
23122# Whether or not to disallow shared libs when runtime libs are static.
23123allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23124
23125# Compiler flag to allow reflexive dlopens.
23126export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23127
23128# Compiler flag to generate shared objects directly from archives.
23129whole_archive_flag_spec=$lt_whole_archive_flag_spec
23130
23131# Whether the compiler copes with passing no objects directly.
23132compiler_needs_object=$lt_compiler_needs_object
23133
23134# Create an old-style archive from a shared archive.
23135old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23136
23137# Create a temporary old-style archive to link instead of a shared archive.
23138old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23139
23140# Commands used to build a shared archive.
23141archive_cmds=$lt_archive_cmds
23142archive_expsym_cmds=$lt_archive_expsym_cmds
23143
23144# Commands used to build a loadable module if different from building
23145# a shared archive.
23146module_cmds=$lt_module_cmds
23147module_expsym_cmds=$lt_module_expsym_cmds
23148
23149# Whether we are building with GNU ld or not.
23150with_gnu_ld=$lt_with_gnu_ld
23151
23152# Flag that allows shared libraries with undefined symbols to be built.
23153allow_undefined_flag=$lt_allow_undefined_flag
23154
23155# Flag that enforces no undefined symbols.
23156no_undefined_flag=$lt_no_undefined_flag
23157
23158# Flag to hardcode \$libdir into a binary during linking.
23159# This must work even if \$libdir does not exist
23160hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23161
23162# Whether we need a single "-rpath" flag with a separated argument.
23163hardcode_libdir_separator=$lt_hardcode_libdir_separator
23164
23165# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23166# DIR into the resulting binary.
23167hardcode_direct=$hardcode_direct
23168
23169# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23170# DIR into the resulting binary and the resulting library dependency is
23171# "absolute",i.e impossible to change by setting \$shlibpath_var if the
23172# library is relocated.
23173hardcode_direct_absolute=$hardcode_direct_absolute
23174
23175# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23176# into the resulting binary.
23177hardcode_minus_L=$hardcode_minus_L
23178
23179# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23180# into the resulting binary.
23181hardcode_shlibpath_var=$hardcode_shlibpath_var
23182
23183# Set to "yes" if building a shared library automatically hardcodes DIR
23184# into the library and all subsequent libraries and executables linked
23185# against it.
23186hardcode_automatic=$hardcode_automatic
23187
23188# Set to yes if linker adds runtime paths of dependent libraries
23189# to runtime path list.
23190inherit_rpath=$inherit_rpath
23191
23192# Whether libtool must link a program against all its dependency libraries.
23193link_all_deplibs=$link_all_deplibs
23194
23195# Set to "yes" if exported symbols are required.
23196always_export_symbols=$always_export_symbols
23197
23198# The commands to list exported symbols.
23199export_symbols_cmds=$lt_export_symbols_cmds
23200
23201# Symbols that should not be listed in the preloaded symbols.
23202exclude_expsyms=$lt_exclude_expsyms
23203
23204# Symbols that must always be exported.
23205include_expsyms=$lt_include_expsyms
23206
23207# Commands necessary for linking programs (against libraries) with templates.
23208prelink_cmds=$lt_prelink_cmds
23209
23210# Commands necessary for finishing linking programs.
23211postlink_cmds=$lt_postlink_cmds
23212
23213# Specify filename containing input files.
23214file_list_spec=$lt_file_list_spec
23215
23216# How to hardcode a shared library path into an executable.
23217hardcode_action=$hardcode_action
23218
23219# ### END LIBTOOL CONFIG
23220
23221_LT_EOF
23222
23223    cat <<'_LT_EOF' >> "$cfgfile"
23224
23225# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23226
23227# func_munge_path_list VARIABLE PATH
23228# -----------------------------------
23229# VARIABLE is name of variable containing _space_ separated list of
23230# directories to be munged by the contents of PATH, which is string
23231# having a format:
23232# "DIR[:DIR]:"
23233#       string "DIR[ DIR]" will be prepended to VARIABLE
23234# ":DIR[:DIR]"
23235#       string "DIR[ DIR]" will be appended to VARIABLE
23236# "DIRP[:DIRP]::[DIRA:]DIRA"
23237#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23238#       "DIRA[ DIRA]" will be appended to VARIABLE
23239# "DIR[:DIR]"
23240#       VARIABLE will be replaced by "DIR[ DIR]"
23241func_munge_path_list ()
23242{
23243    case x$2 in
23244    x)
23245        ;;
23246    *:)
23247        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23248        ;;
23249    x:*)
23250        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23251        ;;
23252    *::*)
23253        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23254        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23255        ;;
23256    *)
23257        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23258        ;;
23259    esac
23260}
23261
23262
23263# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
23264func_cc_basename ()
23265{
23266    for cc_temp in $*""; do
23267      case $cc_temp in
23268        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23269        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23270        \-*) ;;
23271        *) break;;
23272      esac
23273    done
23274    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23275}
23276
23277
23278# ### END FUNCTIONS SHARED WITH CONFIGURE
23279
23280_LT_EOF
23281
23282  case $host_os in
23283  aix3*)
23284    cat <<\_LT_EOF >> "$cfgfile"
23285# AIX sometimes has problems with the GCC collect2 program.  For some
23286# reason, if we set the COLLECT_NAMES environment variable, the problems
23287# vanish in a puff of smoke.
23288if test set != "${COLLECT_NAMES+set}"; then
23289  COLLECT_NAMES=
23290  export COLLECT_NAMES
23291fi
23292_LT_EOF
23293    ;;
23294  esac
23295
23296
23297ltmain=$ac_aux_dir/ltmain.sh
23298
23299
23300  # We use sed instead of cat because bash on DJGPP gets confused if
23301  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23302  # text mode, it properly converts lines to CR/LF.  This bash problem
23303  # is reportedly fixed, but why not run on old versions too?
23304  sed '$q' "$ltmain" >> "$cfgfile" \
23305     || (rm -f "$cfgfile"; exit 1)
23306
23307   mv -f "$cfgfile" "$ofile" ||
23308    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23309  chmod +x "$ofile"
23310
23311 ;;
23312    "disable-rpath":C)
23313	sed < libtool > libtool-2 \
23314	's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
23315	mv libtool-2 libtool
23316	chmod 755 libtool
23317	libtool="./libtool"
23318	 ;;
23319
23320  esac
23321done # for ac_tag
23322
23323
23324as_fn_exit 0
23325_ACEOF
23326ac_clean_files=$ac_clean_files_save
23327
23328test $ac_write_fail = 0 ||
23329  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23330
23331
23332# configure is writing to config.log, and then calls config.status.
23333# config.status does its own redirection, appending to config.log.
23334# Unfortunately, on DOS this fails, as config.log is still kept open
23335# by configure, so config.status won't be able to write to it; its
23336# output is simply discarded.  So we exec the FD to /dev/null,
23337# effectively closing config.log, so it can be properly (re)opened and
23338# appended to by config.status.  When coming back to configure, we
23339# need to make the FD available again.
23340if test "$no_create" != yes; then
23341  ac_cs_success=:
23342  ac_config_status_args=
23343  test "$silent" = yes &&
23344    ac_config_status_args="$ac_config_status_args --quiet"
23345  exec 5>/dev/null
23346  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23347  exec 5>>config.log
23348  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23349  # would make configure fail if this is the last instruction.
23350  $ac_cs_success || as_fn_exit 1
23351fi
23352if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23353  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23354$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23355fi
23356
23357